@knowledge-stack/ksapi 1.88.1 → 1.89.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
@@ -27,6 +27,13 @@ import {
27
27
  ChunkTypeToJSON,
28
28
  ChunkTypeToJSONTyped,
29
29
  } from './ChunkType';
30
+ import type { PathPartApprovalState } from './PathPartApprovalState';
31
+ import {
32
+ PathPartApprovalStateFromJSON,
33
+ PathPartApprovalStateFromJSONTyped,
34
+ PathPartApprovalStateToJSON,
35
+ PathPartApprovalStateToJSONTyped,
36
+ } from './PathPartApprovalState';
30
37
 
31
38
  /**
32
39
  * Response model for a chunk item in document version contents.
@@ -100,6 +107,12 @@ export interface ChunkContentItem {
100
107
  * @memberof ChunkContentItem
101
108
  */
102
109
  systemManaged: boolean;
110
+ /**
111
+ *
112
+ * @type {PathPartApprovalState}
113
+ * @memberof ChunkContentItem
114
+ */
115
+ approvalState: PathPartApprovalState;
103
116
  /**
104
117
  * Creation timestamp
105
118
  * @type {Date}
@@ -153,6 +166,7 @@ export function instanceOfChunkContentItem(value: object): value is ChunkContent
153
166
  if (!('depth' in value) || value['depth'] === undefined) return false;
154
167
  if (!('materializedPath' in value) || value['materializedPath'] === undefined) return false;
155
168
  if (!('systemManaged' in value) || value['systemManaged'] === undefined) return false;
169
+ if (!('approvalState' in value) || value['approvalState'] === undefined) return false;
156
170
  if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
157
171
  if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
158
172
  return true;
@@ -179,6 +193,7 @@ export function ChunkContentItemFromJSONTyped(json: any, ignoreDiscriminator: bo
179
193
  'chunkMetadata': json['chunk_metadata'] == null ? undefined : ChunkMetadataFromJSON(json['chunk_metadata']),
180
194
  'materializedPath': json['materialized_path'],
181
195
  'systemManaged': json['system_managed'],
196
+ 'approvalState': PathPartApprovalStateFromJSON(json['approval_state']),
182
197
  'createdAt': (new Date(json['created_at'])),
183
198
  'updatedAt': (new Date(json['updated_at'])),
184
199
  };
@@ -206,6 +221,7 @@ export function ChunkContentItemToJSONTyped(value?: ChunkContentItem | null, ign
206
221
  'chunk_metadata': ChunkMetadataToJSON(value['chunkMetadata']),
207
222
  'materialized_path': value['materializedPath'],
208
223
  'system_managed': value['systemManaged'],
224
+ 'approval_state': PathPartApprovalStateToJSON(value['approvalState']),
209
225
  'created_at': value['createdAt'].toISOString(),
210
226
  'updated_at': value['updatedAt'].toISOString(),
211
227
  };
@@ -0,0 +1,141 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Knowledge Stack API
5
+ * Knowledge Stack backend API for authentication and knowledge management
6
+ *
7
+ * The version of the OpenAPI document: 0.1.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ import type { DocumentType } from './DocumentType';
17
+ import {
18
+ DocumentTypeFromJSON,
19
+ DocumentTypeFromJSONTyped,
20
+ DocumentTypeToJSON,
21
+ DocumentTypeToJSONTyped,
22
+ } from './DocumentType';
23
+
24
+ /**
25
+ * One cited chunk with the source document context for FE rendering.
26
+ *
27
+ * ``chunk_id`` is the load-bearing field — every reader can use it via
28
+ * ``/v1/chunks/bulk``. The document fields are populated by
29
+ * ``save_document`` when it resolves each chunk through the KS API at
30
+ * save time; they stay ``None`` only when the chunk could not be resolved
31
+ * (e.g. the agent cited an id that no longer exists, or the resolve call
32
+ * failed). The doc-info snapshot is captured at save time; later renames
33
+ * or replacements of the source document do not update it.
34
+ * @export
35
+ * @interface CitedChunk
36
+ */
37
+ export interface CitedChunk {
38
+ /**
39
+ *
40
+ * @type {string}
41
+ * @memberof CitedChunk
42
+ */
43
+ chunkId: string;
44
+ /**
45
+ *
46
+ * @type {string}
47
+ * @memberof CitedChunk
48
+ */
49
+ documentId?: string | null;
50
+ /**
51
+ * Source document name as of save time. May be stale if the document was later renamed or replaced.
52
+ * @type {string}
53
+ * @memberof CitedChunk
54
+ */
55
+ documentName?: string | null;
56
+ /**
57
+ *
58
+ * @type {DocumentType}
59
+ * @memberof CitedChunk
60
+ */
61
+ documentType?: DocumentType;
62
+ /**
63
+ *
64
+ * @type {string}
65
+ * @memberof CitedChunk
66
+ */
67
+ documentVersionId?: string | null;
68
+ /**
69
+ *
70
+ * @type {number}
71
+ * @memberof CitedChunk
72
+ */
73
+ versionNumber?: number | null;
74
+ }
75
+
76
+
77
+ export const CitedChunkPropertyValidationAttributesMap: {
78
+ [property: string]: {
79
+ maxLength?: number,
80
+ minLength?: number,
81
+ pattern?: string,
82
+ maximum?: number,
83
+ exclusiveMaximum?: boolean,
84
+ minimum?: number,
85
+ exclusiveMinimum?: boolean,
86
+ multipleOf?: number,
87
+ maxItems?: number,
88
+ minItems?: number,
89
+ uniqueItems?: boolean
90
+ }
91
+ } = {
92
+ }
93
+
94
+
95
+ /**
96
+ * Check if a given object implements the CitedChunk interface.
97
+ */
98
+ export function instanceOfCitedChunk(value: object): value is CitedChunk {
99
+ if (!('chunkId' in value) || value['chunkId'] === undefined) return false;
100
+ return true;
101
+ }
102
+
103
+ export function CitedChunkFromJSON(json: any): CitedChunk {
104
+ return CitedChunkFromJSONTyped(json, false);
105
+ }
106
+
107
+ export function CitedChunkFromJSONTyped(json: any, ignoreDiscriminator: boolean): CitedChunk {
108
+ if (json == null) {
109
+ return json;
110
+ }
111
+ return {
112
+
113
+ 'chunkId': json['chunk_id'],
114
+ 'documentId': json['document_id'] == null ? undefined : json['document_id'],
115
+ 'documentName': json['document_name'] == null ? undefined : json['document_name'],
116
+ 'documentType': json['document_type'] == null ? undefined : DocumentTypeFromJSON(json['document_type']),
117
+ 'documentVersionId': json['document_version_id'] == null ? undefined : json['document_version_id'],
118
+ 'versionNumber': json['version_number'] == null ? undefined : json['version_number'],
119
+ };
120
+ }
121
+
122
+ export function CitedChunkToJSON(json: any): CitedChunk {
123
+ return CitedChunkToJSONTyped(json, false);
124
+ }
125
+
126
+ export function CitedChunkToJSONTyped(value?: CitedChunk | null, ignoreDiscriminator: boolean = false): any {
127
+ if (value == null) {
128
+ return value;
129
+ }
130
+
131
+ return {
132
+
133
+ 'chunk_id': value['chunkId'],
134
+ 'document_id': value['documentId'],
135
+ 'document_name': value['documentName'],
136
+ 'document_type': DocumentTypeToJSON(value['documentType']),
137
+ 'document_version_id': value['documentVersionId'],
138
+ 'version_number': value['versionNumber'],
139
+ };
140
+ }
141
+
@@ -0,0 +1,90 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Knowledge Stack API
5
+ * Knowledge Stack backend API for authentication and knowledge management
6
+ *
7
+ * The version of the OpenAPI document: 0.1.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ /**
17
+ * POST body for ``/v1/workflow-runs/{id}/clone``.
18
+ *
19
+ * Creates a new NOT_STARTED run under the same definition. When
20
+ * ``include_inputs`` is True, the new run's ``input_path_part_ids``
21
+ * are pinned from the source's ``run_snapshot.inputs`` — uploaded DVs
22
+ * stay in the source's ``inputs/`` and are referenced by path_part_id
23
+ * (no S3 copy, no re-ingest). The source must have a snapshot to
24
+ * clone from, so cloning a NOT_STARTED source returns 409.
25
+ * @export
26
+ * @interface CloneWorkflowRunRequest
27
+ */
28
+ export interface CloneWorkflowRunRequest {
29
+ /**
30
+ * When True, the new run's input_path_part_ids are pinned from the source run's snapshotted inputs (DOCUMENT_VERSION + FOLDER path_parts). When False, the new run is created with an empty input scope.
31
+ * @type {boolean}
32
+ * @memberof CloneWorkflowRunRequest
33
+ */
34
+ includeInputs: boolean;
35
+ }
36
+ export const CloneWorkflowRunRequestPropertyValidationAttributesMap: {
37
+ [property: string]: {
38
+ maxLength?: number,
39
+ minLength?: number,
40
+ pattern?: string,
41
+ maximum?: number,
42
+ exclusiveMaximum?: boolean,
43
+ minimum?: number,
44
+ exclusiveMinimum?: boolean,
45
+ multipleOf?: number,
46
+ maxItems?: number,
47
+ minItems?: number,
48
+ uniqueItems?: boolean
49
+ }
50
+ } = {
51
+ }
52
+
53
+
54
+ /**
55
+ * Check if a given object implements the CloneWorkflowRunRequest interface.
56
+ */
57
+ export function instanceOfCloneWorkflowRunRequest(value: object): value is CloneWorkflowRunRequest {
58
+ if (!('includeInputs' in value) || value['includeInputs'] === undefined) return false;
59
+ return true;
60
+ }
61
+
62
+ export function CloneWorkflowRunRequestFromJSON(json: any): CloneWorkflowRunRequest {
63
+ return CloneWorkflowRunRequestFromJSONTyped(json, false);
64
+ }
65
+
66
+ export function CloneWorkflowRunRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CloneWorkflowRunRequest {
67
+ if (json == null) {
68
+ return json;
69
+ }
70
+ return {
71
+
72
+ 'includeInputs': json['include_inputs'],
73
+ };
74
+ }
75
+
76
+ export function CloneWorkflowRunRequestToJSON(json: any): CloneWorkflowRunRequest {
77
+ return CloneWorkflowRunRequestToJSONTyped(json, false);
78
+ }
79
+
80
+ export function CloneWorkflowRunRequestToJSONTyped(value?: CloneWorkflowRunRequest | null, ignoreDiscriminator: boolean = false): any {
81
+ if (value == null) {
82
+ return value;
83
+ }
84
+
85
+ return {
86
+
87
+ 'include_inputs': value['includeInputs'],
88
+ };
89
+ }
90
+
@@ -36,7 +36,7 @@ import {
36
36
  } from './ThreadMessageContent';
