@knowledge-stack/ksapi 1.20.0 → 1.21.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 (240) hide show
  1. package/.openapi-generator/FILES +3 -2
  2. package/README.md +2 -2
  3. package/dist/apis/AuthApi.d.ts +9 -9
  4. package/dist/apis/ChunkLineagesApi.d.ts +3 -3
  5. package/dist/apis/ChunksApi.d.ts +6 -6
  6. package/dist/apis/DocumentVersionsApi.d.ts +8 -8
  7. package/dist/apis/DocumentsApi.d.ts +12 -12
  8. package/dist/apis/DocumentsApi.js +2 -2
  9. package/dist/apis/FoldersApi.d.ts +17 -15
  10. package/dist/apis/FoldersApi.js +7 -4
  11. package/dist/apis/InvitesApi.d.ts +5 -5
  12. package/dist/apis/PathPartsApi.d.ts +70 -8
  13. package/dist/apis/PathPartsApi.js +76 -2
  14. package/dist/apis/SectionsApi.d.ts +4 -4
  15. package/dist/apis/TagsApi.d.ts +6 -68
  16. package/dist/apis/TagsApi.js +0 -72
  17. package/dist/apis/TenantsApi.d.ts +6 -6
  18. package/dist/apis/ThreadMessagesApi.d.ts +4 -4
  19. package/dist/apis/ThreadsApi.d.ts +6 -6
  20. package/dist/apis/UserPermissionsApi.d.ts +4 -4
  21. package/dist/apis/UsersApi.d.ts +2 -2
  22. package/dist/apis/WorkflowsApi.d.ts +3 -3
  23. package/dist/esm/apis/AuthApi.d.ts +9 -9
  24. package/dist/esm/apis/ChunkLineagesApi.d.ts +3 -3
  25. package/dist/esm/apis/ChunksApi.d.ts +6 -6
  26. package/dist/esm/apis/DocumentVersionsApi.d.ts +8 -8
  27. package/dist/esm/apis/DocumentsApi.d.ts +12 -12
  28. package/dist/esm/apis/DocumentsApi.js +2 -2
  29. package/dist/esm/apis/FoldersApi.d.ts +17 -15
  30. package/dist/esm/apis/FoldersApi.js +7 -4
  31. package/dist/esm/apis/InvitesApi.d.ts +5 -5
  32. package/dist/esm/apis/PathPartsApi.d.ts +70 -8
  33. package/dist/esm/apis/PathPartsApi.js +77 -3
  34. package/dist/esm/apis/SectionsApi.d.ts +4 -4
  35. package/dist/esm/apis/TagsApi.d.ts +6 -68
  36. package/dist/esm/apis/TagsApi.js +1 -73
  37. package/dist/esm/apis/TenantsApi.d.ts +6 -6
  38. package/dist/esm/apis/ThreadMessagesApi.d.ts +4 -4
  39. package/dist/esm/apis/ThreadsApi.d.ts +6 -6
  40. package/dist/esm/apis/UserPermissionsApi.d.ts +4 -4
  41. package/dist/esm/apis/UsersApi.d.ts +2 -2
  42. package/dist/esm/apis/WorkflowsApi.d.ts +3 -3
  43. package/dist/esm/models/BulkTagRequest.d.ts +47 -0
  44. package/dist/esm/models/BulkTagRequest.js +49 -0
  45. package/dist/esm/models/ChunkMetadataInput.d.ts +1 -1
  46. package/dist/esm/models/ChunkMetadataOutput.d.ts +1 -1
  47. package/dist/esm/models/ChunkResponse.d.ts +4 -4
  48. package/dist/esm/models/ChunkSearchRequest.d.ts +5 -9
  49. package/dist/esm/models/ChunkSearchRequest.js +0 -1
  50. package/dist/esm/models/CreateChunkRequest.d.ts +3 -3
  51. package/dist/esm/models/CreateDocumentRequest.d.ts +2 -2
  52. package/dist/esm/models/CreateSectionRequest.d.ts +2 -2
  53. package/dist/esm/models/CreateTagRequest.d.ts +1 -1
  54. package/dist/esm/models/CreateTenantRequest.d.ts +1 -1
  55. package/dist/esm/models/CreateThreadMessageRequest.d.ts +5 -7
  56. package/dist/esm/models/CreateThreadMessageRequest.js +0 -1
  57. package/dist/esm/models/CreateThreadRequest.d.ts +1 -1
  58. package/dist/esm/models/DocumentContentPathPart.d.ts +5 -5
  59. package/dist/esm/models/DocumentResponse.d.ts +4 -4
  60. package/dist/esm/models/DocumentVersionMetadata.d.ts +12 -7
  61. package/dist/esm/models/DocumentVersionMetadata.js +3 -18
  62. package/dist/esm/models/DocumentVersionMetadataUpdate.d.ts +6 -6
  63. package/dist/esm/models/DocumentVersionResponse.d.ts +3 -3
  64. package/dist/esm/models/FolderDocumentResponse.d.ts +16 -9
  65. package/dist/esm/models/FolderDocumentResponse.js +3 -0
  66. package/dist/esm/models/FolderResponse.d.ts +1 -1
  67. package/dist/esm/models/InviteResponse.d.ts +2 -2
  68. package/dist/esm/models/LineageNodeResponse.d.ts +2 -2
  69. package/dist/esm/models/LocationInner.d.ts +41 -0
  70. package/dist/esm/models/LocationInner.js +32 -0
  71. package/dist/esm/models/OAuth2Config.d.ts +5 -0
  72. package/dist/esm/models/OAuth2Config.js +3 -12
  73. package/dist/esm/models/PathPartResponse.d.ts +10 -3
  74. package/dist/esm/models/PathPartResponse.js +3 -0
  75. package/dist/esm/models/PathPartTagsResponse.d.ts +48 -0
  76. package/dist/esm/models/PathPartTagsResponse.js +45 -0
  77. package/dist/esm/models/PipelineState.d.ts +5 -5
  78. package/dist/esm/models/PolygonReference.d.ts +1 -1
  79. package/dist/esm/models/ScoredChunkResponse.d.ts +4 -4
  80. package/dist/esm/models/SectionResponse.d.ts +3 -3
  81. package/dist/esm/models/SignInRequest.d.ts +1 -1
  82. package/dist/esm/models/TagResponse.d.ts +1 -1
  83. package/dist/esm/models/TenantResponse.d.ts +1 -1
  84. package/dist/esm/models/TenantUserInTenantResponse.d.ts +2 -2
  85. package/dist/esm/models/ThreadMessageResponse.d.ts +5 -7
  86. package/dist/esm/models/ThreadMessageResponse.js +0 -1
  87. package/dist/esm/models/ThreadResponse.d.ts +1 -1
  88. package/dist/esm/models/UpdateChunkContentRequest.d.ts +1 -1
  89. package/dist/esm/models/UpdateChunkMetadataRequest.d.ts +1 -1
  90. package/dist/esm/models/UpdateDocumentRequest.d.ts +3 -3
  91. package/dist/esm/models/UpdateFolderRequest.d.ts +2 -2
  92. package/dist/esm/models/UpdatePermissionRequest.d.ts +1 -1
  93. package/dist/esm/models/UpdateSectionRequest.d.ts +3 -3
  94. package/dist/esm/models/UpdateTagRequest.d.ts +3 -3
  95. package/dist/esm/models/UpdateTenantRequest.d.ts +2 -2
  96. package/dist/esm/models/UpdateThreadRequest.d.ts +2 -2
  97. package/dist/esm/models/UserResponse.d.ts +3 -3
  98. package/dist/esm/models/ValidationError.d.ts +3 -3
  99. package/dist/esm/models/ValidationError.js +3 -3
  100. package/dist/esm/models/WorkflowDetailResponse.d.ts +4 -4
  101. package/dist/esm/models/WorkflowSummaryResponse.d.ts +2 -2
  102. package/dist/esm/models/index.d.ts +3 -2
  103. package/dist/esm/models/index.js +3 -2
  104. package/dist/models/BulkTagRequest.d.ts +47 -0
  105. package/dist/models/BulkTagRequest.js +57 -0
  106. package/dist/models/ChunkMetadataInput.d.ts +1 -1
  107. package/dist/models/ChunkMetadataOutput.d.ts +1 -1
  108. package/dist/models/ChunkResponse.d.ts +4 -4
  109. package/dist/models/ChunkSearchRequest.d.ts +5 -9
  110. package/dist/models/ChunkSearchRequest.js +1 -2
  111. package/dist/models/CreateChunkRequest.d.ts +3 -3
  112. package/dist/models/CreateDocumentRequest.d.ts +2 -2
  113. package/dist/models/CreateSectionRequest.d.ts +2 -2
  114. package/dist/models/CreateTagRequest.d.ts +1 -1
  115. package/dist/models/CreateTenantRequest.d.ts +1 -1
  116. package/dist/models/CreateThreadMessageRequest.d.ts +5 -7
  117. package/dist/models/CreateThreadMessageRequest.js +1 -2
  118. package/dist/models/CreateThreadRequest.d.ts +1 -1
  119. package/dist/models/DocumentContentPathPart.d.ts +5 -5
  120. package/dist/models/DocumentResponse.d.ts +4 -4
  121. package/dist/models/DocumentVersionMetadata.d.ts +12 -7
  122. package/dist/models/DocumentVersionMetadata.js +4 -19
  123. package/dist/models/DocumentVersionMetadataUpdate.d.ts +6 -6
  124. package/dist/models/DocumentVersionResponse.d.ts +3 -3
  125. package/dist/models/FolderDocumentResponse.d.ts +16 -9
  126. package/dist/models/FolderDocumentResponse.js +3 -0
  127. package/dist/models/FolderResponse.d.ts +1 -1
  128. package/dist/models/InviteResponse.d.ts +2 -2
  129. package/dist/models/LineageNodeResponse.d.ts +2 -2
  130. package/dist/models/LocationInner.d.ts +41 -0
  131. package/dist/models/LocationInner.js +40 -0
  132. package/dist/models/OAuth2Config.d.ts +5 -0
  133. package/dist/models/OAuth2Config.js +4 -13
  134. package/dist/models/PathPartResponse.d.ts +10 -3
  135. package/dist/models/PathPartResponse.js +3 -0
  136. package/dist/models/PathPartTagsResponse.d.ts +48 -0
  137. package/dist/models/PathPartTagsResponse.js +53 -0
  138. package/dist/models/PipelineState.d.ts +5 -5
  139. package/dist/models/PolygonReference.d.ts +1 -1
  140. package/dist/models/ScoredChunkResponse.d.ts +4 -4
  141. package/dist/models/SectionResponse.d.ts +3 -3
  142. package/dist/models/SignInRequest.d.ts +1 -1
  143. package/dist/models/TagResponse.d.ts +1 -1
  144. package/dist/models/TenantResponse.d.ts +1 -1
  145. package/dist/models/TenantUserInTenantResponse.d.ts +2 -2
  146. package/dist/models/ThreadMessageResponse.d.ts +5 -7
  147. package/dist/models/ThreadMessageResponse.js +1 -2
  148. package/dist/models/ThreadResponse.d.ts +1 -1
  149. package/dist/models/UpdateChunkContentRequest.d.ts +1 -1
  150. package/dist/models/UpdateChunkMetadataRequest.d.ts +1 -1
  151. package/dist/models/UpdateDocumentRequest.d.ts +3 -3
  152. package/dist/models/UpdateFolderRequest.d.ts +2 -2
  153. package/dist/models/UpdatePermissionRequest.d.ts +1 -1
  154. package/dist/models/UpdateSectionRequest.d.ts +3 -3
  155. package/dist/models/UpdateTagRequest.d.ts +3 -3
  156. package/dist/models/UpdateTenantRequest.d.ts +2 -2
  157. package/dist/models/UpdateThreadRequest.d.ts +2 -2
  158. package/dist/models/UserResponse.d.ts +3 -3
  159. package/dist/models/ValidationError.d.ts +3 -3
  160. package/dist/models/ValidationError.js +3 -3
  161. package/dist/models/WorkflowDetailResponse.d.ts +4 -4
  162. package/dist/models/WorkflowSummaryResponse.d.ts +2 -2
  163. package/dist/models/index.d.ts +3 -2
  164. package/dist/models/index.js +3 -2
  165. package/package.json +1 -1
  166. package/src/apis/AuthApi.ts +9 -9
  167. package/src/apis/ChunkLineagesApi.ts +3 -3
  168. package/src/apis/ChunksApi.ts +6 -6
  169. package/src/apis/DocumentVersionsApi.ts +8 -8
  170. package/src/apis/DocumentsApi.ts +12 -12
  171. package/src/apis/FoldersApi.ts +21 -15
  172. package/src/apis/InvitesApi.ts +5 -5
  173. package/src/apis/PathPartsApi.ts +159 -7
  174. package/src/apis/SectionsApi.ts +4 -4
  175. package/src/apis/TagsApi.ts +5 -151
  176. package/src/apis/TenantsApi.ts +6 -6
  177. package/src/apis/ThreadMessagesApi.ts +4 -4
  178. package/src/apis/ThreadsApi.ts +6 -6
  179. package/src/apis/UserPermissionsApi.ts +4 -4
  180. package/src/apis/UsersApi.ts +2 -2
  181. package/src/apis/WorkflowsApi.ts +3 -3
  182. package/src/models/BulkTagRequest.ts +87 -0
  183. package/src/models/ChunkMetadataInput.ts +1 -1
  184. package/src/models/ChunkMetadataOutput.ts +1 -1
  185. package/src/models/ChunkResponse.ts +4 -4
  186. package/src/models/ChunkSearchRequest.ts +5 -8
  187. package/src/models/CreateChunkRequest.ts +3 -3
  188. package/src/models/CreateDocumentRequest.ts +2 -2
  189. package/src/models/CreateSectionRequest.ts +2 -2
  190. package/src/models/CreateTagRequest.ts +1 -1
  191. package/src/models/CreateTenantRequest.ts +1 -1
  192. package/src/models/CreateThreadMessageRequest.ts +3 -6
  193. package/src/models/CreateThreadRequest.ts +1 -1
  194. package/src/models/DocumentContentPathPart.ts +5 -5
  195. package/src/models/DocumentResponse.ts +4 -4
  196. package/src/models/DocumentVersionMetadata.ts +13 -7
  197. package/src/models/DocumentVersionMetadataUpdate.ts +6 -6
  198. package/src/models/DocumentVersionResponse.ts +3 -3
  199. package/src/models/FolderDocumentResponse.ts +24 -9
  200. package/src/models/FolderResponse.ts +1 -1
  201. package/src/models/InviteResponse.ts +2 -2
  202. package/src/models/LineageNodeResponse.ts +2 -2
  203. package/src/models/LocationInner.ts +63 -0
  204. package/src/models/OAuth2Config.ts +6 -0
  205. package/src/models/PathPartResponse.ts +18 -3
  206. package/src/models/PathPartTagsResponse.ts +91 -0
  207. package/src/models/PipelineState.ts +5 -5
  208. package/src/models/PolygonReference.ts +1 -1
  209. package/src/models/ScoredChunkResponse.ts +4 -4
  210. package/src/models/SectionResponse.ts +3 -3
  211. package/src/models/SignInRequest.ts +1 -1
  212. package/src/models/TagResponse.ts +1 -1
  213. package/src/models/TenantResponse.ts +1 -1
  214. package/src/models/TenantUserInTenantResponse.ts +2 -2
  215. package/src/models/ThreadMessageResponse.ts +3 -6
  216. package/src/models/ThreadResponse.ts +1 -1
  217. package/src/models/UpdateChunkContentRequest.ts +1 -1
  218. package/src/models/UpdateChunkMetadataRequest.ts +1 -1
  219. package/src/models/UpdateDocumentRequest.ts +3 -3
  220. package/src/models/UpdateFolderRequest.ts +2 -2
  221. package/src/models/UpdatePermissionRequest.ts +1 -1
  222. package/src/models/UpdateSectionRequest.ts +3 -3
  223. package/src/models/UpdateTagRequest.ts +3 -3
  224. package/src/models/UpdateTenantRequest.ts +2 -2
  225. package/src/models/UpdateThreadRequest.ts +2 -2
  226. package/src/models/UserResponse.ts +3 -3
  227. package/src/models/ValidationError.ts +10 -10
  228. package/src/models/WorkflowDetailResponse.ts +4 -4
  229. package/src/models/WorkflowSummaryResponse.ts +2 -2
  230. package/src/models/index.ts +3 -2
  231. package/dist/esm/models/TagPathPartRequest.d.ts +0 -47
  232. package/dist/esm/models/TagPathPartRequest.js +0 -44
  233. package/dist/esm/models/ValidationErrorLocInner.d.ts +0 -41
  234. package/dist/esm/models/ValidationErrorLocInner.js +0 -32
  235. package/dist/models/TagPathPartRequest.d.ts +0 -47
  236. package/dist/models/TagPathPartRequest.js +0 -52
  237. package/dist/models/ValidationErrorLocInner.d.ts +0 -41
  238. package/dist/models/ValidationErrorLocInner.js +0 -40
  239. package/src/models/TagPathPartRequest.ts +0 -83
  240. package/src/models/ValidationErrorLocInner.ts +0 -63
