@knowledge-stack/ksapi 1.95.4 → 1.96.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 (514) hide show
  1. package/.openapi-generator/FILES +82 -4
  2. package/README.md +79 -10
  3. package/dist/apis/AgentApi.d.ts +0 -12
  4. package/dist/apis/AgentApi.js +12 -4
  5. package/dist/apis/ApiKeysApi.d.ts +6 -20
  6. package/dist/apis/ApiKeysApi.js +6 -6
  7. package/dist/apis/AuditEventsApi.d.ts +85 -0
  8. package/dist/apis/AuditEventsApi.js +134 -0
  9. package/dist/apis/AuthApi.d.ts +0 -24
  10. package/dist/apis/AuthApi.js +24 -8
  11. package/dist/apis/ChunkLineagesApi.d.ts +0 -18
  12. package/dist/apis/ChunkLineagesApi.js +18 -6
  13. package/dist/apis/ChunksApi.d.ts +0 -54
  14. package/dist/apis/ChunksApi.js +54 -18
  15. package/dist/apis/DataSourcesApi.d.ts +304 -0
  16. package/dist/apis/DataSourcesApi.js +421 -0
  17. package/dist/apis/DocumentCheckoutApi.d.ts +0 -18
  18. package/dist/apis/DocumentCheckoutApi.js +18 -6
  19. package/dist/apis/DocumentVersionsApi.d.ts +83 -49
  20. package/dist/apis/DocumentVersionsApi.js +150 -16
  21. package/dist/apis/DocumentsApi.d.ts +58 -47
  22. package/dist/apis/DocumentsApi.js +107 -16
  23. package/dist/apis/FeedbackApi.d.ts +0 -18
  24. package/dist/apis/FeedbackApi.js +18 -6
  25. package/dist/apis/FoldersApi.d.ts +13 -61
  26. package/dist/apis/FoldersApi.js +52 -20
  27. package/dist/apis/InvitesApi.d.ts +0 -30
  28. package/dist/apis/InvitesApi.js +30 -10
  29. package/dist/apis/MemoryApi.d.ts +207 -0
  30. package/dist/apis/MemoryApi.js +306 -0
  31. package/dist/apis/PathPartApprovalsApi.d.ts +0 -12
  32. package/dist/apis/PathPartApprovalsApi.js +12 -4
  33. package/dist/apis/PathPartsApi.d.ts +45 -55
  34. package/dist/apis/PathPartsApi.js +111 -18
  35. package/dist/apis/SectionsApi.d.ts +0 -36
  36. package/dist/apis/SectionsApi.js +36 -12
  37. package/dist/apis/SubscriptionsApi.d.ts +0 -12
  38. package/dist/apis/SubscriptionsApi.js +12 -4
  39. package/dist/apis/TagsApi.d.ts +0 -30
  40. package/dist/apis/TagsApi.js +30 -10
  41. package/dist/apis/TenantGroupsApi.d.ts +6 -86
  42. package/dist/apis/TenantGroupsApi.js +84 -32
  43. package/dist/apis/TenantsApi.d.ts +0 -72
  44. package/dist/apis/TenantsApi.js +72 -24
  45. package/dist/apis/ThreadMessagesApi.d.ts +0 -18
  46. package/dist/apis/ThreadMessagesApi.js +18 -6
  47. package/dist/apis/ThreadsApi.d.ts +0 -42
  48. package/dist/apis/ThreadsApi.js +42 -14
  49. package/dist/apis/TrashApi.d.ts +143 -0
  50. package/dist/apis/TrashApi.js +210 -0
  51. package/dist/apis/UserPermissionsApi.d.ts +0 -24
  52. package/dist/apis/UserPermissionsApi.js +24 -8
  53. package/dist/apis/UsersApi.d.ts +12 -46
  54. package/dist/apis/UsersApi.js +42 -22
  55. package/dist/apis/WorkflowDefinitionsApi.d.ts +0 -42
  56. package/dist/apis/WorkflowDefinitionsApi.js +42 -14
  57. package/dist/apis/WorkflowMemoryApi.d.ts +0 -30
  58. package/dist/apis/WorkflowMemoryApi.js +30 -10
  59. package/dist/apis/WorkflowRunsApi.d.ts +4 -58
  60. package/dist/apis/WorkflowRunsApi.js +56 -20
  61. package/dist/apis/WorkflowsApi.d.ts +0 -30
  62. package/dist/apis/WorkflowsApi.js +30 -10
  63. package/dist/apis/index.d.ts +4 -0
  64. package/dist/apis/index.js +4 -0
  65. package/dist/esm/apis/AgentApi.d.ts +0 -12
  66. package/dist/esm/apis/AgentApi.js +12 -4
  67. package/dist/esm/apis/ApiKeysApi.d.ts +6 -20
  68. package/dist/esm/apis/ApiKeysApi.js +6 -6
  69. package/dist/esm/apis/AuditEventsApi.d.ts +85 -0
  70. package/dist/esm/apis/AuditEventsApi.js +97 -0
  71. package/dist/esm/apis/AuthApi.d.ts +0 -24
  72. package/dist/esm/apis/AuthApi.js +24 -8
  73. package/dist/esm/apis/ChunkLineagesApi.d.ts +0 -18
  74. package/dist/esm/apis/ChunkLineagesApi.js +18 -6
  75. package/dist/esm/apis/ChunksApi.d.ts +0 -54
  76. package/dist/esm/apis/ChunksApi.js +54 -18
  77. package/dist/esm/apis/DataSourcesApi.d.ts +304 -0
  78. package/dist/esm/apis/DataSourcesApi.js +384 -0
  79. package/dist/esm/apis/DocumentCheckoutApi.d.ts +0 -18
  80. package/dist/esm/apis/DocumentCheckoutApi.js +18 -6
  81. package/dist/esm/apis/DocumentVersionsApi.d.ts +83 -49
  82. package/dist/esm/apis/DocumentVersionsApi.js +151 -17
  83. package/dist/esm/apis/DocumentsApi.d.ts +58 -47
  84. package/dist/esm/apis/DocumentsApi.js +108 -17
  85. package/dist/esm/apis/FeedbackApi.d.ts +0 -18
  86. package/dist/esm/apis/FeedbackApi.js +18 -6
  87. package/dist/esm/apis/FoldersApi.d.ts +13 -61
  88. package/dist/esm/apis/FoldersApi.js +53 -21
  89. package/dist/esm/apis/InvitesApi.d.ts +0 -30
  90. package/dist/esm/apis/InvitesApi.js +30 -10
  91. package/dist/esm/apis/MemoryApi.d.ts +207 -0
  92. package/dist/esm/apis/MemoryApi.js +269 -0
  93. package/dist/esm/apis/PathPartApprovalsApi.d.ts +0 -12
  94. package/dist/esm/apis/PathPartApprovalsApi.js +12 -4
  95. package/dist/esm/apis/PathPartsApi.d.ts +45 -55
  96. package/dist/esm/apis/PathPartsApi.js +112 -19
  97. package/dist/esm/apis/SectionsApi.d.ts +0 -36
  98. package/dist/esm/apis/SectionsApi.js +36 -12
  99. package/dist/esm/apis/SubscriptionsApi.d.ts +0 -12
  100. package/dist/esm/apis/SubscriptionsApi.js +12 -4
  101. package/dist/esm/apis/TagsApi.d.ts +0 -30
  102. package/dist/esm/apis/TagsApi.js +30 -10
  103. package/dist/esm/apis/TenantGroupsApi.d.ts +6 -86
  104. package/dist/esm/apis/TenantGroupsApi.js +84 -32
  105. package/dist/esm/apis/TenantsApi.d.ts +0 -72
  106. package/dist/esm/apis/TenantsApi.js +72 -24
  107. package/dist/esm/apis/ThreadMessagesApi.d.ts +0 -18
  108. package/dist/esm/apis/ThreadMessagesApi.js +18 -6
  109. package/dist/esm/apis/ThreadsApi.d.ts +0 -42
  110. package/dist/esm/apis/ThreadsApi.js +42 -14
  111. package/dist/esm/apis/TrashApi.d.ts +143 -0
  112. package/dist/esm/apis/TrashApi.js +173 -0
  113. package/dist/esm/apis/UserPermissionsApi.d.ts +0 -24
  114. package/dist/esm/apis/UserPermissionsApi.js +24 -8
  115. package/dist/esm/apis/UsersApi.d.ts +12 -46
  116. package/dist/esm/apis/UsersApi.js +42 -22
  117. package/dist/esm/apis/WorkflowDefinitionsApi.d.ts +0 -42
  118. package/dist/esm/apis/WorkflowDefinitionsApi.js +42 -14
  119. package/dist/esm/apis/WorkflowMemoryApi.d.ts +0 -30
  120. package/dist/esm/apis/WorkflowMemoryApi.js +30 -10
  121. package/dist/esm/apis/WorkflowRunsApi.d.ts +4 -58
  122. package/dist/esm/apis/WorkflowRunsApi.js +56 -20
  123. package/dist/esm/apis/WorkflowsApi.d.ts +0 -30
  124. package/dist/esm/apis/WorkflowsApi.js +30 -10
  125. package/dist/esm/apis/index.d.ts +4 -0
  126. package/dist/esm/apis/index.js +4 -0
  127. package/dist/esm/models/AccessCheckResponse.d.ts +59 -0
  128. package/dist/esm/models/AccessCheckResponse.js +50 -0
  129. package/dist/esm/models/CatalogColumnResponse.d.ts +59 -0
  130. package/dist/esm/models/CatalogColumnResponse.js +52 -0
  131. package/dist/esm/models/CatalogTableResponse.d.ts +54 -0
  132. package/dist/esm/models/CatalogTableResponse.js +49 -0
  133. package/dist/esm/models/CellChange.d.ts +72 -0
  134. package/dist/esm/models/CellChange.js +61 -0
  135. package/dist/esm/models/CellChangeType.d.ts +26 -0
  136. package/dist/esm/models/CellChangeType.js +44 -0
  137. package/dist/esm/models/CellDiff.d.ts +72 -0
  138. package/dist/esm/models/CellDiff.js +61 -0
  139. package/dist/esm/models/ColumnConfig.d.ts +71 -0
  140. package/dist/esm/models/ColumnConfig.js +52 -0
  141. package/dist/esm/models/ConnectionConfig.d.ts +71 -0
  142. package/dist/esm/models/ConnectionConfig.js +58 -0
  143. package/dist/esm/models/CreateDataSourceRequest.d.ts +67 -0
  144. package/dist/esm/models/CreateDataSourceRequest.js +62 -0
  145. package/dist/esm/models/CreateGroupPermissionRequest.d.ts +6 -0
  146. package/dist/esm/models/CreateGroupPermissionRequest.js +2 -0
  147. package/dist/esm/models/CreatePermissionRequest.d.ts +6 -0
  148. package/dist/esm/models/CreatePermissionRequest.js +2 -0
  149. package/dist/esm/models/CreateWorkflowDefinitionRequest.d.ts +6 -0
  150. package/dist/esm/models/CreateWorkflowDefinitionRequest.js +4 -0
  151. package/dist/esm/models/DataSourceCatalogResponse.d.ts +48 -0
  152. package/dist/esm/models/DataSourceCatalogResponse.js +45 -0
  153. package/dist/esm/models/DataSourceDetailResponse.d.ts +55 -0
  154. package/dist/esm/models/DataSourceDetailResponse.js +50 -0
  155. package/dist/esm/models/DataSourceEngine.d.ts +25 -0
  156. package/dist/esm/models/DataSourceEngine.js +43 -0
  157. package/dist/esm/models/DataSourceQueryRequest.d.ts +53 -0
  158. package/dist/esm/models/DataSourceQueryRequest.js +53 -0
  159. package/dist/esm/models/DataSourceQueryResponse.d.ts +71 -0
  160. package/dist/esm/models/DataSourceQueryResponse.js +60 -0
  161. package/dist/esm/models/DataSourceResponse.d.ts +119 -0
  162. package/dist/esm/models/DataSourceResponse.js +90 -0
  163. package/dist/esm/models/DataSourceTableResponse.d.ts +135 -0
  164. package/dist/esm/models/DataSourceTableResponse.js +101 -0
  165. package/dist/esm/models/DiffFormat.d.ts +25 -0
  166. package/dist/esm/models/DiffFormat.js +43 -0
  167. package/dist/esm/models/DiffRow.d.ts +90 -0
  168. package/dist/esm/models/DiffRow.js +58 -0
  169. package/dist/esm/models/DiffRowType.d.ts +27 -0
  170. package/dist/esm/models/DiffRowType.js +45 -0
  171. package/dist/esm/models/DiffSpan.d.ts +53 -0
  172. package/dist/esm/models/DiffSpan.js +48 -0
  173. package/dist/esm/models/DocumentDownloadResponse.d.ts +72 -0
  174. package/dist/esm/models/DocumentDownloadResponse.js +61 -0
  175. package/dist/esm/models/DocumentResponse.d.ts +4 -3
  176. package/dist/esm/models/DocumentResponse.js +3 -2
  177. package/dist/esm/models/DownloadArtifact.d.ts +25 -0
  178. package/dist/esm/models/DownloadArtifact.js +43 -0
  179. package/dist/esm/models/EventResponse.d.ts +7 -0
  180. package/dist/esm/models/EventResponse.js +3 -0
  181. package/dist/esm/models/FolderResponse.d.ts +4 -3
  182. package/dist/esm/models/FolderResponse.js +3 -2
  183. package/dist/esm/models/FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponseOrDataSourceResponseOrDataSourceTableResponse.d.ts +39 -0
  184. package/dist/esm/models/{FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponse.js → FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponseOrDataSourceResponseOrDataSourceTableResponse.js} +16 -6
  185. package/dist/esm/models/GroupPermissionResponse.d.ts +6 -0
  186. package/dist/esm/models/GroupPermissionResponse.js +4 -0
  187. package/dist/esm/models/ItemPermissions.d.ts +73 -0
  188. package/dist/esm/models/ItemPermissions.js +56 -0
  189. package/dist/esm/models/MemoryBodyResponse.d.ts +60 -0
  190. package/dist/esm/models/MemoryBodyResponse.js +53 -0
  191. package/dist/esm/models/MemoryScope.d.ts +29 -0
  192. package/dist/esm/models/MemoryScope.js +47 -0
  193. package/dist/esm/models/ModelTableRequest.d.ts +66 -0
  194. package/dist/esm/models/ModelTableRequest.js +51 -0
  195. package/dist/esm/models/PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDataSourceResponseDataSourceTableResponseDiscriminator.d.ts +66 -0
  196. package/dist/esm/models/{PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDiscriminator.js → PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDataSourceResponseDataSourceTableResponseDiscriminator.js} +12 -12
  197. package/dist/esm/models/PaginatedResponsePendingMemoryChunkResponse.d.ts +66 -0
  198. package/dist/esm/models/PaginatedResponsePendingMemoryChunkResponse.js +70 -0
  199. package/dist/esm/models/PaginatedResponseTrashItemResponse.d.ts +66 -0
  200. package/dist/esm/models/PaginatedResponseTrashItemResponse.js +70 -0
  201. package/dist/esm/models/PartType.d.ts +2 -0
  202. package/dist/esm/models/PartType.js +3 -1
  203. package/dist/esm/models/PathPartResponse.d.ts +4 -9
  204. package/dist/esm/models/PathPartResponse.js +4 -7
  205. package/dist/esm/models/PendingMemoryChunkResponse.d.ts +91 -0
  206. package/dist/esm/models/PendingMemoryChunkResponse.js +74 -0
  207. package/dist/esm/models/PermissionCapability.d.ts +2 -1
  208. package/dist/esm/models/PermissionCapability.js +3 -2
  209. package/dist/esm/models/PermissionResponse.d.ts +6 -0
  210. package/dist/esm/models/PermissionResponse.js +4 -0
  211. package/dist/esm/models/ProposeMemoryChunkRequest.d.ts +79 -0
  212. package/dist/esm/models/ProposeMemoryChunkRequest.js +71 -0
  213. package/dist/esm/models/ProposedMemoryChunkResponse.d.ts +91 -0
  214. package/dist/esm/models/ProposedMemoryChunkResponse.js +74 -0
  215. package/dist/esm/models/ReferenceType.d.ts +2 -0
  216. package/dist/esm/models/ReferenceType.js +2 -0
  217. package/dist/esm/models/TextDiff.d.ts +72 -0
  218. package/dist/esm/models/TextDiff.js +61 -0
  219. package/dist/esm/models/TrashItemResponse.d.ts +90 -0
  220. package/dist/esm/models/TrashItemResponse.js +73 -0
  221. package/dist/esm/models/UpdateGroupPermissionRequest.d.ts +6 -0
  222. package/dist/esm/models/UpdateGroupPermissionRequest.js +2 -0
  223. package/dist/esm/models/UpdatePermissionRequest.d.ts +6 -0
  224. package/dist/esm/models/UpdatePermissionRequest.js +2 -0
  225. package/dist/esm/models/UpdateTableRequest.d.ts +54 -0
  226. package/dist/esm/models/UpdateTableRequest.js +45 -0
  227. package/dist/esm/models/VersionDiffResponse.d.ts +89 -0
  228. package/dist/esm/models/VersionDiffResponse.js +63 -0
  229. package/dist/esm/models/WorkflowDefinitionResponse.d.ts +7 -0
  230. package/dist/esm/models/WorkflowDefinitionResponse.js +3 -0
  231. package/dist/esm/models/WorkflowRunResponse.d.ts +7 -0
  232. package/dist/esm/models/WorkflowRunResponse.js +3 -0
  233. package/dist/esm/models/index.d.ts +37 -2
  234. package/dist/esm/models/index.js +37 -2
  235. package/dist/models/AccessCheckResponse.d.ts +59 -0
  236. package/dist/models/AccessCheckResponse.js +58 -0
  237. package/dist/models/CatalogColumnResponse.d.ts +59 -0
  238. package/dist/models/CatalogColumnResponse.js +60 -0
  239. package/dist/models/CatalogTableResponse.d.ts +54 -0
  240. package/dist/models/CatalogTableResponse.js +57 -0
  241. package/dist/models/CellChange.d.ts +72 -0
  242. package/dist/models/CellChange.js +69 -0
  243. package/dist/models/CellChangeType.d.ts +26 -0
  244. package/dist/models/CellChangeType.js +52 -0
  245. package/dist/models/CellDiff.d.ts +72 -0
  246. package/dist/models/CellDiff.js +69 -0
  247. package/dist/models/ColumnConfig.d.ts +71 -0
  248. package/dist/models/ColumnConfig.js +60 -0
  249. package/dist/models/ConnectionConfig.d.ts +71 -0
  250. package/dist/models/ConnectionConfig.js +66 -0
  251. package/dist/models/CreateDataSourceRequest.d.ts +67 -0
  252. package/dist/models/CreateDataSourceRequest.js +70 -0
  253. package/dist/models/CreateGroupPermissionRequest.d.ts +6 -0
  254. package/dist/models/CreateGroupPermissionRequest.js +2 -0
  255. package/dist/models/CreatePermissionRequest.d.ts +6 -0
  256. package/dist/models/CreatePermissionRequest.js +2 -0
  257. package/dist/models/CreateWorkflowDefinitionRequest.d.ts +6 -0
  258. package/dist/models/CreateWorkflowDefinitionRequest.js +4 -0
  259. package/dist/models/DataSourceCatalogResponse.d.ts +48 -0
  260. package/dist/models/DataSourceCatalogResponse.js +53 -0
  261. package/dist/models/DataSourceDetailResponse.d.ts +55 -0
  262. package/dist/models/DataSourceDetailResponse.js +58 -0
  263. package/dist/models/DataSourceEngine.d.ts +25 -0
  264. package/dist/models/DataSourceEngine.js +51 -0
  265. package/dist/models/DataSourceQueryRequest.d.ts +53 -0
  266. package/dist/models/DataSourceQueryRequest.js +61 -0
  267. package/dist/models/DataSourceQueryResponse.d.ts +71 -0
  268. package/dist/models/DataSourceQueryResponse.js +68 -0
  269. package/dist/models/DataSourceResponse.d.ts +119 -0
  270. package/dist/models/DataSourceResponse.js +98 -0
  271. package/dist/models/DataSourceTableResponse.d.ts +135 -0
  272. package/dist/models/DataSourceTableResponse.js +109 -0
  273. package/dist/models/DiffFormat.d.ts +25 -0
  274. package/dist/models/DiffFormat.js +51 -0
  275. package/dist/models/DiffRow.d.ts +90 -0
  276. package/dist/models/DiffRow.js +66 -0
  277. package/dist/models/DiffRowType.d.ts +27 -0
  278. package/dist/models/DiffRowType.js +53 -0
  279. package/dist/models/DiffSpan.d.ts +53 -0
  280. package/dist/models/DiffSpan.js +56 -0
  281. package/dist/models/DocumentDownloadResponse.d.ts +72 -0
  282. package/dist/models/DocumentDownloadResponse.js +69 -0
  283. package/dist/models/DocumentResponse.d.ts +4 -3
  284. package/dist/models/DocumentResponse.js +3 -2
  285. package/dist/models/DownloadArtifact.d.ts +25 -0
  286. package/dist/models/DownloadArtifact.js +51 -0
  287. package/dist/models/EventResponse.d.ts +7 -0
  288. package/dist/models/EventResponse.js +3 -0
  289. package/dist/models/FolderResponse.d.ts +4 -3
  290. package/dist/models/FolderResponse.js +3 -2
  291. package/dist/models/FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponseOrDataSourceResponseOrDataSourceTableResponse.d.ts +39 -0
  292. package/dist/models/{FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponse.js → FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponseOrDataSourceResponseOrDataSourceTableResponse.js} +20 -10
  293. package/dist/models/GroupPermissionResponse.d.ts +6 -0
  294. package/dist/models/GroupPermissionResponse.js +4 -0
  295. package/dist/models/ItemPermissions.d.ts +73 -0
  296. package/dist/models/ItemPermissions.js +64 -0
  297. package/dist/models/MemoryBodyResponse.d.ts +60 -0
  298. package/dist/models/MemoryBodyResponse.js +61 -0
  299. package/dist/models/MemoryScope.d.ts +29 -0
  300. package/dist/models/MemoryScope.js +55 -0
  301. package/dist/models/ModelTableRequest.d.ts +66 -0
  302. package/dist/models/ModelTableRequest.js +59 -0
  303. package/dist/models/PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDataSourceResponseDataSourceTableResponseDiscriminator.d.ts +66 -0
  304. package/dist/models/PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDataSourceResponseDataSourceTableResponseDiscriminator.js +78 -0
  305. package/dist/models/PaginatedResponsePendingMemoryChunkResponse.d.ts +66 -0
  306. package/dist/models/PaginatedResponsePendingMemoryChunkResponse.js +78 -0
  307. package/dist/models/PaginatedResponseTrashItemResponse.d.ts +66 -0
  308. package/dist/models/PaginatedResponseTrashItemResponse.js +78 -0
  309. package/dist/models/PartType.d.ts +2 -0
  310. package/dist/models/PartType.js +3 -1
  311. package/dist/models/PathPartResponse.d.ts +4 -9
  312. package/dist/models/PathPartResponse.js +4 -7
  313. package/dist/models/PendingMemoryChunkResponse.d.ts +91 -0
  314. package/dist/models/PendingMemoryChunkResponse.js +82 -0
  315. package/dist/models/PermissionCapability.d.ts +2 -1
  316. package/dist/models/PermissionCapability.js +3 -2
  317. package/dist/models/PermissionResponse.d.ts +6 -0
  318. package/dist/models/PermissionResponse.js +4 -0
  319. package/dist/models/ProposeMemoryChunkRequest.d.ts +79 -0
  320. package/dist/models/ProposeMemoryChunkRequest.js +79 -0
  321. package/dist/models/ProposedMemoryChunkResponse.d.ts +91 -0
  322. package/dist/models/ProposedMemoryChunkResponse.js +82 -0
  323. package/dist/models/ReferenceType.d.ts +2 -0
  324. package/dist/models/ReferenceType.js +2 -0
  325. package/dist/models/TextDiff.d.ts +72 -0
  326. package/dist/models/TextDiff.js +69 -0
  327. package/dist/models/TrashItemResponse.d.ts +90 -0
  328. package/dist/models/TrashItemResponse.js +81 -0
  329. package/dist/models/UpdateGroupPermissionRequest.d.ts +6 -0
  330. package/dist/models/UpdateGroupPermissionRequest.js +2 -0
  331. package/dist/models/UpdatePermissionRequest.d.ts +6 -0
  332. package/dist/models/UpdatePermissionRequest.js +2 -0
  333. package/dist/models/UpdateTableRequest.d.ts +54 -0
  334. package/dist/models/UpdateTableRequest.js +53 -0
  335. package/dist/models/VersionDiffResponse.d.ts +89 -0
  336. package/dist/models/VersionDiffResponse.js +71 -0
  337. package/dist/models/WorkflowDefinitionResponse.d.ts +7 -0
  338. package/dist/models/WorkflowDefinitionResponse.js +3 -0
  339. package/dist/models/WorkflowRunResponse.d.ts +7 -0
  340. package/dist/models/WorkflowRunResponse.js +3 -0
  341. package/dist/models/index.d.ts +37 -2
  342. package/dist/models/index.js +37 -2
  343. package/docs/AccessCheckResponse.md +39 -0
  344. package/docs/AgentApi.md +18 -18
  345. package/docs/ApiKeysApi.md +30 -32
  346. package/docs/AuditEventsApi.md +104 -0
  347. package/docs/AuthApi.md +36 -36
  348. package/docs/CatalogColumnResponse.md +38 -0
  349. package/docs/CatalogTableResponse.md +36 -0
  350. package/docs/CellChange.md +43 -0
  351. package/docs/CellChangeType.md +32 -0
  352. package/docs/CellDiff.md +43 -0
  353. package/docs/ChunkLineagesApi.md +27 -27
  354. package/docs/ChunksApi.md +82 -82
  355. package/docs/ColumnConfig.md +43 -0
  356. package/docs/ConnectionConfig.md +43 -0
  357. package/docs/CreateDataSourceRequest.md +41 -0
  358. package/docs/CreateGroupPermissionRequest.md +2 -0
  359. package/docs/CreatePermissionRequest.md +2 -0
  360. package/docs/CreateWorkflowDefinitionRequest.md +2 -0
  361. package/docs/DataSourceCatalogResponse.md +35 -0
  362. package/docs/DataSourceDetailResponse.md +37 -0
  363. package/docs/DataSourceEngine.md +33 -0
  364. package/docs/DataSourceQueryRequest.md +37 -0
  365. package/docs/DataSourceQueryResponse.md +43 -0
  366. package/docs/DataSourceResponse.md +55 -0
  367. package/docs/DataSourceTableResponse.md +61 -0
  368. package/docs/DataSourcesApi.md +545 -0
  369. package/docs/DiffFormat.md +32 -0
  370. package/docs/DiffRow.md +47 -0
  371. package/docs/DiffRowType.md +32 -0
  372. package/docs/DiffSpan.md +37 -0
  373. package/docs/DocumentCheckoutApi.md +27 -27
  374. package/docs/DocumentDownloadResponse.md +43 -0
  375. package/docs/DocumentResponse.md +2 -2
  376. package/docs/DocumentVersionsApi.md +228 -72
  377. package/docs/DocumentsApi.md +154 -64
  378. package/docs/DownloadArtifact.md +32 -0
  379. package/docs/EventResponse.md +2 -0
  380. package/docs/FeedbackApi.md +27 -27
  381. package/docs/FolderResponse.md +2 -2
  382. package/docs/{FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponse.md → FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponseOrDataSourceResponseOrDataSourceTableResponse.md} +14 -6
  383. package/docs/FoldersApi.md +75 -75
  384. package/docs/GroupPermissionResponse.md +2 -0
  385. package/docs/InvitesApi.md +45 -45
  386. package/docs/ItemPermissions.md +41 -0
  387. package/docs/MemoryApi.md +379 -0
  388. package/docs/MemoryBodyResponse.md +38 -0
  389. package/docs/MemoryScope.md +33 -0
  390. package/docs/ModelTableRequest.md +41 -0
  391. package/docs/{PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDiscriminator.md → PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDataSourceResponseDataSourceTableResponseDiscriminator.md} +5 -5
  392. package/docs/PaginatedResponsePendingMemoryChunkResponse.md +40 -0
  393. package/docs/PaginatedResponseTrashItemResponse.md +40 -0
  394. package/docs/PathPartApprovalsApi.md +18 -18
  395. package/docs/PathPartResponse.md +2 -4
  396. package/docs/PathPartsApi.md +162 -81
  397. package/docs/PendingMemoryChunkResponse.md +48 -0
  398. package/docs/PermissionCapability.md +1 -1
  399. package/docs/PermissionResponse.md +2 -0
  400. package/docs/ProposeMemoryChunkRequest.md +44 -0
  401. package/docs/ProposedMemoryChunkResponse.md +48 -0
  402. package/docs/SectionsApi.md +54 -54
  403. package/docs/SubscriptionsApi.md +18 -18
  404. package/docs/TagsApi.md +45 -45
  405. package/docs/TenantGroupsApi.md +119 -125
  406. package/docs/TenantsApi.md +108 -108
  407. package/docs/TextDiff.md +43 -0
  408. package/docs/ThreadMessagesApi.md +27 -27
  409. package/docs/ThreadsApi.md +63 -63
  410. package/docs/TrashApi.md +236 -0
  411. package/docs/TrashItemResponse.md +49 -0
  412. package/docs/UpdateGroupPermissionRequest.md +2 -0
  413. package/docs/UpdatePermissionRequest.md +2 -0
  414. package/docs/UpdateTableRequest.md +37 -0
  415. package/docs/UserPermissionsApi.md +36 -36
  416. package/docs/UsersApi.md +49 -61
  417. package/docs/VersionDiffResponse.md +47 -0
  418. package/docs/WorkflowDefinitionResponse.md +2 -0
  419. package/docs/WorkflowDefinitionsApi.md +63 -63
  420. package/docs/WorkflowMemoryApi.md +45 -45
  421. package/docs/WorkflowRunResponse.md +2 -0
  422. package/docs/WorkflowRunsApi.md +82 -82
  423. package/docs/WorkflowsApi.md +45 -45
  424. package/package.json +1 -1
  425. package/src/apis/AgentApi.ts +14 -18
  426. package/src/apis/ApiKeysApi.ts +8 -23
  427. package/src/apis/AuditEventsApi.ts +170 -0
  428. package/src/apis/AuthApi.ts +28 -36
  429. package/src/apis/ChunkLineagesApi.ts +21 -27
  430. package/src/apis/ChunksApi.ts +63 -81
  431. package/src/apis/DataSourcesApi.ts +698 -0
  432. package/src/apis/DocumentCheckoutApi.ts +21 -27
  433. package/src/apis/DocumentVersionsApi.ts +245 -72
  434. package/src/apis/DocumentsApi.ts +177 -67
  435. package/src/apis/FeedbackApi.ts +21 -27
  436. package/src/apis/FoldersApi.ts +73 -89
  437. package/src/apis/InvitesApi.ts +35 -45
  438. package/src/apis/MemoryApi.ts +478 -0
  439. package/src/apis/PathPartApprovalsApi.ts +14 -18
  440. package/src/apis/PathPartsApi.ts +173 -81
  441. package/src/apis/SectionsApi.ts +42 -54
  442. package/src/apis/SubscriptionsApi.ts +14 -18
  443. package/src/apis/TagsApi.ts +35 -45
  444. package/src/apis/TenantGroupsApi.ts +99 -128
  445. package/src/apis/TenantsApi.ts +84 -108
  446. package/src/apis/ThreadMessagesApi.ts +21 -27
  447. package/src/apis/ThreadsApi.ts +49 -63
  448. package/src/apis/TrashApi.ts +292 -0
  449. package/src/apis/UserPermissionsApi.ts +28 -36
  450. package/src/apis/UsersApi.ts +51 -67
  451. package/src/apis/WorkflowDefinitionsApi.ts +49 -63
  452. package/src/apis/WorkflowMemoryApi.ts +35 -45
  453. package/src/apis/WorkflowRunsApi.ts +67 -85
  454. package/src/apis/WorkflowsApi.ts +35 -45
  455. package/src/apis/index.ts +4 -0
  456. package/src/models/AccessCheckResponse.ts +100 -0
  457. package/src/models/CatalogColumnResponse.ts +101 -0
  458. package/src/models/CatalogTableResponse.ts +100 -0
  459. package/src/models/CellChange.ts +129 -0
  460. package/src/models/CellChangeType.ts +54 -0
  461. package/src/models/CellDiff.ts +127 -0
  462. package/src/models/ColumnConfig.ts +115 -0
  463. package/src/models/ConnectionConfig.ts +118 -0
  464. package/src/models/CreateDataSourceRequest.ts +130 -0
  465. package/src/models/CreateGroupPermissionRequest.ts +8 -0
  466. package/src/models/CreatePermissionRequest.ts +8 -0
  467. package/src/models/CreateWorkflowDefinitionRequest.ts +9 -0
  468. package/src/models/DataSourceCatalogResponse.ts +91 -0
  469. package/src/models/DataSourceDetailResponse.ts +107 -0
  470. package/src/models/DataSourceEngine.ts +53 -0
  471. package/src/models/DataSourceQueryRequest.ts +97 -0
  472. package/src/models/DataSourceQueryResponse.ts +119 -0
  473. package/src/models/DataSourceResponse.ts +200 -0
  474. package/src/models/DataSourceTableResponse.ts +217 -0
  475. package/src/models/DiffFormat.ts +53 -0
  476. package/src/models/DiffRow.ts +153 -0
  477. package/src/models/DiffRowType.ts +55 -0
  478. package/src/models/DiffSpan.ts +92 -0
  479. package/src/models/DocumentDownloadResponse.ts +129 -0
  480. package/src/models/DocumentResponse.ts +12 -5
  481. package/src/models/DownloadArtifact.ts +53 -0
  482. package/src/models/EventResponse.ts +16 -0
  483. package/src/models/FolderResponse.ts +12 -5
  484. package/src/models/{FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponse.ts → FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponseOrDataSourceResponseOrDataSourceTableResponse.ts} +30 -8
  485. package/src/models/GroupPermissionResponse.ts +9 -0
  486. package/src/models/ItemPermissions.ts +118 -0
  487. package/src/models/MemoryBodyResponse.ts +111 -0
  488. package/src/models/MemoryScope.ts +57 -0
  489. package/src/models/ModelTableRequest.ts +115 -0
  490. package/src/models/{PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDiscriminator.ts → PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDataSourceResponseDataSourceTableResponseDiscriminator.ts} +25 -25
  491. package/src/models/PaginatedResponsePendingMemoryChunkResponse.ts +130 -0
  492. package/src/models/PaginatedResponseTrashItemResponse.ts +130 -0
  493. package/src/models/PartType.ts +3 -1
  494. package/src/models/PathPartResponse.ts +13 -15
  495. package/src/models/PendingMemoryChunkResponse.ts +163 -0
  496. package/src/models/PermissionCapability.ts +3 -2
  497. package/src/models/PermissionResponse.ts +9 -0
  498. package/src/models/ProposeMemoryChunkRequest.ts +151 -0
  499. package/src/models/ProposedMemoryChunkResponse.ts +163 -0
  500. package/src/models/ReferenceType.ts +2 -0
  501. package/src/models/TextDiff.ts +127 -0
  502. package/src/models/TrashItemResponse.ts +156 -0
  503. package/src/models/UpdateGroupPermissionRequest.ts +8 -0
  504. package/src/models/UpdatePermissionRequest.ts +8 -0
  505. package/src/models/UpdateTableRequest.ts +98 -0
  506. package/src/models/VersionDiffResponse.ts +160 -0
  507. package/src/models/WorkflowDefinitionResponse.ts +15 -0
  508. package/src/models/WorkflowRunResponse.ts +15 -0
  509. package/src/models/index.ts +37 -2
  510. package/dist/esm/models/FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponse.d.ts +0 -33
  511. package/dist/esm/models/PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDiscriminator.d.ts +0 -66
  512. package/dist/models/FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponse.d.ts +0 -33
  513. package/dist/models/PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDiscriminator.d.ts +0 -66
  514. package/dist/models/PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDiscriminator.js +0 -78