37
37
 
38
38
  /**
39
- * Request to create a new thread message.
39
+ *
40
40
  * @export
41
41
  * @interface CreateThreadMessageRequest
42
42
  */
@@ -14,7 +14,7 @@
14
14
 
15
15
  import { mapValues } from '../runtime';
16
16
  /**
17
- * Request to create a new thread.
17
+ *
18
18
  * @export
19
19
  * @interface CreateThreadRequest
20
20
  */
@@ -37,6 +37,18 @@ export interface CreateThreadRequest {
37
37
  * @memberof CreateThreadRequest
38
38
  */
39
39
  messageForTitle?: string | null;
40
+ /**
41
+ * Override the thread path_part name. Defaults to the thread UUID. Used by the workflow runner to enforce one ``main`` thread per run via the structural sibling-name uniqueness index.
42
+ * @type {string}
43
+ * @memberof CreateThreadRequest
44
+ */
45
+ pathPartName?: string | null;
46
+ /**
47
+ * Mark the thread's path_part as system-managed (immutable from the public API). Used by the workflow runner.
48
+ * @type {boolean}
49
+ * @memberof CreateThreadRequest
50
+ */
51
+ systemManaged?: boolean;
40
52
  }
41
53
  export const CreateThreadRequestPropertyValidationAttributesMap: {
42
54
  [property: string]: {
@@ -61,6 +73,10 @@ export const CreateThreadRequestPropertyValidationAttributesMap: {
61
73
  maxLength: 4096,
62
74
  minLength: 1,
63
75
  },
76
+ pathPartName: {
77
+ maxLength: 255,
78
+ minLength: 1,
79
+ },
64
80
  }
65
81
 
66
82
 
@@ -84,6 +100,8 @@ export function CreateThreadRequestFromJSONTyped(json: any, ignoreDiscriminator:
84
100
  'parentPathPartId': json['parent_path_part_id'] == null ? undefined : json['parent_path_part_id'],
85
101
  'title': json['title'] == null ? undefined : json['title'],
86
102
  'messageForTitle': json['message_for_title'] == null ? undefined : json['message_for_title'],
103
+ 'pathPartName': json['path_part_name'] == null ? undefined : json['path_part_name'],
104
+ 'systemManaged': json['system_managed'] == null ? undefined : json['system_managed'],
87
105
  };
88
106
  }
