@knowledge-stack/ksapi 1.61.1 → 1.61.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +0 -2
- package/README.md +2 -3
- package/dist/apis/DocumentsApi.d.ts +1 -7
- package/dist/apis/DocumentsApi.js +0 -6
- package/dist/esm/apis/DocumentsApi.d.ts +1 -7
- package/dist/esm/apis/DocumentsApi.js +0 -6
- package/dist/esm/models/ChunkMetadataInput.d.ts +0 -7
- package/dist/esm/models/ChunkMetadataInput.js +0 -3
- package/dist/esm/models/ChunkMetadataOutput.d.ts +0 -7
- package/dist/esm/models/ChunkMetadataOutput.js +0 -3
- package/dist/esm/models/IngestionMode.d.ts +3 -2
- package/dist/esm/models/IngestionMode.js +3 -2
- package/dist/esm/models/PipelineState.d.ts +1 -8
- package/dist/esm/models/PipelineState.js +0 -3
- package/dist/esm/models/index.d.ts +0 -1
- package/dist/esm/models/index.js +0 -1
- package/dist/models/ChunkMetadataInput.d.ts +0 -7
- package/dist/models/ChunkMetadataInput.js +0 -3
- package/dist/models/ChunkMetadataOutput.d.ts +0 -7
- package/dist/models/ChunkMetadataOutput.js +0 -3
- package/dist/models/IngestionMode.d.ts +3 -2
- package/dist/models/IngestionMode.js +3 -2
- package/dist/models/PipelineState.d.ts +1 -8
- package/dist/models/PipelineState.js +0 -3
- package/dist/models/index.d.ts +0 -1
- package/dist/models/index.js +0 -1
- package/docs/ChunkMetadataInput.md +0 -2
- package/docs/ChunkMetadataOutput.md +0 -2
- package/docs/DocumentsApi.md +4 -10
- package/docs/IngestionMode.md +1 -1
- package/docs/PipelineState.md +0 -2
- package/package.json +1 -1
- package/src/apis/DocumentsApi.ts +0 -17
- package/src/models/ChunkMetadataInput.ts +0 -15
- package/src/models/ChunkMetadataOutput.ts +0 -15
- package/src/models/IngestionMode.ts +3 -2
- package/src/models/PipelineState.ts +1 -16
- package/src/models/index.ts +0 -1
- package/dist/esm/models/ConversionEngine.d.ts +0 -25
- package/dist/esm/models/ConversionEngine.js +0 -43
- package/dist/models/ConversionEngine.d.ts +0 -25
- package/dist/models/ConversionEngine.js +0 -51
- package/docs/ConversionEngine.md +0 -33
- package/src/models/ConversionEngine.ts +0 -53
package/.openapi-generator/FILES
CHANGED
|
@@ -25,7 +25,6 @@ docs/ChunkType.md
|
|
|
25
25
|
docs/ChunksApi.md
|
|
26
26
|
docs/Citation.md
|
|
27
27
|
docs/ClearVersionContentsResponse.md
|
|
28
|
-
docs/ConversionEngine.md
|
|
29
28
|
docs/CreateApiKeyRequest.md
|
|
30
29
|
docs/CreateApiKeyResponse.md
|
|
31
30
|
docs/CreateChunkLineageRequest.md
|
|
@@ -211,7 +210,6 @@ src/models/ChunkSearchRequest.ts
|
|
|
211
210
|
src/models/ChunkType.ts
|
|
212
211
|
src/models/Citation.ts
|
|
213
212
|
src/models/ClearVersionContentsResponse.ts
|
|
214
|
-
src/models/ConversionEngine.ts
|
|
215
213
|
src/models/CreateApiKeyRequest.ts
|
|
216
214
|
src/models/CreateApiKeyResponse.ts
|
|
217
215
|
src/models/CreateChunkLineageRequest.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @knowledge-stack/ksapi@1.61.
|
|
1
|
+
# @knowledge-stack/ksapi@1.61.3
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the localhost API.
|
|
4
4
|
|
|
@@ -180,7 +180,6 @@ All URIs are relative to *http://localhost:8000*
|
|
|
180
180
|
- [ChunkType](docs/ChunkType.md)
|
|
181
181
|
- [Citation](docs/Citation.md)
|
|
182
182
|
- [ClearVersionContentsResponse](docs/ClearVersionContentsResponse.md)
|
|
183
|
-
- [ConversionEngine](docs/ConversionEngine.md)
|
|
184
183
|
- [CreateApiKeyRequest](docs/CreateApiKeyRequest.md)
|
|
185
184
|
- [CreateApiKeyResponse](docs/CreateApiKeyResponse.md)
|
|
186
185
|
- [CreateChunkLineageRequest](docs/CreateChunkLineageRequest.md)
|
|
@@ -323,7 +322,7 @@ and is automatically generated by the
|
|
|
323
322
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
324
323
|
|
|
325
324
|
- API version: `0.1.0`
|
|
326
|
-
- Package version: `1.61.
|
|
325
|
+
- Package version: `1.61.3`
|
|
327
326
|
- Generator version: `7.20.0`
|
|
328
327
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
329
328
|
|
|
@@ -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,
|
|
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;
|
|
@@ -37,7 +37,6 @@ export interface IngestDocumentRequest {
|
|
|
37
37
|
chunkType?: ChunkType;
|
|
38
38
|
secondaryTaxonomy?: ImageTaxonomy;
|
|
39
39
|
pageDpi?: number;
|
|
40
|
-
conversionEngine?: ConversionEngine;
|
|
41
40
|
}
|
|
42
41
|
export interface IngestDocumentVersionRequest {
|
|
43
42
|
documentId: string;
|
|
@@ -48,7 +47,6 @@ export interface IngestDocumentVersionRequest {
|
|
|
48
47
|
chunkType?: ChunkType;
|
|
49
48
|
secondaryTaxonomy?: ImageTaxonomy;
|
|
50
49
|
pageDpi?: number;
|
|
51
|
-
conversionEngine?: ConversionEngine;
|
|
52
50
|
}
|
|
53
51
|
export interface ListDocumentsRequest {
|
|
54
52
|
parentPathPartId?: string | null;
|
|
@@ -160,7 +158,6 @@ export interface DocumentsApiInterface {
|
|
|
160
158
|
* @param {ChunkType} [chunkType]
|
|
161
159
|
* @param {ImageTaxonomy} [secondaryTaxonomy]
|
|
162
160
|
* @param {number} [pageDpi] DPI for PDF page screenshots (default 72, min 36, max 216).
|
|
163
|
-
* @param {ConversionEngine} [conversionEngine]
|
|
164
161
|
* @throws {RequiredError}
|
|
165
162
|
* @memberof DocumentsApiInterface
|
|
166
163
|
*/
|
|
@@ -177,7 +174,6 @@ export interface DocumentsApiInterface {
|
|
|
177
174
|
* @param {ChunkType} [chunkType]
|
|
178
175
|
* @param {ImageTaxonomy} [secondaryTaxonomy]
|
|
179
176
|
* @param {number} [pageDpi] DPI for PDF page screenshots (default 72, min 36, max 216).
|
|
180
|
-
* @param {ConversionEngine} [conversionEngine]
|
|
181
177
|
* @param {*} [options] Override http request option.
|
|
182
178
|
* @throws {RequiredError}
|
|
183
179
|
* @memberof DocumentsApiInterface
|
|
@@ -198,7 +194,6 @@ export interface DocumentsApiInterface {
|
|
|
198
194
|
* @param {ChunkType} [chunkType]
|
|
199
195
|
* @param {ImageTaxonomy} [secondaryTaxonomy]
|
|
200
196
|
* @param {number} [pageDpi] DPI for PDF page screenshots (default 72, min 36, max 216).
|
|
201
|
-
* @param {ConversionEngine} [conversionEngine]
|
|
202
197
|
* @throws {RequiredError}
|
|
203
198
|
* @memberof DocumentsApiInterface
|
|
204
199
|
*/
|
|
@@ -214,7 +209,6 @@ export interface DocumentsApiInterface {
|
|
|
214
209
|
* @param {ChunkType} [chunkType]
|
|
215
210
|
* @param {ImageTaxonomy} [secondaryTaxonomy]
|
|
216
211
|
* @param {number} [pageDpi] DPI for PDF page screenshots (default 72, min 36, max 216).
|
|
217
|
-
* @param {ConversionEngine} [conversionEngine]
|
|
218
212
|
* @param {*} [options] Override http request option.
|
|
219
213
|
* @throws {RequiredError}
|
|
220
214
|
* @memberof DocumentsApiInterface
|
|
@@ -216,9 +216,6 @@ class DocumentsApi extends runtime.BaseAPI {
|
|
|
216
216
|
if (requestParameters['pageDpi'] != null) {
|
|
217
217
|
formParams.append('page_dpi', requestParameters['pageDpi']);
|
|
218
218
|
}
|
|
219
|
-
if (requestParameters['conversionEngine'] != null) {
|
|
220
|
-
formParams.append('conversion_engine', requestParameters['conversionEngine']);
|
|
221
|
-
}
|
|
222
219
|
let urlPath = `/v1/documents/ingest`;
|
|
223
220
|
return {
|
|
224
221
|
path: urlPath,
|
|
@@ -296,9 +293,6 @@ class DocumentsApi extends runtime.BaseAPI {
|
|
|
296
293
|
if (requestParameters['pageDpi'] != null) {
|
|
297
294
|
formParams.append('page_dpi', requestParameters['pageDpi']);
|
|
298
295
|
}
|
|
299
|
-
if (requestParameters['conversionEngine'] != null) {
|
|
300
|
-
formParams.append('conversion_engine', requestParameters['conversionEngine']);
|
|
301
|
-
}
|
|
302
296
|
let urlPath = `/v1/documents/{document_id}/ingest`;
|
|
303
297
|
urlPath = urlPath.replace(`{${"document_id"}}`, encodeURIComponent(String(requestParameters['documentId'])));
|
|
304
298
|
return {
|
|
@@ -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,
|
|
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;
|
|
@@ -37,7 +37,6 @@ export interface IngestDocumentRequest {
|
|
|
37
37
|
chunkType?: ChunkType;
|
|
38
38
|
secondaryTaxonomy?: ImageTaxonomy;
|
|
39
39
|
pageDpi?: number;
|
|
40
|
-
conversionEngine?: ConversionEngine;
|
|
41
40
|
}
|
|
42
41
|
export interface IngestDocumentVersionRequest {
|
|
43
42
|
documentId: string;
|
|
@@ -48,7 +47,6 @@ export interface IngestDocumentVersionRequest {
|
|
|
48
47
|
chunkType?: ChunkType;
|
|
49
48
|
secondaryTaxonomy?: ImageTaxonomy;
|
|
50
49
|
pageDpi?: number;
|
|
51
|
-
conversionEngine?: ConversionEngine;
|
|
52
50
|
}
|
|
53
51
|
export interface ListDocumentsRequest {
|
|
54
52
|
parentPathPartId?: string | null;
|
|
@@ -160,7 +158,6 @@ export interface DocumentsApiInterface {
|
|
|
160
158
|
* @param {ChunkType} [chunkType]
|
|
161
159
|
* @param {ImageTaxonomy} [secondaryTaxonomy]
|
|
162
160
|
* @param {number} [pageDpi] DPI for PDF page screenshots (default 72, min 36, max 216).
|
|
163
|
-
* @param {ConversionEngine} [conversionEngine]
|
|
164
161
|
* @throws {RequiredError}
|
|
165
162
|
* @memberof DocumentsApiInterface
|
|
166
163
|
*/
|
|
@@ -177,7 +174,6 @@ export interface DocumentsApiInterface {
|
|
|
177
174
|
* @param {ChunkType} [chunkType]
|
|
178
175
|
* @param {ImageTaxonomy} [secondaryTaxonomy]
|
|
179
176
|
* @param {number} [pageDpi] DPI for PDF page screenshots (default 72, min 36, max 216).
|
|
180
|
-
* @param {ConversionEngine} [conversionEngine]
|
|
181
177
|
* @param {*} [options] Override http request option.
|
|
182
178
|
* @throws {RequiredError}
|
|
183
179
|
* @memberof DocumentsApiInterface
|
|
@@ -198,7 +194,6 @@ export interface DocumentsApiInterface {
|
|
|
198
194
|
* @param {ChunkType} [chunkType]
|
|
199
195
|
* @param {ImageTaxonomy} [secondaryTaxonomy]
|
|
200
196
|
* @param {number} [pageDpi] DPI for PDF page screenshots (default 72, min 36, max 216).
|
|
201
|
-
* @param {ConversionEngine} [conversionEngine]
|
|
202
197
|
* @throws {RequiredError}
|
|
203
198
|
* @memberof DocumentsApiInterface
|
|
204
199
|
*/
|
|
@@ -214,7 +209,6 @@ export interface DocumentsApiInterface {
|
|
|
214
209
|
* @param {ChunkType} [chunkType]
|
|
215
210
|
* @param {ImageTaxonomy} [secondaryTaxonomy]
|
|
216
211
|
* @param {number} [pageDpi] DPI for PDF page screenshots (default 72, min 36, max 216).
|
|
217
|
-
* @param {ConversionEngine} [conversionEngine]
|
|
218
212
|
* @param {*} [options] Override http request option.
|
|
219
213
|
* @throws {RequiredError}
|
|
220
214
|
* @memberof DocumentsApiInterface
|
|
@@ -213,9 +213,6 @@ export class DocumentsApi extends runtime.BaseAPI {
|
|
|
213
213
|
if (requestParameters['pageDpi'] != null) {
|
|
214
214
|
formParams.append('page_dpi', requestParameters['pageDpi']);
|
|
215
215
|
}
|
|
216
|
-
if (requestParameters['conversionEngine'] != null) {
|
|
217
|
-
formParams.append('conversion_engine', requestParameters['conversionEngine']);
|
|
218
|
-
}
|
|
219
216
|
let urlPath = `/v1/documents/ingest`;
|
|
220
217
|
return {
|
|
221
218
|
path: urlPath,
|
|
@@ -293,9 +290,6 @@ export class DocumentsApi extends runtime.BaseAPI {
|
|
|
293
290
|
if (requestParameters['pageDpi'] != null) {
|
|
294
291
|
formParams.append('page_dpi', requestParameters['pageDpi']);
|
|
295
292
|
}
|
|
296
|
-
if (requestParameters['conversionEngine'] != null) {
|
|
297
|
-
formParams.append('conversion_engine', requestParameters['conversionEngine']);
|
|
298
|
-
}
|
|
299
293
|
let urlPath = `/v1/documents/{document_id}/ingest`;
|
|
300
294
|
urlPath = urlPath.replace(`{${"document_id"}}`, encodeURIComponent(String(requestParameters['documentId'])));
|
|
301
295
|
return {
|
|
@@ -10,7 +10,6 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { ImageTaxonomy } from './ImageTaxonomy';
|
|
13
|
-
import type { IngestionMode } from './IngestionMode';
|
|
14
13
|
import type { PolygonReference } from './PolygonReference';
|
|
15
14
|
/**
|
|
16
15
|
* Metadata for a chunk including source document references.
|
|
@@ -36,12 +35,6 @@ export interface ChunkMetadataInput {
|
|
|
36
35
|
* @memberof ChunkMetadataInput
|
|
37
36
|
*/
|
|
38
37
|
summary?: string | null;
|
|
39
|
-
/**
|
|
40
|
-
*
|
|
41
|
-
* @type {IngestionMode}
|
|
42
|
-
* @memberof ChunkMetadataInput
|
|
43
|
-
*/
|
|
44
|
-
ingestionMode?: IngestionMode;
|
|
45
38
|
/**
|
|
46
39
|
* S3 URI to extracted PDF text used for LLM grounding during enrichment
|
|
47
40
|
* @type {string}
|
|
@@ -12,7 +12,6 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
import { ImageTaxonomyFromJSON, ImageTaxonomyToJSON, } from './ImageTaxonomy';
|
|
15
|
-
import { IngestionModeFromJSON, IngestionModeToJSON, } from './IngestionMode';
|
|
16
15
|
import { PolygonReferenceFromJSON, PolygonReferenceToJSON, } from './PolygonReference';
|
|
17
16
|
/**
|
|
18
17
|
* Check if a given object implements the ChunkMetadataInput interface.
|
|
@@ -31,7 +30,6 @@ export function ChunkMetadataInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
31
30
|
'polygons': json['polygons'] == null ? undefined : (json['polygons'].map(PolygonReferenceFromJSON)),
|
|
32
31
|
's3Urls': json['s3_urls'] == null ? undefined : json['s3_urls'],
|
|
33
32
|
'summary': json['summary'] == null ? undefined : json['summary'],
|
|
34
|
-
'ingestionMode': json['ingestion_mode'] == null ? undefined : IngestionModeFromJSON(json['ingestion_mode']),
|
|
35
33
|
'extractedTextS3Uri': json['extracted_text_s3_uri'] == null ? undefined : json['extracted_text_s3_uri'],
|
|
36
34
|
'secondaryTaxonomy': json['secondary_taxonomy'] == null ? undefined : ImageTaxonomyFromJSON(json['secondary_taxonomy']),
|
|
37
35
|
'sheetName': json['sheet_name'] == null ? undefined : json['sheet_name'],
|
|
@@ -56,7 +54,6 @@ export function ChunkMetadataInputToJSONTyped(value, ignoreDiscriminator = false
|
|
|
56
54
|
'polygons': value['polygons'] == null ? undefined : (value['polygons'].map(PolygonReferenceToJSON)),
|
|
57
55
|
's3_urls': value['s3Urls'],
|
|
58
56
|
'summary': value['summary'],
|
|
59
|
-
'ingestion_mode': IngestionModeToJSON(value['ingestionMode']),
|
|
60
57
|
'extracted_text_s3_uri': value['extractedTextS3Uri'],
|
|
61
58
|
'secondary_taxonomy': ImageTaxonomyToJSON(value['secondaryTaxonomy']),
|
|
62
59
|
'sheet_name': value['sheetName'],
|
|
@@ -10,7 +10,6 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { ImageTaxonomy } from './ImageTaxonomy';
|
|
13
|
-
import type { IngestionMode } from './IngestionMode';
|
|
14
13
|
import type { PolygonReference } from './PolygonReference';
|
|
15
14
|
/**
|
|
16
15
|
* Metadata for a chunk including source document references.
|
|
@@ -36,12 +35,6 @@ export interface ChunkMetadataOutput {
|
|
|
36
35
|
* @memberof ChunkMetadataOutput
|
|
37
36
|
*/
|
|
38
37
|
summary?: string | null;
|
|
39
|
-
/**
|
|
40
|
-
*
|
|
41
|
-
* @type {IngestionMode}
|
|
42
|
-
* @memberof ChunkMetadataOutput
|
|
43
|
-
*/
|
|
44
|
-
ingestionMode?: IngestionMode;
|
|
45
38
|
/**
|
|
46
39
|
* S3 URI to extracted PDF text used for LLM grounding during enrichment
|
|
47
40
|
* @type {string}
|
|
@@ -12,7 +12,6 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
import { ImageTaxonomyFromJSON, ImageTaxonomyToJSON, } from './ImageTaxonomy';
|
|
15
|
-
import { IngestionModeFromJSON, IngestionModeToJSON, } from './IngestionMode';
|
|
16
15
|
import { PolygonReferenceFromJSON, PolygonReferenceToJSON, } from './PolygonReference';
|
|
17
16
|
/**
|
|
18
17
|
* Check if a given object implements the ChunkMetadataOutput interface.
|
|
@@ -31,7 +30,6 @@ export function ChunkMetadataOutputFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
31
30
|
'polygons': json['polygons'] == null ? undefined : (json['polygons'].map(PolygonReferenceFromJSON)),
|
|
32
31
|
's3Urls': json['s3_urls'] == null ? undefined : json['s3_urls'],
|
|
33
32
|
'summary': json['summary'] == null ? undefined : json['summary'],
|
|
34
|
-
'ingestionMode': json['ingestion_mode'] == null ? undefined : IngestionModeFromJSON(json['ingestion_mode']),
|
|
35
33
|
'extractedTextS3Uri': json['extracted_text_s3_uri'] == null ? undefined : json['extracted_text_s3_uri'],
|
|
36
34
|
'secondaryTaxonomy': json['secondary_taxonomy'] == null ? undefined : ImageTaxonomyFromJSON(json['secondary_taxonomy']),
|
|
37
35
|
'sheetName': json['sheet_name'] == null ? undefined : json['sheet_name'],
|
|
@@ -56,7 +54,6 @@ export function ChunkMetadataOutputToJSONTyped(value, ignoreDiscriminator = fals
|
|
|
56
54
|
'polygons': value['polygons'] == null ? undefined : (value['polygons'].map(PolygonReferenceToJSON)),
|
|
57
55
|
's3_urls': value['s3Urls'],
|
|
58
56
|
'summary': value['summary'],
|
|
59
|
-
'ingestion_mode': IngestionModeToJSON(value['ingestionMode']),
|
|
60
57
|
'extracted_text_s3_uri': value['extractedTextS3Uri'],
|
|
61
58
|
'secondary_taxonomy': ImageTaxonomyToJSON(value['secondaryTaxonomy']),
|
|
62
59
|
'sheet_name': value['sheetName'],
|
|
@@ -10,11 +10,12 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* Ingestion pipeline mode — determines conversion and chunking strategy.
|
|
14
14
|
* @export
|
|
15
15
|
*/
|
|
16
16
|
export declare const IngestionMode: {
|
|
17
|
-
readonly
|
|
17
|
+
readonly HighAccuracy: "high_accuracy";
|
|
18
|
+
readonly Standard: "standard";
|
|
18
19
|
readonly SingleChunk: "single_chunk";
|
|
19
20
|
};
|
|
20
21
|
export type IngestionMode = typeof IngestionMode[keyof typeof IngestionMode];
|
|
@@ -12,11 +12,12 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
15
|
+
* Ingestion pipeline mode — determines conversion and chunking strategy.
|
|
16
16
|
* @export
|
|
17
17
|
*/
|
|
18
18
|
export const IngestionMode = {
|
|
19
|
-
|
|
19
|
+
HighAccuracy: 'high_accuracy',
|
|
20
|
+
Standard: 'standard',
|
|
20
21
|
SingleChunk: 'single_chunk'
|
|
21
22
|
};
|
|
22
23
|
export function instanceOfIngestionMode(value) {
|
|
@@ -10,7 +10,6 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { PipelineStatus } from './PipelineStatus';
|
|
13
|
-
import type { ConversionEngine } from './ConversionEngine';
|
|
14
13
|
import type { IngestionMode } from './IngestionMode';
|
|
15
14
|
import type { ChunkType } from './ChunkType';
|
|
16
15
|
/**
|
|
@@ -38,7 +37,7 @@ export interface PipelineState {
|
|
|
38
37
|
*/
|
|
39
38
|
lastStateUpdateTimestamp?: Date | null;
|
|
40
39
|
/**
|
|
41
|
-
* Name of the last activity that executed (e.g., '
|
|
40
|
+
* Name of the last activity that executed (e.g., 'document_preparation')
|
|
42
41
|
* @type {string}
|
|
43
42
|
* @memberof PipelineState
|
|
44
43
|
*/
|
|
@@ -79,12 +78,6 @@ export interface PipelineState {
|
|
|
79
78
|
* @memberof PipelineState
|
|
80
79
|
*/
|
|
81
80
|
chunkType?: ChunkType;
|
|
82
|
-
/**
|
|
83
|
-
*
|
|
84
|
-
* @type {ConversionEngine}
|
|
85
|
-
* @memberof PipelineState
|
|
86
|
-
*/
|
|
87
|
-
conversionEngine?: ConversionEngine;
|
|
88
81
|
}
|
|
89
82
|
/**
|
|
90
83
|
* Check if a given object implements the PipelineState interface.
|
|
@@ -12,7 +12,6 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
import { PipelineStatusFromJSON, PipelineStatusToJSON, } from './PipelineStatus';
|
|
15
|
-
import { ConversionEngineFromJSON, ConversionEngineToJSON, } from './ConversionEngine';
|
|
16
15
|
import { IngestionModeFromJSON, IngestionModeToJSON, } from './IngestionMode';
|
|
17
16
|
import { ChunkTypeFromJSON, ChunkTypeToJSON, } from './ChunkType';
|
|
18
17
|
/**
|
|
@@ -41,7 +40,6 @@ export function PipelineStateFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
41
40
|
'pageDpi': json['page_dpi'] == null ? undefined : json['page_dpi'],
|
|
42
41
|
'ingestionMode': json['ingestion_mode'] == null ? undefined : IngestionModeFromJSON(json['ingestion_mode']),
|
|
43
42
|
'chunkType': json['chunk_type'] == null ? undefined : ChunkTypeFromJSON(json['chunk_type']),
|
|
44
|
-
'conversionEngine': json['conversion_engine'] == null ? undefined : ConversionEngineFromJSON(json['conversion_engine']),
|
|
45
43
|
};
|
|
46
44
|
}
|
|
47
45
|
export function PipelineStateToJSON(json) {
|
|
@@ -62,7 +60,6 @@ export function PipelineStateToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
62
60
|
'page_dpi': value['pageDpi'],
|
|
63
61
|
'ingestion_mode': IngestionModeToJSON(value['ingestionMode']),
|
|
64
62
|
'chunk_type': ChunkTypeToJSON(value['chunkType']),
|
|
65
|
-
'conversion_engine': ConversionEngineToJSON(value['conversionEngine']),
|
|
66
63
|
};
|
|
67
64
|
}
|
|
68
65
|
export const PipelineStatePropertyValidationAttributesMap = {};
|
|
@@ -17,7 +17,6 @@ export * from './ChunkSearchRequest';
|
|
|
17
17
|
export * from './ChunkType';
|
|
18
18
|
export * from './Citation';
|
|
19
19
|
export * from './ClearVersionContentsResponse';
|
|
20
|
-
export * from './ConversionEngine';
|
|
21
20
|
export * from './CreateApiKeyRequest';
|
|
22
21
|
export * from './CreateApiKeyResponse';
|
|
23
22
|
export * from './CreateChunkLineageRequest';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -19,7 +19,6 @@ export * from './ChunkSearchRequest';
|
|
|
19
19
|
export * from './ChunkType';
|
|
20
20
|
export * from './Citation';
|
|
21
21
|
export * from './ClearVersionContentsResponse';
|
|
22
|
-
export * from './ConversionEngine';
|
|
23
22
|
export * from './CreateApiKeyRequest';
|
|
24
23
|
export * from './CreateApiKeyResponse';
|
|
25
24
|
export * from './CreateChunkLineageRequest';
|
|
@@ -10,7 +10,6 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { ImageTaxonomy } from './ImageTaxonomy';
|
|
13
|
-
import type { IngestionMode } from './IngestionMode';
|
|
14
13
|
import type { PolygonReference } from './PolygonReference';
|
|
15
14
|
/**
|
|
16
15
|
* Metadata for a chunk including source document references.
|
|
@@ -36,12 +35,6 @@ export interface ChunkMetadataInput {
|
|
|
36
35
|
* @memberof ChunkMetadataInput
|
|
37
36
|
*/
|
|
38
37
|
summary?: string | null;
|
|
39
|
-
/**
|
|
40
|
-
*
|
|
41
|
-
* @type {IngestionMode}
|
|
42
|
-
* @memberof ChunkMetadataInput
|
|
43
|
-
*/
|
|
44
|
-
ingestionMode?: IngestionMode;
|
|
45
38
|
/**
|
|
46
39
|
* S3 URI to extracted PDF text used for LLM grounding during enrichment
|
|
47
40
|
* @type {string}
|
|
@@ -20,7 +20,6 @@ exports.ChunkMetadataInputFromJSONTyped = ChunkMetadataInputFromJSONTyped;
|
|
|
20
20
|
exports.ChunkMetadataInputToJSON = ChunkMetadataInputToJSON;
|
|
21
21
|
exports.ChunkMetadataInputToJSONTyped = ChunkMetadataInputToJSONTyped;
|
|
22
22
|
const ImageTaxonomy_1 = require("./ImageTaxonomy");
|
|
23
|
-
const IngestionMode_1 = require("./IngestionMode");
|
|
24
23
|
const PolygonReference_1 = require("./PolygonReference");
|
|
25
24
|
/**
|
|
26
25
|
* Check if a given object implements the ChunkMetadataInput interface.
|
|
@@ -39,7 +38,6 @@ function ChunkMetadataInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
39
38
|
'polygons': json['polygons'] == null ? undefined : (json['polygons'].map(PolygonReference_1.PolygonReferenceFromJSON)),
|
|
40
39
|
's3Urls': json['s3_urls'] == null ? undefined : json['s3_urls'],
|
|
41
40
|
'summary': json['summary'] == null ? undefined : json['summary'],
|
|
42
|
-
'ingestionMode': json['ingestion_mode'] == null ? undefined : (0, IngestionMode_1.IngestionModeFromJSON)(json['ingestion_mode']),
|
|
43
41
|
'extractedTextS3Uri': json['extracted_text_s3_uri'] == null ? undefined : json['extracted_text_s3_uri'],
|
|
44
42
|
'secondaryTaxonomy': json['secondary_taxonomy'] == null ? undefined : (0, ImageTaxonomy_1.ImageTaxonomyFromJSON)(json['secondary_taxonomy']),
|
|
45
43
|
'sheetName': json['sheet_name'] == null ? undefined : json['sheet_name'],
|
|
@@ -64,7 +62,6 @@ function ChunkMetadataInputToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
64
62
|
'polygons': value['polygons'] == null ? undefined : (value['polygons'].map(PolygonReference_1.PolygonReferenceToJSON)),
|
|
65
63
|
's3_urls': value['s3Urls'],
|
|
66
64
|
'summary': value['summary'],
|
|
67
|
-
'ingestion_mode': (0, IngestionMode_1.IngestionModeToJSON)(value['ingestionMode']),
|
|
68
65
|
'extracted_text_s3_uri': value['extractedTextS3Uri'],
|
|
69
66
|
'secondary_taxonomy': (0, ImageTaxonomy_1.ImageTaxonomyToJSON)(value['secondaryTaxonomy']),
|
|
70
67
|
'sheet_name': value['sheetName'],
|
|
@@ -10,7 +10,6 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { ImageTaxonomy } from './ImageTaxonomy';
|
|
13
|
-
import type { IngestionMode } from './IngestionMode';
|
|
14
13
|
import type { PolygonReference } from './PolygonReference';
|
|
15
14
|
/**
|
|
16
15
|
* Metadata for a chunk including source document references.
|
|
@@ -36,12 +35,6 @@ export interface ChunkMetadataOutput {
|
|
|
36
35
|
* @memberof ChunkMetadataOutput
|
|
37
36
|
*/
|
|
38
37
|
summary?: string | null;
|
|
39
|
-
/**
|
|
40
|
-
*
|
|
41
|
-
* @type {IngestionMode}
|
|
42
|
-
* @memberof ChunkMetadataOutput
|
|
43
|
-
*/
|
|
44
|
-
ingestionMode?: IngestionMode;
|
|
45
38
|
/**
|
|
46
39
|
* S3 URI to extracted PDF text used for LLM grounding during enrichment
|
|
47
40
|
* @type {string}
|
|
@@ -20,7 +20,6 @@ exports.ChunkMetadataOutputFromJSONTyped = ChunkMetadataOutputFromJSONTyped;
|
|
|
20
20
|
exports.ChunkMetadataOutputToJSON = ChunkMetadataOutputToJSON;
|
|
21
21
|
exports.ChunkMetadataOutputToJSONTyped = ChunkMetadataOutputToJSONTyped;
|
|
22
22
|
const ImageTaxonomy_1 = require("./ImageTaxonomy");
|
|
23
|
-
const IngestionMode_1 = require("./IngestionMode");
|
|
24
23
|
const PolygonReference_1 = require("./PolygonReference");
|
|
25
24
|
/**
|
|
26
25
|
* Check if a given object implements the ChunkMetadataOutput interface.
|
|
@@ -39,7 +38,6 @@ function ChunkMetadataOutputFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
39
38
|
'polygons': json['polygons'] == null ? undefined : (json['polygons'].map(PolygonReference_1.PolygonReferenceFromJSON)),
|
|
40
39
|
's3Urls': json['s3_urls'] == null ? undefined : json['s3_urls'],
|
|
41
40
|
'summary': json['summary'] == null ? undefined : json['summary'],
|
|
42
|
-
'ingestionMode': json['ingestion_mode'] == null ? undefined : (0, IngestionMode_1.IngestionModeFromJSON)(json['ingestion_mode']),
|
|
43
41
|
'extractedTextS3Uri': json['extracted_text_s3_uri'] == null ? undefined : json['extracted_text_s3_uri'],
|
|
44
42
|
'secondaryTaxonomy': json['secondary_taxonomy'] == null ? undefined : (0, ImageTaxonomy_1.ImageTaxonomyFromJSON)(json['secondary_taxonomy']),
|
|
45
43
|
'sheetName': json['sheet_name'] == null ? undefined : json['sheet_name'],
|
|
@@ -64,7 +62,6 @@ function ChunkMetadataOutputToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
64
62
|
'polygons': value['polygons'] == null ? undefined : (value['polygons'].map(PolygonReference_1.PolygonReferenceToJSON)),
|
|
65
63
|
's3_urls': value['s3Urls'],
|
|
66
64
|
'summary': value['summary'],
|
|
67
|
-
'ingestion_mode': (0, IngestionMode_1.IngestionModeToJSON)(value['ingestionMode']),
|
|
68
65
|
'extracted_text_s3_uri': value['extractedTextS3Uri'],
|
|
69
66
|
'secondary_taxonomy': (0, ImageTaxonomy_1.ImageTaxonomyToJSON)(value['secondaryTaxonomy']),
|
|
70
67
|
'sheet_name': value['sheetName'],
|
|
@@ -10,11 +10,12 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* Ingestion pipeline mode — determines conversion and chunking strategy.
|
|
14
14
|
* @export
|
|
15
15
|
*/
|
|
16
16
|
export declare const IngestionMode: {
|
|
17
|
-
readonly
|
|
17
|
+
readonly HighAccuracy: "high_accuracy";
|
|
18
|
+
readonly Standard: "standard";
|
|
18
19
|
readonly SingleChunk: "single_chunk";
|
|
19
20
|
};
|
|
20
21
|
export type IngestionMode = typeof IngestionMode[keyof typeof IngestionMode];
|
|
@@ -20,11 +20,12 @@ exports.IngestionModeFromJSONTyped = IngestionModeFromJSONTyped;
|
|
|
20
20
|
exports.IngestionModeToJSON = IngestionModeToJSON;
|
|
21
21
|
exports.IngestionModeToJSONTyped = IngestionModeToJSONTyped;
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
23
|
+
* Ingestion pipeline mode — determines conversion and chunking strategy.
|
|
24
24
|
* @export
|
|
25
25
|
*/
|
|
26
26
|
exports.IngestionMode = {
|
|
27
|
-
|
|
27
|
+
HighAccuracy: 'high_accuracy',
|
|
28
|
+
Standard: 'standard',
|
|
28
29
|
SingleChunk: 'single_chunk'
|
|
29
30
|
};
|
|
30
31
|
function instanceOfIngestionMode(value) {
|
|
@@ -10,7 +10,6 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { PipelineStatus } from './PipelineStatus';
|
|
13
|
-
import type { ConversionEngine } from './ConversionEngine';
|
|
14
13
|
import type { IngestionMode } from './IngestionMode';
|
|
15
14
|
import type { ChunkType } from './ChunkType';
|
|
16
15
|
/**
|
|
@@ -38,7 +37,7 @@ export interface PipelineState {
|
|
|
38
37
|
*/
|
|
39
38
|
lastStateUpdateTimestamp?: Date | null;
|
|
40
39
|
/**
|
|
41
|
-
* Name of the last activity that executed (e.g., '
|
|
40
|
+
* Name of the last activity that executed (e.g., 'document_preparation')
|
|
42
41
|
* @type {string}
|
|
43
42
|
* @memberof PipelineState
|
|
44
43
|
*/
|
|
@@ -79,12 +78,6 @@ export interface PipelineState {
|
|
|
79
78
|
* @memberof PipelineState
|
|
80
79
|
*/
|
|
81
80
|
chunkType?: ChunkType;
|
|
82
|
-
/**
|
|
83
|
-
*
|
|
84
|
-
* @type {ConversionEngine}
|
|
85
|
-
* @memberof PipelineState
|
|
86
|
-
*/
|
|
87
|
-
conversionEngine?: ConversionEngine;
|
|
88
81
|
}
|
|
89
82
|
/**
|
|
90
83
|
* Check if a given object implements the PipelineState interface.
|
|
@@ -20,7 +20,6 @@ exports.PipelineStateFromJSONTyped = PipelineStateFromJSONTyped;
|
|
|
20
20
|
exports.PipelineStateToJSON = PipelineStateToJSON;
|
|
21
21
|
exports.PipelineStateToJSONTyped = PipelineStateToJSONTyped;
|
|
22
22
|
const PipelineStatus_1 = require("./PipelineStatus");
|
|
23
|
-
const ConversionEngine_1 = require("./ConversionEngine");
|
|
24
23
|
const IngestionMode_1 = require("./IngestionMode");
|
|
25
24
|
const ChunkType_1 = require("./ChunkType");
|
|
26
25
|
/**
|
|
@@ -49,7 +48,6 @@ function PipelineStateFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
49
48
|
'pageDpi': json['page_dpi'] == null ? undefined : json['page_dpi'],
|
|
50
49
|
'ingestionMode': json['ingestion_mode'] == null ? undefined : (0, IngestionMode_1.IngestionModeFromJSON)(json['ingestion_mode']),
|
|
51
50
|
'chunkType': json['chunk_type'] == null ? undefined : (0, ChunkType_1.ChunkTypeFromJSON)(json['chunk_type']),
|
|
52
|
-
'conversionEngine': json['conversion_engine'] == null ? undefined : (0, ConversionEngine_1.ConversionEngineFromJSON)(json['conversion_engine']),
|
|
53
51
|
};
|
|
54
52
|
}
|
|
55
53
|
function PipelineStateToJSON(json) {
|
|
@@ -70,7 +68,6 @@ function PipelineStateToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
70
68
|
'page_dpi': value['pageDpi'],
|
|
71
69
|
'ingestion_mode': (0, IngestionMode_1.IngestionModeToJSON)(value['ingestionMode']),
|
|
72
70
|
'chunk_type': (0, ChunkType_1.ChunkTypeToJSON)(value['chunkType']),
|
|
73
|
-
'conversion_engine': (0, ConversionEngine_1.ConversionEngineToJSON)(value['conversionEngine']),
|
|
74
71
|
};
|
|
75
72
|
}
|
|
76
73
|
exports.PipelineStatePropertyValidationAttributesMap = {};
|
package/dist/models/index.d.ts
CHANGED
|
@@ -17,7 +17,6 @@ export * from './ChunkSearchRequest';
|
|
|
17
17
|
export * from './ChunkType';
|
|
18
18
|
export * from './Citation';
|
|
19
19
|
export * from './ClearVersionContentsResponse';
|
|
20
|
-
export * from './ConversionEngine';
|
|
21
20
|
export * from './CreateApiKeyRequest';
|
|
22
21
|
export * from './CreateApiKeyResponse';
|
|
23
22
|
export * from './CreateChunkLineageRequest';
|
package/dist/models/index.js
CHANGED
|
@@ -35,7 +35,6 @@ __exportStar(require("./ChunkSearchRequest"), exports);
|
|
|
35
35
|
__exportStar(require("./ChunkType"), exports);
|
|
36
36
|
__exportStar(require("./Citation"), exports);
|
|
37
37
|
__exportStar(require("./ClearVersionContentsResponse"), exports);
|
|
38
|
-
__exportStar(require("./ConversionEngine"), exports);
|
|
39
38
|
__exportStar(require("./CreateApiKeyRequest"), exports);
|
|
40
39
|
__exportStar(require("./CreateApiKeyResponse"), exports);
|
|
41
40
|
__exportStar(require("./CreateChunkLineageRequest"), exports);
|
|
@@ -10,7 +10,6 @@ Name | Type
|
|
|
10
10
|
`polygons` | [Array<PolygonReference>](PolygonReference.md)
|
|
11
11
|
`s3Urls` | Array<string>
|
|
12
12
|
`summary` | string
|
|
13
|
-
`ingestionMode` | [IngestionMode](IngestionMode.md)
|
|
14
13
|
`extractedTextS3Uri` | string
|
|
15
14
|
`secondaryTaxonomy` | [ImageTaxonomy](ImageTaxonomy.md)
|
|
16
15
|
`sheetName` | string
|
|
@@ -33,7 +32,6 @@ const example = {
|
|
|
33
32
|
"polygons": null,
|
|
34
33
|
"s3Urls": null,
|
|
35
34
|
"summary": null,
|
|
36
|
-
"ingestionMode": null,
|
|
37
35
|
"extractedTextS3Uri": null,
|
|
38
36
|
"secondaryTaxonomy": null,
|
|
39
37
|
"sheetName": null,
|
|
@@ -10,7 +10,6 @@ Name | Type
|
|
|
10
10
|
`polygons` | [Array<PolygonReference>](PolygonReference.md)
|
|
11
11
|
`s3Urls` | Array<string>
|
|
12
12
|
`summary` | string
|
|
13
|
-
`ingestionMode` | [IngestionMode](IngestionMode.md)
|
|
14
13
|
`extractedTextS3Uri` | string
|
|
15
14
|
`secondaryTaxonomy` | [ImageTaxonomy](ImageTaxonomy.md)
|
|
16
15
|
`sheetName` | string
|
|
@@ -33,7 +32,6 @@ const example = {
|
|
|
33
32
|
"polygons": null,
|
|
34
33
|
"s3Urls": null,
|
|
35
34
|
"summary": null,
|
|
36
|
-
"ingestionMode": null,
|
|
37
35
|
"extractedTextS3Uri": null,
|
|
38
36
|
"secondaryTaxonomy": null,
|
|
39
37
|
"sheetName": null,
|
package/docs/DocumentsApi.md
CHANGED
|
@@ -241,7 +241,7 @@ No authorization required
|
|
|
241
241
|
|
|
242
242
|
## ingestDocument
|
|
243
243
|
|
|
244
|
-
> IngestDocumentResponse ingestDocument(file, pathPartId, authorization, ksUat, name, ingestionMode, chunkType, secondaryTaxonomy, pageDpi
|
|
244
|
+
> IngestDocumentResponse ingestDocument(file, pathPartId, authorization, ksUat, name, ingestionMode, chunkType, secondaryTaxonomy, pageDpi)
|
|
245
245
|
|
|
246
246
|
Ingest Document Handler
|
|
247
247
|
|
|
@@ -279,8 +279,6 @@ async function example() {
|
|
|
279
279
|
secondaryTaxonomy: ...,
|
|
280
280
|
// number | DPI for PDF page screenshots (default 72, min 36, max 216). (optional)
|
|
281
281
|
pageDpi: 56,
|
|
282
|
-
// ConversionEngine (optional)
|
|
283
|
-
conversionEngine: ...,
|
|
284
282
|
} satisfies IngestDocumentRequest;
|
|
285
283
|
|
|
286
284
|
try {
|
|
@@ -305,11 +303,10 @@ example().catch(console.error);
|
|
|
305
303
|
| **authorization** | `string` | | [Optional] [Defaults to `undefined`] |
|
|
306
304
|
| **ksUat** | `string` | | [Optional] [Defaults to `undefined`] |
|
|
307
305
|
| **name** | `string` | Document name (defaults to filename) | [Optional] [Defaults to `undefined`] |
|
|
308
|
-
| **ingestionMode** | `IngestionMode` | | [Optional] [Defaults to `undefined`] [Enum:
|
|
306
|
+
| **ingestionMode** | `IngestionMode` | | [Optional] [Defaults to `undefined`] [Enum: high_accuracy, standard, single_chunk] |
|
|
309
307
|
| **chunkType** | `ChunkType` | | [Optional] [Defaults to `undefined`] [Enum: TEXT, TABLE, IMAGE, HTML, UNKNOWN] |
|
|
310
308
|
| **secondaryTaxonomy** | `ImageTaxonomy` | | [Optional] [Defaults to `undefined`] [Enum: picture, flowchart] |
|
|
311
309
|
| **pageDpi** | `number` | DPI for PDF page screenshots (default 72, min 36, max 216). | [Optional] [Defaults to `72`] |
|
|
312
|
-
| **conversionEngine** | `ConversionEngine` | | [Optional] [Defaults to `undefined`] [Enum: standard, high_accuracy] |
|
|
313
310
|
|
|
314
311
|
### Return type
|
|
315
312
|
|
|
@@ -336,7 +333,7 @@ No authorization required
|
|
|
336
333
|
|
|
337
334
|
## ingestDocumentVersion
|
|
338
335
|
|
|
339
|
-
> IngestDocumentResponse ingestDocumentVersion(documentId, file, authorization, ksUat, ingestionMode, chunkType, secondaryTaxonomy, pageDpi
|
|
336
|
+
> IngestDocumentResponse ingestDocumentVersion(documentId, file, authorization, ksUat, ingestionMode, chunkType, secondaryTaxonomy, pageDpi)
|
|
340
337
|
|
|
341
338
|
Ingest Document Version Handler
|
|
342
339
|
|
|
@@ -372,8 +369,6 @@ async function example() {
|
|
|
372
369
|
secondaryTaxonomy: ...,
|
|
373
370
|
// number | DPI for PDF page screenshots (default 72, min 36, max 216). (optional)
|
|
374
371
|
pageDpi: 56,
|
|
375
|
-
// ConversionEngine (optional)
|
|
376
|
-
conversionEngine: ...,
|
|
377
372
|
} satisfies IngestDocumentVersionRequest;
|
|
378
373
|
|
|
379
374
|
try {
|
|
@@ -397,11 +392,10 @@ example().catch(console.error);
|
|
|
397
392
|
| **file** | `Blob` | | [Defaults to `undefined`] |
|
|
398
393
|
| **authorization** | `string` | | [Optional] [Defaults to `undefined`] |
|
|
399
394
|
| **ksUat** | `string` | | [Optional] [Defaults to `undefined`] |
|
|
400
|
-
| **ingestionMode** | `IngestionMode` | | [Optional] [Defaults to `undefined`] [Enum:
|
|
395
|
+
| **ingestionMode** | `IngestionMode` | | [Optional] [Defaults to `undefined`] [Enum: high_accuracy, standard, single_chunk] |
|
|
401
396
|
| **chunkType** | `ChunkType` | | [Optional] [Defaults to `undefined`] [Enum: TEXT, TABLE, IMAGE, HTML, UNKNOWN] |
|
|
402
397
|
| **secondaryTaxonomy** | `ImageTaxonomy` | | [Optional] [Defaults to `undefined`] [Enum: picture, flowchart] |
|
|
403
398
|
| **pageDpi** | `number` | DPI for PDF page screenshots (default 72, min 36, max 216). | [Optional] [Defaults to `72`] |
|
|
404
|
-
| **conversionEngine** | `ConversionEngine` | | [Optional] [Defaults to `undefined`] [Enum: standard, high_accuracy] |
|
|
405
399
|
|
|
406
400
|
### Return type
|
|
407
401
|
|
package/docs/IngestionMode.md
CHANGED
package/docs/PipelineState.md
CHANGED
|
@@ -17,7 +17,6 @@ Name | Type
|
|
|
17
17
|
`pageDpi` | number
|
|
18
18
|
`ingestionMode` | [IngestionMode](IngestionMode.md)
|
|
19
19
|
`chunkType` | [ChunkType](ChunkType.md)
|
|
20
|
-
`conversionEngine` | [ConversionEngine](ConversionEngine.md)
|
|
21
20
|
|
|
22
21
|
## Example
|
|
23
22
|
|
|
@@ -36,7 +35,6 @@ const example = {
|
|
|
36
35
|
"pageDpi": null,
|
|
37
36
|
"ingestionMode": null,
|
|
38
37
|
"chunkType": null,
|
|
39
|
-
"conversionEngine": null,
|
|
40
38
|
} satisfies PipelineState
|
|
41
39
|
|
|
42
40
|
console.log(example)
|
package/package.json
CHANGED
package/src/apis/DocumentsApi.ts
CHANGED
|
@@ -16,7 +16,6 @@
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
18
|
ChunkType,
|
|
19
|
-
ConversionEngine,
|
|
20
19
|
CreateDocumentRequest,
|
|
21
20
|
DocumentResponse,
|
|
22
21
|
HTTPValidationError,
|
|
@@ -30,8 +29,6 @@ import type {
|
|
|
30
29
|
import {
|
|
31
30
|
ChunkTypeFromJSON,
|
|
32
31
|
ChunkTypeToJSON,
|
|
33
|
-
ConversionEngineFromJSON,
|
|
34
|
-
ConversionEngineToJSON,
|
|
35
32
|
CreateDocumentRequestFromJSON,
|
|
36
33
|
CreateDocumentRequestToJSON,
|
|
37
34
|
DocumentResponseFromJSON,
|
|
@@ -81,7 +78,6 @@ export interface IngestDocumentRequest {
|
|
|
81
78
|
chunkType?: ChunkType;
|
|
82
79
|
secondaryTaxonomy?: ImageTaxonomy;
|
|
83
80
|
pageDpi?: number;
|
|
84
|
-
conversionEngine?: ConversionEngine;
|
|
85
81
|
}
|
|
86
82
|
|
|
87
83
|
export interface IngestDocumentVersionRequest {
|
|
@@ -93,7 +89,6 @@ export interface IngestDocumentVersionRequest {
|
|
|
93
89
|
chunkType?: ChunkType;
|
|
94
90
|
secondaryTaxonomy?: ImageTaxonomy;
|
|
95
91
|
pageDpi?: number;
|
|
96
|
-
conversionEngine?: ConversionEngine;
|
|
97
92
|
}
|
|
98
93
|
|
|
99
94
|
export interface ListDocumentsRequest {
|
|
@@ -217,7 +212,6 @@ export interface DocumentsApiInterface {
|
|
|
217
212
|
* @param {ChunkType} [chunkType]
|
|
218
213
|
* @param {ImageTaxonomy} [secondaryTaxonomy]
|
|
219
214
|
* @param {number} [pageDpi] DPI for PDF page screenshots (default 72, min 36, max 216).
|
|
220
|
-
* @param {ConversionEngine} [conversionEngine]
|
|
221
215
|
* @throws {RequiredError}
|
|
222
216
|
* @memberof DocumentsApiInterface
|
|
223
217
|
*/
|
|
@@ -235,7 +229,6 @@ export interface DocumentsApiInterface {
|
|
|
235
229
|
* @param {ChunkType} [chunkType]
|
|
236
230
|
* @param {ImageTaxonomy} [secondaryTaxonomy]
|
|
237
231
|
* @param {number} [pageDpi] DPI for PDF page screenshots (default 72, min 36, max 216).
|
|
238
|
-
* @param {ConversionEngine} [conversionEngine]
|
|
239
232
|
* @param {*} [options] Override http request option.
|
|
240
233
|
* @throws {RequiredError}
|
|
241
234
|
* @memberof DocumentsApiInterface
|
|
@@ -258,7 +251,6 @@ export interface DocumentsApiInterface {
|
|
|
258
251
|
* @param {ChunkType} [chunkType]
|
|
259
252
|
* @param {ImageTaxonomy} [secondaryTaxonomy]
|
|
260
253
|
* @param {number} [pageDpi] DPI for PDF page screenshots (default 72, min 36, max 216).
|
|
261
|
-
* @param {ConversionEngine} [conversionEngine]
|
|
262
254
|
* @throws {RequiredError}
|
|
263
255
|
* @memberof DocumentsApiInterface
|
|
264
256
|
*/
|
|
@@ -275,7 +267,6 @@ export interface DocumentsApiInterface {
|
|
|
275
267
|
* @param {ChunkType} [chunkType]
|
|
276
268
|
* @param {ImageTaxonomy} [secondaryTaxonomy]
|
|
277
269
|
* @param {number} [pageDpi] DPI for PDF page screenshots (default 72, min 36, max 216).
|
|
278
|
-
* @param {ConversionEngine} [conversionEngine]
|
|
279
270
|
* @param {*} [options] Override http request option.
|
|
280
271
|
* @throws {RequiredError}
|
|
281
272
|
* @memberof DocumentsApiInterface
|
|
@@ -589,10 +580,6 @@ export class DocumentsApi extends runtime.BaseAPI implements DocumentsApiInterfa
|
|
|
589
580
|
formParams.append('page_dpi', requestParameters['pageDpi'] as any);
|
|
590
581
|
}
|
|
591
582
|
|
|
592
|
-
if (requestParameters['conversionEngine'] != null) {
|
|
593
|
-
formParams.append('conversion_engine', requestParameters['conversionEngine'] as any);
|
|
594
|
-
}
|
|
595
|
-
|
|
596
583
|
|
|
597
584
|
let urlPath = `/v1/documents/ingest`;
|
|
598
585
|
|
|
@@ -687,10 +674,6 @@ export class DocumentsApi extends runtime.BaseAPI implements DocumentsApiInterfa
|
|
|
687
674
|
formParams.append('page_dpi', requestParameters['pageDpi'] as any);
|
|
688
675
|
}
|
|
689
676
|
|
|
690
|
-
if (requestParameters['conversionEngine'] != null) {
|
|
691
|
-
formParams.append('conversion_engine', requestParameters['conversionEngine'] as any);
|
|
692
|
-
}
|
|
693
|
-
|
|
694
677
|
|
|
695
678
|
let urlPath = `/v1/documents/{document_id}/ingest`;
|
|
696
679
|
urlPath = urlPath.replace(`{${"document_id"}}`, encodeURIComponent(String(requestParameters['documentId'])));
|
|
@@ -20,13 +20,6 @@ import {
|
|
|
20
20
|
ImageTaxonomyToJSON,
|
|
21
21
|
ImageTaxonomyToJSONTyped,
|
|
22
22
|
} from './ImageTaxonomy';
|
|
23
|
-
import type { IngestionMode } from './IngestionMode';
|
|
24
|
-
import {
|
|
25
|
-
IngestionModeFromJSON,
|
|
26
|
-
IngestionModeFromJSONTyped,
|
|
27
|
-
IngestionModeToJSON,
|
|
28
|
-
IngestionModeToJSONTyped,
|
|
29
|
-
} from './IngestionMode';
|
|
30
23
|
import type { PolygonReference } from './PolygonReference';
|
|
31
24
|
import {
|
|
32
25
|
PolygonReferenceFromJSON,
|
|
@@ -59,12 +52,6 @@ export interface ChunkMetadataInput {
|
|
|
59
52
|
* @memberof ChunkMetadataInput
|
|
60
53
|
*/
|
|
61
54
|
summary?: string | null;
|
|
62
|
-
/**
|
|
63
|
-
*
|
|
64
|
-
* @type {IngestionMode}
|
|
65
|
-
* @memberof ChunkMetadataInput
|
|
66
|
-
*/
|
|
67
|
-
ingestionMode?: IngestionMode;
|
|
68
55
|
/**
|
|
69
56
|
* S3 URI to extracted PDF text used for LLM grounding during enrichment
|
|
70
57
|
* @type {string}
|
|
@@ -155,7 +142,6 @@ export function ChunkMetadataInputFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
155
142
|
'polygons': json['polygons'] == null ? undefined : ((json['polygons'] as Array<any>).map(PolygonReferenceFromJSON)),
|
|
156
143
|
's3Urls': json['s3_urls'] == null ? undefined : json['s3_urls'],
|
|
157
144
|
'summary': json['summary'] == null ? undefined : json['summary'],
|
|
158
|
-
'ingestionMode': json['ingestion_mode'] == null ? undefined : IngestionModeFromJSON(json['ingestion_mode']),
|
|
159
145
|
'extractedTextS3Uri': json['extracted_text_s3_uri'] == null ? undefined : json['extracted_text_s3_uri'],
|
|
160
146
|
'secondaryTaxonomy': json['secondary_taxonomy'] == null ? undefined : ImageTaxonomyFromJSON(json['secondary_taxonomy']),
|
|
161
147
|
'sheetName': json['sheet_name'] == null ? undefined : json['sheet_name'],
|
|
@@ -184,7 +170,6 @@ export function ChunkMetadataInputToJSONTyped(value?: ChunkMetadataInput | null,
|
|
|
184
170
|
'polygons': value['polygons'] == null ? undefined : ((value['polygons'] as Array<any>).map(PolygonReferenceToJSON)),
|
|
185
171
|
's3_urls': value['s3Urls'],
|
|
186
172
|
'summary': value['summary'],
|
|
187
|
-
'ingestion_mode': IngestionModeToJSON(value['ingestionMode']),
|
|
188
173
|
'extracted_text_s3_uri': value['extractedTextS3Uri'],
|
|
189
174
|
'secondary_taxonomy': ImageTaxonomyToJSON(value['secondaryTaxonomy']),
|
|
190
175
|
'sheet_name': value['sheetName'],
|
|
@@ -20,13 +20,6 @@ import {
|
|
|
20
20
|
ImageTaxonomyToJSON,
|
|
21
21
|
ImageTaxonomyToJSONTyped,
|
|
22
22
|
} from './ImageTaxonomy';
|
|
23
|
-
import type { IngestionMode } from './IngestionMode';
|
|
24
|
-
import {
|
|
25
|
-
IngestionModeFromJSON,
|
|
26
|
-
IngestionModeFromJSONTyped,
|
|
27
|
-
IngestionModeToJSON,
|
|
28
|
-
IngestionModeToJSONTyped,
|
|
29
|
-
} from './IngestionMode';
|
|
30
23
|
import type { PolygonReference } from './PolygonReference';
|
|
31
24
|
import {
|
|
32
25
|
PolygonReferenceFromJSON,
|
|
@@ -59,12 +52,6 @@ export interface ChunkMetadataOutput {
|
|
|
59
52
|
* @memberof ChunkMetadataOutput
|
|
60
53
|
*/
|
|
61
54
|
summary?: string | null;
|
|
62
|
-
/**
|
|
63
|
-
*
|
|
64
|
-
* @type {IngestionMode}
|
|
65
|
-
* @memberof ChunkMetadataOutput
|
|
66
|
-
*/
|
|
67
|
-
ingestionMode?: IngestionMode;
|
|
68
55
|
/**
|
|
69
56
|
* S3 URI to extracted PDF text used for LLM grounding during enrichment
|
|
70
57
|
* @type {string}
|
|
@@ -155,7 +142,6 @@ export function ChunkMetadataOutputFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
155
142
|
'polygons': json['polygons'] == null ? undefined : ((json['polygons'] as Array<any>).map(PolygonReferenceFromJSON)),
|
|
156
143
|
's3Urls': json['s3_urls'] == null ? undefined : json['s3_urls'],
|
|
157
144
|
'summary': json['summary'] == null ? undefined : json['summary'],
|
|
158
|
-
'ingestionMode': json['ingestion_mode'] == null ? undefined : IngestionModeFromJSON(json['ingestion_mode']),
|
|
159
145
|
'extractedTextS3Uri': json['extracted_text_s3_uri'] == null ? undefined : json['extracted_text_s3_uri'],
|
|
160
146
|
'secondaryTaxonomy': json['secondary_taxonomy'] == null ? undefined : ImageTaxonomyFromJSON(json['secondary_taxonomy']),
|
|
161
147
|
'sheetName': json['sheet_name'] == null ? undefined : json['sheet_name'],
|
|
@@ -184,7 +170,6 @@ export function ChunkMetadataOutputToJSONTyped(value?: ChunkMetadataOutput | nul
|
|
|
184
170
|
'polygons': value['polygons'] == null ? undefined : ((value['polygons'] as Array<any>).map(PolygonReferenceToJSON)),
|
|
185
171
|
's3_urls': value['s3Urls'],
|
|
186
172
|
'summary': value['summary'],
|
|
187
|
-
'ingestion_mode': IngestionModeToJSON(value['ingestionMode']),
|
|
188
173
|
'extracted_text_s3_uri': value['extractedTextS3Uri'],
|
|
189
174
|
'secondary_taxonomy': ImageTaxonomyToJSON(value['secondaryTaxonomy']),
|
|
190
175
|
'sheet_name': value['sheetName'],
|
|
@@ -14,11 +14,12 @@
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
/**
|
|
17
|
-
*
|
|
17
|
+
* Ingestion pipeline mode — determines conversion and chunking strategy.
|
|
18
18
|
* @export
|
|
19
19
|
*/
|
|
20
20
|
export const IngestionMode = {
|
|
21
|
-
|
|
21
|
+
HighAccuracy: 'high_accuracy',
|
|
22
|
+
Standard: 'standard',
|
|
22
23
|
SingleChunk: 'single_chunk'
|
|
23
24
|
} as const;
|
|
24
25
|
export type IngestionMode = typeof IngestionMode[keyof typeof IngestionMode];
|
|
@@ -20,13 +20,6 @@ import {
|
|
|
20
20
|
PipelineStatusToJSON,
|
|
21
21
|
PipelineStatusToJSONTyped,
|
|
22
22
|
} from './PipelineStatus';
|
|
23
|
-
import type { ConversionEngine } from './ConversionEngine';
|
|
24
|
-
import {
|
|
25
|
-
ConversionEngineFromJSON,
|
|
26
|
-
ConversionEngineFromJSONTyped,
|
|
27
|
-
ConversionEngineToJSON,
|
|
28
|
-
ConversionEngineToJSONTyped,
|
|
29
|
-
} from './ConversionEngine';
|
|
30
23
|
import type { IngestionMode } from './IngestionMode';
|
|
31
24
|
import {
|
|
32
25
|
IngestionModeFromJSON,
|
|
@@ -67,7 +60,7 @@ export interface PipelineState {
|
|
|
67
60
|
*/
|
|
68
61
|
lastStateUpdateTimestamp?: Date | null;
|
|
69
62
|
/**
|
|
70
|
-
* Name of the last activity that executed (e.g., '
|
|
63
|
+
* Name of the last activity that executed (e.g., 'document_preparation')
|
|
71
64
|
* @type {string}
|
|
72
65
|
* @memberof PipelineState
|
|
73
66
|
*/
|
|
@@ -108,12 +101,6 @@ export interface PipelineState {
|
|
|
108
101
|
* @memberof PipelineState
|
|
109
102
|
*/
|
|
110
103
|
chunkType?: ChunkType;
|
|
111
|
-
/**
|
|
112
|
-
*
|
|
113
|
-
* @type {ConversionEngine}
|
|
114
|
-
* @memberof PipelineState
|
|
115
|
-
*/
|
|
116
|
-
conversionEngine?: ConversionEngine;
|
|
117
104
|
}
|
|
118
105
|
|
|
119
106
|
|
|
@@ -146,7 +133,6 @@ export function PipelineStateFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|
|
146
133
|
'pageDpi': json['page_dpi'] == null ? undefined : json['page_dpi'],
|
|
147
134
|
'ingestionMode': json['ingestion_mode'] == null ? undefined : IngestionModeFromJSON(json['ingestion_mode']),
|
|
148
135
|
'chunkType': json['chunk_type'] == null ? undefined : ChunkTypeFromJSON(json['chunk_type']),
|
|
149
|
-
'conversionEngine': json['conversion_engine'] == null ? undefined : ConversionEngineFromJSON(json['conversion_engine']),
|
|
150
136
|
};
|
|
151
137
|
}
|
|
152
138
|
|
|
@@ -171,7 +157,6 @@ export function PipelineStateToJSONTyped(value?: PipelineState | null, ignoreDis
|
|
|
171
157
|
'page_dpi': value['pageDpi'],
|
|
172
158
|
'ingestion_mode': IngestionModeToJSON(value['ingestionMode']),
|
|
173
159
|
'chunk_type': ChunkTypeToJSON(value['chunkType']),
|
|
174
|
-
'conversion_engine': ConversionEngineToJSON(value['conversionEngine']),
|
|
175
160
|
};
|
|
176
161
|
}
|
|
177
162
|
|
package/src/models/index.ts
CHANGED
|
@@ -19,7 +19,6 @@ export * from './ChunkSearchRequest';
|
|
|
19
19
|
export * from './ChunkType';
|
|
20
20
|
export * from './Citation';
|
|
21
21
|
export * from './ClearVersionContentsResponse';
|
|
22
|
-
export * from './ConversionEngine';
|
|
23
22
|
export * from './CreateApiKeyRequest';
|
|
24
23
|
export * from './CreateApiKeyResponse';
|
|
25
24
|
export * from './CreateChunkLineageRequest';
|
|
@@ -1,25 +0,0 @@
|
|
|
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
|
-
* Document conversion engine selection.
|
|
14
|
-
* @export
|
|
15
|
-
*/
|
|
16
|
-
export declare const ConversionEngine: {
|
|
17
|
-
readonly Standard: "standard";
|
|
18
|
-
readonly HighAccuracy: "high_accuracy";
|
|
19
|
-
};
|
|
20
|
-
export type ConversionEngine = typeof ConversionEngine[keyof typeof ConversionEngine];
|
|
21
|
-
export declare function instanceOfConversionEngine(value: any): boolean;
|
|
22
|
-
export declare function ConversionEngineFromJSON(json: any): ConversionEngine;
|
|
23
|
-
export declare function ConversionEngineFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConversionEngine;
|
|
24
|
-
export declare function ConversionEngineToJSON(value?: ConversionEngine | null): any;
|
|
25
|
-
export declare function ConversionEngineToJSONTyped(value: any, ignoreDiscriminator: boolean): ConversionEngine;
|
|
@@ -1,43 +0,0 @@
|
|
|
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
|
-
* Document conversion engine selection.
|
|
16
|
-
* @export
|
|
17
|
-
*/
|
|
18
|
-
export const ConversionEngine = {
|
|
19
|
-
Standard: 'standard',
|
|
20
|
-
HighAccuracy: 'high_accuracy'
|
|
21
|
-
};
|
|
22
|
-
export function instanceOfConversionEngine(value) {
|
|
23
|
-
for (const key in ConversionEngine) {
|
|
24
|
-
if (Object.prototype.hasOwnProperty.call(ConversionEngine, key)) {
|
|
25
|
-
if (ConversionEngine[key] === value) {
|
|
26
|
-
return true;
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
return false;
|
|
31
|
-
}
|
|
32
|
-
export function ConversionEngineFromJSON(json) {
|
|
33
|
-
return ConversionEngineFromJSONTyped(json, false);
|
|
34
|
-
}
|
|
35
|
-
export function ConversionEngineFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
-
return json;
|
|
37
|
-
}
|
|
38
|
-
export function ConversionEngineToJSON(value) {
|
|
39
|
-
return value;
|
|
40
|
-
}
|
|
41
|
-
export function ConversionEngineToJSONTyped(value, ignoreDiscriminator) {
|
|
42
|
-
return value;
|
|
43
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
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
|
-
* Document conversion engine selection.
|
|
14
|
-
* @export
|
|
15
|
-
*/
|
|
16
|
-
export declare const ConversionEngine: {
|
|
17
|
-
readonly Standard: "standard";
|
|
18
|
-
readonly HighAccuracy: "high_accuracy";
|
|
19
|
-
};
|
|
20
|
-
export type ConversionEngine = typeof ConversionEngine[keyof typeof ConversionEngine];
|
|
21
|
-
export declare function instanceOfConversionEngine(value: any): boolean;
|
|
22
|
-
export declare function ConversionEngineFromJSON(json: any): ConversionEngine;
|
|
23
|
-
export declare function ConversionEngineFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConversionEngine;
|
|
24
|
-
export declare function ConversionEngineToJSON(value?: ConversionEngine | null): any;
|
|
25
|
-
export declare function ConversionEngineToJSONTyped(value: any, ignoreDiscriminator: boolean): ConversionEngine;
|
|
@@ -1,51 +0,0 @@
|
|
|
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.ConversionEngine = void 0;
|
|
17
|
-
exports.instanceOfConversionEngine = instanceOfConversionEngine;
|
|
18
|
-
exports.ConversionEngineFromJSON = ConversionEngineFromJSON;
|
|
19
|
-
exports.ConversionEngineFromJSONTyped = ConversionEngineFromJSONTyped;
|
|
20
|
-
exports.ConversionEngineToJSON = ConversionEngineToJSON;
|
|
21
|
-
exports.ConversionEngineToJSONTyped = ConversionEngineToJSONTyped;
|
|
22
|
-
/**
|
|
23
|
-
* Document conversion engine selection.
|
|
24
|
-
* @export
|
|
25
|
-
*/
|
|
26
|
-
exports.ConversionEngine = {
|
|
27
|
-
Standard: 'standard',
|
|
28
|
-
HighAccuracy: 'high_accuracy'
|
|
29
|
-
};
|
|
30
|
-
function instanceOfConversionEngine(value) {
|
|
31
|
-
for (const key in exports.ConversionEngine) {
|
|
32
|
-
if (Object.prototype.hasOwnProperty.call(exports.ConversionEngine, key)) {
|
|
33
|
-
if (exports.ConversionEngine[key] === value) {
|
|
34
|
-
return true;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
return false;
|
|
39
|
-
}
|
|
40
|
-
function ConversionEngineFromJSON(json) {
|
|
41
|
-
return ConversionEngineFromJSONTyped(json, false);
|
|
42
|
-
}
|
|
43
|
-
function ConversionEngineFromJSONTyped(json, ignoreDiscriminator) {
|
|
44
|
-
return json;
|
|
45
|
-
}
|
|
46
|
-
function ConversionEngineToJSON(value) {
|
|
47
|
-
return value;
|
|
48
|
-
}
|
|
49
|
-
function ConversionEngineToJSONTyped(value, ignoreDiscriminator) {
|
|
50
|
-
return value;
|
|
51
|
-
}
|
package/docs/ConversionEngine.md
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
# ConversionEngine
|
|
3
|
-
|
|
4
|
-
Document conversion engine selection.
|
|
5
|
-
|
|
6
|
-
## Properties
|
|
7
|
-
|
|
8
|
-
Name | Type
|
|
9
|
-
------------ | -------------
|
|
10
|
-
|
|
11
|
-
## Example
|
|
12
|
-
|
|
13
|
-
```typescript
|
|
14
|
-
import type { ConversionEngine } from '@knowledge-stack/ksapi'
|
|
15
|
-
|
|
16
|
-
// TODO: Update the object below with actual values
|
|
17
|
-
const example = {
|
|
18
|
-
} satisfies ConversionEngine
|
|
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 ConversionEngine
|
|
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
|
-
|
|
@@ -1,53 +0,0 @@
|
|
|
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
|
-
* Document conversion engine selection.
|
|
18
|
-
* @export
|
|
19
|
-
*/
|
|
20
|
-
export const ConversionEngine = {
|
|
21
|
-
Standard: 'standard',
|
|
22
|
-
HighAccuracy: 'high_accuracy'
|
|
23
|
-
} as const;
|
|
24
|
-
export type ConversionEngine = typeof ConversionEngine[keyof typeof ConversionEngine];
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
export function instanceOfConversionEngine(value: any): boolean {
|
|
28
|
-
for (const key in ConversionEngine) {
|
|
29
|
-
if (Object.prototype.hasOwnProperty.call(ConversionEngine, key)) {
|
|
30
|
-
if (ConversionEngine[key as keyof typeof ConversionEngine] === value) {
|
|
31
|
-
return true;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
return false;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
export function ConversionEngineFromJSON(json: any): ConversionEngine {
|
|
39
|
-
return ConversionEngineFromJSONTyped(json, false);
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
export function ConversionEngineFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConversionEngine {
|
|
43
|
-
return json as ConversionEngine;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
export function ConversionEngineToJSON(value?: ConversionEngine | null): any {
|
|
47
|
-
return value as any;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
export function ConversionEngineToJSONTyped(value: any, ignoreDiscriminator: boolean): ConversionEngine {
|
|
51
|
-
return value as ConversionEngine;
|
|
52
|
-
}
|
|
53
|
-
|