@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.
- package/.openapi-generator/FILES +38 -20
- package/README.md +30 -19
- package/dist/apis/DocumentCheckoutApi.d.ts +16 -13
- package/dist/apis/DocumentCheckoutApi.js +17 -14
- package/dist/apis/DocumentVersionsApi.d.ts +1 -4
- package/dist/apis/DocumentVersionsApi.js +0 -2
- package/dist/apis/DocumentsApi.d.ts +1 -4
- package/dist/apis/DocumentsApi.js +0 -2
- package/dist/apis/FoldersApi.d.ts +10 -13
- package/dist/apis/FoldersApi.js +2 -4
- package/dist/apis/PathPartApprovalsApi.d.ts +117 -0
- package/dist/apis/PathPartApprovalsApi.js +159 -0
- package/dist/apis/PathPartsApi.d.ts +4 -4
- package/dist/apis/PathPartsApi.js +2 -2
- package/dist/apis/WorkflowDefinitionsApi.d.ts +48 -42
- package/dist/apis/WorkflowDefinitionsApi.js +65 -43
- package/dist/apis/WorkflowMemoryApi.d.ts +12 -9
- package/dist/apis/WorkflowMemoryApi.js +7 -3
- package/dist/apis/WorkflowRunsApi.d.ts +115 -65
- package/dist/apis/WorkflowRunsApi.js +100 -53
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/esm/apis/DocumentCheckoutApi.d.ts +16 -13
- package/dist/esm/apis/DocumentCheckoutApi.js +17 -14
- package/dist/esm/apis/DocumentVersionsApi.d.ts +1 -4
- package/dist/esm/apis/DocumentVersionsApi.js +0 -2
- package/dist/esm/apis/DocumentsApi.d.ts +1 -4
- package/dist/esm/apis/DocumentsApi.js +0 -2
- package/dist/esm/apis/FoldersApi.d.ts +10 -13
- package/dist/esm/apis/FoldersApi.js +3 -5
- package/dist/esm/apis/PathPartApprovalsApi.d.ts +117 -0
- package/dist/esm/apis/PathPartApprovalsApi.js +122 -0
- package/dist/esm/apis/PathPartsApi.d.ts +4 -4
- package/dist/esm/apis/PathPartsApi.js +2 -2
- package/dist/esm/apis/WorkflowDefinitionsApi.d.ts +48 -42
- package/dist/esm/apis/WorkflowDefinitionsApi.js +66 -44
- package/dist/esm/apis/WorkflowMemoryApi.d.ts +12 -9
- package/dist/esm/apis/WorkflowMemoryApi.js +8 -4
- package/dist/esm/apis/WorkflowRunsApi.d.ts +115 -65
- package/dist/esm/apis/WorkflowRunsApi.js +101 -54
- package/dist/esm/apis/index.d.ts +1 -0
- package/dist/esm/apis/index.js +1 -0
- package/dist/esm/models/ChunkContentItem.d.ts +7 -0
- package/dist/esm/models/ChunkContentItem.js +5 -0
- package/dist/esm/models/CitedChunk.d.ts +86 -0
- package/dist/esm/models/CitedChunk.js +55 -0
- package/dist/esm/models/CloneWorkflowRunRequest.d.ts +54 -0
- package/dist/esm/models/CloneWorkflowRunRequest.js +44 -0
- package/dist/esm/models/CreateThreadMessageRequest.d.ts +1 -1
- package/dist/esm/models/CreateThreadRequest.d.ts +13 -1
- package/dist/esm/models/CreateThreadRequest.js +8 -0
- package/dist/esm/models/CreateWorkflowDefinitionRequest.d.ts +6 -41
- package/dist/esm/models/CreateWorkflowDefinitionRequest.js +5 -35
- package/dist/esm/models/DocumentCheckoutResponse.d.ts +6 -5
- package/dist/esm/models/DocumentCheckoutResponse.js +7 -6
- package/dist/esm/models/DocumentResponse.d.ts +11 -3
- package/dist/esm/models/DocumentResponse.js +9 -3
- package/dist/esm/models/DocumentVersionMetadata.d.ts +7 -0
- package/dist/esm/models/DocumentVersionMetadata.js +3 -0
- package/dist/esm/models/DocumentVersionMetadataUpdate.d.ts +7 -0
- package/dist/esm/models/DocumentVersionMetadataUpdate.js +3 -0
- package/dist/esm/models/DocumentVersionResponse.d.ts +4 -3
- package/dist/esm/models/DocumentVersionResponse.js +4 -3
- package/dist/esm/models/DocxParagraphAnchorInput.d.ts +79 -0
- package/dist/esm/models/DocxParagraphAnchorInput.js +71 -0
- package/dist/esm/models/DocxParagraphAnchorOutput.d.ts +88 -0
- package/dist/esm/models/DocxParagraphAnchorOutput.js +74 -0
- package/dist/esm/models/FolderResponse.d.ts +7 -0
- package/dist/esm/models/FolderResponse.js +5 -0
- package/dist/esm/models/FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponse.d.ts +33 -0
- package/dist/esm/models/FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponse.js +57 -0
- package/dist/esm/models/InputSnapshot.d.ts +81 -0
- package/dist/esm/models/{ABCDPathSnapshot.js → InputSnapshot.js} +18 -12
- package/dist/esm/models/InstructionSnapshot.d.ts +16 -10
- package/dist/esm/models/InstructionSnapshot.js +11 -6
- package/dist/esm/models/MemoryChunkResponse.d.ts +1 -1
- package/dist/esm/models/MemoryKind.d.ts +1 -4
- package/dist/esm/models/MemoryKind.js +1 -4
- package/dist/esm/models/PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDiscriminator.d.ts +66 -0
- package/dist/esm/models/{PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseDiscriminator.js → PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDiscriminator.js} +12 -12
- package/dist/esm/models/PaginatedResponseMemoryChunkResponse.d.ts +66 -0
- package/dist/esm/models/PaginatedResponseMemoryChunkResponse.js +70 -0
- package/dist/esm/models/PathPartApprovalDecision.d.ts +6 -5
- package/dist/esm/models/PathPartApprovalDecision.js +7 -6
- package/dist/esm/models/PathPartApprovalResponse.d.ts +2 -23
- package/dist/esm/models/PathPartApprovalResponse.js +3 -15
- package/dist/esm/models/PathPartApprovalState.d.ts +32 -0
- package/dist/esm/models/PathPartApprovalState.js +50 -0
- package/dist/esm/models/SectionContentItem.d.ts +7 -0
- package/dist/esm/models/SectionContentItem.js +5 -0
- package/dist/esm/models/SetApprovalStateRequest.d.ts +69 -0
- package/dist/esm/models/SetApprovalStateRequest.js +57 -0
- package/dist/esm/models/SetWorkflowRunApprovalRequest.d.ts +64 -0
- package/dist/esm/models/SetWorkflowRunApprovalRequest.js +56 -0
- package/dist/esm/models/ThreadMessageResponse.d.ts +7 -1
- package/dist/esm/models/ThreadMessageResponse.js +2 -0
- package/dist/esm/models/ThreadResponse.d.ts +1 -1
- package/dist/esm/models/UpdateThreadRequest.d.ts +1 -1
- package/dist/esm/models/UpdateWorkflowDefinitionRequest.d.ts +4 -41
- package/dist/esm/models/UpdateWorkflowDefinitionRequest.js +7 -38
- package/dist/esm/models/UpdateWorkflowRunRequest.d.ts +58 -0
- package/dist/esm/models/UpdateWorkflowRunRequest.js +53 -0
- package/dist/esm/models/UserInfo.d.ts +59 -0
- package/dist/esm/models/UserInfo.js +52 -0
- package/dist/esm/models/UserMessageRequest.d.ts +1 -1
- package/dist/esm/models/UserMessageResponse.d.ts +1 -1
- package/dist/esm/models/WorkflowDefinitionResponse.d.ts +42 -24
- package/dist/esm/models/WorkflowDefinitionResponse.js +31 -24
- package/dist/esm/models/WorkflowExecutionState.d.ts +42 -0
- package/dist/esm/models/WorkflowExecutionState.js +60 -0
- package/dist/esm/models/WorkflowRunResponse.d.ts +91 -18
- package/dist/esm/models/WorkflowRunResponse.js +59 -18
- package/dist/esm/models/WorkflowRunSnapshot.d.ts +14 -37
- package/dist/esm/models/WorkflowRunSnapshot.js +7 -28
- package/dist/esm/models/XlsxCellAnchorInput.d.ts +79 -0
- package/dist/esm/models/XlsxCellAnchorInput.js +67 -0
- package/dist/esm/models/XlsxCellAnchorInputOrDocxParagraphAnchorInput.d.ts +27 -0
- package/dist/esm/models/XlsxCellAnchorInputOrDocxParagraphAnchorInput.js +47 -0
- package/dist/esm/models/XlsxCellAnchorOutput.d.ts +90 -0
- package/dist/esm/models/XlsxCellAnchorOutput.js +70 -0
- package/dist/esm/models/XlsxCellAnchorOutputOrDocxParagraphAnchorOutput.d.ts +27 -0
- package/dist/esm/models/XlsxCellAnchorOutputOrDocxParagraphAnchorOutput.js +47 -0
- package/dist/esm/models/index.d.ts +18 -10
- package/dist/esm/models/index.js +18 -10
- package/dist/models/ChunkContentItem.d.ts +7 -0
- package/dist/models/ChunkContentItem.js +5 -0
- package/dist/models/CitedChunk.d.ts +86 -0
- package/dist/models/CitedChunk.js +63 -0
- package/dist/models/CloneWorkflowRunRequest.d.ts +54 -0
- package/dist/models/CloneWorkflowRunRequest.js +52 -0
- package/dist/models/CreateThreadMessageRequest.d.ts +1 -1
- package/dist/models/CreateThreadRequest.d.ts +13 -1
- package/dist/models/CreateThreadRequest.js +8 -0
- package/dist/models/CreateWorkflowDefinitionRequest.d.ts +6 -41
- package/dist/models/CreateWorkflowDefinitionRequest.js +5 -35
- package/dist/models/DocumentCheckoutResponse.d.ts +6 -5
- package/dist/models/DocumentCheckoutResponse.js +7 -6
- package/dist/models/DocumentResponse.d.ts +11 -3
- package/dist/models/DocumentResponse.js +9 -3
- package/dist/models/DocumentVersionMetadata.d.ts +7 -0
- package/dist/models/DocumentVersionMetadata.js +3 -0
- package/dist/models/DocumentVersionMetadataUpdate.d.ts +7 -0
- package/dist/models/DocumentVersionMetadataUpdate.js +3 -0
- package/dist/models/DocumentVersionResponse.d.ts +4 -3
- package/dist/models/DocumentVersionResponse.js +4 -3
- package/dist/models/DocxParagraphAnchorInput.d.ts +79 -0
- package/dist/models/DocxParagraphAnchorInput.js +79 -0
- package/dist/models/DocxParagraphAnchorOutput.d.ts +88 -0
- package/dist/models/DocxParagraphAnchorOutput.js +82 -0
- package/dist/models/FolderResponse.d.ts +7 -0
- package/dist/models/FolderResponse.js +5 -0
- package/dist/models/FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponse.d.ts +33 -0
- package/dist/models/FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponse.js +63 -0
- package/dist/models/InputSnapshot.d.ts +81 -0
- package/dist/models/{ABCDPathSnapshot.js → InputSnapshot.js} +24 -18
- package/dist/models/InstructionSnapshot.d.ts +16 -10
- package/dist/models/InstructionSnapshot.js +12 -7
- package/dist/models/MemoryChunkResponse.d.ts +1 -1
- package/dist/models/MemoryKind.d.ts +1 -4
- package/dist/models/MemoryKind.js +1 -4
- package/dist/models/PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDiscriminator.d.ts +66 -0
- package/dist/models/PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDiscriminator.js +78 -0
- package/dist/models/PaginatedResponseMemoryChunkResponse.d.ts +66 -0
- package/dist/models/PaginatedResponseMemoryChunkResponse.js +78 -0
- package/dist/models/PathPartApprovalDecision.d.ts +6 -5
- package/dist/models/PathPartApprovalDecision.js +7 -6
- package/dist/models/PathPartApprovalResponse.d.ts +2 -23
- package/dist/models/PathPartApprovalResponse.js +3 -15
- package/dist/models/PathPartApprovalState.d.ts +32 -0
- package/dist/models/PathPartApprovalState.js +58 -0
- package/dist/models/SectionContentItem.d.ts +7 -0
- package/dist/models/SectionContentItem.js +5 -0
- package/dist/models/SetApprovalStateRequest.d.ts +69 -0
- package/dist/models/SetApprovalStateRequest.js +65 -0
- package/dist/models/SetWorkflowRunApprovalRequest.d.ts +64 -0
- package/dist/models/SetWorkflowRunApprovalRequest.js +64 -0
- package/dist/models/ThreadMessageResponse.d.ts +7 -1
- package/dist/models/ThreadMessageResponse.js +2 -0
- package/dist/models/ThreadResponse.d.ts +1 -1
- package/dist/models/UpdateThreadRequest.d.ts +1 -1
- package/dist/models/UpdateWorkflowDefinitionRequest.d.ts +4 -41
- package/dist/models/UpdateWorkflowDefinitionRequest.js +7 -38
- package/dist/models/UpdateWorkflowRunRequest.d.ts +58 -0
- package/dist/models/UpdateWorkflowRunRequest.js +61 -0
- package/dist/models/UserInfo.d.ts +59 -0
- package/dist/models/UserInfo.js +60 -0
- package/dist/models/UserMessageRequest.d.ts +1 -1
- package/dist/models/UserMessageResponse.d.ts +1 -1
- package/dist/models/WorkflowDefinitionResponse.d.ts +42 -24
- package/dist/models/WorkflowDefinitionResponse.js +32 -25
- package/dist/models/WorkflowExecutionState.d.ts +42 -0
- package/dist/models/WorkflowExecutionState.js +68 -0
- package/dist/models/WorkflowRunResponse.d.ts +91 -18
- package/dist/models/WorkflowRunResponse.js +60 -19
- package/dist/models/WorkflowRunSnapshot.d.ts +14 -37
- package/dist/models/WorkflowRunSnapshot.js +7 -28
- package/dist/models/XlsxCellAnchorInput.d.ts +79 -0
- package/dist/models/XlsxCellAnchorInput.js +75 -0
- package/dist/models/XlsxCellAnchorInputOrDocxParagraphAnchorInput.d.ts +27 -0
- package/dist/models/XlsxCellAnchorInputOrDocxParagraphAnchorInput.js +53 -0
- package/dist/models/XlsxCellAnchorOutput.d.ts +90 -0
- package/dist/models/XlsxCellAnchorOutput.js +78 -0
- package/dist/models/XlsxCellAnchorOutputOrDocxParagraphAnchorOutput.d.ts +27 -0
- package/dist/models/XlsxCellAnchorOutputOrDocxParagraphAnchorOutput.js +53 -0
- package/dist/models/index.d.ts +18 -10
- package/dist/models/index.js +18 -10
- package/docs/ChunkContentItem.md +2 -0
- package/docs/CitedChunk.md +45 -0
- package/docs/CloneWorkflowRunRequest.md +35 -0
- package/docs/CreateThreadMessageRequest.md +0 -1
- package/docs/CreateThreadRequest.md +4 -1
- package/docs/CreateWorkflowDefinitionRequest.md +3 -13
- package/docs/DocumentCheckoutApi.md +19 -16
- package/docs/DocumentCheckoutResponse.md +4 -4
- package/docs/DocumentResponse.md +4 -2
- package/docs/DocumentVersionMetadata.md +2 -0
- package/docs/DocumentVersionMetadataUpdate.md +2 -0
- package/docs/DocumentVersionResponse.md +2 -2
- package/docs/DocumentVersionsApi.md +0 -2
- package/docs/DocumentsApi.md +0 -2
- package/docs/{ABCDPathSnapshot.md → DocxParagraphAnchorInput.md} +15 -11
- package/docs/DocxParagraphAnchorOutput.md +45 -0
- package/docs/FolderResponse.md +2 -0
- package/docs/FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponse.md +108 -0
- package/docs/FoldersApi.md +4 -6
- package/docs/InputSnapshot.md +39 -0
- package/docs/InstructionSnapshot.md +4 -4
- package/docs/MemoryChunkResponse.md +0 -1
- package/docs/MemoryKind.md +1 -1
- package/docs/PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDiscriminator.md +40 -0
- package/docs/{PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseDiscriminator.md → PaginatedResponseMemoryChunkResponse.md} +5 -5
- package/docs/PathPartApprovalDecision.md +1 -1
- package/docs/PathPartApprovalResponse.md +3 -9
- package/docs/{InvokeWorkflowRequest.md → PathPartApprovalState.md} +5 -9
- package/docs/PathPartApprovalsApi.md +161 -0
- package/docs/PathPartsApi.md +1 -1
- package/docs/SectionContentItem.md +2 -0
- package/docs/SectionContentItemOrChunkContentItem.md +2 -0
- package/docs/SetApprovalStateRequest.md +37 -0
- package/docs/SetWorkflowRunApprovalRequest.md +37 -0
- package/docs/ThreadMessageResponse.md +2 -1
- package/docs/ThreadResponse.md +0 -1
- package/docs/UpdateThreadRequest.md +0 -1
- package/docs/UpdateWorkflowDefinitionRequest.md +3 -13
- package/docs/UpdateWorkflowRunRequest.md +37 -0
- package/docs/{RejectFileRequest.md → UserInfo.md} +11 -7
- package/docs/UserMessageRequest.md +0 -1
- package/docs/UserMessageResponse.md +0 -1
- package/docs/WorkflowDefinitionResponse.md +15 -13
- package/docs/WorkflowDefinitionsApi.md +38 -32
- package/docs/WorkflowExecutionState.md +33 -0
- package/docs/WorkflowMemoryApi.md +8 -4
- package/docs/WorkflowRunResponse.md +29 -9
- package/docs/WorkflowRunSnapshot.md +5 -15
- package/docs/WorkflowRunsApi.md +122 -42
- package/docs/{ListMemoryChunksResponse.md → XlsxCellAnchorInput.md} +15 -6
- package/docs/XlsxCellAnchorInputOrDocxParagraphAnchorInput.md +46 -0
- package/docs/XlsxCellAnchorOutput.md +45 -0
- package/docs/XlsxCellAnchorOutputOrDocxParagraphAnchorOutput.md +48 -0
- package/package.json +1 -1
- package/src/apis/DocumentCheckoutApi.ts +35 -28
- package/src/apis/DocumentVersionsApi.ts +1 -4
- package/src/apis/DocumentsApi.ts +1 -4
- package/src/apis/FoldersApi.ts +14 -17
- package/src/apis/PathPartApprovalsApi.ts +228 -0
- package/src/apis/PathPartsApi.ts +4 -4
- package/src/apis/WorkflowDefinitionsApi.ts +102 -78
- package/src/apis/WorkflowMemoryApi.ts +23 -12
- package/src/apis/WorkflowRunsApi.ts +198 -104
- package/src/apis/index.ts +1 -0
- package/src/models/ChunkContentItem.ts +16 -0
- package/src/models/CitedChunk.ts +141 -0
- package/src/models/CloneWorkflowRunRequest.ts +90 -0
- package/src/models/CreateThreadMessageRequest.ts +1 -1
- package/src/models/CreateThreadRequest.ts +21 -1
- package/src/models/CreateWorkflowDefinitionRequest.ts +11 -87
- package/src/models/DocumentCheckoutResponse.ts +19 -11
- package/src/models/DocumentResponse.ts +29 -6
- package/src/models/DocumentVersionMetadata.ts +15 -0
- package/src/models/DocumentVersionMetadataUpdate.ts +15 -0
- package/src/models/DocumentVersionResponse.ts +13 -6
- package/src/models/DocxParagraphAnchorInput.ts +142 -0
- package/src/models/DocxParagraphAnchorOutput.ts +153 -0
- package/src/models/FolderResponse.ts +16 -0
- package/src/models/FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponse.ts +94 -0
- package/src/models/InputSnapshot.ts +126 -0
- package/src/models/InstructionSnapshot.ts +22 -22
- package/src/models/MemoryChunkResponse.ts +1 -1
- package/src/models/MemoryKind.ts +1 -4
- package/src/models/{PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseDiscriminator.ts → PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDiscriminator.ts} +25 -25
- package/src/models/PaginatedResponseMemoryChunkResponse.ts +130 -0
- package/src/models/PathPartApprovalDecision.ts +7 -6
- package/src/models/PathPartApprovalResponse.ts +5 -35
- package/src/models/PathPartApprovalState.ts +60 -0
- package/src/models/SectionContentItem.ts +17 -0
- package/src/models/SetApprovalStateRequest.ts +113 -0
- package/src/models/SetWorkflowRunApprovalRequest.ts +108 -0
- package/src/models/ThreadMessageResponse.ts +9 -1
- package/src/models/ThreadResponse.ts +1 -1
- package/src/models/UpdateThreadRequest.ts +1 -1
- package/src/models/UpdateWorkflowDefinitionRequest.ts +11 -90
- package/src/models/UpdateWorkflowRunRequest.ts +103 -0
- package/src/models/UserInfo.ts +101 -0
- package/src/models/UserMessageRequest.ts +1 -1
- package/src/models/UserMessageResponse.ts +1 -1
- package/src/models/WorkflowDefinitionResponse.ts +68 -53
- package/src/models/WorkflowExecutionState.ts +70 -0
- package/src/models/WorkflowRunResponse.ts +151 -44
- package/src/models/WorkflowRunSnapshot.ts +25 -71
- package/src/models/XlsxCellAnchorInput.ts +138 -0
- package/src/models/XlsxCellAnchorInputOrDocxParagraphAnchorInput.ts +72 -0
- package/src/models/XlsxCellAnchorOutput.ts +151 -0
- package/src/models/XlsxCellAnchorOutputOrDocxParagraphAnchorOutput.ts +72 -0
- package/src/models/index.ts +18 -10
- package/dist/esm/models/ABCDPathSnapshot.d.ts +0 -60
- package/dist/esm/models/FolderResponseOrDocumentResponse.d.ts +0 -27
- package/dist/esm/models/FolderResponseOrDocumentResponse.js +0 -47
- package/dist/esm/models/InvokeWorkflowRequest.d.ts +0 -53
- package/dist/esm/models/InvokeWorkflowRequest.js +0 -52
- package/dist/esm/models/ListMemoryChunksResponse.d.ts +0 -48
- package/dist/esm/models/ListMemoryChunksResponse.js +0 -45
- package/dist/esm/models/PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseDiscriminator.d.ts +0 -66
- package/dist/esm/models/RejectFileRequest.d.ts +0 -47
- package/dist/esm/models/RejectFileRequest.js +0 -49
- package/dist/esm/models/SelfHostedRunnerConfig.d.ts +0 -53
- package/dist/esm/models/SelfHostedRunnerConfig.js +0 -53
- package/dist/esm/models/SelfHostedRunnerConfigResponse.d.ts +0 -47
- package/dist/esm/models/SelfHostedRunnerConfigResponse.js +0 -49
- package/dist/esm/models/WorkflowRunStatus.d.ts +0 -45
- package/dist/esm/models/WorkflowRunStatus.js +0 -63
- package/dist/esm/models/WorkflowRunnerType.d.ts +0 -25
- package/dist/esm/models/WorkflowRunnerType.js +0 -43
- package/dist/models/ABCDPathSnapshot.d.ts +0 -60
- package/dist/models/FolderResponseOrDocumentResponse.d.ts +0 -27
- package/dist/models/FolderResponseOrDocumentResponse.js +0 -53
- package/dist/models/InvokeWorkflowRequest.d.ts +0 -53
- package/dist/models/InvokeWorkflowRequest.js +0 -60
- package/dist/models/ListMemoryChunksResponse.d.ts +0 -48
- package/dist/models/ListMemoryChunksResponse.js +0 -53
- package/dist/models/PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseDiscriminator.d.ts +0 -66
- package/dist/models/PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseDiscriminator.js +0 -78
- package/dist/models/RejectFileRequest.d.ts +0 -47
- package/dist/models/RejectFileRequest.js +0 -57
- package/dist/models/SelfHostedRunnerConfig.d.ts +0 -53
- package/dist/models/SelfHostedRunnerConfig.js +0 -61
- package/dist/models/SelfHostedRunnerConfigResponse.d.ts +0 -47
- package/dist/models/SelfHostedRunnerConfigResponse.js +0 -57
- package/dist/models/WorkflowRunStatus.d.ts +0 -45
- package/dist/models/WorkflowRunStatus.js +0 -71
- package/dist/models/WorkflowRunnerType.d.ts +0 -25
- package/dist/models/WorkflowRunnerType.js +0 -51
- package/docs/FolderResponseOrDocumentResponse.md +0 -70
- package/docs/SelfHostedRunnerConfig.md +0 -37
- package/docs/SelfHostedRunnerConfigResponse.md +0 -35
- package/docs/WorkflowRunStatus.md +0 -33
- package/docs/WorkflowRunnerType.md +0 -33
- package/src/models/ABCDPathSnapshot.ts +0 -111
- package/src/models/FolderResponseOrDocumentResponse.ts +0 -72
- package/src/models/InvokeWorkflowRequest.ts +0 -97
- package/src/models/ListMemoryChunksResponse.ts +0 -91
- package/src/models/RejectFileRequest.ts +0 -87
- package/src/models/SelfHostedRunnerConfig.ts +0 -96
- package/src/models/SelfHostedRunnerConfigResponse.ts +0 -87
- package/src/models/WorkflowRunStatus.ts +0 -73
- package/src/models/WorkflowRunnerType.ts +0 -53
|
@@ -9,74 +9,79 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type {
|
|
13
|
-
import type { SelfHostedRunnerConfigResponse } from './SelfHostedRunnerConfigResponse';
|
|
12
|
+
import type { PathPartApprovalState } from './PathPartApprovalState';
|
|
14
13
|
/**
|
|
15
14
|
* Workflow definition response.
|
|
15
|
+
*
|
|
16
|
+
* Doubles as a discriminated-union variant for folder-listing
|
|
17
|
+
* responses. The ``part_type`` literal is the discriminator: when the
|
|
18
|
+
* FE walks a folder tree it sees this shape mixed in with
|
|
19
|
+
* ``FolderResponse`` / ``DocumentResponse`` and can route to the
|
|
20
|
+
* dedicated workflow page based on ``part_type``.
|
|
16
21
|
* @export
|
|
17
22
|
* @interface WorkflowDefinitionResponse
|
|
18
23
|
*/
|
|
19
24
|
export interface WorkflowDefinitionResponse {
|
|
20
25
|
/**
|
|
21
|
-
*
|
|
22
|
-
* @type {
|
|
26
|
+
* Path part type
|
|
27
|
+
* @type {WorkflowDefinitionResponsePartTypeEnum}
|
|
23
28
|
* @memberof WorkflowDefinitionResponse
|
|
24
29
|
*/
|
|
25
|
-
|
|
30
|
+
partType?: WorkflowDefinitionResponsePartTypeEnum;
|
|
26
31
|
/**
|
|
27
32
|
*
|
|
28
33
|
* @type {string}
|
|
29
34
|
* @memberof WorkflowDefinitionResponse
|
|
30
35
|
*/
|
|
31
|
-
|
|
36
|
+
id: string;
|
|
32
37
|
/**
|
|
33
|
-
*
|
|
38
|
+
* WORKFLOW_DEFINITION path_part of this definition
|
|
34
39
|
* @type {string}
|
|
35
40
|
* @memberof WorkflowDefinitionResponse
|
|
36
41
|
*/
|
|
37
|
-
|
|
42
|
+
pathPartId: string;
|
|
38
43
|
/**
|
|
39
|
-
*
|
|
40
|
-
* @type {
|
|
44
|
+
* FOLDER path_part of the containing folder
|
|
45
|
+
* @type {string}
|
|
41
46
|
* @memberof WorkflowDefinitionResponse
|
|
42
47
|
*/
|
|
43
|
-
|
|
48
|
+
parentPathPartId: string | null;
|
|
44
49
|
/**
|
|
45
|
-
*
|
|
46
|
-
* @type {
|
|
50
|
+
* Full materialized path from root
|
|
51
|
+
* @type {string}
|
|
47
52
|
* @memberof WorkflowDefinitionResponse
|
|
48
53
|
*/
|
|
49
|
-
|
|
54
|
+
materializedPath: string;
|
|
50
55
|
/**
|
|
51
56
|
*
|
|
52
|
-
* @type {
|
|
57
|
+
* @type {string}
|
|
53
58
|
* @memberof WorkflowDefinitionResponse
|
|
54
59
|
*/
|
|
55
|
-
|
|
60
|
+
tenantId: string;
|
|
56
61
|
/**
|
|
57
62
|
*
|
|
58
|
-
* @type {
|
|
63
|
+
* @type {string}
|
|
59
64
|
* @memberof WorkflowDefinitionResponse
|
|
60
65
|
*/
|
|
61
|
-
|
|
66
|
+
name: string;
|
|
62
67
|
/**
|
|
63
68
|
*
|
|
64
|
-
* @type {
|
|
69
|
+
* @type {string}
|
|
65
70
|
* @memberof WorkflowDefinitionResponse
|
|
66
71
|
*/
|
|
67
|
-
|
|
72
|
+
description: string | null;
|
|
68
73
|
/**
|
|
69
74
|
*
|
|
70
|
-
* @type {
|
|
75
|
+
* @type {number}
|
|
71
76
|
* @memberof WorkflowDefinitionResponse
|
|
72
77
|
*/
|
|
73
|
-
|
|
78
|
+
maxRunDurationSeconds: number;
|
|
74
79
|
/**
|
|
75
|
-
*
|
|
80
|
+
* DOCUMENT path_part of the instruction document
|
|
76
81
|
* @type {string}
|
|
77
82
|
* @memberof WorkflowDefinitionResponse
|
|
78
83
|
*/
|
|
79
|
-
|
|
84
|
+
instructionPathPartId: string;
|
|
80
85
|
/**
|
|
81
86
|
*
|
|
82
87
|
* @type {boolean}
|
|
@@ -89,6 +94,12 @@ export interface WorkflowDefinitionResponse {
|
|
|
89
94
|
* @memberof WorkflowDefinitionResponse
|
|
90
95
|
*/
|
|
91
96
|
approvalRequired: boolean;
|
|
97
|
+
/**
|
|
98
|
+
*
|
|
99
|
+
* @type {PathPartApprovalState}
|
|
100
|
+
* @memberof WorkflowDefinitionResponse
|
|
101
|
+
*/
|
|
102
|
+
approvalState: PathPartApprovalState;
|
|
92
103
|
/**
|
|
93
104
|
*
|
|
94
105
|
* @type {Date}
|
|
@@ -102,6 +113,13 @@ export interface WorkflowDefinitionResponse {
|
|
|
102
113
|
*/
|
|
103
114
|
updatedAt: Date;
|
|
104
115
|
}
|
|
116
|
+
/**
|
|
117
|
+
* @export
|
|
118
|
+
*/
|
|
119
|
+
export declare const WorkflowDefinitionResponsePartTypeEnum: {
|
|
120
|
+
readonly WorkflowDefinition: "WORKFLOW_DEFINITION";
|
|
121
|
+
};
|
|
122
|
+
export type WorkflowDefinitionResponsePartTypeEnum = typeof WorkflowDefinitionResponsePartTypeEnum[keyof typeof WorkflowDefinitionResponsePartTypeEnum];
|
|
105
123
|
export declare const WorkflowDefinitionResponsePropertyValidationAttributesMap: {
|
|
106
124
|
[property: string]: {
|
|
107
125
|
maxLength?: number;
|
|
@@ -13,14 +13,19 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.WorkflowDefinitionResponsePropertyValidationAttributesMap = void 0;
|
|
16
|
+
exports.WorkflowDefinitionResponsePropertyValidationAttributesMap = exports.WorkflowDefinitionResponsePartTypeEnum = void 0;
|
|
17
17
|
exports.instanceOfWorkflowDefinitionResponse = instanceOfWorkflowDefinitionResponse;
|
|
18
18
|
exports.WorkflowDefinitionResponseFromJSON = WorkflowDefinitionResponseFromJSON;
|
|
19
19
|
exports.WorkflowDefinitionResponseFromJSONTyped = WorkflowDefinitionResponseFromJSONTyped;
|
|
20
20
|
exports.WorkflowDefinitionResponseToJSON = WorkflowDefinitionResponseToJSON;
|
|
21
21
|
exports.WorkflowDefinitionResponseToJSONTyped = WorkflowDefinitionResponseToJSONTyped;
|
|
22
|
-
const
|
|
23
|
-
|
|
22
|
+
const PathPartApprovalState_1 = require("./PathPartApprovalState");
|
|
23
|
+
/**
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.WorkflowDefinitionResponsePartTypeEnum = {
|
|
27
|
+
WorkflowDefinition: 'WORKFLOW_DEFINITION'
|
|
28
|
+
};
|
|
24
29
|
exports.WorkflowDefinitionResponsePropertyValidationAttributesMap = {};
|
|
25
30
|
/**
|
|
26
31
|
* Check if a given object implements the WorkflowDefinitionResponse interface.
|
|
@@ -28,28 +33,28 @@ exports.WorkflowDefinitionResponsePropertyValidationAttributesMap = {};
|
|
|
28
33
|
function instanceOfWorkflowDefinitionResponse(value) {
|
|
29
34
|
if (!('id' in value) || value['id'] === undefined)
|
|
30
35
|
return false;
|
|
31
|
-
if (!('
|
|
32
|
-
return false;
|
|
33
|
-
if (!('description' in value) || value['description'] === undefined)
|
|
36
|
+
if (!('pathPartId' in value) || value['pathPartId'] === undefined)
|
|
34
37
|
return false;
|
|
35
|
-
if (!('
|
|
38
|
+
if (!('parentPathPartId' in value) || value['parentPathPartId'] === undefined)
|
|
36
39
|
return false;
|
|
37
|
-
if (!('
|
|
40
|
+
if (!('materializedPath' in value) || value['materializedPath'] === undefined)
|
|
38
41
|
return false;
|
|
39
|
-
if (!('
|
|
42
|
+
if (!('tenantId' in value) || value['tenantId'] === undefined)
|
|
40
43
|
return false;
|
|
41
|
-
if (!('
|
|
44
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
42
45
|
return false;
|
|
43
|
-
if (!('
|
|
46
|
+
if (!('description' in value) || value['description'] === undefined)
|
|
44
47
|
return false;
|
|
45
|
-
if (!('
|
|
48
|
+
if (!('maxRunDurationSeconds' in value) || value['maxRunDurationSeconds'] === undefined)
|
|
46
49
|
return false;
|
|
47
|
-
if (!('
|
|
50
|
+
if (!('instructionPathPartId' in value) || value['instructionPathPartId'] === undefined)
|
|
48
51
|
return false;
|
|
49
52
|
if (!('isActive' in value) || value['isActive'] === undefined)
|
|
50
53
|
return false;
|
|
51
54
|
if (!('approvalRequired' in value) || value['approvalRequired'] === undefined)
|
|
52
55
|
return false;
|
|
56
|
+
if (!('approvalState' in value) || value['approvalState'] === undefined)
|
|
57
|
+
return false;
|
|
53
58
|
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
54
59
|
return false;
|
|
55
60
|
if (!('updatedAt' in value) || value['updatedAt'] === undefined)
|
|
@@ -64,18 +69,19 @@ function WorkflowDefinitionResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
64
69
|
return json;
|
|
65
70
|
}
|
|
66
71
|
return {
|
|
72
|
+
'partType': json['part_type'] == null ? undefined : json['part_type'],
|
|
67
73
|
'id': json['id'],
|
|
74
|
+
'pathPartId': json['path_part_id'],
|
|
75
|
+
'parentPathPartId': json['parent_path_part_id'],
|
|
76
|
+
'materializedPath': json['materialized_path'],
|
|
77
|
+
'tenantId': json['tenant_id'],
|
|
68
78
|
'name': json['name'],
|
|
69
79
|
'description': json['description'],
|
|
70
|
-
'runnerType': (0, WorkflowRunnerType_1.WorkflowRunnerTypeFromJSON)(json['runner_type']),
|
|
71
|
-
'runnerConfig': (0, SelfHostedRunnerConfigResponse_1.SelfHostedRunnerConfigResponseFromJSON)(json['runner_config']),
|
|
72
80
|
'maxRunDurationSeconds': json['max_run_duration_seconds'],
|
|
73
|
-
'
|
|
74
|
-
'instructionPathPartIds': json['instruction_path_part_ids'],
|
|
75
|
-
'outputPathPartIds': json['output_path_part_ids'],
|
|
76
|
-
'templatePathPartId': json['template_path_part_id'],
|
|
81
|
+
'instructionPathPartId': json['instruction_path_part_id'],
|
|
77
82
|
'isActive': json['is_active'],
|
|
78
83
|
'approvalRequired': json['approval_required'],
|
|
84
|
+
'approvalState': (0, PathPartApprovalState_1.PathPartApprovalStateFromJSON)(json['approval_state']),
|
|
79
85
|
'createdAt': (new Date(json['created_at'])),
|
|
80
86
|
'updatedAt': (new Date(json['updated_at'])),
|
|
81
87
|
};
|
|
@@ -88,18 +94,19 @@ function WorkflowDefinitionResponseToJSONTyped(value, ignoreDiscriminator = fals
|
|
|
88
94
|
return value;
|
|
89
95
|
}
|
|
90
96
|
return {
|
|
97
|
+
'part_type': value['partType'],
|
|
91
98
|
'id': value['id'],
|
|
99
|
+
'path_part_id': value['pathPartId'],
|
|
100
|
+
'parent_path_part_id': value['parentPathPartId'],
|
|
101
|
+
'materialized_path': value['materializedPath'],
|
|
102
|
+
'tenant_id': value['tenantId'],
|
|
92
103
|
'name': value['name'],
|
|
93
104
|
'description': value['description'],
|
|
94
|
-
'runner_type': (0, WorkflowRunnerType_1.WorkflowRunnerTypeToJSON)(value['runnerType']),
|
|
95
|
-
'runner_config': (0, SelfHostedRunnerConfigResponse_1.SelfHostedRunnerConfigResponseToJSON)(value['runnerConfig']),
|
|
96
105
|
'max_run_duration_seconds': value['maxRunDurationSeconds'],
|
|
97
|
-
'
|
|
98
|
-
'instruction_path_part_ids': value['instructionPathPartIds'],
|
|
99
|
-
'output_path_part_ids': value['outputPathPartIds'],
|
|
100
|
-
'template_path_part_id': value['templatePathPartId'],
|
|
106
|
+
'instruction_path_part_id': value['instructionPathPartId'],
|
|
101
107
|
'is_active': value['isActive'],
|
|
102
108
|
'approval_required': value['approvalRequired'],
|
|
109
|
+
'approval_state': (0, PathPartApprovalState_1.PathPartApprovalStateToJSON)(value['approvalState']),
|
|
103
110
|
'created_at': value['createdAt'].toISOString(),
|
|
104
111
|
'updated_at': value['updatedAt'].toISOString(),
|
|
105
112
|
};
|
|
@@ -0,0 +1,42 @@
|
|
|
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
|
+
* Execution lifecycle of a workflow run.
|
|
14
|
+
*
|
|
15
|
+
* Two-step flow lifecycle:
|
|
16
|
+
*
|
|
17
|
+
* * ``PENDING`` — entry state when the create call carries uploads.
|
|
18
|
+
* Inputs are being ingested by Temporal; the run cannot be started
|
|
19
|
+
* yet. The ingestion-completion hook auto-flips the run to
|
|
20
|
+
* ``NOT_STARTED`` once every input under ``inputs/`` reaches
|
|
21
|
+
* ``pipeline_state.status == COMPLETED``.
|
|
22
|
+
* * ``NOT_STARTED`` — entry state when the create call has no
|
|
23
|
+
* uploads (KB references only), OR the post-ingestion landing
|
|
24
|
+
* pad. The user can Start the run from here.
|
|
25
|
+
* * ``IN_PROGRESS`` — set by ``POST /v1/workflow-runs/{id}/start``,
|
|
26
|
+
* which builds the snapshot and dispatches the Temporal workflow.
|
|
27
|
+
* * ``COMPLETED`` / ``FAILED`` — terminal; ``completed_at`` is set.
|
|
28
|
+
* @export
|
|
29
|
+
*/
|
|
30
|
+
export declare const WorkflowExecutionState: {
|
|
31
|
+
readonly Pending: "PENDING";
|
|
32
|
+
readonly NotStarted: "NOT_STARTED";
|
|
33
|
+
readonly InProgress: "IN_PROGRESS";
|
|
34
|
+
readonly Completed: "COMPLETED";
|
|
35
|
+
readonly Failed: "FAILED";
|
|
36
|
+
};
|
|
37
|
+
export type WorkflowExecutionState = typeof WorkflowExecutionState[keyof typeof WorkflowExecutionState];
|
|
38
|
+
export declare function instanceOfWorkflowExecutionState(value: any): boolean;
|
|
39
|
+
export declare function WorkflowExecutionStateFromJSON(json: any): WorkflowExecutionState;
|
|
40
|
+
export declare function WorkflowExecutionStateFromJSONTyped(json: any, ignoreDiscriminator: boolean): WorkflowExecutionState;
|
|
41
|
+
export declare function WorkflowExecutionStateToJSON(value?: WorkflowExecutionState | null): any;
|
|
42
|
+
export declare function WorkflowExecutionStateToJSONTyped(value: any, ignoreDiscriminator: boolean): WorkflowExecutionState;
|
|
@@ -0,0 +1,68 @@
|
|
|
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.WorkflowExecutionState = void 0;
|
|
17
|
+
exports.instanceOfWorkflowExecutionState = instanceOfWorkflowExecutionState;
|
|
18
|
+
exports.WorkflowExecutionStateFromJSON = WorkflowExecutionStateFromJSON;
|
|
19
|
+
exports.WorkflowExecutionStateFromJSONTyped = WorkflowExecutionStateFromJSONTyped;
|
|
20
|
+
exports.WorkflowExecutionStateToJSON = WorkflowExecutionStateToJSON;
|
|
21
|
+
exports.WorkflowExecutionStateToJSONTyped = WorkflowExecutionStateToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* Execution lifecycle of a workflow run.
|
|
24
|
+
*
|
|
25
|
+
* Two-step flow lifecycle:
|
|
26
|
+
*
|
|
27
|
+
* * ``PENDING`` — entry state when the create call carries uploads.
|
|
28
|
+
* Inputs are being ingested by Temporal; the run cannot be started
|
|
29
|
+
* yet. The ingestion-completion hook auto-flips the run to
|
|
30
|
+
* ``NOT_STARTED`` once every input under ``inputs/`` reaches
|
|
31
|
+
* ``pipeline_state.status == COMPLETED``.
|
|
32
|
+
* * ``NOT_STARTED`` — entry state when the create call has no
|
|
33
|
+
* uploads (KB references only), OR the post-ingestion landing
|
|
34
|
+
* pad. The user can Start the run from here.
|
|
35
|
+
* * ``IN_PROGRESS`` — set by ``POST /v1/workflow-runs/{id}/start``,
|
|
36
|
+
* which builds the snapshot and dispatches the Temporal workflow.
|
|
37
|
+
* * ``COMPLETED`` / ``FAILED`` — terminal; ``completed_at`` is set.
|
|
38
|
+
* @export
|
|
39
|
+
*/
|
|
40
|
+
exports.WorkflowExecutionState = {
|
|
41
|
+
Pending: 'PENDING',
|
|
42
|
+
NotStarted: 'NOT_STARTED',
|
|
43
|
+
InProgress: 'IN_PROGRESS',
|
|
44
|
+
Completed: 'COMPLETED',
|
|
45
|
+
Failed: 'FAILED'
|
|
46
|
+
};
|
|
47
|
+
function instanceOfWorkflowExecutionState(value) {
|
|
48
|
+
for (const key in exports.WorkflowExecutionState) {
|
|
49
|
+
if (Object.prototype.hasOwnProperty.call(exports.WorkflowExecutionState, key)) {
|
|
50
|
+
if (exports.WorkflowExecutionState[key] === value) {
|
|
51
|
+
return true;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
return false;
|
|
56
|
+
}
|
|
57
|
+
function WorkflowExecutionStateFromJSON(json) {
|
|
58
|
+
return WorkflowExecutionStateFromJSONTyped(json, false);
|
|
59
|
+
}
|
|
60
|
+
function WorkflowExecutionStateFromJSONTyped(json, ignoreDiscriminator) {
|
|
61
|
+
return json;
|
|
62
|
+
}
|
|
63
|
+
function WorkflowExecutionStateToJSON(value) {
|
|
64
|
+
return value;
|
|
65
|
+
}
|
|
66
|
+
function WorkflowExecutionStateToJSONTyped(value, ignoreDiscriminator) {
|
|
67
|
+
return value;
|
|
68
|
+
}
|
|
@@ -10,55 +10,97 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { WorkflowRunSnapshot } from './WorkflowRunSnapshot';
|
|
13
|
-
import type {
|
|
14
|
-
import type {
|
|
13
|
+
import type { WorkflowExecutionState } from './WorkflowExecutionState';
|
|
14
|
+
import type { PathPartApprovalState } from './PathPartApprovalState';
|
|
15
|
+
import type { UserInfo } from './UserInfo';
|
|
15
16
|
/**
|
|
16
17
|
* Workflow run response.
|
|
17
18
|
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
19
|
+
* Doubles as a discriminated-union variant for folder-listing
|
|
20
|
+
* responses so the FE can mix WD/Run entries with regular folders +
|
|
21
|
+
* documents and route based on ``part_type``.
|
|
22
|
+
*
|
|
23
|
+
* Two-step flow note: a NOT_STARTED run has ``started_at=None`` and
|
|
24
|
+
* ``run_snapshot=None``; both are populated when Start dispatches the
|
|
25
|
+
* run. The flat ``input_path_part_ids`` list carries the
|
|
26
|
+
* currently-pinned KB references so the FE can render them on a
|
|
27
|
+
* NOT_STARTED run (the snapshot's typed list is not available yet).
|
|
22
28
|
* @export
|
|
23
29
|
* @interface WorkflowRunResponse
|
|
24
30
|
*/
|
|
25
31
|
export interface WorkflowRunResponse {
|
|
32
|
+
/**
|
|
33
|
+
* Path part type
|
|
34
|
+
* @type {WorkflowRunResponsePartTypeEnum}
|
|
35
|
+
* @memberof WorkflowRunResponse
|
|
36
|
+
*/
|
|
37
|
+
partType?: WorkflowRunResponsePartTypeEnum;
|
|
26
38
|
/**
|
|
27
39
|
*
|
|
28
40
|
* @type {string}
|
|
29
41
|
* @memberof WorkflowRunResponse
|
|
30
42
|
*/
|
|
31
43
|
id: string;
|
|
44
|
+
/**
|
|
45
|
+
* WORKFLOW_RUN path_part of this run
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof WorkflowRunResponse
|
|
48
|
+
*/
|
|
49
|
+
pathPartId: string;
|
|
50
|
+
/**
|
|
51
|
+
* FOLDER path_part of the containing folder
|
|
52
|
+
* @type {string}
|
|
53
|
+
* @memberof WorkflowRunResponse
|
|
54
|
+
*/
|
|
55
|
+
parentPathPartId: string | null;
|
|
56
|
+
/**
|
|
57
|
+
* Full materialized path from root
|
|
58
|
+
* @type {string}
|
|
59
|
+
* @memberof WorkflowRunResponse
|
|
60
|
+
*/
|
|
61
|
+
materializedPath: string;
|
|
32
62
|
/**
|
|
33
63
|
*
|
|
34
64
|
* @type {string}
|
|
35
65
|
* @memberof WorkflowRunResponse
|
|
36
66
|
*/
|
|
37
|
-
|
|
67
|
+
tenantId: string;
|
|
68
|
+
/**
|
|
69
|
+
* Run display name; mirrors ``path_part.name`` (the run's UUID until a slug feature lands).
|
|
70
|
+
* @type {string}
|
|
71
|
+
* @memberof WorkflowRunResponse
|
|
72
|
+
*/
|
|
73
|
+
name: string;
|
|
38
74
|
/**
|
|
39
75
|
*
|
|
40
76
|
* @type {string}
|
|
41
77
|
* @memberof WorkflowRunResponse
|
|
42
78
|
*/
|
|
43
|
-
|
|
79
|
+
workflowDefinitionId: string;
|
|
44
80
|
/**
|
|
45
81
|
*
|
|
46
|
-
* @type {
|
|
82
|
+
* @type {UserInfo}
|
|
47
83
|
* @memberof WorkflowRunResponse
|
|
48
84
|
*/
|
|
49
|
-
|
|
85
|
+
triggeredBy: UserInfo;
|
|
50
86
|
/**
|
|
51
87
|
*
|
|
52
|
-
* @type {
|
|
88
|
+
* @type {WorkflowExecutionState}
|
|
53
89
|
* @memberof WorkflowRunResponse
|
|
54
90
|
*/
|
|
55
|
-
|
|
91
|
+
executionState: WorkflowExecutionState;
|
|
56
92
|
/**
|
|
57
93
|
*
|
|
94
|
+
* @type {PathPartApprovalState}
|
|
95
|
+
* @memberof WorkflowRunResponse
|
|
96
|
+
*/
|
|
97
|
+
approvalState: PathPartApprovalState;
|
|
98
|
+
/**
|
|
99
|
+
* When Start dispatched the run. NULL while the run is NOT_STARTED.
|
|
58
100
|
* @type {Date}
|
|
59
101
|
* @memberof WorkflowRunResponse
|
|
60
102
|
*/
|
|
61
|
-
startedAt: Date;
|
|
103
|
+
startedAt: Date | null;
|
|
62
104
|
/**
|
|
63
105
|
*
|
|
64
106
|
* @type {Date}
|
|
@@ -66,11 +108,11 @@ export interface WorkflowRunResponse {
|
|
|
66
108
|
*/
|
|
67
109
|
completedAt: Date | null;
|
|
68
110
|
/**
|
|
69
|
-
*
|
|
111
|
+
* Frozen workflow configuration captured at Start time. NULL while the run is NOT_STARTED.
|
|
70
112
|
* @type {WorkflowRunSnapshot}
|
|
71
113
|
* @memberof WorkflowRunResponse
|
|
72
114
|
*/
|
|
73
|
-
runSnapshot: WorkflowRunSnapshot;
|
|
115
|
+
runSnapshot: WorkflowRunSnapshot | null;
|
|
74
116
|
/**
|
|
75
117
|
*
|
|
76
118
|
* @type {string}
|
|
@@ -78,17 +120,41 @@ export interface WorkflowRunResponse {
|
|
|
78
120
|
*/
|
|
79
121
|
error: string | null;
|
|
80
122
|
/**
|
|
81
|
-
*
|
|
123
|
+
* FOLDER path_part of the run's ``inputs/`` subfolder
|
|
124
|
+
* @type {string}
|
|
125
|
+
* @memberof WorkflowRunResponse
|
|
126
|
+
*/
|
|
127
|
+
inputsPathPartId: string;
|
|
128
|
+
/**
|
|
129
|
+
* FOLDER path_part of the run's ``outputs/`` subfolder
|
|
130
|
+
* @type {string}
|
|
131
|
+
* @memberof WorkflowRunResponse
|
|
132
|
+
*/
|
|
133
|
+
outputsPathPartId: string;
|
|
134
|
+
/**
|
|
135
|
+
* FOLDER path_part of the run's ``discussions/`` subfolder
|
|
136
|
+
* @type {string}
|
|
137
|
+
* @memberof WorkflowRunResponse
|
|
138
|
+
*/
|
|
139
|
+
discussionsPathPartId: string;
|
|
140
|
+
/**
|
|
141
|
+
* Flat list of currently-pinned KB-reference path_part ids (DOCUMENT + FOLDER). On a NOT_STARTED run this is the only surface for KB refs (run_snapshot is NULL).
|
|
82
142
|
* @type {Array<string>}
|
|
83
143
|
* @memberof WorkflowRunResponse
|
|
84
144
|
*/
|
|
85
|
-
inputPathPartIds
|
|
145
|
+
inputPathPartIds?: Array<string>;
|
|
86
146
|
/**
|
|
87
147
|
*
|
|
88
148
|
* @type {Array<string>}
|
|
89
149
|
* @memberof WorkflowRunResponse
|
|
90
150
|
*/
|
|
91
|
-
|
|
151
|
+
outputsPathPartIds: Array<string>;
|
|
152
|
+
/**
|
|
153
|
+
* The run's primary chat thread (1:1). NULL while NOT_STARTED; set by Start. The FE opens the run by opening this thread.
|
|
154
|
+
* @type {string}
|
|
155
|
+
* @memberof WorkflowRunResponse
|
|
156
|
+
*/
|
|
157
|
+
runThreadId?: string | null;
|
|
92
158
|
/**
|
|
93
159
|
*
|
|
94
160
|
* @type {Date}
|
|
@@ -102,6 +168,13 @@ export interface WorkflowRunResponse {
|
|
|
102
168
|
*/
|
|
103
169
|
updatedAt: Date;
|
|
104
170
|
}
|
|
171
|
+
/**
|
|
172
|
+
* @export
|
|
173
|
+
*/
|
|
174
|
+
export declare const WorkflowRunResponsePartTypeEnum: {
|
|
175
|
+
readonly WorkflowRun: "WORKFLOW_RUN";
|
|
176
|
+
};
|
|
177
|
+
export type WorkflowRunResponsePartTypeEnum = typeof WorkflowRunResponsePartTypeEnum[keyof typeof WorkflowRunResponsePartTypeEnum];
|
|
105
178
|
export declare const WorkflowRunResponsePropertyValidationAttributesMap: {
|
|
106
179
|
[property: string]: {
|
|
107
180
|
maxLength?: number;
|