89
107
 
@@ -101,6 +119,8 @@ export function CreateThreadRequestToJSONTyped(value?: CreateThreadRequest | nul
101
119
  'parent_path_part_id': value['parentPathPartId'],
102
120
  'title': value['title'],
103
121
  'message_for_title': value['messageForTitle'],
122
+ 'path_part_name': value['pathPartName'],
123
+ 'system_managed': value['systemManaged'],
104
124
  };
105
125
  }
106
126
 
@@ -13,30 +13,12 @@
13
13
  */
14
14
 
15
15
  import { mapValues } from '../runtime';
16
- import type { SelfHostedRunnerConfig } from './SelfHostedRunnerConfig';
17
- import {
18
- SelfHostedRunnerConfigFromJSON,
19
- SelfHostedRunnerConfigFromJSONTyped,
20
- SelfHostedRunnerConfigToJSON,
21
- SelfHostedRunnerConfigToJSONTyped,
22
- } from './SelfHostedRunnerConfig';
23
- import type { WorkflowRunnerType } from './WorkflowRunnerType';
24
- import {
25
- WorkflowRunnerTypeFromJSON,
26
- WorkflowRunnerTypeFromJSONTyped,
27
- WorkflowRunnerTypeToJSON,
28
- WorkflowRunnerTypeToJSONTyped,
29
- } from './WorkflowRunnerType';
30
-
31
16
  /**
32
17
  * Create a new workflow definition.
33
18
  *
34
- * ``instruction_path_part_ids`` semantics depend on ``runner_type``:
35
- *
36
- * - ``KS_INTERNAL``: must be empty (``[]``); the server auto-provisions a
37
- * single ``instruction.md`` and stores ``[doc.path_part_id]``.
38
- * - ``SELF_HOSTED``: caller-supplied list of one-or-more document
39
- * PathPart IDs. Must contain at least one entry.
19
+ * Inputs are per-run (see ``POST /workflow-definitions/{id}/runs``) so
20
+ * only the instruction lives on the definition.
21
+ * ``instruction_path_part_id`` is a ``DOCUMENT`` path_part.
40
22
  * @export
41
23
  * @interface CreateWorkflowDefinitionRequest
42
24
  */
