@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
|
@@ -13,15 +13,22 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.WorkflowRunResponsePropertyValidationAttributesMap = void 0;
|
|
16
|
+
exports.WorkflowRunResponsePropertyValidationAttributesMap = exports.WorkflowRunResponsePartTypeEnum = void 0;
|
|
17
17
|
exports.instanceOfWorkflowRunResponse = instanceOfWorkflowRunResponse;
|
|
18
18
|
exports.WorkflowRunResponseFromJSON = WorkflowRunResponseFromJSON;
|
|
19
19
|
exports.WorkflowRunResponseFromJSONTyped = WorkflowRunResponseFromJSONTyped;
|
|
20
20
|
exports.WorkflowRunResponseToJSON = WorkflowRunResponseToJSON;
|
|
21
21
|
exports.WorkflowRunResponseToJSONTyped = WorkflowRunResponseToJSONTyped;
|
|
22
22
|
const WorkflowRunSnapshot_1 = require("./WorkflowRunSnapshot");
|
|
23
|
-
const
|
|
24
|
-
const
|
|
23
|
+
const WorkflowExecutionState_1 = require("./WorkflowExecutionState");
|
|
24
|
+
const PathPartApprovalState_1 = require("./PathPartApprovalState");
|
|
25
|
+
const UserInfo_1 = require("./UserInfo");
|
|
26
|
+
/**
|
|
27
|
+
* @export
|
|
28
|
+
*/
|
|
29
|
+
exports.WorkflowRunResponsePartTypeEnum = {
|
|
30
|
+
WorkflowRun: 'WORKFLOW_RUN'
|
|
31
|
+
};
|
|
25
32
|
exports.WorkflowRunResponsePropertyValidationAttributesMap = {};
|
|
26
33
|
/**
|
|
27
34
|
* Check if a given object implements the WorkflowRunResponse interface.
|
|
@@ -29,13 +36,23 @@ exports.WorkflowRunResponsePropertyValidationAttributesMap = {};
|
|
|
29
36
|
function instanceOfWorkflowRunResponse(value) {
|
|
30
37
|
if (!('id' in value) || value['id'] === undefined)
|
|
31
38
|
return false;
|
|
39
|
+
if (!('pathPartId' in value) || value['pathPartId'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
if (!('parentPathPartId' in value) || value['parentPathPartId'] === undefined)
|
|
42
|
+
return false;
|
|
43
|
+
if (!('materializedPath' in value) || value['materializedPath'] === undefined)
|
|
44
|
+
return false;
|
|
45
|
+
if (!('tenantId' in value) || value['tenantId'] === undefined)
|
|
46
|
+
return false;
|
|
47
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
48
|
+
return false;
|
|
32
49
|
if (!('workflowDefinitionId' in value) || value['workflowDefinitionId'] === undefined)
|
|
33
50
|
return false;
|
|
34
|
-
if (!('
|
|
51
|
+
if (!('triggeredBy' in value) || value['triggeredBy'] === undefined)
|
|
35
52
|
return false;
|
|
36
|
-
if (!('
|
|
53
|
+
if (!('executionState' in value) || value['executionState'] === undefined)
|
|
37
54
|
return false;
|
|
38
|
-
if (!('
|
|
55
|
+
if (!('approvalState' in value) || value['approvalState'] === undefined)
|
|
39
56
|
return false;
|
|
40
57
|
if (!('startedAt' in value) || value['startedAt'] === undefined)
|
|
41
58
|
return false;
|
|
@@ -45,9 +62,13 @@ function instanceOfWorkflowRunResponse(value) {
|
|
|
45
62
|
return false;
|
|
46
63
|
if (!('error' in value) || value['error'] === undefined)
|
|
47
64
|
return false;
|
|
48
|
-
if (!('
|
|
65
|
+
if (!('inputsPathPartId' in value) || value['inputsPathPartId'] === undefined)
|
|
66
|
+
return false;
|
|
67
|
+
if (!('outputsPathPartId' in value) || value['outputsPathPartId'] === undefined)
|
|
68
|
+
return false;
|
|
69
|
+
if (!('discussionsPathPartId' in value) || value['discussionsPathPartId'] === undefined)
|
|
49
70
|
return false;
|
|
50
|
-
if (!('
|
|
71
|
+
if (!('outputsPathPartIds' in value) || value['outputsPathPartIds'] === undefined)
|
|
51
72
|
return false;
|
|
52
73
|
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
53
74
|
return false;
|
|
@@ -63,17 +84,27 @@ function WorkflowRunResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
63
84
|
return json;
|
|
64
85
|
}
|
|
65
86
|
return {
|
|
87
|
+
'partType': json['part_type'] == null ? undefined : json['part_type'],
|
|
66
88
|
'id': json['id'],
|
|
89
|
+
'pathPartId': json['path_part_id'],
|
|
90
|
+
'parentPathPartId': json['parent_path_part_id'],
|
|
91
|
+
'materializedPath': json['materialized_path'],
|
|
92
|
+
'tenantId': json['tenant_id'],
|
|
93
|
+
'name': json['name'],
|
|
67
94
|
'workflowDefinitionId': json['workflow_definition_id'],
|
|
68
|
-
'
|
|
69
|
-
'
|
|
70
|
-
'
|
|
71
|
-
'startedAt': (new Date(json['started_at'])),
|
|
95
|
+
'triggeredBy': (0, UserInfo_1.UserInfoFromJSON)(json['triggered_by']),
|
|
96
|
+
'executionState': (0, WorkflowExecutionState_1.WorkflowExecutionStateFromJSON)(json['execution_state']),
|
|
97
|
+
'approvalState': (0, PathPartApprovalState_1.PathPartApprovalStateFromJSON)(json['approval_state']),
|
|
98
|
+
'startedAt': (json['started_at'] == null ? null : new Date(json['started_at'])),
|
|
72
99
|
'completedAt': (json['completed_at'] == null ? null : new Date(json['completed_at'])),
|
|
73
100
|
'runSnapshot': (0, WorkflowRunSnapshot_1.WorkflowRunSnapshotFromJSON)(json['run_snapshot']),
|
|
74
101
|
'error': json['error'],
|
|
75
|
-
'
|
|
76
|
-
'
|
|
102
|
+
'inputsPathPartId': json['inputs_path_part_id'],
|
|
103
|
+
'outputsPathPartId': json['outputs_path_part_id'],
|
|
104
|
+
'discussionsPathPartId': json['discussions_path_part_id'],
|
|
105
|
+
'inputPathPartIds': json['input_path_part_ids'] == null ? undefined : json['input_path_part_ids'],
|
|
106
|
+
'outputsPathPartIds': json['outputs_path_part_ids'],
|
|
107
|
+
'runThreadId': json['run_thread_id'] == null ? undefined : json['run_thread_id'],
|
|
77
108
|
'createdAt': (new Date(json['created_at'])),
|
|
78
109
|
'updatedAt': (new Date(json['updated_at'])),
|
|
79
110
|
};
|
|
@@ -86,17 +117,27 @@ function WorkflowRunResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
86
117
|
return value;
|
|
87
118
|
}
|
|
88
119
|
return {
|
|
120
|
+
'part_type': value['partType'],
|
|
89
121
|
'id': value['id'],
|
|
122
|
+
'path_part_id': value['pathPartId'],
|
|
123
|
+
'parent_path_part_id': value['parentPathPartId'],
|
|
124
|
+
'materialized_path': value['materializedPath'],
|
|
125
|
+
'tenant_id': value['tenantId'],
|
|
126
|
+
'name': value['name'],
|
|
90
127
|
'workflow_definition_id': value['workflowDefinitionId'],
|
|
91
|
-
'
|
|
92
|
-
'
|
|
93
|
-
'
|
|
94
|
-
'started_at': value['startedAt'].toISOString(),
|
|
128
|
+
'triggered_by': (0, UserInfo_1.UserInfoToJSON)(value['triggeredBy']),
|
|
129
|
+
'execution_state': (0, WorkflowExecutionState_1.WorkflowExecutionStateToJSON)(value['executionState']),
|
|
130
|
+
'approval_state': (0, PathPartApprovalState_1.PathPartApprovalStateToJSON)(value['approvalState']),
|
|
131
|
+
'started_at': value['startedAt'] == null ? value['startedAt'] : value['startedAt'].toISOString(),
|
|
95
132
|
'completed_at': value['completedAt'] == null ? value['completedAt'] : value['completedAt'].toISOString(),
|
|
96
133
|
'run_snapshot': (0, WorkflowRunSnapshot_1.WorkflowRunSnapshotToJSON)(value['runSnapshot']),
|
|
97
134
|
'error': value['error'],
|
|
135
|
+
'inputs_path_part_id': value['inputsPathPartId'],
|
|
136
|
+
'outputs_path_part_id': value['outputsPathPartId'],
|
|
137
|
+
'discussions_path_part_id': value['discussionsPathPartId'],
|
|
98
138
|
'input_path_part_ids': value['inputPathPartIds'],
|
|
99
|
-
'
|
|
139
|
+
'outputs_path_part_ids': value['outputsPathPartIds'],
|
|
140
|
+
'run_thread_id': value['runThreadId'],
|
|
100
141
|
'created_at': value['createdAt'].toISOString(),
|
|
101
142
|
'updated_at': value['updatedAt'].toISOString(),
|
|
102
143
|
};
|
|
@@ -9,39 +9,28 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type {
|
|
12
|
+
import type { InputSnapshot } from './InputSnapshot';
|
|
13
13
|
import type { InstructionSnapshot } from './InstructionSnapshot';
|
|
14
|
-
import type { WorkflowRunnerType } from './WorkflowRunnerType';
|
|
15
14
|
/**
|
|
16
|
-
* Frozen
|
|
15
|
+
* Frozen workflow configuration captured at trigger time.
|
|
16
|
+
*
|
|
17
|
+
* ``workflow_definition_id`` and ``user_id`` are NOT stored here — they
|
|
18
|
+
* live directly on the ``WorkflowRun`` row and are surfaced via
|
|
19
|
+
* ``WorkflowRunResponse`` top-level fields.
|
|
20
|
+
*
|
|
21
|
+
* Inputs are per-run; outputs land in the run's ``outputs/`` folder. The
|
|
22
|
+
* agent resolves the run's inputs/outputs/discussions folders by listing
|
|
23
|
+
* the run-folder children at activity startup.
|
|
17
24
|
* @export
|
|
18
25
|
* @interface WorkflowRunSnapshot
|
|
19
26
|
*/
|
|
20
27
|
export interface WorkflowRunSnapshot {
|
|
21
|
-
/**
|
|
22
|
-
*
|
|
23
|
-
* @type {string}
|
|
24
|
-
* @memberof WorkflowRunSnapshot
|
|
25
|
-
*/
|
|
26
|
-
workflowDefinitionId: string;
|
|
27
28
|
/**
|
|
28
29
|
*
|
|
29
30
|
* @type {string}
|
|
30
31
|
* @memberof WorkflowRunSnapshot
|
|
31
32
|
*/
|
|
32
33
|
workflowName: string;
|
|
33
|
-
/**
|
|
34
|
-
*
|
|
35
|
-
* @type {WorkflowRunnerType}
|
|
36
|
-
* @memberof WorkflowRunSnapshot
|
|
37
|
-
*/
|
|
38
|
-
runnerType: WorkflowRunnerType;
|
|
39
|
-
/**
|
|
40
|
-
*
|
|
41
|
-
* @type {string}
|
|
42
|
-
* @memberof WorkflowRunSnapshot
|
|
43
|
-
*/
|
|
44
|
-
userId: string;
|
|
45
34
|
/**
|
|
46
35
|
*
|
|
47
36
|
* @type {number}
|
|
@@ -50,28 +39,16 @@ export interface WorkflowRunSnapshot {
|
|
|
50
39
|
maxRunDurationSeconds: number;
|
|
51
40
|
/**
|
|
52
41
|
*
|
|
53
|
-
* @type {
|
|
54
|
-
* @memberof WorkflowRunSnapshot
|
|
55
|
-
*/
|
|
56
|
-
sources: Array<ABCDPathSnapshot>;
|
|
57
|
-
/**
|
|
58
|
-
*
|
|
59
|
-
* @type {Array<InstructionSnapshot>}
|
|
60
|
-
* @memberof WorkflowRunSnapshot
|
|
61
|
-
*/
|
|
62
|
-
instructions: Array<InstructionSnapshot>;
|
|
63
|
-
/**
|
|
64
|
-
*
|
|
65
|
-
* @type {Array<ABCDPathSnapshot>}
|
|
42
|
+
* @type {InstructionSnapshot}
|
|
66
43
|
* @memberof WorkflowRunSnapshot
|
|
67
44
|
*/
|
|
68
|
-
|
|
45
|
+
instruction: InstructionSnapshot;
|
|
69
46
|
/**
|
|
70
47
|
*
|
|
71
|
-
* @type {
|
|
48
|
+
* @type {Array<InputSnapshot>}
|
|
72
49
|
* @memberof WorkflowRunSnapshot
|
|
73
50
|
*/
|
|
74
|
-
|
|
51
|
+
inputs: Array<InputSnapshot>;
|
|
75
52
|
}
|
|
76
53
|
export declare const WorkflowRunSnapshotPropertyValidationAttributesMap: {
|
|
77
54
|
[property: string]: {
|
|
@@ -19,31 +19,20 @@ exports.WorkflowRunSnapshotFromJSON = WorkflowRunSnapshotFromJSON;
|
|
|
19
19
|
exports.WorkflowRunSnapshotFromJSONTyped = WorkflowRunSnapshotFromJSONTyped;
|
|
20
20
|
exports.WorkflowRunSnapshotToJSON = WorkflowRunSnapshotToJSON;
|
|
21
21
|
exports.WorkflowRunSnapshotToJSONTyped = WorkflowRunSnapshotToJSONTyped;
|
|
22
|
-
const
|
|
22
|
+
const InputSnapshot_1 = require("./InputSnapshot");
|
|
23
23
|
const InstructionSnapshot_1 = require("./InstructionSnapshot");
|
|
24
|
-
const WorkflowRunnerType_1 = require("./WorkflowRunnerType");
|
|
25
24
|
exports.WorkflowRunSnapshotPropertyValidationAttributesMap = {};
|
|
26
25
|
/**
|
|
27
26
|
* Check if a given object implements the WorkflowRunSnapshot interface.
|
|
28
27
|
*/
|
|
29
28
|
function instanceOfWorkflowRunSnapshot(value) {
|
|
30
|
-
if (!('workflowDefinitionId' in value) || value['workflowDefinitionId'] === undefined)
|
|
31
|
-
return false;
|
|
32
29
|
if (!('workflowName' in value) || value['workflowName'] === undefined)
|
|
33
30
|
return false;
|
|
34
|
-
if (!('runnerType' in value) || value['runnerType'] === undefined)
|
|
35
|
-
return false;
|
|
36
|
-
if (!('userId' in value) || value['userId'] === undefined)
|
|
37
|
-
return false;
|
|
38
31
|
if (!('maxRunDurationSeconds' in value) || value['maxRunDurationSeconds'] === undefined)
|
|
39
32
|
return false;
|
|
40
|
-
if (!('
|
|
41
|
-
return false;
|
|
42
|
-
if (!('instructions' in value) || value['instructions'] === undefined)
|
|
43
|
-
return false;
|
|
44
|
-
if (!('outputs' in value) || value['outputs'] === undefined)
|
|
33
|
+
if (!('instruction' in value) || value['instruction'] === undefined)
|
|
45
34
|
return false;
|
|
46
|
-
if (!('
|
|
35
|
+
if (!('inputs' in value) || value['inputs'] === undefined)
|
|
47
36
|
return false;
|
|
48
37
|
return true;
|
|
49
38
|
}
|
|
@@ -55,15 +44,10 @@ function WorkflowRunSnapshotFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
55
44
|
return json;
|
|
56
45
|
}
|
|
57
46
|
return {
|
|
58
|
-
'workflowDefinitionId': json['workflow_definition_id'],
|
|
59
47
|
'workflowName': json['workflow_name'],
|
|
60
|
-
'runnerType': (0, WorkflowRunnerType_1.WorkflowRunnerTypeFromJSON)(json['runner_type']),
|
|
61
|
-
'userId': json['user_id'],
|
|
62
48
|
'maxRunDurationSeconds': json['max_run_duration_seconds'],
|
|
63
|
-
'
|
|
64
|
-
'
|
|
65
|
-
'outputs': (json['outputs'].map(ABCDPathSnapshot_1.ABCDPathSnapshotFromJSON)),
|
|
66
|
-
'template': (0, ABCDPathSnapshot_1.ABCDPathSnapshotFromJSON)(json['template']),
|
|
49
|
+
'instruction': (0, InstructionSnapshot_1.InstructionSnapshotFromJSON)(json['instruction']),
|
|
50
|
+
'inputs': (json['inputs'].map(InputSnapshot_1.InputSnapshotFromJSON)),
|
|
67
51
|
};
|
|
68
52
|
}
|
|
69
53
|
function WorkflowRunSnapshotToJSON(json) {
|
|
@@ -74,14 +58,9 @@ function WorkflowRunSnapshotToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
74
58
|
return value;
|
|
75
59
|
}
|
|
76
60
|
return {
|
|
77
|
-
'workflow_definition_id': value['workflowDefinitionId'],
|
|
78
61
|
'workflow_name': value['workflowName'],
|
|
79
|
-
'runner_type': (0, WorkflowRunnerType_1.WorkflowRunnerTypeToJSON)(value['runnerType']),
|
|
80
|
-
'user_id': value['userId'],
|
|
81
62
|
'max_run_duration_seconds': value['maxRunDurationSeconds'],
|
|
82
|
-
'
|
|
83
|
-
'
|
|
84
|
-
'outputs': (value['outputs'].map(ABCDPathSnapshot_1.ABCDPathSnapshotToJSON)),
|
|
85
|
-
'template': (0, ABCDPathSnapshot_1.ABCDPathSnapshotToJSON)(value['template']),
|
|
63
|
+
'instruction': (0, InstructionSnapshot_1.InstructionSnapshotToJSON)(value['instruction']),
|
|
64
|
+
'inputs': (value['inputs'].map(InputSnapshot_1.InputSnapshotToJSON)),
|
|
86
65
|
};
|
|
87
66
|
}
|
|
@@ -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 cell in an .xlsx deliverable.
|
|
15
|
+
* @export
|
|
16
|
+
* @interface XlsxCellAnchorInput
|
|
17
|
+
*/
|
|
18
|
+
export interface XlsxCellAnchorInput {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {XlsxCellAnchorInputTypeEnum}
|
|
22
|
+
* @memberof XlsxCellAnchorInput
|
|
23
|
+
*/
|
|
24
|
+
type?: XlsxCellAnchorInputTypeEnum;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof XlsxCellAnchorInput
|
|
29
|
+
*/
|
|
30
|
+
sheetName: string;
|
|
31
|
+
/**
|
|
32
|
+
* Coordinate like 'B23'.
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof XlsxCellAnchorInput
|
|
35
|
+
*/
|
|
36
|
+
cellAddress: string;
|
|
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 XlsxCellAnchorInput
|
|
41
|
+
*/
|
|
42
|
+
citations: Array<CitedChunk>;
|
|
43
|
+
/**
|
|
44
|
+
* Cached cell value at this anchor, for FE display. NOT the cited quote. Empty when the cell holds a formula whose cache has not been refreshed.
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof XlsxCellAnchorInput
|
|
47
|
+
*/
|
|
48
|
+
anchorText?: string;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* @export
|
|
52
|
+
*/
|
|
53
|
+
export declare const XlsxCellAnchorInputTypeEnum: {
|
|
54
|
+
readonly XlsxCell: "xlsx_cell";
|
|
55
|
+
};
|
|
56
|
+
export type XlsxCellAnchorInputTypeEnum = typeof XlsxCellAnchorInputTypeEnum[keyof typeof XlsxCellAnchorInputTypeEnum];
|
|
57
|
+
export declare const XlsxCellAnchorInputPropertyValidationAttributesMap: {
|
|
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 XlsxCellAnchorInput interface.
|
|
74
|
+
*/
|
|
75
|
+
export declare function instanceOfXlsxCellAnchorInput(value: object): value is XlsxCellAnchorInput;
|
|
76
|
+
export declare function XlsxCellAnchorInputFromJSON(json: any): XlsxCellAnchorInput;
|
|
77
|
+
export declare function XlsxCellAnchorInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): XlsxCellAnchorInput;
|
|
78
|
+
export declare function XlsxCellAnchorInputToJSON(json: any): XlsxCellAnchorInput;
|
|
79
|
+
export declare function XlsxCellAnchorInputToJSONTyped(value?: XlsxCellAnchorInput | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,75 @@
|
|
|
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.XlsxCellAnchorInputPropertyValidationAttributesMap = exports.XlsxCellAnchorInputTypeEnum = void 0;
|
|
17
|
+
exports.instanceOfXlsxCellAnchorInput = instanceOfXlsxCellAnchorInput;
|
|
18
|
+
exports.XlsxCellAnchorInputFromJSON = XlsxCellAnchorInputFromJSON;
|
|
19
|
+
exports.XlsxCellAnchorInputFromJSONTyped = XlsxCellAnchorInputFromJSONTyped;
|
|
20
|
+
exports.XlsxCellAnchorInputToJSON = XlsxCellAnchorInputToJSON;
|
|
21
|
+
exports.XlsxCellAnchorInputToJSONTyped = XlsxCellAnchorInputToJSONTyped;
|
|
22
|
+
const CitedChunk_1 = require("./CitedChunk");
|
|
23
|
+
/**
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.XlsxCellAnchorInputTypeEnum = {
|
|
27
|
+
XlsxCell: 'xlsx_cell'
|
|
28
|
+
};
|
|
29
|
+
exports.XlsxCellAnchorInputPropertyValidationAttributesMap = {
|
|
30
|
+
anchorText: {
|
|
31
|
+
maxLength: 160,
|
|
32
|
+
},
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
* Check if a given object implements the XlsxCellAnchorInput interface.
|
|
36
|
+
*/
|
|
37
|
+
function instanceOfXlsxCellAnchorInput(value) {
|
|
38
|
+
if (!('sheetName' in value) || value['sheetName'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
if (!('cellAddress' in value) || value['cellAddress'] === undefined)
|
|
41
|
+
return false;
|
|
42
|
+
if (!('citations' in value) || value['citations'] === undefined)
|
|
43
|
+
return false;
|
|
44
|
+
return true;
|
|
45
|
+
}
|
|
46
|
+
function XlsxCellAnchorInputFromJSON(json) {
|
|
47
|
+
return XlsxCellAnchorInputFromJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
function XlsxCellAnchorInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'type': json['type'] == null ? undefined : json['type'],
|
|
55
|
+
'sheetName': json['sheet_name'],
|
|
56
|
+
'cellAddress': json['cell_address'],
|
|
57
|
+
'citations': (json['citations'].map(CitedChunk_1.CitedChunkFromJSON)),
|
|
58
|
+
'anchorText': json['anchor_text'] == null ? undefined : json['anchor_text'],
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
function XlsxCellAnchorInputToJSON(json) {
|
|
62
|
+
return XlsxCellAnchorInputToJSONTyped(json, false);
|
|
63
|
+
}
|
|
64
|
+
function XlsxCellAnchorInputToJSONTyped(value, ignoreDiscriminator = false) {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
'type': value['type'],
|
|
70
|
+
'sheet_name': value['sheetName'],
|
|
71
|
+
'cell_address': value['cellAddress'],
|
|
72
|
+
'citations': (value['citations'].map(CitedChunk_1.CitedChunkToJSON)),
|
|
73
|
+
'anchor_text': value['anchorText'],
|
|
74
|
+
};
|
|
75
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
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 { DocxParagraphAnchorInput } from './DocxParagraphAnchorInput';
|
|
13
|
+
import type { XlsxCellAnchorInput } from './XlsxCellAnchorInput';
|
|
14
|
+
/**
|
|
15
|
+
* @type XlsxCellAnchorInputOrDocxParagraphAnchorInput
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
*/
|
|
19
|
+
export type XlsxCellAnchorInputOrDocxParagraphAnchorInput = {
|
|
20
|
+
type: 'docx_paragraph';
|
|
21
|
+
} & DocxParagraphAnchorInput | {
|
|
22
|
+
type: 'xlsx_cell';
|
|
23
|
+
} & XlsxCellAnchorInput;
|
|
24
|
+
export declare function XlsxCellAnchorInputOrDocxParagraphAnchorInputFromJSON(json: any): XlsxCellAnchorInputOrDocxParagraphAnchorInput;
|
|
25
|
+
export declare function XlsxCellAnchorInputOrDocxParagraphAnchorInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): XlsxCellAnchorInputOrDocxParagraphAnchorInput;
|
|
26
|
+
export declare function XlsxCellAnchorInputOrDocxParagraphAnchorInputToJSON(json: any): any;
|
|
27
|
+
export declare function XlsxCellAnchorInputOrDocxParagraphAnchorInputToJSONTyped(value?: XlsxCellAnchorInputOrDocxParagraphAnchorInput | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,53 @@
|
|
|
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.XlsxCellAnchorInputOrDocxParagraphAnchorInputFromJSON = XlsxCellAnchorInputOrDocxParagraphAnchorInputFromJSON;
|
|
17
|
+
exports.XlsxCellAnchorInputOrDocxParagraphAnchorInputFromJSONTyped = XlsxCellAnchorInputOrDocxParagraphAnchorInputFromJSONTyped;
|
|
18
|
+
exports.XlsxCellAnchorInputOrDocxParagraphAnchorInputToJSON = XlsxCellAnchorInputOrDocxParagraphAnchorInputToJSON;
|
|
19
|
+
exports.XlsxCellAnchorInputOrDocxParagraphAnchorInputToJSONTyped = XlsxCellAnchorInputOrDocxParagraphAnchorInputToJSONTyped;
|
|
20
|
+
const DocxParagraphAnchorInput_1 = require("./DocxParagraphAnchorInput");
|
|
21
|
+
const XlsxCellAnchorInput_1 = require("./XlsxCellAnchorInput");
|
|
22
|
+
function XlsxCellAnchorInputOrDocxParagraphAnchorInputFromJSON(json) {
|
|
23
|
+
return XlsxCellAnchorInputOrDocxParagraphAnchorInputFromJSONTyped(json, false);
|
|
24
|
+
}
|
|
25
|
+
function XlsxCellAnchorInputOrDocxParagraphAnchorInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
26
|
+
if (json == null) {
|
|
27
|
+
return json;
|
|
28
|
+
}
|
|
29
|
+
switch (json['type']) {
|
|
30
|
+
case 'docx_paragraph':
|
|
31
|
+
return Object.assign({}, (0, DocxParagraphAnchorInput_1.DocxParagraphAnchorInputFromJSONTyped)(json, true), { type: 'docx_paragraph' });
|
|
32
|
+
case 'xlsx_cell':
|
|
33
|
+
return Object.assign({}, (0, XlsxCellAnchorInput_1.XlsxCellAnchorInputFromJSONTyped)(json, true), { type: 'xlsx_cell' });
|
|
34
|
+
default:
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
function XlsxCellAnchorInputOrDocxParagraphAnchorInputToJSON(json) {
|
|
39
|
+
return XlsxCellAnchorInputOrDocxParagraphAnchorInputToJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
function XlsxCellAnchorInputOrDocxParagraphAnchorInputToJSONTyped(value, ignoreDiscriminator = false) {
|
|
42
|
+
if (value == null) {
|
|
43
|
+
return value;
|
|
44
|
+
}
|
|
45
|
+
switch (value['type']) {
|
|
46
|
+
case 'docx_paragraph':
|
|
47
|
+
return Object.assign({}, (0, DocxParagraphAnchorInput_1.DocxParagraphAnchorInputToJSON)(value), { type: 'docx_paragraph' });
|
|
48
|
+
case 'xlsx_cell':
|
|
49
|
+
return Object.assign({}, (0, XlsxCellAnchorInput_1.XlsxCellAnchorInputToJSON)(value), { type: 'xlsx_cell' });
|
|
50
|
+
default:
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
@@ -0,0 +1,90 @@
|
|
|
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 cell in an .xlsx deliverable.
|
|
15
|
+
* @export
|
|
16
|
+
* @interface XlsxCellAnchorOutput
|
|
17
|
+
*/
|
|
18
|
+
export interface XlsxCellAnchorOutput {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {XlsxCellAnchorOutputTypeEnum}
|
|
22
|
+
* @memberof XlsxCellAnchorOutput
|
|
23
|
+
*/
|
|
24
|
+
type?: XlsxCellAnchorOutputTypeEnum;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof XlsxCellAnchorOutput
|
|
29
|
+
*/
|
|
30
|
+
sheetName: string;
|
|
31
|
+
/**
|
|
32
|
+
* Coordinate like 'B23'.
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof XlsxCellAnchorOutput
|
|
35
|
+
*/
|
|
36
|
+
cellAddress: string;
|
|
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 XlsxCellAnchorOutput
|
|
41
|
+
*/
|
|
42
|
+
citations: Array<CitedChunk>;
|
|
43
|
+
/**
|
|
44
|
+
* Cached cell value at this anchor, for FE display. NOT the cited quote. Empty when the cell holds a formula whose cache has not been refreshed.
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof XlsxCellAnchorOutput
|
|
47
|
+
*/
|
|
48
|
+
anchorText?: string;
|
|
49
|
+
/**
|
|
50
|
+
* Flat projection of cited chunk_ids — kept for FE back-compat.
|
|
51
|
+
*
|
|
52
|
+
* Prefer ``citations`` for new code: each entry already carries the
|
|
53
|
+
* source-document context the Citations panel needs, no follow-up
|
|
54
|
+
* ``/v1/chunks/bulk`` call required. Derived-only — ``citations`` is
|
|
55
|
+
* the single source of truth.
|
|
56
|
+
* @type {Array<string>}
|
|
57
|
+
* @memberof XlsxCellAnchorOutput
|
|
58
|
+
*/
|
|
59
|
+
readonly chunkIds: Array<string>;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* @export
|
|
63
|
+
*/
|
|
64
|
+
export declare const XlsxCellAnchorOutputTypeEnum: {
|
|
65
|
+
readonly XlsxCell: "xlsx_cell";
|
|
66
|
+
};
|
|
67
|
+
export type XlsxCellAnchorOutputTypeEnum = typeof XlsxCellAnchorOutputTypeEnum[keyof typeof XlsxCellAnchorOutputTypeEnum];
|
|
68
|
+
export declare const XlsxCellAnchorOutputPropertyValidationAttributesMap: {
|
|
69
|
+
[property: string]: {
|
|
70
|
+
maxLength?: number;
|
|
71
|
+
minLength?: number;
|
|
72
|
+
pattern?: string;
|
|
73
|
+
maximum?: number;
|
|
74
|
+
exclusiveMaximum?: boolean;
|
|
75
|
+
minimum?: number;
|
|
76
|
+
exclusiveMinimum?: boolean;
|
|
77
|
+
multipleOf?: number;
|
|
78
|
+
maxItems?: number;
|
|
79
|
+
minItems?: number;
|
|
80
|
+
uniqueItems?: boolean;
|
|
81
|
+
};
|
|
82
|
+
};
|
|
83
|
+
/**
|
|
84
|
+
* Check if a given object implements the XlsxCellAnchorOutput interface.
|
|
85
|
+
*/
|
|
86
|
+
export declare function instanceOfXlsxCellAnchorOutput(value: object): value is XlsxCellAnchorOutput;
|
|
87
|
+
export declare function XlsxCellAnchorOutputFromJSON(json: any): XlsxCellAnchorOutput;
|
|
88
|
+
export declare function XlsxCellAnchorOutputFromJSONTyped(json: any, ignoreDiscriminator: boolean): XlsxCellAnchorOutput;
|
|
89
|
+
export declare function XlsxCellAnchorOutputToJSON(json: any): XlsxCellAnchorOutput;
|
|
90
|
+
export declare function XlsxCellAnchorOutputToJSONTyped(value?: Omit<XlsxCellAnchorOutput, 'chunk_ids'> | null, ignoreDiscriminator?: boolean): any;
|