@@ -0,0 +1,63 @@
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
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface LocationInner
20
+ */
21
+ export interface LocationInner {
22
+ }
23
+
24
+ /**
25
+ * Check if a given object implements the LocationInner interface.
26
+ */
27
+ export function instanceOfLocationInner(value: object): value is LocationInner {
28
+ return true;
29
+ }
30
+
31
+ export function LocationInnerFromJSON(json: any): LocationInner {
32
+ return LocationInnerFromJSONTyped(json, false);
33
+ }
34
+
35
+ export function LocationInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): LocationInner {
36
+ return json;
37
+ }
38
+
39
+ export function LocationInnerToJSON(json: any): LocationInner {
40
+ return LocationInnerToJSONTyped(json, false);
41
+ }
42
+
43
+ export function LocationInnerToJSONTyped(value?: LocationInner | null, ignoreDiscriminator: boolean = false): any {
44
+ return value;
45
+ }
46
+
47
+ export const LocationInnerPropertyValidationAttributesMap: {
48
+ [property: string]: {
49
+ maxLength?: number,
50
+ minLength?: number,
51
+ pattern?: string,
52
+ maximum?: number,
53
+ exclusiveMaximum?: boolean,
54
+ minimum?: number,
55
+ exclusiveMinimum?: boolean,
56
+ multipleOf?: number,
57
+ maxItems?: number,
58
+ minItems?: number,
59
+ uniqueItems?: boolean
60
+ }
61
+ } = {
62
+ }
63
+
@@ -19,6 +19,7 @@ import { mapValues } from '../runtime';
19
19
  * @interface OAuth2Config