@@ -53,18 +35,6 @@ export interface CreateWorkflowDefinitionRequest {
53
35
  * @memberof CreateWorkflowDefinitionRequest
54
36
  */
55
37
  description?: string | null;
56
- /**
57
- *
58
- * @type {WorkflowRunnerType}
59
- * @memberof CreateWorkflowDefinitionRequest
60
- */
61
- runnerType: WorkflowRunnerType;
62
- /**
63
- *
64
- * @type {SelfHostedRunnerConfig}
65
- * @memberof CreateWorkflowDefinitionRequest
66
- */
67
- runnerConfig?: SelfHostedRunnerConfig | null;
68
38
  /**
69
39
  *
70
40
  * @type {number}
@@ -72,38 +42,18 @@ export interface CreateWorkflowDefinitionRequest {
72
42
  */
73
43
  maxRunDurationSeconds?: number;
74
44
  /**
75
- *
76
- * @type {Array<string>}
77
- * @memberof CreateWorkflowDefinitionRequest
78
- */
79
- sourcePathPartIds: Array<string>;
80
- /**
81
- *
82
- * @type {Array<string>}
83
- * @memberof CreateWorkflowDefinitionRequest
84
- */
85
- instructionPathPartIds?: Array<string>;
86
- /**
87
- *
88
- * @type {Array<string>}
89
- * @memberof CreateWorkflowDefinitionRequest
90
- */
91
- outputPathPartIds: Array<string>;
92
- /**
93
- *
45
+ * DOCUMENT path_part of the instruction document. Omit (or pass null) to have the server auto-create an empty instruction.md.
94
46
  * @type {string}
95
47
  * @memberof CreateWorkflowDefinitionRequest
96
48
  */
97
- templatePathPartId?: string | null;
49
+ instructionPathPartId?: string | null;
98
50
  /**
99
51
  *
100
52
  * @type {boolean}
101
53
  * @memberof CreateWorkflowDefinitionRequest
102
54
  */
103
- approvalRequired?: boolean;
55
+ approvalRequired: boolean;
104
56
  }
