@knowledge-stack/ksapi 1.24.0 → 1.25.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 (70) hide show
  1. package/.openapi-generator/FILES +8 -0
  2. package/README.md +10 -2
  3. package/dist/apis/ChunksApi.d.ts +87 -5
  4. package/dist/apis/ChunksApi.js +85 -2
  5. package/dist/apis/PathPartsApi.d.ts +86 -1
  6. package/dist/apis/PathPartsApi.js +85 -0
  7. package/dist/esm/apis/ChunksApi.d.ts +87 -5
  8. package/dist/esm/apis/ChunksApi.js +86 -3
  9. package/dist/esm/apis/PathPartsApi.d.ts +86 -1
  10. package/dist/esm/apis/PathPartsApi.js +86 -1
  11. package/dist/esm/models/ChunkBulkResponse.d.ts +139 -0
  12. package/dist/esm/models/ChunkBulkResponse.js +100 -0
  13. package/dist/esm/models/ChunkContentItem.d.ts +1 -1
  14. package/dist/esm/models/ChunkContentItem.js +3 -1
  15. package/dist/esm/models/ChunkSearchRequest.d.ts +14 -2
  16. package/dist/esm/models/ChunkSearchRequest.js +6 -2
  17. package/dist/esm/models/DocumentResponse.d.ts +1 -1
  18. package/dist/esm/models/DocumentResponse.js +3 -1
  19. package/dist/esm/models/FolderResponse.d.ts +1 -1
  20. package/dist/esm/models/FolderResponse.js +3 -1
  21. package/dist/esm/models/SectionContentItem.d.ts +1 -1
  22. package/dist/esm/models/SectionContentItem.js +3 -1
  23. package/dist/esm/models/SubtreeChunkGroup.d.ts +62 -0
  24. package/dist/esm/models/SubtreeChunkGroup.js +52 -0
  25. package/dist/esm/models/SubtreeChunksResponse.d.ts +48 -0
  26. package/dist/esm/models/SubtreeChunksResponse.js +45 -0
  27. package/dist/esm/models/VersionChunkIdsResponse.d.ts +47 -0
  28. package/dist/esm/models/VersionChunkIdsResponse.js +44 -0
  29. package/dist/esm/models/index.d.ts +4 -0
  30. package/dist/esm/models/index.js +4 -0
  31. package/dist/models/ChunkBulkResponse.d.ts +139 -0
  32. package/dist/models/ChunkBulkResponse.js +108 -0
  33. package/dist/models/ChunkContentItem.d.ts +1 -1
  34. package/dist/models/ChunkContentItem.js +3 -1
  35. package/dist/models/ChunkSearchRequest.d.ts +14 -2
  36. package/dist/models/ChunkSearchRequest.js +6 -2
  37. package/dist/models/DocumentResponse.d.ts +1 -1
  38. package/dist/models/DocumentResponse.js +3 -1
  39. package/dist/models/FolderResponse.d.ts +1 -1
  40. package/dist/models/FolderResponse.js +3 -1
  41. package/dist/models/SectionContentItem.d.ts +1 -1
  42. package/dist/models/SectionContentItem.js +3 -1
  43. package/dist/models/SubtreeChunkGroup.d.ts +62 -0
  44. package/dist/models/SubtreeChunkGroup.js +60 -0
  45. package/dist/models/SubtreeChunksResponse.d.ts +48 -0
  46. package/dist/models/SubtreeChunksResponse.js +53 -0
  47. package/dist/models/VersionChunkIdsResponse.d.ts +47 -0
  48. package/dist/models/VersionChunkIdsResponse.js +52 -0
  49. package/dist/models/index.d.ts +4 -0
  50. package/dist/models/index.js +4 -0
  51. package/docs/ChunkBulkResponse.md +65 -0
  52. package/docs/ChunkSearchRequest.md +6 -2
  53. package/docs/ChunksApi.md +145 -1
  54. package/docs/PathPartsApi.md +147 -0
  55. package/docs/SubtreeChunkGroup.md +39 -0
  56. package/docs/SubtreeChunksResponse.md +35 -0
  57. package/docs/VersionChunkIdsResponse.md +35 -0
  58. package/package.json +1 -1
  59. package/src/apis/ChunksApi.ts +165 -4
  60. package/src/apis/PathPartsApi.ts +166 -0
  61. package/src/models/ChunkBulkResponse.ts +232 -0
  62. package/src/models/ChunkContentItem.ts +3 -2
  63. package/src/models/ChunkSearchRequest.ts +20 -4
  64. package/src/models/DocumentResponse.ts +3 -2
  65. package/src/models/FolderResponse.ts +3 -2
  66. package/src/models/SectionContentItem.ts +3 -2
  67. package/src/models/SubtreeChunkGroup.ts +104 -0
  68. package/src/models/SubtreeChunksResponse.ts +91 -0
  69. package/src/models/VersionChunkIdsResponse.ts +83 -0
  70. package/src/models/index.ts +4 -0
