@knowledge-stack/ksapi 1.27.1 → 1.27.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 CHANGED
@@ -1,4 +1,4 @@
1
- # @knowledge-stack/ksapi@1.27.1
1
+ # @knowledge-stack/ksapi@1.27.2
2
2
 
3
3
  A TypeScript SDK client for the localhost API.
4
4
 
@@ -261,7 +261,7 @@ and is automatically generated by the
261
261
  [OpenAPI Generator](https://openapi-generator.tech) project:
262
262
 
263
263
  - API version: `0.1.0`
264
- - Package version: `1.27.1`
264
+ - Package version: `1.27.2`
265
265
  - Generator version: `7.20.0`
266
266
  - Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
267
267
 
@@ -40,6 +40,12 @@ export interface DocumentVersionMetadata {
40
40
  * @memberof DocumentVersionMetadata
41
41
  */
42
42
  doclingJsonS3?: string | null;
43
+ /**
44
+ * Base64-encoded SHA256 hash of the uploaded source file
45
+ * @type {string}
46
+ * @memberof DocumentVersionMetadata
47
+ */
48
+ hash?: string | null;
43
49
  /**
44
50
  *
45
51
  * @type {PipelineState}
@@ -25,7 +25,7 @@ export function DocumentVersionMetadataFromJSONTyped(json, ignoreDiscriminator)
25
25
  if (json == null) {
26
26
  return json;
27
27
  }
28
- return Object.assign(Object.assign({}, json), { 'sourceS3': json['source_s3'] == null ? undefined : json['source_s3'], 'cleanedSourceS3': json['cleaned_source_s3'] == null ? undefined : json['cleaned_source_s3'], 'doclingJsonS3': json['docling_json_s3'] == null ? undefined : json['docling_json_s3'], 'pipelineState': json['pipeline_state'] == null ? undefined : PipelineStateFromJSON(json['pipeline_state']), 'totalPages': json['total_pages'] == null ? undefined : json['total_pages'], 'totalSections': json['total_sections'] == null ? undefined : json['total_sections'], 'totalChunks': json['total_chunks'] == null ? undefined : json['total_chunks'] });
28
+ return Object.assign(Object.assign({}, json), { 'sourceS3': json['source_s3'] == null ? undefined : json['source_s3'], 'cleanedSourceS3': json['cleaned_source_s3'] == null ? undefined : json['cleaned_source_s3'], 'doclingJsonS3': json['docling_json_s3'] == null ? undefined : json['docling_json_s3'], 'hash': json['hash'] == null ? undefined : json['hash'], 'pipelineState': json['pipeline_state'] == null ? undefined : PipelineStateFromJSON(json['pipeline_state']), 'totalPages': json['total_pages'] == null ? undefined : json['total_pages'], 'totalSections': json['total_sections'] == null ? undefined : json['total_sections'], 'totalChunks': json['total_chunks'] == null ? undefined : json['total_chunks'] });
29
29
  }
30
30
  export function DocumentVersionMetadataToJSON(json) {
31
31
  return DocumentVersionMetadataToJSONTyped(json, false);
@@ -34,7 +34,7 @@ export function DocumentVersionMetadataToJSONTyped(value, ignoreDiscriminator =
34
34
  if (value == null) {
35
35
  return value;
36
36
  }
37
- return Object.assign(Object.assign({}, value), { 'source_s3': value['sourceS3'], 'cleaned_source_s3': value['cleanedSourceS3'], 'docling_json_s3': value['doclingJsonS3'], 'pipeline_state': PipelineStateToJSON(value['pipelineState']), 'total_pages': value['totalPages'], 'total_sections': value['totalSections'], 'total_chunks': value['totalChunks'] });
37
+ return Object.assign(Object.assign({}, value), { 'source_s3': value['sourceS3'], 'cleaned_source_s3': value['cleanedSourceS3'], 'docling_json_s3': value['doclingJsonS3'], 'hash': value['hash'], 'pipeline_state': PipelineStateToJSON(value['pipelineState']), 'total_pages': value['totalPages'], 'total_sections': value['totalSections'], 'total_chunks': value['totalChunks'] });
38
38
  }
39
39
  export const DocumentVersionMetadataPropertyValidationAttributesMap = {};
40
40
  export const DocumentVersionMetadataAdditionalPropertiesValidationAttributes = {};
@@ -37,6 +37,12 @@ export interface DocumentVersionMetadataUpdate {
37
37
  * @memberof DocumentVersionMetadataUpdate
38
38
  */
39
39
  doclingJsonS3?: string | null;
40
+ /**
41
+ *
42
+ * @type {string}
43
+ * @memberof DocumentVersionMetadataUpdate
44
+ */
45
+ hash?: string | null;
40
46
  /**
41
47
  *
42
48
  * @type {PipelineState}
@@ -29,6 +29,7 @@ export function DocumentVersionMetadataUpdateFromJSONTyped(json, ignoreDiscrimin
29
29
  'sourceS3': json['source_s3'] == null ? undefined : json['source_s3'],
30
30
  'cleanedSourceS3': json['cleaned_source_s3'] == null ? undefined : json['cleaned_source_s3'],
31
31
  'doclingJsonS3': json['docling_json_s3'] == null ? undefined : json['docling_json_s3'],
32
+ 'hash': json['hash'] == null ? undefined : json['hash'],
32
33
  'pipelineState': json['pipeline_state'] == null ? undefined : PipelineStateFromJSON(json['pipeline_state']),
33
34
  'totalPages': json['total_pages'] == null ? undefined : json['total_pages'],
34
35
  'totalSections': json['total_sections'] == null ? undefined : json['total_sections'],
@@ -46,6 +47,7 @@ export function DocumentVersionMetadataUpdateToJSONTyped(value, ignoreDiscrimina
46
47
  'source_s3': value['sourceS3'],
47
48
  'cleaned_source_s3': value['cleanedSourceS3'],
48
49
  'docling_json_s3': value['doclingJsonS3'],
50
+ 'hash': value['hash'],
49
51
  'pipeline_state': PipelineStateToJSON(value['pipelineState']),
50
52
  'total_pages': value['totalPages'],
51
53
  'total_sections': value['totalSections'],
@@ -40,6 +40,12 @@ export interface DocumentVersionMetadata {
40
40
  * @memberof DocumentVersionMetadata
41
41
  */
42
42
  doclingJsonS3?: string | null;
43
+ /**
44
+ * Base64-encoded SHA256 hash of the uploaded source file
45
+ * @type {string}
46
+ * @memberof DocumentVersionMetadata
47
+ */
48
+ hash?: string | null;
43
49
  /**
44
50
  *
45
51
  * @type {PipelineState}
@@ -33,7 +33,7 @@ function DocumentVersionMetadataFromJSONTyped(json, ignoreDiscriminator) {
33
33
  if (json == null) {
34
34
  return json;
35
35
  }
36
- return Object.assign(Object.assign({}, json), { 'sourceS3': json['source_s3'] == null ? undefined : json['source_s3'], 'cleanedSourceS3': json['cleaned_source_s3'] == null ? undefined : json['cleaned_source_s3'], 'doclingJsonS3': json['docling_json_s3'] == null ? undefined : json['docling_json_s3'], 'pipelineState': json['pipeline_state'] == null ? undefined : (0, PipelineState_1.PipelineStateFromJSON)(json['pipeline_state']), 'totalPages': json['total_pages'] == null ? undefined : json['total_pages'], 'totalSections': json['total_sections'] == null ? undefined : json['total_sections'], 'totalChunks': json['total_chunks'] == null ? undefined : json['total_chunks'] });
36
+ return Object.assign(Object.assign({}, json), { 'sourceS3': json['source_s3'] == null ? undefined : json['source_s3'], 'cleanedSourceS3': json['cleaned_source_s3'] == null ? undefined : json['cleaned_source_s3'], 'doclingJsonS3': json['docling_json_s3'] == null ? undefined : json['docling_json_s3'], 'hash': json['hash'] == null ? undefined : json['hash'], 'pipelineState': json['pipeline_state'] == null ? undefined : (0, PipelineState_1.PipelineStateFromJSON)(json['pipeline_state']), 'totalPages': json['total_pages'] == null ? undefined : json['total_pages'], 'totalSections': json['total_sections'] == null ? undefined : json['total_sections'], 'totalChunks': json['total_chunks'] == null ? undefined : json['total_chunks'] });
37
37
  }
38
38
  function DocumentVersionMetadataToJSON(json) {
39
39
  return DocumentVersionMetadataToJSONTyped(json, false);
@@ -42,7 +42,7 @@ function DocumentVersionMetadataToJSONTyped(value, ignoreDiscriminator = false)
42
42
  if (value == null) {
43
43
  return value;
44
44
  }
45
- return Object.assign(Object.assign({}, value), { 'source_s3': value['sourceS3'], 'cleaned_source_s3': value['cleanedSourceS3'], 'docling_json_s3': value['doclingJsonS3'], 'pipeline_state': (0, PipelineState_1.PipelineStateToJSON)(value['pipelineState']), 'total_pages': value['totalPages'], 'total_sections': value['totalSections'], 'total_chunks': value['totalChunks'] });
45
+ return Object.assign(Object.assign({}, value), { 'source_s3': value['sourceS3'], 'cleaned_source_s3': value['cleanedSourceS3'], 'docling_json_s3': value['doclingJsonS3'], 'hash': value['hash'], 'pipeline_state': (0, PipelineState_1.PipelineStateToJSON)(value['pipelineState']), 'total_pages': value['totalPages'], 'total_sections': value['totalSections'], 'total_chunks': value['totalChunks'] });
46
46
  }
47
47
  exports.DocumentVersionMetadataPropertyValidationAttributesMap = {};
48
48
  exports.DocumentVersionMetadataAdditionalPropertiesValidationAttributes = {};
@@ -37,6 +37,12 @@ export interface DocumentVersionMetadataUpdate {
37
37
  * @memberof DocumentVersionMetadataUpdate
38
38
  */
39
39
  doclingJsonS3?: string | null;
40
+ /**
41
+ *
42
+ * @type {string}
43
+ * @memberof DocumentVersionMetadataUpdate
44
+ */
45
+ hash?: string | null;
40
46
  /**
41
47
  *
42
48
  * @type {PipelineState}
@@ -37,6 +37,7 @@ function DocumentVersionMetadataUpdateFromJSONTyped(json, ignoreDiscriminator) {
37
37
  'sourceS3': json['source_s3'] == null ? undefined : json['source_s3'],
38
38
  'cleanedSourceS3': json['cleaned_source_s3'] == null ? undefined : json['cleaned_source_s3'],
39
39
  'doclingJsonS3': json['docling_json_s3'] == null ? undefined : json['docling_json_s3'],
40
+ 'hash': json['hash'] == null ? undefined : json['hash'],
40
41
  'pipelineState': json['pipeline_state'] == null ? undefined : (0, PipelineState_1.PipelineStateFromJSON)(json['pipeline_state']),
41
42
  'totalPages': json['total_pages'] == null ? undefined : json['total_pages'],
42
43
  'totalSections': json['total_sections'] == null ? undefined : json['total_sections'],
@@ -54,6 +55,7 @@ function DocumentVersionMetadataUpdateToJSONTyped(value, ignoreDiscriminator = f
54
55
  'source_s3': value['sourceS3'],
55
56
  'cleaned_source_s3': value['cleanedSourceS3'],
56
57
  'docling_json_s3': value['doclingJsonS3'],
58
+ 'hash': value['hash'],
57
59
  'pipeline_state': (0, PipelineState_1.PipelineStateToJSON)(value['pipelineState']),
58
60
  'total_pages': value['totalPages'],
59
61
  'total_sections': value['totalSections'],
@@ -10,6 +10,7 @@ Name | Type
10
10
  `sourceS3` | string
11
11
  `cleanedSourceS3` | string
12
12
  `doclingJsonS3` | string
13
+ `hash` | string
13
14
  `pipelineState` | [PipelineState](PipelineState.md)
14
15
  `totalPages` | number
15
16
  `totalSections` | number
@@ -25,6 +26,7 @@ const example = {
25
26
  "sourceS3": null,
26
27
  "cleanedSourceS3": null,
27
28
  "doclingJsonS3": null,
29
+ "hash": null,
28
30
  "pipelineState": null,
29
31
  "totalPages": null,
30
32
  "totalSections": null,
@@ -10,6 +10,7 @@ Name | Type
10
10
  `sourceS3` | string
11
11
  `cleanedSourceS3` | string
12
12
  `doclingJsonS3` | string
13
+ `hash` | string
13
14
  `pipelineState` | [PipelineState](PipelineState.md)
14
15
  `totalPages` | number
15
16
  `totalSections` | number
@@ -25,6 +26,7 @@ const example = {
25
26
  "sourceS3": null,
26
27
  "cleanedSourceS3": null,
27
28
  "doclingJsonS3": null,
29
+ "hash": null,
28
30
  "pipelineState": null,
29
31
  "totalPages": null,
30
32
  "totalSections": null,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@knowledge-stack/ksapi",
3
- "version": "1.27.1",
3
+ "version": "1.27.2",
4
4
  "description": "OpenAPI client for @knowledge-stack/ksapi",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -51,6 +51,12 @@ export interface DocumentVersionMetadata {
51
51
  * @memberof DocumentVersionMetadata
52
52
  */
53
53
  doclingJsonS3?: string | null;
54
+ /**
55
+ * Base64-encoded SHA256 hash of the uploaded source file
56
+ * @type {string}
57
+ * @memberof DocumentVersionMetadata
58
+ */
59
+ hash?: string | null;
54
60
  /**
55
61
  *
56
62
  * @type {PipelineState}
@@ -98,6 +104,7 @@ export function DocumentVersionMetadataFromJSONTyped(json: any, ignoreDiscrimina
98
104
  'sourceS3': json['source_s3'] == null ? undefined : json['source_s3'],
99
105
  'cleanedSourceS3': json['cleaned_source_s3'] == null ? undefined : json['cleaned_source_s3'],
100
106
  'doclingJsonS3': json['docling_json_s3'] == null ? undefined : json['docling_json_s3'],
107
+ 'hash': json['hash'] == null ? undefined : json['hash'],
101
108
  'pipelineState': json['pipeline_state'] == null ? undefined : PipelineStateFromJSON(json['pipeline_state']),
102
109
  'totalPages': json['total_pages'] == null ? undefined : json['total_pages'],
103
110
  'totalSections': json['total_sections'] == null ? undefined : json['total_sections'],
@@ -120,6 +127,7 @@ export function DocumentVersionMetadataToJSONTyped(value?: DocumentVersionMetada
120
127
  'source_s3': value['sourceS3'],
121
128
  'cleaned_source_s3': value['cleanedSourceS3'],
122
129
  'docling_json_s3': value['doclingJsonS3'],
130
+ 'hash': value['hash'],
123
131
  'pipeline_state': PipelineStateToJSON(value['pipelineState']),
124
132
  'total_pages': value['totalPages'],
125
133
  'total_sections': value['totalSections'],
@@ -48,6 +48,12 @@ export interface DocumentVersionMetadataUpdate {
48
48
  * @memberof DocumentVersionMetadataUpdate
49
49
  */
50
50
  doclingJsonS3?: string | null;
51
+ /**
52
+ *
53
+ * @type {string}
54
+ * @memberof DocumentVersionMetadataUpdate
55
+ */
56
+ hash?: string | null;
51
57
  /**
52
58
  *
53
59
  * @type {PipelineState}
@@ -94,6 +100,7 @@ export function DocumentVersionMetadataUpdateFromJSONTyped(json: any, ignoreDisc
94
100
  'sourceS3': json['source_s3'] == null ? undefined : json['source_s3'],
95
101
  'cleanedSourceS3': json['cleaned_source_s3'] == null ? undefined : json['cleaned_source_s3'],
96
102
  'doclingJsonS3': json['docling_json_s3'] == null ? undefined : json['docling_json_s3'],
103
+ 'hash': json['hash'] == null ? undefined : json['hash'],
97
104
  'pipelineState': json['pipeline_state'] == null ? undefined : PipelineStateFromJSON(json['pipeline_state']),
98
105
  'totalPages': json['total_pages'] == null ? undefined : json['total_pages'],
99
106
  'totalSections': json['total_sections'] == null ? undefined : json['total_sections'],
@@ -115,6 +122,7 @@ export function DocumentVersionMetadataUpdateToJSONTyped(value?: DocumentVersion
115
122
  'source_s3': value['sourceS3'],
116
123
  'cleaned_source_s3': value['cleanedSourceS3'],
117
124
  'docling_json_s3': value['doclingJsonS3'],
125
+ 'hash': value['hash'],
118
126
  'pipeline_state': PipelineStateToJSON(value['pipelineState']),
119
127
  'total_pages': value['totalPages'],
120
128
  'total_sections': value['totalSections'],