105
-
106
-
107
57
  export const CreateWorkflowDefinitionRequestPropertyValidationAttributesMap: {
108
58
  [property: string]: {
109
59
  maxLength?: number,
@@ -123,25 +73,11 @@ export const CreateWorkflowDefinitionRequestPropertyValidationAttributesMap: {
123
73
  maxLength: 255,
124
74
  },
125
75
  maxRunDurationSeconds: {
126
- maximum: 86400,
76
+ maximum: 7200,
127
77
  exclusiveMaximum: false,
128
78
  minimum: 60,
129
79
  exclusiveMinimum: false,
130
80
  },
131
- sourcePathPartIds: {
132
- maxItems: 20,
133
- minItems: 1,
134
- uniqueItems: false,
135
- },
136
- instructionPathPartIds: {
137
- maxItems: 20,
138
- uniqueItems: false,
139
- },
140
- outputPathPartIds: {
141
- maxItems: 20,
142
- minItems: 1,
143
- uniqueItems: false,
144
- },
145
81
  }
146
82
 
147
83
 
@@ -150,9 +86,7 @@ export const CreateWorkflowDefinitionRequestPropertyValidationAttributesMap: {
150
86
  */
151
87
  export function instanceOfCreateWorkflowDefinitionRequest(value: object): value is CreateWorkflowDefinitionRequest {
152
88
  if (!('name' in value) || value['name'] === undefined) return false;
153
- if (!('runnerType' in value) || value['runnerType'] === undefined) return false;
154
- if (!('sourcePathPartIds' in value) || value['sourcePathPartIds'] === undefined) return false;
155
- if (!('outputPathPartIds' in value) || value['outputPathPartIds'] === undefined) return false;
89
+ if (!('approvalRequired' in value) || value['approvalRequired'] === undefined) return false;
156
90
  return true;
157
91
  }
158
92
 
@@ -168,14 +102,9 @@ export function CreateWorkflowDefinitionRequestFromJSONTyped(json: any, ignoreDi
168
102
 
169
103
  'name': json['name'],
170
104
  'description': json['description'] == null ? undefined : json['description'],
171
- 'runnerType': WorkflowRunnerTypeFromJSON(json['runner_type']),
172
- 'runnerConfig': json['runner_config'] == null ? undefined : SelfHostedRunnerConfigFromJSON(json['runner_config']),
173
105
  'maxRunDurationSeconds': json['max_run_duration_seconds'] == null ? undefined : json['max_run_duration_seconds'],
174
- 'sourcePathPartIds': json['source_path_part_ids'],
175
- 'instructionPathPartIds': json['instruction_path_part_ids'] == null ? undefined : json['instruction_path_part_ids'],
176
- 'outputPathPartIds': json['output_path_part_ids'],
177
- 'templatePathPartId': json['template_path_part_id'] == null ? undefined : json['template_path_part_id'],
178
- 'approvalRequired': json['approval_required'] == null ? undefined : json['approval_required'],
106
+ 'instructionPathPartId': json['instruction_path_part_id'] == null ? undefined : json['instruction_path_part_id'],
107
+ 'approvalRequired': json['approval_required'],
179
108
  };
180
109
  }
181
110
 
@@ -192,13 +121,8 @@ export function CreateWorkflowDefinitionRequestToJSONTyped(value?: CreateWorkflo
192
121
 
193
122
  'name': value['name'],
194
123
  'description': value['description'],
195
- 'runner_type': WorkflowRunnerTypeToJSON(value['runnerType']),
196
- 'runner_config': SelfHostedRunnerConfigToJSON(value['runnerConfig']),
197
124
  'max_run_duration_seconds': value['maxRunDurationSeconds'],
198
- 'source_path_part_ids': value['sourcePathPartIds'],
199
- 'instruction_path_part_ids': value['instructionPathPartIds'],
200
- 'output_path_part_ids': value['outputPathPartIds'],
201
- 'template_path_part_id': value['templatePathPartId'],
125
+ 'instruction_path_part_id': value['instructionPathPartId'],
202
126
  'approval_required': value['approvalRequired'],
203
127
  };
204
128
  }
