@knowledge-stack/ksapi 1.60.0 → 1.61.1
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 +6 -0
- package/README.md +7 -2
- package/dist/apis/ChunksApi.d.ts +54 -1
- package/dist/apis/ChunksApi.js +53 -0
- package/dist/apis/DocumentsApi.d.ts +7 -1
- package/dist/apis/DocumentsApi.js +6 -0
- package/dist/apis/SectionsApi.d.ts +45 -1
- package/dist/apis/SectionsApi.js +44 -0
- package/dist/esm/apis/ChunksApi.d.ts +54 -1
- package/dist/esm/apis/ChunksApi.js +54 -1
- package/dist/esm/apis/DocumentsApi.d.ts +7 -1
- package/dist/esm/apis/DocumentsApi.js +6 -0
- package/dist/esm/apis/SectionsApi.d.ts +45 -1
- package/dist/esm/apis/SectionsApi.js +45 -1
- package/dist/esm/models/ChunkNeighborsResponse.d.ts +57 -0
- package/dist/esm/models/ChunkNeighborsResponse.js +49 -0
- package/dist/esm/models/ConversionEngine.d.ts +25 -0
- package/dist/esm/models/ConversionEngine.js +43 -0
- package/dist/esm/models/DissolveSectionResponse.d.ts +53 -0
- package/dist/esm/models/DissolveSectionResponse.js +48 -0
- package/dist/esm/models/DocumentVersionMetadata.d.ts +4 -6
- package/dist/esm/models/DocumentVersionMetadata.js +0 -2
- package/dist/esm/models/DocumentVersionMetadataUpdate.d.ts +13 -1
- package/dist/esm/models/DocumentVersionMetadataUpdate.js +6 -2
- package/dist/esm/models/PipelineState.d.ts +7 -0
- package/dist/esm/models/PipelineState.js +3 -0
- package/dist/esm/models/index.d.ts +3 -0
- package/dist/esm/models/index.js +3 -0
- package/dist/models/ChunkNeighborsResponse.d.ts +57 -0
- package/dist/models/ChunkNeighborsResponse.js +57 -0
- package/dist/models/ConversionEngine.d.ts +25 -0
- package/dist/models/ConversionEngine.js +51 -0
- package/dist/models/DissolveSectionResponse.d.ts +53 -0
- package/dist/models/DissolveSectionResponse.js +56 -0
- package/dist/models/DocumentVersionMetadata.d.ts +4 -6
- package/dist/models/DocumentVersionMetadata.js +0 -2
- package/dist/models/DocumentVersionMetadataUpdate.d.ts +13 -1
- package/dist/models/DocumentVersionMetadataUpdate.js +6 -2
- package/dist/models/PipelineState.d.ts +7 -0
- package/dist/models/PipelineState.js +3 -0
- package/dist/models/index.d.ts +3 -0
- package/dist/models/index.js +3 -0
- package/docs/ChunkNeighborsResponse.md +37 -0
- package/docs/ChunksApi.md +84 -0
- package/docs/ConversionEngine.md +33 -0
- package/docs/DissolveSectionResponse.md +37 -0
- package/docs/DocumentVersionMetadata.md +1 -3
- package/docs/DocumentVersionMetadataUpdate.md +6 -2
- package/docs/DocumentsApi.md +8 -2
- package/docs/PipelineState.md +2 -0
- package/docs/SectionsApi.md +75 -0
- package/package.json +1 -1
- package/src/apis/ChunksApi.ts +109 -0
- package/src/apis/DocumentsApi.ts +17 -0
- package/src/apis/SectionsApi.ts +88 -0
- package/src/models/ChunkNeighborsResponse.ts +103 -0
- package/src/models/ConversionEngine.ts +53 -0
- package/src/models/DissolveSectionResponse.ts +92 -0
- package/src/models/DocumentVersionMetadata.ts +4 -8
- package/src/models/DocumentVersionMetadataUpdate.ts +19 -3
- package/src/models/PipelineState.ts +15 -0
- package/src/models/index.ts +3 -0
|
@@ -213,6 +213,9 @@ 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
|
+
}
|
|
216
219
|
let urlPath = `/v1/documents/ingest`;
|
|
217
220
|
return {
|
|
218
221
|
path: urlPath,
|
|
@@ -290,6 +293,9 @@ export class DocumentsApi extends runtime.BaseAPI {
|
|
|
290
293
|
if (requestParameters['pageDpi'] != null) {
|
|
291
294
|
formParams.append('page_dpi', requestParameters['pageDpi']);
|
|
292
295
|
}
|
|
296
|
+
if (requestParameters['conversionEngine'] != null) {
|
|
297
|
+
formParams.append('conversion_engine', requestParameters['conversionEngine']);
|
|
298
|
+
}
|
|
293
299
|
let urlPath = `/v1/documents/{document_id}/ingest`;
|
|
294
300
|
urlPath = urlPath.replace(`{${"document_id"}}`, encodeURIComponent(String(requestParameters['documentId'])));
|
|
295
301
|
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 { CreateSectionRequest, SectionResponse, UpdateSectionRequest } from '../models/index';
|
|
13
|
+
import type { CreateSectionRequest, DissolveSectionResponse, SectionResponse, UpdateSectionRequest } from '../models/index';
|
|
14
14
|
export interface CreateSectionOperationRequest {
|
|
15
15
|
createSectionRequest: CreateSectionRequest;
|
|
16
16
|
authorization?: string | null;
|
|
@@ -21,6 +21,11 @@ export interface DeleteSectionRequest {
|
|
|
21
21
|
authorization?: string | null;
|
|
22
22
|
ksUat?: string | null;
|
|
23
23
|
}
|
|
24
|
+
export interface DissolveSectionRequest {
|
|
25
|
+
sectionId: string;
|
|
26
|
+
authorization?: string | null;
|
|
27
|
+
ksUat?: string | null;
|
|
28
|
+
}
|
|
24
29
|
export interface GetSectionRequest {
|
|
25
30
|
sectionId: string;
|
|
26
31
|
authorization?: string | null;
|
|
@@ -94,6 +99,31 @@ export interface SectionsApiInterface {
|
|
|
94
99
|
* Delete Section Handler
|
|
95
100
|
*/
|
|
96
101
|
deleteSection(requestParameters: DeleteSectionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
102
|
+
/**
|
|
103
|
+
* Creates request options for dissolveSection without sending the request
|
|
104
|
+
* @param {string} sectionId
|
|
105
|
+
* @param {string} [authorization]
|
|
106
|
+
* @param {string} [ksUat]
|
|
107
|
+
* @throws {RequiredError}
|
|
108
|
+
* @memberof SectionsApiInterface
|
|
109
|
+
*/
|
|
110
|
+
dissolveSectionRequestOpts(requestParameters: DissolveSectionRequest): Promise<runtime.RequestOpts>;
|
|
111
|
+
/**
|
|
112
|
+
* Dissolve a section: convert it to a text chunk, reparent children, delete the section. The section\'s name becomes the content of a new TEXT chunk. Any children of the section are reparented to the section\'s parent, preserving order. The section itself is then deleted.
|
|
113
|
+
* @summary Dissolve Section Handler
|
|
114
|
+
* @param {string} sectionId
|
|
115
|
+
* @param {string} [authorization]
|
|
116
|
+
* @param {string} [ksUat]
|
|
117
|
+
* @param {*} [options] Override http request option.
|
|
118
|
+
* @throws {RequiredError}
|
|
119
|
+
* @memberof SectionsApiInterface
|
|
120
|
+
*/
|
|
121
|
+
dissolveSectionRaw(requestParameters: DissolveSectionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DissolveSectionResponse>>;
|
|
122
|
+
/**
|
|
123
|
+
* Dissolve a section: convert it to a text chunk, reparent children, delete the section. The section\'s name becomes the content of a new TEXT chunk. Any children of the section are reparented to the section\'s parent, preserving order. The section itself is then deleted.
|
|
124
|
+
* Dissolve Section Handler
|
|
125
|
+
*/
|
|
126
|
+
dissolveSection(requestParameters: DissolveSectionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DissolveSectionResponse>;
|
|
97
127
|
/**
|
|
98
128
|
* Creates request options for getSection without sending the request
|
|
99
129
|
* @param {string} sectionId
|
|
@@ -204,6 +234,20 @@ export declare class SectionsApi extends runtime.BaseAPI implements SectionsApiI
|
|
|
204
234
|
* Delete Section Handler
|
|
205
235
|
*/
|
|
206
236
|
deleteSection(requestParameters: DeleteSectionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
237
|
+
/**
|
|
238
|
+
* Creates request options for dissolveSection without sending the request
|
|
239
|
+
*/
|
|
240
|
+
dissolveSectionRequestOpts(requestParameters: DissolveSectionRequest): Promise<runtime.RequestOpts>;
|
|
241
|
+
/**
|
|
242
|
+
* Dissolve a section: convert it to a text chunk, reparent children, delete the section. The section\'s name becomes the content of a new TEXT chunk. Any children of the section are reparented to the section\'s parent, preserving order. The section itself is then deleted.
|
|
243
|
+
* Dissolve Section Handler
|
|
244
|
+
*/
|
|
245
|
+
dissolveSectionRaw(requestParameters: DissolveSectionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DissolveSectionResponse>>;
|
|
246
|
+
/**
|
|
247
|
+
* Dissolve a section: convert it to a text chunk, reparent children, delete the section. The section\'s name becomes the content of a new TEXT chunk. Any children of the section are reparented to the section\'s parent, preserving order. The section itself is then deleted.
|
|
248
|
+
* Dissolve Section Handler
|
|
249
|
+
*/
|
|
250
|
+
dissolveSection(requestParameters: DissolveSectionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DissolveSectionResponse>;
|
|
207
251
|
/**
|
|
208
252
|
* Creates request options for getSection without sending the request
|
|
209
253
|
*/
|
|
@@ -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 { CreateSectionRequestToJSON, SectionResponseFromJSON, UpdateSectionRequestToJSON, } from '../models/index';
|
|
24
|
+
import { CreateSectionRequestToJSON, DissolveSectionResponseFromJSON, SectionResponseFromJSON, UpdateSectionRequestToJSON, } from '../models/index';
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
27
|
*/
|
|
@@ -114,6 +114,50 @@ export class SectionsApi extends runtime.BaseAPI {
|
|
|
114
114
|
yield this.deleteSectionRaw(requestParameters, initOverrides);
|
|
115
115
|
});
|
|
116
116
|
}
|
|
117
|
+
/**
|
|
118
|
+
* Creates request options for dissolveSection without sending the request
|
|
119
|
+
*/
|
|
120
|
+
dissolveSectionRequestOpts(requestParameters) {
|
|
121
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
122
|
+
if (requestParameters['sectionId'] == null) {
|
|
123
|
+
throw new runtime.RequiredError('sectionId', 'Required parameter "sectionId" was null or undefined when calling dissolveSection().');
|
|
124
|
+
}
|
|
125
|
+
const queryParameters = {};
|
|
126
|
+
const headerParameters = {};
|
|
127
|
+
if (requestParameters['authorization'] != null) {
|
|
128
|
+
headerParameters['authorization'] = String(requestParameters['authorization']);
|
|
129
|
+
}
|
|
130
|
+
let urlPath = `/v1/sections/{section_id}/dissolve`;
|
|
131
|
+
urlPath = urlPath.replace(`{${"section_id"}}`, encodeURIComponent(String(requestParameters['sectionId'])));
|
|
132
|
+
return {
|
|
133
|
+
path: urlPath,
|
|
134
|
+
method: 'POST',
|
|
135
|
+
headers: headerParameters,
|
|
136
|
+
query: queryParameters,
|
|
137
|
+
};
|
|
138
|
+
});
|
|
139
|
+
}
|
|
140
|
+
/**
|
|
141
|
+
* Dissolve a section: convert it to a text chunk, reparent children, delete the section. The section\'s name becomes the content of a new TEXT chunk. Any children of the section are reparented to the section\'s parent, preserving order. The section itself is then deleted.
|
|
142
|
+
* Dissolve Section Handler
|
|
143
|
+
*/
|
|
144
|
+
dissolveSectionRaw(requestParameters, initOverrides) {
|
|
145
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
146
|
+
const requestOptions = yield this.dissolveSectionRequestOpts(requestParameters);
|
|
147
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
148
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => DissolveSectionResponseFromJSON(jsonValue));
|
|
149
|
+
});
|
|
150
|
+
}
|
|
151
|
+
/**
|
|
152
|
+
* Dissolve a section: convert it to a text chunk, reparent children, delete the section. The section\'s name becomes the content of a new TEXT chunk. Any children of the section are reparented to the section\'s parent, preserving order. The section itself is then deleted.
|
|
153
|
+
* Dissolve Section Handler
|
|
154
|
+
*/
|
|
155
|
+
dissolveSection(requestParameters, initOverrides) {
|
|
156
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
157
|
+
const response = yield this.dissolveSectionRaw(requestParameters, initOverrides);
|
|
158
|
+
return yield response.value();
|
|
159
|
+
});
|
|
160
|
+
}
|
|
117
161
|
/**
|
|
118
162
|
* Creates request options for getSection without sending the request
|
|
119
163
|
*/
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Knowledge Stack API
|
|
3
|
+
* Knowledge Stack backend API for authentication and knowledge management
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { SectionContentItemOrChunkContentItem } from './SectionContentItemOrChunkContentItem';
|
|
13
|
+
/**
|
|
14
|
+
* Response for chunk neighbor traversal.
|
|
15
|
+
*
|
|
16
|
+
* Returns items in the same ``SectionOrChunkItem`` discriminated union
|
|
17
|
+
* format used by the document version contents endpoint.
|
|
18
|
+
* @export
|
|
19
|
+
* @interface ChunkNeighborsResponse
|
|
20
|
+
*/
|
|
21
|
+
export interface ChunkNeighborsResponse {
|
|
22
|
+
/**
|
|
23
|
+
* Ordered siblings: preceding → anchor → succeeding
|
|
24
|
+
* @type {Array<SectionContentItemOrChunkContentItem>}
|
|
25
|
+
* @memberof ChunkNeighborsResponse
|
|
26
|
+
*/
|
|
27
|
+
items: Array<SectionContentItemOrChunkContentItem>;
|
|
28
|
+
/**
|
|
29
|
+
* Index of the anchor chunk in items
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof ChunkNeighborsResponse
|
|
32
|
+
*/
|
|
33
|
+
anchorIndex: number;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Check if a given object implements the ChunkNeighborsResponse interface.
|
|
37
|
+
*/
|
|
38
|
+
export declare function instanceOfChunkNeighborsResponse(value: object): value is ChunkNeighborsResponse;
|
|
39
|
+
export declare function ChunkNeighborsResponseFromJSON(json: any): ChunkNeighborsResponse;
|
|
40
|
+
export declare function ChunkNeighborsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChunkNeighborsResponse;
|
|
41
|
+
export declare function ChunkNeighborsResponseToJSON(json: any): ChunkNeighborsResponse;
|
|
42
|
+
export declare function ChunkNeighborsResponseToJSONTyped(value?: ChunkNeighborsResponse | null, ignoreDiscriminator?: boolean): any;
|
|
43
|
+
export declare const ChunkNeighborsResponsePropertyValidationAttributesMap: {
|
|
44
|
+
[property: string]: {
|
|
45
|
+
maxLength?: number;
|
|
46
|
+
minLength?: number;
|
|
47
|
+
pattern?: string;
|
|
48
|
+
maximum?: number;
|
|
49
|
+
exclusiveMaximum?: boolean;
|
|
50
|
+
minimum?: number;
|
|
51
|
+
exclusiveMinimum?: boolean;
|
|
52
|
+
multipleOf?: number;
|
|
53
|
+
maxItems?: number;
|
|
54
|
+
minItems?: number;
|
|
55
|
+
uniqueItems?: boolean;
|
|
56
|
+
};
|
|
57
|
+
};
|
|
@@ -0,0 +1,49 @@
|
|
|
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
|
+
import { SectionContentItemOrChunkContentItemFromJSON, SectionContentItemOrChunkContentItemToJSON, } from './SectionContentItemOrChunkContentItem';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the ChunkNeighborsResponse interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfChunkNeighborsResponse(value) {
|
|
19
|
+
if (!('items' in value) || value['items'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
if (!('anchorIndex' in value) || value['anchorIndex'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
return true;
|
|
24
|
+
}
|
|
25
|
+
export function ChunkNeighborsResponseFromJSON(json) {
|
|
26
|
+
return ChunkNeighborsResponseFromJSONTyped(json, false);
|
|
27
|
+
}
|
|
28
|
+
export function ChunkNeighborsResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
29
|
+
if (json == null) {
|
|
30
|
+
return json;
|
|
31
|
+
}
|
|
32
|
+
return {
|
|
33
|
+
'items': (json['items'].map(SectionContentItemOrChunkContentItemFromJSON)),
|
|
34
|
+
'anchorIndex': json['anchor_index'],
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
export function ChunkNeighborsResponseToJSON(json) {
|
|
38
|
+
return ChunkNeighborsResponseToJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
export function ChunkNeighborsResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
41
|
+
if (value == null) {
|
|
42
|
+
return value;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'items': (value['items'].map(SectionContentItemOrChunkContentItemToJSON)),
|
|
46
|
+
'anchor_index': value['anchorIndex'],
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
export const ChunkNeighborsResponsePropertyValidationAttributesMap = {};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Knowledge Stack API
|
|
3
|
+
* Knowledge Stack backend API for authentication and knowledge management
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* 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;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Knowledge Stack API
|
|
5
|
+
* Knowledge Stack backend API for authentication and knowledge management
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* 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
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
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
|
+
* Response from dissolving a section into a text chunk.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface DissolveSectionResponse
|
|
16
|
+
*/
|
|
17
|
+
export interface DissolveSectionResponse {
|
|
18
|
+
/**
|
|
19
|
+
* ID of the created text chunk
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof DissolveSectionResponse
|
|
22
|
+
*/
|
|
23
|
+
textChunkId: string;
|
|
24
|
+
/**
|
|
25
|
+
* Number of children reparented to the parent
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof DissolveSectionResponse
|
|
28
|
+
*/
|
|
29
|
+
reparentedChildren: number;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the DissolveSectionResponse interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfDissolveSectionResponse(value: object): value is DissolveSectionResponse;
|
|
35
|
+
export declare function DissolveSectionResponseFromJSON(json: any): DissolveSectionResponse;
|
|
36
|
+
export declare function DissolveSectionResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DissolveSectionResponse;
|
|
37
|
+
export declare function DissolveSectionResponseToJSON(json: any): DissolveSectionResponse;
|
|
38
|
+
export declare function DissolveSectionResponseToJSONTyped(value?: DissolveSectionResponse | null, ignoreDiscriminator?: boolean): any;
|
|
39
|
+
export declare const DissolveSectionResponsePropertyValidationAttributesMap: {
|
|
40
|
+
[property: string]: {
|
|
41
|
+
maxLength?: number;
|
|
42
|
+
minLength?: number;
|
|
43
|
+
pattern?: string;
|
|
44
|
+
maximum?: number;
|
|
45
|
+
exclusiveMaximum?: boolean;
|
|
46
|
+
minimum?: number;
|
|
47
|
+
exclusiveMinimum?: boolean;
|
|
48
|
+
multipleOf?: number;
|
|
49
|
+
maxItems?: number;
|
|
50
|
+
minItems?: number;
|
|
51
|
+
uniqueItems?: boolean;
|
|
52
|
+
};
|
|
53
|
+
};
|
|
@@ -0,0 +1,48 @@
|
|
|
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
|
+
* Check if a given object implements the DissolveSectionResponse interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfDissolveSectionResponse(value) {
|
|
18
|
+
if (!('textChunkId' in value) || value['textChunkId'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('reparentedChildren' in value) || value['reparentedChildren'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
return true;
|
|
23
|
+
}
|
|
24
|
+
export function DissolveSectionResponseFromJSON(json) {
|
|
25
|
+
return DissolveSectionResponseFromJSONTyped(json, false);
|
|
26
|
+
}
|
|
27
|
+
export function DissolveSectionResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
28
|
+
if (json == null) {
|
|
29
|
+
return json;
|
|
30
|
+
}
|
|
31
|
+
return {
|
|
32
|
+
'textChunkId': json['text_chunk_id'],
|
|
33
|
+
'reparentedChildren': json['reparented_children'],
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
export function DissolveSectionResponseToJSON(json) {
|
|
37
|
+
return DissolveSectionResponseToJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
export function DissolveSectionResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
40
|
+
if (value == null) {
|
|
41
|
+
return value;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'text_chunk_id': value['textChunkId'],
|
|
45
|
+
'reparented_children': value['reparentedChildren'],
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
export const DissolveSectionResponsePropertyValidationAttributesMap = {};
|
|
@@ -18,6 +18,10 @@ import type { InformationStatistics } from './InformationStatistics';
|
|
|
18
18
|
* and document statistics. Convention-based paths (images, page screenshots)
|
|
19
19
|
* are derived from document_id/document_version_id via s3_paths helpers,
|
|
20
20
|
* using a flat S3 layout: documents/{document_id}/{document_version_id}/...
|
|
21
|
+
*
|
|
22
|
+
* Internal conversion artifact paths (standard_pipeline_json_s3, high_accuracy_*_s3) are
|
|
23
|
+
* excluded from API responses via ``Field(exclude=True)`` so we don't
|
|
24
|
+
* expose underlying technology names to external consumers.
|
|
21
25
|
* @export
|
|
22
26
|
* @interface DocumentVersionMetadata
|
|
23
27
|
*/
|
|
@@ -34,12 +38,6 @@ export interface DocumentVersionMetadata {
|
|
|
34
38
|
* @memberof DocumentVersionMetadata
|
|
35
39
|
*/
|
|
36
40
|
cleanedSourceS3?: string | null;
|
|
37
|
-
/**
|
|
38
|
-
* S3 URL to the Docling JSON conversion output
|
|
39
|
-
* @type {string}
|
|
40
|
-
* @memberof DocumentVersionMetadata
|
|
41
|
-
*/
|
|
42
|
-
doclingJsonS3?: string | null;
|
|
43
41
|
/**
|
|
44
42
|
* S3 URL to the fast plaintext export of the document
|
|
45
43
|
* @type {string}
|
|
@@ -29,7 +29,6 @@ export function DocumentVersionMetadataFromJSONTyped(json, ignoreDiscriminator)
|
|
|
29
29
|
return {
|
|
30
30
|
'sourceS3': json['source_s3'] == null ? undefined : json['source_s3'],
|
|
31
31
|
'cleanedSourceS3': json['cleaned_source_s3'] == null ? undefined : json['cleaned_source_s3'],
|
|
32
|
-
'doclingJsonS3': json['docling_json_s3'] == null ? undefined : json['docling_json_s3'],
|
|
33
32
|
'fastPlaintextS3': json['fast_plaintext_s3'] == null ? undefined : json['fast_plaintext_s3'],
|
|
34
33
|
'hash': json['hash'] == null ? undefined : json['hash'],
|
|
35
34
|
'pipelineState': json['pipeline_state'] == null ? undefined : PipelineStateFromJSON(json['pipeline_state']),
|
|
@@ -53,7 +52,6 @@ export function DocumentVersionMetadataToJSONTyped(value, ignoreDiscriminator =
|
|
|
53
52
|
return {
|
|
54
53
|
'source_s3': value['sourceS3'],
|
|
55
54
|
'cleaned_source_s3': value['cleanedSourceS3'],
|
|
56
|
-
'docling_json_s3': value['doclingJsonS3'],
|
|
57
55
|
'fast_plaintext_s3': value['fastPlaintextS3'],
|
|
58
56
|
'hash': value['hash'],
|
|
59
57
|
'pipeline_state': PipelineStateToJSON(value['pipelineState']),
|
|
@@ -37,13 +37,25 @@ export interface DocumentVersionMetadataUpdate {
|
|
|
37
37
|
* @type {string}
|
|
38
38
|
* @memberof DocumentVersionMetadataUpdate
|
|
39
39
|
*/
|
|
40
|
-
|
|
40
|
+
standardPipelineJsonS3?: string | null;
|
|
41
41
|
/**
|
|
42
42
|
*
|
|
43
43
|
* @type {string}
|
|
44
44
|
* @memberof DocumentVersionMetadataUpdate
|
|
45
45
|
*/
|
|
46
46
|
fastPlaintextS3?: string | null;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @type {string}
|
|
50
|
+
* @memberof DocumentVersionMetadataUpdate
|
|
51
|
+
*/
|
|
52
|
+
highAccuracyContentListS3?: string | null;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* @type {string}
|
|
56
|
+
* @memberof DocumentVersionMetadataUpdate
|
|
57
|
+
*/
|
|
58
|
+
highAccuracyMiddleS3?: string | null;
|
|
47
59
|
/**
|
|
48
60
|
*
|
|
49
61
|
* @type {string}
|
|
@@ -29,8 +29,10 @@ export function DocumentVersionMetadataUpdateFromJSONTyped(json, ignoreDiscrimin
|
|
|
29
29
|
return {
|
|
30
30
|
'sourceS3': json['source_s3'] == null ? undefined : json['source_s3'],
|
|
31
31
|
'cleanedSourceS3': json['cleaned_source_s3'] == null ? undefined : json['cleaned_source_s3'],
|
|
32
|
-
'
|
|
32
|
+
'standardPipelineJsonS3': json['standard_pipeline_json_s3'] == null ? undefined : json['standard_pipeline_json_s3'],
|
|
33
33
|
'fastPlaintextS3': json['fast_plaintext_s3'] == null ? undefined : json['fast_plaintext_s3'],
|
|
34
|
+
'highAccuracyContentListS3': json['high_accuracy_content_list_s3'] == null ? undefined : json['high_accuracy_content_list_s3'],
|
|
35
|
+
'highAccuracyMiddleS3': json['high_accuracy_middle_s3'] == null ? undefined : json['high_accuracy_middle_s3'],
|
|
34
36
|
'hash': json['hash'] == null ? undefined : json['hash'],
|
|
35
37
|
'pipelineState': json['pipeline_state'] == null ? undefined : PipelineStateFromJSON(json['pipeline_state']),
|
|
36
38
|
'totalPages': json['total_pages'] == null ? undefined : json['total_pages'],
|
|
@@ -53,8 +55,10 @@ export function DocumentVersionMetadataUpdateToJSONTyped(value, ignoreDiscrimina
|
|
|
53
55
|
return {
|
|
54
56
|
'source_s3': value['sourceS3'],
|
|
55
57
|
'cleaned_source_s3': value['cleanedSourceS3'],
|
|
56
|
-
'
|
|
58
|
+
'standard_pipeline_json_s3': value['standardPipelineJsonS3'],
|
|
57
59
|
'fast_plaintext_s3': value['fastPlaintextS3'],
|
|
60
|
+
'high_accuracy_content_list_s3': value['highAccuracyContentListS3'],
|
|
61
|
+
'high_accuracy_middle_s3': value['highAccuracyMiddleS3'],
|
|
58
62
|
'hash': value['hash'],
|
|
59
63
|
'pipeline_state': PipelineStateToJSON(value['pipelineState']),
|
|
60
64
|
'total_pages': value['totalPages'],
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { PipelineStatus } from './PipelineStatus';
|
|
13
|
+
import type { ConversionEngine } from './ConversionEngine';
|
|
13
14
|
import type { IngestionMode } from './IngestionMode';
|
|
14
15
|
import type { ChunkType } from './ChunkType';
|
|
15
16
|
/**
|
|
@@ -78,6 +79,12 @@ export interface PipelineState {
|
|
|
78
79
|
* @memberof PipelineState
|
|
79
80
|
*/
|
|
80
81
|
chunkType?: ChunkType;
|
|
82
|
+
/**
|
|
83
|
+
*
|
|
84
|
+
* @type {ConversionEngine}
|
|
85
|
+
* @memberof PipelineState
|
|
86
|
+
*/
|
|
87
|
+
conversionEngine?: ConversionEngine;
|
|
81
88
|
}
|
|
82
89
|
/**
|
|
83
90
|
* Check if a given object implements the PipelineState interface.
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
import { PipelineStatusFromJSON, PipelineStatusToJSON, } from './PipelineStatus';
|
|
15
|
+
import { ConversionEngineFromJSON, ConversionEngineToJSON, } from './ConversionEngine';
|
|
15
16
|
import { IngestionModeFromJSON, IngestionModeToJSON, } from './IngestionMode';
|
|
16
17
|
import { ChunkTypeFromJSON, ChunkTypeToJSON, } from './ChunkType';
|
|
17
18
|
/**
|
|
@@ -40,6 +41,7 @@ export function PipelineStateFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
40
41
|
'pageDpi': json['page_dpi'] == null ? undefined : json['page_dpi'],
|
|
41
42
|
'ingestionMode': json['ingestion_mode'] == null ? undefined : IngestionModeFromJSON(json['ingestion_mode']),
|
|
42
43
|
'chunkType': json['chunk_type'] == null ? undefined : ChunkTypeFromJSON(json['chunk_type']),
|
|
44
|
+
'conversionEngine': json['conversion_engine'] == null ? undefined : ConversionEngineFromJSON(json['conversion_engine']),
|
|
43
45
|
};
|
|
44
46
|
}
|
|
45
47
|
export function PipelineStateToJSON(json) {
|
|
@@ -60,6 +62,7 @@ export function PipelineStateToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
60
62
|
'page_dpi': value['pageDpi'],
|
|
61
63
|
'ingestion_mode': IngestionModeToJSON(value['ingestionMode']),
|
|
62
64
|
'chunk_type': ChunkTypeToJSON(value['chunkType']),
|
|
65
|
+
'conversion_engine': ConversionEngineToJSON(value['conversionEngine']),
|
|
63
66
|
};
|
|
64
67
|
}
|
|
65
68
|
export const PipelineStatePropertyValidationAttributesMap = {};
|
|
@@ -11,11 +11,13 @@ export * from './ChunkDocumentVersionResponse';
|
|
|
11
11
|
export * from './ChunkLineageResponse';
|
|
12
12
|
export * from './ChunkMetadataInput';
|
|
13
13
|
export * from './ChunkMetadataOutput';
|
|
14
|
+
export * from './ChunkNeighborsResponse';
|
|
14
15
|
export * from './ChunkResponse';
|
|
15
16
|
export * from './ChunkSearchRequest';
|
|
16
17
|
export * from './ChunkType';
|
|
17
18
|
export * from './Citation';
|
|
18
19
|
export * from './ClearVersionContentsResponse';
|
|
20
|
+
export * from './ConversionEngine';
|
|
19
21
|
export * from './CreateApiKeyRequest';
|
|
20
22
|
export * from './CreateApiKeyResponse';
|
|
21
23
|
export * from './CreateChunkLineageRequest';
|
|
@@ -29,6 +31,7 @@ export * from './CreateTagRequest';
|
|
|
29
31
|
export * from './CreateTenantRequest';
|
|
30
32
|
export * from './CreateThreadMessageRequest';
|
|
31
33
|
export * from './CreateThreadRequest';
|
|
34
|
+
export * from './DissolveSectionResponse';
|
|
32
35
|
export * from './DocumentOrigin';
|
|
33
36
|
export * from './DocumentResponse';
|
|
34
37
|
export * from './DocumentType';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -13,11 +13,13 @@ export * from './ChunkDocumentVersionResponse';
|
|
|
13
13
|
export * from './ChunkLineageResponse';
|
|
14
14
|
export * from './ChunkMetadataInput';
|
|
15
15
|
export * from './ChunkMetadataOutput';
|
|
16
|
+
export * from './ChunkNeighborsResponse';
|
|
16
17
|
export * from './ChunkResponse';
|
|
17
18
|
export * from './ChunkSearchRequest';
|
|
18
19
|
export * from './ChunkType';
|
|
19
20
|
export * from './Citation';
|
|
20
21
|
export * from './ClearVersionContentsResponse';
|
|
22
|
+
export * from './ConversionEngine';
|
|
21
23
|
export * from './CreateApiKeyRequest';
|
|
22
24
|
export * from './CreateApiKeyResponse';
|
|
23
25
|
export * from './CreateChunkLineageRequest';
|
|
@@ -31,6 +33,7 @@ export * from './CreateTagRequest';
|
|
|
31
33
|
export * from './CreateTenantRequest';
|
|
32
34
|
export * from './CreateThreadMessageRequest';
|
|
33
35
|
export * from './CreateThreadRequest';
|
|
36
|
+
export * from './DissolveSectionResponse';
|
|
34
37
|
export * from './DocumentOrigin';
|
|
35
38
|
export * from './DocumentResponse';
|
|
36
39
|
export * from './DocumentType';
|