20
20
  */
21
21
  export interface OAuth2Config {
22
+ [key: string]: any | any;
22
23
  /**
23
24
  * OAuth2 client ID
24
25
  * @type {string}
@@ -66,6 +67,7 @@ export function OAuth2ConfigFromJSONTyped(json: any, ignoreDiscriminator: boolea
66
67
  }
67
68
  return {
68
69
 
70
+ ...json,
69
71
  'clientId': json['client_id'],
70
72
  'clientSecret': json['client_secret'],
71
73
  'serverMetadataUrl': json['server_metadata_url'],
@@ -84,6 +86,7 @@ export function OAuth2ConfigToJSONTyped(value?: OAuth2Config | null, ignoreDiscr
84
86
 
85
87
  return {
86
88
 
89
+ ...value,
87
90
  'client_id': value['clientId'],
88
91
  'client_secret': value['clientSecret'],
89
92
  'server_metadata_url': value['serverMetadataUrl'],
@@ -108,3 +111,6 @@ export const OAuth2ConfigPropertyValidationAttributesMap: {
108
111
  } = {
109
112
  }
110
113
 
114
+ export const OAuth2ConfigAdditionalPropertiesValidationAttributes: { maxProperties?: number, minProperties?: number } = {
115
+ }
116
+
@@ -20,6 +20,13 @@ import {
20
20
  PartTypeToJSON,
21
21
  PartTypeToJSONTyped,
22
22
  } from './PartType';
23
+ import type { TagResponse } from './TagResponse';
24
+ import {
25
+ TagResponseFromJSON,
26
+ TagResponseFromJSONTyped,
27
+ TagResponseToJSON,
28
+ TagResponseToJSONTyped,
29
+ } from './TagResponse';
23
30
 
24
31
  /**
25
32
  * Generic path part response model.
@@ -40,7 +47,7 @@ export interface PathPartResponse {
40
47
  */
41
48
  name: string;
42
49
  /**
43
- * Type (FOLDER, DOCUMENT, etc.)
50
+ *
44
51
  * @type {PartType}
45
52
  * @memberof PathPartResponse
46
53
  */
@@ -50,13 +57,13 @@ export interface PathPartResponse {
50
57
  * @type {string}
51
58
  * @memberof PathPartResponse
52
59
  */
53
- parentPathId: string;
60
+ parentPathId: string | null;
54
61
  /**
55
62
  * ID of the underlying object
56
63
  * @type {string}
57
64
  * @memberof PathPartResponse
58
65
  */
59
- metadataObjId: string;
66
+ metadataObjId: string | null;
60
67
  /**
61
68
  * Full materialized path from root
62
69
  * @type {string}
@@ -69,6 +76,12 @@ export interface PathPartResponse {
69
76
  * @memberof PathPartResponse
70
77
  */
71
78
  systemManaged: boolean;
79
+ /**
80
+ * Tags attached to this path part
81
+ * @type {Array<TagResponse>}
82
+ * @memberof PathPartResponse
83
+ */
84
+ tags?: Array<TagResponse> | null;
72
85
  /**
73
86
  * Creation timestamp
74
87
  * @type {Date}
@@ -118,6 +131,7 @@ export function PathPartResponseFromJSONTyped(json: any, ignoreDiscriminator: bo
118
131
  'metadataObjId': json['metadata_obj_id'],
119
132
  'materializedPath': json['materialized_path'],
120
133
  'systemManaged': json['system_managed'],
134
+ 'tags': json['tags'] == null ? undefined : ((json['tags'] as Array<any>).map(TagResponseFromJSON)),
121
135
  'createdAt': (new Date(json['created_at'])),
122
136
  'updatedAt': (new Date(json['updated_at'])),
123
137
  };
@@ -141,6 +155,7 @@ export function PathPartResponseToJSONTyped(value?: PathPartResponse | null, ign
141
155
  'metadata_obj_id': value['metadataObjId'],
142
156
  'materialized_path': value['materializedPath'],
143
157
  'system_managed': value['systemManaged'],
158
+ 'tags': value['tags'] == null ? undefined : ((value['tags'] as Array<any>).map(TagResponseToJSON)),
144
159
  'created_at': value['createdAt'].toISOString(),
145
160
  'updated_at': value['updatedAt'].toISOString(),
146
161
  };
@@ -0,0 +1,91 @@
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
+ import { mapValues } from '../runtime';
16
+ import type { TagResponse } from './TagResponse';
17
+ import {
18
+ TagResponseFromJSON,
19
+ TagResponseFromJSONTyped,
20
+ TagResponseToJSON,
21
+ TagResponseToJSONTyped,
22
+ } from './TagResponse';
23
+
24
+ /**
25
+ * Response containing the current tags for a path part.
26
+ * @export
27
+ * @interface PathPartTagsResponse
28
+ */
29
+ export interface PathPartTagsResponse {
30
+ /**
31
+ * Tags attached to the path part
32
+ * @type {Array<TagResponse>}
33
+ * @memberof PathPartTagsResponse
34
+ */
35
+ tags: Array<TagResponse>;
36
+ }
37
+
38
+ /**
39
+ * Check if a given object implements the PathPartTagsResponse interface.
40
+ */
41
+ export function instanceOfPathPartTagsResponse(value: object): value is PathPartTagsResponse {
42
+ if (!('tags' in value) || value['tags'] === undefined) return false;
43
+ return true;
44
+ }
45
+
46
+ export function PathPartTagsResponseFromJSON(json: any): PathPartTagsResponse {
47
+ return PathPartTagsResponseFromJSONTyped(json, false);
48
+ }
49
+
50
+ export function PathPartTagsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PathPartTagsResponse {
51
+ if (json == null) {
52
+ return json;
53
+ }
54
+ return {
55
+
56
+ 'tags': ((json['tags'] as Array<any>).map(TagResponseFromJSON)),
57
+ };
58
+ }
59
+
60
+ export function PathPartTagsResponseToJSON(json: any): PathPartTagsResponse {
61
+ return PathPartTagsResponseToJSONTyped(json, false);
62
+ }
63
+
64
+ export function PathPartTagsResponseToJSONTyped(value?: PathPartTagsResponse | null, ignoreDiscriminator: boolean = false): any {
65
+ if (value == null) {
66
+ return value;
67
+ }
68
+
69
+ return {
70
+
71
+ 'tags': ((value['tags'] as Array<any>).map(TagResponseToJSON)),
72
+ };
73
+ }
74
+
75
+ export const PathPartTagsResponsePropertyValidationAttributesMap: {
76
+ [property: string]: {
77
+ maxLength?: number,
78
+ minLength?: number,
79
+ pattern?: string,
80
+ maximum?: number,
81
+ exclusiveMaximum?: boolean,
82
+ minimum?: number,
83
+ exclusiveMinimum?: boolean,
84
+ multipleOf?: number,
85
+ maxItems?: number,
86
+ minItems?: number,
87
+ uniqueItems?: boolean
88
+ }
89
+ } = {
90
+ }
91
+
@@ -28,7 +28,7 @@ import {
28
28
  */
29
29
  export interface PipelineState {
30
30
  /**
31
- * Current status of the ingestion pipeline
31
+ *
32
32
  * @type {PipelineStatus}
33
33
  * @memberof PipelineState
34
34
  */
@@ -44,25 +44,25 @@ export interface PipelineState {
44
44
  * @type {string}
45
45
  * @memberof PipelineState
46
46
  */
47
- lastActivity?: string;
47
+ lastActivity?: string | null;
48
48
  /**
49
49
  * Error message if pipeline failed
50
50
  * @type {string}
51
51
  * @memberof PipelineState
52
52
  */
53
- error?: string;
53
+ error?: string | null;
54
54
  /**
55
55
  * Temporal workflow ID for tracking the ingestion run
56
56
  * @type {string}
57
57
  * @memberof PipelineState
58
58
  */
59
- temporalWorkflowId?: string;
59
+ temporalWorkflowId?: string | null;
60
60
  /**
61
61
  * Number of chunks processed (for progress tracking)
62
62
  * @type {number}
63
63
  * @memberof PipelineState
64
64
  */
65
- chunksProcessed?: number;
65
+ chunksProcessed?: number | null;
66
66
  }
67
67
 
68
68
 
@@ -34,7 +34,7 @@ export interface PolygonReference {
34
34
  */
35
35
  page: number;
36
36
  /**
37
- * The bounding box of the polygon.
37
+ *
38
38
  * @type {Polygon}
39
39
  * @memberof PolygonReference
40
40
  */
@@ -59,13 +59,13 @@ export interface ScoredChunkResponse {
59
59
  */
60
60
  content: string;
61
61
  /**
62
- * Type of chunk content
62
+ *
63
63
  * @type {ChunkType}
64
64
  * @memberof ScoredChunkResponse
65
65
  */
66
66
  chunkType: ChunkType;
67
67
  /**
68
- * Chunk metadata
68
+ *
69
69
  * @type {ChunkMetadataOutput}
70
70
  * @memberof ScoredChunkResponse
71
71
  */
@@ -81,13 +81,13 @@ export interface ScoredChunkResponse {
81
81
  * @type {string}
82
82
  * @memberof ScoredChunkResponse
83
83
  */
84
- prevSiblingPathId?: string;
84
+ prevSiblingPathId?: string | null;
85
85
  /**
86
86
  * Next sibling PathPart ID
87
87
  * @type {string}
88
88
  * @memberof ScoredChunkResponse
89
89
  */
90
- nextSiblingPathId?: string;
90
+ nextSiblingPathId?: string | null;
91
91
  /**
92
92
  * Full materialized path from root
93
93
  * @type {string}
@@ -42,7 +42,7 @@ export interface SectionResponse {
42
42
  * @type {number}
43
43
  * @memberof SectionResponse
44
44
  */
45
- pageNumber?: number;
45
+ pageNumber?: number | null;
46
46
  /**
47
47
  * Parent PathPart ID
48
48
  * @type {string}
@@ -54,13 +54,13 @@ export interface SectionResponse {
54
54
  * @type {string}
55
55
  * @memberof SectionResponse
56
56
  */
57
- prevSiblingPathId?: string;
57
+ prevSiblingPathId?: string | null;
58
58
  /**
59
59
  * Next sibling PathPart ID
60
60
  * @type {string}
61
61
  * @memberof SectionResponse
62
62
  */
63
- nextSiblingPathId?: string;
63
+ nextSiblingPathId?: string | null;
64
64
  /**
65
65
  * Full materialized path from root
66
66
  * @type {string}
@@ -36,7 +36,7 @@ export interface SignInRequest {
36
36
  * @type {string}
37
37
  * @memberof SignInRequest
38
38
  */
39
- tenantId?: string;
39
+ tenantId?: string | null;
40
40
  }
41
41
 
42
42
  /**
@@ -42,7 +42,7 @@ export interface TagResponse {
42
42
  * @type {string}
43
43
  * @memberof TagResponse
44
44
  */
45
- description?: string;
45
+ description?: string | null;
46
46
  /**
47
47
  * Tenant ID
48
48
  * @type {string}
@@ -36,7 +36,7 @@ export interface TenantResponse {
36
36
  * @type {{ [key: string]: string; }}
37
37
  * @memberof TenantResponse
38
38
  */
39
- idpConfig?: { [key: string]: string; };
39
+ idpConfig?: { [key: string]: string; } | null;
40
40
  }
41
41
 
42
42
  /**
@@ -38,9 +38,9 @@ export interface TenantUserInTenantResponse {
38
38
  * @type {string}
39
39
  * @memberof TenantUserInTenantResponse
40
40
  */
41
- email?: string;
41
+ email?: string | null;
42
42
  /**
43
- * User role within the tenant
43
+ *
44
44
  * @type {TenantUserRole}
45
45
  * @memberof TenantUserInTenantResponse
46
46
  */
@@ -46,17 +46,17 @@ export interface ThreadMessageResponse {
46
46
  */
47
47
  sequence: number;
48
48
  /**
49
- * Message role
49
+ *
50
50
  * @type {MessageRole}
51
51
  * @memberof ThreadMessageResponse
52
52
  */
53
53
  role: MessageRole;
54
54
  /**
55
55
  * Structured message content
56
- * @type {object}
56
+ * @type {{ [key: string]: any; }}
57
57
  * @memberof ThreadMessageResponse
58
58
  */
59
- content: object;
59
+ content: { [key: string]: any; };
60
60
  /**
61
61
  * Thread's PathPart ID
62
62
  * @type {string}
@@ -172,6 +172,3 @@ export const ThreadMessageResponsePropertyValidationAttributesMap: {
172
172
  } = {
173
173
  }
174
174
 
175
- export const ThreadMessageResponseAdditionalPropertiesValidationAttributes: { maxProperties?: number, minProperties?: number } = {
176
- }
177
-
@@ -42,7 +42,7 @@ export interface ThreadResponse {
42
42
  * @type {string}
43
43
  * @memberof ThreadResponse
44
44
  */
45
- parentThreadId?: string;
45
+ parentThreadId?: string | null;
46
46
  /**
47
47
  * Full materialized path from root
48
48
  * @type {string}
@@ -34,7 +34,7 @@ export interface UpdateChunkContentRequest {
34
34
  */
35
35
  content: string;
36
36
  /**
37
- * New chunk type (null = keep existing type)
37
+ *
38
38
  * @type {ChunkType}
39
39
  * @memberof UpdateChunkContentRequest
40
40
  */
@@ -28,7 +28,7 @@ import {
28
28
  */
29
29
  export interface UpdateChunkMetadataRequest {
30
30
  /**
31
- * Metadata to merge into existing chunk_metadata
31
+ *
32
32
  * @type {ChunkMetadataInput}
33
33
  * @memberof UpdateChunkMetadataRequest
34
34
  */
@@ -24,19 +24,19 @@ export interface UpdateDocumentRequest {
24
24
  * @type {string}
25
25
  * @memberof UpdateDocumentRequest
26
26
  */
27
- name?: string;
27
+ name?: string | null;
28
28
  /**
29
29
  * New parent PathPart ID for move (must be a FOLDER type)
30
30
  * @type {string}
31
31
  * @memberof UpdateDocumentRequest
32
32
  */
33
- parentPathPartId?: string;
33
+ parentPathPartId?: string | null;
34
34
  /**
35
35
  * New active version ID
36
36
  * @type {string}
37
37
  * @memberof UpdateDocumentRequest
38
38
  */
39
- activeVersionId?: string;
39
+ activeVersionId?: string | null;
40
40
  }
41
41
 
42
42
  /**
@@ -24,13 +24,13 @@ export interface UpdateFolderRequest {
24
24
  * @type {string}
25
25
  * @memberof UpdateFolderRequest
26
26
  */
27
- name?: string;
27
+ name?: string | null;
28
28
  /**
29
29
  * New parent PathPart ID for move (must be a FOLDER type)
30
30
  * @type {string}
31
31
  * @memberof UpdateFolderRequest
32
32
  */
33
- parentPathPartId?: string;
33
+ parentPathPartId?: string | null;
34
34
  }
35
35
 
36
36
  /**
@@ -32,7 +32,7 @@ export interface UpdatePermissionRequest {
32
32
  * @type {string}
33
33
  * @memberof UpdatePermissionRequest
34
34
  */
35
- pathPartId?: string;
35
+ pathPartId?: string | null;
36
36
  /**
37
37
  *
38
38
  * @type {PermissionCapability}
@@ -24,19 +24,19 @@ export interface UpdateSectionRequest {
24
24
  * @type {string}
25
25
  * @memberof UpdateSectionRequest
26
26
  */
27
- name?: string;
27
+ name?: string | null;
28
28
  /**
29
29
  * New page number (must be > 0)
30
30
  * @type {number}
31
31
  * @memberof UpdateSectionRequest
32
32
  */
33
- pageNumber?: number;
33
+ pageNumber?: number | null;
34
34
  /**
35
35
  * Move after this sibling PathPart ID
36
36
  * @type {string}
37
37
  * @memberof UpdateSectionRequest
38
38
  */
39
- prevSiblingPathId?: string;
39
+ prevSiblingPathId?: string | null;
40
40
  /**
41
41
  * Set to true to move to head of sibling list. This is needed since prev_sibling_path_id = None means no update
42
42
  * @type {boolean}
@@ -24,19 +24,19 @@ export interface UpdateTagRequest {
24
24
  * @type {string}
25
25
  * @memberof UpdateTagRequest
26
26
  */
27
- name?: string;
27
+ name?: string | null;
28
28
  /**
29
29
  * New tag color as 6-character hex string
30
30
  * @type {string}
31
31
  * @memberof UpdateTagRequest
32
32
  */
33
- color?: string;
33
+ color?: string | null;
34
34
  /**
35
35
  * New tag description (empty string to clear)
36
36
  * @type {string}
37
37
  * @memberof UpdateTagRequest
38
38
  */
39
- description?: string;
39
+ description?: string | null;
40
40
  }
41
41
 
42
42
  /**
@@ -32,9 +32,9 @@ export interface UpdateTenantRequest {
32
32
  * @type {string}
33
33
  * @memberof UpdateTenantRequest
34
34
  */
35
- name?: string;
35
+ name?: string | null;
36
36
  /**
37
- * Optional external IdP configuration to update
37
+ *
38
38
  * @type {OAuth2Config}
39
39
  * @memberof UpdateTenantRequest
40
40
  */
@@ -24,13 +24,13 @@ export interface UpdateThreadRequest {
24
24
  * @type {string}
25
25
  * @memberof UpdateThreadRequest
26
26
  */
27
- title?: string;
27
+ title?: string | null;
28
28
  /**
29
29
  * Parent thread ID. Set to a UUID to link, or null to clear.
30
30
  * @type {string}
31
31
  * @memberof UpdateThreadRequest
32
32
  */
33
- parentThreadId?: string;
33
+ parentThreadId?: string | null;
34
34
  }
35
35
 
36
36
  /**
@@ -45,9 +45,9 @@ export interface UserResponse {
45
45
  * @type {string}
46
46
  * @memberof UserResponse
47
47
  */
48
- email: string;
48
+ email: string | null;
49
49
  /**
50
- * Identity provider type of the user
50
+ *
51
51
  * @type {IdpType}
52
52
  * @memberof UserResponse
53
53
  */
@@ -59,7 +59,7 @@ export interface UserResponse {
59
59
  */
60
60
  currentTenantId: string;
61
61
  /**
62
- * Current tenant role of the user
62
+ *
63
63
  * @type {TenantUserRole}
64
64
  * @memberof UserResponse
65
65
  */
@@ -13,13 +13,13 @@
13
13
  */
14
14
 
15
15
  import { mapValues } from '../runtime';
16
- import type { ValidationErrorLocInner } from './ValidationErrorLocInner';
16
+ import type { LocationInner } from './LocationInner';
17
17
  import {
18
- ValidationErrorLocInnerFromJSON,
19
- ValidationErrorLocInnerFromJSONTyped,
20
- ValidationErrorLocInnerToJSON,
21
- ValidationErrorLocInnerToJSONTyped,
22
- } from './ValidationErrorLocInner';
18
+ LocationInnerFromJSON,
19
+ LocationInnerFromJSONTyped,
20
+ LocationInnerToJSON,
21
+ LocationInnerToJSONTyped,
22
+ } from './LocationInner';
23
23
 
24
24
  /**
25
25
  *
@@ -29,10 +29,10 @@ import {
29
29
  export interface ValidationError {
30
30
  /**
31
31
  *
32
- * @type {Array<ValidationErrorLocInner>}
32
+ * @type {Array<LocationInner>}
33
33
  * @memberof ValidationError
34
34
  */
35
- loc: Array<ValidationErrorLocInner>;
35
+ loc: Array<LocationInner>;
36
36
  /**
37
37
  *
38
38
  * @type {string}
@@ -79,7 +79,7 @@ export function ValidationErrorFromJSONTyped(json: any, ignoreDiscriminator: boo
79
79
  }
80
80
  return {
81
81
 
82
- 'loc': ((json['loc'] as Array<any>).map(ValidationErrorLocInnerFromJSON)),
82
+ 'loc': ((json['loc'] as Array<any>).map(LocationInnerFromJSON)),
83
83
  'msg': json['msg'],
84
84
  'type': json['type'],
85
85
  'input': json['input'] == null ? undefined : json['input'],
@@ -98,7 +98,7 @@ export function ValidationErrorToJSONTyped(value?: ValidationError | null, ignor
98
98
 
99
99
  return {
100
100
 
101
- 'loc': ((value['loc'] as Array<any>).map(ValidationErrorLocInnerToJSON)),
101
+ 'loc': ((value['loc'] as Array<any>).map(LocationInnerToJSON)),
102
102
  'msg': value['msg'],
103
103
  'type': value['type'],
104
104
  'input': value['input'],