@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
|
@@ -20,68 +20,116 @@ import {
|
|
|
20
20
|
WorkflowRunSnapshotToJSON,
|
|
21
21
|
WorkflowRunSnapshotToJSONTyped,
|
|
22
22
|
} from './WorkflowRunSnapshot';
|
|
23
|
-
import type {
|
|
23
|
+
import type { WorkflowExecutionState } from './WorkflowExecutionState';
|
|
24
24
|
import {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
} from './
|
|
30
|
-
import type {
|
|
25
|
+
WorkflowExecutionStateFromJSON,
|
|
26
|
+
WorkflowExecutionStateFromJSONTyped,
|
|
27
|
+
WorkflowExecutionStateToJSON,
|
|
28
|
+
WorkflowExecutionStateToJSONTyped,
|
|
29
|
+
} from './WorkflowExecutionState';
|
|
30
|
+
import type { PathPartApprovalState } from './PathPartApprovalState';
|
|
31
31
|
import {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
} from './
|
|
32
|
+
PathPartApprovalStateFromJSON,
|
|
33
|
+
PathPartApprovalStateFromJSONTyped,
|
|
34
|
+
PathPartApprovalStateToJSON,
|
|
35
|
+
PathPartApprovalStateToJSONTyped,
|
|
36
|
+
} from './PathPartApprovalState';
|
|
37
|
+
import type { UserInfo } from './UserInfo';
|
|
38
|
+
import {
|
|
39
|
+
UserInfoFromJSON,
|
|
40
|
+
UserInfoFromJSONTyped,
|
|
41
|
+
UserInfoToJSON,
|
|
42
|
+
UserInfoToJSONTyped,
|
|
43
|
+
} from './UserInfo';
|
|
37
44
|
|
|
38
45
|
/**
|
|
39
46
|
* Workflow run response.
|
|
40
47
|
*
|
|
41
|
-
*
|
|
42
|
-
*
|
|
43
|
-
*
|
|
44
|
-
*
|
|
48
|
+
* Doubles as a discriminated-union variant for folder-listing
|
|
49
|
+
* responses so the FE can mix WD/Run entries with regular folders +
|
|
50
|
+
* documents and route based on ``part_type``.
|
|
51
|
+
*
|
|
52
|
+
* Two-step flow note: a NOT_STARTED run has ``started_at=None`` and
|
|
53
|
+
* ``run_snapshot=None``; both are populated when Start dispatches the
|
|
54
|
+
* run. The flat ``input_path_part_ids`` list carries the
|
|
55
|
+
* currently-pinned KB references so the FE can render them on a
|
|
56
|
+
* NOT_STARTED run (the snapshot's typed list is not available yet).
|
|
45
57
|
* @export
|
|
46
58
|
* @interface WorkflowRunResponse
|
|
47
59
|
*/
|
|
48
60
|
export interface WorkflowRunResponse {
|
|
61
|
+
/**
|
|
62
|
+
* Path part type
|
|
63
|
+
* @type {WorkflowRunResponsePartTypeEnum}
|
|
64
|
+
* @memberof WorkflowRunResponse
|
|
65
|
+
*/
|
|
66
|
+
partType?: WorkflowRunResponsePartTypeEnum;
|
|
49
67
|
/**
|
|
50
68
|
*
|
|
51
69
|
* @type {string}
|
|
52
70
|
* @memberof WorkflowRunResponse
|
|
53
71
|
*/
|
|
54
72
|
id: string;
|
|
73
|
+
/**
|
|
74
|
+
* WORKFLOW_RUN path_part of this run
|
|
75
|
+
* @type {string}
|
|
76
|
+
* @memberof WorkflowRunResponse
|
|
77
|
+
*/
|
|
78
|
+
pathPartId: string;
|
|
79
|
+
/**
|
|
80
|
+
* FOLDER path_part of the containing folder
|
|
81
|
+
* @type {string}
|
|
82
|
+
* @memberof WorkflowRunResponse
|
|
83
|
+
*/
|
|
84
|
+
parentPathPartId: string | null;
|
|
85
|
+
/**
|
|
86
|
+
* Full materialized path from root
|
|
87
|
+
* @type {string}
|
|
88
|
+
* @memberof WorkflowRunResponse
|
|
89
|
+
*/
|
|
90
|
+
materializedPath: string;
|
|
55
91
|
/**
|
|
56
92
|
*
|
|
57
93
|
* @type {string}
|
|
58
94
|
* @memberof WorkflowRunResponse
|
|
59
95
|
*/
|
|
60
|
-
|
|
96
|
+
tenantId: string;
|
|
97
|
+
/**
|
|
98
|
+
* Run display name; mirrors ``path_part.name`` (the run's UUID until a slug feature lands).
|
|
99
|
+
* @type {string}
|
|
100
|
+
* @memberof WorkflowRunResponse
|
|
101
|
+
*/
|
|
102
|
+
name: string;
|
|
61
103
|
/**
|
|
62
104
|
*
|
|
63
105
|
* @type {string}
|
|
64
106
|
* @memberof WorkflowRunResponse
|
|
65
107
|
*/
|
|
66
|
-
|
|
108
|
+
workflowDefinitionId: string;
|
|
67
109
|
/**
|
|
68
110
|
*
|
|
69
|
-
* @type {
|
|
111
|
+
* @type {UserInfo}
|
|
70
112
|
* @memberof WorkflowRunResponse
|
|
71
113
|
*/
|
|
72
|
-
|
|
114
|
+
triggeredBy: UserInfo;
|
|
73
115
|
/**
|
|
74
116
|
*
|
|
75
|
-
* @type {
|
|
117
|
+
* @type {WorkflowExecutionState}
|
|
76
118
|
* @memberof WorkflowRunResponse
|
|
77
119
|
*/
|
|
78
|
-
|
|
120
|
+
executionState: WorkflowExecutionState;
|
|
79
121
|
/**
|
|
80
122
|
*
|
|
123
|
+
* @type {PathPartApprovalState}
|
|
124
|
+
* @memberof WorkflowRunResponse
|
|
125
|
+
*/
|
|
126
|
+
approvalState: PathPartApprovalState;
|
|
127
|
+
/**
|
|
128
|
+
* When Start dispatched the run. NULL while the run is NOT_STARTED.
|
|
81
129
|
* @type {Date}
|
|
82
130
|
* @memberof WorkflowRunResponse
|
|
83
131
|
*/
|
|
84
|
-
startedAt: Date;
|
|
132
|
+
startedAt: Date | null;
|
|
85
133
|
/**
|
|
86
134
|
*
|
|
87
135
|
* @type {Date}
|
|
@@ -89,11 +137,11 @@ export interface WorkflowRunResponse {
|
|
|
89
137
|
*/
|
|
90
138
|
completedAt: Date | null;
|
|
91
139
|
/**
|
|
92
|
-
*
|
|
140
|
+
* Frozen workflow configuration captured at Start time. NULL while the run is NOT_STARTED.
|
|
93
141
|
* @type {WorkflowRunSnapshot}
|
|
94
142
|
* @memberof WorkflowRunResponse
|
|
95
143
|
*/
|
|
96
|
-
runSnapshot: WorkflowRunSnapshot;
|
|
144
|
+
runSnapshot: WorkflowRunSnapshot | null;
|
|
97
145
|
/**
|
|
98
146
|
*
|
|
99
147
|
* @type {string}
|
|
@@ -101,17 +149,41 @@ export interface WorkflowRunResponse {
|
|
|
101
149
|
*/
|
|
102
150
|
error: string | null;
|
|
103
151
|
/**
|
|
104
|
-
*
|
|
152
|
+
* FOLDER path_part of the run's ``inputs/`` subfolder
|
|
153
|
+
* @type {string}
|
|
154
|
+
* @memberof WorkflowRunResponse
|
|
155
|
+
*/
|
|
156
|
+
inputsPathPartId: string;
|
|
157
|
+
/**
|
|
158
|
+
* FOLDER path_part of the run's ``outputs/`` subfolder
|
|
159
|
+
* @type {string}
|
|
160
|
+
* @memberof WorkflowRunResponse
|
|
161
|
+
*/
|
|
162
|
+
outputsPathPartId: string;
|
|
163
|
+
/**
|
|
164
|
+
* FOLDER path_part of the run's ``discussions/`` subfolder
|
|
165
|
+
* @type {string}
|
|
166
|
+
* @memberof WorkflowRunResponse
|
|
167
|
+
*/
|
|
168
|
+
discussionsPathPartId: string;
|
|
169
|
+
/**
|
|
170
|
+
* 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).
|
|
105
171
|
* @type {Array<string>}
|
|
106
172
|
* @memberof WorkflowRunResponse
|
|
107
173
|
*/
|
|
108
|
-
inputPathPartIds
|
|
174
|
+
inputPathPartIds?: Array<string>;
|
|
109
175
|
/**
|
|
110
176
|
*
|
|
111
177
|
* @type {Array<string>}
|
|
112
178
|
* @memberof WorkflowRunResponse
|
|
113
179
|
*/
|
|
114
|
-
|
|
180
|
+
outputsPathPartIds: Array<string>;
|
|
181
|
+
/**
|
|
182
|
+
* The run's primary chat thread (1:1). NULL while NOT_STARTED; set by Start. The FE opens the run by opening this thread.
|
|
183
|
+
* @type {string}
|
|
184
|
+
* @memberof WorkflowRunResponse
|
|
185
|
+
*/
|
|
186
|
+
runThreadId?: string | null;
|
|
115
187
|
/**
|
|
116
188
|
*
|
|
117
189
|
* @type {Date}
|
|
@@ -127,6 +199,14 @@ export interface WorkflowRunResponse {
|
|
|
127
199
|
}
|
|
128
200
|
|
|
129
201
|
|
|
202
|
+
/**
|
|
203
|
+
* @export
|
|
204
|
+
*/
|
|
205
|
+
export const WorkflowRunResponsePartTypeEnum = {
|
|
206
|
+
WorkflowRun: 'WORKFLOW_RUN'
|
|
207
|
+
} as const;
|
|
208
|
+
export type WorkflowRunResponsePartTypeEnum = typeof WorkflowRunResponsePartTypeEnum[keyof typeof WorkflowRunResponsePartTypeEnum];
|
|
209
|
+
|
|
130
210
|
export const WorkflowRunResponsePropertyValidationAttributesMap: {
|
|
131
211
|
[property: string]: {
|
|
132
212
|
maxLength?: number,
|
|
@@ -150,16 +230,23 @@ export const WorkflowRunResponsePropertyValidationAttributesMap: {
|
|
|
150
230
|
*/
|
|
151
231
|
export function instanceOfWorkflowRunResponse(value: object): value is WorkflowRunResponse {
|
|
152
232
|
if (!('id' in value) || value['id'] === undefined) return false;
|
|
233
|
+
if (!('pathPartId' in value) || value['pathPartId'] === undefined) return false;
|
|
234
|
+
if (!('parentPathPartId' in value) || value['parentPathPartId'] === undefined) return false;
|
|
235
|
+
if (!('materializedPath' in value) || value['materializedPath'] === undefined) return false;
|
|
236
|
+
if (!('tenantId' in value) || value['tenantId'] === undefined) return false;
|
|
237
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
153
238
|
if (!('workflowDefinitionId' in value) || value['workflowDefinitionId'] === undefined) return false;
|
|
154
|
-
if (!('
|
|
155
|
-
if (!('
|
|
156
|
-
if (!('
|
|
239
|
+
if (!('triggeredBy' in value) || value['triggeredBy'] === undefined) return false;
|
|
240
|
+
if (!('executionState' in value) || value['executionState'] === undefined) return false;
|
|
241
|
+
if (!('approvalState' in value) || value['approvalState'] === undefined) return false;
|
|
157
242
|
if (!('startedAt' in value) || value['startedAt'] === undefined) return false;
|
|
158
243
|
if (!('completedAt' in value) || value['completedAt'] === undefined) return false;
|
|
159
244
|
if (!('runSnapshot' in value) || value['runSnapshot'] === undefined) return false;
|
|
160
245
|
if (!('error' in value) || value['error'] === undefined) return false;
|
|
161
|
-
if (!('
|
|
162
|
-
if (!('
|
|
246
|
+
if (!('inputsPathPartId' in value) || value['inputsPathPartId'] === undefined) return false;
|
|
247
|
+
if (!('outputsPathPartId' in value) || value['outputsPathPartId'] === undefined) return false;
|
|
248
|
+
if (!('discussionsPathPartId' in value) || value['discussionsPathPartId'] === undefined) return false;
|
|
249
|
+
if (!('outputsPathPartIds' in value) || value['outputsPathPartIds'] === undefined) return false;
|
|
163
250
|
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
164
251
|
if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
|
|
165
252
|
return true;
|
|
@@ -175,17 +262,27 @@ export function WorkflowRunResponseFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
175
262
|
}
|
|
176
263
|
return {
|
|
177
264
|
|
|
265
|
+
'partType': json['part_type'] == null ? undefined : json['part_type'],
|
|
178
266
|
'id': json['id'],
|
|
267
|
+
'pathPartId': json['path_part_id'],
|
|
268
|
+
'parentPathPartId': json['parent_path_part_id'],
|
|
269
|
+
'materializedPath': json['materialized_path'],
|
|
270
|
+
'tenantId': json['tenant_id'],
|
|
271
|
+
'name': json['name'],
|
|
179
272
|
'workflowDefinitionId': json['workflow_definition_id'],
|
|
180
|
-
'
|
|
181
|
-
'
|
|
182
|
-
'
|
|
183
|
-
'startedAt': (new Date(json['started_at'])),
|
|
273
|
+
'triggeredBy': UserInfoFromJSON(json['triggered_by']),
|
|
274
|
+
'executionState': WorkflowExecutionStateFromJSON(json['execution_state']),
|
|
275
|
+
'approvalState': PathPartApprovalStateFromJSON(json['approval_state']),
|
|
276
|
+
'startedAt': (json['started_at'] == null ? null : new Date(json['started_at'])),
|
|
184
277
|
'completedAt': (json['completed_at'] == null ? null : new Date(json['completed_at'])),
|
|
185
278
|
'runSnapshot': WorkflowRunSnapshotFromJSON(json['run_snapshot']),
|
|
186
279
|
'error': json['error'],
|
|
187
|
-
'
|
|
188
|
-
'
|
|
280
|
+
'inputsPathPartId': json['inputs_path_part_id'],
|
|
281
|
+
'outputsPathPartId': json['outputs_path_part_id'],
|
|
282
|
+
'discussionsPathPartId': json['discussions_path_part_id'],
|
|
283
|
+
'inputPathPartIds': json['input_path_part_ids'] == null ? undefined : json['input_path_part_ids'],
|
|
284
|
+
'outputsPathPartIds': json['outputs_path_part_ids'],
|
|
285
|
+
'runThreadId': json['run_thread_id'] == null ? undefined : json['run_thread_id'],
|
|
189
286
|
'createdAt': (new Date(json['created_at'])),
|
|
190
287
|
'updatedAt': (new Date(json['updated_at'])),
|
|
191
288
|
};
|
|
@@ -202,17 +299,27 @@ export function WorkflowRunResponseToJSONTyped(value?: WorkflowRunResponse | nul
|
|
|
202
299
|
|
|
203
300
|
return {
|
|
204
301
|
|
|
302
|
+
'part_type': value['partType'],
|
|
205
303
|
'id': value['id'],
|
|
304
|
+
'path_part_id': value['pathPartId'],
|
|
305
|
+
'parent_path_part_id': value['parentPathPartId'],
|
|
306
|
+
'materialized_path': value['materializedPath'],
|
|
307
|
+
'tenant_id': value['tenantId'],
|
|
308
|
+
'name': value['name'],
|
|
206
309
|
'workflow_definition_id': value['workflowDefinitionId'],
|
|
207
|
-
'
|
|
208
|
-
'
|
|
209
|
-
'
|
|
210
|
-
'started_at': value['startedAt'].toISOString(),
|
|
310
|
+
'triggered_by': UserInfoToJSON(value['triggeredBy']),
|
|
311
|
+
'execution_state': WorkflowExecutionStateToJSON(value['executionState']),
|
|
312
|
+
'approval_state': PathPartApprovalStateToJSON(value['approvalState']),
|
|
313
|
+
'started_at': value['startedAt'] == null ? value['startedAt'] : value['startedAt'].toISOString(),
|
|
211
314
|
'completed_at': value['completedAt'] == null ? value['completedAt'] : value['completedAt'].toISOString(),
|
|
212
315
|
'run_snapshot': WorkflowRunSnapshotToJSON(value['runSnapshot']),
|
|
213
316
|
'error': value['error'],
|
|
317
|
+
'inputs_path_part_id': value['inputsPathPartId'],
|
|
318
|
+
'outputs_path_part_id': value['outputsPathPartId'],
|
|
319
|
+
'discussions_path_part_id': value['discussionsPathPartId'],
|
|
214
320
|
'input_path_part_ids': value['inputPathPartIds'],
|
|
215
|
-
'
|
|
321
|
+
'outputs_path_part_ids': value['outputsPathPartIds'],
|
|
322
|
+
'run_thread_id': value['runThreadId'],
|
|
216
323
|
'created_at': value['createdAt'].toISOString(),
|
|
217
324
|
'updated_at': value['updatedAt'].toISOString(),
|
|
218
325
|
};
|
|
@@ -13,13 +13,13 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
-
import type {
|
|
16
|
+
import type { InputSnapshot } from './InputSnapshot';
|
|
17
17
|
import {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
} from './
|
|
18
|
+
InputSnapshotFromJSON,
|
|
19
|
+
InputSnapshotFromJSONTyped,
|
|
20
|
+
InputSnapshotToJSON,
|
|
21
|
+
InputSnapshotToJSONTyped,
|
|
22
|
+
} from './InputSnapshot';
|
|
23
23
|
import type { InstructionSnapshot } from './InstructionSnapshot';
|
|
24
24
|
import {
|
|
25
25
|
InstructionSnapshotFromJSON,
|
|
@@ -27,44 +27,27 @@ import {
|
|
|
27
27
|
InstructionSnapshotToJSON,
|
|
28
28
|
InstructionSnapshotToJSONTyped,
|
|
29
29
|
} from './InstructionSnapshot';
|
|
30
|
-
import type { WorkflowRunnerType } from './WorkflowRunnerType';
|
|
31
|
-
import {
|
|
32
|
-
WorkflowRunnerTypeFromJSON,
|
|
33
|
-
WorkflowRunnerTypeFromJSONTyped,
|
|
34
|
-
WorkflowRunnerTypeToJSON,
|
|
35
|
-
WorkflowRunnerTypeToJSONTyped,
|
|
36
|
-
} from './WorkflowRunnerType';
|
|
37
30
|
|
|
38
31
|
/**
|
|
39
|
-
* Frozen
|
|
32
|
+
* Frozen workflow configuration captured at trigger time.
|
|
33
|
+
*
|
|
34
|
+
* ``workflow_definition_id`` and ``user_id`` are NOT stored here — they
|
|
35
|
+
* live directly on the ``WorkflowRun`` row and are surfaced via
|
|
36
|
+
* ``WorkflowRunResponse`` top-level fields.
|
|
37
|
+
*
|
|
38
|
+
* Inputs are per-run; outputs land in the run's ``outputs/`` folder. The
|
|
39
|
+
* agent resolves the run's inputs/outputs/discussions folders by listing
|
|
40
|
+
* the run-folder children at activity startup.
|
|
40
41
|
* @export
|
|
41
42
|
* @interface WorkflowRunSnapshot
|
|
42
43
|
*/
|
|
43
44
|
export interface WorkflowRunSnapshot {
|
|
44
|
-
/**
|
|
45
|
-
*
|
|
46
|
-
* @type {string}
|
|
47
|
-
* @memberof WorkflowRunSnapshot
|
|
48
|
-
*/
|
|
49
|
-
workflowDefinitionId: string;
|
|
50
45
|
/**
|
|
51
46
|
*
|
|
52
47
|
* @type {string}
|
|
53
48
|
* @memberof WorkflowRunSnapshot
|
|
54
49
|
*/
|
|
55
50
|
workflowName: string;
|
|
56
|
-
/**
|
|
57
|
-
*
|
|
58
|
-
* @type {WorkflowRunnerType}
|
|
59
|
-
* @memberof WorkflowRunSnapshot
|
|
60
|
-
*/
|
|
61
|
-
runnerType: WorkflowRunnerType;
|
|
62
|
-
/**
|
|
63
|
-
*
|
|
64
|
-
* @type {string}
|
|
65
|
-
* @memberof WorkflowRunSnapshot
|
|
66
|
-
*/
|
|
67
|
-
userId: string;
|
|
68
51
|
/**
|
|
69
52
|
*
|
|
70
53
|
* @type {number}
|
|
@@ -73,31 +56,17 @@ export interface WorkflowRunSnapshot {
|
|
|
73
56
|
maxRunDurationSeconds: number;
|
|
74
57
|
/**
|
|
75
58
|
*
|
|
76
|
-
* @type {
|
|
77
|
-
* @memberof WorkflowRunSnapshot
|
|
78
|
-
*/
|
|
79
|
-
sources: Array<ABCDPathSnapshot>;
|
|
80
|
-
/**
|
|
81
|
-
*
|
|
82
|
-
* @type {Array<InstructionSnapshot>}
|
|
59
|
+
* @type {InstructionSnapshot}
|
|
83
60
|
* @memberof WorkflowRunSnapshot
|
|
84
61
|
*/
|
|
85
|
-
|
|
62
|
+
instruction: InstructionSnapshot;
|
|
86
63
|
/**
|
|
87
64
|
*
|
|
88
|
-
* @type {Array<
|
|
65
|
+
* @type {Array<InputSnapshot>}
|
|
89
66
|
* @memberof WorkflowRunSnapshot
|
|
90
67
|
*/
|
|
91
|
-
|
|
92
|
-
/**
|
|
93
|
-
*
|
|
94
|
-
* @type {ABCDPathSnapshot}
|
|
95
|
-
* @memberof WorkflowRunSnapshot
|
|
96
|
-
*/
|
|
97
|
-
template: ABCDPathSnapshot | null;
|
|
68
|
+
inputs: Array<InputSnapshot>;
|
|
98
69
|
}
|
|
99
|
-
|
|
100
|
-
|
|
101
70
|
export const WorkflowRunSnapshotPropertyValidationAttributesMap: {
|
|
102
71
|
[property: string]: {
|
|
103
72
|
maxLength?: number,
|
|
@@ -120,15 +89,10 @@ export const WorkflowRunSnapshotPropertyValidationAttributesMap: {
|
|
|
120
89
|
* Check if a given object implements the WorkflowRunSnapshot interface.
|
|
121
90
|
*/
|
|
122
91
|
export function instanceOfWorkflowRunSnapshot(value: object): value is WorkflowRunSnapshot {
|
|
123
|
-
if (!('workflowDefinitionId' in value) || value['workflowDefinitionId'] === undefined) return false;
|
|
124
92
|
if (!('workflowName' in value) || value['workflowName'] === undefined) return false;
|
|
125
|
-
if (!('runnerType' in value) || value['runnerType'] === undefined) return false;
|
|
126
|
-
if (!('userId' in value) || value['userId'] === undefined) return false;
|
|
127
93
|
if (!('maxRunDurationSeconds' in value) || value['maxRunDurationSeconds'] === undefined) return false;
|
|
128
|
-
if (!('
|
|
129
|
-
if (!('
|
|
130
|
-
if (!('outputs' in value) || value['outputs'] === undefined) return false;
|
|
131
|
-
if (!('template' in value) || value['template'] === undefined) return false;
|
|
94
|
+
if (!('instruction' in value) || value['instruction'] === undefined) return false;
|
|
95
|
+
if (!('inputs' in value) || value['inputs'] === undefined) return false;
|
|
132
96
|
return true;
|
|
133
97
|
}
|
|
134
98
|
|
|
@@ -142,15 +106,10 @@ export function WorkflowRunSnapshotFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
142
106
|
}
|
|
143
107
|
return {
|
|
144
108
|
|
|
145
|
-
'workflowDefinitionId': json['workflow_definition_id'],
|
|
146
109
|
'workflowName': json['workflow_name'],
|
|
147
|
-
'runnerType': WorkflowRunnerTypeFromJSON(json['runner_type']),
|
|
148
|
-
'userId': json['user_id'],
|
|
149
110
|
'maxRunDurationSeconds': json['max_run_duration_seconds'],
|
|
150
|
-
'
|
|
151
|
-
'
|
|
152
|
-
'outputs': ((json['outputs'] as Array<any>).map(ABCDPathSnapshotFromJSON)),
|
|
153
|
-
'template': ABCDPathSnapshotFromJSON(json['template']),
|
|
111
|
+
'instruction': InstructionSnapshotFromJSON(json['instruction']),
|
|
112
|
+
'inputs': ((json['inputs'] as Array<any>).map(InputSnapshotFromJSON)),
|
|
154
113
|
};
|
|
155
114
|
}
|
|
156
115
|
|
|
@@ -165,15 +124,10 @@ export function WorkflowRunSnapshotToJSONTyped(value?: WorkflowRunSnapshot | nul
|
|
|
165
124
|
|
|
166
125
|
return {
|
|
167
126
|
|
|
168
|
-
'workflow_definition_id': value['workflowDefinitionId'],
|
|
169
127
|
'workflow_name': value['workflowName'],
|
|
170
|
-
'runner_type': WorkflowRunnerTypeToJSON(value['runnerType']),
|
|
171
|
-
'user_id': value['userId'],
|
|
172
128
|
'max_run_duration_seconds': value['maxRunDurationSeconds'],
|
|
173
|
-
'
|
|
174
|
-
'
|
|
175
|
-
'outputs': ((value['outputs'] as Array<any>).map(ABCDPathSnapshotToJSON)),
|
|
176
|
-
'template': ABCDPathSnapshotToJSON(value['template']),
|
|
129
|
+
'instruction': InstructionSnapshotToJSON(value['instruction']),
|
|
130
|
+
'inputs': ((value['inputs'] as Array<any>).map(InputSnapshotToJSON)),
|
|
177
131
|
};
|
|
178
132
|
}
|
|
179
133
|
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Knowledge Stack API
|
|
5
|
+
* Knowledge Stack backend API for authentication and knowledge management
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { CitedChunk } from './CitedChunk';
|
|
17
|
+
import {
|
|
18
|
+
CitedChunkFromJSON,
|
|
19
|
+
CitedChunkFromJSONTyped,
|
|
20
|
+
CitedChunkToJSON,
|
|
21
|
+
CitedChunkToJSONTyped,
|
|
22
|
+
} from './CitedChunk';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* One citation anchored to a cell in an .xlsx deliverable.
|
|
26
|
+
* @export
|
|
27
|
+
* @interface XlsxCellAnchorInput
|
|
28
|
+
*/
|
|
29
|
+
export interface XlsxCellAnchorInput {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {XlsxCellAnchorInputTypeEnum}
|
|
33
|
+
* @memberof XlsxCellAnchorInput
|
|
34
|
+
*/
|
|
35
|
+
type?: XlsxCellAnchorInputTypeEnum;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof XlsxCellAnchorInput
|
|
40
|
+
*/
|
|
41
|
+
sheetName: string;
|
|
42
|
+
/**
|
|
43
|
+
* Coordinate like 'B23'.
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof XlsxCellAnchorInput
|
|
46
|
+
*/
|
|
47
|
+
cellAddress: string;
|
|
48
|
+
/**
|
|
49
|
+
* Cited chunks in the order they appeared in the comment body, each with the source-document snapshot resolved at save time.
|
|
50
|
+
* @type {Array<CitedChunk>}
|
|
51
|
+
* @memberof XlsxCellAnchorInput
|
|
52
|
+
*/
|
|
53
|
+
citations: Array<CitedChunk>;
|
|
54
|
+
/**
|
|
55
|
+
* Cached cell value at this anchor, for FE display. NOT the cited quote. Empty when the cell holds a formula whose cache has not been refreshed.
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof XlsxCellAnchorInput
|
|
58
|
+
*/
|
|
59
|
+
anchorText?: string;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* @export
|
|
65
|
+
*/
|
|
66
|
+
export const XlsxCellAnchorInputTypeEnum = {
|
|
67
|
+
XlsxCell: 'xlsx_cell'
|
|
68
|
+
} as const;
|
|
69
|
+
export type XlsxCellAnchorInputTypeEnum = typeof XlsxCellAnchorInputTypeEnum[keyof typeof XlsxCellAnchorInputTypeEnum];
|
|
70
|
+
|
|
71
|
+
export const XlsxCellAnchorInputPropertyValidationAttributesMap: {
|
|
72
|
+
[property: string]: {
|
|
73
|
+
maxLength?: number,
|
|
74
|
+
minLength?: number,
|
|
75
|
+
pattern?: string,
|
|
76
|
+
maximum?: number,
|
|
77
|
+
exclusiveMaximum?: boolean,
|
|
78
|
+
minimum?: number,
|
|
79
|
+
exclusiveMinimum?: boolean,
|
|
80
|
+
multipleOf?: number,
|
|
81
|
+
maxItems?: number,
|
|
82
|
+
minItems?: number,
|
|
83
|
+
uniqueItems?: boolean
|
|
84
|
+
}
|
|
85
|
+
} = {
|
|
86
|
+
anchorText: {
|
|
87
|
+
maxLength: 160,
|
|
88
|
+
},
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* Check if a given object implements the XlsxCellAnchorInput interface.
|
|
94
|
+
*/
|
|
95
|
+
export function instanceOfXlsxCellAnchorInput(value: object): value is XlsxCellAnchorInput {
|
|
96
|
+
if (!('sheetName' in value) || value['sheetName'] === undefined) return false;
|
|
97
|
+
if (!('cellAddress' in value) || value['cellAddress'] === undefined) return false;
|
|
98
|
+
if (!('citations' in value) || value['citations'] === undefined) return false;
|
|
99
|
+
return true;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
export function XlsxCellAnchorInputFromJSON(json: any): XlsxCellAnchorInput {
|
|
103
|
+
return XlsxCellAnchorInputFromJSONTyped(json, false);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
export function XlsxCellAnchorInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): XlsxCellAnchorInput {
|
|
107
|
+
if (json == null) {
|
|
108
|
+
return json;
|
|
109
|
+
}
|
|
110
|
+
return {
|
|
111
|
+
|
|
112
|
+
'type': json['type'] == null ? undefined : json['type'],
|
|
113
|
+
'sheetName': json['sheet_name'],
|
|
114
|
+
'cellAddress': json['cell_address'],
|
|
115
|
+
'citations': ((json['citations'] as Array<any>).map(CitedChunkFromJSON)),
|
|
116
|
+
'anchorText': json['anchor_text'] == null ? undefined : json['anchor_text'],
|
|
117
|
+
};
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
export function XlsxCellAnchorInputToJSON(json: any): XlsxCellAnchorInput {
|
|
121
|
+
return XlsxCellAnchorInputToJSONTyped(json, false);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
export function XlsxCellAnchorInputToJSONTyped(value?: XlsxCellAnchorInput | null, ignoreDiscriminator: boolean = false): any {
|
|
125
|
+
if (value == null) {
|
|
126
|
+
return value;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
return {
|
|
130
|
+
|
|
131
|
+
'type': value['type'],
|
|
132
|
+
'sheet_name': value['sheetName'],
|
|
133
|
+
'cell_address': value['cellAddress'],
|
|
134
|
+
'citations': ((value['citations'] as Array<any>).map(CitedChunkToJSON)),
|
|
135
|
+
'anchor_text': value['anchorText'],
|
|
136
|
+
};
|
|
137
|
+
}
|
|
138
|
+
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Knowledge Stack API
|
|
5
|
+
* Knowledge Stack backend API for authentication and knowledge management
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import type { DocxParagraphAnchorInput } from './DocxParagraphAnchorInput';
|
|
16
|
+
import {
|
|
17
|
+
instanceOfDocxParagraphAnchorInput,
|
|
18
|
+
DocxParagraphAnchorInputFromJSON,
|
|
19
|
+
DocxParagraphAnchorInputFromJSONTyped,
|
|
20
|
+
DocxParagraphAnchorInputToJSON,
|
|
21
|
+
} from './DocxParagraphAnchorInput';
|
|
22
|
+
import type { XlsxCellAnchorInput } from './XlsxCellAnchorInput';
|
|
23
|
+
import {
|
|
24
|
+
instanceOfXlsxCellAnchorInput,
|
|
25
|
+
XlsxCellAnchorInputFromJSON,
|
|
26
|
+
XlsxCellAnchorInputFromJSONTyped,
|
|
27
|
+
XlsxCellAnchorInputToJSON,
|
|
28
|
+
} from './XlsxCellAnchorInput';
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* @type XlsxCellAnchorInputOrDocxParagraphAnchorInput
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
*/
|
|
35
|
+
export type XlsxCellAnchorInputOrDocxParagraphAnchorInput = { type: 'docx_paragraph' } & DocxParagraphAnchorInput | { type: 'xlsx_cell' } & XlsxCellAnchorInput;
|
|
36
|
+
|
|
37
|
+
export function XlsxCellAnchorInputOrDocxParagraphAnchorInputFromJSON(json: any): XlsxCellAnchorInputOrDocxParagraphAnchorInput {
|
|
38
|
+
return XlsxCellAnchorInputOrDocxParagraphAnchorInputFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export function XlsxCellAnchorInputOrDocxParagraphAnchorInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): XlsxCellAnchorInputOrDocxParagraphAnchorInput {
|
|
42
|
+
if (json == null) {
|
|
43
|
+
return json;
|
|
44
|
+
}
|
|
45
|
+
switch (json['type']) {
|
|
46
|
+
case 'docx_paragraph':
|
|
47
|
+
return Object.assign({}, DocxParagraphAnchorInputFromJSONTyped(json, true), { type: 'docx_paragraph' } as const);
|
|
48
|
+
case 'xlsx_cell':
|
|
49
|
+
return Object.assign({}, XlsxCellAnchorInputFromJSONTyped(json, true), { type: 'xlsx_cell' } as const);
|
|
50
|
+
default:
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function XlsxCellAnchorInputOrDocxParagraphAnchorInputToJSON(json: any): any {
|
|
56
|
+
return XlsxCellAnchorInputOrDocxParagraphAnchorInputToJSONTyped(json, false);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function XlsxCellAnchorInputOrDocxParagraphAnchorInputToJSONTyped(value?: XlsxCellAnchorInputOrDocxParagraphAnchorInput | null, ignoreDiscriminator: boolean = false): any {
|
|
60
|
+
if (value == null) {
|
|
61
|
+
return value;
|
|
62
|
+
}
|
|
63
|
+
switch (value['type']) {
|
|
64
|
+
case 'docx_paragraph':
|
|
65
|
+
return Object.assign({}, DocxParagraphAnchorInputToJSON(value), { type: 'docx_paragraph' } as const);
|
|
66
|
+
case 'xlsx_cell':
|
|
67
|
+
return Object.assign({}, XlsxCellAnchorInputToJSON(value), { type: 'xlsx_cell' } as const);
|
|
68
|
+
default:
|
|
69
|
+
return value;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|