@@ -13,6 +13,14 @@
13
13
  */
14
14
 
15
15
  import { mapValues } from '../runtime';
16
+ import type { UserInfo } from './UserInfo';
17
+ import {
18
+ UserInfoFromJSON,
19
+ UserInfoFromJSONTyped,
20
+ UserInfoToJSON,
21
+ UserInfoToJSONTyped,
22
+ } from './UserInfo';
23
+
16
24
  /**
17
25
  * Active checkout state on a document.
18
26
  * @export
@@ -26,17 +34,17 @@ export interface DocumentCheckoutResponse {
26
34
  */
27
35
  tenantId: string;
28
36
  /**
29
- * Document's PathPart ID
37
+ * Document ID
30
38
  * @type {string}
31
39
  * @memberof DocumentCheckoutResponse
32
40
  */
33
- pathPartId: string;
41
+ documentId: string;
34
42
  /**
35
- * User who holds the checkout
36
- * @type {string}
43
+ *
44
+ * @type {UserInfo}
37
45
  * @memberof DocumentCheckoutResponse
38
46
  */
39
- userId: string;
47
+ holder: UserInfo;
40
48
  /**
41
49
  * When the checkout was acquired
42
50
  * @type {Date}
@@ -67,8 +75,8 @@ export const DocumentCheckoutResponsePropertyValidationAttributesMap: {
67
75
  */
68
76
  export function instanceOfDocumentCheckoutResponse(value: object): value is DocumentCheckoutResponse {
69
77
  if (!('tenantId' in value) || value['tenantId'] === undefined) return false;
70
- if (!('pathPartId' in value) || value['pathPartId'] === undefined) return false;
71
- if (!('userId' in value) || value['userId'] === undefined) return false;
78
+ if (!('documentId' in value) || value['documentId'] === undefined) return false;
79
+ if (!('holder' in value) || value['holder'] === undefined) return false;
72
80
  if (!('acquiredAt' in value) || value['acquiredAt'] === undefined) return false;
73
81
  return true;
74
82
  }
@@ -84,8 +92,8 @@ export function DocumentCheckoutResponseFromJSONTyped(json: any, ignoreDiscrimin
84
92
  return {
85
93
 
86
94
  'tenantId': json['tenant_id'],
87
- 'pathPartId': json['path_part_id'],
88
- 'userId': json['user_id'],
95
+ 'documentId': json['document_id'],
96
+ 'holder': UserInfoFromJSON(json['holder']),
89
97
  'acquiredAt': (new Date(json['acquired_at'])),
90
98
  };
91
99
  }
@@ -102,8 +110,8 @@ export function DocumentCheckoutResponseToJSONTyped(value?: DocumentCheckoutResp
102
110
  return {
103
111
 
104
112
  'tenant_id': value['tenantId'],
105
- 'path_part_id': value['pathPartId'],
106
- 'user_id': value['userId'],
113
+ 'document_id': value['documentId'],
114
+ 'holder': UserInfoToJSON(value['holder']),
107
115
  'acquired_at': value['acquiredAt'].toISOString(),
108
116
  };
109
117
  }
@@ -34,6 +34,20 @@ import {
34
34
  DocumentTypeToJSON,
35
35
  DocumentTypeToJSONTyped,
36
36
  } from './DocumentType';
37
+ import type { PathPartApprovalState } from './PathPartApprovalState';
38
+ import {
39
+ PathPartApprovalStateFromJSON,
40
+ PathPartApprovalStateFromJSONTyped,
41
+ PathPartApprovalStateToJSON,
42
+ PathPartApprovalStateToJSONTyped,
43
+ } from './PathPartApprovalState';
44
+ import type { UserInfo } from './UserInfo';
45
+ import {
46
+ UserInfoFromJSON,
47
+ UserInfoFromJSONTyped,
48
+ UserInfoToJSON,
49
+ UserInfoToJSONTyped,
50
+ } from './UserInfo';
37
51
  import type { DocumentCheckoutResponse } from './DocumentCheckoutResponse';
