@knowledge-stack/ksapi 1.59.0 → 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.
Files changed (31) hide show
  1. package/README.md +2 -2
  2. package/dist/apis/TenantsApi.d.ts +4 -4
  3. package/dist/apis/TenantsApi.js +2 -2
  4. package/dist/esm/apis/TenantsApi.d.ts +4 -4
  5. package/dist/esm/apis/TenantsApi.js +2 -2
  6. package/dist/esm/models/DocumentType.d.ts +2 -1
  7. package/dist/esm/models/DocumentType.js +2 -1
  8. package/dist/esm/models/DocumentVersionMetadata.d.ts +6 -0
  9. package/dist/esm/models/DocumentVersionMetadata.js +2 -0
  10. package/dist/esm/models/DocumentVersionMetadataUpdate.d.ts +6 -0
  11. package/dist/esm/models/DocumentVersionMetadataUpdate.js +2 -0
  12. package/dist/esm/models/DocumentVersionResponse.d.ts +6 -0
  13. package/dist/esm/models/DocumentVersionResponse.js +2 -0
  14. package/dist/models/DocumentType.d.ts +2 -1
  15. package/dist/models/DocumentType.js +2 -1
  16. package/dist/models/DocumentVersionMetadata.d.ts +6 -0
  17. package/dist/models/DocumentVersionMetadata.js +2 -0
  18. package/dist/models/DocumentVersionMetadataUpdate.d.ts +6 -0
  19. package/dist/models/DocumentVersionMetadataUpdate.js +2 -0
  20. package/dist/models/DocumentVersionResponse.d.ts +6 -0
  21. package/dist/models/DocumentVersionResponse.js +2 -0
  22. package/docs/DocumentVersionMetadata.md +2 -0
  23. package/docs/DocumentVersionMetadataUpdate.md +2 -0
  24. package/docs/DocumentVersionResponse.md +2 -0
  25. package/docs/TenantsApi.md +1 -1
  26. package/package.json +1 -1
  27. package/src/apis/TenantsApi.ts +4 -4
  28. package/src/models/DocumentType.ts +2 -1
  29. package/src/models/DocumentVersionMetadata.ts +8 -0
  30. package/src/models/DocumentVersionMetadataUpdate.ts +8 -0
  31. package/src/models/DocumentVersionResponse.ts +8 -0
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # @knowledge-stack/ksapi@1.59.0
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.0`
321
+ - Package version: `1.60.0`
322
322
  - Generator version: `7.20.0`
323
323
  - Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
324
324
 
@@ -113,7 +113,7 @@ export interface TenantsApiInterface {
113
113
  */
114
114
  deleteTenantRequestOpts(requestParameters: DeleteTenantRequest): Promise<runtime.RequestOpts>;
115
115
  /**
116
- * Delete a tenant. Requires OWNER role in the tenant. Deletes the tenant\'s S3 bucket after the DB transaction commits.
116
+ * Delete a tenant. Requires OWNER role in the tenant. Deletes the tenant\'s LiteLLM team/keys and S3 bucket after the DB transaction commits.
117
117
  * @summary Delete Tenant
118
118
  * @param {string} tenantId
119
119
  * @param {string} [authorization]
@@ -124,7 +124,7 @@ export interface TenantsApiInterface {
124
124
  */
125
125
  deleteTenantRaw(requestParameters: DeleteTenantRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
126
126
  /**
127
- * Delete a tenant. Requires OWNER role in the tenant. Deletes the tenant\'s S3 bucket after the DB transaction commits.
127
+ * Delete a tenant. Requires OWNER role in the tenant. Deletes the tenant\'s LiteLLM team/keys and S3 bucket after the DB transaction commits.
128
128
  * Delete Tenant
129
129
  */
130
130
  deleteTenant(requestParameters: DeleteTenantRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
@@ -372,12 +372,12 @@ export declare class TenantsApi extends runtime.BaseAPI implements TenantsApiInt
372
372
  */
373
373
  deleteTenantRequestOpts(requestParameters: DeleteTenantRequest): Promise<runtime.RequestOpts>;
374
374
  /**
375
- * Delete a tenant. Requires OWNER role in the tenant. Deletes the tenant\'s S3 bucket after the DB transaction commits.
375
+ * Delete a tenant. Requires OWNER role in the tenant. Deletes the tenant\'s LiteLLM team/keys and S3 bucket after the DB transaction commits.
376
376
  * Delete Tenant
377
377
  */
378
378
  deleteTenantRaw(requestParameters: DeleteTenantRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
379
379
  /**
380
- * Delete a tenant. Requires OWNER role in the tenant. Deletes the tenant\'s S3 bucket after the DB transaction commits.
380
+ * Delete a tenant. Requires OWNER role in the tenant. Deletes the tenant\'s LiteLLM team/keys and S3 bucket after the DB transaction commits.
381
381
  * Delete Tenant
382
382
  */
383
383
  deleteTenant(requestParameters: DeleteTenantRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
@@ -98,7 +98,7 @@ class TenantsApi extends runtime.BaseAPI {
98
98
  });
99
99
  }
100
100
  /**
101
- * Delete a tenant. Requires OWNER role in the tenant. Deletes the tenant\'s S3 bucket after the DB transaction commits.
101
+ * Delete a tenant. Requires OWNER role in the tenant. Deletes the tenant\'s LiteLLM team/keys and S3 bucket after the DB transaction commits.
102
102
  * Delete Tenant
103
103
  */
104
104
  deleteTenantRaw(requestParameters, initOverrides) {
@@ -109,7 +109,7 @@ class TenantsApi extends runtime.BaseAPI {
109
109
  });
110
110
  }
111
111
  /**
112
- * Delete a tenant. Requires OWNER role in the tenant. Deletes the tenant\'s S3 bucket after the DB transaction commits.
112
+ * Delete a tenant. Requires OWNER role in the tenant. Deletes the tenant\'s LiteLLM team/keys and S3 bucket after the DB transaction commits.
113
113
  * Delete Tenant
114
114
  */
115
115
  deleteTenant(requestParameters, initOverrides) {
@@ -113,7 +113,7 @@ export interface TenantsApiInterface {
113
113
  */
114
114
  deleteTenantRequestOpts(requestParameters: DeleteTenantRequest): Promise<runtime.RequestOpts>;
115
115
  /**
116
- * Delete a tenant. Requires OWNER role in the tenant. Deletes the tenant\'s S3 bucket after the DB transaction commits.
116
+ * Delete a tenant. Requires OWNER role in the tenant. Deletes the tenant\'s LiteLLM team/keys and S3 bucket after the DB transaction commits.
117
117
  * @summary Delete Tenant
118
118
  * @param {string} tenantId
119
119
  * @param {string} [authorization]
@@ -124,7 +124,7 @@ export interface TenantsApiInterface {
124
124
  */
125
125
  deleteTenantRaw(requestParameters: DeleteTenantRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
126
126
  /**
127
- * Delete a tenant. Requires OWNER role in the tenant. Deletes the tenant\'s S3 bucket after the DB transaction commits.
127
+ * Delete a tenant. Requires OWNER role in the tenant. Deletes the tenant\'s LiteLLM team/keys and S3 bucket after the DB transaction commits.
128
128
  * Delete Tenant
129
129
  */
130
130
  deleteTenant(requestParameters: DeleteTenantRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
@@ -372,12 +372,12 @@ export declare class TenantsApi extends runtime.BaseAPI implements TenantsApiInt
372
372
  */
373
373
  deleteTenantRequestOpts(requestParameters: DeleteTenantRequest): Promise<runtime.RequestOpts>;
374
374
  /**
375
- * Delete a tenant. Requires OWNER role in the tenant. Deletes the tenant\'s S3 bucket after the DB transaction commits.
375
+ * Delete a tenant. Requires OWNER role in the tenant. Deletes the tenant\'s LiteLLM team/keys and S3 bucket after the DB transaction commits.
376
376
  * Delete Tenant
377
377
  */
378
378
  deleteTenantRaw(requestParameters: DeleteTenantRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
379
379
  /**
380
- * Delete a tenant. Requires OWNER role in the tenant. Deletes the tenant\'s S3 bucket after the DB transaction commits.
380
+ * Delete a tenant. Requires OWNER role in the tenant. Deletes the tenant\'s LiteLLM team/keys and S3 bucket after the DB transaction commits.
381
381
  * Delete Tenant
382
382
  */
383
383
  deleteTenant(requestParameters: DeleteTenantRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
@@ -95,7 +95,7 @@ export class TenantsApi extends runtime.BaseAPI {
95
95
  });
96
96
  }
97
97
  /**
98
- * Delete a tenant. Requires OWNER role in the tenant. Deletes the tenant\'s S3 bucket after the DB transaction commits.
98
+ * Delete a tenant. Requires OWNER role in the tenant. Deletes the tenant\'s LiteLLM team/keys and S3 bucket after the DB transaction commits.
99
99
  * Delete Tenant
100
100
  */
101
101
  deleteTenantRaw(requestParameters, initOverrides) {
@@ -106,7 +106,7 @@ export class TenantsApi extends runtime.BaseAPI {
106
106
  });
107
107
  }
108
108
  /**
109
- * Delete a tenant. Requires OWNER role in the tenant. Deletes the tenant\'s S3 bucket after the DB transaction commits.
109
+ * Delete a tenant. Requires OWNER role in the tenant. Deletes the tenant\'s LiteLLM team/keys and S3 bucket after the DB transaction commits.
110
110
  * Delete Tenant
111
111
  */
112
112
  deleteTenant(requestParameters, initOverrides) {
@@ -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
 
@@ -97,7 +97,7 @@ No authorization required
97
97
 
98
98
  Delete Tenant
99
99
 
100
- Delete a tenant. Requires OWNER role in the tenant. Deletes the tenant\&#39;s S3 bucket after the DB transaction commits.
100
+ Delete a tenant. Requires OWNER role in the tenant. Deletes the tenant\&#39;s LiteLLM team/keys and S3 bucket after the DB transaction commits.
101
101
 
102
102
  ### Example
103
103
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@knowledge-stack/ksapi",
3
- "version": "1.59.0",
3
+ "version": "1.60.0",
4
4
  "description": "OpenAPI client for @knowledge-stack/ksapi",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -162,7 +162,7 @@ export interface TenantsApiInterface {
162
162
  deleteTenantRequestOpts(requestParameters: DeleteTenantRequest): Promise<runtime.RequestOpts>;
163
163
 
164
164
  /**
165
- * Delete a tenant. Requires OWNER role in the tenant. Deletes the tenant\'s S3 bucket after the DB transaction commits.
165
+ * Delete a tenant. Requires OWNER role in the tenant. Deletes the tenant\'s LiteLLM team/keys and S3 bucket after the DB transaction commits.
166
166
  * @summary Delete Tenant
167
167
  * @param {string} tenantId
168
168
  * @param {string} [authorization]
@@ -174,7 +174,7 @@ export interface TenantsApiInterface {
174
174
  deleteTenantRaw(requestParameters: DeleteTenantRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
175
175
 
176
176
  /**
177
- * Delete a tenant. Requires OWNER role in the tenant. Deletes the tenant\'s S3 bucket after the DB transaction commits.
177
+ * Delete a tenant. Requires OWNER role in the tenant. Deletes the tenant\'s LiteLLM team/keys and S3 bucket after the DB transaction commits.
178
178
  * Delete Tenant
179
179
  */
180
180
  deleteTenant(requestParameters: DeleteTenantRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
@@ -515,7 +515,7 @@ export class TenantsApi extends runtime.BaseAPI implements TenantsApiInterface {
515
515
  }
516
516
 
517
517
  /**
518
- * Delete a tenant. Requires OWNER role in the tenant. Deletes the tenant\'s S3 bucket after the DB transaction commits.
518
+ * Delete a tenant. Requires OWNER role in the tenant. Deletes the tenant\'s LiteLLM team/keys and S3 bucket after the DB transaction commits.
519
519
  * Delete Tenant
520
520
  */
521
521
  async deleteTenantRaw(requestParameters: DeleteTenantRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
@@ -526,7 +526,7 @@ export class TenantsApi extends runtime.BaseAPI implements TenantsApiInterface {
526
526
  }
527
527
 
528
528
  /**
529
- * Delete a tenant. Requires OWNER role in the tenant. Deletes the tenant\'s S3 bucket after the DB transaction commits.
529
+ * Delete a tenant. Requires OWNER role in the tenant. Deletes the tenant\'s LiteLLM team/keys and S3 bucket after the DB transaction commits.
530
530
  * Delete Tenant
531
531
  */
532
532
  async deleteTenant(requestParameters: DeleteTenantRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
@@ -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
  }