@knowledge-stack/ksapi 1.19.0 → 1.19.1

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 (47) hide show
  1. package/README.md +2 -2
  2. package/dist/esm/models/ChunkResponse.d.ts +6 -0
  3. package/dist/esm/models/ChunkResponse.js +4 -0
  4. package/dist/esm/models/DocumentContentPathPart.d.ts +6 -0
  5. package/dist/esm/models/DocumentContentPathPart.js +4 -0
  6. package/dist/esm/models/DocumentResponse.d.ts +6 -0
  7. package/dist/esm/models/DocumentResponse.js +4 -0
  8. package/dist/esm/models/DocumentVersionResponse.d.ts +6 -0
  9. package/dist/esm/models/DocumentVersionResponse.js +4 -0
  10. package/dist/esm/models/FolderDocumentResponse.d.ts +6 -0
  11. package/dist/esm/models/FolderDocumentResponse.js +4 -0
  12. package/dist/esm/models/FolderResponse.d.ts +6 -0
  13. package/dist/esm/models/FolderResponse.js +4 -0
  14. package/dist/esm/models/PathPartResponse.d.ts +6 -0
  15. package/dist/esm/models/PathPartResponse.js +4 -0
  16. package/dist/esm/models/ScoredChunkResponse.d.ts +6 -0
  17. package/dist/esm/models/ScoredChunkResponse.js +4 -0
  18. package/dist/esm/models/SectionResponse.d.ts +6 -0
  19. package/dist/esm/models/SectionResponse.js +4 -0
  20. package/dist/models/ChunkResponse.d.ts +6 -0
  21. package/dist/models/ChunkResponse.js +4 -0
  22. package/dist/models/DocumentContentPathPart.d.ts +6 -0
  23. package/dist/models/DocumentContentPathPart.js +4 -0
  24. package/dist/models/DocumentResponse.d.ts +6 -0
  25. package/dist/models/DocumentResponse.js +4 -0
  26. package/dist/models/DocumentVersionResponse.d.ts +6 -0
  27. package/dist/models/DocumentVersionResponse.js +4 -0
  28. package/dist/models/FolderDocumentResponse.d.ts +6 -0
  29. package/dist/models/FolderDocumentResponse.js +4 -0
  30. package/dist/models/FolderResponse.d.ts +6 -0
  31. package/dist/models/FolderResponse.js +4 -0
  32. package/dist/models/PathPartResponse.d.ts +6 -0
  33. package/dist/models/PathPartResponse.js +4 -0
  34. package/dist/models/ScoredChunkResponse.d.ts +6 -0
  35. package/dist/models/ScoredChunkResponse.js +4 -0
  36. package/dist/models/SectionResponse.d.ts +6 -0
  37. package/dist/models/SectionResponse.js +4 -0
  38. package/package.json +1 -1
  39. package/src/models/ChunkResponse.ts +9 -0
  40. package/src/models/DocumentContentPathPart.ts +9 -0
  41. package/src/models/DocumentResponse.ts +9 -0
  42. package/src/models/DocumentVersionResponse.ts +9 -0
  43. package/src/models/FolderDocumentResponse.ts +9 -0
  44. package/src/models/FolderResponse.ts +9 -0
  45. package/src/models/PathPartResponse.ts +9 -0
  46. package/src/models/ScoredChunkResponse.ts +9 -0
  47. package/src/models/SectionResponse.ts +9 -0
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @knowledge-stack/ksapi@1.19.0
1
+ ## @knowledge-stack/ksapi@1.19.1
2
2
 
3
3
  This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments:
4
4
 
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
36
36
  _published:_
37
37
 
