@knowledge-stack/ksapi 1.48.1 → 1.49.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.
@@ -56,6 +56,7 @@ docs/FoldersApi.md
56
56
  docs/HTTPValidationError.md
57
57
  docs/HealthCheckResponse.md
58
58
  docs/IdpType.md
59
+ docs/ImageTaxonomy.md
59
60
  docs/IngestDocumentResponse.md
60
61
  docs/IngestionMode.md
61
62
  docs/InviteResponse.md
@@ -215,6 +216,7 @@ src/models/FolderResponseOrDocumentResponse.ts
215
216
  src/models/HTTPValidationError.ts
216
217
  src/models/HealthCheckResponse.ts
217
218
  src/models/IdpType.ts
219
+ src/models/ImageTaxonomy.ts
218
220
  src/models/IngestDocumentResponse.ts
219
221
  src/models/IngestionMode.ts
220
222
  src/models/InviteResponse.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # @knowledge-stack/ksapi@1.48.1
1
+ # @knowledge-stack/ksapi@1.49.0
2
2
 
3
3
  A TypeScript SDK client for the localhost API.
4
4
 
@@ -196,6 +196,7 @@ All URIs are relative to *http://localhost:8000*
196
196
  - [HTTPValidationError](docs/HTTPValidationError.md)
197
197
  - [HealthCheckResponse](docs/HealthCheckResponse.md)
198
198
  - [IdpType](docs/IdpType.md)
199
+ - [ImageTaxonomy](docs/ImageTaxonomy.md)
199
200
  - [IngestDocumentResponse](docs/IngestDocumentResponse.md)
200
201
  - [IngestionMode](docs/IngestionMode.md)
201
202
  - [InviteResponse](docs/InviteResponse.md)
