@knowledge-stack/ksapi 1.88.0 → 1.89.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +38 -20
- package/README.md +30 -19
- package/dist/apis/DocumentCheckoutApi.d.ts +16 -13
- package/dist/apis/DocumentCheckoutApi.js +17 -14
- package/dist/apis/DocumentVersionsApi.d.ts +1 -4
- package/dist/apis/DocumentVersionsApi.js +0 -2
- package/dist/apis/DocumentsApi.d.ts +1 -4
- package/dist/apis/DocumentsApi.js +0 -2
- package/dist/apis/FoldersApi.d.ts +10 -13
- package/dist/apis/FoldersApi.js +2 -4
- package/dist/apis/PathPartApprovalsApi.d.ts +117 -0
- package/dist/apis/PathPartApprovalsApi.js +159 -0
- package/dist/apis/PathPartsApi.d.ts +4 -4
- package/dist/apis/PathPartsApi.js +2 -2
- package/dist/apis/WorkflowDefinitionsApi.d.ts +48 -42
- package/dist/apis/WorkflowDefinitionsApi.js +65 -43
- package/dist/apis/WorkflowMemoryApi.d.ts +12 -9
- package/dist/apis/WorkflowMemoryApi.js +7 -3
- package/dist/apis/WorkflowRunsApi.d.ts +115 -65
- package/dist/apis/WorkflowRunsApi.js +100 -53
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/esm/apis/DocumentCheckoutApi.d.ts +16 -13
- package/dist/esm/apis/DocumentCheckoutApi.js +17 -14
- package/dist/esm/apis/DocumentVersionsApi.d.ts +1 -4
- package/dist/esm/apis/DocumentVersionsApi.js +0 -2
- package/dist/esm/apis/DocumentsApi.d.ts +1 -4
- package/dist/esm/apis/DocumentsApi.js +0 -2
- package/dist/esm/apis/FoldersApi.d.ts +10 -13
- package/dist/esm/apis/FoldersApi.js +3 -5
- package/dist/esm/apis/PathPartApprovalsApi.d.ts +117 -0
- package/dist/esm/apis/PathPartApprovalsApi.js +122 -0
- package/dist/esm/apis/PathPartsApi.d.ts +4 -4
- package/dist/esm/apis/PathPartsApi.js +2 -2
- package/dist/esm/apis/WorkflowDefinitionsApi.d.ts +48 -42
- package/dist/esm/apis/WorkflowDefinitionsApi.js +66 -44
- package/dist/esm/apis/WorkflowMemoryApi.d.ts +12 -9
- package/dist/esm/apis/WorkflowMemoryApi.js +8 -4
- package/dist/esm/apis/WorkflowRunsApi.d.ts +115 -65
- package/dist/esm/apis/WorkflowRunsApi.js +101 -54
- package/dist/esm/apis/index.d.ts +1 -0
- package/dist/esm/apis/index.js +1 -0
- package/dist/esm/models/ChunkContentItem.d.ts +7 -0
- package/dist/esm/models/ChunkContentItem.js +5 -0
- package/dist/esm/models/CitedChunk.d.ts +86 -0
- package/dist/esm/models/CitedChunk.js +55 -0
- package/dist/esm/models/CloneWorkflowRunRequest.d.ts +54 -0
- package/dist/esm/models/CloneWorkflowRunRequest.js +44 -0
- package/dist/esm/models/CreateThreadMessageRequest.d.ts +1 -1
- package/dist/esm/models/CreateThreadRequest.d.ts +13 -1
- package/dist/esm/models/CreateThreadRequest.js +8 -0
- package/dist/esm/models/CreateWorkflowDefinitionRequest.d.ts +6 -41
- package/dist/esm/models/CreateWorkflowDefinitionRequest.js +5 -35
- package/dist/esm/models/DocumentCheckoutResponse.d.ts +6 -5
- package/dist/esm/models/DocumentCheckoutResponse.js +7 -6
- package/dist/esm/models/DocumentResponse.d.ts +11 -3
- package/dist/esm/models/DocumentResponse.js +9 -3
- package/dist/esm/models/DocumentVersionMetadata.d.ts +7 -0
- package/dist/esm/models/DocumentVersionMetadata.js +3 -0
- package/dist/esm/models/DocumentVersionMetadataUpdate.d.ts +7 -0
- package/dist/esm/models/DocumentVersionMetadataUpdate.js +3 -0
- package/dist/esm/models/DocumentVersionResponse.d.ts +4 -3
- package/dist/esm/models/DocumentVersionResponse.js +4 -3
- package/dist/esm/models/DocxParagraphAnchorInput.d.ts +79 -0
- package/dist/esm/models/DocxParagraphAnchorInput.js +71 -0
- package/dist/esm/models/DocxParagraphAnchorOutput.d.ts +88 -0
- package/dist/esm/models/DocxParagraphAnchorOutput.js +74 -0
- package/dist/esm/models/FolderResponse.d.ts +7 -0
- package/dist/esm/models/FolderResponse.js +5 -0
- package/dist/esm/models/FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponse.d.ts +33 -0
- package/dist/esm/models/FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponse.js +57 -0
- package/dist/esm/models/InputSnapshot.d.ts +81 -0
- package/dist/esm/models/{ABCDPathSnapshot.js → InputSnapshot.js} +18 -12
- package/dist/esm/models/InstructionSnapshot.d.ts +16 -10
- package/dist/esm/models/InstructionSnapshot.js +11 -6
- package/dist/esm/models/MemoryChunkResponse.d.ts +1 -1
- package/dist/esm/models/MemoryKind.d.ts +1 -4
- package/dist/esm/models/MemoryKind.js +1 -4
- package/dist/esm/models/PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDiscriminator.d.ts +66 -0
- package/dist/esm/models/{PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseDiscriminator.js → PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDiscriminator.js} +12 -12
- package/dist/esm/models/PaginatedResponseMemoryChunkResponse.d.ts +66 -0
- package/dist/esm/models/PaginatedResponseMemoryChunkResponse.js +70 -0
- package/dist/esm/models/PathPartApprovalDecision.d.ts +6 -5
- package/dist/esm/models/PathPartApprovalDecision.js +7 -6
- package/dist/esm/models/PathPartApprovalResponse.d.ts +2 -23
- package/dist/esm/models/PathPartApprovalResponse.js +3 -15
- package/dist/esm/models/PathPartApprovalState.d.ts +32 -0
- package/dist/esm/models/PathPartApprovalState.js +50 -0
- package/dist/esm/models/SectionContentItem.d.ts +7 -0
- package/dist/esm/models/SectionContentItem.js +5 -0
- package/dist/esm/models/SetApprovalStateRequest.d.ts +69 -0
- package/dist/esm/models/SetApprovalStateRequest.js +57 -0
- package/dist/esm/models/SetWorkflowRunApprovalRequest.d.ts +64 -0
- package/dist/esm/models/SetWorkflowRunApprovalRequest.js +56 -0
- package/dist/esm/models/ThreadMessageResponse.d.ts +7 -1
- package/dist/esm/models/ThreadMessageResponse.js +2 -0
- package/dist/esm/models/ThreadResponse.d.ts +1 -1
- package/dist/esm/models/UpdateThreadRequest.d.ts +1 -1
- package/dist/esm/models/UpdateWorkflowDefinitionRequest.d.ts +4 -41
- package/dist/esm/models/UpdateWorkflowDefinitionRequest.js +7 -38
- package/dist/esm/models/UpdateWorkflowRunRequest.d.ts +58 -0
- package/dist/esm/models/UpdateWorkflowRunRequest.js +53 -0
- package/dist/esm/models/UserInfo.d.ts +59 -0
- package/dist/esm/models/UserInfo.js +52 -0
- package/dist/esm/models/UserMessageRequest.d.ts +1 -1
- package/dist/esm/models/UserMessageResponse.d.ts +1 -1
- package/dist/esm/models/WorkflowDefinitionResponse.d.ts +42 -24
- package/dist/esm/models/WorkflowDefinitionResponse.js +31 -24
- package/dist/esm/models/WorkflowExecutionState.d.ts +42 -0
- package/dist/esm/models/WorkflowExecutionState.js +60 -0
- package/dist/esm/models/WorkflowRunResponse.d.ts +91 -18
- package/dist/esm/models/WorkflowRunResponse.js +59 -18
- package/dist/esm/models/WorkflowRunSnapshot.d.ts +14 -37
- package/dist/esm/models/WorkflowRunSnapshot.js +7 -28
- package/dist/esm/models/XlsxCellAnchorInput.d.ts +79 -0
- package/dist/esm/models/XlsxCellAnchorInput.js +67 -0
- package/dist/esm/models/XlsxCellAnchorInputOrDocxParagraphAnchorInput.d.ts +27 -0
- package/dist/esm/models/XlsxCellAnchorInputOrDocxParagraphAnchorInput.js +47 -0
- package/dist/esm/models/XlsxCellAnchorOutput.d.ts +90 -0
- package/dist/esm/models/XlsxCellAnchorOutput.js +70 -0
- package/dist/esm/models/XlsxCellAnchorOutputOrDocxParagraphAnchorOutput.d.ts +27 -0
- package/dist/esm/models/XlsxCellAnchorOutputOrDocxParagraphAnchorOutput.js +47 -0
- package/dist/esm/models/index.d.ts +18 -10
- package/dist/esm/models/index.js +18 -10
- package/dist/models/ChunkContentItem.d.ts +7 -0
- package/dist/models/ChunkContentItem.js +5 -0
- package/dist/models/CitedChunk.d.ts +86 -0
- package/dist/models/CitedChunk.js +63 -0
- package/dist/models/CloneWorkflowRunRequest.d.ts +54 -0
- package/dist/models/CloneWorkflowRunRequest.js +52 -0
- package/dist/models/CreateThreadMessageRequest.d.ts +1 -1
- package/dist/models/CreateThreadRequest.d.ts +13 -1
- package/dist/models/CreateThreadRequest.js +8 -0
- package/dist/models/CreateWorkflowDefinitionRequest.d.ts +6 -41
- package/dist/models/CreateWorkflowDefinitionRequest.js +5 -35
- package/dist/models/DocumentCheckoutResponse.d.ts +6 -5
- package/dist/models/DocumentCheckoutResponse.js +7 -6
- package/dist/models/DocumentResponse.d.ts +11 -3
- package/dist/models/DocumentResponse.js +9 -3
- package/dist/models/DocumentVersionMetadata.d.ts +7 -0
- package/dist/models/DocumentVersionMetadata.js +3 -0
- package/dist/models/DocumentVersionMetadataUpdate.d.ts +7 -0
- package/dist/models/DocumentVersionMetadataUpdate.js +3 -0
- package/dist/models/DocumentVersionResponse.d.ts +4 -3
- package/dist/models/DocumentVersionResponse.js +4 -3
- package/dist/models/DocxParagraphAnchorInput.d.ts +79 -0
- package/dist/models/DocxParagraphAnchorInput.js +79 -0
- package/dist/models/DocxParagraphAnchorOutput.d.ts +88 -0
- package/dist/models/DocxParagraphAnchorOutput.js +82 -0
- package/dist/models/FolderResponse.d.ts +7 -0
- package/dist/models/FolderResponse.js +5 -0
- package/dist/models/FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponse.d.ts +33 -0
- package/dist/models/FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponse.js +63 -0
- package/dist/models/InputSnapshot.d.ts +81 -0
- package/dist/models/{ABCDPathSnapshot.js → InputSnapshot.js} +24 -18
- package/dist/models/InstructionSnapshot.d.ts +16 -10
- package/dist/models/InstructionSnapshot.js +12 -7
- package/dist/models/MemoryChunkResponse.d.ts +1 -1
- package/dist/models/MemoryKind.d.ts +1 -4
- package/dist/models/MemoryKind.js +1 -4
- package/dist/models/PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDiscriminator.d.ts +66 -0
- package/dist/models/PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDiscriminator.js +78 -0
- package/dist/models/PaginatedResponseMemoryChunkResponse.d.ts +66 -0
- package/dist/models/PaginatedResponseMemoryChunkResponse.js +78 -0
- package/dist/models/PathPartApprovalDecision.d.ts +6 -5
- package/dist/models/PathPartApprovalDecision.js +7 -6
- package/dist/models/PathPartApprovalResponse.d.ts +2 -23
- package/dist/models/PathPartApprovalResponse.js +3 -15
- package/dist/models/PathPartApprovalState.d.ts +32 -0
- package/dist/models/PathPartApprovalState.js +58 -0
- package/dist/models/SectionContentItem.d.ts +7 -0
- package/dist/models/SectionContentItem.js +5 -0
- package/dist/models/SetApprovalStateRequest.d.ts +69 -0
- package/dist/models/SetApprovalStateRequest.js +65 -0
- package/dist/models/SetWorkflowRunApprovalRequest.d.ts +64 -0
- package/dist/models/SetWorkflowRunApprovalRequest.js +64 -0
- package/dist/models/ThreadMessageResponse.d.ts +7 -1
- package/dist/models/ThreadMessageResponse.js +2 -0
- package/dist/models/ThreadResponse.d.ts +1 -1
- package/dist/models/UpdateThreadRequest.d.ts +1 -1
- package/dist/models/UpdateWorkflowDefinitionRequest.d.ts +4 -41
- package/dist/models/UpdateWorkflowDefinitionRequest.js +7 -38
- package/dist/models/UpdateWorkflowRunRequest.d.ts +58 -0
- package/dist/models/UpdateWorkflowRunRequest.js +61 -0
- package/dist/models/UserInfo.d.ts +59 -0
- package/dist/models/UserInfo.js +60 -0
- package/dist/models/UserMessageRequest.d.ts +1 -1
- package/dist/models/UserMessageResponse.d.ts +1 -1
- package/dist/models/WorkflowDefinitionResponse.d.ts +42 -24
- package/dist/models/WorkflowDefinitionResponse.js +32 -25
- package/dist/models/WorkflowExecutionState.d.ts +42 -0
- package/dist/models/WorkflowExecutionState.js +68 -0
- package/dist/models/WorkflowRunResponse.d.ts +91 -18
- package/dist/models/WorkflowRunResponse.js +60 -19
- package/dist/models/WorkflowRunSnapshot.d.ts +14 -37
- package/dist/models/WorkflowRunSnapshot.js +7 -28
- package/dist/models/XlsxCellAnchorInput.d.ts +79 -0
- package/dist/models/XlsxCellAnchorInput.js +75 -0
- package/dist/models/XlsxCellAnchorInputOrDocxParagraphAnchorInput.d.ts +27 -0
- package/dist/models/XlsxCellAnchorInputOrDocxParagraphAnchorInput.js +53 -0
- package/dist/models/XlsxCellAnchorOutput.d.ts +90 -0
- package/dist/models/XlsxCellAnchorOutput.js +78 -0
- package/dist/models/XlsxCellAnchorOutputOrDocxParagraphAnchorOutput.d.ts +27 -0
- package/dist/models/XlsxCellAnchorOutputOrDocxParagraphAnchorOutput.js +53 -0
- package/dist/models/index.d.ts +18 -10
- package/dist/models/index.js +18 -10
- package/docs/ChunkContentItem.md +2 -0
- package/docs/CitedChunk.md +45 -0
- package/docs/CloneWorkflowRunRequest.md +35 -0
- package/docs/CreateThreadMessageRequest.md +0 -1
- package/docs/CreateThreadRequest.md +4 -1
- package/docs/CreateWorkflowDefinitionRequest.md +3 -13
- package/docs/DocumentCheckoutApi.md +19 -16
- package/docs/DocumentCheckoutResponse.md +4 -4
- package/docs/DocumentResponse.md +4 -2
- package/docs/DocumentVersionMetadata.md +2 -0
- package/docs/DocumentVersionMetadataUpdate.md +2 -0
- package/docs/DocumentVersionResponse.md +2 -2
- package/docs/DocumentVersionsApi.md +0 -2
- package/docs/DocumentsApi.md +0 -2
- package/docs/{ABCDPathSnapshot.md → DocxParagraphAnchorInput.md} +15 -11
- package/docs/DocxParagraphAnchorOutput.md +45 -0
- package/docs/FolderResponse.md +2 -0
- package/docs/FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponse.md +108 -0
- package/docs/FoldersApi.md +4 -6
- package/docs/InputSnapshot.md +39 -0
- package/docs/InstructionSnapshot.md +4 -4
- package/docs/MemoryChunkResponse.md +0 -1
- package/docs/MemoryKind.md +1 -1
- package/docs/PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDiscriminator.md +40 -0
- package/docs/{PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseDiscriminator.md → PaginatedResponseMemoryChunkResponse.md} +5 -5
- package/docs/PathPartApprovalDecision.md +1 -1
- package/docs/PathPartApprovalResponse.md +3 -9
- package/docs/{InvokeWorkflowRequest.md → PathPartApprovalState.md} +5 -9
- package/docs/PathPartApprovalsApi.md +161 -0
- package/docs/PathPartsApi.md +1 -1
- package/docs/SectionContentItem.md +2 -0
- package/docs/SectionContentItemOrChunkContentItem.md +2 -0
- package/docs/SetApprovalStateRequest.md +37 -0
- package/docs/SetWorkflowRunApprovalRequest.md +37 -0
- package/docs/ThreadMessageResponse.md +2 -1
- package/docs/ThreadResponse.md +0 -1
- package/docs/UpdateThreadRequest.md +0 -1
- package/docs/UpdateWorkflowDefinitionRequest.md +3 -13
- package/docs/UpdateWorkflowRunRequest.md +37 -0
- package/docs/{RejectFileRequest.md → UserInfo.md} +11 -7
- package/docs/UserMessageRequest.md +0 -1
- package/docs/UserMessageResponse.md +0 -1
- package/docs/WorkflowDefinitionResponse.md +15 -13
- package/docs/WorkflowDefinitionsApi.md +38 -32
- package/docs/WorkflowExecutionState.md +33 -0
- package/docs/WorkflowMemoryApi.md +8 -4
- package/docs/WorkflowRunResponse.md +29 -9
- package/docs/WorkflowRunSnapshot.md +5 -15
- package/docs/WorkflowRunsApi.md +122 -42
- package/docs/{ListMemoryChunksResponse.md → XlsxCellAnchorInput.md} +15 -6
- package/docs/XlsxCellAnchorInputOrDocxParagraphAnchorInput.md +46 -0
- package/docs/XlsxCellAnchorOutput.md +45 -0
- package/docs/XlsxCellAnchorOutputOrDocxParagraphAnchorOutput.md +48 -0
- package/package.json +1 -1
- package/src/apis/DocumentCheckoutApi.ts +35 -28
- package/src/apis/DocumentVersionsApi.ts +1 -4
- package/src/apis/DocumentsApi.ts +1 -4
- package/src/apis/FoldersApi.ts +14 -17
- package/src/apis/PathPartApprovalsApi.ts +228 -0
- package/src/apis/PathPartsApi.ts +4 -4
- package/src/apis/WorkflowDefinitionsApi.ts +102 -78
- package/src/apis/WorkflowMemoryApi.ts +23 -12
- package/src/apis/WorkflowRunsApi.ts +198 -104
- package/src/apis/index.ts +1 -0
- package/src/models/ChunkContentItem.ts +16 -0
- package/src/models/CitedChunk.ts +141 -0
- package/src/models/CloneWorkflowRunRequest.ts +90 -0
- package/src/models/CreateThreadMessageRequest.ts +1 -1
- package/src/models/CreateThreadRequest.ts +21 -1
- package/src/models/CreateWorkflowDefinitionRequest.ts +11 -87
- package/src/models/DocumentCheckoutResponse.ts +19 -11
- package/src/models/DocumentResponse.ts +29 -6
- package/src/models/DocumentVersionMetadata.ts +15 -0
- package/src/models/DocumentVersionMetadataUpdate.ts +15 -0
- package/src/models/DocumentVersionResponse.ts +13 -6
- package/src/models/DocxParagraphAnchorInput.ts +142 -0
- package/src/models/DocxParagraphAnchorOutput.ts +153 -0
- package/src/models/FolderResponse.ts +16 -0
- package/src/models/FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponse.ts +94 -0
- package/src/models/InputSnapshot.ts +126 -0
- package/src/models/InstructionSnapshot.ts +22 -22
- package/src/models/MemoryChunkResponse.ts +1 -1
- package/src/models/MemoryKind.ts +1 -4
- package/src/models/{PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseDiscriminator.ts → PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDiscriminator.ts} +25 -25
- package/src/models/PaginatedResponseMemoryChunkResponse.ts +130 -0
- package/src/models/PathPartApprovalDecision.ts +7 -6
- package/src/models/PathPartApprovalResponse.ts +5 -35
- package/src/models/PathPartApprovalState.ts +60 -0
- package/src/models/SectionContentItem.ts +17 -0
- package/src/models/SetApprovalStateRequest.ts +113 -0
- package/src/models/SetWorkflowRunApprovalRequest.ts +108 -0
- package/src/models/ThreadMessageResponse.ts +9 -1
- package/src/models/ThreadResponse.ts +1 -1
- package/src/models/UpdateThreadRequest.ts +1 -1
- package/src/models/UpdateWorkflowDefinitionRequest.ts +11 -90
- package/src/models/UpdateWorkflowRunRequest.ts +103 -0
- package/src/models/UserInfo.ts +101 -0
- package/src/models/UserMessageRequest.ts +1 -1
- package/src/models/UserMessageResponse.ts +1 -1
- package/src/models/WorkflowDefinitionResponse.ts +68 -53
- package/src/models/WorkflowExecutionState.ts +70 -0
- package/src/models/WorkflowRunResponse.ts +151 -44
- package/src/models/WorkflowRunSnapshot.ts +25 -71
- package/src/models/XlsxCellAnchorInput.ts +138 -0
- package/src/models/XlsxCellAnchorInputOrDocxParagraphAnchorInput.ts +72 -0
- package/src/models/XlsxCellAnchorOutput.ts +151 -0
- package/src/models/XlsxCellAnchorOutputOrDocxParagraphAnchorOutput.ts +72 -0
- package/src/models/index.ts +18 -10
- package/dist/esm/models/ABCDPathSnapshot.d.ts +0 -60
- package/dist/esm/models/FolderResponseOrDocumentResponse.d.ts +0 -27
- package/dist/esm/models/FolderResponseOrDocumentResponse.js +0 -47
- package/dist/esm/models/InvokeWorkflowRequest.d.ts +0 -53
- package/dist/esm/models/InvokeWorkflowRequest.js +0 -52
- package/dist/esm/models/ListMemoryChunksResponse.d.ts +0 -48
- package/dist/esm/models/ListMemoryChunksResponse.js +0 -45
- package/dist/esm/models/PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseDiscriminator.d.ts +0 -66
- package/dist/esm/models/RejectFileRequest.d.ts +0 -47
- package/dist/esm/models/RejectFileRequest.js +0 -49
- package/dist/esm/models/SelfHostedRunnerConfig.d.ts +0 -53
- package/dist/esm/models/SelfHostedRunnerConfig.js +0 -53
- package/dist/esm/models/SelfHostedRunnerConfigResponse.d.ts +0 -47
- package/dist/esm/models/SelfHostedRunnerConfigResponse.js +0 -49
- package/dist/esm/models/WorkflowRunStatus.d.ts +0 -45
- package/dist/esm/models/WorkflowRunStatus.js +0 -63
- package/dist/esm/models/WorkflowRunnerType.d.ts +0 -25
- package/dist/esm/models/WorkflowRunnerType.js +0 -43
- package/dist/models/ABCDPathSnapshot.d.ts +0 -60
- package/dist/models/FolderResponseOrDocumentResponse.d.ts +0 -27
- package/dist/models/FolderResponseOrDocumentResponse.js +0 -53
- package/dist/models/InvokeWorkflowRequest.d.ts +0 -53
- package/dist/models/InvokeWorkflowRequest.js +0 -60
- package/dist/models/ListMemoryChunksResponse.d.ts +0 -48
- package/dist/models/ListMemoryChunksResponse.js +0 -53
- package/dist/models/PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseDiscriminator.d.ts +0 -66
- package/dist/models/PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseDiscriminator.js +0 -78
- package/dist/models/RejectFileRequest.d.ts +0 -47
- package/dist/models/RejectFileRequest.js +0 -57
- package/dist/models/SelfHostedRunnerConfig.d.ts +0 -53
- package/dist/models/SelfHostedRunnerConfig.js +0 -61
- package/dist/models/SelfHostedRunnerConfigResponse.d.ts +0 -47
- package/dist/models/SelfHostedRunnerConfigResponse.js +0 -57
- package/dist/models/WorkflowRunStatus.d.ts +0 -45
- package/dist/models/WorkflowRunStatus.js +0 -71
- package/dist/models/WorkflowRunnerType.d.ts +0 -25
- package/dist/models/WorkflowRunnerType.js +0 -51
- package/docs/FolderResponseOrDocumentResponse.md +0 -70
- package/docs/SelfHostedRunnerConfig.md +0 -37
- package/docs/SelfHostedRunnerConfigResponse.md +0 -35
- package/docs/WorkflowRunStatus.md +0 -33
- package/docs/WorkflowRunnerType.md +0 -33
- package/src/models/ABCDPathSnapshot.ts +0 -111
- package/src/models/FolderResponseOrDocumentResponse.ts +0 -72
- package/src/models/InvokeWorkflowRequest.ts +0 -97
- package/src/models/ListMemoryChunksResponse.ts +0 -91
- package/src/models/RejectFileRequest.ts +0 -87
- package/src/models/SelfHostedRunnerConfig.ts +0 -96
- package/src/models/SelfHostedRunnerConfigResponse.ts +0 -87
- package/src/models/WorkflowRunStatus.ts +0 -73
- package/src/models/WorkflowRunnerType.ts +0 -53
|
@@ -15,20 +15,23 @@
|
|
|
15
15
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
|
+
CloneWorkflowRunRequest,
|
|
18
19
|
HTTPValidationError,
|
|
19
|
-
|
|
20
|
-
|
|
20
|
+
SetWorkflowRunApprovalRequest,
|
|
21
|
+
UpdateWorkflowRunRequest,
|
|
21
22
|
WorkflowCallbackResponse,
|
|
22
23
|
WorkflowRunCallbackRequest,
|
|
23
24
|
WorkflowRunResponse,
|
|
24
25
|
} from '../models/index';
|
|
25
26
|
import {
|
|
27
|
+
CloneWorkflowRunRequestFromJSON,
|
|
28
|
+
CloneWorkflowRunRequestToJSON,
|
|
26
29
|
HTTPValidationErrorFromJSON,
|
|
27
30
|
HTTPValidationErrorToJSON,
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
31
|
+
SetWorkflowRunApprovalRequestFromJSON,
|
|
32
|
+
SetWorkflowRunApprovalRequestToJSON,
|
|
33
|
+
UpdateWorkflowRunRequestFromJSON,
|
|
34
|
+
UpdateWorkflowRunRequestToJSON,
|
|
32
35
|
WorkflowCallbackResponseFromJSON,
|
|
33
36
|
WorkflowCallbackResponseToJSON,
|
|
34
37
|
WorkflowRunCallbackRequestFromJSON,
|
|
@@ -37,9 +40,9 @@ import {
|
|
|
37
40
|
WorkflowRunResponseToJSON,
|
|
38
41
|
} from '../models/index';
|
|
39
42
|
|
|
40
|
-
export interface
|
|
43
|
+
export interface CloneWorkflowRunOperationRequest {
|
|
41
44
|
runId: string;
|
|
42
|
-
|
|
45
|
+
cloneWorkflowRunRequest: CloneWorkflowRunRequest;
|
|
43
46
|
authorization?: string | null;
|
|
44
47
|
ksUat?: string | null;
|
|
45
48
|
}
|
|
@@ -56,17 +59,22 @@ export interface GetWorkflowRunRequest {
|
|
|
56
59
|
ksUat?: string | null;
|
|
57
60
|
}
|
|
58
61
|
|
|
59
|
-
export interface
|
|
62
|
+
export interface SetWorkflowRunApprovalOperationRequest {
|
|
60
63
|
runId: string;
|
|
61
|
-
|
|
62
|
-
rejectFileRequest: RejectFileRequest;
|
|
64
|
+
setWorkflowRunApprovalRequest: SetWorkflowRunApprovalRequest;
|
|
63
65
|
authorization?: string | null;
|
|
64
66
|
ksUat?: string | null;
|
|
65
67
|
}
|
|
66
68
|
|
|
67
|
-
export interface
|
|
69
|
+
export interface StartWorkflowRunRequest {
|
|
68
70
|
runId: string;
|
|
69
|
-
|
|
71
|
+
authorization?: string | null;
|
|
72
|
+
ksUat?: string | null;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export interface UpdateWorkflowRunOperationRequest {
|
|
76
|
+
runId: string;
|
|
77
|
+
updateWorkflowRunRequest: UpdateWorkflowRunRequest;
|
|
70
78
|
authorization?: string | null;
|
|
71
79
|
ksUat?: string | null;
|
|
72
80
|
}
|
|
@@ -74,6 +82,8 @@ export interface UnapproveWorkflowRunFileRequest {
|
|
|
74
82
|
export interface WorkflowRunCallbackOperationRequest {
|
|
75
83
|
runId: string;
|
|
76
84
|
workflowRunCallbackRequest: WorkflowRunCallbackRequest;
|
|
85
|
+
authorization?: string | null;
|
|
86
|
+
ksUat?: string | null;
|
|
77
87
|
}
|
|
78
88
|
|
|
79
89
|
/**
|
|
@@ -84,34 +94,34 @@ export interface WorkflowRunCallbackOperationRequest {
|
|
|
84
94
|
*/
|
|
85
95
|
export interface WorkflowRunsApiInterface {
|
|
86
96
|
/**
|
|
87
|
-
* Creates request options for
|
|
97
|
+
* Creates request options for cloneWorkflowRun without sending the request
|
|
88
98
|
* @param {string} runId
|
|
89
|
-
* @param {
|
|
99
|
+
* @param {CloneWorkflowRunRequest} cloneWorkflowRunRequest
|
|
90
100
|
* @param {string} [authorization]
|
|
91
101
|
* @param {string} [ksUat]
|
|
92
102
|
* @throws {RequiredError}
|
|
93
103
|
* @memberof WorkflowRunsApiInterface
|
|
94
104
|
*/
|
|
95
|
-
|
|
105
|
+
cloneWorkflowRunRequestOpts(requestParameters: CloneWorkflowRunOperationRequest): Promise<runtime.RequestOpts>;
|
|
96
106
|
|
|
97
107
|
/**
|
|
98
|
-
*
|
|
99
|
-
* @summary
|
|
108
|
+
* Clone a started run into a new NOT_STARTED draft. ``include_inputs=True`` pins the source\'s snapshotted inputs onto the new run; uploads stay in the source\'s ``inputs/`` and are referenced by path_part_id. No S3 copy. A NOT_STARTED source has no snapshot to pin → 409. The clone is born NOT_STARTED so the user can edit it (PATCH) before pressing Start.
|
|
109
|
+
* @summary Clone Workflow Run Handler
|
|
100
110
|
* @param {string} runId
|
|
101
|
-
* @param {
|
|
111
|
+
* @param {CloneWorkflowRunRequest} cloneWorkflowRunRequest
|
|
102
112
|
* @param {string} [authorization]
|
|
103
113
|
* @param {string} [ksUat]
|
|
104
114
|
* @param {*} [options] Override http request option.
|
|
105
115
|
* @throws {RequiredError}
|
|
106
116
|
* @memberof WorkflowRunsApiInterface
|
|
107
117
|
*/
|
|
108
|
-
|
|
118
|
+
cloneWorkflowRunRaw(requestParameters: CloneWorkflowRunOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<WorkflowRunResponse>>;
|
|
109
119
|
|
|
110
120
|
/**
|
|
111
|
-
*
|
|
112
|
-
*
|
|
121
|
+
* Clone a started run into a new NOT_STARTED draft. ``include_inputs=True`` pins the source\'s snapshotted inputs onto the new run; uploads stay in the source\'s ``inputs/`` and are referenced by path_part_id. No S3 copy. A NOT_STARTED source has no snapshot to pin → 409. The clone is born NOT_STARTED so the user can edit it (PATCH) before pressing Start.
|
|
122
|
+
* Clone Workflow Run Handler
|
|
113
123
|
*/
|
|
114
|
-
|
|
124
|
+
cloneWorkflowRun(requestParameters: CloneWorkflowRunOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WorkflowRunResponse>;
|
|
115
125
|
|
|
116
126
|
/**
|
|
117
127
|
* Creates request options for deleteWorkflowRun without sending the request
|
|
@@ -168,81 +178,111 @@ export interface WorkflowRunsApiInterface {
|
|
|
168
178
|
getWorkflowRun(requestParameters: GetWorkflowRunRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WorkflowRunResponse>;
|
|
169
179
|
|
|
170
180
|
/**
|
|
171
|
-
* Creates request options for
|
|
181
|
+
* Creates request options for setWorkflowRunApproval without sending the request
|
|
182
|
+
* @param {string} runId
|
|
183
|
+
* @param {SetWorkflowRunApprovalRequest} setWorkflowRunApprovalRequest
|
|
184
|
+
* @param {string} [authorization]
|
|
185
|
+
* @param {string} [ksUat]
|
|
186
|
+
* @throws {RequiredError}
|
|
187
|
+
* @memberof WorkflowRunsApiInterface
|
|
188
|
+
*/
|
|
189
|
+
setWorkflowRunApprovalRequestOpts(requestParameters: SetWorkflowRunApprovalOperationRequest): Promise<runtime.RequestOpts>;
|
|
190
|
+
|
|
191
|
+
/**
|
|
192
|
+
* Approve an entire completed run in one call. Approves every output document under ``outputs/`` then the run folder. The run must be ``COMPLETED`` and its definition must have required approval. Requires write access to the run folder. ``run_id`` is the WorkflowRun id.
|
|
193
|
+
* @summary Set Workflow Run Approval Handler
|
|
194
|
+
* @param {string} runId
|
|
195
|
+
* @param {SetWorkflowRunApprovalRequest} setWorkflowRunApprovalRequest
|
|
196
|
+
* @param {string} [authorization]
|
|
197
|
+
* @param {string} [ksUat]
|
|
198
|
+
* @param {*} [options] Override http request option.
|
|
199
|
+
* @throws {RequiredError}
|
|
200
|
+
* @memberof WorkflowRunsApiInterface
|
|
201
|
+
*/
|
|
202
|
+
setWorkflowRunApprovalRaw(requestParameters: SetWorkflowRunApprovalOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<WorkflowRunResponse>>;
|
|
203
|
+
|
|
204
|
+
/**
|
|
205
|
+
* Approve an entire completed run in one call. Approves every output document under ``outputs/`` then the run folder. The run must be ``COMPLETED`` and its definition must have required approval. Requires write access to the run folder. ``run_id`` is the WorkflowRun id.
|
|
206
|
+
* Set Workflow Run Approval Handler
|
|
207
|
+
*/
|
|
208
|
+
setWorkflowRunApproval(requestParameters: SetWorkflowRunApprovalOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WorkflowRunResponse>;
|
|
209
|
+
|
|
210
|
+
/**
|
|
211
|
+
* Creates request options for startWorkflowRun without sending the request
|
|
172
212
|
* @param {string} runId
|
|
173
|
-
* @param {string} pathPartId
|
|
174
|
-
* @param {RejectFileRequest} rejectFileRequest
|
|
175
213
|
* @param {string} [authorization]
|
|
176
214
|
* @param {string} [ksUat]
|
|
177
215
|
* @throws {RequiredError}
|
|
178
216
|
* @memberof WorkflowRunsApiInterface
|
|
179
217
|
*/
|
|
180
|
-
|
|
218
|
+
startWorkflowRunRequestOpts(requestParameters: StartWorkflowRunRequest): Promise<runtime.RequestOpts>;
|
|
181
219
|
|
|
182
220
|
/**
|
|
183
|
-
*
|
|
184
|
-
* @summary
|
|
221
|
+
* Flip a NOT_STARTED run to IN_PROGRESS and dispatch its agent run. Idempotent on IN_PROGRESS (returns the row). Terminal states → 409. Inputs still ingesting or in a failed terminal state → 409. The snapshot is built at this point (KB DOCUMENTs resolve to active versions, uploaded DVs are walked from inputs/, KB FOLDERs stay live).
|
|
222
|
+
* @summary Start Workflow Run Handler
|
|
185
223
|
* @param {string} runId
|
|
186
|
-
* @param {string} pathPartId
|
|
187
|
-
* @param {RejectFileRequest} rejectFileRequest
|
|
188
224
|
* @param {string} [authorization]
|
|
189
225
|
* @param {string} [ksUat]
|
|
190
226
|
* @param {*} [options] Override http request option.
|
|
191
227
|
* @throws {RequiredError}
|
|
192
228
|
* @memberof WorkflowRunsApiInterface
|
|
193
229
|
*/
|
|
194
|
-
|
|
230
|
+
startWorkflowRunRaw(requestParameters: StartWorkflowRunRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<WorkflowRunResponse>>;
|
|
195
231
|
|
|
196
232
|
/**
|
|
197
|
-
*
|
|
198
|
-
*
|
|
233
|
+
* Flip a NOT_STARTED run to IN_PROGRESS and dispatch its agent run. Idempotent on IN_PROGRESS (returns the row). Terminal states → 409. Inputs still ingesting or in a failed terminal state → 409. The snapshot is built at this point (KB DOCUMENTs resolve to active versions, uploaded DVs are walked from inputs/, KB FOLDERs stay live).
|
|
234
|
+
* Start Workflow Run Handler
|
|
199
235
|
*/
|
|
200
|
-
|
|
236
|
+
startWorkflowRun(requestParameters: StartWorkflowRunRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WorkflowRunResponse>;
|
|
201
237
|
|
|
202
238
|
/**
|
|
203
|
-
* Creates request options for
|
|
239
|
+
* Creates request options for updateWorkflowRun without sending the request
|
|
204
240
|
* @param {string} runId
|
|
205
|
-
* @param {
|
|
241
|
+
* @param {UpdateWorkflowRunRequest} updateWorkflowRunRequest
|
|
206
242
|
* @param {string} [authorization]
|
|
207
243
|
* @param {string} [ksUat]
|
|
208
244
|
* @throws {RequiredError}
|
|
209
245
|
* @memberof WorkflowRunsApiInterface
|
|
210
246
|
*/
|
|
211
|
-
|
|
247
|
+
updateWorkflowRunRequestOpts(requestParameters: UpdateWorkflowRunOperationRequest): Promise<runtime.RequestOpts>;
|
|
212
248
|
|
|
213
249
|
/**
|
|
214
|
-
*
|
|
215
|
-
* @summary
|
|
250
|
+
* Edit a NOT_STARTED run\'s KB scope and / or display name. Both body fields are optional but at least one must be present. The run must be ``NOT_STARTED`` (409 otherwise). Caller must be the triggerer or OWNER/ADMIN (403 otherwise). A name collision with a sibling run under the same definition\'s ``runs/`` folder maps to a 409 via ``IntegrityError`` translation.
|
|
251
|
+
* @summary Update Workflow Run Handler
|
|
216
252
|
* @param {string} runId
|
|
217
|
-
* @param {
|
|
253
|
+
* @param {UpdateWorkflowRunRequest} updateWorkflowRunRequest
|
|
218
254
|
* @param {string} [authorization]
|
|
219
255
|
* @param {string} [ksUat]
|
|
220
256
|
* @param {*} [options] Override http request option.
|
|
221
257
|
* @throws {RequiredError}
|
|
222
258
|
* @memberof WorkflowRunsApiInterface
|
|
223
259
|
*/
|
|
224
|
-
|
|
260
|
+
updateWorkflowRunRaw(requestParameters: UpdateWorkflowRunOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<WorkflowRunResponse>>;
|
|
225
261
|
|
|
226
262
|
/**
|
|
227
|
-
*
|
|
228
|
-
*
|
|
263
|
+
* Edit a NOT_STARTED run\'s KB scope and / or display name. Both body fields are optional but at least one must be present. The run must be ``NOT_STARTED`` (409 otherwise). Caller must be the triggerer or OWNER/ADMIN (403 otherwise). A name collision with a sibling run under the same definition\'s ``runs/`` folder maps to a 409 via ``IntegrityError`` translation.
|
|
264
|
+
* Update Workflow Run Handler
|
|
229
265
|
*/
|
|
230
|
-
|
|
266
|
+
updateWorkflowRun(requestParameters: UpdateWorkflowRunOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WorkflowRunResponse>;
|
|
231
267
|
|
|
232
268
|
/**
|
|
233
269
|
* Creates request options for workflowRunCallback without sending the request
|
|
234
270
|
* @param {string} runId
|
|
235
271
|
* @param {WorkflowRunCallbackRequest} workflowRunCallbackRequest
|
|
272
|
+
* @param {string} [authorization]
|
|
273
|
+
* @param {string} [ksUat]
|
|
236
274
|
* @throws {RequiredError}
|
|
237
275
|
* @memberof WorkflowRunsApiInterface
|
|
238
276
|
*/
|
|
239
277
|
workflowRunCallbackRequestOpts(requestParameters: WorkflowRunCallbackOperationRequest): Promise<runtime.RequestOpts>;
|
|
240
278
|
|
|
241
279
|
/**
|
|
242
|
-
*
|
|
280
|
+
* Terminal-state write seam for the in-process agent runner. The gating Temporal activities ``mark_run_completed_activity`` and ``mark_run_failed_activity`` authenticate as the triggering user (via ``assume_user``) and POST here. Only the user who triggered the run (or OWNER/ADMIN) may write its terminal state. The handler is idempotent: a callback against an already-terminal row returns ``already_terminal`` and the activity-level retry treats it as a no-op.
|
|
243
281
|
* @summary Workflow Run Callback Handler
|
|
244
282
|
* @param {string} runId
|
|
245
283
|
* @param {WorkflowRunCallbackRequest} workflowRunCallbackRequest
|
|
284
|
+
* @param {string} [authorization]
|
|
285
|
+
* @param {string} [ksUat]
|
|
246
286
|
* @param {*} [options] Override http request option.
|
|
247
287
|
* @throws {RequiredError}
|
|
248
288
|
* @memberof WorkflowRunsApiInterface
|
|
@@ -250,6 +290,7 @@ export interface WorkflowRunsApiInterface {
|
|
|
250
290
|
workflowRunCallbackRaw(requestParameters: WorkflowRunCallbackOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<WorkflowCallbackResponse>>;
|
|
251
291
|
|
|
252
292
|
/**
|
|
293
|
+
* Terminal-state write seam for the in-process agent runner. The gating Temporal activities ``mark_run_completed_activity`` and ``mark_run_failed_activity`` authenticate as the triggering user (via ``assume_user``) and POST here. Only the user who triggered the run (or OWNER/ADMIN) may write its terminal state. The handler is idempotent: a callback against an already-terminal row returns ``already_terminal`` and the activity-level retry treats it as a no-op.
|
|
253
294
|
* Workflow Run Callback Handler
|
|
254
295
|
*/
|
|
255
296
|
workflowRunCallback(requestParameters: WorkflowRunCallbackOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WorkflowCallbackResponse>;
|
|
@@ -262,20 +303,20 @@ export interface WorkflowRunsApiInterface {
|
|
|
262
303
|
export class WorkflowRunsApi extends runtime.BaseAPI implements WorkflowRunsApiInterface {
|
|
263
304
|
|
|
264
305
|
/**
|
|
265
|
-
* Creates request options for
|
|
306
|
+
* Creates request options for cloneWorkflowRun without sending the request
|
|
266
307
|
*/
|
|
267
|
-
async
|
|
308
|
+
async cloneWorkflowRunRequestOpts(requestParameters: CloneWorkflowRunOperationRequest): Promise<runtime.RequestOpts> {
|
|
268
309
|
if (requestParameters['runId'] == null) {
|
|
269
310
|
throw new runtime.RequiredError(
|
|
270
311
|
'runId',
|
|
271
|
-
'Required parameter "runId" was null or undefined when calling
|
|
312
|
+
'Required parameter "runId" was null or undefined when calling cloneWorkflowRun().'
|
|
272
313
|
);
|
|
273
314
|
}
|
|
274
315
|
|
|
275
|
-
if (requestParameters['
|
|
316
|
+
if (requestParameters['cloneWorkflowRunRequest'] == null) {
|
|
276
317
|
throw new runtime.RequiredError(
|
|
277
|
-
'
|
|
278
|
-
'Required parameter "
|
|
318
|
+
'cloneWorkflowRunRequest',
|
|
319
|
+
'Required parameter "cloneWorkflowRunRequest" was null or undefined when calling cloneWorkflowRun().'
|
|
279
320
|
);
|
|
280
321
|
}
|
|
281
322
|
|
|
@@ -283,40 +324,42 @@ export class WorkflowRunsApi extends runtime.BaseAPI implements WorkflowRunsApiI
|
|
|
283
324
|
|
|
284
325
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
285
326
|
|
|
327
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
328
|
+
|
|
286
329
|
if (requestParameters['authorization'] != null) {
|
|
287
330
|
headerParameters['authorization'] = String(requestParameters['authorization']);
|
|
288
331
|
}
|
|
289
332
|
|
|
290
333
|
|
|
291
|
-
let urlPath = `/v1/workflow-runs/{run_id}/
|
|
334
|
+
let urlPath = `/v1/workflow-runs/{run_id}/clone`;
|
|
292
335
|
urlPath = urlPath.replace(`{${"run_id"}}`, encodeURIComponent(String(requestParameters['runId'])));
|
|
293
|
-
urlPath = urlPath.replace(`{${"path_part_id"}}`, encodeURIComponent(String(requestParameters['pathPartId'])));
|
|
294
336
|
|
|
295
337
|
return {
|
|
296
338
|
path: urlPath,
|
|
297
339
|
method: 'POST',
|
|
298
340
|
headers: headerParameters,
|
|
299
341
|
query: queryParameters,
|
|
342
|
+
body: CloneWorkflowRunRequestToJSON(requestParameters['cloneWorkflowRunRequest']),
|
|
300
343
|
};
|
|
301
344
|
}
|
|
302
345
|
|
|
303
346
|
/**
|
|
304
|
-
*
|
|
305
|
-
*
|
|
347
|
+
* Clone a started run into a new NOT_STARTED draft. ``include_inputs=True`` pins the source\'s snapshotted inputs onto the new run; uploads stay in the source\'s ``inputs/`` and are referenced by path_part_id. No S3 copy. A NOT_STARTED source has no snapshot to pin → 409. The clone is born NOT_STARTED so the user can edit it (PATCH) before pressing Start.
|
|
348
|
+
* Clone Workflow Run Handler
|
|
306
349
|
*/
|
|
307
|
-
async
|
|
308
|
-
const requestOptions = await this.
|
|
350
|
+
async cloneWorkflowRunRaw(requestParameters: CloneWorkflowRunOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<WorkflowRunResponse>> {
|
|
351
|
+
const requestOptions = await this.cloneWorkflowRunRequestOpts(requestParameters);
|
|
309
352
|
const response = await this.request(requestOptions, initOverrides);
|
|
310
353
|
|
|
311
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
354
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => WorkflowRunResponseFromJSON(jsonValue));
|
|
312
355
|
}
|
|
313
356
|
|
|
314
357
|
/**
|
|
315
|
-
*
|
|
316
|
-
*
|
|
358
|
+
* Clone a started run into a new NOT_STARTED draft. ``include_inputs=True`` pins the source\'s snapshotted inputs onto the new run; uploads stay in the source\'s ``inputs/`` and are referenced by path_part_id. No S3 copy. A NOT_STARTED source has no snapshot to pin → 409. The clone is born NOT_STARTED so the user can edit it (PATCH) before pressing Start.
|
|
359
|
+
* Clone Workflow Run Handler
|
|
317
360
|
*/
|
|
318
|
-
async
|
|
319
|
-
const response = await this.
|
|
361
|
+
async cloneWorkflowRun(requestParameters: CloneWorkflowRunOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WorkflowRunResponse> {
|
|
362
|
+
const response = await this.cloneWorkflowRunRaw(requestParameters, initOverrides);
|
|
320
363
|
return await response.value();
|
|
321
364
|
}
|
|
322
365
|
|
|
@@ -418,27 +461,74 @@ export class WorkflowRunsApi extends runtime.BaseAPI implements WorkflowRunsApiI
|
|
|
418
461
|
}
|
|
419
462
|
|
|
420
463
|
/**
|
|
421
|
-
* Creates request options for
|
|
464
|
+
* Creates request options for setWorkflowRunApproval without sending the request
|
|
422
465
|
*/
|
|
423
|
-
async
|
|
466
|
+
async setWorkflowRunApprovalRequestOpts(requestParameters: SetWorkflowRunApprovalOperationRequest): Promise<runtime.RequestOpts> {
|
|
424
467
|
if (requestParameters['runId'] == null) {
|
|
425
468
|
throw new runtime.RequiredError(
|
|
426
469
|
'runId',
|
|
427
|
-
'Required parameter "runId" was null or undefined when calling
|
|
470
|
+
'Required parameter "runId" was null or undefined when calling setWorkflowRunApproval().'
|
|
428
471
|
);
|
|
429
472
|
}
|
|
430
473
|
|
|
431
|
-
if (requestParameters['
|
|
474
|
+
if (requestParameters['setWorkflowRunApprovalRequest'] == null) {
|
|
432
475
|
throw new runtime.RequiredError(
|
|
433
|
-
'
|
|
434
|
-
'Required parameter "
|
|
476
|
+
'setWorkflowRunApprovalRequest',
|
|
477
|
+
'Required parameter "setWorkflowRunApprovalRequest" was null or undefined when calling setWorkflowRunApproval().'
|
|
435
478
|
);
|
|
436
479
|
}
|
|
437
480
|
|
|
438
|
-
|
|
481
|
+
const queryParameters: any = {};
|
|
482
|
+
|
|
483
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
484
|
+
|
|
485
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
486
|
+
|
|
487
|
+
if (requestParameters['authorization'] != null) {
|
|
488
|
+
headerParameters['authorization'] = String(requestParameters['authorization']);
|
|
489
|
+
}
|
|
490
|
+
|
|
491
|
+
|
|
492
|
+
let urlPath = `/v1/workflow-runs/{run_id}/approval`;
|
|
493
|
+
urlPath = urlPath.replace(`{${"run_id"}}`, encodeURIComponent(String(requestParameters['runId'])));
|
|
494
|
+
|
|
495
|
+
return {
|
|
496
|
+
path: urlPath,
|
|
497
|
+
method: 'POST',
|
|
498
|
+
headers: headerParameters,
|
|
499
|
+
query: queryParameters,
|
|
500
|
+
body: SetWorkflowRunApprovalRequestToJSON(requestParameters['setWorkflowRunApprovalRequest']),
|
|
501
|
+
};
|
|
502
|
+
}
|
|
503
|
+
|
|
504
|
+
/**
|
|
505
|
+
* Approve an entire completed run in one call. Approves every output document under ``outputs/`` then the run folder. The run must be ``COMPLETED`` and its definition must have required approval. Requires write access to the run folder. ``run_id`` is the WorkflowRun id.
|
|
506
|
+
* Set Workflow Run Approval Handler
|
|
507
|
+
*/
|
|
508
|
+
async setWorkflowRunApprovalRaw(requestParameters: SetWorkflowRunApprovalOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<WorkflowRunResponse>> {
|
|
509
|
+
const requestOptions = await this.setWorkflowRunApprovalRequestOpts(requestParameters);
|
|
510
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
511
|
+
|
|
512
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => WorkflowRunResponseFromJSON(jsonValue));
|
|
513
|
+
}
|
|
514
|
+
|
|
515
|
+
/**
|
|
516
|
+
* Approve an entire completed run in one call. Approves every output document under ``outputs/`` then the run folder. The run must be ``COMPLETED`` and its definition must have required approval. Requires write access to the run folder. ``run_id`` is the WorkflowRun id.
|
|
517
|
+
* Set Workflow Run Approval Handler
|
|
518
|
+
*/
|
|
519
|
+
async setWorkflowRunApproval(requestParameters: SetWorkflowRunApprovalOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WorkflowRunResponse> {
|
|
520
|
+
const response = await this.setWorkflowRunApprovalRaw(requestParameters, initOverrides);
|
|
521
|
+
return await response.value();
|
|
522
|
+
}
|
|
523
|
+
|
|
524
|
+
/**
|
|
525
|
+
* Creates request options for startWorkflowRun without sending the request
|
|
526
|
+
*/
|
|
527
|
+
async startWorkflowRunRequestOpts(requestParameters: StartWorkflowRunRequest): Promise<runtime.RequestOpts> {
|
|
528
|
+
if (requestParameters['runId'] == null) {
|
|
439
529
|
throw new runtime.RequiredError(
|
|
440
|
-
'
|
|
441
|
-
'Required parameter "
|
|
530
|
+
'runId',
|
|
531
|
+
'Required parameter "runId" was null or undefined when calling startWorkflowRun().'
|
|
442
532
|
);
|
|
443
533
|
}
|
|
444
534
|
|
|
@@ -446,61 +536,57 @@ export class WorkflowRunsApi extends runtime.BaseAPI implements WorkflowRunsApiI
|
|
|
446
536
|
|
|
447
537
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
448
538
|
|
|
449
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
450
|
-
|
|
451
539
|
if (requestParameters['authorization'] != null) {
|
|
452
540
|
headerParameters['authorization'] = String(requestParameters['authorization']);
|
|
453
541
|
}
|
|
454
542
|
|
|
455
543
|
|
|
456
|
-
let urlPath = `/v1/workflow-runs/{run_id}/
|
|
544
|
+
let urlPath = `/v1/workflow-runs/{run_id}/start`;
|
|
457
545
|
urlPath = urlPath.replace(`{${"run_id"}}`, encodeURIComponent(String(requestParameters['runId'])));
|
|
458
|
-
urlPath = urlPath.replace(`{${"path_part_id"}}`, encodeURIComponent(String(requestParameters['pathPartId'])));
|
|
459
546
|
|
|
460
547
|
return {
|
|
461
548
|
path: urlPath,
|
|
462
549
|
method: 'POST',
|
|
463
550
|
headers: headerParameters,
|
|
464
551
|
query: queryParameters,
|
|
465
|
-
body: RejectFileRequestToJSON(requestParameters['rejectFileRequest']),
|
|
466
552
|
};
|
|
467
553
|
}
|
|
468
554
|
|
|
469
555
|
/**
|
|
470
|
-
*
|
|
471
|
-
*
|
|
556
|
+
* Flip a NOT_STARTED run to IN_PROGRESS and dispatch its agent run. Idempotent on IN_PROGRESS (returns the row). Terminal states → 409. Inputs still ingesting or in a failed terminal state → 409. The snapshot is built at this point (KB DOCUMENTs resolve to active versions, uploaded DVs are walked from inputs/, KB FOLDERs stay live).
|
|
557
|
+
* Start Workflow Run Handler
|
|
472
558
|
*/
|
|
473
|
-
async
|
|
474
|
-
const requestOptions = await this.
|
|
559
|
+
async startWorkflowRunRaw(requestParameters: StartWorkflowRunRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<WorkflowRunResponse>> {
|
|
560
|
+
const requestOptions = await this.startWorkflowRunRequestOpts(requestParameters);
|
|
475
561
|
const response = await this.request(requestOptions, initOverrides);
|
|
476
562
|
|
|
477
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
563
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => WorkflowRunResponseFromJSON(jsonValue));
|
|
478
564
|
}
|
|
479
565
|
|
|
480
566
|
/**
|
|
481
|
-
*
|
|
482
|
-
*
|
|
567
|
+
* Flip a NOT_STARTED run to IN_PROGRESS and dispatch its agent run. Idempotent on IN_PROGRESS (returns the row). Terminal states → 409. Inputs still ingesting or in a failed terminal state → 409. The snapshot is built at this point (KB DOCUMENTs resolve to active versions, uploaded DVs are walked from inputs/, KB FOLDERs stay live).
|
|
568
|
+
* Start Workflow Run Handler
|
|
483
569
|
*/
|
|
484
|
-
async
|
|
485
|
-
const response = await this.
|
|
570
|
+
async startWorkflowRun(requestParameters: StartWorkflowRunRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WorkflowRunResponse> {
|
|
571
|
+
const response = await this.startWorkflowRunRaw(requestParameters, initOverrides);
|
|
486
572
|
return await response.value();
|
|
487
573
|
}
|
|
488
574
|
|
|
489
575
|
/**
|
|
490
|
-
* Creates request options for
|
|
576
|
+
* Creates request options for updateWorkflowRun without sending the request
|
|
491
577
|
*/
|
|
492
|
-
async
|
|
578
|
+
async updateWorkflowRunRequestOpts(requestParameters: UpdateWorkflowRunOperationRequest): Promise<runtime.RequestOpts> {
|
|
493
579
|
if (requestParameters['runId'] == null) {
|
|
494
580
|
throw new runtime.RequiredError(
|
|
495
581
|
'runId',
|
|
496
|
-
'Required parameter "runId" was null or undefined when calling
|
|
582
|
+
'Required parameter "runId" was null or undefined when calling updateWorkflowRun().'
|
|
497
583
|
);
|
|
498
584
|
}
|
|
499
585
|
|
|
500
|
-
if (requestParameters['
|
|
586
|
+
if (requestParameters['updateWorkflowRunRequest'] == null) {
|
|
501
587
|
throw new runtime.RequiredError(
|
|
502
|
-
'
|
|
503
|
-
'Required parameter "
|
|
588
|
+
'updateWorkflowRunRequest',
|
|
589
|
+
'Required parameter "updateWorkflowRunRequest" was null or undefined when calling updateWorkflowRun().'
|
|
504
590
|
);
|
|
505
591
|
}
|
|
506
592
|
|
|
@@ -508,40 +594,42 @@ export class WorkflowRunsApi extends runtime.BaseAPI implements WorkflowRunsApiI
|
|
|
508
594
|
|
|
509
595
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
510
596
|
|
|
597
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
598
|
+
|
|
511
599
|
if (requestParameters['authorization'] != null) {
|
|
512
600
|
headerParameters['authorization'] = String(requestParameters['authorization']);
|
|
513
601
|
}
|
|
514
602
|
|
|
515
603
|
|
|
516
|
-
let urlPath = `/v1/workflow-runs/{run_id}
|
|
604
|
+
let urlPath = `/v1/workflow-runs/{run_id}`;
|
|
517
605
|
urlPath = urlPath.replace(`{${"run_id"}}`, encodeURIComponent(String(requestParameters['runId'])));
|
|
518
|
-
urlPath = urlPath.replace(`{${"path_part_id"}}`, encodeURIComponent(String(requestParameters['pathPartId'])));
|
|
519
606
|
|
|
520
607
|
return {
|
|
521
608
|
path: urlPath,
|
|
522
|
-
method: '
|
|
609
|
+
method: 'PATCH',
|
|
523
610
|
headers: headerParameters,
|
|
524
611
|
query: queryParameters,
|
|
612
|
+
body: UpdateWorkflowRunRequestToJSON(requestParameters['updateWorkflowRunRequest']),
|
|
525
613
|
};
|
|
526
614
|
}
|
|
527
615
|
|
|
528
616
|
/**
|
|
529
|
-
*
|
|
530
|
-
*
|
|
617
|
+
* Edit a NOT_STARTED run\'s KB scope and / or display name. Both body fields are optional but at least one must be present. The run must be ``NOT_STARTED`` (409 otherwise). Caller must be the triggerer or OWNER/ADMIN (403 otherwise). A name collision with a sibling run under the same definition\'s ``runs/`` folder maps to a 409 via ``IntegrityError`` translation.
|
|
618
|
+
* Update Workflow Run Handler
|
|
531
619
|
*/
|
|
532
|
-
async
|
|
533
|
-
const requestOptions = await this.
|
|
620
|
+
async updateWorkflowRunRaw(requestParameters: UpdateWorkflowRunOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<WorkflowRunResponse>> {
|
|
621
|
+
const requestOptions = await this.updateWorkflowRunRequestOpts(requestParameters);
|
|
534
622
|
const response = await this.request(requestOptions, initOverrides);
|
|
535
623
|
|
|
536
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
624
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => WorkflowRunResponseFromJSON(jsonValue));
|
|
537
625
|
}
|
|
538
626
|
|
|
539
627
|
/**
|
|
540
|
-
*
|
|
541
|
-
*
|
|
628
|
+
* Edit a NOT_STARTED run\'s KB scope and / or display name. Both body fields are optional but at least one must be present. The run must be ``NOT_STARTED`` (409 otherwise). Caller must be the triggerer or OWNER/ADMIN (403 otherwise). A name collision with a sibling run under the same definition\'s ``runs/`` folder maps to a 409 via ``IntegrityError`` translation.
|
|
629
|
+
* Update Workflow Run Handler
|
|
542
630
|
*/
|
|
543
|
-
async
|
|
544
|
-
const response = await this.
|
|
631
|
+
async updateWorkflowRun(requestParameters: UpdateWorkflowRunOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WorkflowRunResponse> {
|
|
632
|
+
const response = await this.updateWorkflowRunRaw(requestParameters, initOverrides);
|
|
545
633
|
return await response.value();
|
|
546
634
|
}
|
|
547
635
|
|
|
@@ -569,6 +657,10 @@ export class WorkflowRunsApi extends runtime.BaseAPI implements WorkflowRunsApiI
|
|
|
569
657
|
|
|
570
658
|
headerParameters['Content-Type'] = 'application/json';
|
|
571
659
|
|
|
660
|
+
if (requestParameters['authorization'] != null) {
|
|
661
|
+
headerParameters['authorization'] = String(requestParameters['authorization']);
|
|
662
|
+
}
|
|
663
|
+
|
|
572
664
|
|
|
573
665
|
let urlPath = `/v1/workflow-runs/{run_id}/callback`;
|
|
574
666
|
urlPath = urlPath.replace(`{${"run_id"}}`, encodeURIComponent(String(requestParameters['runId'])));
|
|
@@ -583,6 +675,7 @@ export class WorkflowRunsApi extends runtime.BaseAPI implements WorkflowRunsApiI
|
|
|
583
675
|
}
|
|
584
676
|
|
|
585
677
|
/**
|
|
678
|
+
* Terminal-state write seam for the in-process agent runner. The gating Temporal activities ``mark_run_completed_activity`` and ``mark_run_failed_activity`` authenticate as the triggering user (via ``assume_user``) and POST here. Only the user who triggered the run (or OWNER/ADMIN) may write its terminal state. The handler is idempotent: a callback against an already-terminal row returns ``already_terminal`` and the activity-level retry treats it as a no-op.
|
|
586
679
|
* Workflow Run Callback Handler
|
|
587
680
|
*/
|
|
588
681
|
async workflowRunCallbackRaw(requestParameters: WorkflowRunCallbackOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<WorkflowCallbackResponse>> {
|
|
@@ -593,6 +686,7 @@ export class WorkflowRunsApi extends runtime.BaseAPI implements WorkflowRunsApiI
|
|
|
593
686
|
}
|
|
594
687
|
|
|
595
688
|
/**
|
|
689
|
+
* Terminal-state write seam for the in-process agent runner. The gating Temporal activities ``mark_run_completed_activity`` and ``mark_run_failed_activity`` authenticate as the triggering user (via ``assume_user``) and POST here. Only the user who triggered the run (or OWNER/ADMIN) may write its terminal state. The handler is idempotent: a callback against an already-terminal row returns ``already_terminal`` and the activity-level retry treats it as a no-op.
|
|
596
690
|
* Workflow Run Callback Handler
|
|
597
691
|
*/
|
|
598
692
|
async workflowRunCallback(requestParameters: WorkflowRunCallbackOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WorkflowCallbackResponse> {
|
package/src/apis/index.ts
CHANGED
|
@@ -13,6 +13,7 @@ export * from './FeaturesApi';
|
|
|
13
13
|
export * from './FeedbackApi';
|
|
14
14
|
export * from './FoldersApi';
|
|
15
15
|
export * from './InvitesApi';
|
|
16
|
+
export * from './PathPartApprovalsApi';
|
|
16
17
|
export * from './PathPartsApi';
|
|
17
18
|
export * from './PublicApi';
|
|
18
19
|
export * from './SectionsApi';
|