@knowledge-stack/ksapi 1.59.1 → 1.60.0

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.59.1
1
+ # @knowledge-stack/ksapi@1.60.0
2
2
 
3
3
  A TypeScript SDK client for the localhost API.
4
4
 
@@ -318,7 +318,7 @@ and is automatically generated by the
318
318
  [OpenAPI Generator](https://openapi-generator.tech) project:
319
319
 
320
320
  - API version: `0.1.0`
321
- - Package version: `1.59.1`
321
+ - Package version: `1.60.0`
322
322
  - Generator version: `7.20.0`
323
323
  - Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
324
324
 
@@ -16,9 +16,10 @@
16
16
  export declare const DocumentType: {
17
17
  readonly Pdf: "PDF";
18
18
  readonly Docx: "DOCX";
19
- readonly Md: "MD";
19
+ readonly Plaintext: "PLAINTEXT";
20
20
  readonly Image: "IMAGE";
21
21
  readonly Xlsx: "XLSX";
22
+ readonly Csv: "CSV";
22
23
  readonly Pptx: "PPTX";
23
24
  readonly Unknown: "UNKNOWN";
24
25
  };
@@ -18,9 +18,10 @@
18
18
  export const DocumentType = {
19
19
  Pdf: 'PDF',
20
20
  Docx: 'DOCX',
21
- Md: 'MD',
21
+ Plaintext: 'PLAINTEXT',
22
22
  Image: 'IMAGE',
23
23
  Xlsx: 'XLSX',
24
+ Csv: 'CSV',
24
25
  Pptx: 'PPTX',
25
26
  Unknown: 'UNKNOWN'
26
27
  };
@@ -40,6 +40,12 @@ export interface DocumentVersionMetadata {
40
40
  * @memberof DocumentVersionMetadata
41
41
  */
42
42
  doclingJsonS3?: string | null;
43
+ /**
44
+ * S3 URL to the fast plaintext export of the document
45
+ * @type {string}
46
+ * @memberof DocumentVersionMetadata
47
+ */
48
+ fastPlaintextS3?: string | null;
43
49
  /**
44
50
  * Base64-encoded SHA256 hash of the uploaded source file
45
51
  * @type {string}
@@ -30,6 +30,7 @@ export function DocumentVersionMetadataFromJSONTyped(json, ignoreDiscriminator)
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
  'doclingJsonS3': json['docling_json_s3'] == null ? undefined : json['docling_json_s3'],
33
+ 'fastPlaintextS3': json['fast_plaintext_s3'] == null ? undefined : json['fast_plaintext_s3'],
33
34
  'hash': json['hash'] == null ? undefined : json['hash'],
34
35
  'pipelineState': json['pipeline_state'] == null ? undefined : PipelineStateFromJSON(json['pipeline_state']),
35
36
  'totalPages': json['total_pages'] == null ? undefined : json['total_pages'],
@@ -53,6 +54,7 @@ export function DocumentVersionMetadataToJSONTyped(value, ignoreDiscriminator =
53
54
  'source_s3': value['sourceS3'],
54
55
  'cleaned_source_s3': value['cleanedSourceS3'],
55
56
  'docling_json_s3': value['doclingJsonS3'],
57
+ 'fast_plaintext_s3': value['fastPlaintextS3'],
56
58
  'hash': value['hash'],
57
59
  'pipeline_state': PipelineStateToJSON(value['pipelineState']),
58
60
  'total_pages': value['totalPages'],
@@ -38,6 +38,12 @@ export interface DocumentVersionMetadataUpdate {
38
38
  * @memberof DocumentVersionMetadataUpdate
39
39
  */
40
40
  doclingJsonS3?: string | null;
41
+ /**
42
+ *
43
+ * @type {string}
44
+ * @memberof DocumentVersionMetadataUpdate
45
+ */
46
+ fastPlaintextS3?: string | null;
41
47
  /**
42
48
  *
43
49
  * @type {string}
@@ -30,6 +30,7 @@ export function DocumentVersionMetadataUpdateFromJSONTyped(json, ignoreDiscrimin
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
  'doclingJsonS3': json['docling_json_s3'] == null ? undefined : json['docling_json_s3'],
33
+ 'fastPlaintextS3': json['fast_plaintext_s3'] == null ? undefined : json['fast_plaintext_s3'],
33
34
  'hash': json['hash'] == null ? undefined : json['hash'],
34
35
  'pipelineState': json['pipeline_state'] == null ? undefined : PipelineStateFromJSON(json['pipeline_state']),
35
36
  'totalPages': json['total_pages'] == null ? undefined : json['total_pages'],
@@ -53,6 +54,7 @@ export function DocumentVersionMetadataUpdateToJSONTyped(value, ignoreDiscrimina
53
54
  'source_s3': value['sourceS3'],
54
55
  'cleaned_source_s3': value['cleanedSourceS3'],
55
56
  'docling_json_s3': value['doclingJsonS3'],
57
+ 'fast_plaintext_s3': value['fastPlaintextS3'],
56
58
  'hash': value['hash'],
57
59
  'pipeline_state': PipelineStateToJSON(value['pipelineState']),
58
60
  'total_pages': value['totalPages'],
@@ -85,6 +85,12 @@ export interface DocumentVersionResponse {
85
85
  * @memberof DocumentVersionResponse
86
86
  */
87
87
  assetS3Url?: string | null;
88
+ /**
89
+ * Presigned URL to download the fast plaintext export (6-hour validity)
90
+ * @type {string}
91
+ * @memberof DocumentVersionResponse
92
+ */
93
+ fastPlaintextUrl?: string | null;
88
94
  /**
89
95
  *
90
96
  * @type {DocumentVersionMetadata}
@@ -57,6 +57,7 @@ export function DocumentVersionResponseFromJSONTyped(json, ignoreDiscriminator)
57
57
  'createdAt': (new Date(json['created_at'])),
58
58
  'updatedAt': (new Date(json['updated_at'])),
59
59
  'assetS3Url': json['asset_s3_url'] == null ? undefined : json['asset_s3_url'],
60
+ 'fastPlaintextUrl': json['fast_plaintext_url'] == null ? undefined : json['fast_plaintext_url'],
60
61
  'systemMetadata': json['system_metadata'] == null ? undefined : DocumentVersionMetadataFromJSON(json['system_metadata']),
61
62
  };
62
63
  }
@@ -79,6 +80,7 @@ export function DocumentVersionResponseToJSONTyped(value, ignoreDiscriminator =
79
80
  'created_at': value['createdAt'].toISOString(),
80
81
  'updated_at': value['updatedAt'].toISOString(),
81
82
  'asset_s3_url': value['assetS3Url'],
83
+ 'fast_plaintext_url': value['fastPlaintextUrl'],
82
84
  'system_metadata': DocumentVersionMetadataToJSON(value['systemMetadata']),
83
85
  };
84
86
  }
@@ -16,9 +16,10 @@
16
16
  export declare const DocumentType: {
17
17
  readonly Pdf: "PDF";
18
18
  readonly Docx: "DOCX";
19
- readonly Md: "MD";
19
+ readonly Plaintext: "PLAINTEXT";
20
20
  readonly Image: "IMAGE";
21
21
  readonly Xlsx: "XLSX";
22
+ readonly Csv: "CSV";
22
23
  readonly Pptx: "PPTX";
23
24
  readonly Unknown: "UNKNOWN";
24
25
  };
@@ -26,9 +26,10 @@ exports.DocumentTypeToJSONTyped = DocumentTypeToJSONTyped;
26
26
  exports.DocumentType = {
27
27
  Pdf: 'PDF',
28
28
  Docx: 'DOCX',
29
- Md: 'MD',
29
+ Plaintext: 'PLAINTEXT',
30
30
  Image: 'IMAGE',
31
31
  Xlsx: 'XLSX',
32
+ Csv: 'CSV',
32
33
  Pptx: 'PPTX',
33
34
  Unknown: 'UNKNOWN'
34
35
  };
@@ -40,6 +40,12 @@ export interface DocumentVersionMetadata {
40
40
  * @memberof DocumentVersionMetadata
41
41
  */
42
42
  doclingJsonS3?: string | null;
43
+ /**
44
+ * S3 URL to the fast plaintext export of the document
45
+ * @type {string}
46
+ * @memberof DocumentVersionMetadata
47
+ */
48
+ fastPlaintextS3?: string | null;
43
49
  /**
44
50
  * Base64-encoded SHA256 hash of the uploaded source file
45
51
  * @type {string}
@@ -38,6 +38,7 @@ function DocumentVersionMetadataFromJSONTyped(json, ignoreDiscriminator) {
38
38
  'sourceS3': json['source_s3'] == null ? undefined : json['source_s3'],
39
39
  'cleanedSourceS3': json['cleaned_source_s3'] == null ? undefined : json['cleaned_source_s3'],
40
40
  'doclingJsonS3': json['docling_json_s3'] == null ? undefined : json['docling_json_s3'],
41
+ 'fastPlaintextS3': json['fast_plaintext_s3'] == null ? undefined : json['fast_plaintext_s3'],
41
42
  'hash': json['hash'] == null ? undefined : json['hash'],
42
43
  'pipelineState': json['pipeline_state'] == null ? undefined : (0, PipelineState_1.PipelineStateFromJSON)(json['pipeline_state']),
43
44
  'totalPages': json['total_pages'] == null ? undefined : json['total_pages'],
@@ -61,6 +62,7 @@ function DocumentVersionMetadataToJSONTyped(value, ignoreDiscriminator = false)
61
62
  'source_s3': value['sourceS3'],
62
63
  'cleaned_source_s3': value['cleanedSourceS3'],
63
64
  'docling_json_s3': value['doclingJsonS3'],
65
+ 'fast_plaintext_s3': value['fastPlaintextS3'],
64
66
  'hash': value['hash'],
65
67
  'pipeline_state': (0, PipelineState_1.PipelineStateToJSON)(value['pipelineState']),
66
68
  'total_pages': value['totalPages'],
@@ -38,6 +38,12 @@ export interface DocumentVersionMetadataUpdate {
38
38
  * @memberof DocumentVersionMetadataUpdate
39
39
  */
40
40
  doclingJsonS3?: string | null;
41
+ /**
42
+ *
43
+ * @type {string}
44
+ * @memberof DocumentVersionMetadataUpdate
45
+ */
46
+ fastPlaintextS3?: string | null;
41
47
  /**
42
48
  *
43
49
  * @type {string}
@@ -38,6 +38,7 @@ function DocumentVersionMetadataUpdateFromJSONTyped(json, ignoreDiscriminator) {
38
38
  'sourceS3': json['source_s3'] == null ? undefined : json['source_s3'],
39
39
  'cleanedSourceS3': json['cleaned_source_s3'] == null ? undefined : json['cleaned_source_s3'],
40
40
  'doclingJsonS3': json['docling_json_s3'] == null ? undefined : json['docling_json_s3'],
41
+ 'fastPlaintextS3': json['fast_plaintext_s3'] == null ? undefined : json['fast_plaintext_s3'],
41
42
  'hash': json['hash'] == null ? undefined : json['hash'],
42
43
  'pipelineState': json['pipeline_state'] == null ? undefined : (0, PipelineState_1.PipelineStateFromJSON)(json['pipeline_state']),
43
44
  'totalPages': json['total_pages'] == null ? undefined : json['total_pages'],
@@ -61,6 +62,7 @@ function DocumentVersionMetadataUpdateToJSONTyped(value, ignoreDiscriminator = f
61
62
  'source_s3': value['sourceS3'],
62
63
  'cleaned_source_s3': value['cleanedSourceS3'],
63
64
  'docling_json_s3': value['doclingJsonS3'],
65
+ 'fast_plaintext_s3': value['fastPlaintextS3'],
64
66
  'hash': value['hash'],
65
67
  'pipeline_state': (0, PipelineState_1.PipelineStateToJSON)(value['pipelineState']),
66
68
  'total_pages': value['totalPages'],
@@ -85,6 +85,12 @@ export interface DocumentVersionResponse {
85
85
  * @memberof DocumentVersionResponse
86
86
  */
87
87
  assetS3Url?: string | null;
88
+ /**
89
+ * Presigned URL to download the fast plaintext export (6-hour validity)
90
+ * @type {string}
91
+ * @memberof DocumentVersionResponse
92
+ */
93
+ fastPlaintextUrl?: string | null;
88
94
  /**
89
95
  *
90
96
  * @type {DocumentVersionMetadata}
@@ -65,6 +65,7 @@ function DocumentVersionResponseFromJSONTyped(json, ignoreDiscriminator) {
65
65
  'createdAt': (new Date(json['created_at'])),
66
66
  'updatedAt': (new Date(json['updated_at'])),
67
67
  'assetS3Url': json['asset_s3_url'] == null ? undefined : json['asset_s3_url'],
68
+ 'fastPlaintextUrl': json['fast_plaintext_url'] == null ? undefined : json['fast_plaintext_url'],
68
69
  'systemMetadata': json['system_metadata'] == null ? undefined : (0, DocumentVersionMetadata_1.DocumentVersionMetadataFromJSON)(json['system_metadata']),
69
70
  };
70
71
  }
@@ -87,6 +88,7 @@ function DocumentVersionResponseToJSONTyped(value, ignoreDiscriminator = false)
87
88
  'created_at': value['createdAt'].toISOString(),
88
89
  'updated_at': value['updatedAt'].toISOString(),
89
90
  'asset_s3_url': value['assetS3Url'],
91
+ 'fast_plaintext_url': value['fastPlaintextUrl'],
90
92
  'system_metadata': (0, DocumentVersionMetadata_1.DocumentVersionMetadataToJSON)(value['systemMetadata']),
91
93
  };
92
94
  }
@@ -10,6 +10,7 @@ Name | Type
10
10
  `sourceS3` | string
11
11
  `cleanedSourceS3` | string
12
12
  `doclingJsonS3` | string
13
+ `fastPlaintextS3` | string
13
14
  `hash` | string
14
15
  `pipelineState` | [PipelineState](PipelineState.md)
15
16
  `totalPages` | number
@@ -31,6 +32,7 @@ const example = {
31
32
  "sourceS3": null,
32
33
  "cleanedSourceS3": null,
33
34
  "doclingJsonS3": null,
35
+ "fastPlaintextS3": null,
34
36
  "hash": null,
35
37
  "pipelineState": null,
36
38
  "totalPages": null,
@@ -10,6 +10,7 @@ Name | Type
10
10
  `sourceS3` | string
11
11
  `cleanedSourceS3` | string
12
12
  `doclingJsonS3` | string
13
+ `fastPlaintextS3` | string
13
14
  `hash` | string
14
15
  `pipelineState` | [PipelineState](PipelineState.md)
15
16
  `totalPages` | number
@@ -31,6 +32,7 @@ const example = {
31
32
  "sourceS3": null,
32
33
  "cleanedSourceS3": null,
33
34
  "doclingJsonS3": null,
35
+ "fastPlaintextS3": null,
34
36
  "hash": null,
35
37
  "pipelineState": null,
36
38
  "totalPages": null,
@@ -18,6 +18,7 @@ Name | Type
18
18
  `createdAt` | Date
19
19
  `updatedAt` | Date
20
20
  `assetS3Url` | string
21
+ `fastPlaintextUrl` | string
21
22
  `systemMetadata` | [DocumentVersionMetadata](DocumentVersionMetadata.md)
22
23
 
23
24
  ## Example
@@ -38,6 +39,7 @@ const example = {
38
39
  "createdAt": null,
39
40
  "updatedAt": null,
40
41
  "assetS3Url": null,
42
+ "fastPlaintextUrl": null,
41
43
  "systemMetadata": null,
42
44
  } satisfies DocumentVersionResponse
43
45
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@knowledge-stack/ksapi",
3
- "version": "1.59.1",
3
+ "version": "1.60.0",
4
4
  "description": "OpenAPI client for @knowledge-stack/ksapi",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -20,9 +20,10 @@
20
20
  export const DocumentType = {
21
21
  Pdf: 'PDF',
22
22
  Docx: 'DOCX',
23
- Md: 'MD',
23
+ Plaintext: 'PLAINTEXT',
24
24
  Image: 'IMAGE',
25
25
  Xlsx: 'XLSX',
26
+ Csv: 'CSV',
26
27
  Pptx: 'PPTX',
27
28
  Unknown: 'UNKNOWN'
28
29
  } as const;
@@ -57,6 +57,12 @@ export interface DocumentVersionMetadata {
57
57
  * @memberof DocumentVersionMetadata
58
58
  */
59
59
  doclingJsonS3?: string | null;
60
+ /**
61
+ * S3 URL to the fast plaintext export of the document
62
+ * @type {string}
63
+ * @memberof DocumentVersionMetadata
64
+ */
65
+ fastPlaintextS3?: string | null;
60
66
  /**
61
67
  * Base64-encoded SHA256 hash of the uploaded source file
62
68
  * @type {string}
@@ -139,6 +145,7 @@ export function DocumentVersionMetadataFromJSONTyped(json: any, ignoreDiscrimina
139
145
  'sourceS3': json['source_s3'] == null ? undefined : json['source_s3'],
140
146
  'cleanedSourceS3': json['cleaned_source_s3'] == null ? undefined : json['cleaned_source_s3'],
141
147
  'doclingJsonS3': json['docling_json_s3'] == null ? undefined : json['docling_json_s3'],
148
+ 'fastPlaintextS3': json['fast_plaintext_s3'] == null ? undefined : json['fast_plaintext_s3'],
142
149
  'hash': json['hash'] == null ? undefined : json['hash'],
143
150
  'pipelineState': json['pipeline_state'] == null ? undefined : PipelineStateFromJSON(json['pipeline_state']),
144
151
  'totalPages': json['total_pages'] == null ? undefined : json['total_pages'],
@@ -166,6 +173,7 @@ export function DocumentVersionMetadataToJSONTyped(value?: DocumentVersionMetada
166
173
  'source_s3': value['sourceS3'],
167
174
  'cleaned_source_s3': value['cleanedSourceS3'],
168
175
  'docling_json_s3': value['doclingJsonS3'],
176
+ 'fast_plaintext_s3': value['fastPlaintextS3'],
169
177
  'hash': value['hash'],
170
178
  'pipeline_state': PipelineStateToJSON(value['pipelineState']),
171
179
  'total_pages': value['totalPages'],
@@ -55,6 +55,12 @@ export interface DocumentVersionMetadataUpdate {
55
55
  * @memberof DocumentVersionMetadataUpdate
56
56
  */
57
57
  doclingJsonS3?: string | null;
58
+ /**
59
+ *
60
+ * @type {string}
61
+ * @memberof DocumentVersionMetadataUpdate
62
+ */
63
+ fastPlaintextS3?: string | null;
58
64
  /**
59
65
  *
60
66
  * @type {string}
@@ -137,6 +143,7 @@ export function DocumentVersionMetadataUpdateFromJSONTyped(json: any, ignoreDisc
137
143
  'sourceS3': json['source_s3'] == null ? undefined : json['source_s3'],
138
144
  'cleanedSourceS3': json['cleaned_source_s3'] == null ? undefined : json['cleaned_source_s3'],
139
145
  'doclingJsonS3': json['docling_json_s3'] == null ? undefined : json['docling_json_s3'],
146
+ 'fastPlaintextS3': json['fast_plaintext_s3'] == null ? undefined : json['fast_plaintext_s3'],
140
147
  'hash': json['hash'] == null ? undefined : json['hash'],
141
148
  'pipelineState': json['pipeline_state'] == null ? undefined : PipelineStateFromJSON(json['pipeline_state']),
142
149
  'totalPages': json['total_pages'] == null ? undefined : json['total_pages'],
@@ -164,6 +171,7 @@ export function DocumentVersionMetadataUpdateToJSONTyped(value?: DocumentVersion
164
171
  'source_s3': value['sourceS3'],
165
172
  'cleaned_source_s3': value['cleanedSourceS3'],
166
173
  'docling_json_s3': value['doclingJsonS3'],
174
+ 'fast_plaintext_s3': value['fastPlaintextS3'],
167
175
  'hash': value['hash'],
168
176
  'pipeline_state': PipelineStateToJSON(value['pipelineState']),
169
177
  'total_pages': value['totalPages'],
@@ -96,6 +96,12 @@ export interface DocumentVersionResponse {
96
96
  * @memberof DocumentVersionResponse
97
97
  */
98
98
  assetS3Url?: string | null;
99
+ /**
100
+ * Presigned URL to download the fast plaintext export (6-hour validity)
101
+ * @type {string}
102
+ * @memberof DocumentVersionResponse
103
+ */
104
+ fastPlaintextUrl?: string | null;
99
105
  /**
100
106
  *
101
107
  * @type {DocumentVersionMetadata}
@@ -142,6 +148,7 @@ export function DocumentVersionResponseFromJSONTyped(json: any, ignoreDiscrimina
142
148
  'createdAt': (new Date(json['created_at'])),
143
149
  'updatedAt': (new Date(json['updated_at'])),
144
150
  'assetS3Url': json['asset_s3_url'] == null ? undefined : json['asset_s3_url'],
151
+ 'fastPlaintextUrl': json['fast_plaintext_url'] == null ? undefined : json['fast_plaintext_url'],
145
152
  'systemMetadata': json['system_metadata'] == null ? undefined : DocumentVersionMetadataFromJSON(json['system_metadata']),
146
153
  };
147
154
  }
@@ -168,6 +175,7 @@ export function DocumentVersionResponseToJSONTyped(value?: DocumentVersionRespon
168
175
  'created_at': value['createdAt'].toISOString(),
169
176
  'updated_at': value['updatedAt'].toISOString(),
170
177
  'asset_s3_url': value['assetS3Url'],
178
+ 'fast_plaintext_url': value['fastPlaintextUrl'],
171
179
  'system_metadata': DocumentVersionMetadataToJSON(value['systemMetadata']),
172
180
  };
173
181
  }