@knowledge-stack/ksapi 1.88.0 → 1.89.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +38 -20
- package/README.md +30 -19
- package/dist/apis/DocumentCheckoutApi.d.ts +16 -13
- package/dist/apis/DocumentCheckoutApi.js +17 -14
- package/dist/apis/DocumentVersionsApi.d.ts +1 -4
- package/dist/apis/DocumentVersionsApi.js +0 -2
- package/dist/apis/DocumentsApi.d.ts +1 -4
- package/dist/apis/DocumentsApi.js +0 -2
- package/dist/apis/FoldersApi.d.ts +10 -13
- package/dist/apis/FoldersApi.js +2 -4
- package/dist/apis/PathPartApprovalsApi.d.ts +117 -0
- package/dist/apis/PathPartApprovalsApi.js +159 -0
- package/dist/apis/PathPartsApi.d.ts +4 -4
- package/dist/apis/PathPartsApi.js +2 -2
- package/dist/apis/WorkflowDefinitionsApi.d.ts +48 -42
- package/dist/apis/WorkflowDefinitionsApi.js +65 -43
- package/dist/apis/WorkflowMemoryApi.d.ts +12 -9
- package/dist/apis/WorkflowMemoryApi.js +7 -3
- package/dist/apis/WorkflowRunsApi.d.ts +115 -65
- package/dist/apis/WorkflowRunsApi.js +100 -53
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/esm/apis/DocumentCheckoutApi.d.ts +16 -13
- package/dist/esm/apis/DocumentCheckoutApi.js +17 -14
- package/dist/esm/apis/DocumentVersionsApi.d.ts +1 -4
- package/dist/esm/apis/DocumentVersionsApi.js +0 -2
- package/dist/esm/apis/DocumentsApi.d.ts +1 -4
- package/dist/esm/apis/DocumentsApi.js +0 -2
- package/dist/esm/apis/FoldersApi.d.ts +10 -13
- package/dist/esm/apis/FoldersApi.js +3 -5
- package/dist/esm/apis/PathPartApprovalsApi.d.ts +117 -0
- package/dist/esm/apis/PathPartApprovalsApi.js +122 -0
- package/dist/esm/apis/PathPartsApi.d.ts +4 -4
- package/dist/esm/apis/PathPartsApi.js +2 -2
- package/dist/esm/apis/WorkflowDefinitionsApi.d.ts +48 -42
- package/dist/esm/apis/WorkflowDefinitionsApi.js +66 -44
- package/dist/esm/apis/WorkflowMemoryApi.d.ts +12 -9
- package/dist/esm/apis/WorkflowMemoryApi.js +8 -4
- package/dist/esm/apis/WorkflowRunsApi.d.ts +115 -65
- package/dist/esm/apis/WorkflowRunsApi.js +101 -54
- package/dist/esm/apis/index.d.ts +1 -0
- package/dist/esm/apis/index.js +1 -0
- package/dist/esm/models/ChunkContentItem.d.ts +7 -0
- package/dist/esm/models/ChunkContentItem.js +5 -0
- package/dist/esm/models/CitedChunk.d.ts +86 -0
- package/dist/esm/models/CitedChunk.js +55 -0
- package/dist/esm/models/CloneWorkflowRunRequest.d.ts +54 -0
- package/dist/esm/models/CloneWorkflowRunRequest.js +44 -0
- package/dist/esm/models/CreateThreadMessageRequest.d.ts +1 -1
- package/dist/esm/models/CreateThreadRequest.d.ts +13 -1
- package/dist/esm/models/CreateThreadRequest.js +8 -0
- package/dist/esm/models/CreateWorkflowDefinitionRequest.d.ts +6 -41
- package/dist/esm/models/CreateWorkflowDefinitionRequest.js +5 -35
- package/dist/esm/models/DocumentCheckoutResponse.d.ts +6 -5
- package/dist/esm/models/DocumentCheckoutResponse.js +7 -6
- package/dist/esm/models/DocumentResponse.d.ts +11 -3
- package/dist/esm/models/DocumentResponse.js +9 -3
- package/dist/esm/models/DocumentVersionMetadata.d.ts +7 -0
- package/dist/esm/models/DocumentVersionMetadata.js +3 -0
- package/dist/esm/models/DocumentVersionMetadataUpdate.d.ts +7 -0
- package/dist/esm/models/DocumentVersionMetadataUpdate.js +3 -0
- package/dist/esm/models/DocumentVersionResponse.d.ts +4 -3
- package/dist/esm/models/DocumentVersionResponse.js +4 -3
- package/dist/esm/models/DocxParagraphAnchorInput.d.ts +79 -0
- package/dist/esm/models/DocxParagraphAnchorInput.js +71 -0
- package/dist/esm/models/DocxParagraphAnchorOutput.d.ts +88 -0
- package/dist/esm/models/DocxParagraphAnchorOutput.js +74 -0
- package/dist/esm/models/FolderResponse.d.ts +7 -0
- package/dist/esm/models/FolderResponse.js +5 -0
- package/dist/esm/models/FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponse.d.ts +33 -0
- package/dist/esm/models/FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponse.js +57 -0
- package/dist/esm/models/InputSnapshot.d.ts +81 -0
- package/dist/esm/models/{ABCDPathSnapshot.js → InputSnapshot.js} +18 -12
- package/dist/esm/models/InstructionSnapshot.d.ts +16 -10
- package/dist/esm/models/InstructionSnapshot.js +11 -6
- package/dist/esm/models/MemoryChunkResponse.d.ts +1 -1
- package/dist/esm/models/MemoryKind.d.ts +1 -4
- package/dist/esm/models/MemoryKind.js +1 -4
- package/dist/esm/models/PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDiscriminator.d.ts +66 -0
- package/dist/esm/models/{PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseDiscriminator.js → PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDiscriminator.js} +12 -12
- package/dist/esm/models/PaginatedResponseMemoryChunkResponse.d.ts +66 -0
- package/dist/esm/models/PaginatedResponseMemoryChunkResponse.js +70 -0
- package/dist/esm/models/PathPartApprovalDecision.d.ts +6 -5
- package/dist/esm/models/PathPartApprovalDecision.js +7 -6
- package/dist/esm/models/PathPartApprovalResponse.d.ts +2 -23
- package/dist/esm/models/PathPartApprovalResponse.js +3 -15
- package/dist/esm/models/PathPartApprovalState.d.ts +32 -0
- package/dist/esm/models/PathPartApprovalState.js +50 -0
- package/dist/esm/models/SectionContentItem.d.ts +7 -0
- package/dist/esm/models/SectionContentItem.js +5 -0
- package/dist/esm/models/SetApprovalStateRequest.d.ts +69 -0
- package/dist/esm/models/SetApprovalStateRequest.js +57 -0
- package/dist/esm/models/SetWorkflowRunApprovalRequest.d.ts +64 -0
- package/dist/esm/models/SetWorkflowRunApprovalRequest.js +56 -0
- package/dist/esm/models/ThreadMessageResponse.d.ts +7 -1
- package/dist/esm/models/ThreadMessageResponse.js +2 -0
- package/dist/esm/models/ThreadResponse.d.ts +1 -1
- package/dist/esm/models/UpdateThreadRequest.d.ts +1 -1
- package/dist/esm/models/UpdateWorkflowDefinitionRequest.d.ts +4 -41
- package/dist/esm/models/UpdateWorkflowDefinitionRequest.js +7 -38
- package/dist/esm/models/UpdateWorkflowRunRequest.d.ts +58 -0
- package/dist/esm/models/UpdateWorkflowRunRequest.js +53 -0
- package/dist/esm/models/UserInfo.d.ts +59 -0
- package/dist/esm/models/UserInfo.js +52 -0
- package/dist/esm/models/UserMessageRequest.d.ts +1 -1
- package/dist/esm/models/UserMessageResponse.d.ts +1 -1
- package/dist/esm/models/WorkflowDefinitionResponse.d.ts +42 -24
- package/dist/esm/models/WorkflowDefinitionResponse.js +31 -24
- package/dist/esm/models/WorkflowExecutionState.d.ts +42 -0
- package/dist/esm/models/WorkflowExecutionState.js +60 -0
- package/dist/esm/models/WorkflowRunResponse.d.ts +91 -18
- package/dist/esm/models/WorkflowRunResponse.js +59 -18
- package/dist/esm/models/WorkflowRunSnapshot.d.ts +14 -37
- package/dist/esm/models/WorkflowRunSnapshot.js +7 -28
- package/dist/esm/models/XlsxCellAnchorInput.d.ts +79 -0
- package/dist/esm/models/XlsxCellAnchorInput.js +67 -0
- package/dist/esm/models/XlsxCellAnchorInputOrDocxParagraphAnchorInput.d.ts +27 -0
- package/dist/esm/models/XlsxCellAnchorInputOrDocxParagraphAnchorInput.js +47 -0
- package/dist/esm/models/XlsxCellAnchorOutput.d.ts +90 -0
- package/dist/esm/models/XlsxCellAnchorOutput.js +70 -0
- package/dist/esm/models/XlsxCellAnchorOutputOrDocxParagraphAnchorOutput.d.ts +27 -0
- package/dist/esm/models/XlsxCellAnchorOutputOrDocxParagraphAnchorOutput.js +47 -0
- package/dist/esm/models/index.d.ts +18 -10
- package/dist/esm/models/index.js +18 -10
- package/dist/models/ChunkContentItem.d.ts +7 -0
- package/dist/models/ChunkContentItem.js +5 -0
- package/dist/models/CitedChunk.d.ts +86 -0
- package/dist/models/CitedChunk.js +63 -0
- package/dist/models/CloneWorkflowRunRequest.d.ts +54 -0
- package/dist/models/CloneWorkflowRunRequest.js +52 -0
- package/dist/models/CreateThreadMessageRequest.d.ts +1 -1
- package/dist/models/CreateThreadRequest.d.ts +13 -1
- package/dist/models/CreateThreadRequest.js +8 -0
- package/dist/models/CreateWorkflowDefinitionRequest.d.ts +6 -41
- package/dist/models/CreateWorkflowDefinitionRequest.js +5 -35
- package/dist/models/DocumentCheckoutResponse.d.ts +6 -5
- package/dist/models/DocumentCheckoutResponse.js +7 -6
- package/dist/models/DocumentResponse.d.ts +11 -3
- package/dist/models/DocumentResponse.js +9 -3
- package/dist/models/DocumentVersionMetadata.d.ts +7 -0
- package/dist/models/DocumentVersionMetadata.js +3 -0
- package/dist/models/DocumentVersionMetadataUpdate.d.ts +7 -0
- package/dist/models/DocumentVersionMetadataUpdate.js +3 -0
- package/dist/models/DocumentVersionResponse.d.ts +4 -3
- package/dist/models/DocumentVersionResponse.js +4 -3
- package/dist/models/DocxParagraphAnchorInput.d.ts +79 -0
- package/dist/models/DocxParagraphAnchorInput.js +79 -0
- package/dist/models/DocxParagraphAnchorOutput.d.ts +88 -0
- package/dist/models/DocxParagraphAnchorOutput.js +82 -0
- package/dist/models/FolderResponse.d.ts +7 -0
- package/dist/models/FolderResponse.js +5 -0
- package/dist/models/FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponse.d.ts +33 -0
- package/dist/models/FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponse.js +63 -0
- package/dist/models/InputSnapshot.d.ts +81 -0
- package/dist/models/{ABCDPathSnapshot.js → InputSnapshot.js} +24 -18
- package/dist/models/InstructionSnapshot.d.ts +16 -10
- package/dist/models/InstructionSnapshot.js +12 -7
- package/dist/models/MemoryChunkResponse.d.ts +1 -1
- package/dist/models/MemoryKind.d.ts +1 -4
- package/dist/models/MemoryKind.js +1 -4
- package/dist/models/PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDiscriminator.d.ts +66 -0
- package/dist/models/PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDiscriminator.js +78 -0
- package/dist/models/PaginatedResponseMemoryChunkResponse.d.ts +66 -0
- package/dist/models/PaginatedResponseMemoryChunkResponse.js +78 -0
- package/dist/models/PathPartApprovalDecision.d.ts +6 -5
- package/dist/models/PathPartApprovalDecision.js +7 -6
- package/dist/models/PathPartApprovalResponse.d.ts +2 -23
- package/dist/models/PathPartApprovalResponse.js +3 -15
- package/dist/models/PathPartApprovalState.d.ts +32 -0
- package/dist/models/PathPartApprovalState.js +58 -0
- package/dist/models/SectionContentItem.d.ts +7 -0
- package/dist/models/SectionContentItem.js +5 -0
- package/dist/models/SetApprovalStateRequest.d.ts +69 -0
- package/dist/models/SetApprovalStateRequest.js +65 -0
- package/dist/models/SetWorkflowRunApprovalRequest.d.ts +64 -0
- package/dist/models/SetWorkflowRunApprovalRequest.js +64 -0
- package/dist/models/ThreadMessageResponse.d.ts +7 -1
- package/dist/models/ThreadMessageResponse.js +2 -0
- package/dist/models/ThreadResponse.d.ts +1 -1
- package/dist/models/UpdateThreadRequest.d.ts +1 -1
- package/dist/models/UpdateWorkflowDefinitionRequest.d.ts +4 -41
- package/dist/models/UpdateWorkflowDefinitionRequest.js +7 -38
- package/dist/models/UpdateWorkflowRunRequest.d.ts +58 -0
- package/dist/models/UpdateWorkflowRunRequest.js +61 -0
- package/dist/models/UserInfo.d.ts +59 -0
- package/dist/models/UserInfo.js +60 -0
- package/dist/models/UserMessageRequest.d.ts +1 -1
- package/dist/models/UserMessageResponse.d.ts +1 -1
- package/dist/models/WorkflowDefinitionResponse.d.ts +42 -24
- package/dist/models/WorkflowDefinitionResponse.js +32 -25
- package/dist/models/WorkflowExecutionState.d.ts +42 -0
- package/dist/models/WorkflowExecutionState.js +68 -0
- package/dist/models/WorkflowRunResponse.d.ts +91 -18
- package/dist/models/WorkflowRunResponse.js +60 -19
- package/dist/models/WorkflowRunSnapshot.d.ts +14 -37
- package/dist/models/WorkflowRunSnapshot.js +7 -28
- package/dist/models/XlsxCellAnchorInput.d.ts +79 -0
- package/dist/models/XlsxCellAnchorInput.js +75 -0
- package/dist/models/XlsxCellAnchorInputOrDocxParagraphAnchorInput.d.ts +27 -0
- package/dist/models/XlsxCellAnchorInputOrDocxParagraphAnchorInput.js +53 -0
- package/dist/models/XlsxCellAnchorOutput.d.ts +90 -0
- package/dist/models/XlsxCellAnchorOutput.js +78 -0
- package/dist/models/XlsxCellAnchorOutputOrDocxParagraphAnchorOutput.d.ts +27 -0
- package/dist/models/XlsxCellAnchorOutputOrDocxParagraphAnchorOutput.js +53 -0
- package/dist/models/index.d.ts +18 -10
- package/dist/models/index.js +18 -10
- package/docs/ChunkContentItem.md +2 -0
- package/docs/CitedChunk.md +45 -0
- package/docs/CloneWorkflowRunRequest.md +35 -0
- package/docs/CreateThreadMessageRequest.md +0 -1
- package/docs/CreateThreadRequest.md +4 -1
- package/docs/CreateWorkflowDefinitionRequest.md +3 -13
- package/docs/DocumentCheckoutApi.md +19 -16
- package/docs/DocumentCheckoutResponse.md +4 -4
- package/docs/DocumentResponse.md +4 -2
- package/docs/DocumentVersionMetadata.md +2 -0
- package/docs/DocumentVersionMetadataUpdate.md +2 -0
- package/docs/DocumentVersionResponse.md +2 -2
- package/docs/DocumentVersionsApi.md +0 -2
- package/docs/DocumentsApi.md +0 -2
- package/docs/{ABCDPathSnapshot.md → DocxParagraphAnchorInput.md} +15 -11
- package/docs/DocxParagraphAnchorOutput.md +45 -0
- package/docs/FolderResponse.md +2 -0
- package/docs/FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponse.md +108 -0
- package/docs/FoldersApi.md +4 -6
- package/docs/InputSnapshot.md +39 -0
- package/docs/InstructionSnapshot.md +4 -4
- package/docs/MemoryChunkResponse.md +0 -1
- package/docs/MemoryKind.md +1 -1
- package/docs/PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDiscriminator.md +40 -0
- package/docs/{PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseDiscriminator.md → PaginatedResponseMemoryChunkResponse.md} +5 -5
- package/docs/PathPartApprovalDecision.md +1 -1
- package/docs/PathPartApprovalResponse.md +3 -9
- package/docs/{InvokeWorkflowRequest.md → PathPartApprovalState.md} +5 -9
- package/docs/PathPartApprovalsApi.md +161 -0
- package/docs/PathPartsApi.md +1 -1
- package/docs/SectionContentItem.md +2 -0
- package/docs/SectionContentItemOrChunkContentItem.md +2 -0
- package/docs/SetApprovalStateRequest.md +37 -0
- package/docs/SetWorkflowRunApprovalRequest.md +37 -0
- package/docs/ThreadMessageResponse.md +2 -1
- package/docs/ThreadResponse.md +0 -1
- package/docs/UpdateThreadRequest.md +0 -1
- package/docs/UpdateWorkflowDefinitionRequest.md +3 -13
- package/docs/UpdateWorkflowRunRequest.md +37 -0
- package/docs/{RejectFileRequest.md → UserInfo.md} +11 -7
- package/docs/UserMessageRequest.md +0 -1
- package/docs/UserMessageResponse.md +0 -1
- package/docs/WorkflowDefinitionResponse.md +15 -13
- package/docs/WorkflowDefinitionsApi.md +38 -32
- package/docs/WorkflowExecutionState.md +33 -0
- package/docs/WorkflowMemoryApi.md +8 -4
- package/docs/WorkflowRunResponse.md +29 -9
- package/docs/WorkflowRunSnapshot.md +5 -15
- package/docs/WorkflowRunsApi.md +122 -42
- package/docs/{ListMemoryChunksResponse.md → XlsxCellAnchorInput.md} +15 -6
- package/docs/XlsxCellAnchorInputOrDocxParagraphAnchorInput.md +46 -0
- package/docs/XlsxCellAnchorOutput.md +45 -0
- package/docs/XlsxCellAnchorOutputOrDocxParagraphAnchorOutput.md +48 -0
- package/package.json +1 -1
- package/src/apis/DocumentCheckoutApi.ts +35 -28
- package/src/apis/DocumentVersionsApi.ts +1 -4
- package/src/apis/DocumentsApi.ts +1 -4
- package/src/apis/FoldersApi.ts +14 -17
- package/src/apis/PathPartApprovalsApi.ts +228 -0
- package/src/apis/PathPartsApi.ts +4 -4
- package/src/apis/WorkflowDefinitionsApi.ts +102 -78
- package/src/apis/WorkflowMemoryApi.ts +23 -12
- package/src/apis/WorkflowRunsApi.ts +198 -104
- package/src/apis/index.ts +1 -0
- package/src/models/ChunkContentItem.ts +16 -0
- package/src/models/CitedChunk.ts +141 -0
- package/src/models/CloneWorkflowRunRequest.ts +90 -0
- package/src/models/CreateThreadMessageRequest.ts +1 -1
- package/src/models/CreateThreadRequest.ts +21 -1
- package/src/models/CreateWorkflowDefinitionRequest.ts +11 -87
- package/src/models/DocumentCheckoutResponse.ts +19 -11
- package/src/models/DocumentResponse.ts +29 -6
- package/src/models/DocumentVersionMetadata.ts +15 -0
- package/src/models/DocumentVersionMetadataUpdate.ts +15 -0
- package/src/models/DocumentVersionResponse.ts +13 -6
- package/src/models/DocxParagraphAnchorInput.ts +142 -0
- package/src/models/DocxParagraphAnchorOutput.ts +153 -0
- package/src/models/FolderResponse.ts +16 -0
- package/src/models/FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponse.ts +94 -0
- package/src/models/InputSnapshot.ts +126 -0
- package/src/models/InstructionSnapshot.ts +22 -22
- package/src/models/MemoryChunkResponse.ts +1 -1
- package/src/models/MemoryKind.ts +1 -4
- package/src/models/{PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseDiscriminator.ts → PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDiscriminator.ts} +25 -25
- package/src/models/PaginatedResponseMemoryChunkResponse.ts +130 -0
- package/src/models/PathPartApprovalDecision.ts +7 -6
- package/src/models/PathPartApprovalResponse.ts +5 -35
- package/src/models/PathPartApprovalState.ts +60 -0
- package/src/models/SectionContentItem.ts +17 -0
- package/src/models/SetApprovalStateRequest.ts +113 -0
- package/src/models/SetWorkflowRunApprovalRequest.ts +108 -0
- package/src/models/ThreadMessageResponse.ts +9 -1
- package/src/models/ThreadResponse.ts +1 -1
- package/src/models/UpdateThreadRequest.ts +1 -1
- package/src/models/UpdateWorkflowDefinitionRequest.ts +11 -90
- package/src/models/UpdateWorkflowRunRequest.ts +103 -0
- package/src/models/UserInfo.ts +101 -0
- package/src/models/UserMessageRequest.ts +1 -1
- package/src/models/UserMessageResponse.ts +1 -1
- package/src/models/WorkflowDefinitionResponse.ts +68 -53
- package/src/models/WorkflowExecutionState.ts +70 -0
- package/src/models/WorkflowRunResponse.ts +151 -44
- package/src/models/WorkflowRunSnapshot.ts +25 -71
- package/src/models/XlsxCellAnchorInput.ts +138 -0
- package/src/models/XlsxCellAnchorInputOrDocxParagraphAnchorInput.ts +72 -0
- package/src/models/XlsxCellAnchorOutput.ts +151 -0
- package/src/models/XlsxCellAnchorOutputOrDocxParagraphAnchorOutput.ts +72 -0
- package/src/models/index.ts +18 -10
- package/dist/esm/models/ABCDPathSnapshot.d.ts +0 -60
- package/dist/esm/models/FolderResponseOrDocumentResponse.d.ts +0 -27
- package/dist/esm/models/FolderResponseOrDocumentResponse.js +0 -47
- package/dist/esm/models/InvokeWorkflowRequest.d.ts +0 -53
- package/dist/esm/models/InvokeWorkflowRequest.js +0 -52
- package/dist/esm/models/ListMemoryChunksResponse.d.ts +0 -48
- package/dist/esm/models/ListMemoryChunksResponse.js +0 -45
- package/dist/esm/models/PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseDiscriminator.d.ts +0 -66
- package/dist/esm/models/RejectFileRequest.d.ts +0 -47
- package/dist/esm/models/RejectFileRequest.js +0 -49
- package/dist/esm/models/SelfHostedRunnerConfig.d.ts +0 -53
- package/dist/esm/models/SelfHostedRunnerConfig.js +0 -53
- package/dist/esm/models/SelfHostedRunnerConfigResponse.d.ts +0 -47
- package/dist/esm/models/SelfHostedRunnerConfigResponse.js +0 -49
- package/dist/esm/models/WorkflowRunStatus.d.ts +0 -45
- package/dist/esm/models/WorkflowRunStatus.js +0 -63
- package/dist/esm/models/WorkflowRunnerType.d.ts +0 -25
- package/dist/esm/models/WorkflowRunnerType.js +0 -43
- package/dist/models/ABCDPathSnapshot.d.ts +0 -60
- package/dist/models/FolderResponseOrDocumentResponse.d.ts +0 -27
- package/dist/models/FolderResponseOrDocumentResponse.js +0 -53
- package/dist/models/InvokeWorkflowRequest.d.ts +0 -53
- package/dist/models/InvokeWorkflowRequest.js +0 -60
- package/dist/models/ListMemoryChunksResponse.d.ts +0 -48
- package/dist/models/ListMemoryChunksResponse.js +0 -53
- package/dist/models/PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseDiscriminator.d.ts +0 -66
- package/dist/models/PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseDiscriminator.js +0 -78
- package/dist/models/RejectFileRequest.d.ts +0 -47
- package/dist/models/RejectFileRequest.js +0 -57
- package/dist/models/SelfHostedRunnerConfig.d.ts +0 -53
- package/dist/models/SelfHostedRunnerConfig.js +0 -61
- package/dist/models/SelfHostedRunnerConfigResponse.d.ts +0 -47
- package/dist/models/SelfHostedRunnerConfigResponse.js +0 -57
- package/dist/models/WorkflowRunStatus.d.ts +0 -45
- package/dist/models/WorkflowRunStatus.js +0 -71
- package/dist/models/WorkflowRunnerType.d.ts +0 -25
- package/dist/models/WorkflowRunnerType.js +0 -51
- package/docs/FolderResponseOrDocumentResponse.md +0 -70
- package/docs/SelfHostedRunnerConfig.md +0 -37
- package/docs/SelfHostedRunnerConfigResponse.md +0 -35
- package/docs/WorkflowRunStatus.md +0 -33
- package/docs/WorkflowRunnerType.md +0 -33
- package/src/models/ABCDPathSnapshot.ts +0 -111
- package/src/models/FolderResponseOrDocumentResponse.ts +0 -72
- package/src/models/InvokeWorkflowRequest.ts +0 -97
- package/src/models/ListMemoryChunksResponse.ts +0 -91
- package/src/models/RejectFileRequest.ts +0 -87
- package/src/models/SelfHostedRunnerConfig.ts +0 -96
- package/src/models/SelfHostedRunnerConfigResponse.ts +0 -87
- package/src/models/WorkflowRunStatus.ts +0 -73
- package/src/models/WorkflowRunnerType.ts +0 -53
|
@@ -9,17 +9,12 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type { SelfHostedRunnerConfig } from './SelfHostedRunnerConfig';
|
|
13
|
-
import type { WorkflowRunnerType } from './WorkflowRunnerType';
|
|
14
12
|
/**
|
|
15
13
|
* Create a new workflow definition.
|
|
16
14
|
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
* single ``instruction.md`` and stores ``[doc.path_part_id]``.
|
|
21
|
-
* - ``SELF_HOSTED``: caller-supplied list of one-or-more document
|
|
22
|
-
* PathPart IDs. Must contain at least one entry.
|
|
15
|
+
* Inputs are per-run (see ``POST /workflow-definitions/{id}/runs``) so
|
|
16
|
+
* only the instruction lives on the definition.
|
|
17
|
+
* ``instruction_path_part_id`` is a ``DOCUMENT`` path_part.
|
|
23
18
|
* @export
|
|
24
19
|
* @interface CreateWorkflowDefinitionRequest
|
|
25
20
|
*/
|
|
@@ -36,18 +31,6 @@ export interface CreateWorkflowDefinitionRequest {
|
|
|
36
31
|
* @memberof CreateWorkflowDefinitionRequest
|
|
37
32
|
*/
|
|
38
33
|
description?: string | null;
|
|
39
|
-
/**
|
|
40
|
-
*
|
|
41
|
-
* @type {WorkflowRunnerType}
|
|
42
|
-
* @memberof CreateWorkflowDefinitionRequest
|
|
43
|
-
*/
|
|
44
|
-
runnerType: WorkflowRunnerType;
|
|
45
|
-
/**
|
|
46
|
-
*
|
|
47
|
-
* @type {SelfHostedRunnerConfig}
|
|
48
|
-
* @memberof CreateWorkflowDefinitionRequest
|
|
49
|
-
*/
|
|
50
|
-
runnerConfig?: SelfHostedRunnerConfig | null;
|
|
51
34
|
/**
|
|
52
35
|
*
|
|
53
36
|
* @type {number}
|
|
@@ -55,35 +38,17 @@ export interface CreateWorkflowDefinitionRequest {
|
|
|
55
38
|
*/
|
|
56
39
|
maxRunDurationSeconds?: number;
|
|
57
40
|
/**
|
|
58
|
-
*
|
|
59
|
-
* @type {Array<string>}
|
|
60
|
-
* @memberof CreateWorkflowDefinitionRequest
|
|
61
|
-
*/
|
|
62
|
-
sourcePathPartIds: Array<string>;
|
|
63
|
-
/**
|
|
64
|
-
*
|
|
65
|
-
* @type {Array<string>}
|
|
66
|
-
* @memberof CreateWorkflowDefinitionRequest
|
|
67
|
-
*/
|
|
68
|
-
instructionPathPartIds?: Array<string>;
|
|
69
|
-
/**
|
|
70
|
-
*
|
|
71
|
-
* @type {Array<string>}
|
|
72
|
-
* @memberof CreateWorkflowDefinitionRequest
|
|
73
|
-
*/
|
|
74
|
-
outputPathPartIds: Array<string>;
|
|
75
|
-
/**
|
|
76
|
-
*
|
|
41
|
+
* DOCUMENT path_part of the instruction document. Omit (or pass null) to have the server auto-create an empty instruction.md.
|
|
77
42
|
* @type {string}
|
|
78
43
|
* @memberof CreateWorkflowDefinitionRequest
|
|
79
44
|
*/
|
|
80
|
-
|
|
45
|
+
instructionPathPartId?: string | null;
|
|
81
46
|
/**
|
|
82
47
|
*
|
|
83
48
|
* @type {boolean}
|
|
84
49
|
* @memberof CreateWorkflowDefinitionRequest
|
|
85
50
|
*/
|
|
86
|
-
approvalRequired
|
|
51
|
+
approvalRequired: boolean;
|
|
87
52
|
}
|
|
88
53
|
export declare const CreateWorkflowDefinitionRequestPropertyValidationAttributesMap: {
|
|
89
54
|
[property: string]: {
|
|
@@ -19,32 +19,16 @@ exports.CreateWorkflowDefinitionRequestFromJSON = CreateWorkflowDefinitionReques
|
|
|
19
19
|
exports.CreateWorkflowDefinitionRequestFromJSONTyped = CreateWorkflowDefinitionRequestFromJSONTyped;
|
|
20
20
|
exports.CreateWorkflowDefinitionRequestToJSON = CreateWorkflowDefinitionRequestToJSON;
|
|
21
21
|
exports.CreateWorkflowDefinitionRequestToJSONTyped = CreateWorkflowDefinitionRequestToJSONTyped;
|
|
22
|
-
const SelfHostedRunnerConfig_1 = require("./SelfHostedRunnerConfig");
|
|
23
|
-
const WorkflowRunnerType_1 = require("./WorkflowRunnerType");
|
|
24
22
|
exports.CreateWorkflowDefinitionRequestPropertyValidationAttributesMap = {
|
|
25
23
|
name: {
|
|
26
24
|
maxLength: 255,
|
|
27
25
|
},
|
|
28
26
|
maxRunDurationSeconds: {
|
|
29
|
-
maximum:
|
|
27
|
+
maximum: 7200,
|
|
30
28
|
exclusiveMaximum: false,
|
|
31
29
|
minimum: 60,
|
|
32
30
|
exclusiveMinimum: false,
|
|
33
31
|
},
|
|
34
|
-
sourcePathPartIds: {
|
|
35
|
-
maxItems: 20,
|
|
36
|
-
minItems: 1,
|
|
37
|
-
uniqueItems: false,
|
|
38
|
-
},
|
|
39
|
-
instructionPathPartIds: {
|
|
40
|
-
maxItems: 20,
|
|
41
|
-
uniqueItems: false,
|
|
42
|
-
},
|
|
43
|
-
outputPathPartIds: {
|
|
44
|
-
maxItems: 20,
|
|
45
|
-
minItems: 1,
|
|
46
|
-
uniqueItems: false,
|
|
47
|
-
},
|
|
48
32
|
};
|
|
49
33
|
/**
|
|
50
34
|
* Check if a given object implements the CreateWorkflowDefinitionRequest interface.
|
|
@@ -52,11 +36,7 @@ exports.CreateWorkflowDefinitionRequestPropertyValidationAttributesMap = {
|
|
|
52
36
|
function instanceOfCreateWorkflowDefinitionRequest(value) {
|
|
53
37
|
if (!('name' in value) || value['name'] === undefined)
|
|
54
38
|
return false;
|
|
55
|
-
if (!('
|
|
56
|
-
return false;
|
|
57
|
-
if (!('sourcePathPartIds' in value) || value['sourcePathPartIds'] === undefined)
|
|
58
|
-
return false;
|
|
59
|
-
if (!('outputPathPartIds' in value) || value['outputPathPartIds'] === undefined)
|
|
39
|
+
if (!('approvalRequired' in value) || value['approvalRequired'] === undefined)
|
|
60
40
|
return false;
|
|
61
41
|
return true;
|
|
62
42
|
}
|
|
@@ -70,14 +50,9 @@ function CreateWorkflowDefinitionRequestFromJSONTyped(json, ignoreDiscriminator)
|
|
|
70
50
|
return {
|
|
71
51
|
'name': json['name'],
|
|
72
52
|
'description': json['description'] == null ? undefined : json['description'],
|
|
73
|
-
'runnerType': (0, WorkflowRunnerType_1.WorkflowRunnerTypeFromJSON)(json['runner_type']),
|
|
74
|
-
'runnerConfig': json['runner_config'] == null ? undefined : (0, SelfHostedRunnerConfig_1.SelfHostedRunnerConfigFromJSON)(json['runner_config']),
|
|
75
53
|
'maxRunDurationSeconds': json['max_run_duration_seconds'] == null ? undefined : json['max_run_duration_seconds'],
|
|
76
|
-
'
|
|
77
|
-
'
|
|
78
|
-
'outputPathPartIds': json['output_path_part_ids'],
|
|
79
|
-
'templatePathPartId': json['template_path_part_id'] == null ? undefined : json['template_path_part_id'],
|
|
80
|
-
'approvalRequired': json['approval_required'] == null ? undefined : json['approval_required'],
|
|
54
|
+
'instructionPathPartId': json['instruction_path_part_id'] == null ? undefined : json['instruction_path_part_id'],
|
|
55
|
+
'approvalRequired': json['approval_required'],
|
|
81
56
|
};
|
|
82
57
|
}
|
|
83
58
|
function CreateWorkflowDefinitionRequestToJSON(json) {
|
|
@@ -90,13 +65,8 @@ function CreateWorkflowDefinitionRequestToJSONTyped(value, ignoreDiscriminator =
|
|
|
90
65
|
return {
|
|
91
66
|
'name': value['name'],
|
|
92
67
|
'description': value['description'],
|
|
93
|
-
'runner_type': (0, WorkflowRunnerType_1.WorkflowRunnerTypeToJSON)(value['runnerType']),
|
|
94
|
-
'runner_config': (0, SelfHostedRunnerConfig_1.SelfHostedRunnerConfigToJSON)(value['runnerConfig']),
|
|
95
68
|
'max_run_duration_seconds': value['maxRunDurationSeconds'],
|
|
96
|
-
'
|
|
97
|
-
'instruction_path_part_ids': value['instructionPathPartIds'],
|
|
98
|
-
'output_path_part_ids': value['outputPathPartIds'],
|
|
99
|
-
'template_path_part_id': value['templatePathPartId'],
|
|
69
|
+
'instruction_path_part_id': value['instructionPathPartId'],
|
|
100
70
|
'approval_required': value['approvalRequired'],
|
|
101
71
|
};
|
|
102
72
|
}
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { UserInfo } from './UserInfo';
|
|
12
13
|
/**
|
|
13
14
|
* Active checkout state on a document.
|
|
14
15
|
* @export
|
|
@@ -22,17 +23,17 @@ export interface DocumentCheckoutResponse {
|
|
|
22
23
|
*/
|
|
23
24
|
tenantId: string;
|
|
24
25
|
/**
|
|
25
|
-
* Document
|
|
26
|
+
* Document ID
|
|
26
27
|
* @type {string}
|
|
27
28
|
* @memberof DocumentCheckoutResponse
|
|
28
29
|
*/
|
|
29
|
-
|
|
30
|
+
documentId: string;
|
|
30
31
|
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {
|
|
32
|
+
*
|
|
33
|
+
* @type {UserInfo}
|
|
33
34
|
* @memberof DocumentCheckoutResponse
|
|
34
35
|
*/
|
|
35
|
-
|
|
36
|
+
holder: UserInfo;
|
|
36
37
|
/**
|
|
37
38
|
* When the checkout was acquired
|
|
38
39
|
* @type {Date}
|
|
@@ -19,6 +19,7 @@ exports.DocumentCheckoutResponseFromJSON = DocumentCheckoutResponseFromJSON;
|
|
|
19
19
|
exports.DocumentCheckoutResponseFromJSONTyped = DocumentCheckoutResponseFromJSONTyped;
|
|
20
20
|
exports.DocumentCheckoutResponseToJSON = DocumentCheckoutResponseToJSON;
|
|
21
21
|
exports.DocumentCheckoutResponseToJSONTyped = DocumentCheckoutResponseToJSONTyped;
|
|
22
|
+
const UserInfo_1 = require("./UserInfo");
|
|
22
23
|
exports.DocumentCheckoutResponsePropertyValidationAttributesMap = {};
|
|
23
24
|
/**
|
|
24
25
|
* Check if a given object implements the DocumentCheckoutResponse interface.
|
|
@@ -26,9 +27,9 @@ exports.DocumentCheckoutResponsePropertyValidationAttributesMap = {};
|
|
|
26
27
|
function instanceOfDocumentCheckoutResponse(value) {
|
|
27
28
|
if (!('tenantId' in value) || value['tenantId'] === undefined)
|
|
28
29
|
return false;
|
|
29
|
-
if (!('
|
|
30
|
+
if (!('documentId' in value) || value['documentId'] === undefined)
|
|
30
31
|
return false;
|
|
31
|
-
if (!('
|
|
32
|
+
if (!('holder' in value) || value['holder'] === undefined)
|
|
32
33
|
return false;
|
|
33
34
|
if (!('acquiredAt' in value) || value['acquiredAt'] === undefined)
|
|
34
35
|
return false;
|
|
@@ -43,8 +44,8 @@ function DocumentCheckoutResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
43
44
|
}
|
|
44
45
|
return {
|
|
45
46
|
'tenantId': json['tenant_id'],
|
|
46
|
-
'
|
|
47
|
-
'
|
|
47
|
+
'documentId': json['document_id'],
|
|
48
|
+
'holder': (0, UserInfo_1.UserInfoFromJSON)(json['holder']),
|
|
48
49
|
'acquiredAt': (new Date(json['acquired_at'])),
|
|
49
50
|
};
|
|
50
51
|
}
|
|
@@ -57,8 +58,8 @@ function DocumentCheckoutResponseToJSONTyped(value, ignoreDiscriminator = false)
|
|
|
57
58
|
}
|
|
58
59
|
return {
|
|
59
60
|
'tenant_id': value['tenantId'],
|
|
60
|
-
'
|
|
61
|
-
'
|
|
61
|
+
'document_id': value['documentId'],
|
|
62
|
+
'holder': (0, UserInfo_1.UserInfoToJSON)(value['holder']),
|
|
62
63
|
'acquired_at': value['acquiredAt'].toISOString(),
|
|
63
64
|
};
|
|
64
65
|
}
|
|
@@ -12,6 +12,8 @@
|
|
|
12
12
|
import type { DocumentOrigin } from './DocumentOrigin';
|
|
13
13
|
import type { TagResponse } from './TagResponse';
|
|
14
14
|
import type { DocumentType } from './DocumentType';
|
|
15
|
+
import type { PathPartApprovalState } from './PathPartApprovalState';
|
|
16
|
+
import type { UserInfo } from './UserInfo';
|
|
15
17
|
import type { DocumentCheckoutResponse } from './DocumentCheckoutResponse';
|
|
16
18
|
import type { DocumentVersionResponse } from './DocumentVersionResponse';
|
|
17
19
|
/**
|
|
@@ -86,6 +88,12 @@ export interface DocumentResponse {
|
|
|
86
88
|
* @memberof DocumentResponse
|
|
87
89
|
*/
|
|
88
90
|
systemManaged: boolean;
|
|
91
|
+
/**
|
|
92
|
+
*
|
|
93
|
+
* @type {PathPartApprovalState}
|
|
94
|
+
* @memberof DocumentResponse
|
|
95
|
+
*/
|
|
96
|
+
approvalState: PathPartApprovalState;
|
|
89
97
|
/**
|
|
90
98
|
* Direct exclusion flag on this document's path part only. The effective exclusion also applies when any ancestor folder has the flag set — fetch the ancestry to determine effective state.
|
|
91
99
|
* @type {boolean}
|
|
@@ -99,11 +107,11 @@ export interface DocumentResponse {
|
|
|
99
107
|
*/
|
|
100
108
|
tenantId: string;
|
|
101
109
|
/**
|
|
102
|
-
*
|
|
103
|
-
* @type {
|
|
110
|
+
*
|
|
111
|
+
* @type {UserInfo}
|
|
104
112
|
* @memberof DocumentResponse
|
|
105
113
|
*/
|
|
106
|
-
|
|
114
|
+
owner: UserInfo;
|
|
107
115
|
/**
|
|
108
116
|
* Creation timestamp
|
|
109
117
|
* @type {Date}
|
|
@@ -22,6 +22,8 @@ exports.DocumentResponseToJSONTyped = DocumentResponseToJSONTyped;
|
|
|
22
22
|
const DocumentOrigin_1 = require("./DocumentOrigin");
|
|
23
23
|
const TagResponse_1 = require("./TagResponse");
|
|
24
24
|
const DocumentType_1 = require("./DocumentType");
|
|
25
|
+
const PathPartApprovalState_1 = require("./PathPartApprovalState");
|
|
26
|
+
const UserInfo_1 = require("./UserInfo");
|
|
25
27
|
const DocumentCheckoutResponse_1 = require("./DocumentCheckoutResponse");
|
|
26
28
|
const DocumentVersionResponse_1 = require("./DocumentVersionResponse");
|
|
27
29
|
/**
|
|
@@ -57,11 +59,13 @@ function instanceOfDocumentResponse(value) {
|
|
|
57
59
|
return false;
|
|
58
60
|
if (!('systemManaged' in value) || value['systemManaged'] === undefined)
|
|
59
61
|
return false;
|
|
62
|
+
if (!('approvalState' in value) || value['approvalState'] === undefined)
|
|
63
|
+
return false;
|
|
60
64
|
if (!('excludeFromQdrant' in value) || value['excludeFromQdrant'] === undefined)
|
|
61
65
|
return false;
|
|
62
66
|
if (!('tenantId' in value) || value['tenantId'] === undefined)
|
|
63
67
|
return false;
|
|
64
|
-
if (!('
|
|
68
|
+
if (!('owner' in value) || value['owner'] === undefined)
|
|
65
69
|
return false;
|
|
66
70
|
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
67
71
|
return false;
|
|
@@ -88,9 +92,10 @@ function DocumentResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
88
92
|
'activeVersion': (0, DocumentVersionResponse_1.DocumentVersionResponseFromJSON)(json['active_version']),
|
|
89
93
|
'materializedPath': json['materialized_path'],
|
|
90
94
|
'systemManaged': json['system_managed'],
|
|
95
|
+
'approvalState': (0, PathPartApprovalState_1.PathPartApprovalStateFromJSON)(json['approval_state']),
|
|
91
96
|
'excludeFromQdrant': json['exclude_from_qdrant'],
|
|
92
97
|
'tenantId': json['tenant_id'],
|
|
93
|
-
'
|
|
98
|
+
'owner': (0, UserInfo_1.UserInfoFromJSON)(json['owner']),
|
|
94
99
|
'createdAt': (new Date(json['created_at'])),
|
|
95
100
|
'updatedAt': (new Date(json['updated_at'])),
|
|
96
101
|
'tags': json['tags'] == null ? undefined : (json['tags'].map(TagResponse_1.TagResponseFromJSON)),
|
|
@@ -117,9 +122,10 @@ function DocumentResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
117
122
|
'active_version': (0, DocumentVersionResponse_1.DocumentVersionResponseToJSON)(value['activeVersion']),
|
|
118
123
|
'materialized_path': value['materializedPath'],
|
|
119
124
|
'system_managed': value['systemManaged'],
|
|
125
|
+
'approval_state': (0, PathPartApprovalState_1.PathPartApprovalStateToJSON)(value['approvalState']),
|
|
120
126
|
'exclude_from_qdrant': value['excludeFromQdrant'],
|
|
121
127
|
'tenant_id': value['tenantId'],
|
|
122
|
-
'
|
|
128
|
+
'owner': (0, UserInfo_1.UserInfoToJSON)(value['owner']),
|
|
123
129
|
'created_at': value['createdAt'].toISOString(),
|
|
124
130
|
'updated_at': value['updatedAt'].toISOString(),
|
|
125
131
|
'tags': value['tags'] == null ? undefined : (value['tags'].map(TagResponse_1.TagResponseToJSON)),
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { PipelineState } from './PipelineState';
|
|
13
|
+
import type { XlsxCellAnchorOutputOrDocxParagraphAnchorOutput } from './XlsxCellAnchorOutputOrDocxParagraphAnchorOutput';
|
|
13
14
|
import type { InformationStatistics } from './InformationStatistics';
|
|
14
15
|
/**
|
|
15
16
|
* Schema for document_version.system_metadata JSONB field.
|
|
@@ -102,6 +103,12 @@ export interface DocumentVersionMetadata {
|
|
|
102
103
|
xlsxKpiCatalog?: Array<{
|
|
103
104
|
[key: string]: any;
|
|
104
105
|
}> | null;
|
|
106
|
+
/**
|
|
107
|
+
* 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.
|
|
108
|
+
* @type {Array<XlsxCellAnchorOutputOrDocxParagraphAnchorOutput>}
|
|
109
|
+
* @memberof DocumentVersionMetadata
|
|
110
|
+
*/
|
|
111
|
+
citationAnchors?: Array<XlsxCellAnchorOutputOrDocxParagraphAnchorOutput> | null;
|
|
105
112
|
/**
|
|
106
113
|
* Aggregate statistics for the document version (tokens, chunk counts, depth)
|
|
107
114
|
* @type {InformationStatistics}
|
|
@@ -20,6 +20,7 @@ exports.DocumentVersionMetadataFromJSONTyped = DocumentVersionMetadataFromJSONTy
|
|
|
20
20
|
exports.DocumentVersionMetadataToJSON = DocumentVersionMetadataToJSON;
|
|
21
21
|
exports.DocumentVersionMetadataToJSONTyped = DocumentVersionMetadataToJSONTyped;
|
|
22
22
|
const PipelineState_1 = require("./PipelineState");
|
|
23
|
+
const XlsxCellAnchorOutputOrDocxParagraphAnchorOutput_1 = require("./XlsxCellAnchorOutputOrDocxParagraphAnchorOutput");
|
|
23
24
|
const InformationStatistics_1 = require("./InformationStatistics");
|
|
24
25
|
exports.DocumentVersionMetadataPropertyValidationAttributesMap = {};
|
|
25
26
|
/**
|
|
@@ -48,6 +49,7 @@ function DocumentVersionMetadataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
48
49
|
'xlsxParseResultS3': json['xlsx_parse_result_s3'] == null ? undefined : json['xlsx_parse_result_s3'],
|
|
49
50
|
'xlsxNamedRanges': json['xlsx_named_ranges'] == null ? undefined : json['xlsx_named_ranges'],
|
|
50
51
|
'xlsxKpiCatalog': json['xlsx_kpi_catalog'] == null ? undefined : json['xlsx_kpi_catalog'],
|
|
52
|
+
'citationAnchors': json['citation_anchors'] == null ? undefined : (json['citation_anchors'].map(XlsxCellAnchorOutputOrDocxParagraphAnchorOutput_1.XlsxCellAnchorOutputOrDocxParagraphAnchorOutputFromJSON)),
|
|
51
53
|
'informationStatistics': json['information_statistics'] == null ? undefined : (0, InformationStatistics_1.InformationStatisticsFromJSON)(json['information_statistics']),
|
|
52
54
|
'quotaCharged': json['quota_charged'] == null ? undefined : json['quota_charged'],
|
|
53
55
|
'quotaPageCount': json['quota_page_count'] == null ? undefined : json['quota_page_count'],
|
|
@@ -75,6 +77,7 @@ function DocumentVersionMetadataToJSONTyped(value, ignoreDiscriminator = false)
|
|
|
75
77
|
'xlsx_parse_result_s3': value['xlsxParseResultS3'],
|
|
76
78
|
'xlsx_named_ranges': value['xlsxNamedRanges'],
|
|
77
79
|
'xlsx_kpi_catalog': value['xlsxKpiCatalog'],
|
|
80
|
+
'citation_anchors': value['citationAnchors'] == null ? undefined : (value['citationAnchors'].map(XlsxCellAnchorOutputOrDocxParagraphAnchorOutput_1.XlsxCellAnchorOutputOrDocxParagraphAnchorOutputToJSON)),
|
|
78
81
|
'information_statistics': (0, InformationStatistics_1.InformationStatisticsToJSON)(value['informationStatistics']),
|
|
79
82
|
'quota_charged': value['quotaCharged'],
|
|
80
83
|
'quota_page_count': value['quotaPageCount'],
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { PipelineState } from './PipelineState';
|
|
13
|
+
import type { XlsxCellAnchorInputOrDocxParagraphAnchorInput } from './XlsxCellAnchorInputOrDocxParagraphAnchorInput';
|
|
13
14
|
import type { InformationStatistics } from './InformationStatistics';
|
|
14
15
|
/**
|
|
15
16
|
* Partial update schema for document version metadata.
|
|
@@ -114,6 +115,12 @@ export interface DocumentVersionMetadataUpdate {
|
|
|
114
115
|
xlsxKpiCatalog?: Array<{
|
|
115
116
|
[key: string]: any;
|
|
116
117
|
}> | null;
|
|
118
|
+
/**
|
|
119
|
+
*
|
|
120
|
+
* @type {Array<XlsxCellAnchorInputOrDocxParagraphAnchorInput>}
|
|
121
|
+
* @memberof DocumentVersionMetadataUpdate
|
|
122
|
+
*/
|
|
123
|
+
citationAnchors?: Array<XlsxCellAnchorInputOrDocxParagraphAnchorInput> | null;
|
|
117
124
|
/**
|
|
118
125
|
*
|
|
119
126
|
* @type {InformationStatistics}
|
|
@@ -20,6 +20,7 @@ exports.DocumentVersionMetadataUpdateFromJSONTyped = DocumentVersionMetadataUpda
|
|
|
20
20
|
exports.DocumentVersionMetadataUpdateToJSON = DocumentVersionMetadataUpdateToJSON;
|
|
21
21
|
exports.DocumentVersionMetadataUpdateToJSONTyped = DocumentVersionMetadataUpdateToJSONTyped;
|
|
22
22
|
const PipelineState_1 = require("./PipelineState");
|
|
23
|
+
const XlsxCellAnchorInputOrDocxParagraphAnchorInput_1 = require("./XlsxCellAnchorInputOrDocxParagraphAnchorInput");
|
|
23
24
|
const InformationStatistics_1 = require("./InformationStatistics");
|
|
24
25
|
exports.DocumentVersionMetadataUpdatePropertyValidationAttributesMap = {};
|
|
25
26
|
/**
|
|
@@ -51,6 +52,7 @@ function DocumentVersionMetadataUpdateFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
51
52
|
'xlsxParseResultS3': json['xlsx_parse_result_s3'] == null ? undefined : json['xlsx_parse_result_s3'],
|
|
52
53
|
'xlsxNamedRanges': json['xlsx_named_ranges'] == null ? undefined : json['xlsx_named_ranges'],
|
|
53
54
|
'xlsxKpiCatalog': json['xlsx_kpi_catalog'] == null ? undefined : json['xlsx_kpi_catalog'],
|
|
55
|
+
'citationAnchors': json['citation_anchors'] == null ? undefined : (json['citation_anchors'].map(XlsxCellAnchorInputOrDocxParagraphAnchorInput_1.XlsxCellAnchorInputOrDocxParagraphAnchorInputFromJSON)),
|
|
54
56
|
'informationStatistics': json['information_statistics'] == null ? undefined : (0, InformationStatistics_1.InformationStatisticsFromJSON)(json['information_statistics']),
|
|
55
57
|
'quotaCharged': json['quota_charged'] == null ? undefined : json['quota_charged'],
|
|
56
58
|
'quotaPageCount': json['quota_page_count'] == null ? undefined : json['quota_page_count'],
|
|
@@ -81,6 +83,7 @@ function DocumentVersionMetadataUpdateToJSONTyped(value, ignoreDiscriminator = f
|
|
|
81
83
|
'xlsx_parse_result_s3': value['xlsxParseResultS3'],
|
|
82
84
|
'xlsx_named_ranges': value['xlsxNamedRanges'],
|
|
83
85
|
'xlsx_kpi_catalog': value['xlsxKpiCatalog'],
|
|
86
|
+
'citation_anchors': value['citationAnchors'] == null ? undefined : (value['citationAnchors'].map(XlsxCellAnchorInputOrDocxParagraphAnchorInput_1.XlsxCellAnchorInputOrDocxParagraphAnchorInputToJSON)),
|
|
84
87
|
'information_statistics': (0, InformationStatistics_1.InformationStatisticsToJSON)(value['informationStatistics']),
|
|
85
88
|
'quota_charged': value['quotaCharged'],
|
|
86
89
|
'quota_page_count': value['quotaPageCount'],
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { UserInfo } from './UserInfo';
|
|
12
13
|
import type { DocumentVersionMetadata } from './DocumentVersionMetadata';
|
|
13
14
|
/**
|
|
14
15
|
* DocumentVersion response model.
|
|
@@ -68,11 +69,11 @@ export interface DocumentVersionResponse {
|
|
|
68
69
|
*/
|
|
69
70
|
tenantId: string;
|
|
70
71
|
/**
|
|
71
|
-
*
|
|
72
|
-
* @type {
|
|
72
|
+
*
|
|
73
|
+
* @type {UserInfo}
|
|
73
74
|
* @memberof DocumentVersionResponse
|
|
74
75
|
*/
|
|
75
|
-
|
|
76
|
+
uploader: UserInfo;
|
|
76
77
|
/**
|
|
77
78
|
* Creation timestamp
|
|
78
79
|
* @type {Date}
|
|
@@ -19,6 +19,7 @@ exports.DocumentVersionResponseFromJSON = DocumentVersionResponseFromJSON;
|
|
|
19
19
|
exports.DocumentVersionResponseFromJSONTyped = DocumentVersionResponseFromJSONTyped;
|
|
20
20
|
exports.DocumentVersionResponseToJSON = DocumentVersionResponseToJSON;
|
|
21
21
|
exports.DocumentVersionResponseToJSONTyped = DocumentVersionResponseToJSONTyped;
|
|
22
|
+
const UserInfo_1 = require("./UserInfo");
|
|
22
23
|
const DocumentVersionMetadata_1 = require("./DocumentVersionMetadata");
|
|
23
24
|
exports.DocumentVersionResponsePropertyValidationAttributesMap = {};
|
|
24
25
|
/**
|
|
@@ -41,7 +42,7 @@ function instanceOfDocumentVersionResponse(value) {
|
|
|
41
42
|
return false;
|
|
42
43
|
if (!('tenantId' in value) || value['tenantId'] === undefined)
|
|
43
44
|
return false;
|
|
44
|
-
if (!('
|
|
45
|
+
if (!('uploader' in value) || value['uploader'] === undefined)
|
|
45
46
|
return false;
|
|
46
47
|
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
47
48
|
return false;
|
|
@@ -65,7 +66,7 @@ function DocumentVersionResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
65
66
|
'materializedPath': json['materialized_path'],
|
|
66
67
|
'systemManaged': json['system_managed'],
|
|
67
68
|
'tenantId': json['tenant_id'],
|
|
68
|
-
'
|
|
69
|
+
'uploader': (0, UserInfo_1.UserInfoFromJSON)(json['uploader']),
|
|
69
70
|
'createdAt': (new Date(json['created_at'])),
|
|
70
71
|
'updatedAt': (new Date(json['updated_at'])),
|
|
71
72
|
'assetS3Url': json['asset_s3_url'] == null ? undefined : json['asset_s3_url'],
|
|
@@ -90,7 +91,7 @@ function DocumentVersionResponseToJSONTyped(value, ignoreDiscriminator = false)
|
|
|
90
91
|
'materialized_path': value['materializedPath'],
|
|
91
92
|
'system_managed': value['systemManaged'],
|
|
92
93
|
'tenant_id': value['tenantId'],
|
|
93
|
-
'
|
|
94
|
+
'uploader': (0, UserInfo_1.UserInfoToJSON)(value['uploader']),
|
|
94
95
|
'created_at': value['createdAt'].toISOString(),
|
|
95
96
|
'updated_at': value['updatedAt'].toISOString(),
|
|
96
97
|
'asset_s3_url': value['assetS3Url'],
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Knowledge Stack API
|
|
3
|
+
* Knowledge Stack backend API for authentication and knowledge management
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { CitedChunk } from './CitedChunk';
|
|
13
|
+
/**
|
|
14
|
+
* One citation anchored to a paragraph in a .docx deliverable.
|
|
15
|
+
* @export
|
|
16
|
+
* @interface DocxParagraphAnchorInput
|
|
17
|
+
*/
|
|
18
|
+
export interface DocxParagraphAnchorInput {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {DocxParagraphAnchorInputTypeEnum}
|
|
22
|
+
* @memberof DocxParagraphAnchorInput
|
|
23
|
+
*/
|
|
24
|
+
type?: DocxParagraphAnchorInputTypeEnum;
|
|
25
|
+
/**
|
|
26
|
+
* 0-based position of the <w:p> in word/document.xml body.
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof DocxParagraphAnchorInput
|
|
29
|
+
*/
|
|
30
|
+
paragraphIndex: number;
|
|
31
|
+
/**
|
|
32
|
+
* w:id of the comment in word/comments.xml.
|
|
33
|
+
* @type {number}
|
|
34
|
+
* @memberof DocxParagraphAnchorInput
|
|
35
|
+
*/
|
|
36
|
+
commentId: number;
|
|
37
|
+
/**
|
|
38
|
+
* Cited chunks in the order they appeared in the comment body, each with the source-document snapshot resolved at save time.
|
|
39
|
+
* @type {Array<CitedChunk>}
|
|
40
|
+
* @memberof DocxParagraphAnchorInput
|
|
41
|
+
*/
|
|
42
|
+
citations: Array<CitedChunk>;
|
|
43
|
+
/**
|
|
44
|
+
* Paragraph text at this anchor (first 160 chars), for FE display. NOT the cited quote.
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof DocxParagraphAnchorInput
|
|
47
|
+
*/
|
|
48
|
+
anchorText?: string;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* @export
|
|
52
|
+
*/
|
|
53
|
+
export declare const DocxParagraphAnchorInputTypeEnum: {
|
|
54
|
+
readonly DocxParagraph: "docx_paragraph";
|
|
55
|
+
};
|
|
56
|
+
export type DocxParagraphAnchorInputTypeEnum = typeof DocxParagraphAnchorInputTypeEnum[keyof typeof DocxParagraphAnchorInputTypeEnum];
|
|
57
|
+
export declare const DocxParagraphAnchorInputPropertyValidationAttributesMap: {
|
|
58
|
+
[property: string]: {
|
|
59
|
+
maxLength?: number;
|
|
60
|
+
minLength?: number;
|
|
61
|
+
pattern?: string;
|
|
62
|
+
maximum?: number;
|
|
63
|
+
exclusiveMaximum?: boolean;
|
|
64
|
+
minimum?: number;
|
|
65
|
+
exclusiveMinimum?: boolean;
|
|
66
|
+
multipleOf?: number;
|
|
67
|
+
maxItems?: number;
|
|
68
|
+
minItems?: number;
|
|
69
|
+
uniqueItems?: boolean;
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
/**
|
|
73
|
+
* Check if a given object implements the DocxParagraphAnchorInput interface.
|
|
74
|
+
*/
|
|
75
|
+
export declare function instanceOfDocxParagraphAnchorInput(value: object): value is DocxParagraphAnchorInput;
|
|
76
|
+
export declare function DocxParagraphAnchorInputFromJSON(json: any): DocxParagraphAnchorInput;
|
|
77
|
+
export declare function DocxParagraphAnchorInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): DocxParagraphAnchorInput;
|
|
78
|
+
export declare function DocxParagraphAnchorInputToJSON(json: any): DocxParagraphAnchorInput;
|
|
79
|
+
export declare function DocxParagraphAnchorInputToJSONTyped(value?: DocxParagraphAnchorInput | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Knowledge Stack API
|
|
6
|
+
* Knowledge Stack backend API for authentication and knowledge management
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.DocxParagraphAnchorInputPropertyValidationAttributesMap = exports.DocxParagraphAnchorInputTypeEnum = void 0;
|
|
17
|
+
exports.instanceOfDocxParagraphAnchorInput = instanceOfDocxParagraphAnchorInput;
|
|
18
|
+
exports.DocxParagraphAnchorInputFromJSON = DocxParagraphAnchorInputFromJSON;
|
|
19
|
+
exports.DocxParagraphAnchorInputFromJSONTyped = DocxParagraphAnchorInputFromJSONTyped;
|
|
20
|
+
exports.DocxParagraphAnchorInputToJSON = DocxParagraphAnchorInputToJSON;
|
|
21
|
+
exports.DocxParagraphAnchorInputToJSONTyped = DocxParagraphAnchorInputToJSONTyped;
|
|
22
|
+
const CitedChunk_1 = require("./CitedChunk");
|
|
23
|
+
/**
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.DocxParagraphAnchorInputTypeEnum = {
|
|
27
|
+
DocxParagraph: 'docx_paragraph'
|
|
28
|
+
};
|
|
29
|
+
exports.DocxParagraphAnchorInputPropertyValidationAttributesMap = {
|
|
30
|
+
paragraphIndex: {
|
|
31
|
+
minimum: 0,
|
|
32
|
+
exclusiveMinimum: false,
|
|
33
|
+
},
|
|
34
|
+
anchorText: {
|
|
35
|
+
maxLength: 160,
|
|
36
|
+
},
|
|
37
|
+
};
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the DocxParagraphAnchorInput interface.
|
|
40
|
+
*/
|
|
41
|
+
function instanceOfDocxParagraphAnchorInput(value) {
|
|
42
|
+
if (!('paragraphIndex' in value) || value['paragraphIndex'] === undefined)
|
|
43
|
+
return false;
|
|
44
|
+
if (!('commentId' in value) || value['commentId'] === undefined)
|
|
45
|
+
return false;
|
|
46
|
+
if (!('citations' in value) || value['citations'] === undefined)
|
|
47
|
+
return false;
|
|
48
|
+
return true;
|
|
49
|
+
}
|
|
50
|
+
function DocxParagraphAnchorInputFromJSON(json) {
|
|
51
|
+
return DocxParagraphAnchorInputFromJSONTyped(json, false);
|
|
52
|
+
}
|
|
53
|
+
function DocxParagraphAnchorInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
54
|
+
if (json == null) {
|
|
55
|
+
return json;
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
'type': json['type'] == null ? undefined : json['type'],
|
|
59
|
+
'paragraphIndex': json['paragraph_index'],
|
|
60
|
+
'commentId': json['comment_id'],
|
|
61
|
+
'citations': (json['citations'].map(CitedChunk_1.CitedChunkFromJSON)),
|
|
62
|
+
'anchorText': json['anchor_text'] == null ? undefined : json['anchor_text'],
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
function DocxParagraphAnchorInputToJSON(json) {
|
|
66
|
+
return DocxParagraphAnchorInputToJSONTyped(json, false);
|
|
67
|
+
}
|
|
68
|
+
function DocxParagraphAnchorInputToJSONTyped(value, ignoreDiscriminator = false) {
|
|
69
|
+
if (value == null) {
|
|
70
|
+
return value;
|
|
71
|
+
}
|
|
72
|
+
return {
|
|
73
|
+
'type': value['type'],
|
|
74
|
+
'paragraph_index': value['paragraphIndex'],
|
|
75
|
+
'comment_id': value['commentId'],
|
|
76
|
+
'citations': (value['citations'].map(CitedChunk_1.CitedChunkToJSON)),
|
|
77
|
+
'anchor_text': value['anchorText'],
|
|
78
|
+
};
|
|
79
|
+
}
|