@@ -291,7 +292,7 @@ and is automatically generated by the
291
292
  [OpenAPI Generator](https://openapi-generator.tech) project:
292
293
 
293
294
  - API version: `0.1.0`
294
- - Package version: `1.48.1`
295
+ - Package version: `1.49.0`
295
296
  - Generator version: `7.20.0`
296
297
  - Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
297
298
 
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { ChunkType, CreateDocumentRequest, DocumentResponse, IngestDocumentResponse, IngestionMode, PaginatedResponseDocumentResponse, PathOrder, UpdateDocumentRequest } from '../models/index';
13
+ import type { ChunkType, CreateDocumentRequest, DocumentResponse, ImageTaxonomy, IngestDocumentResponse, IngestionMode, PaginatedResponseDocumentResponse, PathOrder, UpdateDocumentRequest } from '../models/index';
14
14
  export interface CreateDocumentOperationRequest {
15
15
  createDocumentRequest: CreateDocumentRequest;
16
16
  authorization?: string | null;
@@ -35,6 +35,7 @@ export interface IngestDocumentRequest {
35
35
  name?: string | null;
36
36
  ingestionMode?: IngestionMode;
37
37
  chunkType?: ChunkType;
38
+ secondaryTaxonomy?: ImageTaxonomy;
38
39
  pageDpi?: number;
39
40
  }
40
41
  export interface IngestDocumentVersionRequest {
@@ -44,6 +45,7 @@ export interface IngestDocumentVersionRequest {
44
45
  ksUat?: string | null;
45
46
  ingestionMode?: IngestionMode;
46
47
  chunkType?: ChunkType;
48
+ secondaryTaxonomy?: ImageTaxonomy;
47
49
  pageDpi?: number;
48
50
  }
49
51
  export interface ListDocumentsRequest {
@@ -154,6 +156,7 @@ export interface DocumentsApiInterface {
154
156
  * @param {string} [name] Document name (defaults to filename)
155
157
  * @param {IngestionMode} [ingestionMode]
156
158
  * @param {ChunkType} [chunkType]
159
+ * @param {ImageTaxonomy} [secondaryTaxonomy]
157
160
  * @param {number} [pageDpi] DPI for PDF page screenshots (default 72, min 36, max 216).
158
161
  * @throws {RequiredError}
159
162
  * @memberof DocumentsApiInterface
@@ -169,6 +172,7 @@ export interface DocumentsApiInterface {
169
172
  * @param {string} [name] Document name (defaults to filename)
170
173
  * @param {IngestionMode} [ingestionMode]
171
174
  * @param {ChunkType} [chunkType]
175
+ * @param {ImageTaxonomy} [secondaryTaxonomy]
172
176
  * @param {number} [pageDpi] DPI for PDF page screenshots (default 72, min 36, max 216).
173
177
  * @param {*} [options] Override http request option.
174
178
  * @throws {RequiredError}
@@ -188,6 +192,7 @@ export interface DocumentsApiInterface {
188
192
  * @param {string} [ksUat]
189
193
  * @param {IngestionMode} [ingestionMode]
190
194
  * @param {ChunkType} [chunkType]
195
+ * @param {ImageTaxonomy} [secondaryTaxonomy]
191
196
  * @param {number} [pageDpi] DPI for PDF page screenshots (default 72, min 36, max 216).
192
197
  * @throws {RequiredError}
193
198
  * @memberof DocumentsApiInterface
@@ -202,6 +207,7 @@ export interface DocumentsApiInterface {
202
207
  * @param {string} [ksUat]
203
208
  * @param {IngestionMode} [ingestionMode]
204
209
  * @param {ChunkType} [chunkType]
210
+ * @param {ImageTaxonomy} [secondaryTaxonomy]
205
211
  * @param {number} [pageDpi] DPI for PDF page screenshots (default 72, min 36, max 216).
206
212
  * @param {*} [options] Override http request option.
207
213
  * @throws {RequiredError}
@@ -210,6 +210,9 @@ class DocumentsApi extends runtime.BaseAPI {
210
210
  if (requestParameters['chunkType'] != null) {
211
211
  formParams.append('chunk_type', requestParameters['chunkType']);
212
212
  }
213
+ if (requestParameters['secondaryTaxonomy'] != null) {
214
+ formParams.append('secondary_taxonomy', requestParameters['secondaryTaxonomy']);
215
+ }
213
216
  if (requestParameters['pageDpi'] != null) {
214
217
  formParams.append('page_dpi', requestParameters['pageDpi']);
215
218
  }
@@ -284,6 +287,9 @@ class DocumentsApi extends runtime.BaseAPI {
284
287
  if (requestParameters['chunkType'] != null) {
285
288
  formParams.append('chunk_type', requestParameters['chunkType']);
286
289
  }
290
+ if (requestParameters['secondaryTaxonomy'] != null) {
291
+ formParams.append('secondary_taxonomy', requestParameters['secondaryTaxonomy']);
292
+ }
287
293
  if (requestParameters['pageDpi'] != null) {
288
294
  formParams.append('page_dpi', requestParameters['pageDpi']);
289
295
  }
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { ChunkType, CreateDocumentRequest, DocumentResponse, IngestDocumentResponse, IngestionMode, PaginatedResponseDocumentResponse, PathOrder, UpdateDocumentRequest } from '../models/index';
13
+ import type { ChunkType, CreateDocumentRequest, DocumentResponse, ImageTaxonomy, IngestDocumentResponse, IngestionMode, PaginatedResponseDocumentResponse, PathOrder, UpdateDocumentRequest } from '../models/index';
14
14
  export interface CreateDocumentOperationRequest {
15
15
  createDocumentRequest: CreateDocumentRequest;
16
16
  authorization?: string | null;
@@ -35,6 +35,7 @@ export interface IngestDocumentRequest {
35
35
  name?: string | null;
36
36
  ingestionMode?: IngestionMode;
37
37
  chunkType?: ChunkType;
38
+ secondaryTaxonomy?: ImageTaxonomy;
38
39
  pageDpi?: number;
39
40
  }
40
41
  export interface IngestDocumentVersionRequest {
@@ -44,6 +45,7 @@ export interface IngestDocumentVersionRequest {
44
45
  ksUat?: string | null;
45
46
  ingestionMode?: IngestionMode;
46
47
  chunkType?: ChunkType;
48
+ secondaryTaxonomy?: ImageTaxonomy;
47
49
  pageDpi?: number;
48
50
  }
49
51
  export interface ListDocumentsRequest {
@@ -154,6 +156,7 @@ export interface DocumentsApiInterface {
154
156
  * @param {string} [name] Document name (defaults to filename)
155
157
  * @param {IngestionMode} [ingestionMode]
156
158
  * @param {ChunkType} [chunkType]
159
+ * @param {ImageTaxonomy} [secondaryTaxonomy]
157
160
  * @param {number} [pageDpi] DPI for PDF page screenshots (default 72, min 36, max 216).
158
161
  * @throws {RequiredError}
159
162
  * @memberof DocumentsApiInterface
@@ -169,6 +172,7 @@ export interface DocumentsApiInterface {
169
172
  * @param {string} [name] Document name (defaults to filename)
170
173
  * @param {IngestionMode} [ingestionMode]
171
174
  * @param {ChunkType} [chunkType]
175
+ * @param {ImageTaxonomy} [secondaryTaxonomy]
172
176
  * @param {number} [pageDpi] DPI for PDF page screenshots (default 72, min 36, max 216).
173
177
  * @param {*} [options] Override http request option.
174
178
  * @throws {RequiredError}
@@ -188,6 +192,7 @@ export interface DocumentsApiInterface {
188
192
  * @param {string} [ksUat]
189
193
  * @param {IngestionMode} [ingestionMode]
190
194
  * @param {ChunkType} [chunkType]
195
+ * @param {ImageTaxonomy} [secondaryTaxonomy]
191
196
  * @param {number} [pageDpi] DPI for PDF page screenshots (default 72, min 36, max 216).
192
197
  * @throws {RequiredError}
193
198
  * @memberof DocumentsApiInterface
@@ -202,6 +207,7 @@ export interface DocumentsApiInterface {
202
207
  * @param {string} [ksUat]
203
208
  * @param {IngestionMode} [ingestionMode]
204
209
  * @param {ChunkType} [chunkType]
210
+ * @param {ImageTaxonomy} [secondaryTaxonomy]
205
211
  * @param {number} [pageDpi] DPI for PDF page screenshots (default 72, min 36, max 216).
206
212
  * @param {*} [options] Override http request option.
207
213
  * @throws {RequiredError}
@@ -207,6 +207,9 @@ export class DocumentsApi extends runtime.BaseAPI {
207
207
  if (requestParameters['chunkType'] != null) {
208
208
  formParams.append('chunk_type', requestParameters['chunkType']);
209
209
  }
210
+ if (requestParameters['secondaryTaxonomy'] != null) {
211
+ formParams.append('secondary_taxonomy', requestParameters['secondaryTaxonomy']);
212
+ }
210
213
  if (requestParameters['pageDpi'] != null) {
211
214
  formParams.append('page_dpi', requestParameters['pageDpi']);
212
215
  }
@@ -281,6 +284,9 @@ export class DocumentsApi extends runtime.BaseAPI {
281
284
  if (requestParameters['chunkType'] != null) {
282
285
  formParams.append('chunk_type', requestParameters['chunkType']);
283
286
  }
287
+ if (requestParameters['secondaryTaxonomy'] != null) {
288
+ formParams.append('secondary_taxonomy', requestParameters['secondaryTaxonomy']);
289
+ }
284
290
  if (requestParameters['pageDpi'] != null) {
285
291
  formParams.append('page_dpi', requestParameters['pageDpi']);
286
292
  }
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { ImageTaxonomy } from './ImageTaxonomy';
12
13
  import type { IngestionMode } from './IngestionMode';
13
14
  import type { PolygonReference } from './PolygonReference';
14
15
  /**
@@ -47,6 +48,12 @@ export interface ChunkMetadataInput {
47
48
  * @memberof ChunkMetadataInput
48
49
  */
49
50
  extractedTextS3Uri?: string | null;
51
+ /**
52
+ *
53
+ * @type {ImageTaxonomy}
54
+ * @memberof ChunkMetadataInput
55
+ */
56
+ secondaryTaxonomy?: ImageTaxonomy;
50
57
  /**
51
58
  * Worksheet name this chunk was extracted from (XLSX only)
52
59
  * @type {string}
@@ -11,6 +11,7 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
+ import { ImageTaxonomyFromJSON, ImageTaxonomyToJSON, } from './ImageTaxonomy';
14
15
  import { IngestionModeFromJSON, IngestionModeToJSON, } from './IngestionMode';
15
16
  import { PolygonReferenceFromJSON, PolygonReferenceToJSON, } from './PolygonReference';
16
17
  /**
@@ -32,6 +33,7 @@ export function ChunkMetadataInputFromJSONTyped(json, ignoreDiscriminator) {
32
33
  'summary': json['summary'] == null ? undefined : json['summary'],
33
34
  'ingestionMode': json['ingestion_mode'] == null ? undefined : IngestionModeFromJSON(json['ingestion_mode']),
34
35
  'extractedTextS3Uri': json['extracted_text_s3_uri'] == null ? undefined : json['extracted_text_s3_uri'],
36
+ 'secondaryTaxonomy': json['secondary_taxonomy'] == null ? undefined : ImageTaxonomyFromJSON(json['secondary_taxonomy']),
35
37
  'sheetName': json['sheet_name'] == null ? undefined : json['sheet_name'],
36
38
  'blockType': json['block_type'] == null ? undefined : json['block_type'],
37
39
  'sourceUri': json['source_uri'] == null ? undefined : json['source_uri'],
@@ -56,6 +58,7 @@ export function ChunkMetadataInputToJSONTyped(value, ignoreDiscriminator = false
56
58
  'summary': value['summary'],
57
59
  'ingestion_mode': IngestionModeToJSON(value['ingestionMode']),
58
60
  'extracted_text_s3_uri': value['extractedTextS3Uri'],
61
+ 'secondary_taxonomy': ImageTaxonomyToJSON(value['secondaryTaxonomy']),
59
62
  'sheet_name': value['sheetName'],
60
63
  'block_type': value['blockType'],
61
64
  'source_uri': value['sourceUri'],
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { ImageTaxonomy } from './ImageTaxonomy';
12
13
  import type { IngestionMode } from './IngestionMode';
13
14
  import type { PolygonReference } from './PolygonReference';
14
15
  /**
@@ -47,6 +48,12 @@ export interface ChunkMetadataOutput {
47
48
  * @memberof ChunkMetadataOutput
48
49
  */
49
50
  extractedTextS3Uri?: string | null;
51
+ /**
52
+ *
53
+ * @type {ImageTaxonomy}
54
+ * @memberof ChunkMetadataOutput
55
+ */
56
+ secondaryTaxonomy?: ImageTaxonomy;
50
57
  /**
51
58
  * Worksheet name this chunk was extracted from (XLSX only)
52
59
  * @type {string}
@@ -11,6 +11,7 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
+ import { ImageTaxonomyFromJSON, ImageTaxonomyToJSON, } from './ImageTaxonomy';
14
15
  import { IngestionModeFromJSON, IngestionModeToJSON, } from './IngestionMode';
15
16
  import { PolygonReferenceFromJSON, PolygonReferenceToJSON, } from './PolygonReference';
16
17
  /**
@@ -32,6 +33,7 @@ export function ChunkMetadataOutputFromJSONTyped(json, ignoreDiscriminator) {
32
33
  'summary': json['summary'] == null ? undefined : json['summary'],
33
34
  'ingestionMode': json['ingestion_mode'] == null ? undefined : IngestionModeFromJSON(json['ingestion_mode']),
34
35
  'extractedTextS3Uri': json['extracted_text_s3_uri'] == null ? undefined : json['extracted_text_s3_uri'],
36
+ 'secondaryTaxonomy': json['secondary_taxonomy'] == null ? undefined : ImageTaxonomyFromJSON(json['secondary_taxonomy']),
35
37
  'sheetName': json['sheet_name'] == null ? undefined : json['sheet_name'],
36
38
  'blockType': json['block_type'] == null ? undefined : json['block_type'],
37
39
  'sourceUri': json['source_uri'] == null ? undefined : json['source_uri'],
@@ -56,6 +58,7 @@ export function ChunkMetadataOutputToJSONTyped(value, ignoreDiscriminator = fals
56
58
  'summary': value['summary'],
57
59
  'ingestion_mode': IngestionModeToJSON(value['ingestionMode']),
58
60
  'extracted_text_s3_uri': value['extractedTextS3Uri'],
61
+ 'secondary_taxonomy': ImageTaxonomyToJSON(value['secondaryTaxonomy']),
59
62
  'sheet_name': value['sheetName'],
60
63
  'block_type': value['blockType'],
61
64
  'source_uri': value['sourceUri'],
@@ -0,0 +1,25 @@
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
+ * Image classification taxonomy with prompt descriptions.
14
+ * @export
15
+ */
16
+ export declare const ImageTaxonomy: {
17
+ readonly Picture: "picture";
18
+ readonly Flowchart: "flowchart";
19
+ };
20
+ export type ImageTaxonomy = typeof ImageTaxonomy[keyof typeof ImageTaxonomy];
21
+ export declare function instanceOfImageTaxonomy(value: any): boolean;
22
+ export declare function ImageTaxonomyFromJSON(json: any): ImageTaxonomy;
23
+ export declare function ImageTaxonomyFromJSONTyped(json: any, ignoreDiscriminator: boolean): ImageTaxonomy;
24
+ export declare function ImageTaxonomyToJSON(value?: ImageTaxonomy | null): any;
25
+ export declare function ImageTaxonomyToJSONTyped(value: any, ignoreDiscriminator: boolean): ImageTaxonomy;
@@ -0,0 +1,43 @@
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
+ * Image classification taxonomy with prompt descriptions.
16
+ * @export
17
+ */
18
+ export const ImageTaxonomy = {
19
+ Picture: 'picture',
20
+ Flowchart: 'flowchart'
21
+ };
22
+ export function instanceOfImageTaxonomy(value) {
23
+ for (const key in ImageTaxonomy) {
24
+ if (Object.prototype.hasOwnProperty.call(ImageTaxonomy, key)) {
25
+ if (ImageTaxonomy[key] === value) {
26
+ return true;
27
+ }
28
+ }
29
+ }
30
+ return false;
31
+ }
32
+ export function ImageTaxonomyFromJSON(json) {
33
+ return ImageTaxonomyFromJSONTyped(json, false);
34
+ }
35
+ export function ImageTaxonomyFromJSONTyped(json, ignoreDiscriminator) {
36
+ return json;
37
+ }
38
+ export function ImageTaxonomyToJSON(value) {
39
+ return value;
40
+ }
41
+ export function ImageTaxonomyToJSONTyped(value, ignoreDiscriminator) {
42
+ return value;
43
+ }
@@ -44,6 +44,7 @@ export * from './FolderResponseOrDocumentResponse';
44
44
  export * from './HTTPValidationError';
45
45
  export * from './HealthCheckResponse';
46
46
  export * from './IdpType';
47
+ export * from './ImageTaxonomy';
47
48
  export * from './IngestDocumentResponse';
48
49
  export * from './IngestionMode';
49
50
  export * from './InviteResponse';
@@ -46,6 +46,7 @@ export * from './FolderResponseOrDocumentResponse';
46
46
  export * from './HTTPValidationError';
47
47
  export * from './HealthCheckResponse';
48
48
  export * from './IdpType';
49
+ export * from './ImageTaxonomy';
49
50
  export * from './IngestDocumentResponse';
50
51
  export * from './IngestionMode';
51
52
  export * from './InviteResponse';
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { ImageTaxonomy } from './ImageTaxonomy';
12
13
  import type { IngestionMode } from './IngestionMode';
13
14
  import type { PolygonReference } from './PolygonReference';
14
15
  /**
@@ -47,6 +48,12 @@ export interface ChunkMetadataInput {
47
48
  * @memberof ChunkMetadataInput
48
49
  */
49
50
  extractedTextS3Uri?: string | null;
51
+ /**
52
+ *
53
+ * @type {ImageTaxonomy}
54
+ * @memberof ChunkMetadataInput
55
+ */
56
+ secondaryTaxonomy?: ImageTaxonomy;
50
57
  /**
51
58
  * Worksheet name this chunk was extracted from (XLSX only)
52
59
  * @type {string}
@@ -19,6 +19,7 @@ exports.ChunkMetadataInputFromJSON = ChunkMetadataInputFromJSON;
19
19
  exports.ChunkMetadataInputFromJSONTyped = ChunkMetadataInputFromJSONTyped;
20
20
  exports.ChunkMetadataInputToJSON = ChunkMetadataInputToJSON;
21
21
  exports.ChunkMetadataInputToJSONTyped = ChunkMetadataInputToJSONTyped;
22
+ const ImageTaxonomy_1 = require("./ImageTaxonomy");
22
23
  const IngestionMode_1 = require("./IngestionMode");
23
24
  const PolygonReference_1 = require("./PolygonReference");
24
25
  /**
@@ -40,6 +41,7 @@ function ChunkMetadataInputFromJSONTyped(json, ignoreDiscriminator) {
40
41
  'summary': json['summary'] == null ? undefined : json['summary'],
41
42
  'ingestionMode': json['ingestion_mode'] == null ? undefined : (0, IngestionMode_1.IngestionModeFromJSON)(json['ingestion_mode']),
42
43
  'extractedTextS3Uri': json['extracted_text_s3_uri'] == null ? undefined : json['extracted_text_s3_uri'],
44
+ 'secondaryTaxonomy': json['secondary_taxonomy'] == null ? undefined : (0, ImageTaxonomy_1.ImageTaxonomyFromJSON)(json['secondary_taxonomy']),
43
45
  'sheetName': json['sheet_name'] == null ? undefined : json['sheet_name'],
44
46
  'blockType': json['block_type'] == null ? undefined : json['block_type'],
45
47
  'sourceUri': json['source_uri'] == null ? undefined : json['source_uri'],
@@ -64,6 +66,7 @@ function ChunkMetadataInputToJSONTyped(value, ignoreDiscriminator = false) {
64
66
  'summary': value['summary'],
65
67
  'ingestion_mode': (0, IngestionMode_1.IngestionModeToJSON)(value['ingestionMode']),
66
68
  'extracted_text_s3_uri': value['extractedTextS3Uri'],
69
+ 'secondary_taxonomy': (0, ImageTaxonomy_1.ImageTaxonomyToJSON)(value['secondaryTaxonomy']),
67
70
  'sheet_name': value['sheetName'],
68
71
  'block_type': value['blockType'],
69
72
  'source_uri': value['sourceUri'],
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { ImageTaxonomy } from './ImageTaxonomy';
12
13
  import type { IngestionMode } from './IngestionMode';
13
14
  import type { PolygonReference } from './PolygonReference';
14
15
  /**
@@ -47,6 +48,12 @@ export interface ChunkMetadataOutput {
47
48
  * @memberof ChunkMetadataOutput
48
49
  */
49
50
  extractedTextS3Uri?: string | null;
51
+ /**
52
+ *
53
+ * @type {ImageTaxonomy}
54
+ * @memberof ChunkMetadataOutput
55
+ */
56
+ secondaryTaxonomy?: ImageTaxonomy;
50
57
  /**
51
58
  * Worksheet name this chunk was extracted from (XLSX only)
52
59
  * @type {string}
@@ -19,6 +19,7 @@ exports.ChunkMetadataOutputFromJSON = ChunkMetadataOutputFromJSON;
19
19
  exports.ChunkMetadataOutputFromJSONTyped = ChunkMetadataOutputFromJSONTyped;
20
20
  exports.ChunkMetadataOutputToJSON = ChunkMetadataOutputToJSON;
21
21
  exports.ChunkMetadataOutputToJSONTyped = ChunkMetadataOutputToJSONTyped;
22
+ const ImageTaxonomy_1 = require("./ImageTaxonomy");
22
23
  const IngestionMode_1 = require("./IngestionMode");
23
24
  const PolygonReference_1 = require("./PolygonReference");
24
25
  /**
@@ -40,6 +41,7 @@ function ChunkMetadataOutputFromJSONTyped(json, ignoreDiscriminator) {
40
41
  'summary': json['summary'] == null ? undefined : json['summary'],
41
42
  'ingestionMode': json['ingestion_mode'] == null ? undefined : (0, IngestionMode_1.IngestionModeFromJSON)(json['ingestion_mode']),
42
43
  'extractedTextS3Uri': json['extracted_text_s3_uri'] == null ? undefined : json['extracted_text_s3_uri'],
44
+ 'secondaryTaxonomy': json['secondary_taxonomy'] == null ? undefined : (0, ImageTaxonomy_1.ImageTaxonomyFromJSON)(json['secondary_taxonomy']),
43
45
  'sheetName': json['sheet_name'] == null ? undefined : json['sheet_name'],
44
46
  'blockType': json['block_type'] == null ? undefined : json['block_type'],
45
47
  'sourceUri': json['source_uri'] == null ? undefined : json['source_uri'],
@@ -64,6 +66,7 @@ function ChunkMetadataOutputToJSONTyped(value, ignoreDiscriminator = false) {
64
66
  'summary': value['summary'],
65
67
  'ingestion_mode': (0, IngestionMode_1.IngestionModeToJSON)(value['ingestionMode']),
66
68
  'extracted_text_s3_uri': value['extractedTextS3Uri'],
69
+ 'secondary_taxonomy': (0, ImageTaxonomy_1.ImageTaxonomyToJSON)(value['secondaryTaxonomy']),
67
70
  'sheet_name': value['sheetName'],
68
71
  'block_type': value['blockType'],
69
72
  'source_uri': value['sourceUri'],
@@ -0,0 +1,25 @@
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
+ * Image classification taxonomy with prompt descriptions.
14
+ * @export
15
+ */
16
+ export declare const ImageTaxonomy: {
17
+ readonly Picture: "picture";
18
+ readonly Flowchart: "flowchart";
19
+ };
20
+ export type ImageTaxonomy = typeof ImageTaxonomy[keyof typeof ImageTaxonomy];
21
+ export declare function instanceOfImageTaxonomy(value: any): boolean;
22
+ export declare function ImageTaxonomyFromJSON(json: any): ImageTaxonomy;
23
+ export declare function ImageTaxonomyFromJSONTyped(json: any, ignoreDiscriminator: boolean): ImageTaxonomy;
24
+ export declare function ImageTaxonomyToJSON(value?: ImageTaxonomy | null): any;
25
+ export declare function ImageTaxonomyToJSONTyped(value: any, ignoreDiscriminator: boolean): ImageTaxonomy;
@@ -0,0 +1,51 @@
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.ImageTaxonomy = void 0;
17
+ exports.instanceOfImageTaxonomy = instanceOfImageTaxonomy;
18
+ exports.ImageTaxonomyFromJSON = ImageTaxonomyFromJSON;
19
+ exports.ImageTaxonomyFromJSONTyped = ImageTaxonomyFromJSONTyped;
20
+ exports.ImageTaxonomyToJSON = ImageTaxonomyToJSON;
21
+ exports.ImageTaxonomyToJSONTyped = ImageTaxonomyToJSONTyped;
22
+ /**
23
+ * Image classification taxonomy with prompt descriptions.
24
+ * @export
25
+ */
26
+ exports.ImageTaxonomy = {
27
+ Picture: 'picture',
28
+ Flowchart: 'flowchart'
29
+ };
30
+ function instanceOfImageTaxonomy(value) {
31
+ for (const key in exports.ImageTaxonomy) {
32
+ if (Object.prototype.hasOwnProperty.call(exports.ImageTaxonomy, key)) {
33
+ if (exports.ImageTaxonomy[key] === value) {
34
+ return true;
35
+ }
36
+ }
37
+ }
38
+ return false;
39
+ }
40
+ function ImageTaxonomyFromJSON(json) {
41
+ return ImageTaxonomyFromJSONTyped(json, false);
42
+ }
43
+ function ImageTaxonomyFromJSONTyped(json, ignoreDiscriminator) {
44
+ return json;
45
+ }
46
+ function ImageTaxonomyToJSON(value) {
47
+ return value;
48
+ }
49
+ function ImageTaxonomyToJSONTyped(value, ignoreDiscriminator) {
50
+ return value;
51
+ }
@@ -44,6 +44,7 @@ export * from './FolderResponseOrDocumentResponse';
44
44
  export * from './HTTPValidationError';
45
45
  export * from './HealthCheckResponse';
46
46
  export * from './IdpType';
47
+ export * from './ImageTaxonomy';
47
48
  export * from './IngestDocumentResponse';
48
49
  export * from './IngestionMode';
49
50
  export * from './InviteResponse';
@@ -62,6 +62,7 @@ __exportStar(require("./FolderResponseOrDocumentResponse"), exports);
62
62
  __exportStar(require("./HTTPValidationError"), exports);
63
63
  __exportStar(require("./HealthCheckResponse"), exports);
64
64
  __exportStar(require("./IdpType"), exports);
65
+ __exportStar(require("./ImageTaxonomy"), exports);
65
66
  __exportStar(require("./IngestDocumentResponse"), exports);
66
67
  __exportStar(require("./IngestionMode"), exports);
67
68
  __exportStar(require("./InviteResponse"), exports);
@@ -12,6 +12,7 @@ Name | Type
12
12
  `summary` | string
13
13
  `ingestionMode` | [IngestionMode](IngestionMode.md)
14
14
  `extractedTextS3Uri` | string
15
+ `secondaryTaxonomy` | [ImageTaxonomy](ImageTaxonomy.md)
15
16
  `sheetName` | string
16
17
  `blockType` | string
17
18
  `sourceUri` | string
@@ -34,6 +35,7 @@ const example = {
34
35
  "summary": null,
35
36
  "ingestionMode": null,
36
37
  "extractedTextS3Uri": null,
38
+ "secondaryTaxonomy": null,
37
39
  "sheetName": null,
38
40
  "blockType": null,
39
41
  "sourceUri": null,
@@ -12,6 +12,7 @@ Name | Type
12
12
  `summary` | string
13
13
  `ingestionMode` | [IngestionMode](IngestionMode.md)
14
14
  `extractedTextS3Uri` | string
15
+ `secondaryTaxonomy` | [ImageTaxonomy](ImageTaxonomy.md)
15
16
  `sheetName` | string
16
17
  `blockType` | string
17
18
  `sourceUri` | string
@@ -34,6 +35,7 @@ const example = {
34
35
  "summary": null,
35
36
  "ingestionMode": null,
36
37
  "extractedTextS3Uri": null,
38
+ "secondaryTaxonomy": null,
37
39
  "sheetName": null,
38
40
  "blockType": null,
39
41
  "sourceUri": null,
@@ -241,7 +241,7 @@ No authorization required
241
241
 
242
242
  ## ingestDocument
243
243
 
244
- > IngestDocumentResponse ingestDocument(file, pathPartId, authorization, ksUat, name, ingestionMode, chunkType, pageDpi)
244
+ > IngestDocumentResponse ingestDocument(file, pathPartId, authorization, ksUat, name, ingestionMode, chunkType, secondaryTaxonomy, pageDpi)
245
245
 
246
246
  Ingest Document Handler
247
247
 
@@ -275,6 +275,8 @@ async function example() {
275
275
  ingestionMode: ...,
276
276
  // ChunkType (optional)
277
277
  chunkType: ...,
278
+ // ImageTaxonomy (optional)
279
+ secondaryTaxonomy: ...,
278
280
  // number | DPI for PDF page screenshots (default 72, min 36, max 216). (optional)
279
281
  pageDpi: 56,
280
282
  } satisfies IngestDocumentRequest;
@@ -303,6 +305,7 @@ example().catch(console.error);
303
305
  | **name** | `string` | Document name (defaults to filename) | [Optional] [Defaults to `undefined`] |
304
306
  | **ingestionMode** | `IngestionMode` | | [Optional] [Defaults to `undefined`] [Enum: document, single_chunk] |
305
307
  | **chunkType** | `ChunkType` | | [Optional] [Defaults to `undefined`] [Enum: TEXT, TABLE, IMAGE, HTML, UNKNOWN] |
308
+ | **secondaryTaxonomy** | `ImageTaxonomy` | | [Optional] [Defaults to `undefined`] [Enum: picture, flowchart] |
306
309
  | **pageDpi** | `number` | DPI for PDF page screenshots (default 72, min 36, max 216). | [Optional] [Defaults to `72`] |
307
310
 
308
311
  ### Return type
@@ -330,7 +333,7 @@ No authorization required
330
333
 
331
334
  ## ingestDocumentVersion
332
335
 
333
- > IngestDocumentResponse ingestDocumentVersion(documentId, file, authorization, ksUat, ingestionMode, chunkType, pageDpi)
336
+ > IngestDocumentResponse ingestDocumentVersion(documentId, file, authorization, ksUat, ingestionMode, chunkType, secondaryTaxonomy, pageDpi)
334
337
 
335
338
  Ingest Document Version Handler
336
339
 
@@ -362,6 +365,8 @@ async function example() {
362
365
  ingestionMode: ...,
363
366
  // ChunkType (optional)
364
367
  chunkType: ...,
368
+ // ImageTaxonomy (optional)
369
+ secondaryTaxonomy: ...,
365
370
  // number | DPI for PDF page screenshots (default 72, min 36, max 216). (optional)
366
371
  pageDpi: 56,
367
372
  } satisfies IngestDocumentVersionRequest;
@@ -389,6 +394,7 @@ example().catch(console.error);
389
394
  | **ksUat** | `string` | | [Optional] [Defaults to `undefined`] |
390
395
  | **ingestionMode** | `IngestionMode` | | [Optional] [Defaults to `undefined`] [Enum: document, single_chunk] |
391
396
  | **chunkType** | `ChunkType` | | [Optional] [Defaults to `undefined`] [Enum: TEXT, TABLE, IMAGE, HTML, UNKNOWN] |
397
+ | **secondaryTaxonomy** | `ImageTaxonomy` | | [Optional] [Defaults to `undefined`] [Enum: picture, flowchart] |
392
398
  | **pageDpi** | `number` | DPI for PDF page screenshots (default 72, min 36, max 216). | [Optional] [Defaults to `72`] |
393
399
 
394
400
  ### Return type
@@ -0,0 +1,33 @@
1
+
2
+ # ImageTaxonomy
3
+
4
+ Image classification taxonomy with prompt descriptions.
5
+
6
+ ## Properties
7
+
8
+ Name | Type
9
+ ------------ | -------------
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import type { ImageTaxonomy } from '@knowledge-stack/ksapi'
15
+
16
+ // TODO: Update the object below with actual values
17
+ const example = {
18
+ } satisfies ImageTaxonomy
19
+
20
+ console.log(example)
21
+
22
+ // Convert the instance to a JSON string
23
+ const exampleJSON: string = JSON.stringify(example)
24
+ console.log(exampleJSON)
25
+
26
+ // Parse the JSON string back to an object
27
+ const exampleParsed = JSON.parse(exampleJSON) as ImageTaxonomy
28
+ console.log(exampleParsed)
29
+ ```
30
+
31
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
32
+
33
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@knowledge-stack/ksapi",
3
- "version": "1.48.1",
3
+ "version": "1.49.0",
4
4
  "description": "OpenAPI client for @knowledge-stack/ksapi",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -19,6 +19,7 @@ import type {
19
19
  CreateDocumentRequest,
20
20
  DocumentResponse,
21
21
  HTTPValidationError,
22
+ ImageTaxonomy,
22
23
  IngestDocumentResponse,
23
24
  IngestionMode,
24
25
  PaginatedResponseDocumentResponse,
@@ -34,6 +35,8 @@ import {
34
35
  DocumentResponseToJSON,
35
36
  HTTPValidationErrorFromJSON,
36
37
  HTTPValidationErrorToJSON,
38
+ ImageTaxonomyFromJSON,
39
+ ImageTaxonomyToJSON,
37
40
  IngestDocumentResponseFromJSON,
38
41
  IngestDocumentResponseToJSON,
39
42
  IngestionModeFromJSON,
@@ -73,6 +76,7 @@ export interface IngestDocumentRequest {
73
76
  name?: string | null;
74
77
  ingestionMode?: IngestionMode;
75
78
  chunkType?: ChunkType;
79
+ secondaryTaxonomy?: ImageTaxonomy;
76
80
  pageDpi?: number;
77
81
  }
78
82
 
@@ -83,6 +87,7 @@ export interface IngestDocumentVersionRequest {
83
87
  ksUat?: string | null;
84
88
  ingestionMode?: IngestionMode;
85
89
  chunkType?: ChunkType;
90
+ secondaryTaxonomy?: ImageTaxonomy;
86
91
  pageDpi?: number;
87
92
  }
88
93
 
@@ -205,6 +210,7 @@ export interface DocumentsApiInterface {
205
210
  * @param {string} [name] Document name (defaults to filename)
206
211
  * @param {IngestionMode} [ingestionMode]
207
212
  * @param {ChunkType} [chunkType]
213
+ * @param {ImageTaxonomy} [secondaryTaxonomy]
208
214
  * @param {number} [pageDpi] DPI for PDF page screenshots (default 72, min 36, max 216).
209
215
  * @throws {RequiredError}
210
216
  * @memberof DocumentsApiInterface
@@ -221,6 +227,7 @@ export interface DocumentsApiInterface {
221
227
  * @param {string} [name] Document name (defaults to filename)
222
228
  * @param {IngestionMode} [ingestionMode]
223
229
  * @param {ChunkType} [chunkType]
230
+ * @param {ImageTaxonomy} [secondaryTaxonomy]
224
231
  * @param {number} [pageDpi] DPI for PDF page screenshots (default 72, min 36, max 216).
225
232
  * @param {*} [options] Override http request option.
226
233
  * @throws {RequiredError}
@@ -242,6 +249,7 @@ export interface DocumentsApiInterface {
242
249
  * @param {string} [ksUat]
243
250
  * @param {IngestionMode} [ingestionMode]
244
251
  * @param {ChunkType} [chunkType]
252
+ * @param {ImageTaxonomy} [secondaryTaxonomy]
245
253
  * @param {number} [pageDpi] DPI for PDF page screenshots (default 72, min 36, max 216).
246
254
  * @throws {RequiredError}
247
255
  * @memberof DocumentsApiInterface
@@ -257,6 +265,7 @@ export interface DocumentsApiInterface {
257
265
  * @param {string} [ksUat]
258
266
  * @param {IngestionMode} [ingestionMode]
259
267
  * @param {ChunkType} [chunkType]
268
+ * @param {ImageTaxonomy} [secondaryTaxonomy]
260
269
  * @param {number} [pageDpi] DPI for PDF page screenshots (default 72, min 36, max 216).
261
270
  * @param {*} [options] Override http request option.
262
271
  * @throws {RequiredError}
@@ -563,6 +572,10 @@ export class DocumentsApi extends runtime.BaseAPI implements DocumentsApiInterfa
563
572
  formParams.append('chunk_type', requestParameters['chunkType'] as any);
564
573
  }
565
574
 
575
+ if (requestParameters['secondaryTaxonomy'] != null) {
576
+ formParams.append('secondary_taxonomy', requestParameters['secondaryTaxonomy'] as any);
577
+ }
578
+
566
579
  if (requestParameters['pageDpi'] != null) {
567
580
  formParams.append('page_dpi', requestParameters['pageDpi'] as any);
568
581
  }
@@ -653,6 +666,10 @@ export class DocumentsApi extends runtime.BaseAPI implements DocumentsApiInterfa
653
666
  formParams.append('chunk_type', requestParameters['chunkType'] as any);
654
667
  }
655
668
 
669
+ if (requestParameters['secondaryTaxonomy'] != null) {
670
+ formParams.append('secondary_taxonomy', requestParameters['secondaryTaxonomy'] as any);
671
+ }
672
+
656
673
  if (requestParameters['pageDpi'] != null) {
657
674
  formParams.append('page_dpi', requestParameters['pageDpi'] as any);
658
675
  }
@@ -13,6 +13,13 @@
13
13
  */
14
14
 
15
15
  import { mapValues } from '../runtime';
16
+ import type { ImageTaxonomy } from './ImageTaxonomy';
17
+ import {
18
+ ImageTaxonomyFromJSON,
19
+ ImageTaxonomyFromJSONTyped,
20
+ ImageTaxonomyToJSON,
21
+ ImageTaxonomyToJSONTyped,
22
+ } from './ImageTaxonomy';
16
23
  import type { IngestionMode } from './IngestionMode';
17
24
  import {
18
25
  IngestionModeFromJSON,
@@ -64,6 +71,12 @@ export interface ChunkMetadataInput {
64
71
  * @memberof ChunkMetadataInput
65
72
  */
66
73
  extractedTextS3Uri?: string | null;
74
+ /**
75
+ *
76
+ * @type {ImageTaxonomy}
77
+ * @memberof ChunkMetadataInput
78
+ */
79
+ secondaryTaxonomy?: ImageTaxonomy;
67
80
  /**
68
81
  * Worksheet name this chunk was extracted from (XLSX only)
69
82
  * @type {string}
@@ -144,6 +157,7 @@ export function ChunkMetadataInputFromJSONTyped(json: any, ignoreDiscriminator:
144
157
  'summary': json['summary'] == null ? undefined : json['summary'],
145
158
  'ingestionMode': json['ingestion_mode'] == null ? undefined : IngestionModeFromJSON(json['ingestion_mode']),
146
159
  'extractedTextS3Uri': json['extracted_text_s3_uri'] == null ? undefined : json['extracted_text_s3_uri'],
160
+ 'secondaryTaxonomy': json['secondary_taxonomy'] == null ? undefined : ImageTaxonomyFromJSON(json['secondary_taxonomy']),
147
161
  'sheetName': json['sheet_name'] == null ? undefined : json['sheet_name'],
148
162
  'blockType': json['block_type'] == null ? undefined : json['block_type'],
149
163
  'sourceUri': json['source_uri'] == null ? undefined : json['source_uri'],
@@ -172,6 +186,7 @@ export function ChunkMetadataInputToJSONTyped(value?: ChunkMetadataInput | null,
172
186
  'summary': value['summary'],
173
187
  'ingestion_mode': IngestionModeToJSON(value['ingestionMode']),
174
188
  'extracted_text_s3_uri': value['extractedTextS3Uri'],
189
+ 'secondary_taxonomy': ImageTaxonomyToJSON(value['secondaryTaxonomy']),
175
190
  'sheet_name': value['sheetName'],
176
191
  'block_type': value['blockType'],
177
192
  'source_uri': value['sourceUri'],
@@ -13,6 +13,13 @@
13
13
  */
14
14
 
15
15
  import { mapValues } from '../runtime';
16
+ import type { ImageTaxonomy } from './ImageTaxonomy';
17
+ import {
18
+ ImageTaxonomyFromJSON,
19
+ ImageTaxonomyFromJSONTyped,
20
+ ImageTaxonomyToJSON,
21
+ ImageTaxonomyToJSONTyped,
22
+ } from './ImageTaxonomy';
16
23
  import type { IngestionMode } from './IngestionMode';
17
24
  import {
18
25
  IngestionModeFromJSON,
@@ -64,6 +71,12 @@ export interface ChunkMetadataOutput {
64
71
  * @memberof ChunkMetadataOutput
65
72
  */
66
73
  extractedTextS3Uri?: string | null;
74
+ /**
75
+ *
76
+ * @type {ImageTaxonomy}
77
+ * @memberof ChunkMetadataOutput
78
+ */
79
+ secondaryTaxonomy?: ImageTaxonomy;
67
80
  /**
68
81
  * Worksheet name this chunk was extracted from (XLSX only)
69
82
  * @type {string}
@@ -144,6 +157,7 @@ export function ChunkMetadataOutputFromJSONTyped(json: any, ignoreDiscriminator:
144
157
  'summary': json['summary'] == null ? undefined : json['summary'],
145
158
  'ingestionMode': json['ingestion_mode'] == null ? undefined : IngestionModeFromJSON(json['ingestion_mode']),
146
159
  'extractedTextS3Uri': json['extracted_text_s3_uri'] == null ? undefined : json['extracted_text_s3_uri'],
160
+ 'secondaryTaxonomy': json['secondary_taxonomy'] == null ? undefined : ImageTaxonomyFromJSON(json['secondary_taxonomy']),
147
161
  'sheetName': json['sheet_name'] == null ? undefined : json['sheet_name'],
148
162
  'blockType': json['block_type'] == null ? undefined : json['block_type'],
149
163
  'sourceUri': json['source_uri'] == null ? undefined : json['source_uri'],
@@ -172,6 +186,7 @@ export function ChunkMetadataOutputToJSONTyped(value?: ChunkMetadataOutput | nul
172
186
  'summary': value['summary'],
173
187
  'ingestion_mode': IngestionModeToJSON(value['ingestionMode']),
174
188
  'extracted_text_s3_uri': value['extractedTextS3Uri'],
189
+ 'secondary_taxonomy': ImageTaxonomyToJSON(value['secondaryTaxonomy']),
175
190
  'sheet_name': value['sheetName'],
176
191
  'block_type': value['blockType'],
177
192
  'source_uri': value['sourceUri'],
@@ -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
+
15
+
16
+ /**
17
+ * Image classification taxonomy with prompt descriptions.
18
+ * @export
19
+ */
20
+ export const ImageTaxonomy = {
21
+ Picture: 'picture',
22
+ Flowchart: 'flowchart'
23
+ } as const;
24
+ export type ImageTaxonomy = typeof ImageTaxonomy[keyof typeof ImageTaxonomy];
25
+
26
+
27
+ export function instanceOfImageTaxonomy(value: any): boolean {
28
+ for (const key in ImageTaxonomy) {
29
+ if (Object.prototype.hasOwnProperty.call(ImageTaxonomy, key)) {
30
+ if (ImageTaxonomy[key as keyof typeof ImageTaxonomy] === value) {
31
+ return true;
32
+ }
33
+ }
34
+ }
35
+ return false;
36
+ }
37
+
38
+ export function ImageTaxonomyFromJSON(json: any): ImageTaxonomy {
39
+ return ImageTaxonomyFromJSONTyped(json, false);
40
+ }
41
+
42
+ export function ImageTaxonomyFromJSONTyped(json: any, ignoreDiscriminator: boolean): ImageTaxonomy {
43
+ return json as ImageTaxonomy;
44
+ }
45
+
46
+ export function ImageTaxonomyToJSON(value?: ImageTaxonomy | null): any {
47
+ return value as any;
48
+ }
49
+
50
+ export function ImageTaxonomyToJSONTyped(value: any, ignoreDiscriminator: boolean): ImageTaxonomy {
51
+ return value as ImageTaxonomy;
52
+ }
53
+
@@ -46,6 +46,7 @@ export * from './FolderResponseOrDocumentResponse';
46
46
  export * from './HTTPValidationError';
47
47
  export * from './HealthCheckResponse';
48
48
  export * from './IdpType';
49
+ export * from './ImageTaxonomy';
49
50
  export * from './IngestDocumentResponse';
50
51
  export * from './IngestionMode';
51
52
  export * from './InviteResponse';