@@ -10,39 +10,32 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { AncestryResponse, AppendEventRequest, BulkTagRequest, EventResponse, PaginatedResponseEventResponse, PaginatedResponsePathPartResponse, PathOrder, PathPartResponse, PathPartTagsResponse, SubtreeChunksResponse } from '../models/index';
13
+ import type { AccessCheckResponse, AncestryResponse, AppendEventRequest, BulkTagRequest, EventResponse, PaginatedResponseEventResponse, PaginatedResponsePathPartResponse, PathOrder, PathPartResponse, PathPartTagsResponse, PermissionCapability, SubtreeChunksResponse } from '../models/index';
14
14
  export interface AppendPathPartEventRequest {
15
15
  pathPartId: string;
16
16
  appendEventRequest: AppendEventRequest;
17
- authorization?: string | null;
18
- ksUat?: string | null;
19
17
  }
20
18
  export interface BulkRemovePathPartTagsRequest {
21
19
  pathPartId: string;
22
20
  bulkTagRequest: BulkTagRequest;
23
- authorization?: string | null;
24
- ksUat?: string | null;
21
+ }
22
+ export interface CheckPathPartAccessRequest {
23
+ pathPartId: string;
24
+ userId: string;
25
+ capability?: PermissionCapability;
25
26
  }
