@knowledge-stack/ksapi 1.88.1 → 1.90.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 (365) hide show
  1. package/.openapi-generator/FILES +38 -20
  2. package/README.md +30 -19
  3. package/dist/apis/DocumentCheckoutApi.d.ts +16 -13
  4. package/dist/apis/DocumentCheckoutApi.js +17 -14
  5. package/dist/apis/DocumentVersionsApi.d.ts +1 -4
  6. package/dist/apis/DocumentVersionsApi.js +0 -2
  7. package/dist/apis/DocumentsApi.d.ts +1 -4
  8. package/dist/apis/DocumentsApi.js +0 -2
  9. package/dist/apis/FoldersApi.d.ts +10 -13
  10. package/dist/apis/FoldersApi.js +2 -4
  11. package/dist/apis/PathPartApprovalsApi.d.ts +117 -0
  12. package/dist/apis/PathPartApprovalsApi.js +159 -0
  13. package/dist/apis/PathPartsApi.d.ts +4 -4
  14. package/dist/apis/PathPartsApi.js +2 -2
  15. package/dist/apis/WorkflowDefinitionsApi.d.ts +48 -42
  16. package/dist/apis/WorkflowDefinitionsApi.js +65 -43
  17. package/dist/apis/WorkflowMemoryApi.d.ts +12 -9
  18. package/dist/apis/WorkflowMemoryApi.js +7 -3
  19. package/dist/apis/WorkflowRunsApi.d.ts +115 -65
  20. package/dist/apis/WorkflowRunsApi.js +100 -53
  21. package/dist/apis/index.d.ts +1 -0
  22. package/dist/apis/index.js +1 -0
  23. package/dist/esm/apis/DocumentCheckoutApi.d.ts +16 -13
  24. package/dist/esm/apis/DocumentCheckoutApi.js +17 -14
  25. package/dist/esm/apis/DocumentVersionsApi.d.ts +1 -4
  26. package/dist/esm/apis/DocumentVersionsApi.js +0 -2
  27. package/dist/esm/apis/DocumentsApi.d.ts +1 -4
  28. package/dist/esm/apis/DocumentsApi.js +0 -2
  29. package/dist/esm/apis/FoldersApi.d.ts +10 -13
  30. package/dist/esm/apis/FoldersApi.js +3 -5
  31. package/dist/esm/apis/PathPartApprovalsApi.d.ts +117 -0
  32. package/dist/esm/apis/PathPartApprovalsApi.js +122 -0
  33. package/dist/esm/apis/PathPartsApi.d.ts +4 -4
  34. package/dist/esm/apis/PathPartsApi.js +2 -2
  35. package/dist/esm/apis/WorkflowDefinitionsApi.d.ts +48 -42
  36. package/dist/esm/apis/WorkflowDefinitionsApi.js +66 -44
  37. package/dist/esm/apis/WorkflowMemoryApi.d.ts +12 -9
  38. package/dist/esm/apis/WorkflowMemoryApi.js +8 -4
  39. package/dist/esm/apis/WorkflowRunsApi.d.ts +115 -65
  40. package/dist/esm/apis/WorkflowRunsApi.js +101 -54
  41. package/dist/esm/apis/index.d.ts +1 -0
  42. package/dist/esm/apis/index.js +1 -0
  43. package/dist/esm/models/ChunkContentItem.d.ts +7 -0
  44. package/dist/esm/models/ChunkContentItem.js +5 -0
  45. package/dist/esm/models/CitedChunk.d.ts +86 -0
  46. package/dist/esm/models/CitedChunk.js +55 -0
  47. package/dist/esm/models/CloneWorkflowRunRequest.d.ts +54 -0
  48. package/dist/esm/models/CloneWorkflowRunRequest.js +44 -0
  49. package/dist/esm/models/CreateThreadMessageRequest.d.ts +1 -1
  50. package/dist/esm/models/CreateThreadRequest.d.ts +13 -1
  51. package/dist/esm/models/CreateThreadRequest.js +8 -0
  52. package/dist/esm/models/CreateWorkflowDefinitionRequest.d.ts +6 -41
  53. package/dist/esm/models/CreateWorkflowDefinitionRequest.js +5 -35
  54. package/dist/esm/models/DocumentCheckoutResponse.d.ts +6 -5
  55. package/dist/esm/models/DocumentCheckoutResponse.js +7 -6
  56. package/dist/esm/models/DocumentResponse.d.ts +11 -3
  57. package/dist/esm/models/DocumentResponse.js +9 -3
  58. package/dist/esm/models/DocumentVersionMetadata.d.ts +7 -0
  59. package/dist/esm/models/DocumentVersionMetadata.js +3 -0
  60. package/dist/esm/models/DocumentVersionMetadataUpdate.d.ts +7 -0
  61. package/dist/esm/models/DocumentVersionMetadataUpdate.js +3 -0
  62. package/dist/esm/models/DocumentVersionResponse.d.ts +4 -3
  63. package/dist/esm/models/DocumentVersionResponse.js +4 -3
  64. package/dist/esm/models/DocxParagraphAnchorInput.d.ts +79 -0
  65. package/dist/esm/models/DocxParagraphAnchorInput.js +71 -0
  66. package/dist/esm/models/DocxParagraphAnchorOutput.d.ts +88 -0
  67. package/dist/esm/models/DocxParagraphAnchorOutput.js +74 -0
  68. package/dist/esm/models/FolderResponse.d.ts +7 -0
  69. package/dist/esm/models/FolderResponse.js +5 -0
  70. package/dist/esm/models/FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponse.d.ts +33 -0
  71. package/dist/esm/models/FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponse.js +57 -0
  72. package/dist/esm/models/InputSnapshot.d.ts +81 -0
  73. package/dist/esm/models/{ABCDPathSnapshot.js → InputSnapshot.js} +18 -12
  74. package/dist/esm/models/InstructionSnapshot.d.ts +16 -10
  75. package/dist/esm/models/InstructionSnapshot.js +11 -6
  76. package/dist/esm/models/MemoryChunkResponse.d.ts +1 -1
  77. package/dist/esm/models/MemoryKind.d.ts +1 -4
  78. package/dist/esm/models/MemoryKind.js +1 -4
  79. package/dist/esm/models/PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDiscriminator.d.ts +66 -0
  80. package/dist/esm/models/{PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseDiscriminator.js → PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDiscriminator.js} +12 -12
  81. package/dist/esm/models/PaginatedResponseMemoryChunkResponse.d.ts +66 -0
  82. package/dist/esm/models/PaginatedResponseMemoryChunkResponse.js +70 -0
  83. package/dist/esm/models/PathPartApprovalDecision.d.ts +6 -5
  84. package/dist/esm/models/PathPartApprovalDecision.js +7 -6
  85. package/dist/esm/models/PathPartApprovalResponse.d.ts +2 -23
  86. package/dist/esm/models/PathPartApprovalResponse.js +3 -15
  87. package/dist/esm/models/PathPartApprovalState.d.ts +32 -0
  88. package/dist/esm/models/PathPartApprovalState.js +50 -0
  89. package/dist/esm/models/SectionContentItem.d.ts +7 -0
  90. package/dist/esm/models/SectionContentItem.js +5 -0
  91. package/dist/esm/models/SetApprovalStateRequest.d.ts +69 -0
  92. package/dist/esm/models/SetApprovalStateRequest.js +57 -0
  93. package/dist/esm/models/SetWorkflowRunApprovalRequest.d.ts +64 -0
  94. package/dist/esm/models/SetWorkflowRunApprovalRequest.js +56 -0
  95. package/dist/esm/models/ThreadMessageResponse.d.ts +7 -1
  96. package/dist/esm/models/ThreadMessageResponse.js +2 -0
  97. package/dist/esm/models/ThreadResponse.d.ts +1 -1
  98. package/dist/esm/models/UpdateThreadRequest.d.ts +1 -1
  99. package/dist/esm/models/UpdateWorkflowDefinitionRequest.d.ts +4 -41
  100. package/dist/esm/models/UpdateWorkflowDefinitionRequest.js +7 -38
  101. package/dist/esm/models/UpdateWorkflowRunRequest.d.ts +58 -0
  102. package/dist/esm/models/UpdateWorkflowRunRequest.js +53 -0
  103. package/dist/esm/models/UserInfo.d.ts +59 -0
  104. package/dist/esm/models/UserInfo.js +52 -0
  105. package/dist/esm/models/UserMessageRequest.d.ts +1 -1
  106. package/dist/esm/models/UserMessageResponse.d.ts +1 -1
  107. package/dist/esm/models/WorkflowDefinitionResponse.d.ts +42 -24
  108. package/dist/esm/models/WorkflowDefinitionResponse.js +31 -24
  109. package/dist/esm/models/WorkflowExecutionState.d.ts +42 -0
  110. package/dist/esm/models/WorkflowExecutionState.js +60 -0
  111. package/dist/esm/models/WorkflowRunResponse.d.ts +91 -18
  112. package/dist/esm/models/WorkflowRunResponse.js +59 -18
  113. package/dist/esm/models/WorkflowRunSnapshot.d.ts +14 -37
  114. package/dist/esm/models/WorkflowRunSnapshot.js +7 -28
  115. package/dist/esm/models/XlsxCellAnchorInput.d.ts +79 -0
  116. package/dist/esm/models/XlsxCellAnchorInput.js +67 -0
  117. package/dist/esm/models/XlsxCellAnchorInputOrDocxParagraphAnchorInput.d.ts +27 -0
  118. package/dist/esm/models/XlsxCellAnchorInputOrDocxParagraphAnchorInput.js +47 -0
  119. package/dist/esm/models/XlsxCellAnchorOutput.d.ts +90 -0
  120. package/dist/esm/models/XlsxCellAnchorOutput.js +70 -0
  121. package/dist/esm/models/XlsxCellAnchorOutputOrDocxParagraphAnchorOutput.d.ts +27 -0
  122. package/dist/esm/models/XlsxCellAnchorOutputOrDocxParagraphAnchorOutput.js +47 -0
  123. package/dist/esm/models/index.d.ts +18 -10
  124. package/dist/esm/models/index.js +18 -10
  125. package/dist/models/ChunkContentItem.d.ts +7 -0
  126. package/dist/models/ChunkContentItem.js +5 -0
  127. package/dist/models/CitedChunk.d.ts +86 -0
  128. package/dist/models/CitedChunk.js +63 -0
  129. package/dist/models/CloneWorkflowRunRequest.d.ts +54 -0
  130. package/dist/models/CloneWorkflowRunRequest.js +52 -0
  131. package/dist/models/CreateThreadMessageRequest.d.ts +1 -1
  132. package/dist/models/CreateThreadRequest.d.ts +13 -1
  133. package/dist/models/CreateThreadRequest.js +8 -0
  134. package/dist/models/CreateWorkflowDefinitionRequest.d.ts +6 -41
  135. package/dist/models/CreateWorkflowDefinitionRequest.js +5 -35
  136. package/dist/models/DocumentCheckoutResponse.d.ts +6 -5
  137. package/dist/models/DocumentCheckoutResponse.js +7 -6
  138. package/dist/models/DocumentResponse.d.ts +11 -3
  139. package/dist/models/DocumentResponse.js +9 -3
  140. package/dist/models/DocumentVersionMetadata.d.ts +7 -0
  141. package/dist/models/DocumentVersionMetadata.js +3 -0
  142. package/dist/models/DocumentVersionMetadataUpdate.d.ts +7 -0
  143. package/dist/models/DocumentVersionMetadataUpdate.js +3 -0
  144. package/dist/models/DocumentVersionResponse.d.ts +4 -3
  145. package/dist/models/DocumentVersionResponse.js +4 -3
  146. package/dist/models/DocxParagraphAnchorInput.d.ts +79 -0
  147. package/dist/models/DocxParagraphAnchorInput.js +79 -0
  148. package/dist/models/DocxParagraphAnchorOutput.d.ts +88 -0
  149. package/dist/models/DocxParagraphAnchorOutput.js +82 -0
  150. package/dist/models/FolderResponse.d.ts +7 -0
  151. package/dist/models/FolderResponse.js +5 -0
  152. package/dist/models/FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponse.d.ts +33 -0
  153. package/dist/models/FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponse.js +63 -0
  154. package/dist/models/InputSnapshot.d.ts +81 -0
  155. package/dist/models/{ABCDPathSnapshot.js → InputSnapshot.js} +24 -18
  156. package/dist/models/InstructionSnapshot.d.ts +16 -10
  157. package/dist/models/InstructionSnapshot.js +12 -7
  158. package/dist/models/MemoryChunkResponse.d.ts +1 -1
  159. package/dist/models/MemoryKind.d.ts +1 -4
  160. package/dist/models/MemoryKind.js +1 -4
  161. package/dist/models/PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDiscriminator.d.ts +66 -0
  162. package/dist/models/PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDiscriminator.js +78 -0
  163. package/dist/models/PaginatedResponseMemoryChunkResponse.d.ts +66 -0
  164. package/dist/models/PaginatedResponseMemoryChunkResponse.js +78 -0
  165. package/dist/models/PathPartApprovalDecision.d.ts +6 -5
  166. package/dist/models/PathPartApprovalDecision.js +7 -6
  167. package/dist/models/PathPartApprovalResponse.d.ts +2 -23
  168. package/dist/models/PathPartApprovalResponse.js +3 -15
  169. package/dist/models/PathPartApprovalState.d.ts +32 -0
  170. package/dist/models/PathPartApprovalState.js +58 -0
  171. package/dist/models/SectionContentItem.d.ts +7 -0
  172. package/dist/models/SectionContentItem.js +5 -0
  173. package/dist/models/SetApprovalStateRequest.d.ts +69 -0
  174. package/dist/models/SetApprovalStateRequest.js +65 -0
  175. package/dist/models/SetWorkflowRunApprovalRequest.d.ts +64 -0
  176. package/dist/models/SetWorkflowRunApprovalRequest.js +64 -0
  177. package/dist/models/ThreadMessageResponse.d.ts +7 -1
  178. package/dist/models/ThreadMessageResponse.js +2 -0
  179. package/dist/models/ThreadResponse.d.ts +1 -1
  180. package/dist/models/UpdateThreadRequest.d.ts +1 -1
  181. package/dist/models/UpdateWorkflowDefinitionRequest.d.ts +4 -41
  182. package/dist/models/UpdateWorkflowDefinitionRequest.js +7 -38
  183. package/dist/models/UpdateWorkflowRunRequest.d.ts +58 -0
  184. package/dist/models/UpdateWorkflowRunRequest.js +61 -0
  185. package/dist/models/UserInfo.d.ts +59 -0
  186. package/dist/models/UserInfo.js +60 -0
  187. package/dist/models/UserMessageRequest.d.ts +1 -1
  188. package/dist/models/UserMessageResponse.d.ts +1 -1
  189. package/dist/models/WorkflowDefinitionResponse.d.ts +42 -24
  190. package/dist/models/WorkflowDefinitionResponse.js +32 -25
  191. package/dist/models/WorkflowExecutionState.d.ts +42 -0
  192. package/dist/models/WorkflowExecutionState.js +68 -0
  193. package/dist/models/WorkflowRunResponse.d.ts +91 -18
  194. package/dist/models/WorkflowRunResponse.js +60 -19
  195. package/dist/models/WorkflowRunSnapshot.d.ts +14 -37
  196. package/dist/models/WorkflowRunSnapshot.js +7 -28
  197. package/dist/models/XlsxCellAnchorInput.d.ts +79 -0
  198. package/dist/models/XlsxCellAnchorInput.js +75 -0
  199. package/dist/models/XlsxCellAnchorInputOrDocxParagraphAnchorInput.d.ts +27 -0
  200. package/dist/models/XlsxCellAnchorInputOrDocxParagraphAnchorInput.js +53 -0
  201. package/dist/models/XlsxCellAnchorOutput.d.ts +90 -0
  202. package/dist/models/XlsxCellAnchorOutput.js +78 -0
  203. package/dist/models/XlsxCellAnchorOutputOrDocxParagraphAnchorOutput.d.ts +27 -0
  204. package/dist/models/XlsxCellAnchorOutputOrDocxParagraphAnchorOutput.js +53 -0
  205. package/dist/models/index.d.ts +18 -10
  206. package/dist/models/index.js +18 -10
  207. package/docs/ChunkContentItem.md +2 -0
  208. package/docs/CitedChunk.md +45 -0
  209. package/docs/CloneWorkflowRunRequest.md +35 -0
  210. package/docs/CreateThreadMessageRequest.md +0 -1
  211. package/docs/CreateThreadRequest.md +4 -1
  212. package/docs/CreateWorkflowDefinitionRequest.md +3 -13
  213. package/docs/DocumentCheckoutApi.md +19 -16
  214. package/docs/DocumentCheckoutResponse.md +4 -4
  215. package/docs/DocumentResponse.md +4 -2
  216. package/docs/DocumentVersionMetadata.md +2 -0
  217. package/docs/DocumentVersionMetadataUpdate.md +2 -0
  218. package/docs/DocumentVersionResponse.md +2 -2
  219. package/docs/DocumentVersionsApi.md +0 -2
  220. package/docs/DocumentsApi.md +0 -2
  221. package/docs/{ABCDPathSnapshot.md → DocxParagraphAnchorInput.md} +15 -11
  222. package/docs/DocxParagraphAnchorOutput.md +45 -0
  223. package/docs/FolderResponse.md +2 -0
  224. package/docs/FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponse.md +108 -0
  225. package/docs/FoldersApi.md +4 -6
  226. package/docs/InputSnapshot.md +39 -0
  227. package/docs/InstructionSnapshot.md +4 -4
  228. package/docs/MemoryChunkResponse.md +0 -1
  229. package/docs/MemoryKind.md +1 -1
  230. package/docs/PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDiscriminator.md +40 -0
  231. package/docs/{PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseDiscriminator.md → PaginatedResponseMemoryChunkResponse.md} +5 -5
  232. package/docs/PathPartApprovalDecision.md +1 -1
  233. package/docs/PathPartApprovalResponse.md +3 -9
  234. package/docs/{InvokeWorkflowRequest.md → PathPartApprovalState.md} +5 -9
  235. package/docs/PathPartApprovalsApi.md +161 -0
  236. package/docs/PathPartsApi.md +1 -1
  237. package/docs/SectionContentItem.md +2 -0
  238. package/docs/SectionContentItemOrChunkContentItem.md +2 -0
  239. package/docs/SetApprovalStateRequest.md +37 -0
  240. package/docs/SetWorkflowRunApprovalRequest.md +37 -0
  241. package/docs/ThreadMessageResponse.md +2 -1
  242. package/docs/ThreadResponse.md +0 -1
  243. package/docs/UpdateThreadRequest.md +0 -1
  244. package/docs/UpdateWorkflowDefinitionRequest.md +3 -13
  245. package/docs/UpdateWorkflowRunRequest.md +37 -0
  246. package/docs/{RejectFileRequest.md → UserInfo.md} +11 -7
  247. package/docs/UserMessageRequest.md +0 -1
  248. package/docs/UserMessageResponse.md +0 -1
  249. package/docs/WorkflowDefinitionResponse.md +15 -13
  250. package/docs/WorkflowDefinitionsApi.md +38 -32
  251. package/docs/WorkflowExecutionState.md +33 -0
  252. package/docs/WorkflowMemoryApi.md +8 -4
  253. package/docs/WorkflowRunResponse.md +29 -9
  254. package/docs/WorkflowRunSnapshot.md +5 -15
  255. package/docs/WorkflowRunsApi.md +122 -42
  256. package/docs/{ListMemoryChunksResponse.md → XlsxCellAnchorInput.md} +15 -6
  257. package/docs/XlsxCellAnchorInputOrDocxParagraphAnchorInput.md +46 -0
  258. package/docs/XlsxCellAnchorOutput.md +45 -0
  259. package/docs/XlsxCellAnchorOutputOrDocxParagraphAnchorOutput.md +48 -0
  260. package/package.json +1 -1
  261. package/src/apis/DocumentCheckoutApi.ts +35 -28
  262. package/src/apis/DocumentVersionsApi.ts +1 -4
  263. package/src/apis/DocumentsApi.ts +1 -4
  264. package/src/apis/FoldersApi.ts +14 -17
  265. package/src/apis/PathPartApprovalsApi.ts +228 -0
  266. package/src/apis/PathPartsApi.ts +4 -4
  267. package/src/apis/WorkflowDefinitionsApi.ts +102 -78
  268. package/src/apis/WorkflowMemoryApi.ts +23 -12
  269. package/src/apis/WorkflowRunsApi.ts +198 -104
  270. package/src/apis/index.ts +1 -0
  271. package/src/models/ChunkContentItem.ts +16 -0
  272. package/src/models/CitedChunk.ts +141 -0
  273. package/src/models/CloneWorkflowRunRequest.ts +90 -0
  274. package/src/models/CreateThreadMessageRequest.ts +1 -1
  275. package/src/models/CreateThreadRequest.ts +21 -1
  276. package/src/models/CreateWorkflowDefinitionRequest.ts +11 -87
  277. package/src/models/DocumentCheckoutResponse.ts +19 -11
  278. package/src/models/DocumentResponse.ts +29 -6
  279. package/src/models/DocumentVersionMetadata.ts +15 -0
  280. package/src/models/DocumentVersionMetadataUpdate.ts +15 -0
  281. package/src/models/DocumentVersionResponse.ts +13 -6
  282. package/src/models/DocxParagraphAnchorInput.ts +142 -0
  283. package/src/models/DocxParagraphAnchorOutput.ts +153 -0
  284. package/src/models/FolderResponse.ts +16 -0
  285. package/src/models/FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponse.ts +94 -0
  286. package/src/models/InputSnapshot.ts +126 -0
  287. package/src/models/InstructionSnapshot.ts +22 -22
  288. package/src/models/MemoryChunkResponse.ts +1 -1
  289. package/src/models/MemoryKind.ts +1 -4
  290. package/src/models/{PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseDiscriminator.ts → PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDiscriminator.ts} +25 -25
  291. package/src/models/PaginatedResponseMemoryChunkResponse.ts +130 -0
  292. package/src/models/PathPartApprovalDecision.ts +7 -6
  293. package/src/models/PathPartApprovalResponse.ts +5 -35
  294. package/src/models/PathPartApprovalState.ts +60 -0
  295. package/src/models/SectionContentItem.ts +17 -0
  296. package/src/models/SetApprovalStateRequest.ts +113 -0
  297. package/src/models/SetWorkflowRunApprovalRequest.ts +108 -0
  298. package/src/models/ThreadMessageResponse.ts +9 -1
  299. package/src/models/ThreadResponse.ts +1 -1
  300. package/src/models/UpdateThreadRequest.ts +1 -1
  301. package/src/models/UpdateWorkflowDefinitionRequest.ts +11 -90
  302. package/src/models/UpdateWorkflowRunRequest.ts +103 -0
  303. package/src/models/UserInfo.ts +101 -0
  304. package/src/models/UserMessageRequest.ts +1 -1
  305. package/src/models/UserMessageResponse.ts +1 -1
  306. package/src/models/WorkflowDefinitionResponse.ts +68 -53
  307. package/src/models/WorkflowExecutionState.ts +70 -0
  308. package/src/models/WorkflowRunResponse.ts +151 -44
  309. package/src/models/WorkflowRunSnapshot.ts +25 -71
  310. package/src/models/XlsxCellAnchorInput.ts +138 -0
  311. package/src/models/XlsxCellAnchorInputOrDocxParagraphAnchorInput.ts +72 -0
  312. package/src/models/XlsxCellAnchorOutput.ts +151 -0
  313. package/src/models/XlsxCellAnchorOutputOrDocxParagraphAnchorOutput.ts +72 -0
  314. package/src/models/index.ts +18 -10
  315. package/dist/esm/models/ABCDPathSnapshot.d.ts +0 -60
  316. package/dist/esm/models/FolderResponseOrDocumentResponse.d.ts +0 -27
  317. package/dist/esm/models/FolderResponseOrDocumentResponse.js +0 -47
  318. package/dist/esm/models/InvokeWorkflowRequest.d.ts +0 -53
  319. package/dist/esm/models/InvokeWorkflowRequest.js +0 -52
  320. package/dist/esm/models/ListMemoryChunksResponse.d.ts +0 -48
  321. package/dist/esm/models/ListMemoryChunksResponse.js +0 -45
  322. package/dist/esm/models/PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseDiscriminator.d.ts +0 -66
  323. package/dist/esm/models/RejectFileRequest.d.ts +0 -47
  324. package/dist/esm/models/RejectFileRequest.js +0 -49
  325. package/dist/esm/models/SelfHostedRunnerConfig.d.ts +0 -53
  326. package/dist/esm/models/SelfHostedRunnerConfig.js +0 -53
  327. package/dist/esm/models/SelfHostedRunnerConfigResponse.d.ts +0 -47
  328. package/dist/esm/models/SelfHostedRunnerConfigResponse.js +0 -49
  329. package/dist/esm/models/WorkflowRunStatus.d.ts +0 -45
  330. package/dist/esm/models/WorkflowRunStatus.js +0 -63
  331. package/dist/esm/models/WorkflowRunnerType.d.ts +0 -25
  332. package/dist/esm/models/WorkflowRunnerType.js +0 -43
  333. package/dist/models/ABCDPathSnapshot.d.ts +0 -60
  334. package/dist/models/FolderResponseOrDocumentResponse.d.ts +0 -27
  335. package/dist/models/FolderResponseOrDocumentResponse.js +0 -53
  336. package/dist/models/InvokeWorkflowRequest.d.ts +0 -53
  337. package/dist/models/InvokeWorkflowRequest.js +0 -60
  338. package/dist/models/ListMemoryChunksResponse.d.ts +0 -48
  339. package/dist/models/ListMemoryChunksResponse.js +0 -53
  340. package/dist/models/PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseDiscriminator.d.ts +0 -66
  341. package/dist/models/PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseDiscriminator.js +0 -78
  342. package/dist/models/RejectFileRequest.d.ts +0 -47
  343. package/dist/models/RejectFileRequest.js +0 -57
  344. package/dist/models/SelfHostedRunnerConfig.d.ts +0 -53
  345. package/dist/models/SelfHostedRunnerConfig.js +0 -61
  346. package/dist/models/SelfHostedRunnerConfigResponse.d.ts +0 -47
  347. package/dist/models/SelfHostedRunnerConfigResponse.js +0 -57
  348. package/dist/models/WorkflowRunStatus.d.ts +0 -45
  349. package/dist/models/WorkflowRunStatus.js +0 -71
  350. package/dist/models/WorkflowRunnerType.d.ts +0 -25
  351. package/dist/models/WorkflowRunnerType.js +0 -51
  352. package/docs/FolderResponseOrDocumentResponse.md +0 -70
  353. package/docs/SelfHostedRunnerConfig.md +0 -37
  354. package/docs/SelfHostedRunnerConfigResponse.md +0 -35
  355. package/docs/WorkflowRunStatus.md +0 -33
  356. package/docs/WorkflowRunnerType.md +0 -33
  357. package/src/models/ABCDPathSnapshot.ts +0 -111
  358. package/src/models/FolderResponseOrDocumentResponse.ts +0 -72
  359. package/src/models/InvokeWorkflowRequest.ts +0 -97
  360. package/src/models/ListMemoryChunksResponse.ts +0 -91
  361. package/src/models/RejectFileRequest.ts +0 -87
  362. package/src/models/SelfHostedRunnerConfig.ts +0 -96
  363. package/src/models/SelfHostedRunnerConfigResponse.ts +0 -87
  364. package/src/models/WorkflowRunStatus.ts +0 -73
  365. package/src/models/WorkflowRunnerType.ts +0 -53
