@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,139 @@
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 { ChunkMetadataOutput } from './ChunkMetadataOutput';
13
+ import type { ChunkType } from './ChunkType';
14
+ /**
15
+ * Chunk response with ancestor path part IDs for Qdrant payload construction.
16
+ * @export
17
+ * @interface ChunkBulkResponse
18
+ */
19
+ export interface ChunkBulkResponse {
20
+ /**
21
+ * Chunk ID
22
+ * @type {string}
23
+ * @memberof ChunkBulkResponse
24
+ */
25
+ id: string;
26
+ /**
27
+ * PathPart ID
28
+ * @type {string}
29
+ * @memberof ChunkBulkResponse
30
+ */
31
+ pathPartId: string;
32
+ /**
33
+ * ChunkContent ID
34
+ * @type {string}
35
+ * @memberof ChunkBulkResponse
36
+ */
37
+ contentId: string;
38
+ /**
39
+ * Chunk text content
40
+ * @type {string}
41
+ * @memberof ChunkBulkResponse
42
+ */
43
+ content: string;
44
+ /**
45
+ *
46
+ * @type {ChunkType}
47
+ * @memberof ChunkBulkResponse
48
+ */
49
+ chunkType: ChunkType;
50
+ /**
51
+ *
52
+ * @type {ChunkMetadataOutput}
53
+ * @memberof ChunkBulkResponse
54
+ */
55
+ chunkMetadata: ChunkMetadataOutput;
56
+ /**
57
+ * Parent PathPart ID
58
+ * @type {string}
59
+ * @memberof ChunkBulkResponse
60
+ */
61
+ parentPathId: string;
62
+ /**
63
+ * Previous sibling PathPart ID
64
+ * @type {string}
65
+ * @memberof ChunkBulkResponse
66
+ */
67
+ prevSiblingPathId?: string | null;
68
+ /**
69
+ * Next sibling PathPart ID
70
+ * @type {string}
71
+ * @memberof ChunkBulkResponse
72
+ */
73
+ nextSiblingPathId?: string | null;
74
+ /**
75
+ * Full materialized path from root
76
+ * @type {string}
77
+ * @memberof ChunkBulkResponse
78
+ */
79
+ materializedPath: string;
80
+ /**
81
+ * Whether this chunk is system-managed
82
+ * @type {boolean}
83
+ * @memberof ChunkBulkResponse
84
+ */
85
+ systemManaged: boolean;
86
+ /**
87
+ * Tenant ID
88
+ * @type {string}
89
+ * @memberof ChunkBulkResponse
90
+ */
91
+ tenantId: string;
92
+ /**
93
+ * Creation timestamp
94
+ * @type {Date}
95
+ * @memberof ChunkBulkResponse
96
+ */
97
+ createdAt: Date;
98
+ /**
99
+ * Last update timestamp
100
+ * @type {Date}
101
+ * @memberof ChunkBulkResponse
102
+ */
103
+ updatedAt: Date;
104
+ /**
105
+ * Presigned URL to download the chunk's visual asset (6-hour validity)
106
+ * @type {string}
107
+ * @memberof ChunkBulkResponse
108
+ */
109
+ assetS3Url?: string | null;
110
+ /**
111
+ * Ordered ancestor PathPart IDs from root to chunk
112
+ * @type {Array<string>}
113
+ * @memberof ChunkBulkResponse
114
+ */
115
+ pathPartIdSegments: Array<string>;
116
+ }
117
+ /**
118
+ * Check if a given object implements the ChunkBulkResponse interface.
119
+ */
120
+ export declare function instanceOfChunkBulkResponse(value: object): value is ChunkBulkResponse;
121
+ export declare function ChunkBulkResponseFromJSON(json: any): ChunkBulkResponse;
122
+ export declare function ChunkBulkResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChunkBulkResponse;
123
+ export declare function ChunkBulkResponseToJSON(json: any): ChunkBulkResponse;
124
+ export declare function ChunkBulkResponseToJSONTyped(value?: ChunkBulkResponse | null, ignoreDiscriminator?: boolean): any;
125
+ export declare const ChunkBulkResponsePropertyValidationAttributesMap: {
126
+ [property: string]: {
127
+ maxLength?: number;
128
+ minLength?: number;
129
+ pattern?: string;
130
+ maximum?: number;
131
+ exclusiveMaximum?: boolean;
132
+ minimum?: number;
133
+ exclusiveMinimum?: boolean;
134
+ multipleOf?: number;
135
+ maxItems?: number;
136
+ minItems?: number;
137
+ uniqueItems?: boolean;
138
+ };
139
+ };
@@ -0,0 +1,108 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Knowledge Stack API
6
+ * Knowledge Stack backend API for authentication and knowledge management
7
+ *
8
+ * The version of the OpenAPI document: 0.1.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.ChunkBulkResponsePropertyValidationAttributesMap = void 0;
17
+ exports.instanceOfChunkBulkResponse = instanceOfChunkBulkResponse;
18
+ exports.ChunkBulkResponseFromJSON = ChunkBulkResponseFromJSON;
19
+ exports.ChunkBulkResponseFromJSONTyped = ChunkBulkResponseFromJSONTyped;
20
+ exports.ChunkBulkResponseToJSON = ChunkBulkResponseToJSON;
21
+ exports.ChunkBulkResponseToJSONTyped = ChunkBulkResponseToJSONTyped;
22
+ const ChunkMetadataOutput_1 = require("./ChunkMetadataOutput");
23
+ const ChunkType_1 = require("./ChunkType");
24
+ /**
25
+ * Check if a given object implements the ChunkBulkResponse interface.
26
+ */
27
+ function instanceOfChunkBulkResponse(value) {
28
+ if (!('id' in value) || value['id'] === undefined)
29
+ return false;
30
+ if (!('pathPartId' in value) || value['pathPartId'] === undefined)
31
+ return false;
32
+ if (!('contentId' in value) || value['contentId'] === undefined)
33
+ return false;
34
+ if (!('content' in value) || value['content'] === undefined)
35
+ return false;
36
+ if (!('chunkType' in value) || value['chunkType'] === undefined)
37
+ return false;
38
+ if (!('chunkMetadata' in value) || value['chunkMetadata'] === undefined)
39
+ return false;
40
+ if (!('parentPathId' in value) || value['parentPathId'] === undefined)
41
+ return false;
42
+ if (!('materializedPath' in value) || value['materializedPath'] === undefined)
43
+ return false;
44
+ if (!('systemManaged' in value) || value['systemManaged'] === undefined)
45
+ return false;
46
+ if (!('tenantId' in value) || value['tenantId'] === undefined)
47
+ return false;
48
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
49
+ return false;
50
+ if (!('updatedAt' in value) || value['updatedAt'] === undefined)
51
+ return false;
52
+ if (!('pathPartIdSegments' in value) || value['pathPartIdSegments'] === undefined)
53
+ return false;
54
+ return true;
55
+ }
56
+ function ChunkBulkResponseFromJSON(json) {
57
+ return ChunkBulkResponseFromJSONTyped(json, false);
58
+ }
59
+ function ChunkBulkResponseFromJSONTyped(json, ignoreDiscriminator) {
60
+ if (json == null) {
61
+ return json;
62
+ }
63
+ return {
64
+ 'id': json['id'],
65
+ 'pathPartId': json['path_part_id'],
66
+ 'contentId': json['content_id'],
67
+ 'content': json['content'],
68
+ 'chunkType': (0, ChunkType_1.ChunkTypeFromJSON)(json['chunk_type']),
69
+ 'chunkMetadata': (0, ChunkMetadataOutput_1.ChunkMetadataOutputFromJSON)(json['chunk_metadata']),
70
+ 'parentPathId': json['parent_path_id'],
71
+ 'prevSiblingPathId': json['prev_sibling_path_id'] == null ? undefined : json['prev_sibling_path_id'],
72
+ 'nextSiblingPathId': json['next_sibling_path_id'] == null ? undefined : json['next_sibling_path_id'],
73
+ 'materializedPath': json['materialized_path'],
74
+ 'systemManaged': json['system_managed'],
75
+ 'tenantId': json['tenant_id'],
76
+ 'createdAt': (new Date(json['created_at'])),
77
+ 'updatedAt': (new Date(json['updated_at'])),
78
+ 'assetS3Url': json['asset_s3_url'] == null ? undefined : json['asset_s3_url'],
79
+ 'pathPartIdSegments': json['path_part_id_segments'],
80
+ };
81
+ }
82
+ function ChunkBulkResponseToJSON(json) {
83
+ return ChunkBulkResponseToJSONTyped(json, false);
84
+ }
85
+ function ChunkBulkResponseToJSONTyped(value, ignoreDiscriminator = false) {
86
+ if (value == null) {
87
+ return value;
88
+ }
89
+ return {
90
+ 'id': value['id'],
91
+ 'path_part_id': value['pathPartId'],
92
+ 'content_id': value['contentId'],
93
+ 'content': value['content'],
94
+ 'chunk_type': (0, ChunkType_1.ChunkTypeToJSON)(value['chunkType']),
95
+ 'chunk_metadata': (0, ChunkMetadataOutput_1.ChunkMetadataOutputToJSON)(value['chunkMetadata']),
96
+ 'parent_path_id': value['parentPathId'],
97
+ 'prev_sibling_path_id': value['prevSiblingPathId'],
98
+ 'next_sibling_path_id': value['nextSiblingPathId'],
99
+ 'materialized_path': value['materializedPath'],
100
+ 'system_managed': value['systemManaged'],
101
+ 'tenant_id': value['tenantId'],
102
+ 'created_at': value['createdAt'].toISOString(),
103
+ 'updated_at': value['updatedAt'].toISOString(),
104
+ 'asset_s3_url': value['assetS3Url'],
105
+ 'path_part_id_segments': value['pathPartIdSegments'],
106
+ };
107
+ }
108
+ exports.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}
@@ -31,6 +31,8 @@ exports.ChunkContentItemPartTypeEnum = {
31
31
  * Check if a given object implements the ChunkContentItem interface.
32
32
  */
33
33
  function instanceOfChunkContentItem(value) {
34
+ if (!('partType' in value) || value['partType'] === undefined)
35
+ return false;
34
36
  if (!('pathPartId' in value) || value['pathPartId'] === undefined)
35
37
  return false;
36
38
  if (!('name' in value) || value['name'] === undefined)
@@ -59,7 +61,7 @@ function ChunkContentItemFromJSONTyped(json, ignoreDiscriminator) {
59
61
  return json;
60
62
  }
61
63
  return {
62
- 'partType': json['part_type'] == null ? undefined : json['part_type'],
64
+ 'partType': json['part_type'],
63
65
  'pathPartId': json['path_part_id'],
64
66
  'name': json['name'],
65
67
  '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}
@@ -40,8 +40,10 @@ function ChunkSearchRequestFromJSONTyped(json, ignoreDiscriminator) {
40
40
  'query': json['query'],
41
41
  'model': json['model'] == null ? undefined : (0, EmbeddingModel_1.EmbeddingModelFromJSON)(json['model']),
42
42
  'parentPathIds': json['parent_path_ids'] == null ? undefined : json['parent_path_ids'],
43
+ 'tagIds': json['tag_ids'] == null ? undefined : json['tag_ids'],
43
44
  'chunkType': json['chunk_type'] == null ? undefined : (0, ChunkType_1.ChunkTypeFromJSON)(json['chunk_type']),
44
- 'updatedAt': json['updated_at'] == null ? undefined : (new Date(json['updated_at'])),
45
+ 'ingestionTimeAfter': json['ingestion_time_after'] == null ? undefined : (new Date(json['ingestion_time_after'])),
46
+ 'activeVersionOnly': json['active_version_only'] == null ? undefined : json['active_version_only'],
45
47
  'topK': json['top_k'] == null ? undefined : json['top_k'],
46
48
  'scoreThreshold': json['score_threshold'] == null ? undefined : json['score_threshold'],
47
49
  };
@@ -57,8 +59,10 @@ function ChunkSearchRequestToJSONTyped(value, ignoreDiscriminator = false) {
57
59
  'query': value['query'],
58
60
  'model': (0, EmbeddingModel_1.EmbeddingModelToJSON)(value['model']),
59
61
  'parent_path_ids': value['parentPathIds'],
62
+ 'tag_ids': value['tagIds'],
60
63
  'chunk_type': (0, ChunkType_1.ChunkTypeToJSON)(value['chunkType']),
61
- 'updated_at': value['updatedAt'] == null ? value['updatedAt'] : value['updatedAt'].toISOString(),
64
+ 'ingestion_time_after': value['ingestionTimeAfter'] == null ? value['ingestionTimeAfter'] : value['ingestionTimeAfter'].toISOString(),
65
+ 'active_version_only': value['activeVersionOnly'],
62
66
  'top_k': value['topK'],
63
67
  'score_threshold': value['scoreThreshold'],
64
68
  };
@@ -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}
@@ -33,6 +33,8 @@ exports.DocumentResponsePartTypeEnum = {
33
33
  * Check if a given object implements the DocumentResponse interface.
34
34
  */
35
35
  function instanceOfDocumentResponse(value) {
36
+ if (!('partType' in value) || value['partType'] === undefined)
37
+ return false;
36
38
  if (!('id' in value) || value['id'] === undefined)
37
39
  return false;
38
40
  if (!('pathPartId' in value) || value['pathPartId'] === undefined)
@@ -69,7 +71,7 @@ function DocumentResponseFromJSONTyped(json, ignoreDiscriminator) {
69
71
  return json;
70
72
  }
71
73
  return {
72
- 'partType': json['part_type'] == null ? undefined : json['part_type'],
74
+ 'partType': json['part_type'],
73
75
  'id': json['id'],
74
76
  'pathPartId': json['path_part_id'],
75
77
  '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}
@@ -30,6 +30,8 @@ exports.FolderResponsePartTypeEnum = {
30
30
  * Check if a given object implements the FolderResponse interface.
31
31
  */
32
32
  function instanceOfFolderResponse(value) {
33
+ if (!('partType' in value) || value['partType'] === undefined)
34
+ return false;
33
35
  if (!('id' in value) || value['id'] === undefined)
34
36
  return false;
35
37
  if (!('pathPartId' in value) || value['pathPartId'] === undefined)
@@ -58,7 +60,7 @@ function FolderResponseFromJSONTyped(json, ignoreDiscriminator) {
58
60
  return json;
59
61
  }
60
62
  return {
61
- 'partType': json['part_type'] == null ? undefined : json['part_type'],
63
+ 'partType': json['part_type'],
62
64
  'id': json['id'],
63
65
  'pathPartId': json['path_part_id'],
64
66
  '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}
@@ -29,6 +29,8 @@ exports.SectionContentItemPartTypeEnum = {
29
29
  * Check if a given object implements the SectionContentItem interface.
30
30
  */
31
31
  function instanceOfSectionContentItem(value) {
32
+ if (!('partType' in value) || value['partType'] === undefined)
33
+ return false;
32
34
  if (!('pathPartId' in value) || value['pathPartId'] === undefined)
33
35
  return false;
34
36
  if (!('name' in value) || value['name'] === undefined)
@@ -57,7 +59,7 @@ function SectionContentItemFromJSONTyped(json, ignoreDiscriminator) {
57
59
  return json;
58
60
  }
59
61
  return {
60
- 'partType': json['part_type'] == null ? undefined : json['part_type'],
62
+ 'partType': json['part_type'],
61
63
  'pathPartId': json['path_part_id'],
62
64
  'name': json['name'],
63
65
  '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,60 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Knowledge Stack API
6
+ * Knowledge Stack backend API for authentication and knowledge management
7
+ *
8
+ * The version of the OpenAPI document: 0.1.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.SubtreeChunkGroupPropertyValidationAttributesMap = void 0;
17
+ exports.instanceOfSubtreeChunkGroup = instanceOfSubtreeChunkGroup;
18
+ exports.SubtreeChunkGroupFromJSON = SubtreeChunkGroupFromJSON;
19
+ exports.SubtreeChunkGroupFromJSONTyped = SubtreeChunkGroupFromJSONTyped;
20
+ exports.SubtreeChunkGroupToJSON = SubtreeChunkGroupToJSON;
21
+ exports.SubtreeChunkGroupToJSONTyped = SubtreeChunkGroupToJSONTyped;
22
+ /**
23
+ * Check if a given object implements the SubtreeChunkGroup interface.
24
+ */
25
+ function instanceOfSubtreeChunkGroup(value) {
26
+ if (!('chunkIds' in value) || value['chunkIds'] === undefined)
27
+ return false;
28
+ if (!('pathPartIds' in value) || value['pathPartIds'] === undefined)
29
+ return false;
30
+ if (!('tagIds' in value) || value['tagIds'] === undefined)
31
+ return false;
32
+ return true;
33
+ }
34
+ function SubtreeChunkGroupFromJSON(json) {
35
+ return SubtreeChunkGroupFromJSONTyped(json, false);
36
+ }
37
+ function SubtreeChunkGroupFromJSONTyped(json, ignoreDiscriminator) {
38
+ if (json == null) {
39
+ return json;
40
+ }
41
+ return {
42
+ 'chunkIds': json['chunk_ids'],
43
+ 'pathPartIds': json['path_part_ids'],
44
+ 'tagIds': json['tag_ids'],
45
+ };
46
+ }
47
+ function SubtreeChunkGroupToJSON(json) {
48
+ return SubtreeChunkGroupToJSONTyped(json, false);
49
+ }
50
+ function SubtreeChunkGroupToJSONTyped(value, ignoreDiscriminator = false) {
51
+ if (value == null) {
52
+ return value;
53
+ }
54
+ return {
55
+ 'chunk_ids': value['chunkIds'],
56
+ 'path_part_ids': value['pathPartIds'],
57
+ 'tag_ids': value['tagIds'],
58
+ };
59
+ }
60
+ exports.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,53 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Knowledge Stack API
6
+ * Knowledge Stack backend API for authentication and knowledge management
7
+ *
8
+ * The version of the OpenAPI document: 0.1.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.SubtreeChunksResponsePropertyValidationAttributesMap = void 0;
17
+ exports.instanceOfSubtreeChunksResponse = instanceOfSubtreeChunksResponse;
18
+ exports.SubtreeChunksResponseFromJSON = SubtreeChunksResponseFromJSON;
19
+ exports.SubtreeChunksResponseFromJSONTyped = SubtreeChunksResponseFromJSONTyped;
20
+ exports.SubtreeChunksResponseToJSON = SubtreeChunksResponseToJSON;
21
+ exports.SubtreeChunksResponseToJSONTyped = SubtreeChunksResponseToJSONTyped;
22
+ const SubtreeChunkGroup_1 = require("./SubtreeChunkGroup");
23
+ /**
24
+ * Check if a given object implements the SubtreeChunksResponse interface.
25
+ */
26
+ function instanceOfSubtreeChunksResponse(value) {
27
+ if (!('groups' in value) || value['groups'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ function SubtreeChunksResponseFromJSON(json) {
32
+ return SubtreeChunksResponseFromJSONTyped(json, false);
33
+ }
34
+ function SubtreeChunksResponseFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'groups': (json['groups'].map(SubtreeChunkGroup_1.SubtreeChunkGroupFromJSON)),
40
+ };
41
+ }
42
+ function SubtreeChunksResponseToJSON(json) {
43
+ return SubtreeChunksResponseToJSONTyped(json, false);
44
+ }
45
+ function SubtreeChunksResponseToJSONTyped(value, ignoreDiscriminator = false) {
46
+ if (value == null) {
47
+ return value;
48
+ }
49
+ return {
50
+ 'groups': (value['groups'].map(SubtreeChunkGroup_1.SubtreeChunkGroupToJSON)),
51
+ };
52
+ }
53
+ exports.SubtreeChunksResponsePropertyValidationAttributesMap = {};