@knowledge-stack/ksapi 1.52.0 → 1.52.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/README.md +2 -2
- package/dist/apis/ChunksApi.d.ts +4 -4
- package/dist/apis/ChunksApi.js +2 -2
- package/dist/esm/apis/ChunksApi.d.ts +4 -4
- package/dist/esm/apis/ChunksApi.js +2 -2
- package/dist/esm/models/PipelineState.d.ts +8 -2
- package/dist/esm/models/PipelineState.js +4 -4
- package/dist/esm/models/UpdateChunkContentRequest.d.ts +0 -7
- package/dist/esm/models/UpdateChunkContentRequest.js +0 -3
- package/dist/esm/models/UpdateChunkMetadataRequest.d.ts +20 -2
- package/dist/esm/models/UpdateChunkMetadataRequest.js +7 -3
- package/dist/esm/models/UpdateSectionRequest.d.ts +6 -0
- package/dist/esm/models/UpdateSectionRequest.js +2 -0
- package/dist/esm/models/WorkflowDetailResponse.d.ts +6 -0
- package/dist/esm/models/WorkflowDetailResponse.js +2 -0
- package/dist/esm/models/WorkflowSummaryResponse.d.ts +6 -0
- package/dist/esm/models/WorkflowSummaryResponse.js +2 -0
- package/dist/models/PipelineState.d.ts +8 -2
- package/dist/models/PipelineState.js +4 -4
- package/dist/models/UpdateChunkContentRequest.d.ts +0 -7
- package/dist/models/UpdateChunkContentRequest.js +0 -3
- package/dist/models/UpdateChunkMetadataRequest.d.ts +20 -2
- package/dist/models/UpdateChunkMetadataRequest.js +7 -3
- package/dist/models/UpdateSectionRequest.d.ts +6 -0
- package/dist/models/UpdateSectionRequest.js +2 -0
- package/dist/models/WorkflowDetailResponse.d.ts +6 -0
- package/dist/models/WorkflowDetailResponse.js +2 -0
- package/dist/models/WorkflowSummaryResponse.d.ts +6 -0
- package/dist/models/WorkflowSummaryResponse.js +2 -0
- package/docs/ChunksApi.md +1 -1
- package/docs/PipelineState.md +2 -0
- package/docs/UpdateChunkContentRequest.md +0 -2
- package/docs/UpdateChunkMetadataRequest.md +7 -1
- package/docs/UpdateSectionRequest.md +2 -0
- package/docs/WorkflowDetailResponse.md +2 -0
- package/docs/WorkflowSummaryResponse.md +2 -0
- package/package.json +1 -1
- package/src/apis/ChunksApi.ts +4 -4
- package/src/models/PipelineState.ts +12 -5
- package/src/models/UpdateChunkContentRequest.ts +0 -18
- package/src/models/UpdateChunkMetadataRequest.ts +27 -4
- package/src/models/UpdateSectionRequest.ts +8 -0
- package/src/models/WorkflowDetailResponse.ts +8 -0
- package/src/models/WorkflowSummaryResponse.ts +8 -0
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @knowledge-stack/ksapi@1.52.
|
|
1
|
+
# @knowledge-stack/ksapi@1.52.2
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the localhost API.
|
|
4
4
|
|
|
@@ -298,7 +298,7 @@ and is automatically generated by the
|
|
|
298
298
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
299
299
|
|
|
300
300
|
- API version: `0.1.0`
|
|
301
|
-
- Package version: `1.52.
|
|
301
|
+
- Package version: `1.52.2`
|
|
302
302
|
- Generator version: `7.20.0`
|
|
303
303
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
304
304
|
|
package/dist/apis/ChunksApi.d.ts
CHANGED
|
@@ -251,7 +251,7 @@ export interface ChunksApiInterface {
|
|
|
251
251
|
*/
|
|
252
252
|
updateChunkMetadataRequestOpts(requestParameters: UpdateChunkMetadataOperationRequest): Promise<runtime.RequestOpts>;
|
|
253
253
|
/**
|
|
254
|
-
* Update chunk metadata
|
|
254
|
+
* Update chunk metadata and/or move the chunk. The provided metadata is shallow-merged into the existing chunk_metadata. Move params (parent_path_part_id, prev_sibling_path_id, move_to_head) allow reparenting or reordering the chunk within the same document version.
|
|
255
255
|
* @summary Update Chunk Metadata Handler
|
|
256
256
|
* @param {string} chunkId
|
|
257
257
|
* @param {UpdateChunkMetadataRequest} updateChunkMetadataRequest
|
|
@@ -263,7 +263,7 @@ export interface ChunksApiInterface {
|
|
|
263
263
|
*/
|
|
264
264
|
updateChunkMetadataRaw(requestParameters: UpdateChunkMetadataOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ChunkResponse>>;
|
|
265
265
|
/**
|
|
266
|
-
* Update chunk metadata
|
|
266
|
+
* Update chunk metadata and/or move the chunk. The provided metadata is shallow-merged into the existing chunk_metadata. Move params (parent_path_part_id, prev_sibling_path_id, move_to_head) allow reparenting or reordering the chunk within the same document version.
|
|
267
267
|
* Update Chunk Metadata Handler
|
|
268
268
|
*/
|
|
269
269
|
updateChunkMetadata(requestParameters: UpdateChunkMetadataOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ChunkResponse>;
|
|
@@ -375,12 +375,12 @@ export declare class ChunksApi extends runtime.BaseAPI implements ChunksApiInter
|
|
|
375
375
|
*/
|
|
376
376
|
updateChunkMetadataRequestOpts(requestParameters: UpdateChunkMetadataOperationRequest): Promise<runtime.RequestOpts>;
|
|
377
377
|
/**
|
|
378
|
-
* Update chunk metadata
|
|
378
|
+
* Update chunk metadata and/or move the chunk. The provided metadata is shallow-merged into the existing chunk_metadata. Move params (parent_path_part_id, prev_sibling_path_id, move_to_head) allow reparenting or reordering the chunk within the same document version.
|
|
379
379
|
* Update Chunk Metadata Handler
|
|
380
380
|
*/
|
|
381
381
|
updateChunkMetadataRaw(requestParameters: UpdateChunkMetadataOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ChunkResponse>>;
|
|
382
382
|
/**
|
|
383
|
-
* Update chunk metadata
|
|
383
|
+
* Update chunk metadata and/or move the chunk. The provided metadata is shallow-merged into the existing chunk_metadata. Move params (parent_path_part_id, prev_sibling_path_id, move_to_head) allow reparenting or reordering the chunk within the same document version.
|
|
384
384
|
* Update Chunk Metadata Handler
|
|
385
385
|
*/
|
|
386
386
|
updateChunkMetadata(requestParameters: UpdateChunkMetadataOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ChunkResponse>;
|
package/dist/apis/ChunksApi.js
CHANGED
|
@@ -376,7 +376,7 @@ class ChunksApi extends runtime.BaseAPI {
|
|
|
376
376
|
});
|
|
377
377
|
}
|
|
378
378
|
/**
|
|
379
|
-
* Update chunk metadata
|
|
379
|
+
* Update chunk metadata and/or move the chunk. The provided metadata is shallow-merged into the existing chunk_metadata. Move params (parent_path_part_id, prev_sibling_path_id, move_to_head) allow reparenting or reordering the chunk within the same document version.
|
|
380
380
|
* Update Chunk Metadata Handler
|
|
381
381
|
*/
|
|
382
382
|
updateChunkMetadataRaw(requestParameters, initOverrides) {
|
|
@@ -387,7 +387,7 @@ class ChunksApi extends runtime.BaseAPI {
|
|
|
387
387
|
});
|
|
388
388
|
}
|
|
389
389
|
/**
|
|
390
|
-
* Update chunk metadata
|
|
390
|
+
* Update chunk metadata and/or move the chunk. The provided metadata is shallow-merged into the existing chunk_metadata. Move params (parent_path_part_id, prev_sibling_path_id, move_to_head) allow reparenting or reordering the chunk within the same document version.
|
|
391
391
|
* Update Chunk Metadata Handler
|
|
392
392
|
*/
|
|
393
393
|
updateChunkMetadata(requestParameters, initOverrides) {
|
|
@@ -251,7 +251,7 @@ export interface ChunksApiInterface {
|
|
|
251
251
|
*/
|
|
252
252
|
updateChunkMetadataRequestOpts(requestParameters: UpdateChunkMetadataOperationRequest): Promise<runtime.RequestOpts>;
|
|
253
253
|
/**
|
|
254
|
-
* Update chunk metadata
|
|
254
|
+
* Update chunk metadata and/or move the chunk. The provided metadata is shallow-merged into the existing chunk_metadata. Move params (parent_path_part_id, prev_sibling_path_id, move_to_head) allow reparenting or reordering the chunk within the same document version.
|
|
255
255
|
* @summary Update Chunk Metadata Handler
|
|
256
256
|
* @param {string} chunkId
|
|
257
257
|
* @param {UpdateChunkMetadataRequest} updateChunkMetadataRequest
|
|
@@ -263,7 +263,7 @@ export interface ChunksApiInterface {
|
|
|
263
263
|
*/
|
|
264
264
|
updateChunkMetadataRaw(requestParameters: UpdateChunkMetadataOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ChunkResponse>>;
|
|
265
265
|
/**
|
|
266
|
-
* Update chunk metadata
|
|
266
|
+
* Update chunk metadata and/or move the chunk. The provided metadata is shallow-merged into the existing chunk_metadata. Move params (parent_path_part_id, prev_sibling_path_id, move_to_head) allow reparenting or reordering the chunk within the same document version.
|
|
267
267
|
* Update Chunk Metadata Handler
|
|
268
268
|
*/
|
|
269
269
|
updateChunkMetadata(requestParameters: UpdateChunkMetadataOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ChunkResponse>;
|
|
@@ -375,12 +375,12 @@ export declare class ChunksApi extends runtime.BaseAPI implements ChunksApiInter
|
|
|
375
375
|
*/
|
|
376
376
|
updateChunkMetadataRequestOpts(requestParameters: UpdateChunkMetadataOperationRequest): Promise<runtime.RequestOpts>;
|
|
377
377
|
/**
|
|
378
|
-
* Update chunk metadata
|
|
378
|
+
* Update chunk metadata and/or move the chunk. The provided metadata is shallow-merged into the existing chunk_metadata. Move params (parent_path_part_id, prev_sibling_path_id, move_to_head) allow reparenting or reordering the chunk within the same document version.
|
|
379
379
|
* Update Chunk Metadata Handler
|
|
380
380
|
*/
|
|
381
381
|
updateChunkMetadataRaw(requestParameters: UpdateChunkMetadataOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ChunkResponse>>;
|
|
382
382
|
/**
|
|
383
|
-
* Update chunk metadata
|
|
383
|
+
* Update chunk metadata and/or move the chunk. The provided metadata is shallow-merged into the existing chunk_metadata. Move params (parent_path_part_id, prev_sibling_path_id, move_to_head) allow reparenting or reordering the chunk within the same document version.
|
|
384
384
|
* Update Chunk Metadata Handler
|
|
385
385
|
*/
|
|
386
386
|
updateChunkMetadata(requestParameters: UpdateChunkMetadataOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ChunkResponse>;
|
|
@@ -373,7 +373,7 @@ export class ChunksApi extends runtime.BaseAPI {
|
|
|
373
373
|
});
|
|
374
374
|
}
|
|
375
375
|
/**
|
|
376
|
-
* Update chunk metadata
|
|
376
|
+
* Update chunk metadata and/or move the chunk. The provided metadata is shallow-merged into the existing chunk_metadata. Move params (parent_path_part_id, prev_sibling_path_id, move_to_head) allow reparenting or reordering the chunk within the same document version.
|
|
377
377
|
* Update Chunk Metadata Handler
|
|
378
378
|
*/
|
|
379
379
|
updateChunkMetadataRaw(requestParameters, initOverrides) {
|
|
@@ -384,7 +384,7 @@ export class ChunksApi extends runtime.BaseAPI {
|
|
|
384
384
|
});
|
|
385
385
|
}
|
|
386
386
|
/**
|
|
387
|
-
* Update chunk metadata
|
|
387
|
+
* Update chunk metadata and/or move the chunk. The provided metadata is shallow-merged into the existing chunk_metadata. Move params (parent_path_part_id, prev_sibling_path_id, move_to_head) allow reparenting or reordering the chunk within the same document version.
|
|
388
388
|
* Update Chunk Metadata Handler
|
|
389
389
|
*/
|
|
390
390
|
updateChunkMetadata(requestParameters, initOverrides) {
|
|
@@ -25,11 +25,17 @@ export interface PipelineState {
|
|
|
25
25
|
*/
|
|
26
26
|
status: PipelineStatus;
|
|
27
27
|
/**
|
|
28
|
-
* Timestamp of the last pipeline execution attempt
|
|
28
|
+
* Timestamp of the last pipeline execution attempt (set once when a run starts)
|
|
29
29
|
* @type {Date}
|
|
30
30
|
* @memberof PipelineState
|
|
31
31
|
*/
|
|
32
|
-
lastRunTimestamp
|
|
32
|
+
lastRunTimestamp?: Date | null;
|
|
33
|
+
/**
|
|
34
|
+
* Timestamp of the last pipeline state change (set by activities)
|
|
35
|
+
* @type {Date}
|
|
36
|
+
* @memberof PipelineState
|
|
37
|
+
*/
|
|
38
|
+
lastStateUpdateTimestamp?: Date | null;
|
|
33
39
|
/**
|
|
34
40
|
* Name of the last activity that executed (e.g., 'docling_conversion')
|
|
35
41
|
* @type {string}
|
|
@@ -20,8 +20,6 @@ import { ChunkTypeFromJSON, ChunkTypeToJSON, } from './ChunkType';
|
|
|
20
20
|
export function instanceOfPipelineState(value) {
|
|
21
21
|
if (!('status' in value) || value['status'] === undefined)
|
|
22
22
|
return false;
|
|
23
|
-
if (!('lastRunTimestamp' in value) || value['lastRunTimestamp'] === undefined)
|
|
24
|
-
return false;
|
|
25
23
|
return true;
|
|
26
24
|
}
|
|
27
25
|
export function PipelineStateFromJSON(json) {
|
|
@@ -33,7 +31,8 @@ export function PipelineStateFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
33
31
|
}
|
|
34
32
|
return {
|
|
35
33
|
'status': PipelineStatusFromJSON(json['status']),
|
|
36
|
-
'lastRunTimestamp': (new Date(json['last_run_timestamp'])),
|
|
34
|
+
'lastRunTimestamp': json['last_run_timestamp'] == null ? undefined : (new Date(json['last_run_timestamp'])),
|
|
35
|
+
'lastStateUpdateTimestamp': json['last_state_update_timestamp'] == null ? undefined : (new Date(json['last_state_update_timestamp'])),
|
|
37
36
|
'lastActivity': json['last_activity'] == null ? undefined : json['last_activity'],
|
|
38
37
|
'error': json['error'] == null ? undefined : json['error'],
|
|
39
38
|
'temporalWorkflowId': json['temporal_workflow_id'] == null ? undefined : json['temporal_workflow_id'],
|
|
@@ -52,7 +51,8 @@ export function PipelineStateToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
52
51
|
}
|
|
53
52
|
return {
|
|
54
53
|
'status': PipelineStatusToJSON(value['status']),
|
|
55
|
-
'last_run_timestamp': value['lastRunTimestamp'].toISOString(),
|
|
54
|
+
'last_run_timestamp': value['lastRunTimestamp'] == null ? value['lastRunTimestamp'] : value['lastRunTimestamp'].toISOString(),
|
|
55
|
+
'last_state_update_timestamp': value['lastStateUpdateTimestamp'] == null ? value['lastStateUpdateTimestamp'] : value['lastStateUpdateTimestamp'].toISOString(),
|
|
56
56
|
'last_activity': value['lastActivity'],
|
|
57
57
|
'error': value['error'],
|
|
58
58
|
'temporal_workflow_id': value['temporalWorkflowId'],
|
|
@@ -9,7 +9,6 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type { ChunkType } from './ChunkType';
|
|
13
12
|
/**
|
|
14
13
|
* Request to update chunk content (creates new content row).
|
|
15
14
|
* @export
|
|
@@ -22,12 +21,6 @@ export interface UpdateChunkContentRequest {
|
|
|
22
21
|
* @memberof UpdateChunkContentRequest
|
|
23
22
|
*/
|
|
24
23
|
content: string;
|
|
25
|
-
/**
|
|
26
|
-
*
|
|
27
|
-
* @type {ChunkType}
|
|
28
|
-
* @memberof UpdateChunkContentRequest
|
|
29
|
-
*/
|
|
30
|
-
chunkType?: ChunkType;
|
|
31
24
|
}
|
|
32
25
|
/**
|
|
33
26
|
* Check if a given object implements the UpdateChunkContentRequest interface.
|
|
@@ -11,7 +11,6 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
-
import { ChunkTypeFromJSON, ChunkTypeToJSON, } from './ChunkType';
|
|
15
14
|
/**
|
|
16
15
|
* Check if a given object implements the UpdateChunkContentRequest interface.
|
|
17
16
|
*/
|
|
@@ -29,7 +28,6 @@ export function UpdateChunkContentRequestFromJSONTyped(json, ignoreDiscriminator
|
|
|
29
28
|
}
|
|
30
29
|
return {
|
|
31
30
|
'content': json['content'],
|
|
32
|
-
'chunkType': json['chunk_type'] == null ? undefined : ChunkTypeFromJSON(json['chunk_type']),
|
|
33
31
|
};
|
|
34
32
|
}
|
|
35
33
|
export function UpdateChunkContentRequestToJSON(json) {
|
|
@@ -41,7 +39,6 @@ export function UpdateChunkContentRequestToJSONTyped(value, ignoreDiscriminator
|
|
|
41
39
|
}
|
|
42
40
|
return {
|
|
43
41
|
'content': value['content'],
|
|
44
|
-
'chunk_type': ChunkTypeToJSON(value['chunkType']),
|
|
45
42
|
};
|
|
46
43
|
}
|
|
47
44
|
export const UpdateChunkContentRequestPropertyValidationAttributesMap = {
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import type { ChunkMetadataInput } from './ChunkMetadataInput';
|
|
13
13
|
/**
|
|
14
|
-
* Request to update chunk metadata
|
|
14
|
+
* Request to update chunk metadata and/or move the chunk.
|
|
15
15
|
* @export
|
|
16
16
|
* @interface UpdateChunkMetadataRequest
|
|
17
17
|
*/
|
|
@@ -21,7 +21,25 @@ export interface UpdateChunkMetadataRequest {
|
|
|
21
21
|
* @type {ChunkMetadataInput}
|
|
22
22
|
* @memberof UpdateChunkMetadataRequest
|
|
23
23
|
*/
|
|
24
|
-
chunkMetadata
|
|
24
|
+
chunkMetadata?: ChunkMetadataInput;
|
|
25
|
+
/**
|
|
26
|
+
* Reparent to this PathPart ID (must be DOCUMENT_VERSION or SECTION in the same document version)
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof UpdateChunkMetadataRequest
|
|
29
|
+
*/
|
|
30
|
+
parentPathPartId?: string | null;
|
|
31
|
+
/**
|
|
32
|
+
* Move after this sibling PathPart ID (within new or current parent)
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof UpdateChunkMetadataRequest
|
|
35
|
+
*/
|
|
36
|
+
prevSiblingPathId?: string | null;
|
|
37
|
+
/**
|
|
38
|
+
* Set to true to move to head of sibling list
|
|
39
|
+
* @type {boolean}
|
|
40
|
+
* @memberof UpdateChunkMetadataRequest
|
|
41
|
+
*/
|
|
42
|
+
moveToHead?: boolean;
|
|
25
43
|
}
|
|
26
44
|
/**
|
|
27
45
|
* Check if a given object implements the UpdateChunkMetadataRequest interface.
|
|
@@ -16,8 +16,6 @@ import { ChunkMetadataInputFromJSON, ChunkMetadataInputToJSON, } from './ChunkMe
|
|
|
16
16
|
* Check if a given object implements the UpdateChunkMetadataRequest interface.
|
|
17
17
|
*/
|
|
18
18
|
export function instanceOfUpdateChunkMetadataRequest(value) {
|
|
19
|
-
if (!('chunkMetadata' in value) || value['chunkMetadata'] === undefined)
|
|
20
|
-
return false;
|
|
21
19
|
return true;
|
|
22
20
|
}
|
|
23
21
|
export function UpdateChunkMetadataRequestFromJSON(json) {
|
|
@@ -28,7 +26,10 @@ export function UpdateChunkMetadataRequestFromJSONTyped(json, ignoreDiscriminato
|
|
|
28
26
|
return json;
|
|
29
27
|
}
|
|
30
28
|
return {
|
|
31
|
-
'chunkMetadata': ChunkMetadataInputFromJSON(json['chunk_metadata']),
|
|
29
|
+
'chunkMetadata': json['chunk_metadata'] == null ? undefined : ChunkMetadataInputFromJSON(json['chunk_metadata']),
|
|
30
|
+
'parentPathPartId': json['parent_path_part_id'] == null ? undefined : json['parent_path_part_id'],
|
|
31
|
+
'prevSiblingPathId': json['prev_sibling_path_id'] == null ? undefined : json['prev_sibling_path_id'],
|
|
32
|
+
'moveToHead': json['move_to_head'] == null ? undefined : json['move_to_head'],
|
|
32
33
|
};
|
|
33
34
|
}
|
|
34
35
|
export function UpdateChunkMetadataRequestToJSON(json) {
|
|
@@ -40,6 +41,9 @@ export function UpdateChunkMetadataRequestToJSONTyped(value, ignoreDiscriminator
|
|
|
40
41
|
}
|
|
41
42
|
return {
|
|
42
43
|
'chunk_metadata': ChunkMetadataInputToJSON(value['chunkMetadata']),
|
|
44
|
+
'parent_path_part_id': value['parentPathPartId'],
|
|
45
|
+
'prev_sibling_path_id': value['prevSiblingPathId'],
|
|
46
|
+
'move_to_head': value['moveToHead'],
|
|
43
47
|
};
|
|
44
48
|
}
|
|
45
49
|
export const UpdateChunkMetadataRequestPropertyValidationAttributesMap = {};
|
|
@@ -39,6 +39,12 @@ export interface UpdateSectionRequest {
|
|
|
39
39
|
* @memberof UpdateSectionRequest
|
|
40
40
|
*/
|
|
41
41
|
moveToHead?: boolean;
|
|
42
|
+
/**
|
|
43
|
+
* Reparent to this PathPart ID (must be DOCUMENT_VERSION or SECTION in the same document version)
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof UpdateSectionRequest
|
|
46
|
+
*/
|
|
47
|
+
parentPathPartId?: string | null;
|
|
42
48
|
}
|
|
43
49
|
/**
|
|
44
50
|
* Check if a given object implements the UpdateSectionRequest interface.
|
|
@@ -29,6 +29,7 @@ export function UpdateSectionRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
29
29
|
'pageNumber': json['page_number'] == null ? undefined : json['page_number'],
|
|
30
30
|
'prevSiblingPathId': json['prev_sibling_path_id'] == null ? undefined : json['prev_sibling_path_id'],
|
|
31
31
|
'moveToHead': json['move_to_head'] == null ? undefined : json['move_to_head'],
|
|
32
|
+
'parentPathPartId': json['parent_path_part_id'] == null ? undefined : json['parent_path_part_id'],
|
|
32
33
|
};
|
|
33
34
|
}
|
|
34
35
|
export function UpdateSectionRequestToJSON(json) {
|
|
@@ -43,6 +44,7 @@ export function UpdateSectionRequestToJSONTyped(value, ignoreDiscriminator = fal
|
|
|
43
44
|
'page_number': value['pageNumber'],
|
|
44
45
|
'prev_sibling_path_id': value['prevSiblingPathId'],
|
|
45
46
|
'move_to_head': value['moveToHead'],
|
|
47
|
+
'parent_path_part_id': value['parentPathPartId'],
|
|
46
48
|
};
|
|
47
49
|
}
|
|
48
50
|
export const UpdateSectionRequestPropertyValidationAttributesMap = {
|
|
@@ -58,6 +58,12 @@ export interface WorkflowDetailResponse {
|
|
|
58
58
|
* @memberof WorkflowDetailResponse
|
|
59
59
|
*/
|
|
60
60
|
lastRunTimestamp: Date;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {Date}
|
|
64
|
+
* @memberof WorkflowDetailResponse
|
|
65
|
+
*/
|
|
66
|
+
lastStateUpdateTimestamp?: Date | null;
|
|
61
67
|
/**
|
|
62
68
|
*
|
|
63
69
|
* @type {Date}
|
|
@@ -55,6 +55,7 @@ export function WorkflowDetailResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
55
55
|
'lastActivity': json['last_activity'] == null ? undefined : json['last_activity'],
|
|
56
56
|
'error': json['error'] == null ? undefined : json['error'],
|
|
57
57
|
'lastRunTimestamp': (new Date(json['last_run_timestamp'])),
|
|
58
|
+
'lastStateUpdateTimestamp': json['last_state_update_timestamp'] == null ? undefined : (new Date(json['last_state_update_timestamp'])),
|
|
58
59
|
'createdAt': (new Date(json['created_at'])),
|
|
59
60
|
'temporalStatus': json['temporal_status'],
|
|
60
61
|
'startTime': (new Date(json['start_time'])),
|
|
@@ -80,6 +81,7 @@ export function WorkflowDetailResponseToJSONTyped(value, ignoreDiscriminator = f
|
|
|
80
81
|
'last_activity': value['lastActivity'],
|
|
81
82
|
'error': value['error'],
|
|
82
83
|
'last_run_timestamp': value['lastRunTimestamp'].toISOString(),
|
|
84
|
+
'last_state_update_timestamp': value['lastStateUpdateTimestamp'] == null ? value['lastStateUpdateTimestamp'] : value['lastStateUpdateTimestamp'].toISOString(),
|
|
83
85
|
'created_at': value['createdAt'].toISOString(),
|
|
84
86
|
'temporal_status': value['temporalStatus'],
|
|
85
87
|
'start_time': value['startTime'].toISOString(),
|
|
@@ -58,6 +58,12 @@ export interface WorkflowSummaryResponse {
|
|
|
58
58
|
* @memberof WorkflowSummaryResponse
|
|
59
59
|
*/
|
|
60
60
|
lastRunTimestamp: Date;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {Date}
|
|
64
|
+
* @memberof WorkflowSummaryResponse
|
|
65
|
+
*/
|
|
66
|
+
lastStateUpdateTimestamp?: Date | null;
|
|
61
67
|
/**
|
|
62
68
|
*
|
|
63
69
|
* @type {Date}
|
|
@@ -45,6 +45,7 @@ export function WorkflowSummaryResponseFromJSONTyped(json, ignoreDiscriminator)
|
|
|
45
45
|
'lastActivity': json['last_activity'] == null ? undefined : json['last_activity'],
|
|
46
46
|
'error': json['error'] == null ? undefined : json['error'],
|
|
47
47
|
'lastRunTimestamp': (new Date(json['last_run_timestamp'])),
|
|
48
|
+
'lastStateUpdateTimestamp': json['last_state_update_timestamp'] == null ? undefined : (new Date(json['last_state_update_timestamp'])),
|
|
48
49
|
'createdAt': (new Date(json['created_at'])),
|
|
49
50
|
};
|
|
50
51
|
}
|
|
@@ -63,6 +64,7 @@ export function WorkflowSummaryResponseToJSONTyped(value, ignoreDiscriminator =
|
|
|
63
64
|
'last_activity': value['lastActivity'],
|
|
64
65
|
'error': value['error'],
|
|
65
66
|
'last_run_timestamp': value['lastRunTimestamp'].toISOString(),
|
|
67
|
+
'last_state_update_timestamp': value['lastStateUpdateTimestamp'] == null ? value['lastStateUpdateTimestamp'] : value['lastStateUpdateTimestamp'].toISOString(),
|
|
66
68
|
'created_at': value['createdAt'].toISOString(),
|
|
67
69
|
};
|
|
68
70
|
}
|
|
@@ -25,11 +25,17 @@ export interface PipelineState {
|
|
|
25
25
|
*/
|
|
26
26
|
status: PipelineStatus;
|
|
27
27
|
/**
|
|
28
|
-
* Timestamp of the last pipeline execution attempt
|
|
28
|
+
* Timestamp of the last pipeline execution attempt (set once when a run starts)
|
|
29
29
|
* @type {Date}
|
|
30
30
|
* @memberof PipelineState
|
|
31
31
|
*/
|
|
32
|
-
lastRunTimestamp
|
|
32
|
+
lastRunTimestamp?: Date | null;
|
|
33
|
+
/**
|
|
34
|
+
* Timestamp of the last pipeline state change (set by activities)
|
|
35
|
+
* @type {Date}
|
|
36
|
+
* @memberof PipelineState
|
|
37
|
+
*/
|
|
38
|
+
lastStateUpdateTimestamp?: Date | null;
|
|
33
39
|
/**
|
|
34
40
|
* Name of the last activity that executed (e.g., 'docling_conversion')
|
|
35
41
|
* @type {string}
|
|
@@ -28,8 +28,6 @@ const ChunkType_1 = require("./ChunkType");
|
|
|
28
28
|
function instanceOfPipelineState(value) {
|
|
29
29
|
if (!('status' in value) || value['status'] === undefined)
|
|
30
30
|
return false;
|
|
31
|
-
if (!('lastRunTimestamp' in value) || value['lastRunTimestamp'] === undefined)
|
|
32
|
-
return false;
|
|
33
31
|
return true;
|
|
34
32
|
}
|
|
35
33
|
function PipelineStateFromJSON(json) {
|
|
@@ -41,7 +39,8 @@ function PipelineStateFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
41
39
|
}
|
|
42
40
|
return {
|
|
43
41
|
'status': (0, PipelineStatus_1.PipelineStatusFromJSON)(json['status']),
|
|
44
|
-
'lastRunTimestamp': (new Date(json['last_run_timestamp'])),
|
|
42
|
+
'lastRunTimestamp': json['last_run_timestamp'] == null ? undefined : (new Date(json['last_run_timestamp'])),
|
|
43
|
+
'lastStateUpdateTimestamp': json['last_state_update_timestamp'] == null ? undefined : (new Date(json['last_state_update_timestamp'])),
|
|
45
44
|
'lastActivity': json['last_activity'] == null ? undefined : json['last_activity'],
|
|
46
45
|
'error': json['error'] == null ? undefined : json['error'],
|
|
47
46
|
'temporalWorkflowId': json['temporal_workflow_id'] == null ? undefined : json['temporal_workflow_id'],
|
|
@@ -60,7 +59,8 @@ function PipelineStateToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
60
59
|
}
|
|
61
60
|
return {
|
|
62
61
|
'status': (0, PipelineStatus_1.PipelineStatusToJSON)(value['status']),
|
|
63
|
-
'last_run_timestamp': value['lastRunTimestamp'].toISOString(),
|
|
62
|
+
'last_run_timestamp': value['lastRunTimestamp'] == null ? value['lastRunTimestamp'] : value['lastRunTimestamp'].toISOString(),
|
|
63
|
+
'last_state_update_timestamp': value['lastStateUpdateTimestamp'] == null ? value['lastStateUpdateTimestamp'] : value['lastStateUpdateTimestamp'].toISOString(),
|
|
64
64
|
'last_activity': value['lastActivity'],
|
|
65
65
|
'error': value['error'],
|
|
66
66
|
'temporal_workflow_id': value['temporalWorkflowId'],
|
|
@@ -9,7 +9,6 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type { ChunkType } from './ChunkType';
|
|
13
12
|
/**
|
|
14
13
|
* Request to update chunk content (creates new content row).
|
|
15
14
|
* @export
|
|
@@ -22,12 +21,6 @@ export interface UpdateChunkContentRequest {
|
|
|
22
21
|
* @memberof UpdateChunkContentRequest
|
|
23
22
|
*/
|
|
24
23
|
content: string;
|
|
25
|
-
/**
|
|
26
|
-
*
|
|
27
|
-
* @type {ChunkType}
|
|
28
|
-
* @memberof UpdateChunkContentRequest
|
|
29
|
-
*/
|
|
30
|
-
chunkType?: ChunkType;
|
|
31
24
|
}
|
|
32
25
|
/**
|
|
33
26
|
* Check if a given object implements the UpdateChunkContentRequest interface.
|
|
@@ -19,7 +19,6 @@ exports.UpdateChunkContentRequestFromJSON = UpdateChunkContentRequestFromJSON;
|
|
|
19
19
|
exports.UpdateChunkContentRequestFromJSONTyped = UpdateChunkContentRequestFromJSONTyped;
|
|
20
20
|
exports.UpdateChunkContentRequestToJSON = UpdateChunkContentRequestToJSON;
|
|
21
21
|
exports.UpdateChunkContentRequestToJSONTyped = UpdateChunkContentRequestToJSONTyped;
|
|
22
|
-
const ChunkType_1 = require("./ChunkType");
|
|
23
22
|
/**
|
|
24
23
|
* Check if a given object implements the UpdateChunkContentRequest interface.
|
|
25
24
|
*/
|
|
@@ -37,7 +36,6 @@ function UpdateChunkContentRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
37
36
|
}
|
|
38
37
|
return {
|
|
39
38
|
'content': json['content'],
|
|
40
|
-
'chunkType': json['chunk_type'] == null ? undefined : (0, ChunkType_1.ChunkTypeFromJSON)(json['chunk_type']),
|
|
41
39
|
};
|
|
42
40
|
}
|
|
43
41
|
function UpdateChunkContentRequestToJSON(json) {
|
|
@@ -49,7 +47,6 @@ function UpdateChunkContentRequestToJSONTyped(value, ignoreDiscriminator = false
|
|
|
49
47
|
}
|
|
50
48
|
return {
|
|
51
49
|
'content': value['content'],
|
|
52
|
-
'chunk_type': (0, ChunkType_1.ChunkTypeToJSON)(value['chunkType']),
|
|
53
50
|
};
|
|
54
51
|
}
|
|
55
52
|
exports.UpdateChunkContentRequestPropertyValidationAttributesMap = {
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import type { ChunkMetadataInput } from './ChunkMetadataInput';
|
|
13
13
|
/**
|
|
14
|
-
* Request to update chunk metadata
|
|
14
|
+
* Request to update chunk metadata and/or move the chunk.
|
|
15
15
|
* @export
|
|
16
16
|
* @interface UpdateChunkMetadataRequest
|
|
17
17
|
*/
|
|
@@ -21,7 +21,25 @@ export interface UpdateChunkMetadataRequest {
|
|
|
21
21
|
* @type {ChunkMetadataInput}
|
|
22
22
|
* @memberof UpdateChunkMetadataRequest
|
|
23
23
|
*/
|
|
24
|
-
chunkMetadata
|
|
24
|
+
chunkMetadata?: ChunkMetadataInput;
|
|
25
|
+
/**
|
|
26
|
+
* Reparent to this PathPart ID (must be DOCUMENT_VERSION or SECTION in the same document version)
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof UpdateChunkMetadataRequest
|
|
29
|
+
*/
|
|
30
|
+
parentPathPartId?: string | null;
|
|
31
|
+
/**
|
|
32
|
+
* Move after this sibling PathPart ID (within new or current parent)
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof UpdateChunkMetadataRequest
|
|
35
|
+
*/
|
|
36
|
+
prevSiblingPathId?: string | null;
|
|
37
|
+
/**
|
|
38
|
+
* Set to true to move to head of sibling list
|
|
39
|
+
* @type {boolean}
|
|
40
|
+
* @memberof UpdateChunkMetadataRequest
|
|
41
|
+
*/
|
|
42
|
+
moveToHead?: boolean;
|
|
25
43
|
}
|
|
26
44
|
/**
|
|
27
45
|
* Check if a given object implements the UpdateChunkMetadataRequest interface.
|
|
@@ -24,8 +24,6 @@ const ChunkMetadataInput_1 = require("./ChunkMetadataInput");
|
|
|
24
24
|
* Check if a given object implements the UpdateChunkMetadataRequest interface.
|
|
25
25
|
*/
|
|
26
26
|
function instanceOfUpdateChunkMetadataRequest(value) {
|
|
27
|
-
if (!('chunkMetadata' in value) || value['chunkMetadata'] === undefined)
|
|
28
|
-
return false;
|
|
29
27
|
return true;
|
|
30
28
|
}
|
|
31
29
|
function UpdateChunkMetadataRequestFromJSON(json) {
|
|
@@ -36,7 +34,10 @@ function UpdateChunkMetadataRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
36
34
|
return json;
|
|
37
35
|
}
|
|
38
36
|
return {
|
|
39
|
-
'chunkMetadata': (0, ChunkMetadataInput_1.ChunkMetadataInputFromJSON)(json['chunk_metadata']),
|
|
37
|
+
'chunkMetadata': json['chunk_metadata'] == null ? undefined : (0, ChunkMetadataInput_1.ChunkMetadataInputFromJSON)(json['chunk_metadata']),
|
|
38
|
+
'parentPathPartId': json['parent_path_part_id'] == null ? undefined : json['parent_path_part_id'],
|
|
39
|
+
'prevSiblingPathId': json['prev_sibling_path_id'] == null ? undefined : json['prev_sibling_path_id'],
|
|
40
|
+
'moveToHead': json['move_to_head'] == null ? undefined : json['move_to_head'],
|
|
40
41
|
};
|
|
41
42
|
}
|
|
42
43
|
function UpdateChunkMetadataRequestToJSON(json) {
|
|
@@ -48,6 +49,9 @@ function UpdateChunkMetadataRequestToJSONTyped(value, ignoreDiscriminator = fals
|
|
|
48
49
|
}
|
|
49
50
|
return {
|
|
50
51
|
'chunk_metadata': (0, ChunkMetadataInput_1.ChunkMetadataInputToJSON)(value['chunkMetadata']),
|
|
52
|
+
'parent_path_part_id': value['parentPathPartId'],
|
|
53
|
+
'prev_sibling_path_id': value['prevSiblingPathId'],
|
|
54
|
+
'move_to_head': value['moveToHead'],
|
|
51
55
|
};
|
|
52
56
|
}
|
|
53
57
|
exports.UpdateChunkMetadataRequestPropertyValidationAttributesMap = {};
|
|
@@ -39,6 +39,12 @@ export interface UpdateSectionRequest {
|
|
|
39
39
|
* @memberof UpdateSectionRequest
|
|
40
40
|
*/
|
|
41
41
|
moveToHead?: boolean;
|
|
42
|
+
/**
|
|
43
|
+
* Reparent to this PathPart ID (must be DOCUMENT_VERSION or SECTION in the same document version)
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof UpdateSectionRequest
|
|
46
|
+
*/
|
|
47
|
+
parentPathPartId?: string | null;
|
|
42
48
|
}
|
|
43
49
|
/**
|
|
44
50
|
* Check if a given object implements the UpdateSectionRequest interface.
|
|
@@ -37,6 +37,7 @@ function UpdateSectionRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
37
37
|
'pageNumber': json['page_number'] == null ? undefined : json['page_number'],
|
|
38
38
|
'prevSiblingPathId': json['prev_sibling_path_id'] == null ? undefined : json['prev_sibling_path_id'],
|
|
39
39
|
'moveToHead': json['move_to_head'] == null ? undefined : json['move_to_head'],
|
|
40
|
+
'parentPathPartId': json['parent_path_part_id'] == null ? undefined : json['parent_path_part_id'],
|
|
40
41
|
};
|
|
41
42
|
}
|
|
42
43
|
function UpdateSectionRequestToJSON(json) {
|
|
@@ -51,6 +52,7 @@ function UpdateSectionRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
51
52
|
'page_number': value['pageNumber'],
|
|
52
53
|
'prev_sibling_path_id': value['prevSiblingPathId'],
|
|
53
54
|
'move_to_head': value['moveToHead'],
|
|
55
|
+
'parent_path_part_id': value['parentPathPartId'],
|
|
54
56
|
};
|
|
55
57
|
}
|
|
56
58
|
exports.UpdateSectionRequestPropertyValidationAttributesMap = {
|
|
@@ -58,6 +58,12 @@ export interface WorkflowDetailResponse {
|
|
|
58
58
|
* @memberof WorkflowDetailResponse
|
|
59
59
|
*/
|
|
60
60
|
lastRunTimestamp: Date;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {Date}
|
|
64
|
+
* @memberof WorkflowDetailResponse
|
|
65
|
+
*/
|
|
66
|
+
lastStateUpdateTimestamp?: Date | null;
|
|
61
67
|
/**
|
|
62
68
|
*
|
|
63
69
|
* @type {Date}
|
|
@@ -63,6 +63,7 @@ function WorkflowDetailResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
63
63
|
'lastActivity': json['last_activity'] == null ? undefined : json['last_activity'],
|
|
64
64
|
'error': json['error'] == null ? undefined : json['error'],
|
|
65
65
|
'lastRunTimestamp': (new Date(json['last_run_timestamp'])),
|
|
66
|
+
'lastStateUpdateTimestamp': json['last_state_update_timestamp'] == null ? undefined : (new Date(json['last_state_update_timestamp'])),
|
|
66
67
|
'createdAt': (new Date(json['created_at'])),
|
|
67
68
|
'temporalStatus': json['temporal_status'],
|
|
68
69
|
'startTime': (new Date(json['start_time'])),
|
|
@@ -88,6 +89,7 @@ function WorkflowDetailResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
88
89
|
'last_activity': value['lastActivity'],
|
|
89
90
|
'error': value['error'],
|
|
90
91
|
'last_run_timestamp': value['lastRunTimestamp'].toISOString(),
|
|
92
|
+
'last_state_update_timestamp': value['lastStateUpdateTimestamp'] == null ? value['lastStateUpdateTimestamp'] : value['lastStateUpdateTimestamp'].toISOString(),
|
|
91
93
|
'created_at': value['createdAt'].toISOString(),
|
|
92
94
|
'temporal_status': value['temporalStatus'],
|
|
93
95
|
'start_time': value['startTime'].toISOString(),
|
|
@@ -58,6 +58,12 @@ export interface WorkflowSummaryResponse {
|
|
|
58
58
|
* @memberof WorkflowSummaryResponse
|
|
59
59
|
*/
|
|
60
60
|
lastRunTimestamp: Date;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {Date}
|
|
64
|
+
* @memberof WorkflowSummaryResponse
|
|
65
|
+
*/
|
|
66
|
+
lastStateUpdateTimestamp?: Date | null;
|
|
61
67
|
/**
|
|
62
68
|
*
|
|
63
69
|
* @type {Date}
|
|
@@ -53,6 +53,7 @@ function WorkflowSummaryResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
53
53
|
'lastActivity': json['last_activity'] == null ? undefined : json['last_activity'],
|
|
54
54
|
'error': json['error'] == null ? undefined : json['error'],
|
|
55
55
|
'lastRunTimestamp': (new Date(json['last_run_timestamp'])),
|
|
56
|
+
'lastStateUpdateTimestamp': json['last_state_update_timestamp'] == null ? undefined : (new Date(json['last_state_update_timestamp'])),
|
|
56
57
|
'createdAt': (new Date(json['created_at'])),
|
|
57
58
|
};
|
|
58
59
|
}
|
|
@@ -71,6 +72,7 @@ function WorkflowSummaryResponseToJSONTyped(value, ignoreDiscriminator = false)
|
|
|
71
72
|
'last_activity': value['lastActivity'],
|
|
72
73
|
'error': value['error'],
|
|
73
74
|
'last_run_timestamp': value['lastRunTimestamp'].toISOString(),
|
|
75
|
+
'last_state_update_timestamp': value['lastStateUpdateTimestamp'] == null ? value['lastStateUpdateTimestamp'] : value['lastStateUpdateTimestamp'].toISOString(),
|
|
74
76
|
'created_at': value['createdAt'].toISOString(),
|
|
75
77
|
};
|
|
76
78
|
}
|
package/docs/ChunksApi.md
CHANGED
|
@@ -545,7 +545,7 @@ No authorization required
|
|
|
545
545
|
|
|
546
546
|
Update Chunk Metadata Handler
|
|
547
547
|
|
|
548
|
-
Update chunk metadata
|
|
548
|
+
Update chunk metadata and/or move the chunk. The provided metadata is shallow-merged into the existing chunk_metadata. Move params (parent_path_part_id, prev_sibling_path_id, move_to_head) allow reparenting or reordering the chunk within the same document version.
|
|
549
549
|
|
|
550
550
|
### Example
|
|
551
551
|
|
package/docs/PipelineState.md
CHANGED
|
@@ -9,6 +9,7 @@ Name | Type
|
|
|
9
9
|
------------ | -------------
|
|
10
10
|
`status` | [PipelineStatus](PipelineStatus.md)
|
|
11
11
|
`lastRunTimestamp` | Date
|
|
12
|
+
`lastStateUpdateTimestamp` | Date
|
|
12
13
|
`lastActivity` | string
|
|
13
14
|
`error` | string
|
|
14
15
|
`temporalWorkflowId` | string
|
|
@@ -26,6 +27,7 @@ import type { PipelineState } from '@knowledge-stack/ksapi'
|
|
|
26
27
|
const example = {
|
|
27
28
|
"status": null,
|
|
28
29
|
"lastRunTimestamp": null,
|
|
30
|
+
"lastStateUpdateTimestamp": null,
|
|
29
31
|
"lastActivity": null,
|
|
30
32
|
"error": null,
|
|
31
33
|
"temporalWorkflowId": null,
|
|
@@ -8,7 +8,6 @@ Request to update chunk content (creates new content row).
|
|
|
8
8
|
Name | Type
|
|
9
9
|
------------ | -------------
|
|
10
10
|
`content` | string
|
|
11
|
-
`chunkType` | [ChunkType](ChunkType.md)
|
|
12
11
|
|
|
13
12
|
## Example
|
|
14
13
|
|
|
@@ -18,7 +17,6 @@ import type { UpdateChunkContentRequest } from '@knowledge-stack/ksapi'
|
|
|
18
17
|
// TODO: Update the object below with actual values
|
|
19
18
|
const example = {
|
|
20
19
|
"content": null,
|
|
21
|
-
"chunkType": null,
|
|
22
20
|
} satisfies UpdateChunkContentRequest
|
|
23
21
|
|
|
24
22
|
console.log(example)
|
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
|
|
2
2
|
# UpdateChunkMetadataRequest
|
|
3
3
|
|
|
4
|
-
Request to update chunk metadata
|
|
4
|
+
Request to update chunk metadata and/or move the chunk.
|
|
5
5
|
|
|
6
6
|
## Properties
|
|
7
7
|
|
|
8
8
|
Name | Type
|
|
9
9
|
------------ | -------------
|
|
10
10
|
`chunkMetadata` | [ChunkMetadataInput](ChunkMetadataInput.md)
|
|
11
|
+
`parentPathPartId` | string
|
|
12
|
+
`prevSiblingPathId` | string
|
|
13
|
+
`moveToHead` | boolean
|
|
11
14
|
|
|
12
15
|
## Example
|
|
13
16
|
|
|
@@ -17,6 +20,9 @@ import type { UpdateChunkMetadataRequest } from '@knowledge-stack/ksapi'
|
|
|
17
20
|
// TODO: Update the object below with actual values
|
|
18
21
|
const example = {
|
|
19
22
|
"chunkMetadata": null,
|
|
23
|
+
"parentPathPartId": null,
|
|
24
|
+
"prevSiblingPathId": null,
|
|
25
|
+
"moveToHead": null,
|
|
20
26
|
} satisfies UpdateChunkMetadataRequest
|
|
21
27
|
|
|
22
28
|
console.log(example)
|
|
@@ -11,6 +11,7 @@ Name | Type
|
|
|
11
11
|
`pageNumber` | number
|
|
12
12
|
`prevSiblingPathId` | string
|
|
13
13
|
`moveToHead` | boolean
|
|
14
|
+
`parentPathPartId` | string
|
|
14
15
|
|
|
15
16
|
## Example
|
|
16
17
|
|
|
@@ -23,6 +24,7 @@ const example = {
|
|
|
23
24
|
"pageNumber": null,
|
|
24
25
|
"prevSiblingPathId": null,
|
|
25
26
|
"moveToHead": null,
|
|
27
|
+
"parentPathPartId": null,
|
|
26
28
|
} satisfies UpdateSectionRequest
|
|
27
29
|
|
|
28
30
|
console.log(example)
|
|
@@ -14,6 +14,7 @@ Name | Type
|
|
|
14
14
|
`lastActivity` | string
|
|
15
15
|
`error` | string
|
|
16
16
|
`lastRunTimestamp` | Date
|
|
17
|
+
`lastStateUpdateTimestamp` | Date
|
|
17
18
|
`createdAt` | Date
|
|
18
19
|
`temporalStatus` | string
|
|
19
20
|
`startTime` | Date
|
|
@@ -37,6 +38,7 @@ const example = {
|
|
|
37
38
|
"lastActivity": null,
|
|
38
39
|
"error": null,
|
|
39
40
|
"lastRunTimestamp": null,
|
|
41
|
+
"lastStateUpdateTimestamp": null,
|
|
40
42
|
"createdAt": null,
|
|
41
43
|
"temporalStatus": null,
|
|
42
44
|
"startTime": null,
|
|
@@ -14,6 +14,7 @@ Name | Type
|
|
|
14
14
|
`lastActivity` | string
|
|
15
15
|
`error` | string
|
|
16
16
|
`lastRunTimestamp` | Date
|
|
17
|
+
`lastStateUpdateTimestamp` | Date
|
|
17
18
|
`createdAt` | Date
|
|
18
19
|
|
|
19
20
|
## Example
|
|
@@ -30,6 +31,7 @@ const example = {
|
|
|
30
31
|
"lastActivity": null,
|
|
31
32
|
"error": null,
|
|
32
33
|
"lastRunTimestamp": null,
|
|
34
|
+
"lastStateUpdateTimestamp": null,
|
|
33
35
|
"createdAt": null,
|
|
34
36
|
} satisfies WorkflowSummaryResponse
|
|
35
37
|
|
package/package.json
CHANGED
package/src/apis/ChunksApi.ts
CHANGED
|
@@ -316,7 +316,7 @@ export interface ChunksApiInterface {
|
|
|
316
316
|
updateChunkMetadataRequestOpts(requestParameters: UpdateChunkMetadataOperationRequest): Promise<runtime.RequestOpts>;
|
|
317
317
|
|
|
318
318
|
/**
|
|
319
|
-
* Update chunk metadata
|
|
319
|
+
* Update chunk metadata and/or move the chunk. The provided metadata is shallow-merged into the existing chunk_metadata. Move params (parent_path_part_id, prev_sibling_path_id, move_to_head) allow reparenting or reordering the chunk within the same document version.
|
|
320
320
|
* @summary Update Chunk Metadata Handler
|
|
321
321
|
* @param {string} chunkId
|
|
322
322
|
* @param {UpdateChunkMetadataRequest} updateChunkMetadataRequest
|
|
@@ -329,7 +329,7 @@ export interface ChunksApiInterface {
|
|
|
329
329
|
updateChunkMetadataRaw(requestParameters: UpdateChunkMetadataOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ChunkResponse>>;
|
|
330
330
|
|
|
331
331
|
/**
|
|
332
|
-
* Update chunk metadata
|
|
332
|
+
* Update chunk metadata and/or move the chunk. The provided metadata is shallow-merged into the existing chunk_metadata. Move params (parent_path_part_id, prev_sibling_path_id, move_to_head) allow reparenting or reordering the chunk within the same document version.
|
|
333
333
|
* Update Chunk Metadata Handler
|
|
334
334
|
*/
|
|
335
335
|
updateChunkMetadata(requestParameters: UpdateChunkMetadataOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ChunkResponse>;
|
|
@@ -756,7 +756,7 @@ export class ChunksApi extends runtime.BaseAPI implements ChunksApiInterface {
|
|
|
756
756
|
}
|
|
757
757
|
|
|
758
758
|
/**
|
|
759
|
-
* Update chunk metadata
|
|
759
|
+
* Update chunk metadata and/or move the chunk. The provided metadata is shallow-merged into the existing chunk_metadata. Move params (parent_path_part_id, prev_sibling_path_id, move_to_head) allow reparenting or reordering the chunk within the same document version.
|
|
760
760
|
* Update Chunk Metadata Handler
|
|
761
761
|
*/
|
|
762
762
|
async updateChunkMetadataRaw(requestParameters: UpdateChunkMetadataOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ChunkResponse>> {
|
|
@@ -767,7 +767,7 @@ export class ChunksApi extends runtime.BaseAPI implements ChunksApiInterface {
|
|
|
767
767
|
}
|
|
768
768
|
|
|
769
769
|
/**
|
|
770
|
-
* Update chunk metadata
|
|
770
|
+
* Update chunk metadata and/or move the chunk. The provided metadata is shallow-merged into the existing chunk_metadata. Move params (parent_path_part_id, prev_sibling_path_id, move_to_head) allow reparenting or reordering the chunk within the same document version.
|
|
771
771
|
* Update Chunk Metadata Handler
|
|
772
772
|
*/
|
|
773
773
|
async updateChunkMetadata(requestParameters: UpdateChunkMetadataOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ChunkResponse> {
|
|
@@ -48,11 +48,17 @@ export interface PipelineState {
|
|
|
48
48
|
*/
|
|
49
49
|
status: PipelineStatus;
|
|
50
50
|
/**
|
|
51
|
-
* Timestamp of the last pipeline execution attempt
|
|
51
|
+
* Timestamp of the last pipeline execution attempt (set once when a run starts)
|
|
52
52
|
* @type {Date}
|
|
53
53
|
* @memberof PipelineState
|
|
54
54
|
*/
|
|
55
|
-
lastRunTimestamp
|
|
55
|
+
lastRunTimestamp?: Date | null;
|
|
56
|
+
/**
|
|
57
|
+
* Timestamp of the last pipeline state change (set by activities)
|
|
58
|
+
* @type {Date}
|
|
59
|
+
* @memberof PipelineState
|
|
60
|
+
*/
|
|
61
|
+
lastStateUpdateTimestamp?: Date | null;
|
|
56
62
|
/**
|
|
57
63
|
* Name of the last activity that executed (e.g., 'docling_conversion')
|
|
58
64
|
* @type {string}
|
|
@@ -104,7 +110,6 @@ export interface PipelineState {
|
|
|
104
110
|
*/
|
|
105
111
|
export function instanceOfPipelineState(value: object): value is PipelineState {
|
|
106
112
|
if (!('status' in value) || value['status'] === undefined) return false;
|
|
107
|
-
if (!('lastRunTimestamp' in value) || value['lastRunTimestamp'] === undefined) return false;
|
|
108
113
|
return true;
|
|
109
114
|
}
|
|
110
115
|
|
|
@@ -119,7 +124,8 @@ export function PipelineStateFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|
|
119
124
|
return {
|
|
120
125
|
|
|
121
126
|
'status': PipelineStatusFromJSON(json['status']),
|
|
122
|
-
'lastRunTimestamp': (new Date(json['last_run_timestamp'])),
|
|
127
|
+
'lastRunTimestamp': json['last_run_timestamp'] == null ? undefined : (new Date(json['last_run_timestamp'])),
|
|
128
|
+
'lastStateUpdateTimestamp': json['last_state_update_timestamp'] == null ? undefined : (new Date(json['last_state_update_timestamp'])),
|
|
123
129
|
'lastActivity': json['last_activity'] == null ? undefined : json['last_activity'],
|
|
124
130
|
'error': json['error'] == null ? undefined : json['error'],
|
|
125
131
|
'temporalWorkflowId': json['temporal_workflow_id'] == null ? undefined : json['temporal_workflow_id'],
|
|
@@ -142,7 +148,8 @@ export function PipelineStateToJSONTyped(value?: PipelineState | null, ignoreDis
|
|
|
142
148
|
return {
|
|
143
149
|
|
|
144
150
|
'status': PipelineStatusToJSON(value['status']),
|
|
145
|
-
'last_run_timestamp': value['lastRunTimestamp'].toISOString(),
|
|
151
|
+
'last_run_timestamp': value['lastRunTimestamp'] == null ? value['lastRunTimestamp'] : value['lastRunTimestamp'].toISOString(),
|
|
152
|
+
'last_state_update_timestamp': value['lastStateUpdateTimestamp'] == null ? value['lastStateUpdateTimestamp'] : value['lastStateUpdateTimestamp'].toISOString(),
|
|
146
153
|
'last_activity': value['lastActivity'],
|
|
147
154
|
'error': value['error'],
|
|
148
155
|
'temporal_workflow_id': value['temporalWorkflowId'],
|
|
@@ -13,14 +13,6 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
-
import type { ChunkType } from './ChunkType';
|
|
17
|
-
import {
|
|
18
|
-
ChunkTypeFromJSON,
|
|
19
|
-
ChunkTypeFromJSONTyped,
|
|
20
|
-
ChunkTypeToJSON,
|
|
21
|
-
ChunkTypeToJSONTyped,
|
|
22
|
-
} from './ChunkType';
|
|
23
|
-
|
|
24
16
|
/**
|
|
25
17
|
* Request to update chunk content (creates new content row).
|
|
26
18
|
* @export
|
|
@@ -33,16 +25,8 @@ export interface UpdateChunkContentRequest {
|
|
|
33
25
|
* @memberof UpdateChunkContentRequest
|
|
34
26
|
*/
|
|
35
27
|
content: string;
|
|
36
|
-
/**
|
|
37
|
-
*
|
|
38
|
-
* @type {ChunkType}
|
|
39
|
-
* @memberof UpdateChunkContentRequest
|
|
40
|
-
*/
|
|
41
|
-
chunkType?: ChunkType;
|
|
42
28
|
}
|
|
43
29
|
|
|
44
|
-
|
|
45
|
-
|
|
46
30
|
/**
|
|
47
31
|
* Check if a given object implements the UpdateChunkContentRequest interface.
|
|
48
32
|
*/
|
|
@@ -62,7 +46,6 @@ export function UpdateChunkContentRequestFromJSONTyped(json: any, ignoreDiscrimi
|
|
|
62
46
|
return {
|
|
63
47
|
|
|
64
48
|
'content': json['content'],
|
|
65
|
-
'chunkType': json['chunk_type'] == null ? undefined : ChunkTypeFromJSON(json['chunk_type']),
|
|
66
49
|
};
|
|
67
50
|
}
|
|
68
51
|
|
|
@@ -78,7 +61,6 @@ export function UpdateChunkContentRequestToJSONTyped(value?: UpdateChunkContentR
|
|
|
78
61
|
return {
|
|
79
62
|
|
|
80
63
|
'content': value['content'],
|
|
81
|
-
'chunk_type': ChunkTypeToJSON(value['chunkType']),
|
|
82
64
|
};
|
|
83
65
|
}
|
|
84
66
|
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
} from './ChunkMetadataInput';
|
|
23
23
|
|
|
24
24
|
/**
|
|
25
|
-
* Request to update chunk metadata
|
|
25
|
+
* Request to update chunk metadata and/or move the chunk.
|
|
26
26
|
* @export
|
|
27
27
|
* @interface UpdateChunkMetadataRequest
|
|
28
28
|
*/
|
|
@@ -32,14 +32,31 @@ export interface UpdateChunkMetadataRequest {
|
|
|
32
32
|
* @type {ChunkMetadataInput}
|
|
33
33
|
* @memberof UpdateChunkMetadataRequest
|
|
34
34
|
*/
|
|
35
|
-
chunkMetadata
|
|
35
|
+
chunkMetadata?: ChunkMetadataInput;
|
|
36
|
+
/**
|
|
37
|
+
* Reparent to this PathPart ID (must be DOCUMENT_VERSION or SECTION in the same document version)
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof UpdateChunkMetadataRequest
|
|
40
|
+
*/
|
|
41
|
+
parentPathPartId?: string | null;
|
|
42
|
+
/**
|
|
43
|
+
* Move after this sibling PathPart ID (within new or current parent)
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof UpdateChunkMetadataRequest
|
|
46
|
+
*/
|
|
47
|
+
prevSiblingPathId?: string | null;
|
|
48
|
+
/**
|
|
49
|
+
* Set to true to move to head of sibling list
|
|
50
|
+
* @type {boolean}
|
|
51
|
+
* @memberof UpdateChunkMetadataRequest
|
|
52
|
+
*/
|
|
53
|
+
moveToHead?: boolean;
|
|
36
54
|
}
|
|
37
55
|
|
|
38
56
|
/**
|
|
39
57
|
* Check if a given object implements the UpdateChunkMetadataRequest interface.
|
|
40
58
|
*/
|
|
41
59
|
export function instanceOfUpdateChunkMetadataRequest(value: object): value is UpdateChunkMetadataRequest {
|
|
42
|
-
if (!('chunkMetadata' in value) || value['chunkMetadata'] === undefined) return false;
|
|
43
60
|
return true;
|
|
44
61
|
}
|
|
45
62
|
|
|
@@ -53,7 +70,10 @@ export function UpdateChunkMetadataRequestFromJSONTyped(json: any, ignoreDiscrim
|
|
|
53
70
|
}
|
|
54
71
|
return {
|
|
55
72
|
|
|
56
|
-
'chunkMetadata': ChunkMetadataInputFromJSON(json['chunk_metadata']),
|
|
73
|
+
'chunkMetadata': json['chunk_metadata'] == null ? undefined : ChunkMetadataInputFromJSON(json['chunk_metadata']),
|
|
74
|
+
'parentPathPartId': json['parent_path_part_id'] == null ? undefined : json['parent_path_part_id'],
|
|
75
|
+
'prevSiblingPathId': json['prev_sibling_path_id'] == null ? undefined : json['prev_sibling_path_id'],
|
|
76
|
+
'moveToHead': json['move_to_head'] == null ? undefined : json['move_to_head'],
|
|
57
77
|
};
|
|
58
78
|
}
|
|
59
79
|
|
|
@@ -69,6 +89,9 @@ export function UpdateChunkMetadataRequestToJSONTyped(value?: UpdateChunkMetadat
|
|
|
69
89
|
return {
|
|
70
90
|
|
|
71
91
|
'chunk_metadata': ChunkMetadataInputToJSON(value['chunkMetadata']),
|
|
92
|
+
'parent_path_part_id': value['parentPathPartId'],
|
|
93
|
+
'prev_sibling_path_id': value['prevSiblingPathId'],
|
|
94
|
+
'move_to_head': value['moveToHead'],
|
|
72
95
|
};
|
|
73
96
|
}
|
|
74
97
|
|
|
@@ -43,6 +43,12 @@ export interface UpdateSectionRequest {
|
|
|
43
43
|
* @memberof UpdateSectionRequest
|
|
44
44
|
*/
|
|
45
45
|
moveToHead?: boolean;
|
|
46
|
+
/**
|
|
47
|
+
* Reparent to this PathPart ID (must be DOCUMENT_VERSION or SECTION in the same document version)
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof UpdateSectionRequest
|
|
50
|
+
*/
|
|
51
|
+
parentPathPartId?: string | null;
|
|
46
52
|
}
|
|
47
53
|
|
|
48
54
|
/**
|
|
@@ -66,6 +72,7 @@ export function UpdateSectionRequestFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
66
72
|
'pageNumber': json['page_number'] == null ? undefined : json['page_number'],
|
|
67
73
|
'prevSiblingPathId': json['prev_sibling_path_id'] == null ? undefined : json['prev_sibling_path_id'],
|
|
68
74
|
'moveToHead': json['move_to_head'] == null ? undefined : json['move_to_head'],
|
|
75
|
+
'parentPathPartId': json['parent_path_part_id'] == null ? undefined : json['parent_path_part_id'],
|
|
69
76
|
};
|
|
70
77
|
}
|
|
71
78
|
|
|
@@ -84,6 +91,7 @@ export function UpdateSectionRequestToJSONTyped(value?: UpdateSectionRequest | n
|
|
|
84
91
|
'page_number': value['pageNumber'],
|
|
85
92
|
'prev_sibling_path_id': value['prevSiblingPathId'],
|
|
86
93
|
'move_to_head': value['moveToHead'],
|
|
94
|
+
'parent_path_part_id': value['parentPathPartId'],
|
|
87
95
|
};
|
|
88
96
|
}
|
|
89
97
|
|
|
@@ -69,6 +69,12 @@ export interface WorkflowDetailResponse {
|
|
|
69
69
|
* @memberof WorkflowDetailResponse
|
|
70
70
|
*/
|
|
71
71
|
lastRunTimestamp: Date;
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @type {Date}
|
|
75
|
+
* @memberof WorkflowDetailResponse
|
|
76
|
+
*/
|
|
77
|
+
lastStateUpdateTimestamp?: Date | null;
|
|
72
78
|
/**
|
|
73
79
|
*
|
|
74
80
|
* @type {Date}
|
|
@@ -156,6 +162,7 @@ export function WorkflowDetailResponseFromJSONTyped(json: any, ignoreDiscriminat
|
|
|
156
162
|
'lastActivity': json['last_activity'] == null ? undefined : json['last_activity'],
|
|
157
163
|
'error': json['error'] == null ? undefined : json['error'],
|
|
158
164
|
'lastRunTimestamp': (new Date(json['last_run_timestamp'])),
|
|
165
|
+
'lastStateUpdateTimestamp': json['last_state_update_timestamp'] == null ? undefined : (new Date(json['last_state_update_timestamp'])),
|
|
159
166
|
'createdAt': (new Date(json['created_at'])),
|
|
160
167
|
'temporalStatus': json['temporal_status'],
|
|
161
168
|
'startTime': (new Date(json['start_time'])),
|
|
@@ -185,6 +192,7 @@ export function WorkflowDetailResponseToJSONTyped(value?: WorkflowDetailResponse
|
|
|
185
192
|
'last_activity': value['lastActivity'],
|
|
186
193
|
'error': value['error'],
|
|
187
194
|
'last_run_timestamp': value['lastRunTimestamp'].toISOString(),
|
|
195
|
+
'last_state_update_timestamp': value['lastStateUpdateTimestamp'] == null ? value['lastStateUpdateTimestamp'] : value['lastStateUpdateTimestamp'].toISOString(),
|
|
188
196
|
'created_at': value['createdAt'].toISOString(),
|
|
189
197
|
'temporal_status': value['temporalStatus'],
|
|
190
198
|
'start_time': value['startTime'].toISOString(),
|
|
@@ -69,6 +69,12 @@ export interface WorkflowSummaryResponse {
|
|
|
69
69
|
* @memberof WorkflowSummaryResponse
|
|
70
70
|
*/
|
|
71
71
|
lastRunTimestamp: Date;
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @type {Date}
|
|
75
|
+
* @memberof WorkflowSummaryResponse
|
|
76
|
+
*/
|
|
77
|
+
lastStateUpdateTimestamp?: Date | null;
|
|
72
78
|
/**
|
|
73
79
|
*
|
|
74
80
|
* @type {Date}
|
|
@@ -109,6 +115,7 @@ export function WorkflowSummaryResponseFromJSONTyped(json: any, ignoreDiscrimina
|
|
|
109
115
|
'lastActivity': json['last_activity'] == null ? undefined : json['last_activity'],
|
|
110
116
|
'error': json['error'] == null ? undefined : json['error'],
|
|
111
117
|
'lastRunTimestamp': (new Date(json['last_run_timestamp'])),
|
|
118
|
+
'lastStateUpdateTimestamp': json['last_state_update_timestamp'] == null ? undefined : (new Date(json['last_state_update_timestamp'])),
|
|
112
119
|
'createdAt': (new Date(json['created_at'])),
|
|
113
120
|
};
|
|
114
121
|
}
|
|
@@ -131,6 +138,7 @@ export function WorkflowSummaryResponseToJSONTyped(value?: WorkflowSummaryRespon
|
|
|
131
138
|
'last_activity': value['lastActivity'],
|
|
132
139
|
'error': value['error'],
|
|
133
140
|
'last_run_timestamp': value['lastRunTimestamp'].toISOString(),
|
|
141
|
+
'last_state_update_timestamp': value['lastStateUpdateTimestamp'] == null ? value['lastStateUpdateTimestamp'] : value['lastStateUpdateTimestamp'].toISOString(),
|
|
134
142
|
'created_at': value['createdAt'].toISOString(),
|
|
135
143
|
};
|
|
136
144
|
}
|