@@ -26,19 +26,20 @@ import {
26
26
  } from '../models/index';
27
27
 
28
28
  export interface AcquireDocumentCheckoutRequest {
29
- pathPartId: string;
29
+ documentId: string;
30
+ force?: boolean;
30
31
  authorization?: string | null;
31
32
  ksUat?: string | null;
32
33
  }
33
34
 
34
35
  export interface GetDocumentCheckoutRequest {
35
- pathPartId: string;
36
+ documentId: string;
36
37
  authorization?: string | null;
37
38
  ksUat?: string | null;
38
39
  }
39
40
 
40
41
  export interface ReleaseDocumentCheckoutRequest {
41
- pathPartId: string;
42
+ documentId: string;
42
43
  authorization?: string | null;
43
44
  ksUat?: string | null;
44
45
  }
@@ -52,7 +53,8 @@ export interface ReleaseDocumentCheckoutRequest {
52
53
  export interface DocumentCheckoutApiInterface {
53
54
  /**
54
55
  * Creates request options for acquireDocumentCheckout without sending the request
55
- * @param {string} pathPartId Document\'s PathPart ID
56
+ * @param {string} documentId Document ID
57
+ * @param {boolean} [force] OWNER/ADMIN only — atomically take the checkout regardless of the current holder. Sealed docs are still refused.
56
58
  * @param {string} [authorization]
57
59
  * @param {string} [ksUat]
58
60
  * @throws {RequiredError}
@@ -61,9 +63,10 @@ export interface DocumentCheckoutApiInterface {
61
63
  acquireDocumentCheckoutRequestOpts(requestParameters: AcquireDocumentCheckoutRequest): Promise<runtime.RequestOpts>;
62
64
 
63
65
  /**
64
- * Acquire a write lock on the document. If the caller already holds the lock, re-acquire refreshes ``acquired_at``; the response is 200 in both cases. If another user holds the lock, returns 409. Locks have no TTL — they persist until released by the holder.
66
+ * Acquire a write lock on the document. If the caller already holds the lock, re-acquire refreshes ``acquired_at``; the response is 200 in both cases. If another user holds the lock, returns 409. ``?force=true`` lets OWNER/ADMIN steal the lock from the current holder; a sealed (approved) document is refused regardless of ``force``. Locks have no TTL — they persist until released by the holder.
65
67
  * @summary Acquire Document Checkout Handler
66
- * @param {string} pathPartId Document\&#39;s PathPart ID
68
+ * @param {string} documentId Document ID
69
+ * @param {boolean} [force] OWNER/ADMIN only — atomically take the checkout regardless of the current holder. Sealed docs are still refused.
67
70
  * @param {string} [authorization]
68
71
  * @param {string} [ksUat]
69
72
  * @param {*} [options] Override http request option.
@@ -73,14 +76,14 @@ export interface DocumentCheckoutApiInterface {
73
76
  acquireDocumentCheckoutRaw(requestParameters: AcquireDocumentCheckoutRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DocumentCheckoutResponse>>;
74
77
 
75
78
  /**
76
- * Acquire a write lock on the document. If the caller already holds the lock, re-acquire refreshes ``acquired_at``; the response is 200 in both cases. If another user holds the lock, returns 409. Locks have no TTL — they persist until released by the holder.
79
+ * Acquire a write lock on the document. If the caller already holds the lock, re-acquire refreshes ``acquired_at``; the response is 200 in both cases. If another user holds the lock, returns 409. ``?force=true`` lets OWNER/ADMIN steal the lock from the current holder; a sealed (approved) document is refused regardless of ``force``. Locks have no TTL — they persist until released by the holder.
77
80
  * Acquire Document Checkout Handler
78
81
  */
79
82
  acquireDocumentCheckout(requestParameters: AcquireDocumentCheckoutRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DocumentCheckoutResponse>;
80
83
 
81
84
  /**
82
85
  * Creates request options for getDocumentCheckout without sending the request
83
- * @param {string} pathPartId Document\&#39;s PathPart ID
86
+ * @param {string} documentId Document ID
84
87
  * @param {string} [authorization]
85
88
  * @param {string} [ksUat]
86
89
  * @throws {RequiredError}
@@ -91,7 +94,7 @@ export interface DocumentCheckoutApiInterface {
91
94
  /**
92
95
  * Get the active checkout for the document. 404 if no active checkout exists. The holder can always GET their own lock regardless of current path permissions (parallel to the release holder-bypass).
93
96
  * @summary Get Document Checkout Handler
94
- * @param {string} pathPartId Document\&#39;s PathPart ID
97
+ * @param {string} documentId Document ID
95
98
  * @param {string} [authorization]
96
99
  * @param {string} [ksUat]
97
100
  * @param {*} [options] Override http request option.
@@ -108,7 +111,7 @@ export interface DocumentCheckoutApiInterface {
108
111
 
109
112
  /**
110
113
  * Creates request options for releaseDocumentCheckout without sending the request
111
- * @param {string} pathPartId Document\&#39;s PathPart ID
114
+ * @param {string} documentId Document ID
112
115
  * @param {string} [authorization]
113
116
  * @param {string} [ksUat]
114
117
  * @throws {RequiredError}
@@ -119,7 +122,7 @@ export interface DocumentCheckoutApiInterface {
119
122
  /**
120
123
  * Release the write lock on the document. Only the holder may release the lock; others receive 403. The holder can always release regardless of current path permissions (in case a folder move relocated the doc to a path the holder can no longer write to).
121
124
  * @summary Release Document Checkout Handler
122
- * @param {string} pathPartId Document\&#39;s PathPart ID
125
+ * @param {string} documentId Document ID
123
126
  * @param {string} [authorization]
124
127
  * @param {string} [ksUat]
125
128
  * @param {*} [options] Override http request option.
@@ -145,15 +148,19 @@ export class DocumentCheckoutApi extends runtime.BaseAPI implements DocumentChec
145
148
  * Creates request options for acquireDocumentCheckout without sending the request
146
149
  */
147
150
  async acquireDocumentCheckoutRequestOpts(requestParameters: AcquireDocumentCheckoutRequest): Promise<runtime.RequestOpts> {
148
- if (requestParameters['pathPartId'] == null) {
151
+ if (requestParameters['documentId'] == null) {
149
152
  throw new runtime.RequiredError(
150
- 'pathPartId',
151
- 'Required parameter "pathPartId" was null or undefined when calling acquireDocumentCheckout().'
153
+ 'documentId',
154
+ 'Required parameter "documentId" was null or undefined when calling acquireDocumentCheckout().'
152
155
  );
153
156
  }
154
157
 
155
158
  const queryParameters: any = {};
156
159
 
160
+ if (requestParameters['force'] != null) {
161
+ queryParameters['force'] = requestParameters['force'];
162
+ }
163
+
157
164
  const headerParameters: runtime.HTTPHeaders = {};
158
165
 
159
166
  if (requestParameters['authorization'] != null) {
@@ -161,8 +168,8 @@ export class DocumentCheckoutApi extends runtime.BaseAPI implements DocumentChec
161
168
  }
162
169
 
163
170
 
164
- let urlPath = `/v1/documents/{path_part_id}/checkout`;
165
- urlPath = urlPath.replace(`{${"path_part_id"}}`, encodeURIComponent(String(requestParameters['pathPartId'])));
171
+ let urlPath = `/v1/documents/{document_id}/checkout`;
172
+ urlPath = urlPath.replace(`{${"document_id"}}`, encodeURIComponent(String(requestParameters['documentId'])));
166
173
 
167
174
  return {
168
175
  path: urlPath,
@@ -173,7 +180,7 @@ export class DocumentCheckoutApi extends runtime.BaseAPI implements DocumentChec
173
180
  }
174
181
 
175
182
  /**
176
- * Acquire a write lock on the document. If the caller already holds the lock, re-acquire refreshes ``acquired_at``; the response is 200 in both cases. If another user holds the lock, returns 409. Locks have no TTL — they persist until released by the holder.
183
+ * Acquire a write lock on the document. If the caller already holds the lock, re-acquire refreshes ``acquired_at``; the response is 200 in both cases. If another user holds the lock, returns 409. ``?force=true`` lets OWNER/ADMIN steal the lock from the current holder; a sealed (approved) document is refused regardless of ``force``. Locks have no TTL — they persist until released by the holder.
177
184
  * Acquire Document Checkout Handler
178
185
  */
179
186
  async acquireDocumentCheckoutRaw(requestParameters: AcquireDocumentCheckoutRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DocumentCheckoutResponse>> {
@@ -184,7 +191,7 @@ export class DocumentCheckoutApi extends runtime.BaseAPI implements DocumentChec
184
191
  }
185
192
 
186
193
  /**
187
- * Acquire a write lock on the document. If the caller already holds the lock, re-acquire refreshes ``acquired_at``; the response is 200 in both cases. If another user holds the lock, returns 409. Locks have no TTL — they persist until released by the holder.
194
+ * Acquire a write lock on the document. If the caller already holds the lock, re-acquire refreshes ``acquired_at``; the response is 200 in both cases. If another user holds the lock, returns 409. ``?force=true`` lets OWNER/ADMIN steal the lock from the current holder; a sealed (approved) document is refused regardless of ``force``. Locks have no TTL — they persist until released by the holder.
188
195
  * Acquire Document Checkout Handler
189
196
  */
190
197
  async acquireDocumentCheckout(requestParameters: AcquireDocumentCheckoutRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DocumentCheckoutResponse> {
@@ -196,10 +203,10 @@ export class DocumentCheckoutApi extends runtime.BaseAPI implements DocumentChec
196
203
  * Creates request options for getDocumentCheckout without sending the request
197
204
  */
198
205
  async getDocumentCheckoutRequestOpts(requestParameters: GetDocumentCheckoutRequest): Promise<runtime.RequestOpts> {
199
- if (requestParameters['pathPartId'] == null) {
206
+ if (requestParameters['documentId'] == null) {
200
207
  throw new runtime.RequiredError(
201
- 'pathPartId',
202
- 'Required parameter "pathPartId" was null or undefined when calling getDocumentCheckout().'
208
+ 'documentId',
209
+ 'Required parameter "documentId" was null or undefined when calling getDocumentCheckout().'
203
210
  );
204
211
  }
205
212
 
@@ -212,8 +219,8 @@ export class DocumentCheckoutApi extends runtime.BaseAPI implements DocumentChec
212
219
  }
213
220
 
214
221
 
215
- let urlPath = `/v1/documents/{path_part_id}/checkout`;
216
- urlPath = urlPath.replace(`{${"path_part_id"}}`, encodeURIComponent(String(requestParameters['pathPartId'])));
222
+ let urlPath = `/v1/documents/{document_id}/checkout`;
223
+ urlPath = urlPath.replace(`{${"document_id"}}`, encodeURIComponent(String(requestParameters['documentId'])));
217
224
 
218
225
  return {
219
226
  path: urlPath,
@@ -247,10 +254,10 @@ export class DocumentCheckoutApi extends runtime.BaseAPI implements DocumentChec
247
254
  * Creates request options for releaseDocumentCheckout without sending the request
248
255
  */
249
256
  async releaseDocumentCheckoutRequestOpts(requestParameters: ReleaseDocumentCheckoutRequest): Promise<runtime.RequestOpts> {
250
- if (requestParameters['pathPartId'] == null) {
257
+ if (requestParameters['documentId'] == null) {
251
258
  throw new runtime.RequiredError(
252
- 'pathPartId',
253
- 'Required parameter "pathPartId" was null or undefined when calling releaseDocumentCheckout().'
259
+ 'documentId',
260
+ 'Required parameter "documentId" was null or undefined when calling releaseDocumentCheckout().'
254
261
  );
255
262
  }
256
263
 
@@ -263,8 +270,8 @@ export class DocumentCheckoutApi extends runtime.BaseAPI implements DocumentChec
263
270
  }
264
271
 
265
272
 
266
- let urlPath = `/v1/documents/{path_part_id}/checkout`;
267
- urlPath = urlPath.replace(`{${"path_part_id"}}`, encodeURIComponent(String(requestParameters['pathPartId'])));
273
+ let urlPath = `/v1/documents/{document_id}/checkout`;
274
+ urlPath = urlPath.replace(`{${"document_id"}}`, encodeURIComponent(String(requestParameters['documentId'])));
268
275
 
269
276
  return {
270
277
  path: urlPath,
@@ -236,7 +236,7 @@ export interface DocumentVersionsApiInterface {
236
236
  getDocumentVersionRequestOpts(requestParameters: GetDocumentVersionRequest): Promise<runtime.RequestOpts>;
237
237
 
238
238
  /**
239
- * Get a document version by its ID.
239
+ *
240
240
  * @summary Get Document Version Handler
241
241
  * @param {string} versionId DocumentVersion ID
242
242
  * @param {boolean} [includePageScreenshots] When true, populate page_screenshot_urls with presigned URLs for every per-page WEBP screenshot the ingestion pipeline produced. Off by default to keep typical responses small.
@@ -249,7 +249,6 @@ export interface DocumentVersionsApiInterface {
249
249
  getDocumentVersionRaw(requestParameters: GetDocumentVersionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DocumentVersionResponse>>;
250
250
 
251
251
  /**
252
- * Get a document version by its ID.
253
252
  * Get Document Version Handler
254
253
  */
255
254
  getDocumentVersion(requestParameters: GetDocumentVersionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DocumentVersionResponse>;
@@ -609,7 +608,6 @@ export class DocumentVersionsApi extends runtime.BaseAPI implements DocumentVers
609
608
  }
610
609
 
611
610
  /**
612
- * Get a document version by its ID.
613
611
  * Get Document Version Handler
614
612
  */
615
613
  async getDocumentVersionRaw(requestParameters: GetDocumentVersionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DocumentVersionResponse>> {
@@ -620,7 +618,6 @@ export class DocumentVersionsApi extends runtime.BaseAPI implements DocumentVers
620
618
  }
621
619
 
622
620
  /**
623
- * Get a document version by its ID.
624
621
  * Get Document Version Handler
625
622
  */
626
623
  async getDocumentVersion(requestParameters: GetDocumentVersionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DocumentVersionResponse> {
@@ -183,7 +183,7 @@ export interface DocumentsApiInterface {
183
183
  getDocumentRequestOpts(requestParameters: GetDocumentRequest): Promise<runtime.RequestOpts>;
184
184
 
185
185
  /**
186
- * Get a document by its document ID.
186
+ *
187
187
  * @summary Get Document Handler
188
188
  * @param {string} documentId
189
189
  * @param {boolean} [withTags] Include tags in the response (default: false)
@@ -196,7 +196,6 @@ export interface DocumentsApiInterface {
196
196
  getDocumentRaw(requestParameters: GetDocumentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DocumentResponse>>;
197
197
 
198
198
  /**
199
- * Get a document by its document ID.
200
199
  * Get Document Handler
201
200
  */
202
201
  getDocument(requestParameters: GetDocumentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DocumentResponse>;
@@ -491,7 +490,6 @@ export class DocumentsApi extends runtime.BaseAPI implements DocumentsApiInterfa
491
490
  }
492
491
 
493
492
  /**
494
- * Get a document by its document ID.
495
493
  * Get Document Handler
496
494
  */
497
495
  async getDocumentRaw(requestParameters: GetDocumentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DocumentResponse>> {
@@ -502,7 +500,6 @@ export class DocumentsApi extends runtime.BaseAPI implements DocumentsApiInterfa
502
500
  }
503
501
 
504
502
  /**
505
- * Get a document by its document ID.
506
503
  * Get Document Handler
507
504
  */
508
505
  async getDocument(requestParameters: GetDocumentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DocumentResponse> {
@@ -20,7 +20,7 @@ import type {
20
20
  FolderActionResponse,
21
21
  FolderResponse,
22
22
  HTTPValidationError,
23
- PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseDiscriminator,
23
+ PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDiscriminator,
24
24
  PaginatedResponseFolderResponse,
25
25
  PathOrder,
26
26
  SearchSortOrder,
@@ -38,8 +38,8 @@ import {
38
38
  FolderResponseToJSON,
39
39
  HTTPValidationErrorFromJSON,
40
40
  HTTPValidationErrorToJSON,
41
- PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseDiscriminatorFromJSON,
42
- PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseDiscriminatorToJSON,
41
+ PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDiscriminatorFromJSON,
42
+ PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDiscriminatorToJSON,
43
43
  PaginatedResponseFolderResponseFromJSON,
44
44
  PaginatedResponseFolderResponseToJSON,
45
45
  PathOrderFromJSON,
@@ -223,7 +223,7 @@ export interface FoldersApiInterface {
223
223
  getFolderRequestOpts(requestParameters: GetFolderRequest): Promise<runtime.RequestOpts>;
224
224
 
225
225
  /**
226
- * Get a folder by its folder ID.
226
+ *
227
227
  * @summary Get Folder Handler
228
228
  * @param {string} folderId
229
229
  * @param {boolean} [withTags] Include tags in the response (default: false)
@@ -236,7 +236,6 @@ export interface FoldersApiInterface {
236
236
  getFolderRaw(requestParameters: GetFolderRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FolderResponse>>;
237
237
 
238
238
  /**
239
- * Get a folder by its folder ID.
240
239
  * Get Folder Handler
241
240
  */
242
241
  getFolder(requestParameters: GetFolderRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FolderResponse>;
@@ -271,13 +270,13 @@ export interface FoldersApiInterface {
271
270
  * @throws {RequiredError}
272
271
  * @memberof FoldersApiInterface
273
272
  */
274
- listFolderContentsRaw(requestParameters: ListFolderContentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseDiscriminator>>;
273
+ listFolderContentsRaw(requestParameters: ListFolderContentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDiscriminator>>;
275
274
 
276
275
  /**
277
276
  * List all contents (folders and documents) under a folder. Returns a discriminated union of FolderResponse and DocumentResponse items, distinguished by the `part_type` field (\"FOLDER\" or \"DOCUMENT\"). When with_tags=true, each item includes a tags field with the full tag objects. This is the preferred way to list folder contents when you need document metadata. For generic path traversal of folders only, use GET /path-parts.
278
277
  * List Folder Contents Handler
279
278
  */
280
- listFolderContents(requestParameters: ListFolderContentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseDiscriminator>;
279
+ listFolderContents(requestParameters: ListFolderContentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDiscriminator>;
281
280
 
282
281
  /**
283
282
  * Creates request options for listFolders without sending the request
@@ -347,13 +346,13 @@ export interface FoldersApiInterface {
347
346
  * @throws {RequiredError}
348
347
  * @memberof FoldersApiInterface
349
348
  */
350
- searchItemsRaw(requestParameters: SearchItemsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseDiscriminator>>;
349
+ searchItemsRaw(requestParameters: SearchItemsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDiscriminator>>;
351
350
 
352
351
  /**
353
352
  * Search for folders and documents by name. Performs a case-insensitive partial name match using trigram indexing. Results are filtered by the current user\'s path permissions. When parent_path_part_id is provided, only items under that folder are searched. Otherwise, all accessible items across the tenant are searched.
354
353
  * Search Items Handler
355
354
  */
356
- searchItems(requestParameters: SearchItemsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseDiscriminator>;
355
+ searchItems(requestParameters: SearchItemsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDiscriminator>;
357
356
 
358
357
  /**
359
358
  * Creates request options for updateFolder without sending the request
@@ -593,7 +592,6 @@ export class FoldersApi extends runtime.BaseAPI implements FoldersApiInterface {
593
592
  }
594
593
 
595
594
  /**
596
- * Get a folder by its folder ID.
597
595
  * Get Folder Handler
598
596
  */
599
597
  async getFolderRaw(requestParameters: GetFolderRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FolderResponse>> {
@@ -604,7 +602,6 @@ export class FoldersApi extends runtime.BaseAPI implements FoldersApiInterface {
604
602
  }
605
603
 
606
604
  /**
607
- * Get a folder by its folder ID.
608
605
  * Get Folder Handler
609
606
  */
610
607
  async getFolder(requestParameters: GetFolderRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FolderResponse> {
@@ -667,18 +664,18 @@ export class FoldersApi extends runtime.BaseAPI implements FoldersApiInterface {
667
664
  * List all contents (folders and documents) under a folder. Returns a discriminated union of FolderResponse and DocumentResponse items, distinguished by the `part_type` field (\"FOLDER\" or \"DOCUMENT\"). When with_tags=true, each item includes a tags field with the full tag objects. This is the preferred way to list folder contents when you need document metadata. For generic path traversal of folders only, use GET /path-parts.
668
665
  * List Folder Contents Handler
669
666
  */
670
- async listFolderContentsRaw(requestParameters: ListFolderContentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseDiscriminator>> {
667
+ async listFolderContentsRaw(requestParameters: ListFolderContentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDiscriminator>> {
671
668
  const requestOptions = await this.listFolderContentsRequestOpts(requestParameters);
672
669
  const response = await this.request(requestOptions, initOverrides);
673
670
 
674
- return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseDiscriminatorFromJSON(jsonValue));
671
+ return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDiscriminatorFromJSON(jsonValue));
675
672
  }
676
673
 
677
674
  /**
678
675
  * List all contents (folders and documents) under a folder. Returns a discriminated union of FolderResponse and DocumentResponse items, distinguished by the `part_type` field (\"FOLDER\" or \"DOCUMENT\"). When with_tags=true, each item includes a tags field with the full tag objects. This is the preferred way to list folder contents when you need document metadata. For generic path traversal of folders only, use GET /path-parts.
679
676
  * List Folder Contents Handler
680
677
  */
681
- async listFolderContents(requestParameters: ListFolderContentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseDiscriminator> {
678
+ async listFolderContents(requestParameters: ListFolderContentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDiscriminator> {
682
679
  const response = await this.listFolderContentsRaw(requestParameters, initOverrides);
683
680
  return await response.value();
684
681
  }
@@ -808,18 +805,18 @@ export class FoldersApi extends runtime.BaseAPI implements FoldersApiInterface {
808
805
  * Search for folders and documents by name. Performs a case-insensitive partial name match using trigram indexing. Results are filtered by the current user\'s path permissions. When parent_path_part_id is provided, only items under that folder are searched. Otherwise, all accessible items across the tenant are searched.
809
806
  * Search Items Handler
810
807
  */
811
- async searchItemsRaw(requestParameters: SearchItemsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseDiscriminator>> {
808
+ async searchItemsRaw(requestParameters: SearchItemsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDiscriminator>> {
812
809
  const requestOptions = await this.searchItemsRequestOpts(requestParameters);
813
810
  const response = await this.request(requestOptions, initOverrides);
814
811
 
815
- return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseDiscriminatorFromJSON(jsonValue));
812
+ return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDiscriminatorFromJSON(jsonValue));
816
813
  }
817
814
 
818
815
  /**
819
816
  * Search for folders and documents by name. Performs a case-insensitive partial name match using trigram indexing. Results are filtered by the current user\'s path permissions. When parent_path_part_id is provided, only items under that folder are searched. Otherwise, all accessible items across the tenant are searched.
820
817
  * Search Items Handler
821
818
  */
822
- async searchItems(requestParameters: SearchItemsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseDiscriminator> {
819
+ async searchItems(requestParameters: SearchItemsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDiscriminator> {
823
820
  const response = await this.searchItemsRaw(requestParameters, initOverrides);
824
821
  return await response.value();
825
822
  }
@@ -0,0 +1,228 @@
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
+
16
+ import * as runtime from '../runtime';
17
+ import type {
18
+ HTTPValidationError,
19
+ PathPartApprovalResponse,
20
+ SetApprovalStateRequest,
21
+ } from '../models/index';
22
+ import {
23
+ HTTPValidationErrorFromJSON,
24
+ HTTPValidationErrorToJSON,
25
+ PathPartApprovalResponseFromJSON,
26
+ PathPartApprovalResponseToJSON,
27
+ SetApprovalStateRequestFromJSON,
28
+ SetApprovalStateRequestToJSON,
29
+ } from '../models/index';
30
+
31
+ export interface GetPathPartApprovalRequest {
32
+ pathPartId: string;
33
+ authorization?: string | null;
34
+ ksUat?: string | null;
35
+ }
36
+
37
+ export interface SetPathPartApprovalRequest {
38
+ pathPartId: string;
39
+ setApprovalStateRequest: SetApprovalStateRequest;
40
+ authorization?: string | null;
41
+ ksUat?: string | null;
42
+ }
43
+
44
+ /**
45
+ * PathPartApprovalsApi - interface
46
+ *
47
+ * @export
48
+ * @interface PathPartApprovalsApiInterface
49
+ */
50
+ export interface PathPartApprovalsApiInterface {
51
+ /**
52
+ * Creates request options for getPathPartApproval without sending the request
53
+ * @param {string} pathPartId
54
+ * @param {string} [authorization]
55
+ * @param {string} [ksUat]
56
+ * @throws {RequiredError}
57
+ * @memberof PathPartApprovalsApiInterface
58
+ */
59
+ getPathPartApprovalRequestOpts(requestParameters: GetPathPartApprovalRequest): Promise<runtime.RequestOpts>;
60
+
61
+ /**
62
+ * Return the current approval audit row for a path_part. Exposes ``reviewer_id`` / ``reason`` and the decision timestamps so a caller can re-read who decided what and why. 404 if the path_part never entered the approval flow (its ``approval_state`` is still ``not_required``).
63
+ * @summary Get Path Part Approval Handler
64
+ * @param {string} pathPartId
65
+ * @param {string} [authorization]
66
+ * @param {string} [ksUat]
67
+ * @param {*} [options] Override http request option.
68
+ * @throws {RequiredError}
69
+ * @memberof PathPartApprovalsApiInterface
70
+ */
71
+ getPathPartApprovalRaw(requestParameters: GetPathPartApprovalRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PathPartApprovalResponse>>;
72
+
73
+ /**
74
+ * Return the current approval audit row for a path_part. Exposes ``reviewer_id`` / ``reason`` and the decision timestamps so a caller can re-read who decided what and why. 404 if the path_part never entered the approval flow (its ``approval_state`` is still ``not_required``).
75
+ * Get Path Part Approval Handler
76
+ */
77
+ getPathPartApproval(requestParameters: GetPathPartApprovalRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PathPartApprovalResponse>;
78
+
79
+ /**
80
+ * Creates request options for setPathPartApproval without sending the request
81
+ * @param {string} pathPartId
82
+ * @param {SetApprovalStateRequest} setApprovalStateRequest
83
+ * @param {string} [authorization]
84
+ * @param {string} [ksUat]
85
+ * @throws {RequiredError}
86
+ * @memberof PathPartApprovalsApiInterface
87
+ */
88
+ setPathPartApprovalRequestOpts(requestParameters: SetPathPartApprovalRequest): Promise<runtime.RequestOpts>;
89
+
90
+ /**
91
+ * Set the approval state on a path_part. | current ↓ / target → | pending | approved | | -------------------- | ------------------------ | ------------------------ | | not_required | 200 request | 409 | | pending | 200 (returns current row)| 200 approve | | approved | 200 unapprove | 200 (returns current row)| ``reason`` is forwarded to whichever service method handles the transition and persisted on the audit row (for ``approved``) or captured in the corresponding event payload (for ``pending``).
92
+ * @summary Set Path Part Approval Handler
93
+ * @param {string} pathPartId
94
+ * @param {SetApprovalStateRequest} setApprovalStateRequest
95
+ * @param {string} [authorization]
96
+ * @param {string} [ksUat]
97
+ * @param {*} [options] Override http request option.
98
+ * @throws {RequiredError}
99
+ * @memberof PathPartApprovalsApiInterface
100
+ */
101
+ setPathPartApprovalRaw(requestParameters: SetPathPartApprovalRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PathPartApprovalResponse>>;
102
+
103
+ /**
104
+ * Set the approval state on a path_part. | current ↓ / target → | pending | approved | | -------------------- | ------------------------ | ------------------------ | | not_required | 200 request | 409 | | pending | 200 (returns current row)| 200 approve | | approved | 200 unapprove | 200 (returns current row)| ``reason`` is forwarded to whichever service method handles the transition and persisted on the audit row (for ``approved``) or captured in the corresponding event payload (for ``pending``).
105
+ * Set Path Part Approval Handler
106
+ */
107
+ setPathPartApproval(requestParameters: SetPathPartApprovalRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PathPartApprovalResponse>;
108
+
109
+ }
110
+
111
+ /**
112
+ *
113
+ */
114
+ export class PathPartApprovalsApi extends runtime.BaseAPI implements PathPartApprovalsApiInterface {
115
+
116
+ /**
117
+ * Creates request options for getPathPartApproval without sending the request
118
+ */
119
+ async getPathPartApprovalRequestOpts(requestParameters: GetPathPartApprovalRequest): Promise<runtime.RequestOpts> {
120
+ if (requestParameters['pathPartId'] == null) {
121
+ throw new runtime.RequiredError(
122
+ 'pathPartId',
123
+ 'Required parameter "pathPartId" was null or undefined when calling getPathPartApproval().'
124
+ );
125
+ }
126
+
127
+ const queryParameters: any = {};
128
+
129
+ const headerParameters: runtime.HTTPHeaders = {};
130
+
131
+ if (requestParameters['authorization'] != null) {
132
+ headerParameters['authorization'] = String(requestParameters['authorization']);
133
+ }
134
+
135
+
136
+ let urlPath = `/v1/path-parts/{path_part_id}/approval`;
137
+ urlPath = urlPath.replace(`{${"path_part_id"}}`, encodeURIComponent(String(requestParameters['pathPartId'])));
138
+
139
+ return {
140
+ path: urlPath,
141
+ method: 'GET',
142
+ headers: headerParameters,
143
+ query: queryParameters,
144
+ };
145
+ }
146
+
147
+ /**
148
+ * Return the current approval audit row for a path_part. Exposes ``reviewer_id`` / ``reason`` and the decision timestamps so a caller can re-read who decided what and why. 404 if the path_part never entered the approval flow (its ``approval_state`` is still ``not_required``).
149
+ * Get Path Part Approval Handler
150
+ */
151
+ async getPathPartApprovalRaw(requestParameters: GetPathPartApprovalRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PathPartApprovalResponse>> {
152
+ const requestOptions = await this.getPathPartApprovalRequestOpts(requestParameters);
153
+ const response = await this.request(requestOptions, initOverrides);
154
+
155
+ return new runtime.JSONApiResponse(response, (jsonValue) => PathPartApprovalResponseFromJSON(jsonValue));
156
+ }
157
+
158
+ /**
159
+ * Return the current approval audit row for a path_part. Exposes ``reviewer_id`` / ``reason`` and the decision timestamps so a caller can re-read who decided what and why. 404 if the path_part never entered the approval flow (its ``approval_state`` is still ``not_required``).
160
+ * Get Path Part Approval Handler
161
+ */
162
+ async getPathPartApproval(requestParameters: GetPathPartApprovalRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PathPartApprovalResponse> {
163
+ const response = await this.getPathPartApprovalRaw(requestParameters, initOverrides);
164
+ return await response.value();
165
+ }
166
+
167
+ /**
168
+ * Creates request options for setPathPartApproval without sending the request
169
+ */
170
+ async setPathPartApprovalRequestOpts(requestParameters: SetPathPartApprovalRequest): Promise<runtime.RequestOpts> {
171
+ if (requestParameters['pathPartId'] == null) {
172
+ throw new runtime.RequiredError(
173
+ 'pathPartId',
174
+ 'Required parameter "pathPartId" was null or undefined when calling setPathPartApproval().'
175
+ );
176
+ }
177
+
178
+ if (requestParameters['setApprovalStateRequest'] == null) {
179
+ throw new runtime.RequiredError(
180
+ 'setApprovalStateRequest',
181
+ 'Required parameter "setApprovalStateRequest" was null or undefined when calling setPathPartApproval().'
182
+ );
183
+ }
184
+
185
+ const queryParameters: any = {};
186
+
187
+ const headerParameters: runtime.HTTPHeaders = {};
188
+
189
+ headerParameters['Content-Type'] = 'application/json';
190
+
191
+ if (requestParameters['authorization'] != null) {
192
+ headerParameters['authorization'] = String(requestParameters['authorization']);
193
+ }
194
+
195
+
196
+ let urlPath = `/v1/path-parts/{path_part_id}/approval`;
197
+ urlPath = urlPath.replace(`{${"path_part_id"}}`, encodeURIComponent(String(requestParameters['pathPartId'])));
198
+
199
+ return {
200
+ path: urlPath,
201
+ method: 'POST',
202
+ headers: headerParameters,
203
+ query: queryParameters,
204
+ body: SetApprovalStateRequestToJSON(requestParameters['setApprovalStateRequest']),
205
+ };
206
+ }
207
+
208
+ /**
209
+ * Set the approval state on a path_part. | current ↓ / target → | pending | approved | | -------------------- | ------------------------ | ------------------------ | | not_required | 200 request | 409 | | pending | 200 (returns current row)| 200 approve | | approved | 200 unapprove | 200 (returns current row)| ``reason`` is forwarded to whichever service method handles the transition and persisted on the audit row (for ``approved``) or captured in the corresponding event payload (for ``pending``).
210
+ * Set Path Part Approval Handler
211
+ */
212
+ async setPathPartApprovalRaw(requestParameters: SetPathPartApprovalRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PathPartApprovalResponse>> {
213
+ const requestOptions = await this.setPathPartApprovalRequestOpts(requestParameters);
214
+ const response = await this.request(requestOptions, initOverrides);
215
+
216
+ return new runtime.JSONApiResponse(response, (jsonValue) => PathPartApprovalResponseFromJSON(jsonValue));
217
+ }
218
+
219
+ /**
220
+ * Set the approval state on a path_part. | current ↓ / target → | pending | approved | | -------------------- | ------------------------ | ------------------------ | | not_required | 200 request | 409 | | pending | 200 (returns current row)| 200 approve | | approved | 200 unapprove | 200 (returns current row)| ``reason`` is forwarded to whichever service method handles the transition and persisted on the audit row (for ``approved``) or captured in the corresponding event payload (for ``pending``).
221
+ * Set Path Part Approval Handler
222
+ */
223
+ async setPathPartApproval(requestParameters: SetPathPartApprovalRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PathPartApprovalResponse> {
224
+ const response = await this.setPathPartApprovalRaw(requestParameters, initOverrides);
225
+ return await response.value();
226
+ }
227
+
228
+ }