@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
package/src/apis/PathPartsApi.ts
CHANGED
|
@@ -356,7 +356,7 @@ export interface PathPartsApiInterface {
|
|
|
356
356
|
listPathPartsRequestOpts(requestParameters: ListPathPartsRequest): Promise<runtime.RequestOpts>;
|
|
357
357
|
|
|
358
358
|
/**
|
|
359
|
-
* List path parts
|
|
359
|
+
* List path parts under a parent with traversal. This is a generic endpoint for traversing the path hierarchy. It returns the navigable, container-like nodes of the tree: FOLDER, WORKFLOW_DEFINITION, and WORKFLOW_RUN path parts. - If parent_path_id is not provided, lists contents of the root folder. - max_depth controls how deep to traverse (1 = direct children only). - sort_order controls the ordering: LOGICAL (linked-list), NAME, UPDATED_AT, CREATED_AT. For listing folder contents that includes documents with enriched metadata, use GET /folders/{folder_id}/contents instead.
|
|
360
360
|
* @summary List Path Parts Handler
|
|
361
361
|
* @param {string} [parentPathId] Parent PathPart ID (defaults to root)
|
|
362
362
|
* @param {number} [maxDepth] Maximum depth to traverse (1 = direct children, default: 1)
|
|
@@ -372,7 +372,7 @@ export interface PathPartsApiInterface {
|
|
|
372
372
|
listPathPartsRaw(requestParameters: ListPathPartsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedResponsePathPartResponse>>;
|
|
373
373
|
|
|
374
374
|
/**
|
|
375
|
-
* List path parts
|
|
375
|
+
* List path parts under a parent with traversal. This is a generic endpoint for traversing the path hierarchy. It returns the navigable, container-like nodes of the tree: FOLDER, WORKFLOW_DEFINITION, and WORKFLOW_RUN path parts. - If parent_path_id is not provided, lists contents of the root folder. - max_depth controls how deep to traverse (1 = direct children only). - sort_order controls the ordering: LOGICAL (linked-list), NAME, UPDATED_AT, CREATED_AT. For listing folder contents that includes documents with enriched metadata, use GET /folders/{folder_id}/contents instead.
|
|
376
376
|
* List Path Parts Handler
|
|
377
377
|
*/
|
|
378
378
|
listPathParts(requestParameters: ListPathPartsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedResponsePathPartResponse>;
|
|
@@ -863,7 +863,7 @@ export class PathPartsApi extends runtime.BaseAPI implements PathPartsApiInterfa
|
|
|
863
863
|
}
|
|
864
864
|
|
|
865
865
|
/**
|
|
866
|
-
* List path parts
|
|
866
|
+
* List path parts under a parent with traversal. This is a generic endpoint for traversing the path hierarchy. It returns the navigable, container-like nodes of the tree: FOLDER, WORKFLOW_DEFINITION, and WORKFLOW_RUN path parts. - If parent_path_id is not provided, lists contents of the root folder. - max_depth controls how deep to traverse (1 = direct children only). - sort_order controls the ordering: LOGICAL (linked-list), NAME, UPDATED_AT, CREATED_AT. For listing folder contents that includes documents with enriched metadata, use GET /folders/{folder_id}/contents instead.
|
|
867
867
|
* List Path Parts Handler
|
|
868
868
|
*/
|
|
869
869
|
async listPathPartsRaw(requestParameters: ListPathPartsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedResponsePathPartResponse>> {
|
|
@@ -874,7 +874,7 @@ export class PathPartsApi extends runtime.BaseAPI implements PathPartsApiInterfa
|
|
|
874
874
|
}
|
|
875
875
|
|
|
876
876
|
/**
|
|
877
|
-
* List path parts
|
|
877
|
+
* List path parts under a parent with traversal. This is a generic endpoint for traversing the path hierarchy. It returns the navigable, container-like nodes of the tree: FOLDER, WORKFLOW_DEFINITION, and WORKFLOW_RUN path parts. - If parent_path_id is not provided, lists contents of the root folder. - max_depth controls how deep to traverse (1 = direct children only). - sort_order controls the ordering: LOGICAL (linked-list), NAME, UPDATED_AT, CREATED_AT. For listing folder contents that includes documents with enriched metadata, use GET /folders/{folder_id}/contents instead.
|
|
878
878
|
* List Path Parts Handler
|
|
879
879
|
*/
|
|
880
880
|
async listPathParts(requestParameters: ListPathPartsRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedResponsePathPartResponse> {
|
|
@@ -17,7 +17,6 @@ import * as runtime from '../runtime';
|
|
|
17
17
|
import type {
|
|
18
18
|
CreateWorkflowDefinitionRequest,
|
|
19
19
|
HTTPValidationError,
|
|
20
|
-
InvokeWorkflowRequest,
|
|
21
20
|
PaginatedResponseWorkflowDefinitionResponse,
|
|
22
21
|
PaginatedResponseWorkflowRunResponse,
|
|
23
22
|
UpdateWorkflowDefinitionRequest,
|
|
@@ -29,8 +28,6 @@ import {
|
|
|
29
28
|
CreateWorkflowDefinitionRequestToJSON,
|
|
30
29
|
HTTPValidationErrorFromJSON,
|
|
31
30
|
HTTPValidationErrorToJSON,
|
|
32
|
-
InvokeWorkflowRequestFromJSON,
|
|
33
|
-
InvokeWorkflowRequestToJSON,
|
|
34
31
|
PaginatedResponseWorkflowDefinitionResponseFromJSON,
|
|
35
32
|
PaginatedResponseWorkflowDefinitionResponseToJSON,
|
|
36
33
|
PaginatedResponseWorkflowRunResponseFromJSON,
|
|
@@ -49,21 +46,23 @@ export interface CreateWorkflowDefinitionOperationRequest {
|
|
|
49
46
|
ksUat?: string | null;
|
|
50
47
|
}
|
|
51
48
|
|
|
52
|
-
export interface
|
|
49
|
+
export interface CreateWorkflowRunRequest {
|
|
53
50
|
definitionId: string;
|
|
54
51
|
authorization?: string | null;
|
|
55
52
|
ksUat?: string | null;
|
|
53
|
+
files?: Array<Blob>;
|
|
54
|
+
inputScope?: string | null;
|
|
55
|
+
idempotencyKey?: string | null;
|
|
56
56
|
}
|
|
57
57
|
|
|
58
|
-
export interface
|
|
58
|
+
export interface DeleteWorkflowDefinitionRequest {
|
|
59
59
|
definitionId: string;
|
|
60
60
|
authorization?: string | null;
|
|
61
61
|
ksUat?: string | null;
|
|
62
62
|
}
|
|
63
63
|
|
|
64
|
-
export interface
|
|
64
|
+
export interface GetWorkflowDefinitionRequest {
|
|
65
65
|
definitionId: string;
|
|
66
|
-
invokeWorkflowRequest: InvokeWorkflowRequest;
|
|
67
66
|
authorization?: string | null;
|
|
68
67
|
ksUat?: string | null;
|
|
69
68
|
}
|
|
@@ -125,45 +124,52 @@ export interface WorkflowDefinitionsApiInterface {
|
|
|
125
124
|
createWorkflowDefinition(requestParameters: CreateWorkflowDefinitionOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WorkflowDefinitionResponse>;
|
|
126
125
|
|
|
127
126
|
/**
|
|
128
|
-
* Creates request options for
|
|
127
|
+
* Creates request options for createWorkflowRun without sending the request
|
|
129
128
|
* @param {string} definitionId
|
|
130
129
|
* @param {string} [authorization]
|
|
131
130
|
* @param {string} [ksUat]
|
|
131
|
+
* @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/``.
|
|
132
|
+
* @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.
|
|
133
|
+
* @param {string} [idempotencyKey] Optional key to prevent duplicate runs from retries.
|
|
132
134
|
* @throws {RequiredError}
|
|
133
135
|
* @memberof WorkflowDefinitionsApiInterface
|
|
134
136
|
*/
|
|
135
|
-
|
|
137
|
+
createWorkflowRunRequestOpts(requestParameters: CreateWorkflowRunRequest): Promise<runtime.RequestOpts>;
|
|
136
138
|
|
|
137
139
|
/**
|
|
138
|
-
*
|
|
139
|
-
* @summary
|
|
140
|
+
* 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.
|
|
141
|
+
* @summary Create Workflow Run Handler
|
|
140
142
|
* @param {string} definitionId
|
|
141
143
|
* @param {string} [authorization]
|
|
142
144
|
* @param {string} [ksUat]
|
|
145
|
+
* @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/``.
|
|
146
|
+
* @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.
|
|
147
|
+
* @param {string} [idempotencyKey] Optional key to prevent duplicate runs from retries.
|
|
143
148
|
* @param {*} [options] Override http request option.
|
|
144
149
|
* @throws {RequiredError}
|
|
145
150
|
* @memberof WorkflowDefinitionsApiInterface
|
|
146
151
|
*/
|
|
147
|
-
|
|
152
|
+
createWorkflowRunRaw(requestParameters: CreateWorkflowRunRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<WorkflowRunResponse>>;
|
|
148
153
|
|
|
149
154
|
/**
|
|
150
|
-
*
|
|
155
|
+
* 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.
|
|
156
|
+
* Create Workflow Run Handler
|
|
151
157
|
*/
|
|
152
|
-
|
|
158
|
+
createWorkflowRun(requestParameters: CreateWorkflowRunRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WorkflowRunResponse>;
|
|
153
159
|
|
|
154
160
|
/**
|
|
155
|
-
* Creates request options for
|
|
161
|
+
* Creates request options for deleteWorkflowDefinition without sending the request
|
|
156
162
|
* @param {string} definitionId
|
|
157
163
|
* @param {string} [authorization]
|
|
158
164
|
* @param {string} [ksUat]
|
|
159
165
|
* @throws {RequiredError}
|
|
160
166
|
* @memberof WorkflowDefinitionsApiInterface
|
|
161
167
|
*/
|
|
162
|
-
|
|
168
|
+
deleteWorkflowDefinitionRequestOpts(requestParameters: DeleteWorkflowDefinitionRequest): Promise<runtime.RequestOpts>;
|
|
163
169
|
|
|
164
170
|
/**
|
|
165
171
|
*
|
|
166
|
-
* @summary
|
|
172
|
+
* @summary Delete Workflow Definition Handler
|
|
167
173
|
* @param {string} definitionId
|
|
168
174
|
* @param {string} [authorization]
|
|
169
175
|
* @param {string} [ksUat]
|
|
@@ -171,42 +177,39 @@ export interface WorkflowDefinitionsApiInterface {
|
|
|
171
177
|
* @throws {RequiredError}
|
|
172
178
|
* @memberof WorkflowDefinitionsApiInterface
|
|
173
179
|
*/
|
|
174
|
-
|
|
180
|
+
deleteWorkflowDefinitionRaw(requestParameters: DeleteWorkflowDefinitionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
175
181
|
|
|
176
182
|
/**
|
|
177
|
-
*
|
|
183
|
+
* Delete Workflow Definition Handler
|
|
178
184
|
*/
|
|
179
|
-
|
|
185
|
+
deleteWorkflowDefinition(requestParameters: DeleteWorkflowDefinitionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
180
186
|
|
|
181
187
|
/**
|
|
182
|
-
* Creates request options for
|
|
188
|
+
* Creates request options for getWorkflowDefinition without sending the request
|
|
183
189
|
* @param {string} definitionId
|
|
184
|
-
* @param {InvokeWorkflowRequest} invokeWorkflowRequest
|
|
185
190
|
* @param {string} [authorization]
|
|
186
191
|
* @param {string} [ksUat]
|
|
187
192
|
* @throws {RequiredError}
|
|
188
193
|
* @memberof WorkflowDefinitionsApiInterface
|
|
189
194
|
*/
|
|
190
|
-
|
|
195
|
+
getWorkflowDefinitionRequestOpts(requestParameters: GetWorkflowDefinitionRequest): Promise<runtime.RequestOpts>;
|
|
191
196
|
|
|
192
197
|
/**
|
|
193
|
-
*
|
|
194
|
-
* @summary
|
|
198
|
+
*
|
|
199
|
+
* @summary Get Workflow Definition Handler
|
|
195
200
|
* @param {string} definitionId
|
|
196
|
-
* @param {InvokeWorkflowRequest} invokeWorkflowRequest
|
|
197
201
|
* @param {string} [authorization]
|
|
198
202
|
* @param {string} [ksUat]
|
|
199
203
|
* @param {*} [options] Override http request option.
|
|
200
204
|
* @throws {RequiredError}
|
|
201
205
|
* @memberof WorkflowDefinitionsApiInterface
|
|
202
206
|
*/
|
|
203
|
-
|
|
207
|
+
getWorkflowDefinitionRaw(requestParameters: GetWorkflowDefinitionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<WorkflowDefinitionResponse>>;
|
|
204
208
|
|
|
205
209
|
/**
|
|
206
|
-
*
|
|
207
|
-
* Invoke Workflow Handler
|
|
210
|
+
* Get Workflow Definition Handler
|
|
208
211
|
*/
|
|
209
|
-
|
|
212
|
+
getWorkflowDefinition(requestParameters: GetWorkflowDefinitionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WorkflowDefinitionResponse>;
|
|
210
213
|
|
|
211
214
|
/**
|
|
212
215
|
* Creates request options for listWorkflowDefinitions without sending the request
|
|
@@ -356,13 +359,13 @@ export class WorkflowDefinitionsApi extends runtime.BaseAPI implements WorkflowD
|
|
|
356
359
|
}
|
|
357
360
|
|
|
358
361
|
/**
|
|
359
|
-
* Creates request options for
|
|
362
|
+
* Creates request options for createWorkflowRun without sending the request
|
|
360
363
|
*/
|
|
361
|
-
async
|
|
364
|
+
async createWorkflowRunRequestOpts(requestParameters: CreateWorkflowRunRequest): Promise<runtime.RequestOpts> {
|
|
362
365
|
if (requestParameters['definitionId'] == null) {
|
|
363
366
|
throw new runtime.RequiredError(
|
|
364
367
|
'definitionId',
|
|
365
|
-
'Required parameter "definitionId" was null or undefined when calling
|
|
368
|
+
'Required parameter "definitionId" was null or undefined when calling createWorkflowRun().'
|
|
366
369
|
);
|
|
367
370
|
}
|
|
368
371
|
|
|
@@ -374,43 +377,77 @@ export class WorkflowDefinitionsApi extends runtime.BaseAPI implements WorkflowD
|
|
|
374
377
|
headerParameters['authorization'] = String(requestParameters['authorization']);
|
|
375
378
|
}
|
|
376
379
|
|
|
380
|
+
const consumes: runtime.Consume[] = [
|
|
381
|
+
{ contentType: 'multipart/form-data' },
|
|
382
|
+
];
|
|
383
|
+
// @ts-ignore: canConsumeForm may be unused
|
|
384
|
+
const canConsumeForm = runtime.canConsumeForm(consumes);
|
|
385
|
+
|
|
386
|
+
let formParams: { append(param: string, value: any): any };
|
|
387
|
+
let useForm = false;
|
|
388
|
+
// use FormData to transmit files using content-type "multipart/form-data"
|
|
389
|
+
useForm = canConsumeForm;
|
|
390
|
+
if (useForm) {
|
|
391
|
+
formParams = new FormData();
|
|
392
|
+
} else {
|
|
393
|
+
formParams = new URLSearchParams();
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
if (requestParameters['files'] != null) {
|
|
397
|
+
requestParameters['files'].forEach((element) => {
|
|
398
|
+
formParams.append('files', element as any);
|
|
399
|
+
})
|
|
400
|
+
}
|
|
377
401
|
|
|
378
|
-
|
|
402
|
+
if (requestParameters['inputScope'] != null) {
|
|
403
|
+
formParams.append('input_scope', requestParameters['inputScope'] as any);
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
if (requestParameters['idempotencyKey'] != null) {
|
|
407
|
+
formParams.append('idempotency_key', requestParameters['idempotencyKey'] as any);
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
|
|
411
|
+
let urlPath = `/v1/workflow-definitions/{definition_id}/runs`;
|
|
379
412
|
urlPath = urlPath.replace(`{${"definition_id"}}`, encodeURIComponent(String(requestParameters['definitionId'])));
|
|
380
413
|
|
|
381
414
|
return {
|
|
382
415
|
path: urlPath,
|
|
383
|
-
method: '
|
|
416
|
+
method: 'POST',
|
|
384
417
|
headers: headerParameters,
|
|
385
418
|
query: queryParameters,
|
|
419
|
+
body: formParams,
|
|
386
420
|
};
|
|
387
421
|
}
|
|
388
422
|
|
|
389
423
|
/**
|
|
390
|
-
*
|
|
424
|
+
* 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.
|
|
425
|
+
* Create Workflow Run Handler
|
|
391
426
|
*/
|
|
392
|
-
async
|
|
393
|
-
const requestOptions = await this.
|
|
427
|
+
async createWorkflowRunRaw(requestParameters: CreateWorkflowRunRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<WorkflowRunResponse>> {
|
|
428
|
+
const requestOptions = await this.createWorkflowRunRequestOpts(requestParameters);
|
|
394
429
|
const response = await this.request(requestOptions, initOverrides);
|
|
395
430
|
|
|
396
|
-
return new runtime.
|
|
431
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => WorkflowRunResponseFromJSON(jsonValue));
|
|
397
432
|
}
|
|
398
433
|
|
|
399
434
|
/**
|
|
400
|
-
*
|
|
435
|
+
* 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.
|
|
436
|
+
* Create Workflow Run Handler
|
|
401
437
|
*/
|
|
402
|
-
async
|
|
403
|
-
await this.
|
|
438
|
+
async createWorkflowRun(requestParameters: CreateWorkflowRunRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WorkflowRunResponse> {
|
|
439
|
+
const response = await this.createWorkflowRunRaw(requestParameters, initOverrides);
|
|
440
|
+
return await response.value();
|
|
404
441
|
}
|
|
405
442
|
|
|
406
443
|
/**
|
|
407
|
-
* Creates request options for
|
|
444
|
+
* Creates request options for deleteWorkflowDefinition without sending the request
|
|
408
445
|
*/
|
|
409
|
-
async
|
|
446
|
+
async deleteWorkflowDefinitionRequestOpts(requestParameters: DeleteWorkflowDefinitionRequest): Promise<runtime.RequestOpts> {
|
|
410
447
|
if (requestParameters['definitionId'] == null) {
|
|
411
448
|
throw new runtime.RequiredError(
|
|
412
449
|
'definitionId',
|
|
413
|
-
'Required parameter "definitionId" was null or undefined when calling
|
|
450
|
+
'Required parameter "definitionId" was null or undefined when calling deleteWorkflowDefinition().'
|
|
414
451
|
);
|
|
415
452
|
}
|
|
416
453
|
|
|
@@ -428,45 +465,37 @@ export class WorkflowDefinitionsApi extends runtime.BaseAPI implements WorkflowD
|
|
|
428
465
|
|
|
429
466
|
return {
|
|
430
467
|
path: urlPath,
|
|
431
|
-
method: '
|
|
468
|
+
method: 'DELETE',
|
|
432
469
|
headers: headerParameters,
|
|
433
470
|
query: queryParameters,
|
|
434
471
|
};
|
|
435
472
|
}
|
|
436
473
|
|
|
437
474
|
/**
|
|
438
|
-
*
|
|
475
|
+
* Delete Workflow Definition Handler
|
|
439
476
|
*/
|
|
440
|
-
async
|
|
441
|
-
const requestOptions = await this.
|
|
477
|
+
async deleteWorkflowDefinitionRaw(requestParameters: DeleteWorkflowDefinitionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
478
|
+
const requestOptions = await this.deleteWorkflowDefinitionRequestOpts(requestParameters);
|
|
442
479
|
const response = await this.request(requestOptions, initOverrides);
|
|
443
480
|
|
|
444
|
-
return new runtime.
|
|
481
|
+
return new runtime.VoidApiResponse(response);
|
|
445
482
|
}
|
|
446
483
|
|
|
447
484
|
/**
|
|
448
|
-
*
|
|
485
|
+
* Delete Workflow Definition Handler
|
|
449
486
|
*/
|
|
450
|
-
async
|
|
451
|
-
|
|
452
|
-
return await response.value();
|
|
487
|
+
async deleteWorkflowDefinition(requestParameters: DeleteWorkflowDefinitionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
488
|
+
await this.deleteWorkflowDefinitionRaw(requestParameters, initOverrides);
|
|
453
489
|
}
|
|
454
490
|
|
|
455
491
|
/**
|
|
456
|
-
* Creates request options for
|
|
492
|
+
* Creates request options for getWorkflowDefinition without sending the request
|
|
457
493
|
*/
|
|
458
|
-
async
|
|
494
|
+
async getWorkflowDefinitionRequestOpts(requestParameters: GetWorkflowDefinitionRequest): Promise<runtime.RequestOpts> {
|
|
459
495
|
if (requestParameters['definitionId'] == null) {
|
|
460
496
|
throw new runtime.RequiredError(
|
|
461
497
|
'definitionId',
|
|
462
|
-
'Required parameter "definitionId" was null or undefined when calling
|
|
463
|
-
);
|
|
464
|
-
}
|
|
465
|
-
|
|
466
|
-
if (requestParameters['invokeWorkflowRequest'] == null) {
|
|
467
|
-
throw new runtime.RequiredError(
|
|
468
|
-
'invokeWorkflowRequest',
|
|
469
|
-
'Required parameter "invokeWorkflowRequest" was null or undefined when calling invokeWorkflow().'
|
|
498
|
+
'Required parameter "definitionId" was null or undefined when calling getWorkflowDefinition().'
|
|
470
499
|
);
|
|
471
500
|
}
|
|
472
501
|
|
|
@@ -474,42 +503,37 @@ export class WorkflowDefinitionsApi extends runtime.BaseAPI implements WorkflowD
|
|
|
474
503
|
|
|
475
504
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
476
505
|
|
|
477
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
478
|
-
|
|
479
506
|
if (requestParameters['authorization'] != null) {
|
|
480
507
|
headerParameters['authorization'] = String(requestParameters['authorization']);
|
|
481
508
|
}
|
|
482
509
|
|
|
483
510
|
|
|
484
|
-
let urlPath = `/v1/workflow-definitions/{definition_id}
|
|
511
|
+
let urlPath = `/v1/workflow-definitions/{definition_id}`;
|
|
485
512
|
urlPath = urlPath.replace(`{${"definition_id"}}`, encodeURIComponent(String(requestParameters['definitionId'])));
|
|
486
513
|
|
|
487
514
|
return {
|
|
488
515
|
path: urlPath,
|
|
489
|
-
method: '
|
|
516
|
+
method: 'GET',
|
|
490
517
|
headers: headerParameters,
|
|
491
518
|
query: queryParameters,
|
|
492
|
-
body: InvokeWorkflowRequestToJSON(requestParameters['invokeWorkflowRequest']),
|
|
493
519
|
};
|
|
494
520
|
}
|
|
495
521
|
|
|
496
522
|
/**
|
|
497
|
-
*
|
|
498
|
-
* Invoke Workflow Handler
|
|
523
|
+
* Get Workflow Definition Handler
|
|
499
524
|
*/
|
|
500
|
-
async
|
|
501
|
-
const requestOptions = await this.
|
|
525
|
+
async getWorkflowDefinitionRaw(requestParameters: GetWorkflowDefinitionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<WorkflowDefinitionResponse>> {
|
|
526
|
+
const requestOptions = await this.getWorkflowDefinitionRequestOpts(requestParameters);
|
|
502
527
|
const response = await this.request(requestOptions, initOverrides);
|
|
503
528
|
|
|
504
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
529
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => WorkflowDefinitionResponseFromJSON(jsonValue));
|
|
505
530
|
}
|
|
506
531
|
|
|
507
532
|
/**
|
|
508
|
-
*
|
|
509
|
-
* Invoke Workflow Handler
|
|
533
|
+
* Get Workflow Definition Handler
|
|
510
534
|
*/
|
|
511
|
-
async
|
|
512
|
-
const response = await this.
|
|
535
|
+
async getWorkflowDefinition(requestParameters: GetWorkflowDefinitionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WorkflowDefinitionResponse> {
|
|
536
|
+
const response = await this.getWorkflowDefinitionRaw(requestParameters, initOverrides);
|
|
513
537
|
return await response.value();
|
|
514
538
|
}
|
|
515
539
|
|
|
@@ -18,8 +18,8 @@ import type {
|
|
|
18
18
|
AppendMemoryChunkRequest,
|
|
19
19
|
EditMemoryChunkRequest,
|
|
20
20
|
HTTPValidationError,
|
|
21
|
-
ListMemoryChunksResponse,
|
|
22
21
|
MemoryChunkResponse,
|
|
22
|
+
PaginatedResponseMemoryChunkResponse,
|
|
23
23
|
} from '../models/index';
|
|
24
24
|
import {
|
|
25
25
|
AppendMemoryChunkRequestFromJSON,
|
|
@@ -28,10 +28,10 @@ import {
|
|
|
28
28
|
EditMemoryChunkRequestToJSON,
|
|
29
29
|
HTTPValidationErrorFromJSON,
|
|
30
30
|
HTTPValidationErrorToJSON,
|
|
31
|
-
ListMemoryChunksResponseFromJSON,
|
|
32
|
-
ListMemoryChunksResponseToJSON,
|
|
33
31
|
MemoryChunkResponseFromJSON,
|
|
34
32
|
MemoryChunkResponseToJSON,
|
|
33
|
+
PaginatedResponseMemoryChunkResponseFromJSON,
|
|
34
|
+
PaginatedResponseMemoryChunkResponseToJSON,
|
|
35
35
|
} from '../models/index';
|
|
36
36
|
|
|
37
37
|
export interface AppendWorkflowMemoryChunkRequest {
|
|
@@ -65,6 +65,8 @@ export interface GetWorkflowMemoryChunkRequest {
|
|
|
65
65
|
|
|
66
66
|
export interface ListWorkflowMemoryChunksRequest {
|
|
67
67
|
definitionId: string;
|
|
68
|
+
limit?: number;
|
|
69
|
+
offset?: number;
|
|
68
70
|
authorization?: string | null;
|
|
69
71
|
ksUat?: string | null;
|
|
70
72
|
}
|
|
@@ -88,7 +90,7 @@ export interface WorkflowMemoryApiInterface {
|
|
|
88
90
|
appendWorkflowMemoryChunkRequestOpts(requestParameters: AppendWorkflowMemoryChunkRequest): Promise<runtime.RequestOpts>;
|
|
89
91
|
|
|
90
92
|
/**
|
|
91
|
-
*
|
|
93
|
+
*
|
|
92
94
|
* @summary Append Workflow Memory Chunk Handler
|
|
93
95
|
* @param {string} definitionId
|
|
94
96
|
* @param {AppendMemoryChunkRequest} appendMemoryChunkRequest
|
|
@@ -101,7 +103,6 @@ export interface WorkflowMemoryApiInterface {
|
|
|
101
103
|
appendWorkflowMemoryChunkRaw(requestParameters: AppendWorkflowMemoryChunkRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<MemoryChunkResponse>>;
|
|
102
104
|
|
|
103
105
|
/**
|
|
104
|
-
* 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.
|
|
105
106
|
* Append Workflow Memory Chunk Handler
|
|
106
107
|
*/
|
|
107
108
|
appendWorkflowMemoryChunk(requestParameters: AppendWorkflowMemoryChunkRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MemoryChunkResponse>;
|
|
@@ -198,6 +199,8 @@ export interface WorkflowMemoryApiInterface {
|
|
|
198
199
|
/**
|
|
199
200
|
* Creates request options for listWorkflowMemoryChunks without sending the request
|
|
200
201
|
* @param {string} definitionId
|
|
202
|
+
* @param {number} [limit] Number of items per page
|
|
203
|
+
* @param {number} [offset] Number of items to skip
|
|
201
204
|
* @param {string} [authorization]
|
|
202
205
|
* @param {string} [ksUat]
|
|
203
206
|
* @throws {RequiredError}
|
|
@@ -209,18 +212,20 @@ export interface WorkflowMemoryApiInterface {
|
|
|
209
212
|
*
|
|
210
213
|
* @summary List Workflow Memory Chunks Handler
|
|
211
214
|
* @param {string} definitionId
|
|
215
|
+
* @param {number} [limit] Number of items per page
|
|
216
|
+
* @param {number} [offset] Number of items to skip
|
|
212
217
|
* @param {string} [authorization]
|
|
213
218
|
* @param {string} [ksUat]
|
|
214
219
|
* @param {*} [options] Override http request option.
|
|
215
220
|
* @throws {RequiredError}
|
|
216
221
|
* @memberof WorkflowMemoryApiInterface
|
|
217
222
|
*/
|
|
218
|
-
listWorkflowMemoryChunksRaw(requestParameters: ListWorkflowMemoryChunksRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
223
|
+
listWorkflowMemoryChunksRaw(requestParameters: ListWorkflowMemoryChunksRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedResponseMemoryChunkResponse>>;
|
|
219
224
|
|
|
220
225
|
/**
|
|
221
226
|
* List Workflow Memory Chunks Handler
|
|
222
227
|
*/
|
|
223
|
-
listWorkflowMemoryChunks(requestParameters: ListWorkflowMemoryChunksRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
228
|
+
listWorkflowMemoryChunks(requestParameters: ListWorkflowMemoryChunksRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedResponseMemoryChunkResponse>;
|
|
224
229
|
|
|
225
230
|
}
|
|
226
231
|
|
|
@@ -271,7 +276,6 @@ export class WorkflowMemoryApi extends runtime.BaseAPI implements WorkflowMemory
|
|
|
271
276
|
}
|
|
272
277
|
|
|
273
278
|
/**
|
|
274
|
-
* 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.
|
|
275
279
|
* Append Workflow Memory Chunk Handler
|
|
276
280
|
*/
|
|
277
281
|
async appendWorkflowMemoryChunkRaw(requestParameters: AppendWorkflowMemoryChunkRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<MemoryChunkResponse>> {
|
|
@@ -282,7 +286,6 @@ export class WorkflowMemoryApi extends runtime.BaseAPI implements WorkflowMemory
|
|
|
282
286
|
}
|
|
283
287
|
|
|
284
288
|
/**
|
|
285
|
-
* 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.
|
|
286
289
|
* Append Workflow Memory Chunk Handler
|
|
287
290
|
*/
|
|
288
291
|
async appendWorkflowMemoryChunk(requestParameters: AppendWorkflowMemoryChunkRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MemoryChunkResponse> {
|
|
@@ -483,6 +486,14 @@ export class WorkflowMemoryApi extends runtime.BaseAPI implements WorkflowMemory
|
|
|
483
486
|
|
|
484
487
|
const queryParameters: any = {};
|
|
485
488
|
|
|
489
|
+
if (requestParameters['limit'] != null) {
|
|
490
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
491
|
+
}
|
|
492
|
+
|
|
493
|
+
if (requestParameters['offset'] != null) {
|
|
494
|
+
queryParameters['offset'] = requestParameters['offset'];
|
|
495
|
+
}
|
|
496
|
+
|
|
486
497
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
487
498
|
|
|
488
499
|
if (requestParameters['authorization'] != null) {
|
|
@@ -504,17 +515,17 @@ export class WorkflowMemoryApi extends runtime.BaseAPI implements WorkflowMemory
|
|
|
504
515
|
/**
|
|
505
516
|
* List Workflow Memory Chunks Handler
|
|
506
517
|
*/
|
|
507
|
-
async listWorkflowMemoryChunksRaw(requestParameters: ListWorkflowMemoryChunksRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
518
|
+
async listWorkflowMemoryChunksRaw(requestParameters: ListWorkflowMemoryChunksRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedResponseMemoryChunkResponse>> {
|
|
508
519
|
const requestOptions = await this.listWorkflowMemoryChunksRequestOpts(requestParameters);
|
|
509
520
|
const response = await this.request(requestOptions, initOverrides);
|
|
510
521
|
|
|
511
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
522
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedResponseMemoryChunkResponseFromJSON(jsonValue));
|
|
512
523
|
}
|
|
513
524
|
|
|
514
525
|
/**
|
|
515
526
|
* List Workflow Memory Chunks Handler
|
|
516
527
|
*/
|
|
517
|
-
async listWorkflowMemoryChunks(requestParameters: ListWorkflowMemoryChunksRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
528
|
+
async listWorkflowMemoryChunks(requestParameters: ListWorkflowMemoryChunksRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedResponseMemoryChunkResponse> {
|
|
518
529
|
const response = await this.listWorkflowMemoryChunksRaw(requestParameters, initOverrides);
|
|
519
530
|
return await response.value();
|
|
520
531
|
}
|