@knowledge-stack/ksapi 1.88.0 → 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
@@ -0,0 +1,65 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Knowledge Stack API
6
+ * Knowledge Stack backend API for authentication and knowledge management
7
+ *
8
+ * The version of the OpenAPI document: 0.1.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.SetApprovalStateRequestPropertyValidationAttributesMap = exports.SetApprovalStateRequestStateEnum = void 0;
17
+ exports.instanceOfSetApprovalStateRequest = instanceOfSetApprovalStateRequest;
18
+ exports.SetApprovalStateRequestFromJSON = SetApprovalStateRequestFromJSON;
19
+ exports.SetApprovalStateRequestFromJSONTyped = SetApprovalStateRequestFromJSONTyped;
20
+ exports.SetApprovalStateRequestToJSON = SetApprovalStateRequestToJSON;
21
+ exports.SetApprovalStateRequestToJSONTyped = SetApprovalStateRequestToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.SetApprovalStateRequestStateEnum = {
26
+ Pending: 'pending',
27
+ Approved: 'approved'
28
+ };
29
+ exports.SetApprovalStateRequestPropertyValidationAttributesMap = {
30
+ reason: {
31
+ maxLength: 2048,
32
+ },
33
+ };
34
+ /**
35
+ * Check if a given object implements the SetApprovalStateRequest interface.
36
+ */
37
+ function instanceOfSetApprovalStateRequest(value) {
38
+ if (!('state' in value) || value['state'] === undefined)
39
+ return false;
40
+ return true;
41
+ }
42
+ function SetApprovalStateRequestFromJSON(json) {
43
+ return SetApprovalStateRequestFromJSONTyped(json, false);
44
+ }
45
+ function SetApprovalStateRequestFromJSONTyped(json, ignoreDiscriminator) {
46
+ if (json == null) {
47
+ return json;
48
+ }
49
+ return {
50
+ 'state': json['state'],
51
+ 'reason': json['reason'] == null ? undefined : json['reason'],
52
+ };
53
+ }
54
+ function SetApprovalStateRequestToJSON(json) {
55
+ return SetApprovalStateRequestToJSONTyped(json, false);
56
+ }
57
+ function SetApprovalStateRequestToJSONTyped(value, ignoreDiscriminator = false) {
58
+ if (value == null) {
59
+ return value;
60
+ }
61
+ return {
62
+ 'state': value['state'],
63
+ 'reason': value['reason'],
64
+ };
65
+ }
@@ -0,0 +1,64 @@
1
+ /**
2
+ * Knowledge Stack API
3
+ * Knowledge Stack backend API for authentication and knowledge management
4
+ *
5
+ * The version of the OpenAPI document: 0.1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ * Body for ``POST /v1/workflow-runs/{run_id}/approval``.
14
+ *
15
+ * Approves an entire completed run in one call — every output document
16
+ * under ``outputs/`` plus the run folder itself. ``reason`` is an
17
+ * optional reviewer note persisted on each approval audit row.
18
+ * @export
19
+ * @interface SetWorkflowRunApprovalRequest
20
+ */
21
+ export interface SetWorkflowRunApprovalRequest {
22
+ /**
23
+ *
24
+ * @type {SetWorkflowRunApprovalRequestStateEnum}
25
+ * @memberof SetWorkflowRunApprovalRequest
26
+ */
27
+ state: SetWorkflowRunApprovalRequestStateEnum;
28
+ /**
29
+ * Optional reviewer note attached to the decision.
30
+ * @type {string}
31
+ * @memberof SetWorkflowRunApprovalRequest
32
+ */
33
+ reason?: string | null;
34
+ }
35
+ /**
36
+ * @export
37
+ */
38
+ export declare const SetWorkflowRunApprovalRequestStateEnum: {
39
+ readonly Approved: "approved";
40
+ };
41
+ export type SetWorkflowRunApprovalRequestStateEnum = typeof SetWorkflowRunApprovalRequestStateEnum[keyof typeof SetWorkflowRunApprovalRequestStateEnum];
42
+ export declare const SetWorkflowRunApprovalRequestPropertyValidationAttributesMap: {
43
+ [property: string]: {
44
+ maxLength?: number;
45
+ minLength?: number;
46
+ pattern?: string;
47
+ maximum?: number;
48
+ exclusiveMaximum?: boolean;
49
+ minimum?: number;
50
+ exclusiveMinimum?: boolean;
51
+ multipleOf?: number;
52
+ maxItems?: number;
53
+ minItems?: number;
54
+ uniqueItems?: boolean;
55
+ };
56
+ };
57
+ /**
58
+ * Check if a given object implements the SetWorkflowRunApprovalRequest interface.
59
+ */
60
+ export declare function instanceOfSetWorkflowRunApprovalRequest(value: object): value is SetWorkflowRunApprovalRequest;
61
+ export declare function SetWorkflowRunApprovalRequestFromJSON(json: any): SetWorkflowRunApprovalRequest;
62
+ export declare function SetWorkflowRunApprovalRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SetWorkflowRunApprovalRequest;
63
+ export declare function SetWorkflowRunApprovalRequestToJSON(json: any): SetWorkflowRunApprovalRequest;
64
+ export declare function SetWorkflowRunApprovalRequestToJSONTyped(value?: SetWorkflowRunApprovalRequest | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,64 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Knowledge Stack API
6
+ * Knowledge Stack backend API for authentication and knowledge management
7
+ *
8
+ * The version of the OpenAPI document: 0.1.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.SetWorkflowRunApprovalRequestPropertyValidationAttributesMap = exports.SetWorkflowRunApprovalRequestStateEnum = void 0;
17
+ exports.instanceOfSetWorkflowRunApprovalRequest = instanceOfSetWorkflowRunApprovalRequest;
18
+ exports.SetWorkflowRunApprovalRequestFromJSON = SetWorkflowRunApprovalRequestFromJSON;
19
+ exports.SetWorkflowRunApprovalRequestFromJSONTyped = SetWorkflowRunApprovalRequestFromJSONTyped;
20
+ exports.SetWorkflowRunApprovalRequestToJSON = SetWorkflowRunApprovalRequestToJSON;
21
+ exports.SetWorkflowRunApprovalRequestToJSONTyped = SetWorkflowRunApprovalRequestToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.SetWorkflowRunApprovalRequestStateEnum = {
26
+ Approved: 'approved'
27
+ };
28
+ exports.SetWorkflowRunApprovalRequestPropertyValidationAttributesMap = {
29
+ reason: {
30
+ maxLength: 2048,
31
+ },
32
+ };
33
+ /**
34
+ * Check if a given object implements the SetWorkflowRunApprovalRequest interface.
35
+ */
36
+ function instanceOfSetWorkflowRunApprovalRequest(value) {
37
+ if (!('state' in value) || value['state'] === undefined)
38
+ return false;
39
+ return true;
40
+ }
41
+ function SetWorkflowRunApprovalRequestFromJSON(json) {
42
+ return SetWorkflowRunApprovalRequestFromJSONTyped(json, false);
43
+ }
44
+ function SetWorkflowRunApprovalRequestFromJSONTyped(json, ignoreDiscriminator) {
45
+ if (json == null) {
46
+ return json;
47
+ }
48
+ return {
49
+ 'state': json['state'],
50
+ 'reason': json['reason'] == null ? undefined : json['reason'],
51
+ };
52
+ }
53
+ function SetWorkflowRunApprovalRequestToJSON(json) {
54
+ return SetWorkflowRunApprovalRequestToJSONTyped(json, false);
55
+ }
56
+ function SetWorkflowRunApprovalRequestToJSONTyped(value, ignoreDiscriminator = false) {
57
+ if (value == null) {
58
+ return value;
59
+ }
60
+ return {
61
+ 'state': value['state'],
62
+ 'reason': value['reason'],
63
+ };
64
+ }
@@ -13,7 +13,7 @@ import type { EnrichedThreadMessageContent } from './EnrichedThreadMessageConten
13
13
  import type { MessageRole } from './MessageRole';
14
14
  import type { ThreadMessageDetailsOutput } from './ThreadMessageDetailsOutput';
15
15
  /**
16
- * Thread message response model.
16
+ *
17
17
  * @export
18
18
  * @interface ThreadMessageResponse
19
19
  */
@@ -72,6 +72,12 @@ export interface ThreadMessageResponse {
72
72
  * @memberof ThreadMessageResponse
73
73
  */
74
74
  tenantId: string;
75
+ /**
76
+ * tenant_user.user_id of the sender for USER messages. NULL for ASSISTANT / SYSTEM rows and for legacy USER rows written before multi-user thread support landed.
77
+ * @type {string}
78
+ * @memberof ThreadMessageResponse
79
+ */
80
+ authorTenantUserId?: string | null;
75
81
  /**
76
82
  * Creation timestamp
77
83
  * @type {Date}
@@ -66,6 +66,7 @@ function ThreadMessageResponseFromJSONTyped(json, ignoreDiscriminator) {
66
66
  'parentPathId': json['parent_path_id'],
67
67
  'materializedPath': json['materialized_path'],
68
68
  'tenantId': json['tenant_id'],
69
+ 'authorTenantUserId': json['author_tenant_user_id'] == null ? undefined : json['author_tenant_user_id'],
69
70
  'createdAt': (new Date(json['created_at'])),
70
71
  'updatedAt': (new Date(json['updated_at'])),
71
72
  };
@@ -87,6 +88,7 @@ function ThreadMessageResponseToJSONTyped(value, ignoreDiscriminator = false) {
87
88
  'parent_path_id': value['parentPathId'],
88
89
  'materialized_path': value['materializedPath'],
89
90
  'tenant_id': value['tenantId'],
91
+ 'author_tenant_user_id': value['authorTenantUserId'],
90
92
  'created_at': value['createdAt'].toISOString(),
91
93
  'updated_at': value['updatedAt'].toISOString(),
92
94
  };
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  /**
13
- * Thread response model.
13
+ *
14
14
  * @export
15
15
  * @interface ThreadResponse
16
16
  */
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  /**
13
- * Request to update a thread.
13
+ *
14
14
  * @export
15
15
  * @interface UpdateThreadRequest
16
16
  */
@@ -9,15 +9,8 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import type { SelfHostedRunnerConfig } from './SelfHostedRunnerConfig';
13
- import type { WorkflowRunnerType } from './WorkflowRunnerType';
14
12
  /**
15
13
  * Full replacement (PUT semantics).
16
- *
17
- * ``instruction_path_part_ids``:
18
- *
19
- * - ``KS_INTERNAL``: must remain ``len == 1`` (the auto-provisioned doc).
20
- * - ``SELF_HOSTED``: ``len ≥ 1``; callers may swap or add documents.
21
14
  * @export
22
15
  * @interface UpdateWorkflowDefinitionRequest
23
16
  */
@@ -34,18 +27,6 @@ export interface UpdateWorkflowDefinitionRequest {
34
27
  * @memberof UpdateWorkflowDefinitionRequest
35
28
  */
36
29
  description?: string | null;
37
- /**
38
- *
39
- * @type {WorkflowRunnerType}
40
- * @memberof UpdateWorkflowDefinitionRequest
41
- */
42
- runnerType: WorkflowRunnerType;
43
- /**
44
- *
45
- * @type {SelfHostedRunnerConfig}
46
- * @memberof UpdateWorkflowDefinitionRequest
47
- */
48
- runnerConfig?: SelfHostedRunnerConfig | null;
49
30
  /**
50
31
  *
51
32
  * @type {number}
@@ -53,41 +34,23 @@ export interface UpdateWorkflowDefinitionRequest {
53
34
  */
54
35
  maxRunDurationSeconds?: number;
55
36
  /**
56
- *
57
- * @type {Array<string>}
58
- * @memberof UpdateWorkflowDefinitionRequest
59
- */
60
- sourcePathPartIds: Array<string>;
61
- /**
62
- *
63
- * @type {Array<string>}
64
- * @memberof UpdateWorkflowDefinitionRequest
65
- */
66
- instructionPathPartIds: Array<string>;
67
- /**
68
- *
69
- * @type {Array<string>}
70
- * @memberof UpdateWorkflowDefinitionRequest
71
- */
72
- outputPathPartIds: Array<string>;
73
- /**
74
- *
37
+ * DOCUMENT path_part of the instruction document. Pass null (or omit) to retain the existing pinned instruction; pass a UUID to replace it. Never nulled out — the column is NOT NULL.
75
38
  * @type {string}
76
39
  * @memberof UpdateWorkflowDefinitionRequest
77
40
  */
78
- templatePathPartId?: string | null;
41
+ instructionPathPartId?: string | null;
79
42
  /**
80
43
  *
81
44
  * @type {boolean}
82
45
  * @memberof UpdateWorkflowDefinitionRequest
83
46
  */
84
- isActive?: boolean;
47
+ isActive: boolean;
85
48
  /**
86
49
  *
87
50
  * @type {boolean}
88
51
  * @memberof UpdateWorkflowDefinitionRequest
89
52
  */
90
- approvalRequired?: boolean;
53
+ approvalRequired: boolean;
91
54
  }
92
55
  export declare const UpdateWorkflowDefinitionRequestPropertyValidationAttributesMap: {
93
56
  [property: string]: {
@@ -19,33 +19,16 @@ exports.UpdateWorkflowDefinitionRequestFromJSON = UpdateWorkflowDefinitionReques
19
19
  exports.UpdateWorkflowDefinitionRequestFromJSONTyped = UpdateWorkflowDefinitionRequestFromJSONTyped;
20
20
  exports.UpdateWorkflowDefinitionRequestToJSON = UpdateWorkflowDefinitionRequestToJSON;
21
21
  exports.UpdateWorkflowDefinitionRequestToJSONTyped = UpdateWorkflowDefinitionRequestToJSONTyped;
22
- const SelfHostedRunnerConfig_1 = require("./SelfHostedRunnerConfig");
23
- const WorkflowRunnerType_1 = require("./WorkflowRunnerType");
24
22
  exports.UpdateWorkflowDefinitionRequestPropertyValidationAttributesMap = {
25
23
  name: {
26
24
  maxLength: 255,
27
25
  },
28
26
  maxRunDurationSeconds: {
29
- maximum: 86400,
27
+ maximum: 7200,
30
28
  exclusiveMaximum: false,
31
29
  minimum: 60,
32
30
  exclusiveMinimum: false,
33
31
  },
34
- sourcePathPartIds: {
35
- maxItems: 20,
36
- minItems: 1,
37
- uniqueItems: false,
38
- },
39
- instructionPathPartIds: {
40
- maxItems: 20,
41
- minItems: 1,
42
- uniqueItems: false,
43
- },
44
- outputPathPartIds: {
45
- maxItems: 20,
46
- minItems: 1,
47
- uniqueItems: false,
48
- },
49
32
  };
50
33
  /**
51
34
  * Check if a given object implements the UpdateWorkflowDefinitionRequest interface.
@@ -53,13 +36,9 @@ exports.UpdateWorkflowDefinitionRequestPropertyValidationAttributesMap = {
53
36
  function instanceOfUpdateWorkflowDefinitionRequest(value) {
54
37
  if (!('name' in value) || value['name'] === undefined)
55
38
  return false;
56
- if (!('runnerType' in value) || value['runnerType'] === undefined)
57
- return false;
58
- if (!('sourcePathPartIds' in value) || value['sourcePathPartIds'] === undefined)
59
- return false;
60
- if (!('instructionPathPartIds' in value) || value['instructionPathPartIds'] === undefined)
39
+ if (!('isActive' in value) || value['isActive'] === undefined)
61
40
  return false;
62
- if (!('outputPathPartIds' in value) || value['outputPathPartIds'] === undefined)
41
+ if (!('approvalRequired' in value) || value['approvalRequired'] === undefined)
63
42
  return false;
64
43
  return true;
65
44
  }
@@ -73,15 +52,10 @@ function UpdateWorkflowDefinitionRequestFromJSONTyped(json, ignoreDiscriminator)
73
52
  return {
74
53
  'name': json['name'],
75
54
  'description': json['description'] == null ? undefined : json['description'],
76
- 'runnerType': (0, WorkflowRunnerType_1.WorkflowRunnerTypeFromJSON)(json['runner_type']),
77
- 'runnerConfig': json['runner_config'] == null ? undefined : (0, SelfHostedRunnerConfig_1.SelfHostedRunnerConfigFromJSON)(json['runner_config']),
78
55
  'maxRunDurationSeconds': json['max_run_duration_seconds'] == null ? undefined : json['max_run_duration_seconds'],
79
- 'sourcePathPartIds': json['source_path_part_ids'],
80
- 'instructionPathPartIds': json['instruction_path_part_ids'],
81
- 'outputPathPartIds': json['output_path_part_ids'],
82
- 'templatePathPartId': json['template_path_part_id'] == null ? undefined : json['template_path_part_id'],
83
- 'isActive': json['is_active'] == null ? undefined : json['is_active'],
84
- 'approvalRequired': json['approval_required'] == null ? undefined : json['approval_required'],
56
+ 'instructionPathPartId': json['instruction_path_part_id'] == null ? undefined : json['instruction_path_part_id'],
57
+ 'isActive': json['is_active'],
58
+ 'approvalRequired': json['approval_required'],
85
59
  };
86
60
  }
87
61
  function UpdateWorkflowDefinitionRequestToJSON(json) {
@@ -94,13 +68,8 @@ function UpdateWorkflowDefinitionRequestToJSONTyped(value, ignoreDiscriminator =
94
68
  return {
95
69
  'name': value['name'],
96
70
  'description': value['description'],
97
- 'runner_type': (0, WorkflowRunnerType_1.WorkflowRunnerTypeToJSON)(value['runnerType']),
98
- 'runner_config': (0, SelfHostedRunnerConfig_1.SelfHostedRunnerConfigToJSON)(value['runnerConfig']),
99
71
  'max_run_duration_seconds': value['maxRunDurationSeconds'],
100
- 'source_path_part_ids': value['sourcePathPartIds'],
101
- 'instruction_path_part_ids': value['instructionPathPartIds'],
102
- 'output_path_part_ids': value['outputPathPartIds'],
103
- 'template_path_part_id': value['templatePathPartId'],
72
+ 'instruction_path_part_id': value['instructionPathPartId'],
104
73
  'is_active': value['isActive'],
105
74
  'approval_required': value['approvalRequired'],
106
75
  };
@@ -0,0 +1,58 @@
1
+ /**
2
+ * Knowledge Stack API
3
+ * Knowledge Stack backend API for authentication and knowledge management
4
+ *
5
+ * The version of the OpenAPI document: 0.1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ * PATCH body for ``/v1/workflow-runs/{id}`` — NOT_STARTED runs only.
14
+ *
15
+ * Both fields are optional. A body with both ``None`` is rejected as 400
16
+ * (no-op PATCH). ``input_scope`` replaces the row's KB-ref list wholesale;
17
+ * ``name`` renames the run path_part (the trigger cascades
18
+ * ``materialized_path`` to every descendant).
19
+ * @export
20
+ * @interface UpdateWorkflowRunRequest
21
+ */
22
+ export interface UpdateWorkflowRunRequest {
23
+ /**
24
+ * New KB-reference scope (DOCUMENT + FOLDER pp_ids). Replaces the row's ``input_path_part_ids`` wholesale. Uploaded files live in ``inputs/`` and are walked at Start; they are not part of this list.
25
+ * @type {Array<string>}
26
+ * @memberof UpdateWorkflowRunRequest
27
+ */
28
+ inputScope?: Array<string> | null;
29
+ /**
30
+ * New display name for the run (mirrors path_part.name).
31
+ * @type {string}
32
+ * @memberof UpdateWorkflowRunRequest
33
+ */
34
+ name?: string | null;
35
+ }
36
+ export declare const UpdateWorkflowRunRequestPropertyValidationAttributesMap: {
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
+ * Check if a given object implements the UpdateWorkflowRunRequest interface.
53
+ */
54
+ export declare function instanceOfUpdateWorkflowRunRequest(value: object): value is UpdateWorkflowRunRequest;
55
+ export declare function UpdateWorkflowRunRequestFromJSON(json: any): UpdateWorkflowRunRequest;
56
+ export declare function UpdateWorkflowRunRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateWorkflowRunRequest;
57
+ export declare function UpdateWorkflowRunRequestToJSON(json: any): UpdateWorkflowRunRequest;
58
+ export declare function UpdateWorkflowRunRequestToJSONTyped(value?: UpdateWorkflowRunRequest | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,61 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Knowledge Stack API
6
+ * Knowledge Stack backend API for authentication and knowledge management
7
+ *
8
+ * The version of the OpenAPI document: 0.1.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.UpdateWorkflowRunRequestPropertyValidationAttributesMap = void 0;
17
+ exports.instanceOfUpdateWorkflowRunRequest = instanceOfUpdateWorkflowRunRequest;
18
+ exports.UpdateWorkflowRunRequestFromJSON = UpdateWorkflowRunRequestFromJSON;
19
+ exports.UpdateWorkflowRunRequestFromJSONTyped = UpdateWorkflowRunRequestFromJSONTyped;
20
+ exports.UpdateWorkflowRunRequestToJSON = UpdateWorkflowRunRequestToJSON;
21
+ exports.UpdateWorkflowRunRequestToJSONTyped = UpdateWorkflowRunRequestToJSONTyped;
22
+ exports.UpdateWorkflowRunRequestPropertyValidationAttributesMap = {
23
+ inputScope: {
24
+ maxItems: 50,
25
+ uniqueItems: false,
26
+ },
27
+ name: {
28
+ maxLength: 255,
29
+ minLength: 1,
30
+ },
31
+ };
32
+ /**
33
+ * Check if a given object implements the UpdateWorkflowRunRequest interface.
34
+ */
35
+ function instanceOfUpdateWorkflowRunRequest(value) {
36
+ return true;
37
+ }
38
+ function UpdateWorkflowRunRequestFromJSON(json) {
39
+ return UpdateWorkflowRunRequestFromJSONTyped(json, false);
40
+ }
41
+ function UpdateWorkflowRunRequestFromJSONTyped(json, ignoreDiscriminator) {
42
+ if (json == null) {
43
+ return json;
44
+ }
45
+ return {
46
+ 'inputScope': json['input_scope'] == null ? undefined : json['input_scope'],
47
+ 'name': json['name'] == null ? undefined : json['name'],
48
+ };
49
+ }
50
+ function UpdateWorkflowRunRequestToJSON(json) {
51
+ return UpdateWorkflowRunRequestToJSONTyped(json, false);
52
+ }
53
+ function UpdateWorkflowRunRequestToJSONTyped(value, ignoreDiscriminator = false) {
54
+ if (value == null) {
55
+ return value;
56
+ }
57
+ return {
58
+ 'input_scope': value['inputScope'],
59
+ 'name': value['name'],
60
+ };
61
+ }
@@ -0,0 +1,59 @@
1
+ /**
2
+ * Knowledge Stack API
3
+ * Knowledge Stack backend API for authentication and knowledge management
4
+ *
5
+ * The version of the OpenAPI document: 0.1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ * Minimal user identity for embedding on other responses.
14
+ * @export
15
+ * @interface UserInfo
16
+ */
17
+ export interface UserInfo {
18
+ /**
19
+ * User ID
20
+ * @type {string}
21
+ * @memberof UserInfo
22
+ */
23
+ userId: string;
24
+ /**
25
+ * First name (nullable on the user model)
26
+ * @type {string}
27
+ * @memberof UserInfo
28
+ */
29
+ firstName: string | null;
30
+ /**
31
+ * Last name (nullable on the user model)
32
+ * @type {string}
33
+ * @memberof UserInfo
34
+ */
35
+ lastName: string | null;
36
+ }
37
+ export declare const UserInfoPropertyValidationAttributesMap: {
38
+ [property: string]: {
39
+ maxLength?: number;
40
+ minLength?: number;
41
+ pattern?: string;
42
+ maximum?: number;
43
+ exclusiveMaximum?: boolean;
44
+ minimum?: number;
45
+ exclusiveMinimum?: boolean;
46
+ multipleOf?: number;
47
+ maxItems?: number;
48
+ minItems?: number;
49
+ uniqueItems?: boolean;
50
+ };
51
+ };
52
+ /**
53
+ * Check if a given object implements the UserInfo interface.
54
+ */
55
+ export declare function instanceOfUserInfo(value: object): value is UserInfo;
56
+ export declare function UserInfoFromJSON(json: any): UserInfo;
57
+ export declare function UserInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserInfo;
58
+ export declare function UserInfoToJSON(json: any): UserInfo;
59
+ export declare function UserInfoToJSONTyped(value?: UserInfo | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,60 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Knowledge Stack API
6
+ * Knowledge Stack backend API for authentication and knowledge management
7
+ *
8
+ * The version of the OpenAPI document: 0.1.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.UserInfoPropertyValidationAttributesMap = void 0;
17
+ exports.instanceOfUserInfo = instanceOfUserInfo;
18
+ exports.UserInfoFromJSON = UserInfoFromJSON;
19
+ exports.UserInfoFromJSONTyped = UserInfoFromJSONTyped;
20
+ exports.UserInfoToJSON = UserInfoToJSON;
21
+ exports.UserInfoToJSONTyped = UserInfoToJSONTyped;
22
+ exports.UserInfoPropertyValidationAttributesMap = {};
23
+ /**
24
+ * Check if a given object implements the UserInfo interface.
25
+ */
26
+ function instanceOfUserInfo(value) {
27
+ if (!('userId' in value) || value['userId'] === undefined)
28
+ return false;
29
+ if (!('firstName' in value) || value['firstName'] === undefined)
30
+ return false;
31
+ if (!('lastName' in value) || value['lastName'] === undefined)
32
+ return false;
33
+ return true;
34
+ }
35
+ function UserInfoFromJSON(json) {
36
+ return UserInfoFromJSONTyped(json, false);
37
+ }
38
+ function UserInfoFromJSONTyped(json, ignoreDiscriminator) {
39
+ if (json == null) {
40
+ return json;
41
+ }
42
+ return {
43
+ 'userId': json['user_id'],
44
+ 'firstName': json['first_name'],
45
+ 'lastName': json['last_name'],
46
+ };
47
+ }
48
+ function UserInfoToJSON(json) {
49
+ return UserInfoToJSONTyped(json, false);
50
+ }
51
+ function UserInfoToJSONTyped(value, ignoreDiscriminator = false) {
52
+ if (value == null) {
53
+ return value;
54
+ }
55
+ return {
56
+ 'user_id': value['userId'],
57
+ 'first_name': value['firstName'],
58
+ 'last_name': value['lastName'],
59
+ };
60
+ }
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  /**
13
- * Request to send a user message and trigger agent generation.
13
+ *
14
14
  * @export
15
15
  * @interface UserMessageRequest
16
16
  */
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  /**
13
- * 202 response from POST /{thread_id}/user_message.
13
+ *
14
14
  * @export
15
15
  * @interface UserMessageResponse
16
16
  */