@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,6 +13,14 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
+
import type { PathPartApprovalState } from './PathPartApprovalState';
|
|
17
|
+
import {
|
|
18
|
+
PathPartApprovalStateFromJSON,
|
|
19
|
+
PathPartApprovalStateFromJSONTyped,
|
|
20
|
+
PathPartApprovalStateToJSON,
|
|
21
|
+
PathPartApprovalStateToJSONTyped,
|
|
22
|
+
} from './PathPartApprovalState';
|
|
23
|
+
|
|
16
24
|
/**
|
|
17
25
|
* Response model for a section item in document version contents.
|
|
18
26
|
* @export
|
|
@@ -73,6 +81,12 @@ export interface SectionContentItem {
|
|
|
73
81
|
* @memberof SectionContentItem
|
|
74
82
|
*/
|
|
75
83
|
systemManaged: boolean;
|
|
84
|
+
/**
|
|
85
|
+
*
|
|
86
|
+
* @type {PathPartApprovalState}
|
|
87
|
+
* @memberof SectionContentItem
|
|
88
|
+
*/
|
|
89
|
+
approvalState: PathPartApprovalState;
|
|
76
90
|
/**
|
|
77
91
|
* Creation timestamp
|
|
78
92
|
* @type {Date}
|
|
@@ -126,6 +140,7 @@ export function instanceOfSectionContentItem(value: object): value is SectionCon
|
|
|
126
140
|
if (!('depth' in value) || value['depth'] === undefined) return false;
|
|
127
141
|
if (!('materializedPath' in value) || value['materializedPath'] === undefined) return false;
|
|
128
142
|
if (!('systemManaged' in value) || value['systemManaged'] === undefined) return false;
|
|
143
|
+
if (!('approvalState' in value) || value['approvalState'] === undefined) return false;
|
|
129
144
|
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
130
145
|
if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
|
|
131
146
|
return true;
|
|
@@ -150,6 +165,7 @@ export function SectionContentItemFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
150
165
|
'pageNumber': json['page_number'] == null ? undefined : json['page_number'],
|
|
151
166
|
'materializedPath': json['materialized_path'],
|
|
152
167
|
'systemManaged': json['system_managed'],
|
|
168
|
+
'approvalState': PathPartApprovalStateFromJSON(json['approval_state']),
|
|
153
169
|
'createdAt': (new Date(json['created_at'])),
|
|
154
170
|
'updatedAt': (new Date(json['updated_at'])),
|
|
155
171
|
};
|
|
@@ -175,6 +191,7 @@ export function SectionContentItemToJSONTyped(value?: SectionContentItem | null,
|
|
|
175
191
|
'page_number': value['pageNumber'],
|
|
176
192
|
'materialized_path': value['materializedPath'],
|
|
177
193
|
'system_managed': value['systemManaged'],
|
|
194
|
+
'approval_state': PathPartApprovalStateToJSON(value['approvalState']),
|
|
178
195
|
'created_at': value['createdAt'].toISOString(),
|
|
179
196
|
'updated_at': value['updatedAt'].toISOString(),
|
|
180
197
|
};
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Knowledge Stack API
|
|
5
|
+
* Knowledge Stack backend API for authentication and knowledge management
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
* Body for ``POST /v1/path-parts/{path_part_id}/approval``.
|
|
18
|
+
*
|
|
19
|
+
* Single endpoint covers every transition in the state machine:
|
|
20
|
+
*
|
|
21
|
+
* * ``{state: "pending"}`` — request approval (from ``not_required``) OR
|
|
22
|
+
* unapprove (from ``approved``). Server dispatches on current state.
|
|
23
|
+
* * ``{state: "approved", reason?}`` — approve. For folders, fails 409
|
|
24
|
+
* if any descendant is still ``pending``. ``reason`` is an optional
|
|
25
|
+
* reviewer note persisted on the audit row.
|
|
26
|
+
* @export
|
|
27
|
+
* @interface SetApprovalStateRequest
|
|
28
|
+
*/
|
|
29
|
+
export interface SetApprovalStateRequest {
|
|
30
|
+
/**
|
|
31
|
+
* Target approval state. ``pending`` means 'request approval' (from not_required) or 'unapprove' (from approved) — server dispatches on current state.
|
|
32
|
+
* @type {SetApprovalStateRequestStateEnum}
|
|
33
|
+
* @memberof SetApprovalStateRequest
|
|
34
|
+
*/
|
|
35
|
+
state: SetApprovalStateRequestStateEnum;
|
|
36
|
+
/**
|
|
37
|
+
* Optional reviewer note attached to the decision.
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof SetApprovalStateRequest
|
|
40
|
+
*/
|
|
41
|
+
reason?: string | null;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* @export
|
|
47
|
+
*/
|
|
48
|
+
export const SetApprovalStateRequestStateEnum = {
|
|
49
|
+
Pending: 'pending',
|
|
50
|
+
Approved: 'approved'
|
|
51
|
+
} as const;
|
|
52
|
+
export type SetApprovalStateRequestStateEnum = typeof SetApprovalStateRequestStateEnum[keyof typeof SetApprovalStateRequestStateEnum];
|
|
53
|
+
|
|
54
|
+
export const SetApprovalStateRequestPropertyValidationAttributesMap: {
|
|
55
|
+
[property: string]: {
|
|
56
|
+
maxLength?: number,
|
|
57
|
+
minLength?: number,
|
|
58
|
+
pattern?: string,
|
|
59
|
+
maximum?: number,
|
|
60
|
+
exclusiveMaximum?: boolean,
|
|
61
|
+
minimum?: number,
|
|
62
|
+
exclusiveMinimum?: boolean,
|
|
63
|
+
multipleOf?: number,
|
|
64
|
+
maxItems?: number,
|
|
65
|
+
minItems?: number,
|
|
66
|
+
uniqueItems?: boolean
|
|
67
|
+
}
|
|
68
|
+
} = {
|
|
69
|
+
reason: {
|
|
70
|
+
maxLength: 2048,
|
|
71
|
+
},
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* Check if a given object implements the SetApprovalStateRequest interface.
|
|
77
|
+
*/
|
|
78
|
+
export function instanceOfSetApprovalStateRequest(value: object): value is SetApprovalStateRequest {
|
|
79
|
+
if (!('state' in value) || value['state'] === undefined) return false;
|
|
80
|
+
return true;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export function SetApprovalStateRequestFromJSON(json: any): SetApprovalStateRequest {
|
|
84
|
+
return SetApprovalStateRequestFromJSONTyped(json, false);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export function SetApprovalStateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SetApprovalStateRequest {
|
|
88
|
+
if (json == null) {
|
|
89
|
+
return json;
|
|
90
|
+
}
|
|
91
|
+
return {
|
|
92
|
+
|
|
93
|
+
'state': json['state'],
|
|
94
|
+
'reason': json['reason'] == null ? undefined : json['reason'],
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
export function SetApprovalStateRequestToJSON(json: any): SetApprovalStateRequest {
|
|
99
|
+
return SetApprovalStateRequestToJSONTyped(json, false);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
export function SetApprovalStateRequestToJSONTyped(value?: SetApprovalStateRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
103
|
+
if (value == null) {
|
|
104
|
+
return value;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
return {
|
|
108
|
+
|
|
109
|
+
'state': value['state'],
|
|
110
|
+
'reason': value['reason'],
|
|
111
|
+
};
|
|
112
|
+
}
|
|
113
|
+
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Knowledge Stack API
|
|
5
|
+
* Knowledge Stack backend API for authentication and knowledge management
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
* Body for ``POST /v1/workflow-runs/{run_id}/approval``.
|
|
18
|
+
*
|
|
19
|
+
* Approves an entire completed run in one call — every output document
|
|
20
|
+
* under ``outputs/`` plus the run folder itself. ``reason`` is an
|
|
21
|
+
* optional reviewer note persisted on each approval audit row.
|
|
22
|
+
* @export
|
|
23
|
+
* @interface SetWorkflowRunApprovalRequest
|
|
24
|
+
*/
|
|
25
|
+
export interface SetWorkflowRunApprovalRequest {
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {SetWorkflowRunApprovalRequestStateEnum}
|
|
29
|
+
* @memberof SetWorkflowRunApprovalRequest
|
|
30
|
+
*/
|
|
31
|
+
state: SetWorkflowRunApprovalRequestStateEnum;
|
|
32
|
+
/**
|
|
33
|
+
* Optional reviewer note attached to the decision.
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof SetWorkflowRunApprovalRequest
|
|
36
|
+
*/
|
|
37
|
+
reason?: string | null;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* @export
|
|
43
|
+
*/
|
|
44
|
+
export const SetWorkflowRunApprovalRequestStateEnum = {
|
|
45
|
+
Approved: 'approved'
|
|
46
|
+
} as const;
|
|
47
|
+
export type SetWorkflowRunApprovalRequestStateEnum = typeof SetWorkflowRunApprovalRequestStateEnum[keyof typeof SetWorkflowRunApprovalRequestStateEnum];
|
|
48
|
+
|
|
49
|
+
export const SetWorkflowRunApprovalRequestPropertyValidationAttributesMap: {
|
|
50
|
+
[property: string]: {
|
|
51
|
+
maxLength?: number,
|
|
52
|
+
minLength?: number,
|
|
53
|
+
pattern?: string,
|
|
54
|
+
maximum?: number,
|
|
55
|
+
exclusiveMaximum?: boolean,
|
|
56
|
+
minimum?: number,
|
|
57
|
+
exclusiveMinimum?: boolean,
|
|
58
|
+
multipleOf?: number,
|
|
59
|
+
maxItems?: number,
|
|
60
|
+
minItems?: number,
|
|
61
|
+
uniqueItems?: boolean
|
|
62
|
+
}
|
|
63
|
+
} = {
|
|
64
|
+
reason: {
|
|
65
|
+
maxLength: 2048,
|
|
66
|
+
},
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* Check if a given object implements the SetWorkflowRunApprovalRequest interface.
|
|
72
|
+
*/
|
|
73
|
+
export function instanceOfSetWorkflowRunApprovalRequest(value: object): value is SetWorkflowRunApprovalRequest {
|
|
74
|
+
if (!('state' in value) || value['state'] === undefined) return false;
|
|
75
|
+
return true;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export function SetWorkflowRunApprovalRequestFromJSON(json: any): SetWorkflowRunApprovalRequest {
|
|
79
|
+
return SetWorkflowRunApprovalRequestFromJSONTyped(json, false);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export function SetWorkflowRunApprovalRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SetWorkflowRunApprovalRequest {
|
|
83
|
+
if (json == null) {
|
|
84
|
+
return json;
|
|
85
|
+
}
|
|
86
|
+
return {
|
|
87
|
+
|
|
88
|
+
'state': json['state'],
|
|
89
|
+
'reason': json['reason'] == null ? undefined : json['reason'],
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export function SetWorkflowRunApprovalRequestToJSON(json: any): SetWorkflowRunApprovalRequest {
|
|
94
|
+
return SetWorkflowRunApprovalRequestToJSONTyped(json, false);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
export function SetWorkflowRunApprovalRequestToJSONTyped(value?: SetWorkflowRunApprovalRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
98
|
+
if (value == null) {
|
|
99
|
+
return value;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
return {
|
|
103
|
+
|
|
104
|
+
'state': value['state'],
|
|
105
|
+
'reason': value['reason'],
|
|
106
|
+
};
|
|
107
|
+
}
|
|
108
|
+
|
|
@@ -36,7 +36,7 @@ import {
|
|
|
36
36
|
} from './ThreadMessageDetailsOutput';
|
|
37
37
|
|
|
38
38
|
/**
|
|
39
|
-
*
|
|
39
|
+
*
|
|
40
40
|
* @export
|
|
41
41
|
* @interface ThreadMessageResponse
|
|
42
42
|
*/
|
|
@@ -95,6 +95,12 @@ export interface ThreadMessageResponse {
|
|
|
95
95
|
* @memberof ThreadMessageResponse
|
|
96
96
|
*/
|
|
97
97
|
tenantId: string;
|
|
98
|
+
/**
|
|
99
|
+
* tenant_user.user_id of the sender for USER messages. NULL for ASSISTANT / SYSTEM rows and for legacy USER rows written before multi-user thread support landed.
|
|
100
|
+
* @type {string}
|
|
101
|
+
* @memberof ThreadMessageResponse
|
|
102
|
+
*/
|
|
103
|
+
authorTenantUserId?: string | null;
|
|
98
104
|
/**
|
|
99
105
|
* Creation timestamp
|
|
100
106
|
* @type {Date}
|
|
@@ -164,6 +170,7 @@ export function ThreadMessageResponseFromJSONTyped(json: any, ignoreDiscriminato
|
|
|
164
170
|
'parentPathId': json['parent_path_id'],
|
|
165
171
|
'materializedPath': json['materialized_path'],
|
|
166
172
|
'tenantId': json['tenant_id'],
|
|
173
|
+
'authorTenantUserId': json['author_tenant_user_id'] == null ? undefined : json['author_tenant_user_id'],
|
|
167
174
|
'createdAt': (new Date(json['created_at'])),
|
|
168
175
|
'updatedAt': (new Date(json['updated_at'])),
|
|
169
176
|
};
|
|
@@ -189,6 +196,7 @@ export function ThreadMessageResponseToJSONTyped(value?: ThreadMessageResponse |
|
|
|
189
196
|
'parent_path_id': value['parentPathId'],
|
|
190
197
|
'materialized_path': value['materializedPath'],
|
|
191
198
|
'tenant_id': value['tenantId'],
|
|
199
|
+
'author_tenant_user_id': value['authorTenantUserId'],
|
|
192
200
|
'created_at': value['createdAt'].toISOString(),
|
|
193
201
|
'updated_at': value['updatedAt'].toISOString(),
|
|
194
202
|
};
|
|
@@ -13,28 +13,8 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
-
import type { SelfHostedRunnerConfig } from './SelfHostedRunnerConfig';
|
|
17
|
-
import {
|
|
18
|
-
SelfHostedRunnerConfigFromJSON,
|
|
19
|
-
SelfHostedRunnerConfigFromJSONTyped,
|
|
20
|
-
SelfHostedRunnerConfigToJSON,
|
|
21
|
-
SelfHostedRunnerConfigToJSONTyped,
|
|
22
|
-
} from './SelfHostedRunnerConfig';
|
|
23
|
-
import type { WorkflowRunnerType } from './WorkflowRunnerType';
|
|
24
|
-
import {
|
|
25
|
-
WorkflowRunnerTypeFromJSON,
|
|
26
|
-
WorkflowRunnerTypeFromJSONTyped,
|
|
27
|
-
WorkflowRunnerTypeToJSON,
|
|
28
|
-
WorkflowRunnerTypeToJSONTyped,
|
|
29
|
-
} from './WorkflowRunnerType';
|
|
30
|
-
|
|
31
16
|
/**
|
|
32
17
|
* Full replacement (PUT semantics).
|
|
33
|
-
*
|
|
34
|
-
* ``instruction_path_part_ids``:
|
|
35
|
-
*
|
|
36
|
-
* - ``KS_INTERNAL``: must remain ``len == 1`` (the auto-provisioned doc).
|
|
37
|
-
* - ``SELF_HOSTED``: ``len ≥ 1``; callers may swap or add documents.
|
|
38
18
|
* @export
|
|
39
19
|
* @interface UpdateWorkflowDefinitionRequest
|
|
40
20
|
*/
|
|
@@ -51,18 +31,6 @@ export interface UpdateWorkflowDefinitionRequest {
|
|
|
51
31
|
* @memberof UpdateWorkflowDefinitionRequest
|
|
52
32
|
*/
|
|
53
33
|
description?: string | null;
|
|
54
|
-
/**
|
|
55
|
-
*
|
|
56
|
-
* @type {WorkflowRunnerType}
|
|
57
|
-
* @memberof UpdateWorkflowDefinitionRequest
|
|
58
|
-
*/
|
|
59
|
-
runnerType: WorkflowRunnerType;
|
|
60
|
-
/**
|
|
61
|
-
*
|
|
62
|
-
* @type {SelfHostedRunnerConfig}
|
|
63
|
-
* @memberof UpdateWorkflowDefinitionRequest
|
|
64
|
-
*/
|
|
65
|
-
runnerConfig?: SelfHostedRunnerConfig | null;
|
|
66
34
|
/**
|
|
67
35
|
*
|
|
68
36
|
* @type {number}
|
|
@@ -70,44 +38,24 @@ export interface UpdateWorkflowDefinitionRequest {
|
|
|
70
38
|
*/
|
|
71
39
|
maxRunDurationSeconds?: number;
|
|
72
40
|
/**
|
|
73
|
-
*
|
|
74
|
-
* @type {Array<string>}
|
|
75
|
-
* @memberof UpdateWorkflowDefinitionRequest
|
|
76
|
-
*/
|
|
77
|
-
sourcePathPartIds: Array<string>;
|
|
78
|
-
/**
|
|
79
|
-
*
|
|
80
|
-
* @type {Array<string>}
|
|
81
|
-
* @memberof UpdateWorkflowDefinitionRequest
|
|
82
|
-
*/
|
|
83
|
-
instructionPathPartIds: Array<string>;
|
|
84
|
-
/**
|
|
85
|
-
*
|
|
86
|
-
* @type {Array<string>}
|
|
87
|
-
* @memberof UpdateWorkflowDefinitionRequest
|
|
88
|
-
*/
|
|
89
|
-
outputPathPartIds: Array<string>;
|
|
90
|
-
/**
|
|
91
|
-
*
|
|
41
|
+
* DOCUMENT path_part of the instruction document. Pass null (or omit) to retain the existing pinned instruction; pass a UUID to replace it. Never nulled out — the column is NOT NULL.
|
|
92
42
|
* @type {string}
|
|
93
43
|
* @memberof UpdateWorkflowDefinitionRequest
|
|
94
44
|
*/
|
|
95
|
-
|
|
45
|
+
instructionPathPartId?: string | null;
|
|
96
46
|
/**
|
|
97
47
|
*
|
|
98
48
|
* @type {boolean}
|
|
99
49
|
* @memberof UpdateWorkflowDefinitionRequest
|
|
100
50
|
*/
|
|
101
|
-
isActive
|
|
51
|
+
isActive: boolean;
|
|
102
52
|
/**
|
|
103
53
|
*
|
|
104
54
|
* @type {boolean}
|
|
105
55
|
* @memberof UpdateWorkflowDefinitionRequest
|
|
106
56
|
*/
|
|
107
|
-
approvalRequired
|
|
57
|
+
approvalRequired: boolean;
|
|
108
58
|
}
|
|
109
|
-
|
|
110
|
-
|
|
111
59
|
export const UpdateWorkflowDefinitionRequestPropertyValidationAttributesMap: {
|
|
112
60
|
[property: string]: {
|
|
113
61
|
maxLength?: number,
|
|
@@ -127,26 +75,11 @@ export const UpdateWorkflowDefinitionRequestPropertyValidationAttributesMap: {
|
|
|
127
75
|
maxLength: 255,
|
|
128
76
|
},
|
|
129
77
|
maxRunDurationSeconds: {
|
|
130
|
-
maximum:
|
|
78
|
+
maximum: 7200,
|
|
131
79
|
exclusiveMaximum: false,
|
|
132
80
|
minimum: 60,
|
|
133
81
|
exclusiveMinimum: false,
|
|
134
82
|
},
|
|
135
|
-
sourcePathPartIds: {
|
|
136
|
-
maxItems: 20,
|
|
137
|
-
minItems: 1,
|
|
138
|
-
uniqueItems: false,
|
|
139
|
-
},
|
|
140
|
-
instructionPathPartIds: {
|
|
141
|
-
maxItems: 20,
|
|
142
|
-
minItems: 1,
|
|
143
|
-
uniqueItems: false,
|
|
144
|
-
},
|
|
145
|
-
outputPathPartIds: {
|
|
146
|
-
maxItems: 20,
|
|
147
|
-
minItems: 1,
|
|
148
|
-
uniqueItems: false,
|
|
149
|
-
},
|
|
150
83
|
}
|
|
151
84
|
|
|
152
85
|
|
|
@@ -155,10 +88,8 @@ export const UpdateWorkflowDefinitionRequestPropertyValidationAttributesMap: {
|
|
|
155
88
|
*/
|
|
156
89
|
export function instanceOfUpdateWorkflowDefinitionRequest(value: object): value is UpdateWorkflowDefinitionRequest {
|
|
157
90
|
if (!('name' in value) || value['name'] === undefined) return false;
|
|
158
|
-
if (!('
|
|
159
|
-
if (!('
|
|
160
|
-
if (!('instructionPathPartIds' in value) || value['instructionPathPartIds'] === undefined) return false;
|
|
161
|
-
if (!('outputPathPartIds' in value) || value['outputPathPartIds'] === undefined) return false;
|
|
91
|
+
if (!('isActive' in value) || value['isActive'] === undefined) return false;
|
|
92
|
+
if (!('approvalRequired' in value) || value['approvalRequired'] === undefined) return false;
|
|
162
93
|
return true;
|
|
163
94
|
}
|
|
164
95
|
|
|
@@ -174,15 +105,10 @@ export function UpdateWorkflowDefinitionRequestFromJSONTyped(json: any, ignoreDi
|
|
|
174
105
|
|
|
175
106
|
'name': json['name'],
|
|
176
107
|
'description': json['description'] == null ? undefined : json['description'],
|
|
177
|
-
'runnerType': WorkflowRunnerTypeFromJSON(json['runner_type']),
|
|
178
|
-
'runnerConfig': json['runner_config'] == null ? undefined : SelfHostedRunnerConfigFromJSON(json['runner_config']),
|
|
179
108
|
'maxRunDurationSeconds': json['max_run_duration_seconds'] == null ? undefined : json['max_run_duration_seconds'],
|
|
180
|
-
'
|
|
181
|
-
'
|
|
182
|
-
'
|
|
183
|
-
'templatePathPartId': json['template_path_part_id'] == null ? undefined : json['template_path_part_id'],
|
|
184
|
-
'isActive': json['is_active'] == null ? undefined : json['is_active'],
|
|
185
|
-
'approvalRequired': json['approval_required'] == null ? undefined : json['approval_required'],
|
|
109
|
+
'instructionPathPartId': json['instruction_path_part_id'] == null ? undefined : json['instruction_path_part_id'],
|
|
110
|
+
'isActive': json['is_active'],
|
|
111
|
+
'approvalRequired': json['approval_required'],
|
|
186
112
|
};
|
|
187
113
|
}
|
|
188
114
|
|
|
@@ -199,13 +125,8 @@ export function UpdateWorkflowDefinitionRequestToJSONTyped(value?: UpdateWorkflo
|
|
|
199
125
|
|
|
200
126
|
'name': value['name'],
|
|
201
127
|
'description': value['description'],
|
|
202
|
-
'runner_type': WorkflowRunnerTypeToJSON(value['runnerType']),
|
|
203
|
-
'runner_config': SelfHostedRunnerConfigToJSON(value['runnerConfig']),
|
|
204
128
|
'max_run_duration_seconds': value['maxRunDurationSeconds'],
|
|
205
|
-
'
|
|
206
|
-
'instruction_path_part_ids': value['instructionPathPartIds'],
|
|
207
|
-
'output_path_part_ids': value['outputPathPartIds'],
|
|
208
|
-
'template_path_part_id': value['templatePathPartId'],
|
|
129
|
+
'instruction_path_part_id': value['instructionPathPartId'],
|
|
209
130
|
'is_active': value['isActive'],
|
|
210
131
|
'approval_required': value['approvalRequired'],
|
|
211
132
|
};
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Knowledge Stack API
|
|
5
|
+
* Knowledge Stack backend API for authentication and knowledge management
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
* PATCH body for ``/v1/workflow-runs/{id}`` — NOT_STARTED runs only.
|
|
18
|
+
*
|
|
19
|
+
* Both fields are optional. A body with both ``None`` is rejected as 400
|
|
20
|
+
* (no-op PATCH). ``input_scope`` replaces the row's KB-ref list wholesale;
|
|
21
|
+
* ``name`` renames the run path_part (the trigger cascades
|
|
22
|
+
* ``materialized_path`` to every descendant).
|
|
23
|
+
* @export
|
|
24
|
+
* @interface UpdateWorkflowRunRequest
|
|
25
|
+
*/
|
|
26
|
+
export interface UpdateWorkflowRunRequest {
|
|
27
|
+
/**
|
|
28
|
+
* New KB-reference scope (DOCUMENT + FOLDER pp_ids). Replaces the row's ``input_path_part_ids`` wholesale. Uploaded files live in ``inputs/`` and are walked at Start; they are not part of this list.
|
|
29
|
+
* @type {Array<string>}
|
|
30
|
+
* @memberof UpdateWorkflowRunRequest
|
|
31
|
+
*/
|
|
32
|
+
inputScope?: Array<string> | null;
|
|
33
|
+
/**
|
|
34
|
+
* New display name for the run (mirrors path_part.name).
|
|
35
|
+
* @type {string}
|
|
36
|
+
* @memberof UpdateWorkflowRunRequest
|
|
37
|
+
*/
|
|
38
|
+
name?: string | null;
|
|
39
|
+
}
|
|
40
|
+
export const UpdateWorkflowRunRequestPropertyValidationAttributesMap: {
|
|
41
|
+
[property: string]: {
|
|
42
|
+
maxLength?: number,
|
|
43
|
+
minLength?: number,
|
|
44
|
+
pattern?: string,
|
|
45
|
+
maximum?: number,
|
|
46
|
+
exclusiveMaximum?: boolean,
|
|
47
|
+
minimum?: number,
|
|
48
|
+
exclusiveMinimum?: boolean,
|
|
49
|
+
multipleOf?: number,
|
|
50
|
+
maxItems?: number,
|
|
51
|
+
minItems?: number,
|
|
52
|
+
uniqueItems?: boolean
|
|
53
|
+
}
|
|
54
|
+
} = {
|
|
55
|
+
inputScope: {
|
|
56
|
+
maxItems: 50,
|
|
57
|
+
uniqueItems: false,
|
|
58
|
+
},
|
|
59
|
+
name: {
|
|
60
|
+
maxLength: 255,
|
|
61
|
+
minLength: 1,
|
|
62
|
+
},
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Check if a given object implements the UpdateWorkflowRunRequest interface.
|
|
68
|
+
*/
|
|
69
|
+
export function instanceOfUpdateWorkflowRunRequest(value: object): value is UpdateWorkflowRunRequest {
|
|
70
|
+
return true;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export function UpdateWorkflowRunRequestFromJSON(json: any): UpdateWorkflowRunRequest {
|
|
74
|
+
return UpdateWorkflowRunRequestFromJSONTyped(json, false);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export function UpdateWorkflowRunRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateWorkflowRunRequest {
|
|
78
|
+
if (json == null) {
|
|
79
|
+
return json;
|
|
80
|
+
}
|
|
81
|
+
return {
|
|
82
|
+
|
|
83
|
+
'inputScope': json['input_scope'] == null ? undefined : json['input_scope'],
|
|
84
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export function UpdateWorkflowRunRequestToJSON(json: any): UpdateWorkflowRunRequest {
|
|
89
|
+
return UpdateWorkflowRunRequestToJSONTyped(json, false);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export function UpdateWorkflowRunRequestToJSONTyped(value?: UpdateWorkflowRunRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
93
|
+
if (value == null) {
|
|
94
|
+
return value;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
return {
|
|
98
|
+
|
|
99
|
+
'input_scope': value['inputScope'],
|
|
100
|
+
'name': value['name'],
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
|