38
52
  import {
39
53
  DocumentCheckoutResponseFromJSON,
@@ -121,6 +135,12 @@ export interface DocumentResponse {
121
135
  * @memberof DocumentResponse
122
136
  */
123
137
  systemManaged: boolean;
138
+ /**
139
+ *
140
+ * @type {PathPartApprovalState}
141
+ * @memberof DocumentResponse
142
+ */
143
+ approvalState: PathPartApprovalState;
124
144
  /**
125
145
  * Direct exclusion flag on this document's path part only. The effective exclusion also applies when any ancestor folder has the flag set — fetch the ancestry to determine effective state.
126
146
  * @type {boolean}
@@ -134,11 +154,11 @@ export interface DocumentResponse {
134
154
  */
135
155
  tenantId: string;
136
156
  /**
137
- * Current owner of the document. Transferable via PATCH by the current owner or an ADMIN/OWNER.
138
- * @type {string}
157
+ *
158
+ * @type {UserInfo}
139
159
  * @memberof DocumentResponse
140
160
  */
141
- ownerTenantUserId: string;
161
+ owner: UserInfo;
142
162
  /**
143
163
  * Creation timestamp
144
164
  * @type {Date}
@@ -213,9 +233,10 @@ export function instanceOfDocumentResponse(value: object): value is DocumentResp
213
233
  if (!('activeVersion' in value) || value['activeVersion'] === undefined) return false;
214
234
  if (!('materializedPath' in value) || value['materializedPath'] === undefined) return false;
215
235
  if (!('systemManaged' in value) || value['systemManaged'] === undefined) return false;
236
+ if (!('approvalState' in value) || value['approvalState'] === undefined) return false;
216
237
  if (!('excludeFromQdrant' in value) || value['excludeFromQdrant'] === undefined) return false;
217
238
  if (!('tenantId' in value) || value['tenantId'] === undefined) return false;
218
- if (!('ownerTenantUserId' in value) || value['ownerTenantUserId'] === undefined) return false;
239
+ if (!('owner' in value) || value['owner'] === undefined) return false;
219
240
  if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
220
241
  if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
221
242
  return true;
@@ -242,9 +263,10 @@ export function DocumentResponseFromJSONTyped(json: any, ignoreDiscriminator: bo
242
263
  'activeVersion': DocumentVersionResponseFromJSON(json['active_version']),
243
264
  'materializedPath': json['materialized_path'],
244
265
  'systemManaged': json['system_managed'],
266
+ 'approvalState': PathPartApprovalStateFromJSON(json['approval_state']),
245
267
  'excludeFromQdrant': json['exclude_from_qdrant'],
246
268
  'tenantId': json['tenant_id'],
247
- 'ownerTenantUserId': json['owner_tenant_user_id'],
269
+ 'owner': UserInfoFromJSON(json['owner']),
248
270
  'createdAt': (new Date(json['created_at'])),
249
271
  'updatedAt': (new Date(json['updated_at'])),
250
272
  'tags': json['tags'] == null ? undefined : ((json['tags'] as Array<any>).map(TagResponseFromJSON)),
@@ -275,9 +297,10 @@ export function DocumentResponseToJSONTyped(value?: DocumentResponse | null, ign
275
297
  'active_version': DocumentVersionResponseToJSON(value['activeVersion']),
276
298
  'materialized_path': value['materializedPath'],
277
299
  'system_managed': value['systemManaged'],
300
+ 'approval_state': PathPartApprovalStateToJSON(value['approvalState']),
278
301
  'exclude_from_qdrant': value['excludeFromQdrant'],
279
302
  'tenant_id': value['tenantId'],
280
- 'owner_tenant_user_id': value['ownerTenantUserId'],
303
+ 'owner': UserInfoToJSON(value['owner']),
281
304
  'created_at': value['createdAt'].toISOString(),
282
305
  'updated_at': value['updatedAt'].toISOString(),
283
306
  'tags': value['tags'] == null ? undefined : ((value['tags'] as Array<any>).map(TagResponseToJSON)),