26
27
  export interface GetPathPartRequest {
27
28
  pathPartId: string;
28
- authorization?: string | null;
29
- ksUat?: string | null;
30
29
  }
31
30
  export interface GetPathPartAncestryRequest {
32
31
  pathPartId: string;
33
- authorization?: string | null;
34
- ksUat?: string | null;
35
32
  }
36
33
  export interface GetPathPartSubtreeChunksRequest {
37
34
  pathPartId: string;
38
- authorization?: string | null;
39
- ksUat?: string | null;
40
35
  }
41
36
  export interface GetPathPartTagsRequest {
42
37
  pathPartId: string;
43
38
  includeInherited?: boolean;
44
- authorization?: string | null;
45
- ksUat?: string | null;
46
39
  }
47
40
  export interface ListPathPartEventsRequest {
48
41
  pathPartId: string;
@@ -52,8 +45,6 @@ export interface ListPathPartEventsRequest {
52
45
  recursive?: boolean;
53
46
  limit?: number;
54
47
  offset?: number;
55
- authorization?: string | null;
56
- ksUat?: string | null;
57
48
  }
58
49
  export interface ListPathPartsRequest {
59
50
  parentPathId?: string | null;
@@ -61,14 +52,10 @@ export interface ListPathPartsRequest {
61
52
  sortOrder?: PathOrder;
62
53
  limit?: number;
63
54
  offset?: number;
64
- authorization?: string | null;
65
- ksUat?: string | null;
66
55
  }
67
56
  export interface SetPathPartTagsRequest {
68
57
  pathPartId: string;
69
58
  bulkTagRequest: BulkTagRequest;
70
- authorization?: string | null;
71
- ksUat?: string | null;
72
59
  }
73
60
  /**
74
61
  * PathPartsApi - interface
@@ -81,8 +68,6 @@ export interface PathPartsApiInterface {
81
68
  * Creates request options for appendPathPartEvent without sending the request
82
69
  * @param {string} pathPartId
83
70
  * @param {AppendEventRequest} appendEventRequest
84
- * @param {string} [authorization]
85
- * @param {string} [ksUat]
86
71
  * @throws {RequiredError}
87
72
  * @memberof PathPartsApiInterface
88
73
  */
@@ -92,8 +77,6 @@ export interface PathPartsApiInterface {
92
77
  * @summary Append Path Part Event Handler
93
78
  * @param {string} pathPartId
94
79
  * @param {AppendEventRequest} appendEventRequest
95
- * @param {string} [authorization]
96
- * @param {string} [ksUat]
97
80
  * @param {*} [options] Override http request option.
98
81
  * @throws {RequiredError}
99
82
  * @memberof PathPartsApiInterface
@@ -108,8 +91,6 @@ export interface PathPartsApiInterface {
108
91
  * Creates request options for bulkRemovePathPartTags without sending the request
109
92
  * @param {string} pathPartId
110
93
  * @param {BulkTagRequest} bulkTagRequest
111
- * @param {string} [authorization]
112
- * @param {string} [ksUat]
113
94
  * @throws {RequiredError}
114
95
  * @memberof PathPartsApiInterface
115
96
  */
@@ -119,8 +100,6 @@ export interface PathPartsApiInterface {
119
100
  * @summary Bulk Remove Path Part Tags Handler
120
101
  * @param {string} pathPartId
121
102
  * @param {BulkTagRequest} bulkTagRequest
122
- * @param {string} [authorization]
123
- * @param {string} [ksUat]
124
103
  * @param {*} [options] Override http request option.
125
104
  * @throws {RequiredError}
126
105
  * @memberof PathPartsApiInterface
@@ -131,11 +110,34 @@ export interface PathPartsApiInterface {
131
110
  * Bulk Remove Path Part Tags Handler
132
111
  */
133
112
  bulkRemovePathPartTags(requestParameters: BulkRemovePathPartTagsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PathPartTagsResponse>;
113
+ /**
114
+ * Creates request options for checkPathPartAccess without sending the request
115
+ * @param {string} pathPartId
116
+ * @param {string} userId The user whose access is being explained
117
+ * @param {PermissionCapability} [capability] Capability to check (READ_ONLY or READ_WRITE)
118
+ * @throws {RequiredError}
119
+ * @memberof PathPartsApiInterface
120
+ */
121
+ checkPathPartAccessRequestOpts(requestParameters: CheckPathPartAccessRequest): Promise<runtime.RequestOpts>;
122
+ /**
123
+ * Explain whether ``user_id`` has ``capability`` on a path part. ADMIN/OWNER-only introspection: resolves the target user\'s effective permissions and reports the decision plus the reason (the matching grant path, or a role bypass). OWNER/ADMIN targets bypass path checks by role, so they are always allowed. 404 if the path part does not exist or the target user is not a member of this tenant.
124
+ * @summary Check Path Part Access Handler
125
+ * @param {string} pathPartId
126
+ * @param {string} userId The user whose access is being explained
127
+ * @param {PermissionCapability} [capability] Capability to check (READ_ONLY or READ_WRITE)
128
+ * @param {*} [options] Override http request option.
129
+ * @throws {RequiredError}
130
+ * @memberof PathPartsApiInterface
131
+ */
132
+ checkPathPartAccessRaw(requestParameters: CheckPathPartAccessRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AccessCheckResponse>>;
133
+ /**
134
+ * Explain whether ``user_id`` has ``capability`` on a path part. ADMIN/OWNER-only introspection: resolves the target user\'s effective permissions and reports the decision plus the reason (the matching grant path, or a role bypass). OWNER/ADMIN targets bypass path checks by role, so they are always allowed. 404 if the path part does not exist or the target user is not a member of this tenant.
135
+ * Check Path Part Access Handler
136
+ */
137
+ checkPathPartAccess(requestParameters: CheckPathPartAccessRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AccessCheckResponse>;
134
138
  /**
135
139
  * Creates request options for getPathPart without sending the request
136
140
  * @param {string} pathPartId
137
- * @param {string} [authorization]
138
- * @param {string} [ksUat]
139
141
  * @throws {RequiredError}
140
142
  * @memberof PathPartsApiInterface
141
143
  */
@@ -144,8 +146,6 @@ export interface PathPartsApiInterface {
144
146
  * Get a path part by its ID. Returns the path part with its attached tag IDs.
145
147
  * @summary Get Path Part Handler
146
148
  * @param {string} pathPartId
147
- * @param {string} [authorization]
148
- * @param {string} [ksUat]
149
149
  * @param {*} [options] Override http request option.
150
150
  * @throws {RequiredError}
151
151
  * @memberof PathPartsApiInterface
@@ -159,8 +159,6 @@ export interface PathPartsApiInterface {
159
159
  /**
160
160
  * Creates request options for getPathPartAncestry without sending the request
161
161
  * @param {string} pathPartId
162
- * @param {string} [authorization]
163
- * @param {string} [ksUat]
164
162
  * @throws {RequiredError}
165
163
  * @memberof PathPartsApiInterface
166
164
  */
@@ -169,8 +167,6 @@ export interface PathPartsApiInterface {
169
167
  * Get the full ancestry chain for a path part (root to leaf, inclusive). Returns all ancestors from the root down to and including the target path part. Authorization is checked on the leaf — if the user can read the leaf, they can navigate its ancestors.
170
168
  * @summary Get Path Part Ancestry Handler
171
169
  * @param {string} pathPartId
172
- * @param {string} [authorization]
173
- * @param {string} [ksUat]
174
170
  * @param {*} [options] Override http request option.
175
171
  * @throws {RequiredError}
176
172
  * @memberof PathPartsApiInterface
@@ -184,8 +180,6 @@ export interface PathPartsApiInterface {
184
180
  /**
185
181
  * Creates request options for getPathPartSubtreeChunks without sending the request
186
182
  * @param {string} pathPartId
187
- * @param {string} [authorization]
188
- * @param {string} [ksUat]
189
183
  * @throws {RequiredError}
190
184
  * @memberof PathPartsApiInterface
191
185
  */
@@ -194,8 +188,6 @@ export interface PathPartsApiInterface {
194
188
  * Resolve all descendant chunks for a subtree root. Returns chunks grouped by identical (path_part_ids, tag_ids) tuples.
195
189
  * @summary Get Path Part Subtree Chunks Handler
196
190
  * @param {string} pathPartId
197
- * @param {string} [authorization]
198
- * @param {string} [ksUat]
199
191
  * @param {*} [options] Override http request option.
200
192
  * @throws {RequiredError}
201
193
  * @memberof PathPartsApiInterface
@@ -210,8 +202,6 @@ export interface PathPartsApiInterface {
210
202
  * Creates request options for getPathPartTags without sending the request
211
203
  * @param {string} pathPartId
212
204
  * @param {boolean} [includeInherited] Include tags inherited from ancestor path parts
213
- * @param {string} [authorization]
214
- * @param {string} [ksUat]
215
205
  * @throws {RequiredError}
216
206
  * @memberof PathPartsApiInterface
217
207
  */
@@ -221,8 +211,6 @@ export interface PathPartsApiInterface {
221
211
  * @summary Get Path Part Tags Handler
222
212
  * @param {string} pathPartId
223
213
  * @param {boolean} [includeInherited] Include tags inherited from ancestor path parts
224
- * @param {string} [authorization]
225
- * @param {string} [ksUat]
226
214
  * @param {*} [options] Override http request option.
227
215
  * @throws {RequiredError}
228
216
  * @memberof PathPartsApiInterface
@@ -242,8 +230,6 @@ export interface PathPartsApiInterface {
242
230
  * @param {boolean} [recursive] Include events from descendant path_parts as well as the subject itself
243
231
  * @param {number} [limit] Number of items per page
244
232
  * @param {number} [offset] Number of items to skip
245
- * @param {string} [authorization]
246
- * @param {string} [ksUat]
247
233
  * @throws {RequiredError}
248
234
  * @memberof PathPartsApiInterface
249
235
  */
@@ -258,8 +244,6 @@ export interface PathPartsApiInterface {
258
244
  * @param {boolean} [recursive] Include events from descendant path_parts as well as the subject itself
259
245
  * @param {number} [limit] Number of items per page
260
246
  * @param {number} [offset] Number of items to skip
261
- * @param {string} [authorization]
262
- * @param {string} [ksUat]
263
247
  * @param {*} [options] Override http request option.
264
248
  * @throws {RequiredError}
265
249
  * @memberof PathPartsApiInterface
@@ -277,8 +261,6 @@ export interface PathPartsApiInterface {
277
261
  * @param {PathOrder} [sortOrder] Sort order for results (default: LOGICAL)
278
262
  * @param {number} [limit] Number of items per page
279
263
  * @param {number} [offset] Number of items to skip
280
- * @param {string} [authorization]
281
- * @param {string} [ksUat]
282
264
  * @throws {RequiredError}
283
265
  * @memberof PathPartsApiInterface
284
266
  */
@@ -291,8 +273,6 @@ export interface PathPartsApiInterface {
291
273
  * @param {PathOrder} [sortOrder] Sort order for results (default: LOGICAL)
292
274
  * @param {number} [limit] Number of items per page
293
275
  * @param {number} [offset] Number of items to skip
294
- * @param {string} [authorization]
295
- * @param {string} [ksUat]
296
276
  * @param {*} [options] Override http request option.
297
277
  * @throws {RequiredError}
298
278
  * @memberof PathPartsApiInterface
@@ -307,8 +287,6 @@ export interface PathPartsApiInterface {
307
287
  * Creates request options for setPathPartTags without sending the request
308
288
  * @param {string} pathPartId
309
289
  * @param {BulkTagRequest} bulkTagRequest
310
- * @param {string} [authorization]
311
- * @param {string} [ksUat]
312
290
  * @throws {RequiredError}
313
291
  * @memberof PathPartsApiInterface
314
292
  */
@@ -318,8 +296,6 @@ export interface PathPartsApiInterface {
318
296
  * @summary Set Path Part Tags Handler
319
297
  * @param {string} pathPartId
320
298
  * @param {BulkTagRequest} bulkTagRequest
321
- * @param {string} [authorization]
322
- * @param {string} [ksUat]
323
299
  * @param {*} [options] Override http request option.
324
300
  * @throws {RequiredError}
325
301
  * @memberof PathPartsApiInterface
@@ -363,6 +339,20 @@ export declare class PathPartsApi extends runtime.BaseAPI implements PathPartsAp
363
339
  * Bulk Remove Path Part Tags Handler
364
340
  */
365
341
  bulkRemovePathPartTags(requestParameters: BulkRemovePathPartTagsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PathPartTagsResponse>;
342
+ /**
343
+ * Creates request options for checkPathPartAccess without sending the request
344
+ */
345
+ checkPathPartAccessRequestOpts(requestParameters: CheckPathPartAccessRequest): Promise<runtime.RequestOpts>;
346
+ /**
347
+ * Explain whether ``user_id`` has ``capability`` on a path part. ADMIN/OWNER-only introspection: resolves the target user\'s effective permissions and reports the decision plus the reason (the matching grant path, or a role bypass). OWNER/ADMIN targets bypass path checks by role, so they are always allowed. 404 if the path part does not exist or the target user is not a member of this tenant.
348
+ * Check Path Part Access Handler
349
+ */
350
+ checkPathPartAccessRaw(requestParameters: CheckPathPartAccessRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AccessCheckResponse>>;
351
+ /**
352
+ * Explain whether ``user_id`` has ``capability`` on a path part. ADMIN/OWNER-only introspection: resolves the target user\'s effective permissions and reports the decision plus the reason (the matching grant path, or a role bypass). OWNER/ADMIN targets bypass path checks by role, so they are always allowed. 404 if the path part does not exist or the target user is not a member of this tenant.
353
+ * Check Path Part Access Handler
354
+ */
355
+ checkPathPartAccess(requestParameters: CheckPathPartAccessRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AccessCheckResponse>;
366
356
  /**
367
357
  * Creates request options for getPathPart without sending the request
368
358
  */
@@ -76,8 +76,12 @@ class PathPartsApi extends runtime.BaseAPI {
76
76
  const queryParameters = {};
77
77
  const headerParameters = {};
78
78
  headerParameters['Content-Type'] = 'application/json';
79
- if (requestParameters['authorization'] != null) {
80
- headerParameters['authorization'] = String(requestParameters['authorization']);
79
+ if (this.configuration && this.configuration.accessToken) {
80
+ const token = this.configuration.accessToken;
81
+ const tokenString = yield token("bearerAuth", []);
82
+ if (tokenString) {
83
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
84
+ }
81
85
  }
82
86
  let urlPath = `/v1/path-parts/{path_part_id}/events`;
83
87
  urlPath = urlPath.replace(`{${"path_part_id"}}`, encodeURIComponent(String(requestParameters['pathPartId'])));
@@ -125,8 +129,12 @@ class PathPartsApi extends runtime.BaseAPI {
125
129
  const queryParameters = {};
126
130
  const headerParameters = {};
127
131
  headerParameters['Content-Type'] = 'application/json';
128
- if (requestParameters['authorization'] != null) {
129
- headerParameters['authorization'] = String(requestParameters['authorization']);
132
+ if (this.configuration && this.configuration.accessToken) {
133
+ const token = this.configuration.accessToken;
134
+ const tokenString = yield token("bearerAuth", []);
135
+ if (tokenString) {
136
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
137
+ }
130
138
  }
131
139
  let urlPath = `/v1/path-parts/{path_part_id}/tags`;
132
140
  urlPath = urlPath.replace(`{${"path_part_id"}}`, encodeURIComponent(String(requestParameters['pathPartId'])));
@@ -160,6 +168,63 @@ class PathPartsApi extends runtime.BaseAPI {
160
168
  return yield response.value();
161
169
  });
162
170
  }
171
+ /**
172
+ * Creates request options for checkPathPartAccess without sending the request
173
+ */
174
+ checkPathPartAccessRequestOpts(requestParameters) {
175
+ return __awaiter(this, void 0, void 0, function* () {
176
+ if (requestParameters['pathPartId'] == null) {
177
+ throw new runtime.RequiredError('pathPartId', 'Required parameter "pathPartId" was null or undefined when calling checkPathPartAccess().');
178
+ }
179
+ if (requestParameters['userId'] == null) {
180
+ throw new runtime.RequiredError('userId', 'Required parameter "userId" was null or undefined when calling checkPathPartAccess().');
181
+ }
182
+ const queryParameters = {};
183
+ if (requestParameters['userId'] != null) {
184
+ queryParameters['user_id'] = requestParameters['userId'];
185
+ }
186
+ if (requestParameters['capability'] != null) {
187
+ queryParameters['capability'] = requestParameters['capability'];
188
+ }
189
+ const headerParameters = {};
190
+ if (this.configuration && this.configuration.accessToken) {
191
+ const token = this.configuration.accessToken;
192
+ const tokenString = yield token("bearerAuth", []);
193
+ if (tokenString) {
194
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
195
+ }
196
+ }
197
+ let urlPath = `/v1/path-parts/{path_part_id}/access-check`;
198
+ urlPath = urlPath.replace(`{${"path_part_id"}}`, encodeURIComponent(String(requestParameters['pathPartId'])));
199
+ return {
200
+ path: urlPath,
201
+ method: 'GET',
202
+ headers: headerParameters,
203
+ query: queryParameters,
204
+ };
205
+ });
206
+ }
207
+ /**
208
+ * Explain whether ``user_id`` has ``capability`` on a path part. ADMIN/OWNER-only introspection: resolves the target user\'s effective permissions and reports the decision plus the reason (the matching grant path, or a role bypass). OWNER/ADMIN targets bypass path checks by role, so they are always allowed. 404 if the path part does not exist or the target user is not a member of this tenant.
209
+ * Check Path Part Access Handler
210
+ */
211
+ checkPathPartAccessRaw(requestParameters, initOverrides) {
212
+ return __awaiter(this, void 0, void 0, function* () {
213
+ const requestOptions = yield this.checkPathPartAccessRequestOpts(requestParameters);
214
+ const response = yield this.request(requestOptions, initOverrides);
215
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.AccessCheckResponseFromJSON)(jsonValue));
216
+ });
217
+ }
218
+ /**
219
+ * Explain whether ``user_id`` has ``capability`` on a path part. ADMIN/OWNER-only introspection: resolves the target user\'s effective permissions and reports the decision plus the reason (the matching grant path, or a role bypass). OWNER/ADMIN targets bypass path checks by role, so they are always allowed. 404 if the path part does not exist or the target user is not a member of this tenant.
220
+ * Check Path Part Access Handler
221
+ */
222
+ checkPathPartAccess(requestParameters, initOverrides) {
223
+ return __awaiter(this, void 0, void 0, function* () {
224
+ const response = yield this.checkPathPartAccessRaw(requestParameters, initOverrides);
225
+ return yield response.value();
226
+ });
227
+ }
163
228
  /**
164
229
  * Creates request options for getPathPart without sending the request
165
230
  */
@@ -170,8 +235,12 @@ class PathPartsApi extends runtime.BaseAPI {
170
235
  }
171
236
  const queryParameters = {};
172
237
  const headerParameters = {};
173
- if (requestParameters['authorization'] != null) {
174
- headerParameters['authorization'] = String(requestParameters['authorization']);
238
+ if (this.configuration && this.configuration.accessToken) {
239
+ const token = this.configuration.accessToken;
240
+ const tokenString = yield token("bearerAuth", []);
241
+ if (tokenString) {
242
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
243
+ }
175
244
  }
176
245
  let urlPath = `/v1/path-parts/{path_part_id}`;
177
246
  urlPath = urlPath.replace(`{${"path_part_id"}}`, encodeURIComponent(String(requestParameters['pathPartId'])));
@@ -214,8 +283,12 @@ class PathPartsApi extends runtime.BaseAPI {
214
283
  }
215
284
  const queryParameters = {};
216
285
  const headerParameters = {};
217
- if (requestParameters['authorization'] != null) {
218
- headerParameters['authorization'] = String(requestParameters['authorization']);
286
+ if (this.configuration && this.configuration.accessToken) {
287
+ const token = this.configuration.accessToken;
288
+ const tokenString = yield token("bearerAuth", []);
289
+ if (tokenString) {
290
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
291
+ }
219
292
  }
220
293
  let urlPath = `/v1/path-parts/{path_part_id}/ancestry`;
221
294
  urlPath = urlPath.replace(`{${"path_part_id"}}`, encodeURIComponent(String(requestParameters['pathPartId'])));
@@ -258,8 +331,12 @@ class PathPartsApi extends runtime.BaseAPI {
258
331
  }
259
332
  const queryParameters = {};
260
333
  const headerParameters = {};
261
- if (requestParameters['authorization'] != null) {
262
- headerParameters['authorization'] = String(requestParameters['authorization']);
334
+ if (this.configuration && this.configuration.accessToken) {
335
+ const token = this.configuration.accessToken;
336
+ const tokenString = yield token("bearerAuth", []);
337
+ if (tokenString) {
338
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
339
+ }
263
340
  }
264
341
  let urlPath = `/v1/path-parts/{path_part_id}/subtree_chunks`;
265
342
  urlPath = urlPath.replace(`{${"path_part_id"}}`, encodeURIComponent(String(requestParameters['pathPartId'])));
@@ -305,8 +382,12 @@ class PathPartsApi extends runtime.BaseAPI {
305
382
  queryParameters['include_inherited'] = requestParameters['includeInherited'];
306
383
  }
307
384
  const headerParameters = {};
308
- if (requestParameters['authorization'] != null) {
309
- headerParameters['authorization'] = String(requestParameters['authorization']);
385
+ if (this.configuration && this.configuration.accessToken) {
386
+ const token = this.configuration.accessToken;
387
+ const tokenString = yield token("bearerAuth", []);
388
+ if (tokenString) {
389
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
390
+ }
310
391
  }
311
392
  let urlPath = `/v1/path-parts/{path_part_id}/tags`;
312
393
  urlPath = urlPath.replace(`{${"path_part_id"}}`, encodeURIComponent(String(requestParameters['pathPartId'])));
@@ -367,8 +448,12 @@ class PathPartsApi extends runtime.BaseAPI {
367
448
  queryParameters['offset'] = requestParameters['offset'];
368
449
  }
369
450
  const headerParameters = {};
370
- if (requestParameters['authorization'] != null) {
371
- headerParameters['authorization'] = String(requestParameters['authorization']);
451
+ if (this.configuration && this.configuration.accessToken) {
452
+ const token = this.configuration.accessToken;
453
+ const tokenString = yield token("bearerAuth", []);
454
+ if (tokenString) {
455
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
456
+ }
372
457
  }
373
458
  let urlPath = `/v1/path-parts/{path_part_id}/events`;
374
459
  urlPath = urlPath.replace(`{${"path_part_id"}}`, encodeURIComponent(String(requestParameters['pathPartId'])));
@@ -423,8 +508,12 @@ class PathPartsApi extends runtime.BaseAPI {
423
508
  queryParameters['offset'] = requestParameters['offset'];
424
509
  }
425
510
  const headerParameters = {};
426
- if (requestParameters['authorization'] != null) {
427
- headerParameters['authorization'] = String(requestParameters['authorization']);
511
+ if (this.configuration && this.configuration.accessToken) {
512
+ const token = this.configuration.accessToken;
513
+ const tokenString = yield token("bearerAuth", []);
514
+ if (tokenString) {
515
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
516
+ }
428
517
  }
429
518
  let urlPath = `/v1/path-parts`;
430
519
  return {
@@ -470,8 +559,12 @@ class PathPartsApi extends runtime.BaseAPI {
470
559
  const queryParameters = {};
471
560
  const headerParameters = {};
472
561
  headerParameters['Content-Type'] = 'application/json';
473
- if (requestParameters['authorization'] != null) {
474
- headerParameters['authorization'] = String(requestParameters['authorization']);
562
+ if (this.configuration && this.configuration.accessToken) {
563
+ const token = this.configuration.accessToken;
564
+ const tokenString = yield token("bearerAuth", []);
565
+ if (tokenString) {
566
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
567
+ }
475
568
  }
476
569
  let urlPath = `/v1/path-parts/{path_part_id}/tags`;
477
570
  urlPath = urlPath.replace(`{${"path_part_id"}}`, encodeURIComponent(String(requestParameters['pathPartId'])));
@@ -13,34 +13,22 @@ import * as runtime from '../runtime';
13
13
  import type { CreateSectionRequest, DissolveSectionResponse, SectionResponse, UpdateSectionRequest } from '../models/index';
14
14
  export interface CreateSectionOperationRequest {
15
15
  createSectionRequest: CreateSectionRequest;
16
- authorization?: string | null;
17
- ksUat?: string | null;
18
16
  }
19
17
  export interface DeleteSectionRequest {
20
18
  sectionId: string;
21
- authorization?: string | null;
22
- ksUat?: string | null;
23
19
  }
24
20
  export interface DissolveSectionRequest {
25
21
  sectionId: string;
26
- authorization?: string | null;
27
- ksUat?: string | null;
28
22
  }
29
23
  export interface GetSectionRequest {
30
24
  sectionId: string;
31
- authorization?: string | null;
32
- ksUat?: string | null;
33
25
  }
34
26
  export interface GetSectionsBulkRequest {
35
27
  sectionIds?: Array<string> | null;
36
- authorization?: string | null;
37
- ksUat?: string | null;
38
28
  }
39
29
  export interface UpdateSectionOperationRequest {
40
30
  sectionId: string;
41
31
  updateSectionRequest: UpdateSectionRequest;
42
- authorization?: string | null;
43
- ksUat?: string | null;
44
32
  }
45
33
  /**
46
34
  * SectionsApi - interface
@@ -52,8 +40,6 @@ export interface SectionsApiInterface {
52
40
  /**
53
41
  * Creates request options for createSection without sending the request
54
42
  * @param {CreateSectionRequest} createSectionRequest
55
- * @param {string} [authorization]
56
- * @param {string} [ksUat]
57
43
  * @throws {RequiredError}
58
44
  * @memberof SectionsApiInterface
59
45
  */
@@ -62,8 +48,6 @@ export interface SectionsApiInterface {
62
48
  * Create a new section. The section is created as a child of the specified parent (must be DOCUMENT_VERSION or SECTION). If prev_sibling_path_id is provided, the section is inserted after that sibling; otherwise it is appended to the end of the sibling list.
63
49
  * @summary Create Section Handler
64
50
  * @param {CreateSectionRequest} createSectionRequest
65
- * @param {string} [authorization]
66
- * @param {string} [ksUat]
67
51
  * @param {*} [options] Override http request option.
68
52
  * @throws {RequiredError}
69
53
  * @memberof SectionsApiInterface
@@ -77,8 +61,6 @@ export interface SectionsApiInterface {
77
61
  /**
78
62
  * Creates request options for deleteSection without sending the request
79
63
  * @param {string} sectionId
80
- * @param {string} [authorization]
81
- * @param {string} [ksUat]
82
64
  * @throws {RequiredError}
83
65
  * @memberof SectionsApiInterface
84
66
  */
@@ -87,8 +69,6 @@ export interface SectionsApiInterface {
87
69
  * Delete a section and all its children. WARNING: This cascades to all child sections due to parent_id ON DELETE CASCADE.
88
70
  * @summary Delete Section Handler
89
71
  * @param {string} sectionId
90
- * @param {string} [authorization]
91
- * @param {string} [ksUat]
92
72
  * @param {*} [options] Override http request option.
93
73
  * @throws {RequiredError}
94
74
  * @memberof SectionsApiInterface
@@ -102,8 +82,6 @@ export interface SectionsApiInterface {
102
82
  /**
103
83
  * Creates request options for dissolveSection without sending the request
104
84
  * @param {string} sectionId
105
- * @param {string} [authorization]
106
- * @param {string} [ksUat]
107
85
  * @throws {RequiredError}
108
86
  * @memberof SectionsApiInterface
109
87
  */
@@ -112,8 +90,6 @@ export interface SectionsApiInterface {
112
90
  * Dissolve a section: convert it to a text chunk, reparent children, delete the section. The section\'s name becomes the content of a new TEXT chunk. Any children of the section are reparented to the section\'s parent, preserving order. The section itself is then deleted.
113
91
  * @summary Dissolve Section Handler
114
92
  * @param {string} sectionId
115
- * @param {string} [authorization]
116
- * @param {string} [ksUat]
117
93
  * @param {*} [options] Override http request option.
118
94
  * @throws {RequiredError}
119
95
  * @memberof SectionsApiInterface
@@ -127,8 +103,6 @@ export interface SectionsApiInterface {
127
103
  /**
128
104
  * Creates request options for getSection without sending the request
129
105
  * @param {string} sectionId
130
- * @param {string} [authorization]
131
- * @param {string} [ksUat]
132
106
  * @throws {RequiredError}
133
107
  * @memberof SectionsApiInterface
134
108
  */
@@ -137,8 +111,6 @@ export interface SectionsApiInterface {
137
111
  * Get a section by its ID.
138
112
  * @summary Get Section Handler
139
113
  * @param {string} sectionId
140
- * @param {string} [authorization]
141
- * @param {string} [ksUat]
142
114
  * @param {*} [options] Override http request option.
143
115
  * @throws {RequiredError}
144
116
  * @memberof SectionsApiInterface
@@ -152,8 +124,6 @@ export interface SectionsApiInterface {
152
124
  /**
153
125
  * Creates request options for getSectionsBulk without sending the request
154
126
  * @param {Array<string>} [sectionIds] Section IDs to fetch (max 200)
155
- * @param {string} [authorization]
156
- * @param {string} [ksUat]
157
127
  * @throws {RequiredError}
158
128
  * @memberof SectionsApiInterface
159
129
  */
@@ -162,8 +132,6 @@ export interface SectionsApiInterface {
162
132
  * Batch-fetch sections by ID. Returns sections with system_metadata. Non-existent IDs are silently skipped. Limited to 200 IDs per call.
163
133
  * @summary Get Sections Bulk Handler
164
134
  * @param {Array<string>} [sectionIds] Section IDs to fetch (max 200)
165
- * @param {string} [authorization]
166
- * @param {string} [ksUat]
167
135
  * @param {*} [options] Override http request option.
168
136
  * @throws {RequiredError}
169
137
  * @memberof SectionsApiInterface
@@ -178,8 +146,6 @@ export interface SectionsApiInterface {
178
146
  * Creates request options for updateSection without sending the request
179
147
  * @param {string} sectionId
180
148
  * @param {UpdateSectionRequest} updateSectionRequest
181
- * @param {string} [authorization]
182
- * @param {string} [ksUat]
183
149
  * @throws {RequiredError}
184
150
  * @memberof SectionsApiInterface
185
151
  */
@@ -189,8 +155,6 @@ export interface SectionsApiInterface {
189
155
  * @summary Update Section Handler
190
156
  * @param {string} sectionId
191
157
  * @param {UpdateSectionRequest} updateSectionRequest
192
- * @param {string} [authorization]
193
- * @param {string} [ksUat]
194
158
  * @param {*} [options] Override http request option.
195
159
  * @throws {RequiredError}
196
160
  * @memberof SectionsApiInterface