@knowledge-stack/ksapi 1.88.1 → 1.90.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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,6 +20,13 @@ import {
|
|
|
20
20
|
PipelineStateToJSON,
|
|
21
21
|
PipelineStateToJSONTyped,
|
|
22
22
|
} from './PipelineState';
|
|
23
|
+
import type { XlsxCellAnchorOutputOrDocxParagraphAnchorOutput } from './XlsxCellAnchorOutputOrDocxParagraphAnchorOutput';
|
|
24
|
+
import {
|
|
25
|
+
XlsxCellAnchorOutputOrDocxParagraphAnchorOutputFromJSON,
|
|
26
|
+
XlsxCellAnchorOutputOrDocxParagraphAnchorOutputFromJSONTyped,
|
|
27
|
+
XlsxCellAnchorOutputOrDocxParagraphAnchorOutputToJSON,
|
|
28
|
+
XlsxCellAnchorOutputOrDocxParagraphAnchorOutputToJSONTyped,
|
|
29
|
+
} from './XlsxCellAnchorOutputOrDocxParagraphAnchorOutput';
|
|
23
30
|
import type { InformationStatistics } from './InformationStatistics';
|
|
24
31
|
import {
|
|
25
32
|
InformationStatisticsFromJSON,
|
|
@@ -115,6 +122,12 @@ export interface DocumentVersionMetadata {
|
|
|
115
122
|
* @memberof DocumentVersionMetadata
|
|
116
123
|
*/
|
|
117
124
|
xlsxKpiCatalog?: Array<{ [key: string]: any; }> | null;
|
|
125
|
+
/**
|
|
126
|
+
* In-file citation anchors for agent-generated .xlsx/.docx deliverables. Each anchor binds an in-file location (cell or paragraph) to the chunk IDs cited there. Populated by save_document during upload; ``null`` for versions ingested before this field shipped or for files re-uploaded outside the agent flow. FE enriches chunks via /v1/chunks/bulk.
|
|
127
|
+
* @type {Array<XlsxCellAnchorOutputOrDocxParagraphAnchorOutput>}
|
|
128
|
+
* @memberof DocumentVersionMetadata
|
|
129
|
+
*/
|
|
130
|
+
citationAnchors?: Array<XlsxCellAnchorOutputOrDocxParagraphAnchorOutput> | null;
|
|
118
131
|
/**
|
|
119
132
|
* Aggregate statistics for the document version (tokens, chunk counts, depth)
|
|
120
133
|
* @type {InformationStatistics}
|
|
@@ -193,6 +206,7 @@ export function DocumentVersionMetadataFromJSONTyped(json: any, ignoreDiscrimina
|
|
|
193
206
|
'xlsxParseResultS3': json['xlsx_parse_result_s3'] == null ? undefined : json['xlsx_parse_result_s3'],
|
|
194
207
|
'xlsxNamedRanges': json['xlsx_named_ranges'] == null ? undefined : json['xlsx_named_ranges'],
|
|
195
208
|
'xlsxKpiCatalog': json['xlsx_kpi_catalog'] == null ? undefined : json['xlsx_kpi_catalog'],
|
|
209
|
+
'citationAnchors': json['citation_anchors'] == null ? undefined : ((json['citation_anchors'] as Array<any>).map(XlsxCellAnchorOutputOrDocxParagraphAnchorOutputFromJSON)),
|
|
196
210
|
'informationStatistics': json['information_statistics'] == null ? undefined : InformationStatisticsFromJSON(json['information_statistics']),
|
|
197
211
|
'quotaCharged': json['quota_charged'] == null ? undefined : json['quota_charged'],
|
|
198
212
|
'quotaPageCount': json['quota_page_count'] == null ? undefined : json['quota_page_count'],
|
|
@@ -224,6 +238,7 @@ export function DocumentVersionMetadataToJSONTyped(value?: DocumentVersionMetada
|
|
|
224
238
|
'xlsx_parse_result_s3': value['xlsxParseResultS3'],
|
|
225
239
|
'xlsx_named_ranges': value['xlsxNamedRanges'],
|
|
226
240
|
'xlsx_kpi_catalog': value['xlsxKpiCatalog'],
|
|
241
|
+
'citation_anchors': value['citationAnchors'] == null ? undefined : ((value['citationAnchors'] as Array<any>).map(XlsxCellAnchorOutputOrDocxParagraphAnchorOutputToJSON)),
|
|
227
242
|
'information_statistics': InformationStatisticsToJSON(value['informationStatistics']),
|
|
228
243
|
'quota_charged': value['quotaCharged'],
|
|
229
244
|
'quota_page_count': value['quotaPageCount'],
|
|
@@ -20,6 +20,13 @@ import {
|
|
|
20
20
|
PipelineStateToJSON,
|
|
21
21
|
PipelineStateToJSONTyped,
|
|
22
22
|
} from './PipelineState';
|
|
23
|
+
import type { XlsxCellAnchorInputOrDocxParagraphAnchorInput } from './XlsxCellAnchorInputOrDocxParagraphAnchorInput';
|
|
24
|
+
import {
|
|
25
|
+
XlsxCellAnchorInputOrDocxParagraphAnchorInputFromJSON,
|
|
26
|
+
XlsxCellAnchorInputOrDocxParagraphAnchorInputFromJSONTyped,
|
|
27
|
+
XlsxCellAnchorInputOrDocxParagraphAnchorInputToJSON,
|
|
28
|
+
XlsxCellAnchorInputOrDocxParagraphAnchorInputToJSONTyped,
|
|
29
|
+
} from './XlsxCellAnchorInputOrDocxParagraphAnchorInput';
|
|
23
30
|
import type { InformationStatistics } from './InformationStatistics';
|
|
24
31
|
import {
|
|
25
32
|
InformationStatisticsFromJSON,
|
|
@@ -127,6 +134,12 @@ export interface DocumentVersionMetadataUpdate {
|
|
|
127
134
|
* @memberof DocumentVersionMetadataUpdate
|
|
128
135
|
*/
|
|
129
136
|
xlsxKpiCatalog?: Array<{ [key: string]: any; }> | null;
|
|
137
|
+
/**
|
|
138
|
+
*
|
|
139
|
+
* @type {Array<XlsxCellAnchorInputOrDocxParagraphAnchorInput>}
|
|
140
|
+
* @memberof DocumentVersionMetadataUpdate
|
|
141
|
+
*/
|
|
142
|
+
citationAnchors?: Array<XlsxCellAnchorInputOrDocxParagraphAnchorInput> | null;
|
|
130
143
|
/**
|
|
131
144
|
*
|
|
132
145
|
* @type {InformationStatistics}
|
|
@@ -208,6 +221,7 @@ export function DocumentVersionMetadataUpdateFromJSONTyped(json: any, ignoreDisc
|
|
|
208
221
|
'xlsxParseResultS3': json['xlsx_parse_result_s3'] == null ? undefined : json['xlsx_parse_result_s3'],
|
|
209
222
|
'xlsxNamedRanges': json['xlsx_named_ranges'] == null ? undefined : json['xlsx_named_ranges'],
|
|
210
223
|
'xlsxKpiCatalog': json['xlsx_kpi_catalog'] == null ? undefined : json['xlsx_kpi_catalog'],
|
|
224
|
+
'citationAnchors': json['citation_anchors'] == null ? undefined : ((json['citation_anchors'] as Array<any>).map(XlsxCellAnchorInputOrDocxParagraphAnchorInputFromJSON)),
|
|
211
225
|
'informationStatistics': json['information_statistics'] == null ? undefined : InformationStatisticsFromJSON(json['information_statistics']),
|
|
212
226
|
'quotaCharged': json['quota_charged'] == null ? undefined : json['quota_charged'],
|
|
213
227
|
'quotaPageCount': json['quota_page_count'] == null ? undefined : json['quota_page_count'],
|
|
@@ -242,6 +256,7 @@ export function DocumentVersionMetadataUpdateToJSONTyped(value?: DocumentVersion
|
|
|
242
256
|
'xlsx_parse_result_s3': value['xlsxParseResultS3'],
|
|
243
257
|
'xlsx_named_ranges': value['xlsxNamedRanges'],
|
|
244
258
|
'xlsx_kpi_catalog': value['xlsxKpiCatalog'],
|
|
259
|
+
'citation_anchors': value['citationAnchors'] == null ? undefined : ((value['citationAnchors'] as Array<any>).map(XlsxCellAnchorInputOrDocxParagraphAnchorInputToJSON)),
|
|
245
260
|
'information_statistics': InformationStatisticsToJSON(value['informationStatistics']),
|
|
246
261
|
'quota_charged': value['quotaCharged'],
|
|
247
262
|
'quota_page_count': value['quotaPageCount'],
|
|
@@ -13,6 +13,13 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
+
import type { UserInfo } from './UserInfo';
|
|
17
|
+
import {
|
|
18
|
+
UserInfoFromJSON,
|
|
19
|
+
UserInfoFromJSONTyped,
|
|
20
|
+
UserInfoToJSON,
|
|
21
|
+
UserInfoToJSONTyped,
|
|
22
|
+
} from './UserInfo';
|
|
16
23
|
import type { DocumentVersionMetadata } from './DocumentVersionMetadata';
|
|
17
24
|
import {
|
|
18
25
|
DocumentVersionMetadataFromJSON,
|
|
@@ -79,11 +86,11 @@ export interface DocumentVersionResponse {
|
|
|
79
86
|
*/
|
|
80
87
|
tenantId: string;
|
|
81
88
|
/**
|
|
82
|
-
*
|
|
83
|
-
* @type {
|
|
89
|
+
*
|
|
90
|
+
* @type {UserInfo}
|
|
84
91
|
* @memberof DocumentVersionResponse
|
|
85
92
|
*/
|
|
86
|
-
|
|
93
|
+
uploader: UserInfo;
|
|
87
94
|
/**
|
|
88
95
|
* Creation timestamp
|
|
89
96
|
* @type {Date}
|
|
@@ -151,7 +158,7 @@ export function instanceOfDocumentVersionResponse(value: object): value is Docum
|
|
|
151
158
|
if (!('materializedPath' in value) || value['materializedPath'] === undefined) return false;
|
|
152
159
|
if (!('systemManaged' in value) || value['systemManaged'] === undefined) return false;
|
|
153
160
|
if (!('tenantId' in value) || value['tenantId'] === undefined) return false;
|
|
154
|
-
if (!('
|
|
161
|
+
if (!('uploader' in value) || value['uploader'] === undefined) return false;
|
|
155
162
|
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
156
163
|
if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
|
|
157
164
|
return true;
|
|
@@ -175,7 +182,7 @@ export function DocumentVersionResponseFromJSONTyped(json: any, ignoreDiscrimina
|
|
|
175
182
|
'materializedPath': json['materialized_path'],
|
|
176
183
|
'systemManaged': json['system_managed'],
|
|
177
184
|
'tenantId': json['tenant_id'],
|
|
178
|
-
'
|
|
185
|
+
'uploader': UserInfoFromJSON(json['uploader']),
|
|
179
186
|
'createdAt': (new Date(json['created_at'])),
|
|
180
187
|
'updatedAt': (new Date(json['updated_at'])),
|
|
181
188
|
'assetS3Url': json['asset_s3_url'] == null ? undefined : json['asset_s3_url'],
|
|
@@ -204,7 +211,7 @@ export function DocumentVersionResponseToJSONTyped(value?: DocumentVersionRespon
|
|
|
204
211
|
'materialized_path': value['materializedPath'],
|
|
205
212
|
'system_managed': value['systemManaged'],
|
|
206
213
|
'tenant_id': value['tenantId'],
|
|
207
|
-
'
|
|
214
|
+
'uploader': UserInfoToJSON(value['uploader']),
|
|
208
215
|
'created_at': value['createdAt'].toISOString(),
|
|
209
216
|
'updated_at': value['updatedAt'].toISOString(),
|
|
210
217
|
'asset_s3_url': value['assetS3Url'],
|
|
@@ -0,0 +1,142 @@
|
|
|
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 paragraph in a .docx deliverable.
|
|
26
|
+
* @export
|
|
27
|
+
* @interface DocxParagraphAnchorInput
|
|
28
|
+
*/
|
|
29
|
+
export interface DocxParagraphAnchorInput {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {DocxParagraphAnchorInputTypeEnum}
|
|
33
|
+
* @memberof DocxParagraphAnchorInput
|
|
34
|
+
*/
|
|
35
|
+
type?: DocxParagraphAnchorInputTypeEnum;
|
|
36
|
+
/**
|
|
37
|
+
* 0-based position of the <w:p> in word/document.xml body.
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof DocxParagraphAnchorInput
|
|
40
|
+
*/
|
|
41
|
+
paragraphIndex: number;
|
|
42
|
+
/**
|
|
43
|
+
* w:id of the comment in word/comments.xml.
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof DocxParagraphAnchorInput
|
|
46
|
+
*/
|
|
47
|
+
commentId: number;
|
|
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 DocxParagraphAnchorInput
|
|
52
|
+
*/
|
|
53
|
+
citations: Array<CitedChunk>;
|
|
54
|
+
/**
|
|
55
|
+
* Paragraph text at this anchor (first 160 chars), for FE display. NOT the cited quote.
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof DocxParagraphAnchorInput
|
|
58
|
+
*/
|
|
59
|
+
anchorText?: string;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* @export
|
|
65
|
+
*/
|
|
66
|
+
export const DocxParagraphAnchorInputTypeEnum = {
|
|
67
|
+
DocxParagraph: 'docx_paragraph'
|
|
68
|
+
} as const;
|
|
69
|
+
export type DocxParagraphAnchorInputTypeEnum = typeof DocxParagraphAnchorInputTypeEnum[keyof typeof DocxParagraphAnchorInputTypeEnum];
|
|
70
|
+
|
|
71
|
+
export const DocxParagraphAnchorInputPropertyValidationAttributesMap: {
|
|
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
|
+
paragraphIndex: {
|
|
87
|
+
minimum: 0,
|
|
88
|
+
exclusiveMinimum: false,
|
|
89
|
+
},
|
|
90
|
+
anchorText: {
|
|
91
|
+
maxLength: 160,
|
|
92
|
+
},
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* Check if a given object implements the DocxParagraphAnchorInput interface.
|
|
98
|
+
*/
|
|
99
|
+
export function instanceOfDocxParagraphAnchorInput(value: object): value is DocxParagraphAnchorInput {
|
|
100
|
+
if (!('paragraphIndex' in value) || value['paragraphIndex'] === undefined) return false;
|
|
101
|
+
if (!('commentId' in value) || value['commentId'] === undefined) return false;
|
|
102
|
+
if (!('citations' in value) || value['citations'] === undefined) return false;
|
|
103
|
+
return true;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
export function DocxParagraphAnchorInputFromJSON(json: any): DocxParagraphAnchorInput {
|
|
107
|
+
return DocxParagraphAnchorInputFromJSONTyped(json, false);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
export function DocxParagraphAnchorInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): DocxParagraphAnchorInput {
|
|
111
|
+
if (json == null) {
|
|
112
|
+
return json;
|
|
113
|
+
}
|
|
114
|
+
return {
|
|
115
|
+
|
|
116
|
+
'type': json['type'] == null ? undefined : json['type'],
|
|
117
|
+
'paragraphIndex': json['paragraph_index'],
|
|
118
|
+
'commentId': json['comment_id'],
|
|
119
|
+
'citations': ((json['citations'] as Array<any>).map(CitedChunkFromJSON)),
|
|
120
|
+
'anchorText': json['anchor_text'] == null ? undefined : json['anchor_text'],
|
|
121
|
+
};
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
export function DocxParagraphAnchorInputToJSON(json: any): DocxParagraphAnchorInput {
|
|
125
|
+
return DocxParagraphAnchorInputToJSONTyped(json, false);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
export function DocxParagraphAnchorInputToJSONTyped(value?: DocxParagraphAnchorInput | null, ignoreDiscriminator: boolean = false): any {
|
|
129
|
+
if (value == null) {
|
|
130
|
+
return value;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
return {
|
|
134
|
+
|
|
135
|
+
'type': value['type'],
|
|
136
|
+
'paragraph_index': value['paragraphIndex'],
|
|
137
|
+
'comment_id': value['commentId'],
|
|
138
|
+
'citations': ((value['citations'] as Array<any>).map(CitedChunkToJSON)),
|
|
139
|
+
'anchor_text': value['anchorText'],
|
|
140
|
+
};
|
|
141
|
+
}
|
|
142
|
+
|
|
@@ -0,0 +1,153 @@
|
|
|
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 paragraph in a .docx deliverable.
|
|
26
|
+
* @export
|
|
27
|
+
* @interface DocxParagraphAnchorOutput
|
|
28
|
+
*/
|
|
29
|
+
export interface DocxParagraphAnchorOutput {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {DocxParagraphAnchorOutputTypeEnum}
|
|
33
|
+
* @memberof DocxParagraphAnchorOutput
|
|
34
|
+
*/
|
|
35
|
+
type?: DocxParagraphAnchorOutputTypeEnum;
|
|
36
|
+
/**
|
|
37
|
+
* 0-based position of the <w:p> in word/document.xml body.
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof DocxParagraphAnchorOutput
|
|
40
|
+
*/
|
|
41
|
+
paragraphIndex: number;
|
|
42
|
+
/**
|
|
43
|
+
* w:id of the comment in word/comments.xml.
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof DocxParagraphAnchorOutput
|
|
46
|
+
*/
|
|
47
|
+
commentId: number;
|
|
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 DocxParagraphAnchorOutput
|
|
52
|
+
*/
|
|
53
|
+
citations: Array<CitedChunk>;
|
|
54
|
+
/**
|
|
55
|
+
* Paragraph text at this anchor (first 160 chars), for FE display. NOT the cited quote.
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof DocxParagraphAnchorOutput
|
|
58
|
+
*/
|
|
59
|
+
anchorText?: string;
|
|
60
|
+
/**
|
|
61
|
+
* Flat projection of cited chunk_ids — kept for FE back-compat.
|
|
62
|
+
*
|
|
63
|
+
* Prefer ``citations`` for new code. See ``XlsxCellAnchor.chunk_ids``
|
|
64
|
+
* for the full rationale.
|
|
65
|
+
* @type {Array<string>}
|
|
66
|
+
* @memberof DocxParagraphAnchorOutput
|
|
67
|
+
*/
|
|
68
|
+
readonly chunkIds: Array<string>;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* @export
|
|
74
|
+
*/
|
|
75
|
+
export const DocxParagraphAnchorOutputTypeEnum = {
|
|
76
|
+
DocxParagraph: 'docx_paragraph'
|
|
77
|
+
} as const;
|
|
78
|
+
export type DocxParagraphAnchorOutputTypeEnum = typeof DocxParagraphAnchorOutputTypeEnum[keyof typeof DocxParagraphAnchorOutputTypeEnum];
|
|
79
|
+
|
|
80
|
+
export const DocxParagraphAnchorOutputPropertyValidationAttributesMap: {
|
|
81
|
+
[property: string]: {
|
|
82
|
+
maxLength?: number,
|
|
83
|
+
minLength?: number,
|
|
84
|
+
pattern?: string,
|
|
85
|
+
maximum?: number,
|
|
86
|
+
exclusiveMaximum?: boolean,
|
|
87
|
+
minimum?: number,
|
|
88
|
+
exclusiveMinimum?: boolean,
|
|
89
|
+
multipleOf?: number,
|
|
90
|
+
maxItems?: number,
|
|
91
|
+
minItems?: number,
|
|
92
|
+
uniqueItems?: boolean
|
|
93
|
+
}
|
|
94
|
+
} = {
|
|
95
|
+
paragraphIndex: {
|
|
96
|
+
minimum: 0,
|
|
97
|
+
exclusiveMinimum: false,
|
|
98
|
+
},
|
|
99
|
+
anchorText: {
|
|
100
|
+
maxLength: 160,
|
|
101
|
+
},
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* Check if a given object implements the DocxParagraphAnchorOutput interface.
|
|
107
|
+
*/
|
|
108
|
+
export function instanceOfDocxParagraphAnchorOutput(value: object): value is DocxParagraphAnchorOutput {
|
|
109
|
+
if (!('paragraphIndex' in value) || value['paragraphIndex'] === undefined) return false;
|
|
110
|
+
if (!('commentId' in value) || value['commentId'] === undefined) return false;
|
|
111
|
+
if (!('citations' in value) || value['citations'] === undefined) return false;
|
|
112
|
+
if (!('chunkIds' in value) || value['chunkIds'] === undefined) return false;
|
|
113
|
+
return true;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
export function DocxParagraphAnchorOutputFromJSON(json: any): DocxParagraphAnchorOutput {
|
|
117
|
+
return DocxParagraphAnchorOutputFromJSONTyped(json, false);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
export function DocxParagraphAnchorOutputFromJSONTyped(json: any, ignoreDiscriminator: boolean): DocxParagraphAnchorOutput {
|
|
121
|
+
if (json == null) {
|
|
122
|
+
return json;
|
|
123
|
+
}
|
|
124
|
+
return {
|
|
125
|
+
|
|
126
|
+
'type': json['type'] == null ? undefined : json['type'],
|
|
127
|
+
'paragraphIndex': json['paragraph_index'],
|
|
128
|
+
'commentId': json['comment_id'],
|
|
129
|
+
'citations': ((json['citations'] as Array<any>).map(CitedChunkFromJSON)),
|
|
130
|
+
'anchorText': json['anchor_text'] == null ? undefined : json['anchor_text'],
|
|
131
|
+
'chunkIds': json['chunk_ids'],
|
|
132
|
+
};
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
export function DocxParagraphAnchorOutputToJSON(json: any): DocxParagraphAnchorOutput {
|
|
136
|
+
return DocxParagraphAnchorOutputToJSONTyped(json, false);
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
export function DocxParagraphAnchorOutputToJSONTyped(value?: Omit<DocxParagraphAnchorOutput, 'chunk_ids'> | null, ignoreDiscriminator: boolean = false): any {
|
|
140
|
+
if (value == null) {
|
|
141
|
+
return value;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
return {
|
|
145
|
+
|
|
146
|
+
'type': value['type'],
|
|
147
|
+
'paragraph_index': value['paragraphIndex'],
|
|
148
|
+
'comment_id': value['commentId'],
|
|
149
|
+
'citations': ((value['citations'] as Array<any>).map(CitedChunkToJSON)),
|
|
150
|
+
'anchor_text': value['anchorText'],
|
|
151
|
+
};
|
|
152
|
+
}
|
|
153
|
+
|
|
@@ -20,6 +20,13 @@ import {
|
|
|
20
20
|
TagResponseToJSON,
|
|
21
21
|
TagResponseToJSONTyped,
|
|
22
22
|
} from './TagResponse';
|
|
23
|
+
import type { PathPartApprovalState } from './PathPartApprovalState';
|
|
24
|
+
import {
|
|
25
|
+
PathPartApprovalStateFromJSON,
|
|
26
|
+
PathPartApprovalStateFromJSONTyped,
|
|
27
|
+
PathPartApprovalStateToJSON,
|
|
28
|
+
PathPartApprovalStateToJSONTyped,
|
|
29
|
+
} from './PathPartApprovalState';
|
|
23
30
|
|
|
24
31
|
/**
|
|
25
32
|
* Folder response model.
|
|
@@ -69,6 +76,12 @@ export interface FolderResponse {
|
|
|
69
76
|
* @memberof FolderResponse
|
|
70
77
|
*/
|
|
71
78
|
systemManaged: boolean;
|
|
79
|
+
/**
|
|
80
|
+
*
|
|
81
|
+
* @type {PathPartApprovalState}
|
|
82
|
+
* @memberof FolderResponse
|
|
83
|
+
*/
|
|
84
|
+
approvalState: PathPartApprovalState;
|
|
72
85
|
/**
|
|
73
86
|
* Direct exclusion flag on this folder's path part only. The effective exclusion also applies when any ancestor folder has the flag set — fetch the ancestry to determine effective state.
|
|
74
87
|
* @type {boolean}
|
|
@@ -145,6 +158,7 @@ export function instanceOfFolderResponse(value: object): value is FolderResponse
|
|
|
145
158
|
if (!('parentPathPartId' in value) || value['parentPathPartId'] === undefined) return false;
|
|
146
159
|
if (!('materializedPath' in value) || value['materializedPath'] === undefined) return false;
|
|
147
160
|
if (!('systemManaged' in value) || value['systemManaged'] === undefined) return false;
|
|
161
|
+
if (!('approvalState' in value) || value['approvalState'] === undefined) return false;
|
|
148
162
|
if (!('excludeFromQdrant' in value) || value['excludeFromQdrant'] === undefined) return false;
|
|
149
163
|
if (!('tenantId' in value) || value['tenantId'] === undefined) return false;
|
|
150
164
|
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
@@ -169,6 +183,7 @@ export function FolderResponseFromJSONTyped(json: any, ignoreDiscriminator: bool
|
|
|
169
183
|
'parentPathPartId': json['parent_path_part_id'],
|
|
170
184
|
'materializedPath': json['materialized_path'],
|
|
171
185
|
'systemManaged': json['system_managed'],
|
|
186
|
+
'approvalState': PathPartApprovalStateFromJSON(json['approval_state']),
|
|
172
187
|
'excludeFromQdrant': json['exclude_from_qdrant'],
|
|
173
188
|
'tenantId': json['tenant_id'],
|
|
174
189
|
'createdAt': (new Date(json['created_at'])),
|
|
@@ -196,6 +211,7 @@ export function FolderResponseToJSONTyped(value?: FolderResponse | null, ignoreD
|
|
|
196
211
|
'parent_path_part_id': value['parentPathPartId'],
|
|
197
212
|
'materialized_path': value['materializedPath'],
|
|
198
213
|
'system_managed': value['systemManaged'],
|
|
214
|
+
'approval_state': PathPartApprovalStateToJSON(value['approvalState']),
|
|
199
215
|
'exclude_from_qdrant': value['excludeFromQdrant'],
|
|
200
216
|
'tenant_id': value['tenantId'],
|
|
201
217
|
'created_at': value['createdAt'].toISOString(),
|
|
@@ -0,0 +1,94 @@
|
|
|
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 { DocumentResponse } from './DocumentResponse';
|
|
16
|
+
import {
|
|
17
|
+
instanceOfDocumentResponse,
|
|
18
|
+
DocumentResponseFromJSON,
|
|
19
|
+
DocumentResponseFromJSONTyped,
|
|
20
|
+
DocumentResponseToJSON,
|
|
21
|
+
} from './DocumentResponse';
|
|
22
|
+
import type { FolderResponse } from './FolderResponse';
|
|
23
|
+
import {
|
|
24
|
+
instanceOfFolderResponse,
|
|
25
|
+
FolderResponseFromJSON,
|
|
26
|
+
FolderResponseFromJSONTyped,
|
|
27
|
+
FolderResponseToJSON,
|
|
28
|
+
} from './FolderResponse';
|
|
29
|
+
import type { WorkflowDefinitionResponse } from './WorkflowDefinitionResponse';
|
|
30
|
+
import {
|
|
31
|
+
instanceOfWorkflowDefinitionResponse,
|
|
32
|
+
WorkflowDefinitionResponseFromJSON,
|
|
33
|
+
WorkflowDefinitionResponseFromJSONTyped,
|
|
34
|
+
WorkflowDefinitionResponseToJSON,
|
|
35
|
+
} from './WorkflowDefinitionResponse';
|
|
36
|
+
import type { WorkflowRunResponse } from './WorkflowRunResponse';
|
|
37
|
+
import {
|
|
38
|
+
instanceOfWorkflowRunResponse,
|
|
39
|
+
WorkflowRunResponseFromJSON,
|
|
40
|
+
WorkflowRunResponseFromJSONTyped,
|
|
41
|
+
WorkflowRunResponseToJSON,
|
|
42
|
+
} from './WorkflowRunResponse';
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* @type FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponse
|
|
46
|
+
*
|
|
47
|
+
* @export
|
|
48
|
+
*/
|
|
49
|
+
export type FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponse = { partType: 'DOCUMENT' } & DocumentResponse | { partType: 'FOLDER' } & FolderResponse | { partType: 'WORKFLOW_DEFINITION' } & WorkflowDefinitionResponse | { partType: 'WORKFLOW_RUN' } & WorkflowRunResponse;
|
|
50
|
+
|
|
51
|
+
export function FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponseFromJSON(json: any): FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponse {
|
|
52
|
+
return FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponseFromJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponse {
|
|
56
|
+
if (json == null) {
|
|
57
|
+
return json;
|
|
58
|
+
}
|
|
59
|
+
switch (json['part_type']) {
|
|
60
|
+
case 'DOCUMENT':
|
|
61
|
+
return Object.assign({}, DocumentResponseFromJSONTyped(json, true), { partType: 'DOCUMENT' } as const);
|
|
62
|
+
case 'FOLDER':
|
|
63
|
+
return Object.assign({}, FolderResponseFromJSONTyped(json, true), { partType: 'FOLDER' } as const);
|
|
64
|
+
case 'WORKFLOW_DEFINITION':
|
|
65
|
+
return Object.assign({}, WorkflowDefinitionResponseFromJSONTyped(json, true), { partType: 'WORKFLOW_DEFINITION' } as const);
|
|
66
|
+
case 'WORKFLOW_RUN':
|
|
67
|
+
return Object.assign({}, WorkflowRunResponseFromJSONTyped(json, true), { partType: 'WORKFLOW_RUN' } as const);
|
|
68
|
+
default:
|
|
69
|
+
return json;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export function FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponseToJSON(json: any): any {
|
|
74
|
+
return FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponseToJSONTyped(json, false);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export function FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponseToJSONTyped(value?: FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
78
|
+
if (value == null) {
|
|
79
|
+
return value;
|
|
80
|
+
}
|
|
81
|
+
switch (value['partType']) {
|
|
82
|
+
case 'DOCUMENT':
|
|
83
|
+
return Object.assign({}, DocumentResponseToJSON(value), { partType: 'DOCUMENT' } as const);
|
|
84
|
+
case 'FOLDER':
|
|
85
|
+
return Object.assign({}, FolderResponseToJSON(value), { partType: 'FOLDER' } as const);
|
|
86
|
+
case 'WORKFLOW_DEFINITION':
|
|
87
|
+
return Object.assign({}, WorkflowDefinitionResponseToJSON(value), { partType: 'WORKFLOW_DEFINITION' } as const);
|
|
88
|
+
case 'WORKFLOW_RUN':
|
|
89
|
+
return Object.assign({}, WorkflowRunResponseToJSON(value), { partType: 'WORKFLOW_RUN' } as const);
|
|
90
|
+
default:
|
|
91
|
+
return value;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|