@@ -0,0 +1,100 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Knowledge Stack API
5
+ * Knowledge Stack backend API for authentication and knowledge management
6
+ *
7
+ * The version of the OpenAPI document: 0.1.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ import { ChunkMetadataOutputFromJSON, ChunkMetadataOutputToJSON, } from './ChunkMetadataOutput';
15
+ import { ChunkTypeFromJSON, ChunkTypeToJSON, } from './ChunkType';
16
+ /**
17
+ * Check if a given object implements the ChunkBulkResponse interface.
18
+ */
19
+ export function instanceOfChunkBulkResponse(value) {
20
+ if (!('id' in value) || value['id'] === undefined)
21
+ return false;
22
+ if (!('pathPartId' in value) || value['pathPartId'] === undefined)
23
+ return false;
24
+ if (!('contentId' in value) || value['contentId'] === undefined)
25
+ return false;
26
+ if (!('content' in value) || value['content'] === undefined)
27
+ return false;
28
+ if (!('chunkType' in value) || value['chunkType'] === undefined)
29
+ return false;
30
+ if (!('chunkMetadata' in value) || value['chunkMetadata'] === undefined)
31
+ return false;
32
+ if (!('parentPathId' in value) || value['parentPathId'] === undefined)
33
+ return false;
34
+ if (!('materializedPath' in value) || value['materializedPath'] === undefined)
35
+ return false;
36
+ if (!('systemManaged' in value) || value['systemManaged'] === undefined)
37
+ return false;
38
+ if (!('tenantId' in value) || value['tenantId'] === undefined)
39
+ return false;
40
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
41
+ return false;
42
+ if (!('updatedAt' in value) || value['updatedAt'] === undefined)
43
+ return false;
44
+ if (!('pathPartIdSegments' in value) || value['pathPartIdSegments'] === undefined)
45
+ return false;
46
+ return true;
47
+ }
48
+ export function ChunkBulkResponseFromJSON(json) {
49
+ return ChunkBulkResponseFromJSONTyped(json, false);
50
+ }
51
+ export function ChunkBulkResponseFromJSONTyped(json, ignoreDiscriminator) {
52
+ if (json == null) {
53
+ return json;
54
+ }
55
+ return {
56
+ 'id': json['id'],
57
+ 'pathPartId': json['path_part_id'],
58
+ 'contentId': json['content_id'],
59
+ 'content': json['content'],
60
+ 'chunkType': ChunkTypeFromJSON(json['chunk_type']),
61
+ 'chunkMetadata': ChunkMetadataOutputFromJSON(json['chunk_metadata']),
62
+ 'parentPathId': json['parent_path_id'],
63
+ 'prevSiblingPathId': json['prev_sibling_path_id'] == null ? undefined : json['prev_sibling_path_id'],
64
+ 'nextSiblingPathId': json['next_sibling_path_id'] == null ? undefined : json['next_sibling_path_id'],
65
+ 'materializedPath': json['materialized_path'],
66
+ 'systemManaged': json['system_managed'],
67
+ 'tenantId': json['tenant_id'],
68
+ 'createdAt': (new Date(json['created_at'])),
69
+ 'updatedAt': (new Date(json['updated_at'])),
70
+ 'assetS3Url': json['asset_s3_url'] == null ? undefined : json['asset_s3_url'],
71
+ 'pathPartIdSegments': json['path_part_id_segments'],
72
+ };
73
+ }
74
+ export function ChunkBulkResponseToJSON(json) {
75
+ return ChunkBulkResponseToJSONTyped(json, false);
76
+ }
77
+ export function ChunkBulkResponseToJSONTyped(value, ignoreDiscriminator = false) {
78
+ if (value == null) {
79
+ return value;
80
+ }
81
+ return {
82
+ 'id': value['id'],
83
+ 'path_part_id': value['pathPartId'],
84
+ 'content_id': value['contentId'],
85
+ 'content': value['content'],
86
+ 'chunk_type': ChunkTypeToJSON(value['chunkType']),
87
+ 'chunk_metadata': ChunkMetadataOutputToJSON(value['chunkMetadata']),
88
+ 'parent_path_id': value['parentPathId'],
89
+ 'prev_sibling_path_id': value['prevSiblingPathId'],
90
+ 'next_sibling_path_id': value['nextSiblingPathId'],
91
+ 'materialized_path': value['materializedPath'],
92
+ 'system_managed': value['systemManaged'],
93
+ 'tenant_id': value['tenantId'],
94
+ 'created_at': value['createdAt'].toISOString(),
95
+ 'updated_at': value['updatedAt'].toISOString(),
96
+ 'asset_s3_url': value['assetS3Url'],
97
+ 'path_part_id_segments': value['pathPartIdSegments'],
98
+ };
99
+ }
100
+ export const ChunkBulkResponsePropertyValidationAttributesMap = {};
@@ -22,7 +22,7 @@ export interface ChunkContentItem {
22
22
  * @type {ChunkContentItemPartTypeEnum}
23
23
  * @memberof ChunkContentItem
24
24
  */
25
- partType?: ChunkContentItemPartTypeEnum;
25
+ partType: ChunkContentItemPartTypeEnum;
26
26
  /**
27
27
  * PathPart ID
28
28
  * @type {string}
@@ -23,6 +23,8 @@ export const ChunkContentItemPartTypeEnum = {
23
23
  * Check if a given object implements the ChunkContentItem interface.
24
24
  */
25
25
  export function instanceOfChunkContentItem(value) {
26
+ if (!('partType' in value) || value['partType'] === undefined)
27
+ return false;
26
28
  if (!('pathPartId' in value) || value['pathPartId'] === undefined)
27
29
  return false;
28
30
  if (!('name' in value) || value['name'] === undefined)
@@ -51,7 +53,7 @@ export function ChunkContentItemFromJSONTyped(json, ignoreDiscriminator) {
51
53
  return json;
52
54
  }
53
55
  return {
54
- 'partType': json['part_type'] == null ? undefined : json['part_type'],
56
+ 'partType': json['part_type'],
55
57
  'pathPartId': json['path_part_id'],
56
58
  'name': json['name'],
57
59
  'parentPathId': json['parent_path_id'],
@@ -35,6 +35,12 @@ export interface ChunkSearchRequest {
35
35
  * @memberof ChunkSearchRequest
36
36
  */
37
37
  parentPathIds?: Array<string> | null;
38
+ /**
39
+ * Filter by tag IDs (AND logic — chunks must have ALL specified tags)
40
+ * @type {Array<string>}
41
+ * @memberof ChunkSearchRequest
42
+ */
43
+ tagIds?: Array<string> | null;
38
44
  /**
39
45
  *
40
46
  * @type {ChunkType}
@@ -42,11 +48,17 @@ export interface ChunkSearchRequest {
42
48
  */
43
49
  chunkType?: ChunkType;
44
50
  /**
45
- * Only chunks updated after this timestamp
51
+ * Only chunks ingested after this timestamp
46
52
  * @type {Date}
47
53
  * @memberof ChunkSearchRequest
48
54
  */
49
- updatedAt?: Date | null;
55
+ ingestionTimeAfter?: Date | null;
56
+ /**
57
+ * Only return chunks from the active document version
58
+ * @type {boolean}
59
+ * @memberof ChunkSearchRequest
60
+ */
61
+ activeVersionOnly?: boolean;
50
62
  /**
51
63
  * Number of results (1-50)
52
64
  * @type {number}
@@ -32,8 +32,10 @@ export function ChunkSearchRequestFromJSONTyped(json, ignoreDiscriminator) {
32
32
  'query': json['query'],
33
33
  'model': json['model'] == null ? undefined : EmbeddingModelFromJSON(json['model']),
34
34
  'parentPathIds': json['parent_path_ids'] == null ? undefined : json['parent_path_ids'],
35
+ 'tagIds': json['tag_ids'] == null ? undefined : json['tag_ids'],
35
36
  'chunkType': json['chunk_type'] == null ? undefined : ChunkTypeFromJSON(json['chunk_type']),
36
- 'updatedAt': json['updated_at'] == null ? undefined : (new Date(json['updated_at'])),
37
+ 'ingestionTimeAfter': json['ingestion_time_after'] == null ? undefined : (new Date(json['ingestion_time_after'])),
38
+ 'activeVersionOnly': json['active_version_only'] == null ? undefined : json['active_version_only'],
37
39
  'topK': json['top_k'] == null ? undefined : json['top_k'],
38
40
  'scoreThreshold': json['score_threshold'] == null ? undefined : json['score_threshold'],
39
41
  };
@@ -49,8 +51,10 @@ export function ChunkSearchRequestToJSONTyped(value, ignoreDiscriminator = false
49
51
  'query': value['query'],
50
52
  'model': EmbeddingModelToJSON(value['model']),
51
53
  'parent_path_ids': value['parentPathIds'],
54
+ 'tag_ids': value['tagIds'],
52
55
  'chunk_type': ChunkTypeToJSON(value['chunkType']),
53
- 'updated_at': value['updatedAt'] == null ? value['updatedAt'] : value['updatedAt'].toISOString(),
56
+ 'ingestion_time_after': value['ingestionTimeAfter'] == null ? value['ingestionTimeAfter'] : value['ingestionTimeAfter'].toISOString(),
57
+ 'active_version_only': value['activeVersionOnly'],
54
58
  'top_k': value['topK'],
55
59
  'score_threshold': value['scoreThreshold'],
56
60
  };
@@ -24,7 +24,7 @@ export interface DocumentResponse {
24
24
  * @type {DocumentResponsePartTypeEnum}
25
25
  * @memberof DocumentResponse
26
26
  */
27
- partType?: DocumentResponsePartTypeEnum;
27
+ partType: DocumentResponsePartTypeEnum;
28
28
  /**
29
29
  * Document ID
30
30
  * @type {string}
@@ -25,6 +25,8 @@ export const DocumentResponsePartTypeEnum = {
25
25
  * Check if a given object implements the DocumentResponse interface.
26
26
  */
27
27
  export function instanceOfDocumentResponse(value) {
28
+ if (!('partType' in value) || value['partType'] === undefined)
29
+ return false;
28
30
  if (!('id' in value) || value['id'] === undefined)
29
31
  return false;
30
32
  if (!('pathPartId' in value) || value['pathPartId'] === undefined)
@@ -61,7 +63,7 @@ export function DocumentResponseFromJSONTyped(json, ignoreDiscriminator) {
61
63
  return json;
62
64
  }
63
65
  return {
64
- 'partType': json['part_type'] == null ? undefined : json['part_type'],
66
+ 'partType': json['part_type'],
65
67
  'id': json['id'],
66
68
  'pathPartId': json['path_part_id'],
67
69
  'name': json['name'],
@@ -21,7 +21,7 @@ export interface FolderResponse {
21
21
  * @type {FolderResponsePartTypeEnum}
22
22
  * @memberof FolderResponse
23
23
  */
24
- partType?: FolderResponsePartTypeEnum;
24
+ partType: FolderResponsePartTypeEnum;
25
25
  /**
26
26
  * Folder ID
27
27
  * @type {string}
@@ -22,6 +22,8 @@ export const FolderResponsePartTypeEnum = {
22
22
  * Check if a given object implements the FolderResponse interface.
23
23
  */
24
24
  export function instanceOfFolderResponse(value) {
25
+ if (!('partType' in value) || value['partType'] === undefined)
26
+ return false;
25
27
  if (!('id' in value) || value['id'] === undefined)
26
28
  return false;
27
29
  if (!('pathPartId' in value) || value['pathPartId'] === undefined)
@@ -50,7 +52,7 @@ export function FolderResponseFromJSONTyped(json, ignoreDiscriminator) {
50
52
  return json;
51
53
  }
52
54
  return {
53
- 'partType': json['part_type'] == null ? undefined : json['part_type'],
55
+ 'partType': json['part_type'],
54
56
  'id': json['id'],
55
57
  'pathPartId': json['path_part_id'],
56
58
  'name': json['name'],
@@ -20,7 +20,7 @@ export interface SectionContentItem {
20
20
  * @type {SectionContentItemPartTypeEnum}
21
21
  * @memberof SectionContentItem
22
22
  */
23
- partType?: SectionContentItemPartTypeEnum;
23
+ partType: SectionContentItemPartTypeEnum;
24
24
  /**
25
25
  * PathPart ID
26
26
  * @type {string}
@@ -21,6 +21,8 @@ export const SectionContentItemPartTypeEnum = {
21
21
  * Check if a given object implements the SectionContentItem interface.
22
22
  */
23
23
  export function instanceOfSectionContentItem(value) {
24
+ if (!('partType' in value) || value['partType'] === undefined)
25
+ return false;
24
26
  if (!('pathPartId' in value) || value['pathPartId'] === undefined)
25
27
  return false;
26
28
  if (!('name' in value) || value['name'] === undefined)
@@ -49,7 +51,7 @@ export function SectionContentItemFromJSONTyped(json, ignoreDiscriminator) {
49
51
  return json;
50
52
  }
51
53
  return {
52
- 'partType': json['part_type'] == null ? undefined : json['part_type'],
54
+ 'partType': json['part_type'],
53
55
  'pathPartId': json['path_part_id'],
54
56
  'name': json['name'],
55
57
  'parentPathId': json['parent_path_id'],
@@ -0,0 +1,62 @@
1
+ /**
2
+ * Knowledge Stack API
3
+ * Knowledge Stack backend API for authentication and knowledge management
4
+ *
5
+ * The version of the OpenAPI document: 0.1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ * A group of chunks sharing identical path_part_ids and tag_ids.
14
+ *
15
+ * Used by PathPartCRUDService.resolve_subtree_chunks to batch downstream
16
+ * Qdrant set_payload calls.
17
+ * @export
18
+ * @interface SubtreeChunkGroup
19
+ */
20
+ export interface SubtreeChunkGroup {
21
+ /**
22
+ *
23
+ * @type {Array<string>}
24
+ * @memberof SubtreeChunkGroup
25
+ */
26
+ chunkIds: Array<string>;
27
+ /**
28
+ *
29
+ * @type {Array<string>}
30
+ * @memberof SubtreeChunkGroup
31
+ */
32
+ pathPartIds: Array<string>;
33
+ /**
34
+ *
35
+ * @type {Array<string>}
36
+ * @memberof SubtreeChunkGroup
37
+ */
38
+ tagIds: Array<string>;
39
+ }
40
+ /**
41
+ * Check if a given object implements the SubtreeChunkGroup interface.
42
+ */
43
+ export declare function instanceOfSubtreeChunkGroup(value: object): value is SubtreeChunkGroup;
44
+ export declare function SubtreeChunkGroupFromJSON(json: any): SubtreeChunkGroup;
45
+ export declare function SubtreeChunkGroupFromJSONTyped(json: any, ignoreDiscriminator: boolean): SubtreeChunkGroup;
46
+ export declare function SubtreeChunkGroupToJSON(json: any): SubtreeChunkGroup;
47
+ export declare function SubtreeChunkGroupToJSONTyped(value?: SubtreeChunkGroup | null, ignoreDiscriminator?: boolean): any;
48
+ export declare const SubtreeChunkGroupPropertyValidationAttributesMap: {
49
+ [property: string]: {
50
+ maxLength?: number;
51
+ minLength?: number;
52
+ pattern?: string;
53
+ maximum?: number;
54
+ exclusiveMaximum?: boolean;
55
+ minimum?: number;
56
+ exclusiveMinimum?: boolean;
57
+ multipleOf?: number;
58
+ maxItems?: number;
59
+ minItems?: number;
60
+ uniqueItems?: boolean;
61
+ };
62
+ };
@@ -0,0 +1,52 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Knowledge Stack API
5
+ * Knowledge Stack backend API for authentication and knowledge management
6
+ *
7
+ * The version of the OpenAPI document: 0.1.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ * Check if a given object implements the SubtreeChunkGroup interface.
16
+ */
17
+ export function instanceOfSubtreeChunkGroup(value) {
18
+ if (!('chunkIds' in value) || value['chunkIds'] === undefined)
19
+ return false;
20
+ if (!('pathPartIds' in value) || value['pathPartIds'] === undefined)
21
+ return false;
22
+ if (!('tagIds' in value) || value['tagIds'] === undefined)
23
+ return false;
24
+ return true;
25
+ }
26
+ export function SubtreeChunkGroupFromJSON(json) {
27
+ return SubtreeChunkGroupFromJSONTyped(json, false);
28
+ }
29
+ export function SubtreeChunkGroupFromJSONTyped(json, ignoreDiscriminator) {
30
+ if (json == null) {
31
+ return json;
32
+ }
33
+ return {
34
+ 'chunkIds': json['chunk_ids'],
35
+ 'pathPartIds': json['path_part_ids'],
36
+ 'tagIds': json['tag_ids'],
37
+ };
38
+ }
39
+ export function SubtreeChunkGroupToJSON(json) {
40
+ return SubtreeChunkGroupToJSONTyped(json, false);
41
+ }
42
+ export function SubtreeChunkGroupToJSONTyped(value, ignoreDiscriminator = false) {
43
+ if (value == null) {
44
+ return value;
45
+ }
46
+ return {
47
+ 'chunk_ids': value['chunkIds'],
48
+ 'path_part_ids': value['pathPartIds'],
49
+ 'tag_ids': value['tagIds'],
50
+ };
51
+ }
52
+ export const SubtreeChunkGroupPropertyValidationAttributesMap = {};
@@ -0,0 +1,48 @@
1
+ /**
2
+ * Knowledge Stack API
3
+ * Knowledge Stack backend API for authentication and knowledge management
4
+ *
5
+ * The version of the OpenAPI document: 0.1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { SubtreeChunkGroup } from './SubtreeChunkGroup';
13
+ /**
14
+ * Response for subtree resolution.
15
+ * @export
16
+ * @interface SubtreeChunksResponse
17
+ */
18
+ export interface SubtreeChunksResponse {
19
+ /**
20
+ *
21
+ * @type {Array<SubtreeChunkGroup>}
22
+ * @memberof SubtreeChunksResponse
23
+ */
24
+ groups: Array<SubtreeChunkGroup>;
25
+ }
26
+ /**
27
+ * Check if a given object implements the SubtreeChunksResponse interface.
28
+ */
29
+ export declare function instanceOfSubtreeChunksResponse(value: object): value is SubtreeChunksResponse;
30
+ export declare function SubtreeChunksResponseFromJSON(json: any): SubtreeChunksResponse;
31
+ export declare function SubtreeChunksResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SubtreeChunksResponse;
32
+ export declare function SubtreeChunksResponseToJSON(json: any): SubtreeChunksResponse;
33
+ export declare function SubtreeChunksResponseToJSONTyped(value?: SubtreeChunksResponse | null, ignoreDiscriminator?: boolean): any;
34
+ export declare const SubtreeChunksResponsePropertyValidationAttributesMap: {
35
+ [property: string]: {
36
+ maxLength?: number;
37
+ minLength?: number;
38
+ pattern?: string;
39
+ maximum?: number;
40
+ exclusiveMaximum?: boolean;
41
+ minimum?: number;
42
+ exclusiveMinimum?: boolean;
43
+ multipleOf?: number;
44
+ maxItems?: number;
45
+ minItems?: number;
46
+ uniqueItems?: boolean;
47
+ };
48
+ };
@@ -0,0 +1,45 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Knowledge Stack API
5
+ * Knowledge Stack backend API for authentication and knowledge management
6
+ *
7
+ * The version of the OpenAPI document: 0.1.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ import { SubtreeChunkGroupFromJSON, SubtreeChunkGroupToJSON, } from './SubtreeChunkGroup';
15
+ /**
16
+ * Check if a given object implements the SubtreeChunksResponse interface.
17
+ */
18
+ export function instanceOfSubtreeChunksResponse(value) {
19
+ if (!('groups' in value) || value['groups'] === undefined)
20
+ return false;
21
+ return true;
22
+ }
23
+ export function SubtreeChunksResponseFromJSON(json) {
24
+ return SubtreeChunksResponseFromJSONTyped(json, false);
25
+ }
26
+ export function SubtreeChunksResponseFromJSONTyped(json, ignoreDiscriminator) {
27
+ if (json == null) {
28
+ return json;
29
+ }
30
+ return {
31
+ 'groups': (json['groups'].map(SubtreeChunkGroupFromJSON)),
32
+ };
33
+ }
34
+ export function SubtreeChunksResponseToJSON(json) {
35
+ return SubtreeChunksResponseToJSONTyped(json, false);
36
+ }
37
+ export function SubtreeChunksResponseToJSONTyped(value, ignoreDiscriminator = false) {
38
+ if (value == null) {
39
+ return value;
40
+ }
41
+ return {
42
+ 'groups': (value['groups'].map(SubtreeChunkGroupToJSON)),
43
+ };
44
+ }
45
+ export const SubtreeChunksResponsePropertyValidationAttributesMap = {};
@@ -0,0 +1,47 @@
1
+ /**
2
+ * Knowledge Stack API
3
+ * Knowledge Stack backend API for authentication and knowledge management
4
+ *
5
+ * The version of the OpenAPI document: 0.1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ * Response containing chunk IDs for a document version.
14
+ * @export
15
+ * @interface VersionChunkIdsResponse
16
+ */
17
+ export interface VersionChunkIdsResponse {
18
+ /**
19
+ *
20
+ * @type {Array<string>}
21
+ * @memberof VersionChunkIdsResponse
22
+ */
23
+ chunkIds: Array<string>;
24
+ }
25
+ /**
26
+ * Check if a given object implements the VersionChunkIdsResponse interface.
27
+ */
28
+ export declare function instanceOfVersionChunkIdsResponse(value: object): value is VersionChunkIdsResponse;
29
+ export declare function VersionChunkIdsResponseFromJSON(json: any): VersionChunkIdsResponse;
30
+ export declare function VersionChunkIdsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): VersionChunkIdsResponse;
31
+ export declare function VersionChunkIdsResponseToJSON(json: any): VersionChunkIdsResponse;
32
+ export declare function VersionChunkIdsResponseToJSONTyped(value?: VersionChunkIdsResponse | null, ignoreDiscriminator?: boolean): any;
33
+ export declare const VersionChunkIdsResponsePropertyValidationAttributesMap: {
34
+ [property: string]: {
35
+ maxLength?: number;
36
+ minLength?: number;
37
+ pattern?: string;
38
+ maximum?: number;
39
+ exclusiveMaximum?: boolean;
40
+ minimum?: number;
41
+ exclusiveMinimum?: boolean;
42
+ multipleOf?: number;
43
+ maxItems?: number;
44
+ minItems?: number;
45
+ uniqueItems?: boolean;
46
+ };
47
+ };
@@ -0,0 +1,44 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Knowledge Stack API
5
+ * Knowledge Stack backend API for authentication and knowledge management
6
+ *
7
+ * The version of the OpenAPI document: 0.1.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ * Check if a given object implements the VersionChunkIdsResponse interface.
16
+ */
17
+ export function instanceOfVersionChunkIdsResponse(value) {
18
+ if (!('chunkIds' in value) || value['chunkIds'] === undefined)
19
+ return false;
20
+ return true;
21
+ }
22
+ export function VersionChunkIdsResponseFromJSON(json) {
23
+ return VersionChunkIdsResponseFromJSONTyped(json, false);
24
+ }
25
+ export function VersionChunkIdsResponseFromJSONTyped(json, ignoreDiscriminator) {
26
+ if (json == null) {
27
+ return json;
28
+ }
29
+ return {
30
+ 'chunkIds': json['chunk_ids'],
31
+ };
32
+ }
33
+ export function VersionChunkIdsResponseToJSON(json) {
34
+ return VersionChunkIdsResponseToJSONTyped(json, false);
35
+ }
36
+ export function VersionChunkIdsResponseToJSONTyped(value, ignoreDiscriminator = false) {
37
+ if (value == null) {
38
+ return value;
39
+ }
40
+ return {
41
+ 'chunk_ids': value['chunkIds'],
42
+ };
43
+ }
44
+ export const VersionChunkIdsResponsePropertyValidationAttributesMap = {};
@@ -1,4 +1,5 @@
1
1
  export * from './BulkTagRequest';
2
+ export * from './ChunkBulkResponse';
2
3
  export * from './ChunkContentItem';
3
4
  export * from './ChunkLineageResponse';
4
5
  export * from './ChunkMetadataInput';
@@ -74,6 +75,8 @@ export * from './SectionContentItem';
74
75
  export * from './SectionContentItemOrChunkContentItem';
75
76
  export * from './SectionResponse';
76
77
  export * from './SignInRequest';
78
+ export * from './SubtreeChunkGroup';
79
+ export * from './SubtreeChunksResponse';
77
80
  export * from './TagResponse';
78
81
  export * from './TenantResponse';
79
82
  export * from './TenantUserEditRequest';
@@ -93,6 +96,7 @@ export * from './UpdateThreadRequest';
93
96
  export * from './UpdateUserRequest';
94
97
  export * from './UserResponse';
95
98
  export * from './ValidationError';
99
+ export * from './VersionChunkIdsResponse';
96
100
  export * from './WorkflowAction';
97
101
  export * from './WorkflowActionResponse';
98
102
  export * from './WorkflowDetailResponse';
@@ -1,6 +1,7 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  export * from './BulkTagRequest';
4
+ export * from './ChunkBulkResponse';
4
5
  export * from './ChunkContentItem';
5
6
  export * from './ChunkLineageResponse';
6
7
  export * from './ChunkMetadataInput';
@@ -76,6 +77,8 @@ export * from './SectionContentItem';
76
77
  export * from './SectionContentItemOrChunkContentItem';
77
78
  export * from './SectionResponse';
78
79
  export * from './SignInRequest';
80
+ export * from './SubtreeChunkGroup';
81
+ export * from './SubtreeChunksResponse';
79
82
  export * from './TagResponse';
80
83
  export * from './TenantResponse';
81
84
  export * from './TenantUserEditRequest';
@@ -95,6 +98,7 @@ export * from './UpdateThreadRequest';
95
98
  export * from './UpdateUserRequest';
96
99
  export * from './UserResponse';
97
100
  export * from './ValidationError';
101
+ export * from './VersionChunkIdsResponse';
98
102
  export * from './WorkflowAction';
99
103
  export * from './WorkflowActionResponse';
100
104
  export * from './WorkflowDetailResponse';