38
38
  ```
39
- npm install @knowledge-stack/ksapi@1.19.0 --save
39
+ npm install @knowledge-stack/ksapi@1.19.1 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -77,6 +77,12 @@ export interface ChunkResponse {
77
77
  * @memberof ChunkResponse
78
78
  */
79
79
  materializedPath: string;
80
+ /**
81
+ * Whether this chunk is system-managed
82
+ * @type {boolean}
83
+ * @memberof ChunkResponse
84
+ */
85
+ systemManaged: boolean;
80
86
  /**
81
87
  * Tenant ID
82
88
  * @type {string}
@@ -33,6 +33,8 @@ export function instanceOfChunkResponse(value) {
33
33
  return false;
34
34
  if (!('materializedPath' in value) || value['materializedPath'] === undefined)
35
35
  return false;
36
+ if (!('systemManaged' in value) || value['systemManaged'] === undefined)
37
+ return false;
36
38
  if (!('tenantId' in value) || value['tenantId'] === undefined)
37
39
  return false;
38
40
  if (!('createdAt' in value) || value['createdAt'] === undefined)
@@ -59,6 +61,7 @@ export function ChunkResponseFromJSONTyped(json, ignoreDiscriminator) {
59
61
  'prevSiblingPathId': json['prev_sibling_path_id'] == null ? undefined : json['prev_sibling_path_id'],
60
62
  'nextSiblingPathId': json['next_sibling_path_id'] == null ? undefined : json['next_sibling_path_id'],
61
63
  'materializedPath': json['materialized_path'],
64
+ 'systemManaged': json['system_managed'],
62
65
  'tenantId': json['tenant_id'],
63
66
  'createdAt': (new Date(json['created_at'])),
64
67
  'updatedAt': (new Date(json['updated_at'])),
@@ -82,6 +85,7 @@ export function ChunkResponseToJSONTyped(value, ignoreDiscriminator = false) {
82
85
  'prev_sibling_path_id': value['prevSiblingPathId'],
83
86
  'next_sibling_path_id': value['nextSiblingPathId'],
84
87
  'materialized_path': value['materializedPath'],
88
+ 'system_managed': value['systemManaged'],
85
89
  'tenant_id': value['tenantId'],
86
90
  'created_at': value['createdAt'].toISOString(),
87
91
  'updated_at': value['updatedAt'].toISOString(),
@@ -87,6 +87,12 @@ export interface DocumentContentPathPart {
87
87
  * @memberof DocumentContentPathPart
88
88
  */
89
89
  materializedPath: string;
90
+ /**
91
+ * Whether this item is system-managed
92
+ * @type {boolean}
93
+ * @memberof DocumentContentPathPart
94
+ */
95
+ systemManaged: boolean;
90
96
  /**
91
97
  * Creation timestamp
92
98
  * @type {Date}
@@ -32,6 +32,8 @@ export function instanceOfDocumentContentPathPart(value) {
32
32
  return false;
33
33
  if (!('materializedPath' in value) || value['materializedPath'] === undefined)
34
34
  return false;
35
+ if (!('systemManaged' in value) || value['systemManaged'] === undefined)
36
+ return false;
35
37
  if (!('createdAt' in value) || value['createdAt'] === undefined)
36
38
  return false;
37
39
  if (!('updatedAt' in value) || value['updatedAt'] === undefined)
@@ -57,6 +59,7 @@ export function DocumentContentPathPartFromJSONTyped(json, ignoreDiscriminator)
57
59
  'chunkMetadata': json['chunk_metadata'] == null ? undefined : ChunkMetadataOutputFromJSON(json['chunk_metadata']),
58
60
  'pageNumber': json['page_number'] == null ? undefined : json['page_number'],
59
61
  'materializedPath': json['materialized_path'],
62
+ 'systemManaged': json['system_managed'],
60
63
  'createdAt': (new Date(json['created_at'])),
61
64
  'updatedAt': (new Date(json['updated_at'])),
62
65
  };
@@ -80,6 +83,7 @@ export function DocumentContentPathPartToJSONTyped(value, ignoreDiscriminator =
80
83
  'chunk_metadata': ChunkMetadataOutputToJSON(value['chunkMetadata']),
81
84
  'page_number': value['pageNumber'],
82
85
  'materialized_path': value['materializedPath'],
86
+ 'system_managed': value['systemManaged'],
83
87
  'created_at': value['createdAt'].toISOString(),
84
88
  'updated_at': value['updatedAt'].toISOString(),
85
89
  };
@@ -72,6 +72,12 @@ export interface DocumentResponse {
72
72
  * @memberof DocumentResponse
73
73
  */
74
74
  materializedPath: string;
75
+ /**
76
+ * Whether this document is system-managed
77
+ * @type {boolean}
78
+ * @memberof DocumentResponse
79
+ */
80
+ systemManaged: boolean;
75
81
  /**
76
82
  * Tenant ID
77
83
  * @type {string}
@@ -36,6 +36,8 @@ export function instanceOfDocumentResponse(value) {
36
36
  return false;
37
37
  if (!('materializedPath' in value) || value['materializedPath'] === undefined)
38
38
  return false;
39
+ if (!('systemManaged' in value) || value['systemManaged'] === undefined)
40
+ return false;
39
41
  if (!('tenantId' in value) || value['tenantId'] === undefined)
40
42
  return false;
41
43
  if (!('createdAt' in value) || value['createdAt'] === undefined)
@@ -61,6 +63,7 @@ export function DocumentResponseFromJSONTyped(json, ignoreDiscriminator) {
61
63
  'activeVersionId': json['active_version_id'],
62
64
  'activeVersion': DocumentVersionResponseFromJSON(json['active_version']),
63
65
  'materializedPath': json['materialized_path'],
66
+ 'systemManaged': json['system_managed'],
64
67
  'tenantId': json['tenant_id'],
65
68
  'createdAt': (new Date(json['created_at'])),
66
69
  'updatedAt': (new Date(json['updated_at'])),
@@ -83,6 +86,7 @@ export function DocumentResponseToJSONTyped(value, ignoreDiscriminator = false)
83
86
  'active_version_id': value['activeVersionId'],
84
87
  'active_version': DocumentVersionResponseToJSON(value['activeVersion']),
85
88
  'materialized_path': value['materializedPath'],
89
+ 'system_managed': value['systemManaged'],
86
90
  'tenant_id': value['tenantId'],
87
91
  'created_at': value['createdAt'].toISOString(),
88
92
  'updated_at': value['updatedAt'].toISOString(),
@@ -55,6 +55,12 @@ export interface DocumentVersionResponse {
55
55
  * @memberof DocumentVersionResponse
56
56
  */
57
57
  materializedPath: string;
58
+ /**
59
+ * Whether this version is system-managed
60
+ * @type {boolean}
61
+ * @memberof DocumentVersionResponse
62
+ */
63
+ systemManaged: boolean;
58
64
  /**
59
65
  * Tenant ID
60
66
  * @type {string}
@@ -28,6 +28,8 @@ export function instanceOfDocumentVersionResponse(value) {
28
28
  return false;
29
29
  if (!('materializedPath' in value) || value['materializedPath'] === undefined)
30
30
  return false;
31
+ if (!('systemManaged' in value) || value['systemManaged'] === undefined)
32
+ return false;
31
33
  if (!('tenantId' in value) || value['tenantId'] === undefined)
32
34
  return false;
33
35
  if (!('createdAt' in value) || value['createdAt'] === undefined)
@@ -50,6 +52,7 @@ export function DocumentVersionResponseFromJSONTyped(json, ignoreDiscriminator)
50
52
  'name': json['name'],
51
53
  'parentPathId': json['parent_path_id'],
52
54
  'materializedPath': json['materialized_path'],
55
+ 'systemManaged': json['system_managed'],
53
56
  'tenantId': json['tenant_id'],
54
57
  'createdAt': (new Date(json['created_at'])),
55
58
  'updatedAt': (new Date(json['updated_at'])),
@@ -71,6 +74,7 @@ export function DocumentVersionResponseToJSONTyped(value, ignoreDiscriminator =
71
74
  'name': value['name'],
72
75
  'parent_path_id': value['parentPathId'],
73
76
  'materialized_path': value['materializedPath'],
77
+ 'system_managed': value['systemManaged'],
74
78
  'tenant_id': value['tenantId'],
75
79
  'created_at': value['createdAt'].toISOString(),
76
80
  'updated_at': value['updatedAt'].toISOString(),
@@ -64,6 +64,12 @@ export interface FolderDocumentResponse {
64
64
  * @memberof FolderDocumentResponse
65
65
  */
66
66
  materializedPath: string;
67
+ /**
68
+ * Whether this path part is system-managed
69
+ * @type {boolean}
70
+ * @memberof FolderDocumentResponse
71
+ */
72
+ systemManaged: boolean;
67
73
  /**
68
74
  * Creation timestamp
69
75
  * @type {Date}
@@ -31,6 +31,8 @@ export function instanceOfFolderDocumentResponse(value) {
31
31
  return false;
32
32
  if (!('materializedPath' in value) || value['materializedPath'] === undefined)
33
33
  return false;
34
+ if (!('systemManaged' in value) || value['systemManaged'] === undefined)
35
+ return false;
34
36
  if (!('createdAt' in value) || value['createdAt'] === undefined)
35
37
  return false;
36
38
  if (!('updatedAt' in value) || value['updatedAt'] === undefined)
@@ -53,6 +55,7 @@ export function FolderDocumentResponseFromJSONTyped(json, ignoreDiscriminator) {
53
55
  'parentPathId': json['parent_path_id'],
54
56
  'metadataObjId': json['metadata_obj_id'],
55
57
  'materializedPath': json['materialized_path'],
58
+ 'systemManaged': json['system_managed'],
56
59
  'createdAt': (new Date(json['created_at'])),
57
60
  'updatedAt': (new Date(json['updated_at'])),
58
61
  'folderId': json['folder_id'] == null ? undefined : json['folder_id'],
@@ -78,6 +81,7 @@ export function FolderDocumentResponseToJSONTyped(value, ignoreDiscriminator = f
78
81
  'parent_path_id': value['parentPathId'],
79
82
  'metadata_obj_id': value['metadataObjId'],
80
83
  'materialized_path': value['materializedPath'],
84
+ 'system_managed': value['systemManaged'],
81
85
  'created_at': value['createdAt'].toISOString(),
82
86
  'updated_at': value['updatedAt'].toISOString(),
83
87
  'folder_id': value['folderId'],
@@ -45,6 +45,12 @@ export interface FolderResponse {
45
45
  * @memberof FolderResponse
46
46
  */
47
47
  materializedPath: string;
48
+ /**
49
+ * Whether this folder is system-managed
50
+ * @type {boolean}
51
+ * @memberof FolderResponse
52
+ */
53
+ systemManaged: boolean;
48
54
  /**
49
55
  * Tenant ID
50
56
  * @type {string}
@@ -25,6 +25,8 @@ export function instanceOfFolderResponse(value) {
25
25
  return false;
26
26
  if (!('materializedPath' in value) || value['materializedPath'] === undefined)
27
27
  return false;
28
+ if (!('systemManaged' in value) || value['systemManaged'] === undefined)
29
+ return false;
28
30
  if (!('tenantId' in value) || value['tenantId'] === undefined)
29
31
  return false;
30
32
  if (!('createdAt' in value) || value['createdAt'] === undefined)
@@ -46,6 +48,7 @@ export function FolderResponseFromJSONTyped(json, ignoreDiscriminator) {
46
48
  'name': json['name'],
47
49
  'parentPathPartId': json['parent_path_part_id'],
48
50
  'materializedPath': json['materialized_path'],
51
+ 'systemManaged': json['system_managed'],
49
52
  'tenantId': json['tenant_id'],
50
53
  'createdAt': (new Date(json['created_at'])),
51
54
  'updatedAt': (new Date(json['updated_at'])),
@@ -64,6 +67,7 @@ export function FolderResponseToJSONTyped(value, ignoreDiscriminator = false) {
64
67
  'name': value['name'],
65
68
  'parent_path_part_id': value['parentPathPartId'],
66
69
  'materialized_path': value['materializedPath'],
70
+ 'system_managed': value['systemManaged'],
67
71
  'tenant_id': value['tenantId'],
68
72
  'created_at': value['createdAt'].toISOString(),
69
73
  'updated_at': value['updatedAt'].toISOString(),
@@ -52,6 +52,12 @@ export interface PathPartResponse {
52
52
  * @memberof PathPartResponse
53
53
  */
54
54
  materializedPath: string;
55
+ /**
56
+ * Whether this path part is system-managed
57
+ * @type {boolean}
58
+ * @memberof PathPartResponse
59
+ */
60
+ systemManaged: boolean;
55
61
  /**
56
62
  * Creation timestamp
57
63
  * @type {Date}
@@ -28,6 +28,8 @@ export function instanceOfPathPartResponse(value) {
28
28
  return false;
29
29
  if (!('materializedPath' in value) || value['materializedPath'] === undefined)
30
30
  return false;
31
+ if (!('systemManaged' in value) || value['systemManaged'] === undefined)
32
+ return false;
31
33
  if (!('createdAt' in value) || value['createdAt'] === undefined)
32
34
  return false;
33
35
  if (!('updatedAt' in value) || value['updatedAt'] === undefined)
@@ -48,6 +50,7 @@ export function PathPartResponseFromJSONTyped(json, ignoreDiscriminator) {
48
50
  'parentPathId': json['parent_path_id'],
49
51
  'metadataObjId': json['metadata_obj_id'],
50
52
  'materializedPath': json['materialized_path'],
53
+ 'systemManaged': json['system_managed'],
51
54
  'createdAt': (new Date(json['created_at'])),
52
55
  'updatedAt': (new Date(json['updated_at'])),
53
56
  };
@@ -66,6 +69,7 @@ export function PathPartResponseToJSONTyped(value, ignoreDiscriminator = false)
66
69
  'parent_path_id': value['parentPathId'],
67
70
  'metadata_obj_id': value['metadataObjId'],
68
71
  'materialized_path': value['materializedPath'],
72
+ 'system_managed': value['systemManaged'],
69
73
  'created_at': value['createdAt'].toISOString(),
70
74
  'updated_at': value['updatedAt'].toISOString(),
71
75
  };
@@ -77,6 +77,12 @@ export interface ScoredChunkResponse {
77
77
  * @memberof ScoredChunkResponse
78
78
  */
79
79
  materializedPath: string;
80
+ /**
81
+ * Whether this chunk is system-managed
82
+ * @type {boolean}
83
+ * @memberof ScoredChunkResponse
84
+ */
85
+ systemManaged: boolean;
80
86
  /**
81
87
  * Tenant ID
82
88
  * @type {string}
@@ -33,6 +33,8 @@ export function instanceOfScoredChunkResponse(value) {
33
33
  return false;
34
34
  if (!('materializedPath' in value) || value['materializedPath'] === undefined)
35
35
  return false;
36
+ if (!('systemManaged' in value) || value['systemManaged'] === undefined)
37
+ return false;
36
38
  if (!('tenantId' in value) || value['tenantId'] === undefined)
37
39
  return false;
38
40
  if (!('createdAt' in value) || value['createdAt'] === undefined)
@@ -61,6 +63,7 @@ export function ScoredChunkResponseFromJSONTyped(json, ignoreDiscriminator) {
61
63
  'prevSiblingPathId': json['prev_sibling_path_id'] == null ? undefined : json['prev_sibling_path_id'],
62
64
  'nextSiblingPathId': json['next_sibling_path_id'] == null ? undefined : json['next_sibling_path_id'],
63
65
  'materializedPath': json['materialized_path'],
66
+ 'systemManaged': json['system_managed'],
64
67
  'tenantId': json['tenant_id'],
65
68
  'createdAt': (new Date(json['created_at'])),
66
69
  'updatedAt': (new Date(json['updated_at'])),
@@ -85,6 +88,7 @@ export function ScoredChunkResponseToJSONTyped(value, ignoreDiscriminator = fals
85
88
  'prev_sibling_path_id': value['prevSiblingPathId'],
86
89
  'next_sibling_path_id': value['nextSiblingPathId'],
87
90
  'materialized_path': value['materializedPath'],
91
+ 'system_managed': value['systemManaged'],
88
92
  'tenant_id': value['tenantId'],
89
93
  'created_at': value['createdAt'].toISOString(),
90
94
  'updated_at': value['updatedAt'].toISOString(),
@@ -63,6 +63,12 @@ export interface SectionResponse {
63
63
  * @memberof SectionResponse
64
64
  */
65
65
  materializedPath: string;
66
+ /**
67
+ * Whether this section is system-managed
68
+ * @type {boolean}
69
+ * @memberof SectionResponse
70
+ */
71
+ systemManaged: boolean;
66
72
  /**
67
73
  * Tenant ID
68
74
  * @type {string}
@@ -25,6 +25,8 @@ export function instanceOfSectionResponse(value) {
25
25
  return false;
26
26
  if (!('materializedPath' in value) || value['materializedPath'] === undefined)
27
27
  return false;
28
+ if (!('systemManaged' in value) || value['systemManaged'] === undefined)
29
+ return false;
28
30
  if (!('tenantId' in value) || value['tenantId'] === undefined)
29
31
  return false;
30
32
  if (!('createdAt' in value) || value['createdAt'] === undefined)
@@ -49,6 +51,7 @@ export function SectionResponseFromJSONTyped(json, ignoreDiscriminator) {
49
51
  'prevSiblingPathId': json['prev_sibling_path_id'] == null ? undefined : json['prev_sibling_path_id'],
50
52
  'nextSiblingPathId': json['next_sibling_path_id'] == null ? undefined : json['next_sibling_path_id'],
51
53
  'materializedPath': json['materialized_path'],
54
+ 'systemManaged': json['system_managed'],
52
55
  'tenantId': json['tenant_id'],
53
56
  'createdAt': (new Date(json['created_at'])),
54
57
  'updatedAt': (new Date(json['updated_at'])),
@@ -70,6 +73,7 @@ export function SectionResponseToJSONTyped(value, ignoreDiscriminator = false) {
70
73
  'prev_sibling_path_id': value['prevSiblingPathId'],
71
74
  'next_sibling_path_id': value['nextSiblingPathId'],
72
75
  'materialized_path': value['materializedPath'],
76
+ 'system_managed': value['systemManaged'],
73
77
  'tenant_id': value['tenantId'],
74
78
  'created_at': value['createdAt'].toISOString(),
75
79
  'updated_at': value['updatedAt'].toISOString(),
@@ -77,6 +77,12 @@ export interface ChunkResponse {
77
77
  * @memberof ChunkResponse
78
78
  */
79
79
  materializedPath: string;
80
+ /**
81
+ * Whether this chunk is system-managed
82
+ * @type {boolean}
83
+ * @memberof ChunkResponse
84
+ */
85
+ systemManaged: boolean;
80
86
  /**
81
87
  * Tenant ID
82
88
  * @type {string}
@@ -41,6 +41,8 @@ function instanceOfChunkResponse(value) {
41
41
  return false;
42
42
  if (!('materializedPath' in value) || value['materializedPath'] === undefined)
43
43
  return false;
44
+ if (!('systemManaged' in value) || value['systemManaged'] === undefined)
45
+ return false;
44
46
  if (!('tenantId' in value) || value['tenantId'] === undefined)
45
47
  return false;
46
48
  if (!('createdAt' in value) || value['createdAt'] === undefined)
@@ -67,6 +69,7 @@ function ChunkResponseFromJSONTyped(json, ignoreDiscriminator) {
67
69
  'prevSiblingPathId': json['prev_sibling_path_id'] == null ? undefined : json['prev_sibling_path_id'],
68
70
  'nextSiblingPathId': json['next_sibling_path_id'] == null ? undefined : json['next_sibling_path_id'],
69
71
  'materializedPath': json['materialized_path'],
72
+ 'systemManaged': json['system_managed'],
70
73
  'tenantId': json['tenant_id'],
71
74
  'createdAt': (new Date(json['created_at'])),
72
75
  'updatedAt': (new Date(json['updated_at'])),
@@ -90,6 +93,7 @@ function ChunkResponseToJSONTyped(value, ignoreDiscriminator = false) {
90
93
  'prev_sibling_path_id': value['prevSiblingPathId'],
91
94
  'next_sibling_path_id': value['nextSiblingPathId'],
92
95
  'materialized_path': value['materializedPath'],
96
+ 'system_managed': value['systemManaged'],
93
97
  'tenant_id': value['tenantId'],
94
98
  'created_at': value['createdAt'].toISOString(),
95
99
  'updated_at': value['updatedAt'].toISOString(),
@@ -87,6 +87,12 @@ export interface DocumentContentPathPart {
87
87
  * @memberof DocumentContentPathPart
88
88
  */
89
89
  materializedPath: string;
90
+ /**
91
+ * Whether this item is system-managed
92
+ * @type {boolean}
93
+ * @memberof DocumentContentPathPart
94
+ */
95
+ systemManaged: boolean;
90
96
  /**
91
97
  * Creation timestamp
92
98
  * @type {Date}
@@ -40,6 +40,8 @@ function instanceOfDocumentContentPathPart(value) {
40
40
  return false;
41
41
  if (!('materializedPath' in value) || value['materializedPath'] === undefined)
42
42
  return false;
43
+ if (!('systemManaged' in value) || value['systemManaged'] === undefined)
44
+ return false;
43
45
  if (!('createdAt' in value) || value['createdAt'] === undefined)
44
46
  return false;
45
47
  if (!('updatedAt' in value) || value['updatedAt'] === undefined)
@@ -65,6 +67,7 @@ function DocumentContentPathPartFromJSONTyped(json, ignoreDiscriminator) {
65
67
  'chunkMetadata': json['chunk_metadata'] == null ? undefined : (0, ChunkMetadataOutput_1.ChunkMetadataOutputFromJSON)(json['chunk_metadata']),
66
68
  'pageNumber': json['page_number'] == null ? undefined : json['page_number'],
67
69
  'materializedPath': json['materialized_path'],
70
+ 'systemManaged': json['system_managed'],
68
71
  'createdAt': (new Date(json['created_at'])),
69
72
  'updatedAt': (new Date(json['updated_at'])),
70
73
  };
@@ -88,6 +91,7 @@ function DocumentContentPathPartToJSONTyped(value, ignoreDiscriminator = false)
88
91
  'chunk_metadata': (0, ChunkMetadataOutput_1.ChunkMetadataOutputToJSON)(value['chunkMetadata']),
89
92
  'page_number': value['pageNumber'],
90
93
  'materialized_path': value['materializedPath'],
94
+ 'system_managed': value['systemManaged'],
91
95
  'created_at': value['createdAt'].toISOString(),
92
96
  'updated_at': value['updatedAt'].toISOString(),
93
97
  };
@@ -72,6 +72,12 @@ export interface DocumentResponse {
72
72
  * @memberof DocumentResponse
73
73
  */
74
74
  materializedPath: string;
75
+ /**
76
+ * Whether this document is system-managed
77
+ * @type {boolean}
78
+ * @memberof DocumentResponse
79
+ */
80
+ systemManaged: boolean;
75
81
  /**
76
82
  * Tenant ID
77
83
  * @type {string}
@@ -44,6 +44,8 @@ function instanceOfDocumentResponse(value) {
44
44
  return false;
45
45
  if (!('materializedPath' in value) || value['materializedPath'] === undefined)
46
46
  return false;
47
+ if (!('systemManaged' in value) || value['systemManaged'] === undefined)
48
+ return false;
47
49
  if (!('tenantId' in value) || value['tenantId'] === undefined)
48
50
  return false;
49
51
  if (!('createdAt' in value) || value['createdAt'] === undefined)
@@ -69,6 +71,7 @@ function DocumentResponseFromJSONTyped(json, ignoreDiscriminator) {
69
71
  'activeVersionId': json['active_version_id'],
70
72
  'activeVersion': (0, DocumentVersionResponse_1.DocumentVersionResponseFromJSON)(json['active_version']),
71
73
  'materializedPath': json['materialized_path'],
74
+ 'systemManaged': json['system_managed'],
72
75
  'tenantId': json['tenant_id'],
73
76
  'createdAt': (new Date(json['created_at'])),
74
77
  'updatedAt': (new Date(json['updated_at'])),
@@ -91,6 +94,7 @@ function DocumentResponseToJSONTyped(value, ignoreDiscriminator = false) {
91
94
  'active_version_id': value['activeVersionId'],
92
95
  'active_version': (0, DocumentVersionResponse_1.DocumentVersionResponseToJSON)(value['activeVersion']),
93
96
  'materialized_path': value['materializedPath'],
97
+ 'system_managed': value['systemManaged'],
94
98
  'tenant_id': value['tenantId'],
95
99
  'created_at': value['createdAt'].toISOString(),
96
100
  'updated_at': value['updatedAt'].toISOString(),
@@ -55,6 +55,12 @@ export interface DocumentVersionResponse {
55
55
  * @memberof DocumentVersionResponse
56
56
  */
57
57
  materializedPath: string;
58
+ /**
59
+ * Whether this version is system-managed
60
+ * @type {boolean}
61
+ * @memberof DocumentVersionResponse
62
+ */
63
+ systemManaged: boolean;
58
64
  /**
59
65
  * Tenant ID
60
66
  * @type {string}
@@ -36,6 +36,8 @@ function instanceOfDocumentVersionResponse(value) {
36
36
  return false;
37
37
  if (!('materializedPath' in value) || value['materializedPath'] === undefined)
38
38
  return false;
39
+ if (!('systemManaged' in value) || value['systemManaged'] === undefined)
40
+ return false;
39
41
  if (!('tenantId' in value) || value['tenantId'] === undefined)
40
42
  return false;
41
43
  if (!('createdAt' in value) || value['createdAt'] === undefined)
@@ -58,6 +60,7 @@ function DocumentVersionResponseFromJSONTyped(json, ignoreDiscriminator) {
58
60
  'name': json['name'],
59
61
  'parentPathId': json['parent_path_id'],
60
62
  'materializedPath': json['materialized_path'],
63
+ 'systemManaged': json['system_managed'],
61
64
  'tenantId': json['tenant_id'],
62
65
  'createdAt': (new Date(json['created_at'])),
63
66
  'updatedAt': (new Date(json['updated_at'])),
@@ -79,6 +82,7 @@ function DocumentVersionResponseToJSONTyped(value, ignoreDiscriminator = false)
79
82
  'name': value['name'],
80
83
  'parent_path_id': value['parentPathId'],
81
84
  'materialized_path': value['materializedPath'],
85
+ 'system_managed': value['systemManaged'],
82
86
  'tenant_id': value['tenantId'],
83
87
  'created_at': value['createdAt'].toISOString(),
84
88
  'updated_at': value['updatedAt'].toISOString(),
@@ -64,6 +64,12 @@ export interface FolderDocumentResponse {
64
64
  * @memberof FolderDocumentResponse
65
65
  */
66
66
  materializedPath: string;
67
+ /**
68
+ * Whether this path part is system-managed
69
+ * @type {boolean}
70
+ * @memberof FolderDocumentResponse
71
+ */
72
+ systemManaged: boolean;
67
73
  /**
68
74
  * Creation timestamp
69
75
  * @type {Date}
@@ -39,6 +39,8 @@ function instanceOfFolderDocumentResponse(value) {
39
39
  return false;
40
40
  if (!('materializedPath' in value) || value['materializedPath'] === undefined)
41
41
  return false;
42
+ if (!('systemManaged' in value) || value['systemManaged'] === undefined)
43
+ return false;
42
44
  if (!('createdAt' in value) || value['createdAt'] === undefined)
43
45
  return false;
44
46
  if (!('updatedAt' in value) || value['updatedAt'] === undefined)
@@ -61,6 +63,7 @@ function FolderDocumentResponseFromJSONTyped(json, ignoreDiscriminator) {
61
63
  'parentPathId': json['parent_path_id'],
62
64
  'metadataObjId': json['metadata_obj_id'],
63
65
  'materializedPath': json['materialized_path'],
66
+ 'systemManaged': json['system_managed'],
64
67
  'createdAt': (new Date(json['created_at'])),
65
68
  'updatedAt': (new Date(json['updated_at'])),
66
69
  'folderId': json['folder_id'] == null ? undefined : json['folder_id'],
@@ -86,6 +89,7 @@ function FolderDocumentResponseToJSONTyped(value, ignoreDiscriminator = false) {
86
89
  'parent_path_id': value['parentPathId'],
87
90
  'metadata_obj_id': value['metadataObjId'],
88
91
  'materialized_path': value['materializedPath'],
92
+ 'system_managed': value['systemManaged'],
89
93
  'created_at': value['createdAt'].toISOString(),
90
94
  'updated_at': value['updatedAt'].toISOString(),
91
95
  'folder_id': value['folderId'],
@@ -45,6 +45,12 @@ export interface FolderResponse {
45
45
  * @memberof FolderResponse
46
46
  */
47
47
  materializedPath: string;
48
+ /**
49
+ * Whether this folder is system-managed
50
+ * @type {boolean}
51
+ * @memberof FolderResponse
52
+ */
53
+ systemManaged: boolean;
48
54
  /**
49
55
  * Tenant ID
50
56
  * @type {string}
@@ -33,6 +33,8 @@ function instanceOfFolderResponse(value) {
33
33
  return false;
34
34
  if (!('materializedPath' in value) || value['materializedPath'] === undefined)
35
35
  return false;
36
+ if (!('systemManaged' in value) || value['systemManaged'] === undefined)
37
+ return false;
36
38
  if (!('tenantId' in value) || value['tenantId'] === undefined)
37
39
  return false;
38
40
  if (!('createdAt' in value) || value['createdAt'] === undefined)
@@ -54,6 +56,7 @@ function FolderResponseFromJSONTyped(json, ignoreDiscriminator) {
54
56
  'name': json['name'],
55
57
  'parentPathPartId': json['parent_path_part_id'],
56
58
  'materializedPath': json['materialized_path'],
59
+ 'systemManaged': json['system_managed'],
57
60
  'tenantId': json['tenant_id'],
58
61
  'createdAt': (new Date(json['created_at'])),
59
62
  'updatedAt': (new Date(json['updated_at'])),
@@ -72,6 +75,7 @@ function FolderResponseToJSONTyped(value, ignoreDiscriminator = false) {
72
75
  'name': value['name'],
73
76
  'parent_path_part_id': value['parentPathPartId'],
74
77
  'materialized_path': value['materializedPath'],
78
+ 'system_managed': value['systemManaged'],
75
79
  'tenant_id': value['tenantId'],
76
80
  'created_at': value['createdAt'].toISOString(),
77
81
  'updated_at': value['updatedAt'].toISOString(),
@@ -52,6 +52,12 @@ export interface PathPartResponse {
52
52
  * @memberof PathPartResponse
53
53
  */
54
54
  materializedPath: string;
55
+ /**
56
+ * Whether this path part is system-managed
57
+ * @type {boolean}
58
+ * @memberof PathPartResponse
59
+ */
60
+ systemManaged: boolean;
55
61
  /**
56
62
  * Creation timestamp
57
63
  * @type {Date}
@@ -36,6 +36,8 @@ function instanceOfPathPartResponse(value) {
36
36
  return false;
37
37
  if (!('materializedPath' in value) || value['materializedPath'] === undefined)
38
38
  return false;
39
+ if (!('systemManaged' in value) || value['systemManaged'] === undefined)
40
+ return false;
39
41
  if (!('createdAt' in value) || value['createdAt'] === undefined)
40
42
  return false;
41
43
  if (!('updatedAt' in value) || value['updatedAt'] === undefined)
@@ -56,6 +58,7 @@ function PathPartResponseFromJSONTyped(json, ignoreDiscriminator) {
56
58
  'parentPathId': json['parent_path_id'],
57
59
  'metadataObjId': json['metadata_obj_id'],
58
60
  'materializedPath': json['materialized_path'],
61
+ 'systemManaged': json['system_managed'],
59
62
  'createdAt': (new Date(json['created_at'])),
60
63
  'updatedAt': (new Date(json['updated_at'])),
61
64
  };
@@ -74,6 +77,7 @@ function PathPartResponseToJSONTyped(value, ignoreDiscriminator = false) {
74
77
  'parent_path_id': value['parentPathId'],
75
78
  'metadata_obj_id': value['metadataObjId'],
76
79
  'materialized_path': value['materializedPath'],
80
+ 'system_managed': value['systemManaged'],
77
81
  'created_at': value['createdAt'].toISOString(),
78
82
  'updated_at': value['updatedAt'].toISOString(),
79
83
  };
@@ -77,6 +77,12 @@ export interface ScoredChunkResponse {
77
77
  * @memberof ScoredChunkResponse
78
78
  */
79
79
  materializedPath: string;
80
+ /**
81
+ * Whether this chunk is system-managed
82
+ * @type {boolean}
83
+ * @memberof ScoredChunkResponse
84
+ */
85
+ systemManaged: boolean;
80
86
  /**
81
87
  * Tenant ID
82
88
  * @type {string}
@@ -41,6 +41,8 @@ function instanceOfScoredChunkResponse(value) {
41
41
  return false;
42
42
  if (!('materializedPath' in value) || value['materializedPath'] === undefined)
43
43
  return false;
44
+ if (!('systemManaged' in value) || value['systemManaged'] === undefined)
45
+ return false;
44
46
  if (!('tenantId' in value) || value['tenantId'] === undefined)
45
47
  return false;
46
48
  if (!('createdAt' in value) || value['createdAt'] === undefined)
@@ -69,6 +71,7 @@ function ScoredChunkResponseFromJSONTyped(json, ignoreDiscriminator) {
69
71
  'prevSiblingPathId': json['prev_sibling_path_id'] == null ? undefined : json['prev_sibling_path_id'],
70
72
  'nextSiblingPathId': json['next_sibling_path_id'] == null ? undefined : json['next_sibling_path_id'],
71
73
  'materializedPath': json['materialized_path'],
74
+ 'systemManaged': json['system_managed'],
72
75
  'tenantId': json['tenant_id'],
73
76
  'createdAt': (new Date(json['created_at'])),
74
77
  'updatedAt': (new Date(json['updated_at'])),
@@ -93,6 +96,7 @@ function ScoredChunkResponseToJSONTyped(value, ignoreDiscriminator = false) {
93
96
  'prev_sibling_path_id': value['prevSiblingPathId'],
94
97
  'next_sibling_path_id': value['nextSiblingPathId'],
95
98
  'materialized_path': value['materializedPath'],
99
+ 'system_managed': value['systemManaged'],
96
100
  'tenant_id': value['tenantId'],
97
101
  'created_at': value['createdAt'].toISOString(),
98
102
  'updated_at': value['updatedAt'].toISOString(),
@@ -63,6 +63,12 @@ export interface SectionResponse {
63
63
  * @memberof SectionResponse
64
64
  */
65
65
  materializedPath: string;
66
+ /**
67
+ * Whether this section is system-managed
68
+ * @type {boolean}
69
+ * @memberof SectionResponse
70
+ */
71
+ systemManaged: boolean;
66
72
  /**
67
73
  * Tenant ID
68
74
  * @type {string}
@@ -33,6 +33,8 @@ function instanceOfSectionResponse(value) {
33
33
  return false;
34
34
  if (!('materializedPath' in value) || value['materializedPath'] === undefined)
35
35
  return false;
36
+ if (!('systemManaged' in value) || value['systemManaged'] === undefined)
37
+ return false;
36
38
  if (!('tenantId' in value) || value['tenantId'] === undefined)
37
39
  return false;
38
40
  if (!('createdAt' in value) || value['createdAt'] === undefined)
@@ -57,6 +59,7 @@ function SectionResponseFromJSONTyped(json, ignoreDiscriminator) {
57
59
  'prevSiblingPathId': json['prev_sibling_path_id'] == null ? undefined : json['prev_sibling_path_id'],
58
60
  'nextSiblingPathId': json['next_sibling_path_id'] == null ? undefined : json['next_sibling_path_id'],
59
61
  'materializedPath': json['materialized_path'],
62
+ 'systemManaged': json['system_managed'],
60
63
  'tenantId': json['tenant_id'],
61
64
  'createdAt': (new Date(json['created_at'])),
62
65
  'updatedAt': (new Date(json['updated_at'])),
@@ -78,6 +81,7 @@ function SectionResponseToJSONTyped(value, ignoreDiscriminator = false) {
78
81
  'prev_sibling_path_id': value['prevSiblingPathId'],
79
82
  'next_sibling_path_id': value['nextSiblingPathId'],
80
83
  'materialized_path': value['materializedPath'],
84
+ 'system_managed': value['systemManaged'],
81
85
  'tenant_id': value['tenantId'],
82
86
  'created_at': value['createdAt'].toISOString(),
83
87
  'updated_at': value['updatedAt'].toISOString(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@knowledge-stack/ksapi",
3
- "version": "1.19.0",
3
+ "version": "1.19.1",
4
4
  "description": "OpenAPI client for @knowledge-stack/ksapi",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -94,6 +94,12 @@ export interface ChunkResponse {
94
94
  * @memberof ChunkResponse
95
95
  */
96
96
  materializedPath: string;
97
+ /**
98
+ * Whether this chunk is system-managed
99
+ * @type {boolean}
100
+ * @memberof ChunkResponse
101
+ */
102
+ systemManaged: boolean;
97
103
  /**
98
104
  * Tenant ID
99
105
  * @type {string}
@@ -128,6 +134,7 @@ export function instanceOfChunkResponse(value: object): value is ChunkResponse {
128
134
  if (!('chunkMetadata' in value) || value['chunkMetadata'] === undefined) return false;
129
135
  if (!('parentPathId' in value) || value['parentPathId'] === undefined) return false;
130
136
  if (!('materializedPath' in value) || value['materializedPath'] === undefined) return false;
137
+ if (!('systemManaged' in value) || value['systemManaged'] === undefined) return false;
131
138
  if (!('tenantId' in value) || value['tenantId'] === undefined) return false;
132
139
  if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
133
140
  if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
@@ -154,6 +161,7 @@ export function ChunkResponseFromJSONTyped(json: any, ignoreDiscriminator: boole
154
161
  'prevSiblingPathId': json['prev_sibling_path_id'] == null ? undefined : json['prev_sibling_path_id'],
155
162
  'nextSiblingPathId': json['next_sibling_path_id'] == null ? undefined : json['next_sibling_path_id'],
156
163
  'materializedPath': json['materialized_path'],
164
+ 'systemManaged': json['system_managed'],
157
165
  'tenantId': json['tenant_id'],
158
166
  'createdAt': (new Date(json['created_at'])),
159
167
  'updatedAt': (new Date(json['updated_at'])),
@@ -181,6 +189,7 @@ export function ChunkResponseToJSONTyped(value?: ChunkResponse | null, ignoreDis
181
189
  'prev_sibling_path_id': value['prevSiblingPathId'],
182
190
  'next_sibling_path_id': value['nextSiblingPathId'],
183
191
  'materialized_path': value['materializedPath'],
192
+ 'system_managed': value['systemManaged'],
184
193
  'tenant_id': value['tenantId'],
185
194
  'created_at': value['createdAt'].toISOString(),
186
195
  'updated_at': value['updatedAt'].toISOString(),
@@ -110,6 +110,12 @@ export interface DocumentContentPathPart {
110
110
  * @memberof DocumentContentPathPart
111
111
  */
112
112
  materializedPath: string;
113
+ /**
114
+ * Whether this item is system-managed
115
+ * @type {boolean}
116
+ * @memberof DocumentContentPathPart
117
+ */
118
+ systemManaged: boolean;
113
119
  /**
114
120
  * Creation timestamp
115
121
  * @type {Date}
@@ -137,6 +143,7 @@ export function instanceOfDocumentContentPathPart(value: object): value is Docum
137
143
  if (!('metadataObjId' in value) || value['metadataObjId'] === undefined) return false;
138
144
  if (!('depth' in value) || value['depth'] === undefined) return false;
139
145
  if (!('materializedPath' in value) || value['materializedPath'] === undefined) return false;
146
+ if (!('systemManaged' in value) || value['systemManaged'] === undefined) return false;
140
147
  if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
141
148
  if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
142
149
  return true;
@@ -163,6 +170,7 @@ export function DocumentContentPathPartFromJSONTyped(json: any, ignoreDiscrimina
163
170
  'chunkMetadata': json['chunk_metadata'] == null ? undefined : ChunkMetadataOutputFromJSON(json['chunk_metadata']),
164
171
  'pageNumber': json['page_number'] == null ? undefined : json['page_number'],
165
172
  'materializedPath': json['materialized_path'],
173
+ 'systemManaged': json['system_managed'],
166
174
  'createdAt': (new Date(json['created_at'])),
167
175
  'updatedAt': (new Date(json['updated_at'])),
168
176
  };
@@ -190,6 +198,7 @@ export function DocumentContentPathPartToJSONTyped(value?: DocumentContentPathPa
190
198
  'chunk_metadata': ChunkMetadataOutputToJSON(value['chunkMetadata']),
191
199
  'page_number': value['pageNumber'],
192
200
  'materialized_path': value['materializedPath'],
201
+ 'system_managed': value['systemManaged'],
193
202
  'created_at': value['createdAt'].toISOString(),
194
203
  'updated_at': value['updatedAt'].toISOString(),
195
204
  };
@@ -95,6 +95,12 @@ export interface DocumentResponse {
95
95
  * @memberof DocumentResponse
96
96
  */
97
97
  materializedPath: string;
98
+ /**
99
+ * Whether this document is system-managed
100
+ * @type {boolean}
101
+ * @memberof DocumentResponse
102
+ */
103
+ systemManaged: boolean;
98
104
  /**
99
105
  * Tenant ID
100
106
  * @type {string}
@@ -130,6 +136,7 @@ export function instanceOfDocumentResponse(value: object): value is DocumentResp
130
136
  if (!('activeVersionId' in value) || value['activeVersionId'] === undefined) return false;
131
137
  if (!('activeVersion' in value) || value['activeVersion'] === undefined) return false;
132
138
  if (!('materializedPath' in value) || value['materializedPath'] === undefined) return false;
139
+ if (!('systemManaged' in value) || value['systemManaged'] === undefined) return false;
133
140
  if (!('tenantId' in value) || value['tenantId'] === undefined) return false;
134
141
  if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
135
142
  if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
@@ -155,6 +162,7 @@ export function DocumentResponseFromJSONTyped(json: any, ignoreDiscriminator: bo
155
162
  'activeVersionId': json['active_version_id'],
156
163
  'activeVersion': DocumentVersionResponseFromJSON(json['active_version']),
157
164
  'materializedPath': json['materialized_path'],
165
+ 'systemManaged': json['system_managed'],
158
166
  'tenantId': json['tenant_id'],
159
167
  'createdAt': (new Date(json['created_at'])),
160
168
  'updatedAt': (new Date(json['updated_at'])),
@@ -181,6 +189,7 @@ export function DocumentResponseToJSONTyped(value?: DocumentResponse | null, ign
181
189
  'active_version_id': value['activeVersionId'],
182
190
  'active_version': DocumentVersionResponseToJSON(value['activeVersion']),
183
191
  'materialized_path': value['materializedPath'],
192
+ 'system_managed': value['systemManaged'],
184
193
  'tenant_id': value['tenantId'],
185
194
  'created_at': value['createdAt'].toISOString(),
186
195
  'updated_at': value['updatedAt'].toISOString(),
@@ -66,6 +66,12 @@ export interface DocumentVersionResponse {
66
66
  * @memberof DocumentVersionResponse
67
67
  */
68
68
  materializedPath: string;
69
+ /**
70
+ * Whether this version is system-managed
71
+ * @type {boolean}
72
+ * @memberof DocumentVersionResponse
73
+ */
74
+ systemManaged: boolean;
69
75
  /**
70
76
  * Tenant ID
71
77
  * @type {string}
@@ -108,6 +114,7 @@ export function instanceOfDocumentVersionResponse(value: object): value is Docum
108
114
  if (!('name' in value) || value['name'] === undefined) return false;
109
115
  if (!('parentPathId' in value) || value['parentPathId'] === undefined) return false;
110
116
  if (!('materializedPath' in value) || value['materializedPath'] === undefined) return false;
117
+ if (!('systemManaged' in value) || value['systemManaged'] === undefined) return false;
111
118
  if (!('tenantId' in value) || value['tenantId'] === undefined) return false;
112
119
  if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
113
120
  if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
@@ -130,6 +137,7 @@ export function DocumentVersionResponseFromJSONTyped(json: any, ignoreDiscrimina
130
137
  'name': json['name'],
131
138
  'parentPathId': json['parent_path_id'],
132
139
  'materializedPath': json['materialized_path'],
140
+ 'systemManaged': json['system_managed'],
133
141
  'tenantId': json['tenant_id'],
134
142
  'createdAt': (new Date(json['created_at'])),
135
143
  'updatedAt': (new Date(json['updated_at'])),
@@ -155,6 +163,7 @@ export function DocumentVersionResponseToJSONTyped(value?: DocumentVersionRespon
155
163
  'name': value['name'],
156
164
  'parent_path_id': value['parentPathId'],
157
165
  'materialized_path': value['materializedPath'],
166
+ 'system_managed': value['systemManaged'],
158
167
  'tenant_id': value['tenantId'],
159
168
  'created_at': value['createdAt'].toISOString(),
160
169
  'updated_at': value['updatedAt'].toISOString(),
@@ -93,6 +93,12 @@ export interface FolderDocumentResponse {
93
93
  * @memberof FolderDocumentResponse
94
94
  */
95
95
  materializedPath: string;
96
+ /**
97
+ * Whether this path part is system-managed
98
+ * @type {boolean}
99
+ * @memberof FolderDocumentResponse
100
+ */
101
+ systemManaged: boolean;
96
102
  /**
97
103
  * Creation timestamp
98
104
  * @type {Date}
@@ -161,6 +167,7 @@ export function instanceOfFolderDocumentResponse(value: object): value is Folder
161
167
  if (!('parentPathId' in value) || value['parentPathId'] === undefined) return false;
162
168
  if (!('metadataObjId' in value) || value['metadataObjId'] === undefined) return false;
163
169
  if (!('materializedPath' in value) || value['materializedPath'] === undefined) return false;
170
+ if (!('systemManaged' in value) || value['systemManaged'] === undefined) return false;
164
171
  if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
165
172
  if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
166
173
  if (!('tenantId' in value) || value['tenantId'] === undefined) return false;
@@ -183,6 +190,7 @@ export function FolderDocumentResponseFromJSONTyped(json: any, ignoreDiscriminat
183
190
  'parentPathId': json['parent_path_id'],
184
191
  'metadataObjId': json['metadata_obj_id'],
185
192
  'materializedPath': json['materialized_path'],
193
+ 'systemManaged': json['system_managed'],
186
194
  'createdAt': (new Date(json['created_at'])),
187
195
  'updatedAt': (new Date(json['updated_at'])),
188
196
  'folderId': json['folder_id'] == null ? undefined : json['folder_id'],
@@ -212,6 +220,7 @@ export function FolderDocumentResponseToJSONTyped(value?: FolderDocumentResponse
212
220
  'parent_path_id': value['parentPathId'],
213
221
  'metadata_obj_id': value['metadataObjId'],
214
222
  'materialized_path': value['materializedPath'],
223
+ 'system_managed': value['systemManaged'],
215
224
  'created_at': value['createdAt'].toISOString(),
216
225
  'updated_at': value['updatedAt'].toISOString(),
217
226
  'folder_id': value['folderId'],
@@ -49,6 +49,12 @@ export interface FolderResponse {
49
49
  * @memberof FolderResponse
50
50
  */
51
51
  materializedPath: string;
52
+ /**
53
+ * Whether this folder is system-managed
54
+ * @type {boolean}
55
+ * @memberof FolderResponse
56
+ */
57
+ systemManaged: boolean;
52
58
  /**
53
59
  * Tenant ID
54
60
  * @type {string}
@@ -78,6 +84,7 @@ export function instanceOfFolderResponse(value: object): value is FolderResponse
78
84
  if (!('name' in value) || value['name'] === undefined) return false;
79
85
  if (!('parentPathPartId' in value) || value['parentPathPartId'] === undefined) return false;
80
86
  if (!('materializedPath' in value) || value['materializedPath'] === undefined) return false;
87
+ if (!('systemManaged' in value) || value['systemManaged'] === undefined) return false;
81
88
  if (!('tenantId' in value) || value['tenantId'] === undefined) return false;
82
89
  if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
83
90
  if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
@@ -99,6 +106,7 @@ export function FolderResponseFromJSONTyped(json: any, ignoreDiscriminator: bool
99
106
  'name': json['name'],
100
107
  'parentPathPartId': json['parent_path_part_id'],
101
108
  'materializedPath': json['materialized_path'],
109
+ 'systemManaged': json['system_managed'],
102
110
  'tenantId': json['tenant_id'],
103
111
  'createdAt': (new Date(json['created_at'])),
104
112
  'updatedAt': (new Date(json['updated_at'])),
@@ -121,6 +129,7 @@ export function FolderResponseToJSONTyped(value?: FolderResponse | null, ignoreD
121
129
  'name': value['name'],
122
130
  'parent_path_part_id': value['parentPathPartId'],
123
131
  'materialized_path': value['materializedPath'],
132
+ 'system_managed': value['systemManaged'],
124
133
  'tenant_id': value['tenantId'],
125
134
  'created_at': value['createdAt'].toISOString(),
126
135
  'updated_at': value['updatedAt'].toISOString(),
@@ -63,6 +63,12 @@ export interface PathPartResponse {
63
63
  * @memberof PathPartResponse
64
64
  */
65
65
  materializedPath: string;
66
+ /**
67
+ * Whether this path part is system-managed
68
+ * @type {boolean}
69
+ * @memberof PathPartResponse
70
+ */
71
+ systemManaged: boolean;
66
72
  /**
67
73
  * Creation timestamp
68
74
  * @type {Date}
@@ -89,6 +95,7 @@ export function instanceOfPathPartResponse(value: object): value is PathPartResp
89
95
  if (!('parentPathId' in value) || value['parentPathId'] === undefined) return false;
90
96
  if (!('metadataObjId' in value) || value['metadataObjId'] === undefined) return false;
91
97
  if (!('materializedPath' in value) || value['materializedPath'] === undefined) return false;
98
+ if (!('systemManaged' in value) || value['systemManaged'] === undefined) return false;
92
99
  if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
93
100
  if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
94
101
  return true;
@@ -110,6 +117,7 @@ export function PathPartResponseFromJSONTyped(json: any, ignoreDiscriminator: bo
110
117
  'parentPathId': json['parent_path_id'],
111
118
  'metadataObjId': json['metadata_obj_id'],
112
119
  'materializedPath': json['materialized_path'],
120
+ 'systemManaged': json['system_managed'],
113
121
  'createdAt': (new Date(json['created_at'])),
114
122
  'updatedAt': (new Date(json['updated_at'])),
115
123
  };
@@ -132,6 +140,7 @@ export function PathPartResponseToJSONTyped(value?: PathPartResponse | null, ign
132
140
  'parent_path_id': value['parentPathId'],
133
141
  'metadata_obj_id': value['metadataObjId'],
134
142
  'materialized_path': value['materializedPath'],
143
+ 'system_managed': value['systemManaged'],
135
144
  'created_at': value['createdAt'].toISOString(),
136
145
  'updated_at': value['updatedAt'].toISOString(),
137
146
  };
@@ -94,6 +94,12 @@ export interface ScoredChunkResponse {
94
94
  * @memberof ScoredChunkResponse
95
95
  */
96
96
  materializedPath: string;
97
+ /**
98
+ * Whether this chunk is system-managed
99
+ * @type {boolean}
100
+ * @memberof ScoredChunkResponse
101
+ */
102
+ systemManaged: boolean;
97
103
  /**
98
104
  * Tenant ID
99
105
  * @type {string}
@@ -134,6 +140,7 @@ export function instanceOfScoredChunkResponse(value: object): value is ScoredChu
134
140
  if (!('chunkMetadata' in value) || value['chunkMetadata'] === undefined) return false;
135
141
  if (!('parentPathId' in value) || value['parentPathId'] === undefined) return false;
136
142
  if (!('materializedPath' in value) || value['materializedPath'] === undefined) return false;
143
+ if (!('systemManaged' in value) || value['systemManaged'] === undefined) return false;
137
144
  if (!('tenantId' in value) || value['tenantId'] === undefined) return false;
138
145
  if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
139
146
  if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
@@ -161,6 +168,7 @@ export function ScoredChunkResponseFromJSONTyped(json: any, ignoreDiscriminator:
161
168
  'prevSiblingPathId': json['prev_sibling_path_id'] == null ? undefined : json['prev_sibling_path_id'],
162
169
  'nextSiblingPathId': json['next_sibling_path_id'] == null ? undefined : json['next_sibling_path_id'],
163
170
  'materializedPath': json['materialized_path'],
171
+ 'systemManaged': json['system_managed'],
164
172
  'tenantId': json['tenant_id'],
165
173
  'createdAt': (new Date(json['created_at'])),
166
174
  'updatedAt': (new Date(json['updated_at'])),
@@ -189,6 +197,7 @@ export function ScoredChunkResponseToJSONTyped(value?: ScoredChunkResponse | nul
189
197
  'prev_sibling_path_id': value['prevSiblingPathId'],
190
198
  'next_sibling_path_id': value['nextSiblingPathId'],
191
199
  'materialized_path': value['materializedPath'],
200
+ 'system_managed': value['systemManaged'],
192
201
  'tenant_id': value['tenantId'],
193
202
  'created_at': value['createdAt'].toISOString(),
194
203
  'updated_at': value['updatedAt'].toISOString(),
@@ -67,6 +67,12 @@ export interface SectionResponse {
67
67
  * @memberof SectionResponse
68
68
  */
69
69
  materializedPath: string;
70
+ /**
71
+ * Whether this section is system-managed
72
+ * @type {boolean}
73
+ * @memberof SectionResponse
74
+ */
75
+ systemManaged: boolean;
70
76
  /**
71
77
  * Tenant ID
72
78
  * @type {string}
@@ -96,6 +102,7 @@ export function instanceOfSectionResponse(value: object): value is SectionRespon
96
102
  if (!('name' in value) || value['name'] === undefined) return false;
97
103
  if (!('parentPathId' in value) || value['parentPathId'] === undefined) return false;
98
104
  if (!('materializedPath' in value) || value['materializedPath'] === undefined) return false;
105
+ if (!('systemManaged' in value) || value['systemManaged'] === undefined) return false;
99
106
  if (!('tenantId' in value) || value['tenantId'] === undefined) return false;
100
107
  if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
101
108
  if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
@@ -120,6 +127,7 @@ export function SectionResponseFromJSONTyped(json: any, ignoreDiscriminator: boo
120
127
  'prevSiblingPathId': json['prev_sibling_path_id'] == null ? undefined : json['prev_sibling_path_id'],
121
128
  'nextSiblingPathId': json['next_sibling_path_id'] == null ? undefined : json['next_sibling_path_id'],
122
129
  'materializedPath': json['materialized_path'],
130
+ 'systemManaged': json['system_managed'],
123
131
  'tenantId': json['tenant_id'],
124
132
  'createdAt': (new Date(json['created_at'])),
125
133
  'updatedAt': (new Date(json['updated_at'])),
@@ -145,6 +153,7 @@ export function SectionResponseToJSONTyped(value?: SectionResponse | null, ignor
145
153
  'prev_sibling_path_id': value['prevSiblingPathId'],
146
154
  'next_sibling_path_id': value['nextSiblingPathId'],
147
155
  'materialized_path': value['materializedPath'],
156
+ 'system_managed': value['systemManaged'],
148
157
  'tenant_id': value['tenantId'],
149
158
  'created_at': value['createdAt'].toISOString(),
150
159
  'updated_at': value['updatedAt'].toISOString(),