@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
|
@@ -10,25 +10,27 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { CreateWorkflowDefinitionRequest,
|
|
13
|
+
import type { CreateWorkflowDefinitionRequest, PaginatedResponseWorkflowDefinitionResponse, PaginatedResponseWorkflowRunResponse, UpdateWorkflowDefinitionRequest, WorkflowDefinitionResponse, WorkflowRunResponse } from '../models/index';
|
|
14
14
|
export interface CreateWorkflowDefinitionOperationRequest {
|
|
15
15
|
createWorkflowDefinitionRequest: CreateWorkflowDefinitionRequest;
|
|
16
16
|
authorization?: string | null;
|
|
17
17
|
ksUat?: string | null;
|
|
18
18
|
}
|
|
19
|
-
export interface
|
|
19
|
+
export interface CreateWorkflowRunRequest {
|
|
20
20
|
definitionId: string;
|
|
21
21
|
authorization?: string | null;
|
|
22
22
|
ksUat?: string | null;
|
|
23
|
+
files?: Array<Blob>;
|
|
24
|
+
inputScope?: string | null;
|
|
25
|
+
idempotencyKey?: string | null;
|
|
23
26
|
}
|
|
24
|
-
export interface
|
|
27
|
+
export interface DeleteWorkflowDefinitionRequest {
|
|
25
28
|
definitionId: string;
|
|
26
29
|
authorization?: string | null;
|
|
27
30
|
ksUat?: string | null;
|
|
28
31
|
}
|
|
29
|
-
export interface
|
|
32
|
+
export interface GetWorkflowDefinitionRequest {
|
|
30
33
|
definitionId: string;
|
|
31
|
-
invokeWorkflowRequest: InvokeWorkflowRequest;
|
|
32
34
|
authorization?: string | null;
|
|
33
35
|
ksUat?: string | null;
|
|
34
36
|
}
|
|
@@ -83,41 +85,48 @@ export interface WorkflowDefinitionsApiInterface {
|
|
|
83
85
|
*/
|
|
84
86
|
createWorkflowDefinition(requestParameters: CreateWorkflowDefinitionOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WorkflowDefinitionResponse>;
|
|
85
87
|
/**
|
|
86
|
-
* Creates request options for
|
|
88
|
+
* Creates request options for createWorkflowRun without sending the request
|
|
87
89
|
* @param {string} definitionId
|
|
88
90
|
* @param {string} [authorization]
|
|
89
91
|
* @param {string} [ksUat]
|
|
92
|
+
* @param {Array<Blob>} [files] Files to ingest under the run\\\'s ``inputs/`` folder. Each filename may include POSIX-style ``/`` separators to reconstruct a folder structure under ``inputs/``.
|
|
93
|
+
* @param {string} [inputScope] JSON array of ``DOCUMENT`` or ``FOLDER`` path_part UUIDs referenced from the existing knowledge base. Combined with ``files`` in a single request to form the run\\\'s input scope.
|
|
94
|
+
* @param {string} [idempotencyKey] Optional key to prevent duplicate runs from retries.
|
|
90
95
|
* @throws {RequiredError}
|
|
91
96
|
* @memberof WorkflowDefinitionsApiInterface
|
|
92
97
|
*/
|
|
93
|
-
|
|
98
|
+
createWorkflowRunRequestOpts(requestParameters: CreateWorkflowRunRequest): Promise<runtime.RequestOpts>;
|
|
94
99
|
/**
|
|
95
|
-
*
|
|
96
|
-
* @summary
|
|
100
|
+
* Trigger a workflow run from uploaded files and/or KB references. The merged endpoint accepts both kinds of input in one multipart request. Each uploaded file is ingested under ``runs/<id>/inputs/`` (S3 + DB rows only; no Temporal pipeline). Each ``input_scope`` entry is resolved per its part_type: a DOCUMENT is pinned to its active ``DOCUMENT_VERSION``; a FOLDER is pinned by reference only and read live by the runner. A request that supplies neither is rejected.
|
|
101
|
+
* @summary Create Workflow Run Handler
|
|
97
102
|
* @param {string} definitionId
|
|
98
103
|
* @param {string} [authorization]
|
|
99
104
|
* @param {string} [ksUat]
|
|
105
|
+
* @param {Array<Blob>} [files] Files to ingest under the run\\\'s ``inputs/`` folder. Each filename may include POSIX-style ``/`` separators to reconstruct a folder structure under ``inputs/``.
|
|
106
|
+
* @param {string} [inputScope] JSON array of ``DOCUMENT`` or ``FOLDER`` path_part UUIDs referenced from the existing knowledge base. Combined with ``files`` in a single request to form the run\\\'s input scope.
|
|
107
|
+
* @param {string} [idempotencyKey] Optional key to prevent duplicate runs from retries.
|
|
100
108
|
* @param {*} [options] Override http request option.
|
|
101
109
|
* @throws {RequiredError}
|
|
102
110
|
* @memberof WorkflowDefinitionsApiInterface
|
|
103
111
|
*/
|
|
104
|
-
|
|
112
|
+
createWorkflowRunRaw(requestParameters: CreateWorkflowRunRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<WorkflowRunResponse>>;
|
|
105
113
|
/**
|
|
106
|
-
*
|
|
114
|
+
* Trigger a workflow run from uploaded files and/or KB references. The merged endpoint accepts both kinds of input in one multipart request. Each uploaded file is ingested under ``runs/<id>/inputs/`` (S3 + DB rows only; no Temporal pipeline). Each ``input_scope`` entry is resolved per its part_type: a DOCUMENT is pinned to its active ``DOCUMENT_VERSION``; a FOLDER is pinned by reference only and read live by the runner. A request that supplies neither is rejected.
|
|
115
|
+
* Create Workflow Run Handler
|
|
107
116
|
*/
|
|
108
|
-
|
|
117
|
+
createWorkflowRun(requestParameters: CreateWorkflowRunRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WorkflowRunResponse>;
|
|
109
118
|
/**
|
|
110
|
-
* Creates request options for
|
|
119
|
+
* Creates request options for deleteWorkflowDefinition without sending the request
|
|
111
120
|
* @param {string} definitionId
|
|
112
121
|
* @param {string} [authorization]
|
|
113
122
|
* @param {string} [ksUat]
|
|
114
123
|
* @throws {RequiredError}
|
|
115
124
|
* @memberof WorkflowDefinitionsApiInterface
|
|
116
125
|
*/
|
|
117
|
-
|
|
126
|
+
deleteWorkflowDefinitionRequestOpts(requestParameters: DeleteWorkflowDefinitionRequest): Promise<runtime.RequestOpts>;
|
|
118
127
|
/**
|
|
119
128
|
*
|
|
120
|
-
* @summary
|
|
129
|
+
* @summary Delete Workflow Definition Handler
|
|
121
130
|
* @param {string} definitionId
|
|
122
131
|
* @param {string} [authorization]
|
|
123
132
|
* @param {string} [ksUat]
|
|
@@ -125,38 +134,35 @@ export interface WorkflowDefinitionsApiInterface {
|
|
|
125
134
|
* @throws {RequiredError}
|
|
126
135
|
* @memberof WorkflowDefinitionsApiInterface
|
|
127
136
|
*/
|
|
128
|
-
|
|
137
|
+
deleteWorkflowDefinitionRaw(requestParameters: DeleteWorkflowDefinitionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
129
138
|
/**
|
|
130
|
-
*
|
|
139
|
+
* Delete Workflow Definition Handler
|
|
131
140
|
*/
|
|
132
|
-
|
|
141
|
+
deleteWorkflowDefinition(requestParameters: DeleteWorkflowDefinitionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
133
142
|
/**
|
|
134
|
-
* Creates request options for
|
|
143
|
+
* Creates request options for getWorkflowDefinition without sending the request
|
|
135
144
|
* @param {string} definitionId
|
|
136
|
-
* @param {InvokeWorkflowRequest} invokeWorkflowRequest
|
|
137
145
|
* @param {string} [authorization]
|
|
138
146
|
* @param {string} [ksUat]
|
|
139
147
|
* @throws {RequiredError}
|
|
140
148
|
* @memberof WorkflowDefinitionsApiInterface
|
|
141
149
|
*/
|
|
142
|
-
|
|
150
|
+
getWorkflowDefinitionRequestOpts(requestParameters: GetWorkflowDefinitionRequest): Promise<runtime.RequestOpts>;
|
|
143
151
|
/**
|
|
144
|
-
*
|
|
145
|
-
* @summary
|
|
152
|
+
*
|
|
153
|
+
* @summary Get Workflow Definition Handler
|
|
146
154
|
* @param {string} definitionId
|
|
147
|
-
* @param {InvokeWorkflowRequest} invokeWorkflowRequest
|
|
148
155
|
* @param {string} [authorization]
|
|
149
156
|
* @param {string} [ksUat]
|
|
150
157
|
* @param {*} [options] Override http request option.
|
|
151
158
|
* @throws {RequiredError}
|
|
152
159
|
* @memberof WorkflowDefinitionsApiInterface
|
|
153
160
|
*/
|
|
154
|
-
|
|
161
|
+
getWorkflowDefinitionRaw(requestParameters: GetWorkflowDefinitionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<WorkflowDefinitionResponse>>;
|
|
155
162
|
/**
|
|
156
|
-
*
|
|
157
|
-
* Invoke Workflow Handler
|
|
163
|
+
* Get Workflow Definition Handler
|
|
158
164
|
*/
|
|
159
|
-
|
|
165
|
+
getWorkflowDefinition(requestParameters: GetWorkflowDefinitionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WorkflowDefinitionResponse>;
|
|
160
166
|
/**
|
|
161
167
|
* Creates request options for listWorkflowDefinitions without sending the request
|
|
162
168
|
* @param {number} [limit] Number of items per page
|
|
@@ -254,6 +260,20 @@ export declare class WorkflowDefinitionsApi extends runtime.BaseAPI implements W
|
|
|
254
260
|
* Create Workflow Definition Handler
|
|
255
261
|
*/
|
|
256
262
|
createWorkflowDefinition(requestParameters: CreateWorkflowDefinitionOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WorkflowDefinitionResponse>;
|
|
263
|
+
/**
|
|
264
|
+
* Creates request options for createWorkflowRun without sending the request
|
|
265
|
+
*/
|
|
266
|
+
createWorkflowRunRequestOpts(requestParameters: CreateWorkflowRunRequest): Promise<runtime.RequestOpts>;
|
|
267
|
+
/**
|
|
268
|
+
* Trigger a workflow run from uploaded files and/or KB references. The merged endpoint accepts both kinds of input in one multipart request. Each uploaded file is ingested under ``runs/<id>/inputs/`` (S3 + DB rows only; no Temporal pipeline). Each ``input_scope`` entry is resolved per its part_type: a DOCUMENT is pinned to its active ``DOCUMENT_VERSION``; a FOLDER is pinned by reference only and read live by the runner. A request that supplies neither is rejected.
|
|
269
|
+
* Create Workflow Run Handler
|
|
270
|
+
*/
|
|
271
|
+
createWorkflowRunRaw(requestParameters: CreateWorkflowRunRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<WorkflowRunResponse>>;
|
|
272
|
+
/**
|
|
273
|
+
* Trigger a workflow run from uploaded files and/or KB references. The merged endpoint accepts both kinds of input in one multipart request. Each uploaded file is ingested under ``runs/<id>/inputs/`` (S3 + DB rows only; no Temporal pipeline). Each ``input_scope`` entry is resolved per its part_type: a DOCUMENT is pinned to its active ``DOCUMENT_VERSION``; a FOLDER is pinned by reference only and read live by the runner. A request that supplies neither is rejected.
|
|
274
|
+
* Create Workflow Run Handler
|
|
275
|
+
*/
|
|
276
|
+
createWorkflowRun(requestParameters: CreateWorkflowRunRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WorkflowRunResponse>;
|
|
257
277
|
/**
|
|
258
278
|
* Creates request options for deleteWorkflowDefinition without sending the request
|
|
259
279
|
*/
|
|
@@ -278,20 +298,6 @@ export declare class WorkflowDefinitionsApi extends runtime.BaseAPI implements W
|
|
|
278
298
|
* Get Workflow Definition Handler
|
|
279
299
|
*/
|
|
280
300
|
getWorkflowDefinition(requestParameters: GetWorkflowDefinitionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WorkflowDefinitionResponse>;
|
|
281
|
-
/**
|
|
282
|
-
* Creates request options for invokeWorkflow without sending the request
|
|
283
|
-
*/
|
|
284
|
-
invokeWorkflowRequestOpts(requestParameters: InvokeWorkflowOperationRequest): Promise<runtime.RequestOpts>;
|
|
285
|
-
/**
|
|
286
|
-
* Trigger a workflow run. All business logic lives in ``WorkflowInvocationService``. This handler only orchestrates the two phases: 1. **Phase 1 (in-session):** validate, build snapshot, persist run row, mint JWT. Wrapped in a single DB session so the run insert and the idempotency-race resolution share a transaction. 2. **Phase 2 (out-of-session):** dispatch HTTP call to the SELF_HOSTED runner. Best-effort — the run is already persisted, so failures here transition the run to ``FAILED`` rather than rejecting the request.
|
|
287
|
-
* Invoke Workflow Handler
|
|
288
|
-
*/
|
|
289
|
-
invokeWorkflowRaw(requestParameters: InvokeWorkflowOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<WorkflowRunResponse>>;
|
|
290
|
-
/**
|
|
291
|
-
* Trigger a workflow run. All business logic lives in ``WorkflowInvocationService``. This handler only orchestrates the two phases: 1. **Phase 1 (in-session):** validate, build snapshot, persist run row, mint JWT. Wrapped in a single DB session so the run insert and the idempotency-race resolution share a transaction. 2. **Phase 2 (out-of-session):** dispatch HTTP call to the SELF_HOSTED runner. Best-effort — the run is already persisted, so failures here transition the run to ``FAILED`` rather than rejecting the request.
|
|
292
|
-
* Invoke Workflow Handler
|
|
293
|
-
*/
|
|
294
|
-
invokeWorkflow(requestParameters: InvokeWorkflowOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WorkflowRunResponse>;
|
|
295
301
|
/**
|
|
296
302
|
* Creates request options for listWorkflowDefinitions without sending the request
|
|
297
303
|
*/
|
|
@@ -21,7 +21,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
21
21
|
});
|
|
22
22
|
};
|
|
23
23
|
import * as runtime from '../runtime';
|
|
24
|
-
import { CreateWorkflowDefinitionRequestToJSON,
|
|
24
|
+
import { CreateWorkflowDefinitionRequestToJSON, PaginatedResponseWorkflowDefinitionResponseFromJSON, PaginatedResponseWorkflowRunResponseFromJSON, UpdateWorkflowDefinitionRequestToJSON, WorkflowDefinitionResponseFromJSON, WorkflowRunResponseFromJSON, } from '../models/index';
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
27
|
*/
|
|
@@ -70,53 +70,83 @@ export class WorkflowDefinitionsApi extends runtime.BaseAPI {
|
|
|
70
70
|
});
|
|
71
71
|
}
|
|
72
72
|
/**
|
|
73
|
-
* Creates request options for
|
|
73
|
+
* Creates request options for createWorkflowRun without sending the request
|
|
74
74
|
*/
|
|
75
|
-
|
|
75
|
+
createWorkflowRunRequestOpts(requestParameters) {
|
|
76
76
|
return __awaiter(this, void 0, void 0, function* () {
|
|
77
77
|
if (requestParameters['definitionId'] == null) {
|
|
78
|
-
throw new runtime.RequiredError('definitionId', 'Required parameter "definitionId" was null or undefined when calling
|
|
78
|
+
throw new runtime.RequiredError('definitionId', 'Required parameter "definitionId" was null or undefined when calling createWorkflowRun().');
|
|
79
79
|
}
|
|
80
80
|
const queryParameters = {};
|
|
81
81
|
const headerParameters = {};
|
|
82
82
|
if (requestParameters['authorization'] != null) {
|
|
83
83
|
headerParameters['authorization'] = String(requestParameters['authorization']);
|
|
84
84
|
}
|
|
85
|
-
|
|
85
|
+
const consumes = [
|
|
86
|
+
{ contentType: 'multipart/form-data' },
|
|
87
|
+
];
|
|
88
|
+
// @ts-ignore: canConsumeForm may be unused
|
|
89
|
+
const canConsumeForm = runtime.canConsumeForm(consumes);
|
|
90
|
+
let formParams;
|
|
91
|
+
let useForm = false;
|
|
92
|
+
// use FormData to transmit files using content-type "multipart/form-data"
|
|
93
|
+
useForm = canConsumeForm;
|
|
94
|
+
if (useForm) {
|
|
95
|
+
formParams = new FormData();
|
|
96
|
+
}
|
|
97
|
+
else {
|
|
98
|
+
formParams = new URLSearchParams();
|
|
99
|
+
}
|
|
100
|
+
if (requestParameters['files'] != null) {
|
|
101
|
+
requestParameters['files'].forEach((element) => {
|
|
102
|
+
formParams.append('files', element);
|
|
103
|
+
});
|
|
104
|
+
}
|
|
105
|
+
if (requestParameters['inputScope'] != null) {
|
|
106
|
+
formParams.append('input_scope', requestParameters['inputScope']);
|
|
107
|
+
}
|
|
108
|
+
if (requestParameters['idempotencyKey'] != null) {
|
|
109
|
+
formParams.append('idempotency_key', requestParameters['idempotencyKey']);
|
|
110
|
+
}
|
|
111
|
+
let urlPath = `/v1/workflow-definitions/{definition_id}/runs`;
|
|
86
112
|
urlPath = urlPath.replace(`{${"definition_id"}}`, encodeURIComponent(String(requestParameters['definitionId'])));
|
|
87
113
|
return {
|
|
88
114
|
path: urlPath,
|
|
89
|
-
method: '
|
|
115
|
+
method: 'POST',
|
|
90
116
|
headers: headerParameters,
|
|
91
117
|
query: queryParameters,
|
|
118
|
+
body: formParams,
|
|
92
119
|
};
|
|
93
120
|
});
|
|
94
121
|
}
|
|
95
122
|
/**
|
|
96
|
-
*
|
|
123
|
+
* Trigger a workflow run from uploaded files and/or KB references. The merged endpoint accepts both kinds of input in one multipart request. Each uploaded file is ingested under ``runs/<id>/inputs/`` (S3 + DB rows only; no Temporal pipeline). Each ``input_scope`` entry is resolved per its part_type: a DOCUMENT is pinned to its active ``DOCUMENT_VERSION``; a FOLDER is pinned by reference only and read live by the runner. A request that supplies neither is rejected.
|
|
124
|
+
* Create Workflow Run Handler
|
|
97
125
|
*/
|
|
98
|
-
|
|
126
|
+
createWorkflowRunRaw(requestParameters, initOverrides) {
|
|
99
127
|
return __awaiter(this, void 0, void 0, function* () {
|
|
100
|
-
const requestOptions = yield this.
|
|
128
|
+
const requestOptions = yield this.createWorkflowRunRequestOpts(requestParameters);
|
|
101
129
|
const response = yield this.request(requestOptions, initOverrides);
|
|
102
|
-
return new runtime.
|
|
130
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => WorkflowRunResponseFromJSON(jsonValue));
|
|
103
131
|
});
|
|
104
132
|
}
|
|
105
133
|
/**
|
|
106
|
-
*
|
|
134
|
+
* Trigger a workflow run from uploaded files and/or KB references. The merged endpoint accepts both kinds of input in one multipart request. Each uploaded file is ingested under ``runs/<id>/inputs/`` (S3 + DB rows only; no Temporal pipeline). Each ``input_scope`` entry is resolved per its part_type: a DOCUMENT is pinned to its active ``DOCUMENT_VERSION``; a FOLDER is pinned by reference only and read live by the runner. A request that supplies neither is rejected.
|
|
135
|
+
* Create Workflow Run Handler
|
|
107
136
|
*/
|
|
108
|
-
|
|
137
|
+
createWorkflowRun(requestParameters, initOverrides) {
|
|
109
138
|
return __awaiter(this, void 0, void 0, function* () {
|
|
110
|
-
yield this.
|
|
139
|
+
const response = yield this.createWorkflowRunRaw(requestParameters, initOverrides);
|
|
140
|
+
return yield response.value();
|
|
111
141
|
});
|
|
112
142
|
}
|
|
113
143
|
/**
|
|
114
|
-
* Creates request options for
|
|
144
|
+
* Creates request options for deleteWorkflowDefinition without sending the request
|
|
115
145
|
*/
|
|
116
|
-
|
|
146
|
+
deleteWorkflowDefinitionRequestOpts(requestParameters) {
|
|
117
147
|
return __awaiter(this, void 0, void 0, function* () {
|
|
118
148
|
if (requestParameters['definitionId'] == null) {
|
|
119
|
-
throw new runtime.RequiredError('definitionId', 'Required parameter "definitionId" was null or undefined when calling
|
|
149
|
+
throw new runtime.RequiredError('definitionId', 'Required parameter "definitionId" was null or undefined when calling deleteWorkflowDefinition().');
|
|
120
150
|
}
|
|
121
151
|
const queryParameters = {};
|
|
122
152
|
const headerParameters = {};
|
|
@@ -127,77 +157,69 @@ export class WorkflowDefinitionsApi extends runtime.BaseAPI {
|
|
|
127
157
|
urlPath = urlPath.replace(`{${"definition_id"}}`, encodeURIComponent(String(requestParameters['definitionId'])));
|
|
128
158
|
return {
|
|
129
159
|
path: urlPath,
|
|
130
|
-
method: '
|
|
160
|
+
method: 'DELETE',
|
|
131
161
|
headers: headerParameters,
|
|
132
162
|
query: queryParameters,
|
|
133
163
|
};
|
|
134
164
|
});
|
|
135
165
|
}
|
|
136
166
|
/**
|
|
137
|
-
*
|
|
167
|
+
* Delete Workflow Definition Handler
|
|
138
168
|
*/
|
|
139
|
-
|
|
169
|
+
deleteWorkflowDefinitionRaw(requestParameters, initOverrides) {
|
|
140
170
|
return __awaiter(this, void 0, void 0, function* () {
|
|
141
|
-
const requestOptions = yield this.
|
|
171
|
+
const requestOptions = yield this.deleteWorkflowDefinitionRequestOpts(requestParameters);
|
|
142
172
|
const response = yield this.request(requestOptions, initOverrides);
|
|
143
|
-
return new runtime.
|
|
173
|
+
return new runtime.VoidApiResponse(response);
|
|
144
174
|
});
|
|
145
175
|
}
|
|
146
176
|
/**
|
|
147
|
-
*
|
|
177
|
+
* Delete Workflow Definition Handler
|
|
148
178
|
*/
|
|
149
|
-
|
|
179
|
+
deleteWorkflowDefinition(requestParameters, initOverrides) {
|
|
150
180
|
return __awaiter(this, void 0, void 0, function* () {
|
|
151
|
-
|
|
152
|
-
return yield response.value();
|
|
181
|
+
yield this.deleteWorkflowDefinitionRaw(requestParameters, initOverrides);
|
|
153
182
|
});
|
|
154
183
|
}
|
|
155
184
|
/**
|
|
156
|
-
* Creates request options for
|
|
185
|
+
* Creates request options for getWorkflowDefinition without sending the request
|
|
157
186
|
*/
|
|
158
|
-
|
|
187
|
+
getWorkflowDefinitionRequestOpts(requestParameters) {
|
|
159
188
|
return __awaiter(this, void 0, void 0, function* () {
|
|
160
189
|
if (requestParameters['definitionId'] == null) {
|
|
161
|
-
throw new runtime.RequiredError('definitionId', 'Required parameter "definitionId" was null or undefined when calling
|
|
162
|
-
}
|
|
163
|
-
if (requestParameters['invokeWorkflowRequest'] == null) {
|
|
164
|
-
throw new runtime.RequiredError('invokeWorkflowRequest', 'Required parameter "invokeWorkflowRequest" was null or undefined when calling invokeWorkflow().');
|
|
190
|
+
throw new runtime.RequiredError('definitionId', 'Required parameter "definitionId" was null or undefined when calling getWorkflowDefinition().');
|
|
165
191
|
}
|
|
166
192
|
const queryParameters = {};
|
|
167
193
|
const headerParameters = {};
|
|
168
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
169
194
|
if (requestParameters['authorization'] != null) {
|
|
170
195
|
headerParameters['authorization'] = String(requestParameters['authorization']);
|
|
171
196
|
}
|
|
172
|
-
let urlPath = `/v1/workflow-definitions/{definition_id}
|
|
197
|
+
let urlPath = `/v1/workflow-definitions/{definition_id}`;
|
|
173
198
|
urlPath = urlPath.replace(`{${"definition_id"}}`, encodeURIComponent(String(requestParameters['definitionId'])));
|
|
174
199
|
return {
|
|
175
200
|
path: urlPath,
|
|
176
|
-
method: '
|
|
201
|
+
method: 'GET',
|
|
177
202
|
headers: headerParameters,
|
|
178
203
|
query: queryParameters,
|
|
179
|
-
body: InvokeWorkflowRequestToJSON(requestParameters['invokeWorkflowRequest']),
|
|
180
204
|
};
|
|
181
205
|
});
|
|
182
206
|
}
|
|
183
207
|
/**
|
|
184
|
-
*
|
|
185
|
-
* Invoke Workflow Handler
|
|
208
|
+
* Get Workflow Definition Handler
|
|
186
209
|
*/
|
|
187
|
-
|
|
210
|
+
getWorkflowDefinitionRaw(requestParameters, initOverrides) {
|
|
188
211
|
return __awaiter(this, void 0, void 0, function* () {
|
|
189
|
-
const requestOptions = yield this.
|
|
212
|
+
const requestOptions = yield this.getWorkflowDefinitionRequestOpts(requestParameters);
|
|
190
213
|
const response = yield this.request(requestOptions, initOverrides);
|
|
191
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
214
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => WorkflowDefinitionResponseFromJSON(jsonValue));
|
|
192
215
|
});
|
|
193
216
|
}
|
|
194
217
|
/**
|
|
195
|
-
*
|
|
196
|
-
* Invoke Workflow Handler
|
|
218
|
+
* Get Workflow Definition Handler
|
|
197
219
|
*/
|
|
198
|
-
|
|
220
|
+
getWorkflowDefinition(requestParameters, initOverrides) {
|
|
199
221
|
return __awaiter(this, void 0, void 0, function* () {
|
|
200
|
-
const response = yield this.
|
|
222
|
+
const response = yield this.getWorkflowDefinitionRaw(requestParameters, initOverrides);
|
|
201
223
|
return yield response.value();
|
|
202
224
|
});
|
|
203
225
|
}
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { AppendMemoryChunkRequest, EditMemoryChunkRequest,
|
|
13
|
+
import type { AppendMemoryChunkRequest, EditMemoryChunkRequest, MemoryChunkResponse, PaginatedResponseMemoryChunkResponse } from '../models/index';
|
|
14
14
|
export interface AppendWorkflowMemoryChunkRequest {
|
|
15
15
|
definitionId: string;
|
|
16
16
|
appendMemoryChunkRequest: AppendMemoryChunkRequest;
|
|
@@ -38,6 +38,8 @@ export interface GetWorkflowMemoryChunkRequest {
|
|
|
38
38
|
}
|
|
39
39
|
export interface ListWorkflowMemoryChunksRequest {
|
|
40
40
|
definitionId: string;
|
|
41
|
+
limit?: number;
|
|
42
|
+
offset?: number;
|
|
41
43
|
authorization?: string | null;
|
|
42
44
|
ksUat?: string | null;
|
|
43
45
|
}
|
|
@@ -59,7 +61,7 @@ export interface WorkflowMemoryApiInterface {
|
|
|
59
61
|
*/
|
|
60
62
|
appendWorkflowMemoryChunkRequestOpts(requestParameters: AppendWorkflowMemoryChunkRequest): Promise<runtime.RequestOpts>;
|
|
61
63
|
/**
|
|
62
|
-
*
|
|
64
|
+
*
|
|
63
65
|
* @summary Append Workflow Memory Chunk Handler
|
|
64
66
|
* @param {string} definitionId
|
|
65
67
|
* @param {AppendMemoryChunkRequest} appendMemoryChunkRequest
|
|
@@ -71,7 +73,6 @@ export interface WorkflowMemoryApiInterface {
|
|
|
71
73
|
*/
|
|
72
74
|
appendWorkflowMemoryChunkRaw(requestParameters: AppendWorkflowMemoryChunkRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<MemoryChunkResponse>>;
|
|
73
75
|
/**
|
|
74
|
-
* Append a new memory chunk. Exposed for external agents (e.g. self-hosted runners) that need to capture learnings without touching the DB directly. The new chunk\'s ``chunk_id`` is server-assigned. Each call snapshots a new DocumentVersion, just like edit/forget.
|
|
75
76
|
* Append Workflow Memory Chunk Handler
|
|
76
77
|
*/
|
|
77
78
|
appendWorkflowMemoryChunk(requestParameters: AppendWorkflowMemoryChunkRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MemoryChunkResponse>;
|
|
@@ -158,6 +159,8 @@ export interface WorkflowMemoryApiInterface {
|
|
|
158
159
|
/**
|
|
159
160
|
* Creates request options for listWorkflowMemoryChunks without sending the request
|
|
160
161
|
* @param {string} definitionId
|
|
162
|
+
* @param {number} [limit] Number of items per page
|
|
163
|
+
* @param {number} [offset] Number of items to skip
|
|
161
164
|
* @param {string} [authorization]
|
|
162
165
|
* @param {string} [ksUat]
|
|
163
166
|
* @throws {RequiredError}
|
|
@@ -168,17 +171,19 @@ export interface WorkflowMemoryApiInterface {
|
|
|
168
171
|
*
|
|
169
172
|
* @summary List Workflow Memory Chunks Handler
|
|
170
173
|
* @param {string} definitionId
|
|
174
|
+
* @param {number} [limit] Number of items per page
|
|
175
|
+
* @param {number} [offset] Number of items to skip
|
|
171
176
|
* @param {string} [authorization]
|
|
172
177
|
* @param {string} [ksUat]
|
|
173
178
|
* @param {*} [options] Override http request option.
|
|
174
179
|
* @throws {RequiredError}
|
|
175
180
|
* @memberof WorkflowMemoryApiInterface
|
|
176
181
|
*/
|
|
177
|
-
listWorkflowMemoryChunksRaw(requestParameters: ListWorkflowMemoryChunksRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
182
|
+
listWorkflowMemoryChunksRaw(requestParameters: ListWorkflowMemoryChunksRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedResponseMemoryChunkResponse>>;
|
|
178
183
|
/**
|
|
179
184
|
* List Workflow Memory Chunks Handler
|
|
180
185
|
*/
|
|
181
|
-
listWorkflowMemoryChunks(requestParameters: ListWorkflowMemoryChunksRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
186
|
+
listWorkflowMemoryChunks(requestParameters: ListWorkflowMemoryChunksRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedResponseMemoryChunkResponse>;
|
|
182
187
|
}
|
|
183
188
|
/**
|
|
184
189
|
*
|
|
@@ -189,12 +194,10 @@ export declare class WorkflowMemoryApi extends runtime.BaseAPI implements Workfl
|
|
|
189
194
|
*/
|
|
190
195
|
appendWorkflowMemoryChunkRequestOpts(requestParameters: AppendWorkflowMemoryChunkRequest): Promise<runtime.RequestOpts>;
|
|
191
196
|
/**
|
|
192
|
-
* Append a new memory chunk. Exposed for external agents (e.g. self-hosted runners) that need to capture learnings without touching the DB directly. The new chunk\'s ``chunk_id`` is server-assigned. Each call snapshots a new DocumentVersion, just like edit/forget.
|
|
193
197
|
* Append Workflow Memory Chunk Handler
|
|
194
198
|
*/
|
|
195
199
|
appendWorkflowMemoryChunkRaw(requestParameters: AppendWorkflowMemoryChunkRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<MemoryChunkResponse>>;
|
|
196
200
|
/**
|
|
197
|
-
* Append a new memory chunk. Exposed for external agents (e.g. self-hosted runners) that need to capture learnings without touching the DB directly. The new chunk\'s ``chunk_id`` is server-assigned. Each call snapshots a new DocumentVersion, just like edit/forget.
|
|
198
201
|
* Append Workflow Memory Chunk Handler
|
|
199
202
|
*/
|
|
200
203
|
appendWorkflowMemoryChunk(requestParameters: AppendWorkflowMemoryChunkRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MemoryChunkResponse>;
|
|
@@ -241,9 +244,9 @@ export declare class WorkflowMemoryApi extends runtime.BaseAPI implements Workfl
|
|
|
241
244
|
/**
|
|
242
245
|
* List Workflow Memory Chunks Handler
|
|
243
246
|
*/
|
|
244
|
-
listWorkflowMemoryChunksRaw(requestParameters: ListWorkflowMemoryChunksRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
247
|
+
listWorkflowMemoryChunksRaw(requestParameters: ListWorkflowMemoryChunksRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedResponseMemoryChunkResponse>>;
|
|
245
248
|
/**
|
|
246
249
|
* List Workflow Memory Chunks Handler
|
|
247
250
|
*/
|
|
248
|
-
listWorkflowMemoryChunks(requestParameters: ListWorkflowMemoryChunksRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
251
|
+
listWorkflowMemoryChunks(requestParameters: ListWorkflowMemoryChunksRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedResponseMemoryChunkResponse>;
|
|
249
252
|
}
|
|
@@ -21,7 +21,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
21
21
|
});
|
|
22
22
|
};
|
|
23
23
|
import * as runtime from '../runtime';
|
|
24
|
-
import { AppendMemoryChunkRequestToJSON, EditMemoryChunkRequestToJSON,
|
|
24
|
+
import { AppendMemoryChunkRequestToJSON, EditMemoryChunkRequestToJSON, MemoryChunkResponseFromJSON, PaginatedResponseMemoryChunkResponseFromJSON, } from '../models/index';
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
27
|
*/
|
|
@@ -55,7 +55,6 @@ export class WorkflowMemoryApi extends runtime.BaseAPI {
|
|
|
55
55
|
});
|
|
56
56
|
}
|
|
57
57
|
/**
|
|
58
|
-
* Append a new memory chunk. Exposed for external agents (e.g. self-hosted runners) that need to capture learnings without touching the DB directly. The new chunk\'s ``chunk_id`` is server-assigned. Each call snapshots a new DocumentVersion, just like edit/forget.
|
|
59
58
|
* Append Workflow Memory Chunk Handler
|
|
60
59
|
*/
|
|
61
60
|
appendWorkflowMemoryChunkRaw(requestParameters, initOverrides) {
|
|
@@ -66,7 +65,6 @@ export class WorkflowMemoryApi extends runtime.BaseAPI {
|
|
|
66
65
|
});
|
|
67
66
|
}
|
|
68
67
|
/**
|
|
69
|
-
* Append a new memory chunk. Exposed for external agents (e.g. self-hosted runners) that need to capture learnings without touching the DB directly. The new chunk\'s ``chunk_id`` is server-assigned. Each call snapshots a new DocumentVersion, just like edit/forget.
|
|
70
68
|
* Append Workflow Memory Chunk Handler
|
|
71
69
|
*/
|
|
72
70
|
appendWorkflowMemoryChunk(requestParameters, initOverrides) {
|
|
@@ -226,6 +224,12 @@ export class WorkflowMemoryApi extends runtime.BaseAPI {
|
|
|
226
224
|
throw new runtime.RequiredError('definitionId', 'Required parameter "definitionId" was null or undefined when calling listWorkflowMemoryChunks().');
|
|
227
225
|
}
|
|
228
226
|
const queryParameters = {};
|
|
227
|
+
if (requestParameters['limit'] != null) {
|
|
228
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
229
|
+
}
|
|
230
|
+
if (requestParameters['offset'] != null) {
|
|
231
|
+
queryParameters['offset'] = requestParameters['offset'];
|
|
232
|
+
}
|
|
229
233
|
const headerParameters = {};
|
|
230
234
|
if (requestParameters['authorization'] != null) {
|
|
231
235
|
headerParameters['authorization'] = String(requestParameters['authorization']);
|
|
@@ -247,7 +251,7 @@ export class WorkflowMemoryApi extends runtime.BaseAPI {
|
|
|
247
251
|
return __awaiter(this, void 0, void 0, function* () {
|
|
248
252
|
const requestOptions = yield this.listWorkflowMemoryChunksRequestOpts(requestParameters);
|
|
249
253
|
const response = yield this.request(requestOptions, initOverrides);
|
|
250
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
254
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedResponseMemoryChunkResponseFromJSON(jsonValue));
|
|
251
255
|
});
|
|
252
256
|
}
|
|
253
257
|
/**
|