@knowledge-stack/ksapi 1.61.0 → 1.61.2
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 +2 -2
- package/README.md +4 -3
- package/dist/apis/ChunksApi.d.ts +54 -1
- package/dist/apis/ChunksApi.js +53 -0
- package/dist/apis/DocumentsApi.d.ts +1 -7
- package/dist/apis/DocumentsApi.js +0 -6
- package/dist/esm/apis/ChunksApi.d.ts +54 -1
- package/dist/esm/apis/ChunksApi.js +54 -1
- 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/ChunkNeighborsResponse.d.ts +57 -0
- package/dist/esm/models/ChunkNeighborsResponse.js +49 -0
- 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 +1 -1
- package/dist/esm/models/index.js +1 -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/ChunkNeighborsResponse.d.ts +57 -0
- package/dist/models/ChunkNeighborsResponse.js +57 -0
- 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 +1 -1
- package/dist/models/index.js +1 -1
- package/docs/ChunkMetadataInput.md +0 -2
- package/docs/ChunkMetadataOutput.md +0 -2
- package/docs/ChunkNeighborsResponse.md +37 -0
- package/docs/ChunksApi.md +84 -0
- 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/ChunksApi.ts +109 -0
- package/src/apis/DocumentsApi.ts +0 -17
- package/src/models/ChunkMetadataInput.ts +0 -15
- package/src/models/ChunkMetadataOutput.ts +0 -15
- package/src/models/ChunkNeighborsResponse.ts +103 -0
- package/src/models/IngestionMode.ts +3 -2
- package/src/models/PipelineState.ts +1 -16
- package/src/models/index.ts +1 -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
|
@@ -18,13 +18,13 @@ docs/ChunkLineageResponse.md
|
|
|
18
18
|
docs/ChunkLineagesApi.md
|
|
19
19
|
docs/ChunkMetadataInput.md
|
|
20
20
|
docs/ChunkMetadataOutput.md
|
|
21
|
+
docs/ChunkNeighborsResponse.md
|
|
21
22
|
docs/ChunkResponse.md
|
|
22
23
|
docs/ChunkSearchRequest.md
|
|
23
24
|
docs/ChunkType.md
|
|
24
25
|
docs/ChunksApi.md
|
|
25
26
|
docs/Citation.md
|
|
26
27
|
docs/ClearVersionContentsResponse.md
|
|
27
|
-
docs/ConversionEngine.md
|
|
28
28
|
docs/CreateApiKeyRequest.md
|
|
29
29
|
docs/CreateApiKeyResponse.md
|
|
30
30
|
docs/CreateChunkLineageRequest.md
|
|
@@ -204,12 +204,12 @@ src/models/ChunkDocumentVersionResponse.ts
|
|
|
204
204
|
src/models/ChunkLineageResponse.ts
|
|
205
205
|
src/models/ChunkMetadataInput.ts
|
|
206
206
|
src/models/ChunkMetadataOutput.ts
|
|
207
|
+
src/models/ChunkNeighborsResponse.ts
|
|
207
208
|
src/models/ChunkResponse.ts
|
|
208
209
|
src/models/ChunkSearchRequest.ts
|
|
209
210
|
src/models/ChunkType.ts
|
|
210
211
|
src/models/Citation.ts
|
|
211
212
|
src/models/ClearVersionContentsResponse.ts
|
|
212
|
-
src/models/ConversionEngine.ts
|
|
213
213
|
src/models/CreateApiKeyRequest.ts
|
|
214
214
|
src/models/CreateApiKeyResponse.ts
|
|
215
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.2
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the localhost API.
|
|
4
4
|
|
|
@@ -72,6 +72,7 @@ All URIs are relative to *http://localhost:8000*
|
|
|
72
72
|
*ChunksApi* | [**createChunk**](docs/ChunksApi.md#createchunkoperation) | **POST** /v1/chunks | Create Chunk Handler
|
|
73
73
|
*ChunksApi* | [**deleteChunk**](docs/ChunksApi.md#deletechunk) | **DELETE** /v1/chunks/{chunk_id} | Delete Chunk Handler
|
|
74
74
|
*ChunksApi* | [**getChunk**](docs/ChunksApi.md#getchunk) | **GET** /v1/chunks/{chunk_id} | Get Chunk Handler
|
|
75
|
+
*ChunksApi* | [**getChunkNeighbors**](docs/ChunksApi.md#getchunkneighbors) | **GET** /v1/chunks/{chunk_id}/neighbors | Get Chunk Neighbors Handler
|
|
75
76
|
*ChunksApi* | [**getChunksBulk**](docs/ChunksApi.md#getchunksbulk) | **GET** /v1/chunks/bulk | Get Chunks Bulk Handler
|
|
76
77
|
*ChunksApi* | [**getVersionChunkIds**](docs/ChunksApi.md#getversionchunkids) | **GET** /v1/chunks/version-chunk-ids | Get Version Chunk Ids Handler
|
|
77
78
|
*ChunksApi* | [**searchChunks**](docs/ChunksApi.md#searchchunks) | **POST** /v1/chunks/search | Search Chunks Handler
|
|
@@ -173,12 +174,12 @@ All URIs are relative to *http://localhost:8000*
|
|
|
173
174
|
- [ChunkLineageResponse](docs/ChunkLineageResponse.md)
|
|
174
175
|
- [ChunkMetadataInput](docs/ChunkMetadataInput.md)
|
|
175
176
|
- [ChunkMetadataOutput](docs/ChunkMetadataOutput.md)
|
|
177
|
+
- [ChunkNeighborsResponse](docs/ChunkNeighborsResponse.md)
|
|
176
178
|
- [ChunkResponse](docs/ChunkResponse.md)
|
|
177
179
|
- [ChunkSearchRequest](docs/ChunkSearchRequest.md)
|
|
178
180
|
- [ChunkType](docs/ChunkType.md)
|
|
179
181
|
- [Citation](docs/Citation.md)
|
|
180
182
|
- [ClearVersionContentsResponse](docs/ClearVersionContentsResponse.md)
|
|
181
|
-
- [ConversionEngine](docs/ConversionEngine.md)
|
|
182
183
|
- [CreateApiKeyRequest](docs/CreateApiKeyRequest.md)
|
|
183
184
|
- [CreateApiKeyResponse](docs/CreateApiKeyResponse.md)
|
|
184
185
|
- [CreateChunkLineageRequest](docs/CreateChunkLineageRequest.md)
|
|
@@ -321,7 +322,7 @@ and is automatically generated by the
|
|
|
321
322
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
322
323
|
|
|
323
324
|
- API version: `0.1.0`
|
|
324
|
-
- Package version: `1.61.
|
|
325
|
+
- Package version: `1.61.2`
|
|
325
326
|
- Generator version: `7.20.0`
|
|
326
327
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
327
328
|
|
package/dist/apis/ChunksApi.d.ts
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { ChunkBulkResponse, ChunkResponse, ChunkSearchRequest, CreateChunkRequest, ScoredChunkResponse, UpdateChunkContentRequest, UpdateChunkMetadataRequest, VersionChunkIdsResponse } from '../models/index';
|
|
13
|
+
import type { ChunkBulkResponse, ChunkNeighborsResponse, ChunkResponse, ChunkSearchRequest, CreateChunkRequest, ScoredChunkResponse, UpdateChunkContentRequest, UpdateChunkMetadataRequest, VersionChunkIdsResponse } from '../models/index';
|
|
14
14
|
export interface CreateChunkOperationRequest {
|
|
15
15
|
createChunkRequest: CreateChunkRequest;
|
|
16
16
|
authorization?: string | null;
|
|
@@ -27,6 +27,14 @@ export interface GetChunkRequest {
|
|
|
27
27
|
authorization?: string | null;
|
|
28
28
|
ksUat?: string | null;
|
|
29
29
|
}
|
|
30
|
+
export interface GetChunkNeighborsRequest {
|
|
31
|
+
chunkId: string;
|
|
32
|
+
prev?: number;
|
|
33
|
+
next?: number;
|
|
34
|
+
chunksOnly?: boolean;
|
|
35
|
+
authorization?: string | null;
|
|
36
|
+
ksUat?: string | null;
|
|
37
|
+
}
|
|
30
38
|
export interface GetChunksBulkRequest {
|
|
31
39
|
chunkIds?: Array<string> | null;
|
|
32
40
|
authorization?: string | null;
|
|
@@ -138,6 +146,37 @@ export interface ChunksApiInterface {
|
|
|
138
146
|
* Get Chunk Handler
|
|
139
147
|
*/
|
|
140
148
|
getChunk(requestParameters: GetChunkRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ChunkResponse>;
|
|
149
|
+
/**
|
|
150
|
+
* Creates request options for getChunkNeighbors without sending the request
|
|
151
|
+
* @param {string} chunkId
|
|
152
|
+
* @param {number} [prev] Number of preceding siblings to include
|
|
153
|
+
* @param {number} [next] Number of succeeding siblings to include
|
|
154
|
+
* @param {boolean} [chunksOnly] When true, stop traversal at non-CHUNK siblings (default: false)
|
|
155
|
+
* @param {string} [authorization]
|
|
156
|
+
* @param {string} [ksUat]
|
|
157
|
+
* @throws {RequiredError}
|
|
158
|
+
* @memberof ChunksApiInterface
|
|
159
|
+
*/
|
|
160
|
+
getChunkNeighborsRequestOpts(requestParameters: GetChunkNeighborsRequest): Promise<runtime.RequestOpts>;
|
|
161
|
+
/**
|
|
162
|
+
* Get neighboring siblings by traversing the sibling linked list. Walks the sibling chain backward (prev) and forward (next) from the anchor chunk. Returns sections and chunks in sibling order within the same parent. When ``chunks_only=true``, the traversal stops at the first non-CHUNK sibling in each direction, returning only chunk neighbors.
|
|
163
|
+
* @summary Get Chunk Neighbors Handler
|
|
164
|
+
* @param {string} chunkId
|
|
165
|
+
* @param {number} [prev] Number of preceding siblings to include
|
|
166
|
+
* @param {number} [next] Number of succeeding siblings to include
|
|
167
|
+
* @param {boolean} [chunksOnly] When true, stop traversal at non-CHUNK siblings (default: false)
|
|
168
|
+
* @param {string} [authorization]
|
|
169
|
+
* @param {string} [ksUat]
|
|
170
|
+
* @param {*} [options] Override http request option.
|
|
171
|
+
* @throws {RequiredError}
|
|
172
|
+
* @memberof ChunksApiInterface
|
|
173
|
+
*/
|
|
174
|
+
getChunkNeighborsRaw(requestParameters: GetChunkNeighborsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ChunkNeighborsResponse>>;
|
|
175
|
+
/**
|
|
176
|
+
* Get neighboring siblings by traversing the sibling linked list. Walks the sibling chain backward (prev) and forward (next) from the anchor chunk. Returns sections and chunks in sibling order within the same parent. When ``chunks_only=true``, the traversal stops at the first non-CHUNK sibling in each direction, returning only chunk neighbors.
|
|
177
|
+
* Get Chunk Neighbors Handler
|
|
178
|
+
*/
|
|
179
|
+
getChunkNeighbors(requestParameters: GetChunkNeighborsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ChunkNeighborsResponse>;
|
|
141
180
|
/**
|
|
142
181
|
* Creates request options for getChunksBulk without sending the request
|
|
143
182
|
* @param {Array<string>} [chunkIds] Chunk IDs to resolve (max 200)
|
|
@@ -314,6 +353,20 @@ export declare class ChunksApi extends runtime.BaseAPI implements ChunksApiInter
|
|
|
314
353
|
* Get Chunk Handler
|
|
315
354
|
*/
|
|
316
355
|
getChunk(requestParameters: GetChunkRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ChunkResponse>;
|
|
356
|
+
/**
|
|
357
|
+
* Creates request options for getChunkNeighbors without sending the request
|
|
358
|
+
*/
|
|
359
|
+
getChunkNeighborsRequestOpts(requestParameters: GetChunkNeighborsRequest): Promise<runtime.RequestOpts>;
|
|
360
|
+
/**
|
|
361
|
+
* Get neighboring siblings by traversing the sibling linked list. Walks the sibling chain backward (prev) and forward (next) from the anchor chunk. Returns sections and chunks in sibling order within the same parent. When ``chunks_only=true``, the traversal stops at the first non-CHUNK sibling in each direction, returning only chunk neighbors.
|
|
362
|
+
* Get Chunk Neighbors Handler
|
|
363
|
+
*/
|
|
364
|
+
getChunkNeighborsRaw(requestParameters: GetChunkNeighborsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ChunkNeighborsResponse>>;
|
|
365
|
+
/**
|
|
366
|
+
* Get neighboring siblings by traversing the sibling linked list. Walks the sibling chain backward (prev) and forward (next) from the anchor chunk. Returns sections and chunks in sibling order within the same parent. When ``chunks_only=true``, the traversal stops at the first non-CHUNK sibling in each direction, returning only chunk neighbors.
|
|
367
|
+
* Get Chunk Neighbors Handler
|
|
368
|
+
*/
|
|
369
|
+
getChunkNeighbors(requestParameters: GetChunkNeighborsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ChunkNeighborsResponse>;
|
|
317
370
|
/**
|
|
318
371
|
* Creates request options for getChunksBulk without sending the request
|
|
319
372
|
*/
|
package/dist/apis/ChunksApi.js
CHANGED
|
@@ -164,6 +164,59 @@ class ChunksApi extends runtime.BaseAPI {
|
|
|
164
164
|
return yield response.value();
|
|
165
165
|
});
|
|
166
166
|
}
|
|
167
|
+
/**
|
|
168
|
+
* Creates request options for getChunkNeighbors without sending the request
|
|
169
|
+
*/
|
|
170
|
+
getChunkNeighborsRequestOpts(requestParameters) {
|
|
171
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
172
|
+
if (requestParameters['chunkId'] == null) {
|
|
173
|
+
throw new runtime.RequiredError('chunkId', 'Required parameter "chunkId" was null or undefined when calling getChunkNeighbors().');
|
|
174
|
+
}
|
|
175
|
+
const queryParameters = {};
|
|
176
|
+
if (requestParameters['prev'] != null) {
|
|
177
|
+
queryParameters['prev'] = requestParameters['prev'];
|
|
178
|
+
}
|
|
179
|
+
if (requestParameters['next'] != null) {
|
|
180
|
+
queryParameters['next'] = requestParameters['next'];
|
|
181
|
+
}
|
|
182
|
+
if (requestParameters['chunksOnly'] != null) {
|
|
183
|
+
queryParameters['chunks_only'] = requestParameters['chunksOnly'];
|
|
184
|
+
}
|
|
185
|
+
const headerParameters = {};
|
|
186
|
+
if (requestParameters['authorization'] != null) {
|
|
187
|
+
headerParameters['authorization'] = String(requestParameters['authorization']);
|
|
188
|
+
}
|
|
189
|
+
let urlPath = `/v1/chunks/{chunk_id}/neighbors`;
|
|
190
|
+
urlPath = urlPath.replace(`{${"chunk_id"}}`, encodeURIComponent(String(requestParameters['chunkId'])));
|
|
191
|
+
return {
|
|
192
|
+
path: urlPath,
|
|
193
|
+
method: 'GET',
|
|
194
|
+
headers: headerParameters,
|
|
195
|
+
query: queryParameters,
|
|
196
|
+
};
|
|
197
|
+
});
|
|
198
|
+
}
|
|
199
|
+
/**
|
|
200
|
+
* Get neighboring siblings by traversing the sibling linked list. Walks the sibling chain backward (prev) and forward (next) from the anchor chunk. Returns sections and chunks in sibling order within the same parent. When ``chunks_only=true``, the traversal stops at the first non-CHUNK sibling in each direction, returning only chunk neighbors.
|
|
201
|
+
* Get Chunk Neighbors Handler
|
|
202
|
+
*/
|
|
203
|
+
getChunkNeighborsRaw(requestParameters, initOverrides) {
|
|
204
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
205
|
+
const requestOptions = yield this.getChunkNeighborsRequestOpts(requestParameters);
|
|
206
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
207
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ChunkNeighborsResponseFromJSON)(jsonValue));
|
|
208
|
+
});
|
|
209
|
+
}
|
|
210
|
+
/**
|
|
211
|
+
* Get neighboring siblings by traversing the sibling linked list. Walks the sibling chain backward (prev) and forward (next) from the anchor chunk. Returns sections and chunks in sibling order within the same parent. When ``chunks_only=true``, the traversal stops at the first non-CHUNK sibling in each direction, returning only chunk neighbors.
|
|
212
|
+
* Get Chunk Neighbors Handler
|
|
213
|
+
*/
|
|
214
|
+
getChunkNeighbors(requestParameters, initOverrides) {
|
|
215
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
216
|
+
const response = yield this.getChunkNeighborsRaw(requestParameters, initOverrides);
|
|
217
|
+
return yield response.value();
|
|
218
|
+
});
|
|
219
|
+
}
|
|
167
220
|
/**
|
|
168
221
|
* Creates request options for getChunksBulk without sending the request
|
|
169
222
|
*/
|
|
@@ -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 { ChunkBulkResponse, ChunkResponse, ChunkSearchRequest, CreateChunkRequest, ScoredChunkResponse, UpdateChunkContentRequest, UpdateChunkMetadataRequest, VersionChunkIdsResponse } from '../models/index';
|
|
13
|
+
import type { ChunkBulkResponse, ChunkNeighborsResponse, ChunkResponse, ChunkSearchRequest, CreateChunkRequest, ScoredChunkResponse, UpdateChunkContentRequest, UpdateChunkMetadataRequest, VersionChunkIdsResponse } from '../models/index';
|
|
14
14
|
export interface CreateChunkOperationRequest {
|
|
15
15
|
createChunkRequest: CreateChunkRequest;
|
|
16
16
|
authorization?: string | null;
|
|
@@ -27,6 +27,14 @@ export interface GetChunkRequest {
|
|
|
27
27
|
authorization?: string | null;
|
|
28
28
|
ksUat?: string | null;
|
|
29
29
|
}
|
|
30
|
+
export interface GetChunkNeighborsRequest {
|
|
31
|
+
chunkId: string;
|
|
32
|
+
prev?: number;
|
|
33
|
+
next?: number;
|
|
34
|
+
chunksOnly?: boolean;
|
|
35
|
+
authorization?: string | null;
|
|
36
|
+
ksUat?: string | null;
|
|
37
|
+
}
|
|
30
38
|
export interface GetChunksBulkRequest {
|
|
31
39
|
chunkIds?: Array<string> | null;
|
|
32
40
|
authorization?: string | null;
|
|
@@ -138,6 +146,37 @@ export interface ChunksApiInterface {
|
|
|
138
146
|
* Get Chunk Handler
|
|
139
147
|
*/
|
|
140
148
|
getChunk(requestParameters: GetChunkRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ChunkResponse>;
|
|
149
|
+
/**
|
|
150
|
+
* Creates request options for getChunkNeighbors without sending the request
|
|
151
|
+
* @param {string} chunkId
|
|
152
|
+
* @param {number} [prev] Number of preceding siblings to include
|
|
153
|
+
* @param {number} [next] Number of succeeding siblings to include
|
|
154
|
+
* @param {boolean} [chunksOnly] When true, stop traversal at non-CHUNK siblings (default: false)
|
|
155
|
+
* @param {string} [authorization]
|
|
156
|
+
* @param {string} [ksUat]
|
|
157
|
+
* @throws {RequiredError}
|
|
158
|
+
* @memberof ChunksApiInterface
|
|
159
|
+
*/
|
|
160
|
+
getChunkNeighborsRequestOpts(requestParameters: GetChunkNeighborsRequest): Promise<runtime.RequestOpts>;
|
|
161
|
+
/**
|
|
162
|
+
* Get neighboring siblings by traversing the sibling linked list. Walks the sibling chain backward (prev) and forward (next) from the anchor chunk. Returns sections and chunks in sibling order within the same parent. When ``chunks_only=true``, the traversal stops at the first non-CHUNK sibling in each direction, returning only chunk neighbors.
|
|
163
|
+
* @summary Get Chunk Neighbors Handler
|
|
164
|
+
* @param {string} chunkId
|
|
165
|
+
* @param {number} [prev] Number of preceding siblings to include
|
|
166
|
+
* @param {number} [next] Number of succeeding siblings to include
|
|
167
|
+
* @param {boolean} [chunksOnly] When true, stop traversal at non-CHUNK siblings (default: false)
|
|
168
|
+
* @param {string} [authorization]
|
|
169
|
+
* @param {string} [ksUat]
|
|
170
|
+
* @param {*} [options] Override http request option.
|
|
171
|
+
* @throws {RequiredError}
|
|
172
|
+
* @memberof ChunksApiInterface
|
|
173
|
+
*/
|
|
174
|
+
getChunkNeighborsRaw(requestParameters: GetChunkNeighborsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ChunkNeighborsResponse>>;
|
|
175
|
+
/**
|
|
176
|
+
* Get neighboring siblings by traversing the sibling linked list. Walks the sibling chain backward (prev) and forward (next) from the anchor chunk. Returns sections and chunks in sibling order within the same parent. When ``chunks_only=true``, the traversal stops at the first non-CHUNK sibling in each direction, returning only chunk neighbors.
|
|
177
|
+
* Get Chunk Neighbors Handler
|
|
178
|
+
*/
|
|
179
|
+
getChunkNeighbors(requestParameters: GetChunkNeighborsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ChunkNeighborsResponse>;
|
|
141
180
|
/**
|
|
142
181
|
* Creates request options for getChunksBulk without sending the request
|
|
143
182
|
* @param {Array<string>} [chunkIds] Chunk IDs to resolve (max 200)
|
|
@@ -314,6 +353,20 @@ export declare class ChunksApi extends runtime.BaseAPI implements ChunksApiInter
|
|
|
314
353
|
* Get Chunk Handler
|
|
315
354
|
*/
|
|
316
355
|
getChunk(requestParameters: GetChunkRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ChunkResponse>;
|
|
356
|
+
/**
|
|
357
|
+
* Creates request options for getChunkNeighbors without sending the request
|
|
358
|
+
*/
|
|
359
|
+
getChunkNeighborsRequestOpts(requestParameters: GetChunkNeighborsRequest): Promise<runtime.RequestOpts>;
|
|
360
|
+
/**
|
|
361
|
+
* Get neighboring siblings by traversing the sibling linked list. Walks the sibling chain backward (prev) and forward (next) from the anchor chunk. Returns sections and chunks in sibling order within the same parent. When ``chunks_only=true``, the traversal stops at the first non-CHUNK sibling in each direction, returning only chunk neighbors.
|
|
362
|
+
* Get Chunk Neighbors Handler
|
|
363
|
+
*/
|
|
364
|
+
getChunkNeighborsRaw(requestParameters: GetChunkNeighborsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ChunkNeighborsResponse>>;
|
|
365
|
+
/**
|
|
366
|
+
* Get neighboring siblings by traversing the sibling linked list. Walks the sibling chain backward (prev) and forward (next) from the anchor chunk. Returns sections and chunks in sibling order within the same parent. When ``chunks_only=true``, the traversal stops at the first non-CHUNK sibling in each direction, returning only chunk neighbors.
|
|
367
|
+
* Get Chunk Neighbors Handler
|
|
368
|
+
*/
|
|
369
|
+
getChunkNeighbors(requestParameters: GetChunkNeighborsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ChunkNeighborsResponse>;
|
|
317
370
|
/**
|
|
318
371
|
* Creates request options for getChunksBulk without sending the request
|
|
319
372
|
*/
|
|
@@ -21,7 +21,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
21
21
|
});
|
|
22
22
|
};
|
|
23
23
|
import * as runtime from '../runtime';
|
|
24
|
-
import { ChunkBulkResponseFromJSON, ChunkResponseFromJSON, ChunkSearchRequestToJSON, CreateChunkRequestToJSON, ScoredChunkResponseFromJSON, UpdateChunkContentRequestToJSON, UpdateChunkMetadataRequestToJSON, VersionChunkIdsResponseFromJSON, } from '../models/index';
|
|
24
|
+
import { ChunkBulkResponseFromJSON, ChunkNeighborsResponseFromJSON, ChunkResponseFromJSON, ChunkSearchRequestToJSON, CreateChunkRequestToJSON, ScoredChunkResponseFromJSON, UpdateChunkContentRequestToJSON, UpdateChunkMetadataRequestToJSON, VersionChunkIdsResponseFromJSON, } from '../models/index';
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
27
|
*/
|
|
@@ -161,6 +161,59 @@ export class ChunksApi extends runtime.BaseAPI {
|
|
|
161
161
|
return yield response.value();
|
|
162
162
|
});
|
|
163
163
|
}
|
|
164
|
+
/**
|
|
165
|
+
* Creates request options for getChunkNeighbors without sending the request
|
|
166
|
+
*/
|
|
167
|
+
getChunkNeighborsRequestOpts(requestParameters) {
|
|
168
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
169
|
+
if (requestParameters['chunkId'] == null) {
|
|
170
|
+
throw new runtime.RequiredError('chunkId', 'Required parameter "chunkId" was null or undefined when calling getChunkNeighbors().');
|
|
171
|
+
}
|
|
172
|
+
const queryParameters = {};
|
|
173
|
+
if (requestParameters['prev'] != null) {
|
|
174
|
+
queryParameters['prev'] = requestParameters['prev'];
|
|
175
|
+
}
|
|
176
|
+
if (requestParameters['next'] != null) {
|
|
177
|
+
queryParameters['next'] = requestParameters['next'];
|
|
178
|
+
}
|
|
179
|
+
if (requestParameters['chunksOnly'] != null) {
|
|
180
|
+
queryParameters['chunks_only'] = requestParameters['chunksOnly'];
|
|
181
|
+
}
|
|
182
|
+
const headerParameters = {};
|
|
183
|
+
if (requestParameters['authorization'] != null) {
|
|
184
|
+
headerParameters['authorization'] = String(requestParameters['authorization']);
|
|
185
|
+
}
|
|
186
|
+
let urlPath = `/v1/chunks/{chunk_id}/neighbors`;
|
|
187
|
+
urlPath = urlPath.replace(`{${"chunk_id"}}`, encodeURIComponent(String(requestParameters['chunkId'])));
|
|
188
|
+
return {
|
|
189
|
+
path: urlPath,
|
|
190
|
+
method: 'GET',
|
|
191
|
+
headers: headerParameters,
|
|
192
|
+
query: queryParameters,
|
|
193
|
+
};
|
|
194
|
+
});
|
|
195
|
+
}
|
|
196
|
+
/**
|
|
197
|
+
* Get neighboring siblings by traversing the sibling linked list. Walks the sibling chain backward (prev) and forward (next) from the anchor chunk. Returns sections and chunks in sibling order within the same parent. When ``chunks_only=true``, the traversal stops at the first non-CHUNK sibling in each direction, returning only chunk neighbors.
|
|
198
|
+
* Get Chunk Neighbors Handler
|
|
199
|
+
*/
|
|
200
|
+
getChunkNeighborsRaw(requestParameters, initOverrides) {
|
|
201
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
202
|
+
const requestOptions = yield this.getChunkNeighborsRequestOpts(requestParameters);
|
|
203
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
204
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ChunkNeighborsResponseFromJSON(jsonValue));
|
|
205
|
+
});
|
|
206
|
+
}
|
|
207
|
+
/**
|
|
208
|
+
* Get neighboring siblings by traversing the sibling linked list. Walks the sibling chain backward (prev) and forward (next) from the anchor chunk. Returns sections and chunks in sibling order within the same parent. When ``chunks_only=true``, the traversal stops at the first non-CHUNK sibling in each direction, returning only chunk neighbors.
|
|
209
|
+
* Get Chunk Neighbors Handler
|
|
210
|
+
*/
|
|
211
|
+
getChunkNeighbors(requestParameters, initOverrides) {
|
|
212
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
213
|
+
const response = yield this.getChunkNeighborsRaw(requestParameters, initOverrides);
|
|
214
|
+
return yield response.value();
|
|
215
|
+
});
|
|
216
|
+
}
|
|
164
217
|
/**
|
|
165
218
|
* Creates request options for getChunksBulk without sending the request
|
|
166
219
|
*/
|
|
@@ -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'],
|