@knowledge-stack/ksapi 1.88.1 → 1.90.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +38 -20
- package/README.md +30 -19
- package/dist/apis/DocumentCheckoutApi.d.ts +16 -13
- package/dist/apis/DocumentCheckoutApi.js +17 -14
- package/dist/apis/DocumentVersionsApi.d.ts +1 -4
- package/dist/apis/DocumentVersionsApi.js +0 -2
- package/dist/apis/DocumentsApi.d.ts +1 -4
- package/dist/apis/DocumentsApi.js +0 -2
- package/dist/apis/FoldersApi.d.ts +10 -13
- package/dist/apis/FoldersApi.js +2 -4
- package/dist/apis/PathPartApprovalsApi.d.ts +117 -0
- package/dist/apis/PathPartApprovalsApi.js +159 -0
- package/dist/apis/PathPartsApi.d.ts +4 -4
- package/dist/apis/PathPartsApi.js +2 -2
- package/dist/apis/WorkflowDefinitionsApi.d.ts +48 -42
- package/dist/apis/WorkflowDefinitionsApi.js +65 -43
- package/dist/apis/WorkflowMemoryApi.d.ts +12 -9
- package/dist/apis/WorkflowMemoryApi.js +7 -3
- package/dist/apis/WorkflowRunsApi.d.ts +115 -65
- package/dist/apis/WorkflowRunsApi.js +100 -53
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/esm/apis/DocumentCheckoutApi.d.ts +16 -13
- package/dist/esm/apis/DocumentCheckoutApi.js +17 -14
- package/dist/esm/apis/DocumentVersionsApi.d.ts +1 -4
- package/dist/esm/apis/DocumentVersionsApi.js +0 -2
- package/dist/esm/apis/DocumentsApi.d.ts +1 -4
- package/dist/esm/apis/DocumentsApi.js +0 -2
- package/dist/esm/apis/FoldersApi.d.ts +10 -13
- package/dist/esm/apis/FoldersApi.js +3 -5
- package/dist/esm/apis/PathPartApprovalsApi.d.ts +117 -0
- package/dist/esm/apis/PathPartApprovalsApi.js +122 -0
- package/dist/esm/apis/PathPartsApi.d.ts +4 -4
- package/dist/esm/apis/PathPartsApi.js +2 -2
- package/dist/esm/apis/WorkflowDefinitionsApi.d.ts +48 -42
- package/dist/esm/apis/WorkflowDefinitionsApi.js +66 -44
- package/dist/esm/apis/WorkflowMemoryApi.d.ts +12 -9
- package/dist/esm/apis/WorkflowMemoryApi.js +8 -4
- package/dist/esm/apis/WorkflowRunsApi.d.ts +115 -65
- package/dist/esm/apis/WorkflowRunsApi.js +101 -54
- package/dist/esm/apis/index.d.ts +1 -0
- package/dist/esm/apis/index.js +1 -0
- package/dist/esm/models/ChunkContentItem.d.ts +7 -0
- package/dist/esm/models/ChunkContentItem.js +5 -0
- package/dist/esm/models/CitedChunk.d.ts +86 -0
- package/dist/esm/models/CitedChunk.js +55 -0
- package/dist/esm/models/CloneWorkflowRunRequest.d.ts +54 -0
- package/dist/esm/models/CloneWorkflowRunRequest.js +44 -0
- package/dist/esm/models/CreateThreadMessageRequest.d.ts +1 -1
- package/dist/esm/models/CreateThreadRequest.d.ts +13 -1
- package/dist/esm/models/CreateThreadRequest.js +8 -0
- package/dist/esm/models/CreateWorkflowDefinitionRequest.d.ts +6 -41
- package/dist/esm/models/CreateWorkflowDefinitionRequest.js +5 -35
- package/dist/esm/models/DocumentCheckoutResponse.d.ts +6 -5
- package/dist/esm/models/DocumentCheckoutResponse.js +7 -6
- package/dist/esm/models/DocumentResponse.d.ts +11 -3
- package/dist/esm/models/DocumentResponse.js +9 -3
- package/dist/esm/models/DocumentVersionMetadata.d.ts +7 -0
- package/dist/esm/models/DocumentVersionMetadata.js +3 -0
- package/dist/esm/models/DocumentVersionMetadataUpdate.d.ts +7 -0
- package/dist/esm/models/DocumentVersionMetadataUpdate.js +3 -0
- package/dist/esm/models/DocumentVersionResponse.d.ts +4 -3
- package/dist/esm/models/DocumentVersionResponse.js +4 -3
- package/dist/esm/models/DocxParagraphAnchorInput.d.ts +79 -0
- package/dist/esm/models/DocxParagraphAnchorInput.js +71 -0
- package/dist/esm/models/DocxParagraphAnchorOutput.d.ts +88 -0
- package/dist/esm/models/DocxParagraphAnchorOutput.js +74 -0
- package/dist/esm/models/FolderResponse.d.ts +7 -0
- package/dist/esm/models/FolderResponse.js +5 -0
- package/dist/esm/models/FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponse.d.ts +33 -0
- package/dist/esm/models/FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponse.js +57 -0
- package/dist/esm/models/InputSnapshot.d.ts +81 -0
- package/dist/esm/models/{ABCDPathSnapshot.js → InputSnapshot.js} +18 -12
- package/dist/esm/models/InstructionSnapshot.d.ts +16 -10
- package/dist/esm/models/InstructionSnapshot.js +11 -6
- package/dist/esm/models/MemoryChunkResponse.d.ts +1 -1
- package/dist/esm/models/MemoryKind.d.ts +1 -4
- package/dist/esm/models/MemoryKind.js +1 -4
- package/dist/esm/models/PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDiscriminator.d.ts +66 -0
- package/dist/esm/models/{PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseDiscriminator.js → PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDiscriminator.js} +12 -12
- package/dist/esm/models/PaginatedResponseMemoryChunkResponse.d.ts +66 -0
- package/dist/esm/models/PaginatedResponseMemoryChunkResponse.js +70 -0
- package/dist/esm/models/PathPartApprovalDecision.d.ts +6 -5
- package/dist/esm/models/PathPartApprovalDecision.js +7 -6
- package/dist/esm/models/PathPartApprovalResponse.d.ts +2 -23
- package/dist/esm/models/PathPartApprovalResponse.js +3 -15
- package/dist/esm/models/PathPartApprovalState.d.ts +32 -0
- package/dist/esm/models/PathPartApprovalState.js +50 -0
- package/dist/esm/models/SectionContentItem.d.ts +7 -0
- package/dist/esm/models/SectionContentItem.js +5 -0
- package/dist/esm/models/SetApprovalStateRequest.d.ts +69 -0
- package/dist/esm/models/SetApprovalStateRequest.js +57 -0
- package/dist/esm/models/SetWorkflowRunApprovalRequest.d.ts +64 -0
- package/dist/esm/models/SetWorkflowRunApprovalRequest.js +56 -0
- package/dist/esm/models/ThreadMessageResponse.d.ts +7 -1
- package/dist/esm/models/ThreadMessageResponse.js +2 -0
- package/dist/esm/models/ThreadResponse.d.ts +1 -1
- package/dist/esm/models/UpdateThreadRequest.d.ts +1 -1
- package/dist/esm/models/UpdateWorkflowDefinitionRequest.d.ts +4 -41
- package/dist/esm/models/UpdateWorkflowDefinitionRequest.js +7 -38
- package/dist/esm/models/UpdateWorkflowRunRequest.d.ts +58 -0
- package/dist/esm/models/UpdateWorkflowRunRequest.js +53 -0
- package/dist/esm/models/UserInfo.d.ts +59 -0
- package/dist/esm/models/UserInfo.js +52 -0
- package/dist/esm/models/UserMessageRequest.d.ts +1 -1
- package/dist/esm/models/UserMessageResponse.d.ts +1 -1
- package/dist/esm/models/WorkflowDefinitionResponse.d.ts +42 -24
- package/dist/esm/models/WorkflowDefinitionResponse.js +31 -24
- package/dist/esm/models/WorkflowExecutionState.d.ts +42 -0
- package/dist/esm/models/WorkflowExecutionState.js +60 -0
- package/dist/esm/models/WorkflowRunResponse.d.ts +91 -18
- package/dist/esm/models/WorkflowRunResponse.js +59 -18
- package/dist/esm/models/WorkflowRunSnapshot.d.ts +14 -37
- package/dist/esm/models/WorkflowRunSnapshot.js +7 -28
- package/dist/esm/models/XlsxCellAnchorInput.d.ts +79 -0
- package/dist/esm/models/XlsxCellAnchorInput.js +67 -0
- package/dist/esm/models/XlsxCellAnchorInputOrDocxParagraphAnchorInput.d.ts +27 -0
- package/dist/esm/models/XlsxCellAnchorInputOrDocxParagraphAnchorInput.js +47 -0
- package/dist/esm/models/XlsxCellAnchorOutput.d.ts +90 -0
- package/dist/esm/models/XlsxCellAnchorOutput.js +70 -0
- package/dist/esm/models/XlsxCellAnchorOutputOrDocxParagraphAnchorOutput.d.ts +27 -0
- package/dist/esm/models/XlsxCellAnchorOutputOrDocxParagraphAnchorOutput.js +47 -0
- package/dist/esm/models/index.d.ts +18 -10
- package/dist/esm/models/index.js +18 -10
- package/dist/models/ChunkContentItem.d.ts +7 -0
- package/dist/models/ChunkContentItem.js +5 -0
- package/dist/models/CitedChunk.d.ts +86 -0
- package/dist/models/CitedChunk.js +63 -0
- package/dist/models/CloneWorkflowRunRequest.d.ts +54 -0
- package/dist/models/CloneWorkflowRunRequest.js +52 -0
- package/dist/models/CreateThreadMessageRequest.d.ts +1 -1
- package/dist/models/CreateThreadRequest.d.ts +13 -1
- package/dist/models/CreateThreadRequest.js +8 -0
- package/dist/models/CreateWorkflowDefinitionRequest.d.ts +6 -41
- package/dist/models/CreateWorkflowDefinitionRequest.js +5 -35
- package/dist/models/DocumentCheckoutResponse.d.ts +6 -5
- package/dist/models/DocumentCheckoutResponse.js +7 -6
- package/dist/models/DocumentResponse.d.ts +11 -3
- package/dist/models/DocumentResponse.js +9 -3
- package/dist/models/DocumentVersionMetadata.d.ts +7 -0
- package/dist/models/DocumentVersionMetadata.js +3 -0
- package/dist/models/DocumentVersionMetadataUpdate.d.ts +7 -0
- package/dist/models/DocumentVersionMetadataUpdate.js +3 -0
- package/dist/models/DocumentVersionResponse.d.ts +4 -3
- package/dist/models/DocumentVersionResponse.js +4 -3
- package/dist/models/DocxParagraphAnchorInput.d.ts +79 -0
- package/dist/models/DocxParagraphAnchorInput.js +79 -0
- package/dist/models/DocxParagraphAnchorOutput.d.ts +88 -0
- package/dist/models/DocxParagraphAnchorOutput.js +82 -0
- package/dist/models/FolderResponse.d.ts +7 -0
- package/dist/models/FolderResponse.js +5 -0
- package/dist/models/FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponse.d.ts +33 -0
- package/dist/models/FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponse.js +63 -0
- package/dist/models/InputSnapshot.d.ts +81 -0
- package/dist/models/{ABCDPathSnapshot.js → InputSnapshot.js} +24 -18
- package/dist/models/InstructionSnapshot.d.ts +16 -10
- package/dist/models/InstructionSnapshot.js +12 -7
- package/dist/models/MemoryChunkResponse.d.ts +1 -1
- package/dist/models/MemoryKind.d.ts +1 -4
- package/dist/models/MemoryKind.js +1 -4
- package/dist/models/PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDiscriminator.d.ts +66 -0
- package/dist/models/PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDiscriminator.js +78 -0
- package/dist/models/PaginatedResponseMemoryChunkResponse.d.ts +66 -0
- package/dist/models/PaginatedResponseMemoryChunkResponse.js +78 -0
- package/dist/models/PathPartApprovalDecision.d.ts +6 -5
- package/dist/models/PathPartApprovalDecision.js +7 -6
- package/dist/models/PathPartApprovalResponse.d.ts +2 -23
- package/dist/models/PathPartApprovalResponse.js +3 -15
- package/dist/models/PathPartApprovalState.d.ts +32 -0
- package/dist/models/PathPartApprovalState.js +58 -0
- package/dist/models/SectionContentItem.d.ts +7 -0
- package/dist/models/SectionContentItem.js +5 -0
- package/dist/models/SetApprovalStateRequest.d.ts +69 -0
- package/dist/models/SetApprovalStateRequest.js +65 -0
- package/dist/models/SetWorkflowRunApprovalRequest.d.ts +64 -0
- package/dist/models/SetWorkflowRunApprovalRequest.js +64 -0
- package/dist/models/ThreadMessageResponse.d.ts +7 -1
- package/dist/models/ThreadMessageResponse.js +2 -0
- package/dist/models/ThreadResponse.d.ts +1 -1
- package/dist/models/UpdateThreadRequest.d.ts +1 -1
- package/dist/models/UpdateWorkflowDefinitionRequest.d.ts +4 -41
- package/dist/models/UpdateWorkflowDefinitionRequest.js +7 -38
- package/dist/models/UpdateWorkflowRunRequest.d.ts +58 -0
- package/dist/models/UpdateWorkflowRunRequest.js +61 -0
- package/dist/models/UserInfo.d.ts +59 -0
- package/dist/models/UserInfo.js +60 -0
- package/dist/models/UserMessageRequest.d.ts +1 -1
- package/dist/models/UserMessageResponse.d.ts +1 -1
- package/dist/models/WorkflowDefinitionResponse.d.ts +42 -24
- package/dist/models/WorkflowDefinitionResponse.js +32 -25
- package/dist/models/WorkflowExecutionState.d.ts +42 -0
- package/dist/models/WorkflowExecutionState.js +68 -0
- package/dist/models/WorkflowRunResponse.d.ts +91 -18
- package/dist/models/WorkflowRunResponse.js +60 -19
- package/dist/models/WorkflowRunSnapshot.d.ts +14 -37
- package/dist/models/WorkflowRunSnapshot.js +7 -28
- package/dist/models/XlsxCellAnchorInput.d.ts +79 -0
- package/dist/models/XlsxCellAnchorInput.js +75 -0
- package/dist/models/XlsxCellAnchorInputOrDocxParagraphAnchorInput.d.ts +27 -0
- package/dist/models/XlsxCellAnchorInputOrDocxParagraphAnchorInput.js +53 -0
- package/dist/models/XlsxCellAnchorOutput.d.ts +90 -0
- package/dist/models/XlsxCellAnchorOutput.js +78 -0
- package/dist/models/XlsxCellAnchorOutputOrDocxParagraphAnchorOutput.d.ts +27 -0
- package/dist/models/XlsxCellAnchorOutputOrDocxParagraphAnchorOutput.js +53 -0
- package/dist/models/index.d.ts +18 -10
- package/dist/models/index.js +18 -10
- package/docs/ChunkContentItem.md +2 -0
- package/docs/CitedChunk.md +45 -0
- package/docs/CloneWorkflowRunRequest.md +35 -0
- package/docs/CreateThreadMessageRequest.md +0 -1
- package/docs/CreateThreadRequest.md +4 -1
- package/docs/CreateWorkflowDefinitionRequest.md +3 -13
- package/docs/DocumentCheckoutApi.md +19 -16
- package/docs/DocumentCheckoutResponse.md +4 -4
- package/docs/DocumentResponse.md +4 -2
- package/docs/DocumentVersionMetadata.md +2 -0
- package/docs/DocumentVersionMetadataUpdate.md +2 -0
- package/docs/DocumentVersionResponse.md +2 -2
- package/docs/DocumentVersionsApi.md +0 -2
- package/docs/DocumentsApi.md +0 -2
- package/docs/{ABCDPathSnapshot.md → DocxParagraphAnchorInput.md} +15 -11
- package/docs/DocxParagraphAnchorOutput.md +45 -0
- package/docs/FolderResponse.md +2 -0
- package/docs/FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponse.md +108 -0
- package/docs/FoldersApi.md +4 -6
- package/docs/InputSnapshot.md +39 -0
- package/docs/InstructionSnapshot.md +4 -4
- package/docs/MemoryChunkResponse.md +0 -1
- package/docs/MemoryKind.md +1 -1
- package/docs/PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDiscriminator.md +40 -0
- package/docs/{PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseDiscriminator.md → PaginatedResponseMemoryChunkResponse.md} +5 -5
- package/docs/PathPartApprovalDecision.md +1 -1
- package/docs/PathPartApprovalResponse.md +3 -9
- package/docs/{InvokeWorkflowRequest.md → PathPartApprovalState.md} +5 -9
- package/docs/PathPartApprovalsApi.md +161 -0
- package/docs/PathPartsApi.md +1 -1
- package/docs/SectionContentItem.md +2 -0
- package/docs/SectionContentItemOrChunkContentItem.md +2 -0
- package/docs/SetApprovalStateRequest.md +37 -0
- package/docs/SetWorkflowRunApprovalRequest.md +37 -0
- package/docs/ThreadMessageResponse.md +2 -1
- package/docs/ThreadResponse.md +0 -1
- package/docs/UpdateThreadRequest.md +0 -1
- package/docs/UpdateWorkflowDefinitionRequest.md +3 -13
- package/docs/UpdateWorkflowRunRequest.md +37 -0
- package/docs/{RejectFileRequest.md → UserInfo.md} +11 -7
- package/docs/UserMessageRequest.md +0 -1
- package/docs/UserMessageResponse.md +0 -1
- package/docs/WorkflowDefinitionResponse.md +15 -13
- package/docs/WorkflowDefinitionsApi.md +38 -32
- package/docs/WorkflowExecutionState.md +33 -0
- package/docs/WorkflowMemoryApi.md +8 -4
- package/docs/WorkflowRunResponse.md +29 -9
- package/docs/WorkflowRunSnapshot.md +5 -15
- package/docs/WorkflowRunsApi.md +122 -42
- package/docs/{ListMemoryChunksResponse.md → XlsxCellAnchorInput.md} +15 -6
- package/docs/XlsxCellAnchorInputOrDocxParagraphAnchorInput.md +46 -0
- package/docs/XlsxCellAnchorOutput.md +45 -0
- package/docs/XlsxCellAnchorOutputOrDocxParagraphAnchorOutput.md +48 -0
- package/package.json +1 -1
- package/src/apis/DocumentCheckoutApi.ts +35 -28
- package/src/apis/DocumentVersionsApi.ts +1 -4
- package/src/apis/DocumentsApi.ts +1 -4
- package/src/apis/FoldersApi.ts +14 -17
- package/src/apis/PathPartApprovalsApi.ts +228 -0
- package/src/apis/PathPartsApi.ts +4 -4
- package/src/apis/WorkflowDefinitionsApi.ts +102 -78
- package/src/apis/WorkflowMemoryApi.ts +23 -12
- package/src/apis/WorkflowRunsApi.ts +198 -104
- package/src/apis/index.ts +1 -0
- package/src/models/ChunkContentItem.ts +16 -0
- package/src/models/CitedChunk.ts +141 -0
- package/src/models/CloneWorkflowRunRequest.ts +90 -0
- package/src/models/CreateThreadMessageRequest.ts +1 -1
- package/src/models/CreateThreadRequest.ts +21 -1
- package/src/models/CreateWorkflowDefinitionRequest.ts +11 -87
- package/src/models/DocumentCheckoutResponse.ts +19 -11
- package/src/models/DocumentResponse.ts +29 -6
- package/src/models/DocumentVersionMetadata.ts +15 -0
- package/src/models/DocumentVersionMetadataUpdate.ts +15 -0
- package/src/models/DocumentVersionResponse.ts +13 -6
- package/src/models/DocxParagraphAnchorInput.ts +142 -0
- package/src/models/DocxParagraphAnchorOutput.ts +153 -0
- package/src/models/FolderResponse.ts +16 -0
- package/src/models/FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponse.ts +94 -0
- package/src/models/InputSnapshot.ts +126 -0
- package/src/models/InstructionSnapshot.ts +22 -22
- package/src/models/MemoryChunkResponse.ts +1 -1
- package/src/models/MemoryKind.ts +1 -4
- package/src/models/{PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseDiscriminator.ts → PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDiscriminator.ts} +25 -25
- package/src/models/PaginatedResponseMemoryChunkResponse.ts +130 -0
- package/src/models/PathPartApprovalDecision.ts +7 -6
- package/src/models/PathPartApprovalResponse.ts +5 -35
- package/src/models/PathPartApprovalState.ts +60 -0
- package/src/models/SectionContentItem.ts +17 -0
- package/src/models/SetApprovalStateRequest.ts +113 -0
- package/src/models/SetWorkflowRunApprovalRequest.ts +108 -0
- package/src/models/ThreadMessageResponse.ts +9 -1
- package/src/models/ThreadResponse.ts +1 -1
- package/src/models/UpdateThreadRequest.ts +1 -1
- package/src/models/UpdateWorkflowDefinitionRequest.ts +11 -90
- package/src/models/UpdateWorkflowRunRequest.ts +103 -0
- package/src/models/UserInfo.ts +101 -0
- package/src/models/UserMessageRequest.ts +1 -1
- package/src/models/UserMessageResponse.ts +1 -1
- package/src/models/WorkflowDefinitionResponse.ts +68 -53
- package/src/models/WorkflowExecutionState.ts +70 -0
- package/src/models/WorkflowRunResponse.ts +151 -44
- package/src/models/WorkflowRunSnapshot.ts +25 -71
- package/src/models/XlsxCellAnchorInput.ts +138 -0
- package/src/models/XlsxCellAnchorInputOrDocxParagraphAnchorInput.ts +72 -0
- package/src/models/XlsxCellAnchorOutput.ts +151 -0
- package/src/models/XlsxCellAnchorOutputOrDocxParagraphAnchorOutput.ts +72 -0
- package/src/models/index.ts +18 -10
- package/dist/esm/models/ABCDPathSnapshot.d.ts +0 -60
- package/dist/esm/models/FolderResponseOrDocumentResponse.d.ts +0 -27
- package/dist/esm/models/FolderResponseOrDocumentResponse.js +0 -47
- package/dist/esm/models/InvokeWorkflowRequest.d.ts +0 -53
- package/dist/esm/models/InvokeWorkflowRequest.js +0 -52
- package/dist/esm/models/ListMemoryChunksResponse.d.ts +0 -48
- package/dist/esm/models/ListMemoryChunksResponse.js +0 -45
- package/dist/esm/models/PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseDiscriminator.d.ts +0 -66
- package/dist/esm/models/RejectFileRequest.d.ts +0 -47
- package/dist/esm/models/RejectFileRequest.js +0 -49
- package/dist/esm/models/SelfHostedRunnerConfig.d.ts +0 -53
- package/dist/esm/models/SelfHostedRunnerConfig.js +0 -53
- package/dist/esm/models/SelfHostedRunnerConfigResponse.d.ts +0 -47
- package/dist/esm/models/SelfHostedRunnerConfigResponse.js +0 -49
- package/dist/esm/models/WorkflowRunStatus.d.ts +0 -45
- package/dist/esm/models/WorkflowRunStatus.js +0 -63
- package/dist/esm/models/WorkflowRunnerType.d.ts +0 -25
- package/dist/esm/models/WorkflowRunnerType.js +0 -43
- package/dist/models/ABCDPathSnapshot.d.ts +0 -60
- package/dist/models/FolderResponseOrDocumentResponse.d.ts +0 -27
- package/dist/models/FolderResponseOrDocumentResponse.js +0 -53
- package/dist/models/InvokeWorkflowRequest.d.ts +0 -53
- package/dist/models/InvokeWorkflowRequest.js +0 -60
- package/dist/models/ListMemoryChunksResponse.d.ts +0 -48
- package/dist/models/ListMemoryChunksResponse.js +0 -53
- package/dist/models/PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseDiscriminator.d.ts +0 -66
- package/dist/models/PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseDiscriminator.js +0 -78
- package/dist/models/RejectFileRequest.d.ts +0 -47
- package/dist/models/RejectFileRequest.js +0 -57
- package/dist/models/SelfHostedRunnerConfig.d.ts +0 -53
- package/dist/models/SelfHostedRunnerConfig.js +0 -61
- package/dist/models/SelfHostedRunnerConfigResponse.d.ts +0 -47
- package/dist/models/SelfHostedRunnerConfigResponse.js +0 -57
- package/dist/models/WorkflowRunStatus.d.ts +0 -45
- package/dist/models/WorkflowRunStatus.js +0 -71
- package/dist/models/WorkflowRunnerType.d.ts +0 -25
- package/dist/models/WorkflowRunnerType.js +0 -51
- package/docs/FolderResponseOrDocumentResponse.md +0 -70
- package/docs/SelfHostedRunnerConfig.md +0 -37
- package/docs/SelfHostedRunnerConfigResponse.md +0 -35
- package/docs/WorkflowRunStatus.md +0 -33
- package/docs/WorkflowRunnerType.md +0 -33
- package/src/models/ABCDPathSnapshot.ts +0 -111
- package/src/models/FolderResponseOrDocumentResponse.ts +0 -72
- package/src/models/InvokeWorkflowRequest.ts +0 -97
- package/src/models/ListMemoryChunksResponse.ts +0 -91
- package/src/models/RejectFileRequest.ts +0 -87
- package/src/models/SelfHostedRunnerConfig.ts +0 -96
- package/src/models/SelfHostedRunnerConfigResponse.ts +0 -87
- package/src/models/WorkflowRunStatus.ts +0 -73
- package/src/models/WorkflowRunnerType.ts +0 -53
|
@@ -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
|
*/
|
|
@@ -106,53 +106,83 @@ class WorkflowDefinitionsApi extends runtime.BaseAPI {
|
|
|
106
106
|
});
|
|
107
107
|
}
|
|
108
108
|
/**
|
|
109
|
-
* Creates request options for
|
|
109
|
+
* Creates request options for createWorkflowRun without sending the request
|
|
110
110
|
*/
|
|
111
|
-
|
|
111
|
+
createWorkflowRunRequestOpts(requestParameters) {
|
|
112
112
|
return __awaiter(this, void 0, void 0, function* () {
|
|
113
113
|
if (requestParameters['definitionId'] == null) {
|
|
114
|
-
throw new runtime.RequiredError('definitionId', 'Required parameter "definitionId" was null or undefined when calling
|
|
114
|
+
throw new runtime.RequiredError('definitionId', 'Required parameter "definitionId" was null or undefined when calling createWorkflowRun().');
|
|
115
115
|
}
|
|
116
116
|
const queryParameters = {};
|
|
117
117
|
const headerParameters = {};
|
|
118
118
|
if (requestParameters['authorization'] != null) {
|
|
119
119
|
headerParameters['authorization'] = String(requestParameters['authorization']);
|
|
120
120
|
}
|
|
121
|
-
|
|
121
|
+
const consumes = [
|
|
122
|
+
{ contentType: 'multipart/form-data' },
|
|
123
|
+
];
|
|
124
|
+
// @ts-ignore: canConsumeForm may be unused
|
|
125
|
+
const canConsumeForm = runtime.canConsumeForm(consumes);
|
|
126
|
+
let formParams;
|
|
127
|
+
let useForm = false;
|
|
128
|
+
// use FormData to transmit files using content-type "multipart/form-data"
|
|
129
|
+
useForm = canConsumeForm;
|
|
130
|
+
if (useForm) {
|
|
131
|
+
formParams = new FormData();
|
|
132
|
+
}
|
|
133
|
+
else {
|
|
134
|
+
formParams = new URLSearchParams();
|
|
135
|
+
}
|
|
136
|
+
if (requestParameters['files'] != null) {
|
|
137
|
+
requestParameters['files'].forEach((element) => {
|
|
138
|
+
formParams.append('files', element);
|
|
139
|
+
});
|
|
140
|
+
}
|
|
141
|
+
if (requestParameters['inputScope'] != null) {
|
|
142
|
+
formParams.append('input_scope', requestParameters['inputScope']);
|
|
143
|
+
}
|
|
144
|
+
if (requestParameters['idempotencyKey'] != null) {
|
|
145
|
+
formParams.append('idempotency_key', requestParameters['idempotencyKey']);
|
|
146
|
+
}
|
|
147
|
+
let urlPath = `/v1/workflow-definitions/{definition_id}/runs`;
|
|
122
148
|
urlPath = urlPath.replace(`{${"definition_id"}}`, encodeURIComponent(String(requestParameters['definitionId'])));
|
|
123
149
|
return {
|
|
124
150
|
path: urlPath,
|
|
125
|
-
method: '
|
|
151
|
+
method: 'POST',
|
|
126
152
|
headers: headerParameters,
|
|
127
153
|
query: queryParameters,
|
|
154
|
+
body: formParams,
|
|
128
155
|
};
|
|
129
156
|
});
|
|
130
157
|
}
|
|
131
158
|
/**
|
|
132
|
-
*
|
|
159
|
+
* 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.
|
|
160
|
+
* Create Workflow Run Handler
|
|
133
161
|
*/
|
|
134
|
-
|
|
162
|
+
createWorkflowRunRaw(requestParameters, initOverrides) {
|
|
135
163
|
return __awaiter(this, void 0, void 0, function* () {
|
|
136
|
-
const requestOptions = yield this.
|
|
164
|
+
const requestOptions = yield this.createWorkflowRunRequestOpts(requestParameters);
|
|
137
165
|
const response = yield this.request(requestOptions, initOverrides);
|
|
138
|
-
return new runtime.
|
|
166
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.WorkflowRunResponseFromJSON)(jsonValue));
|
|
139
167
|
});
|
|
140
168
|
}
|
|
141
169
|
/**
|
|
142
|
-
*
|
|
170
|
+
* 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.
|
|
171
|
+
* Create Workflow Run Handler
|
|
143
172
|
*/
|
|
144
|
-
|
|
173
|
+
createWorkflowRun(requestParameters, initOverrides) {
|
|
145
174
|
return __awaiter(this, void 0, void 0, function* () {
|
|
146
|
-
yield this.
|
|
175
|
+
const response = yield this.createWorkflowRunRaw(requestParameters, initOverrides);
|
|
176
|
+
return yield response.value();
|
|
147
177
|
});
|
|
148
178
|
}
|
|
149
179
|
/**
|
|
150
|
-
* Creates request options for
|
|
180
|
+
* Creates request options for deleteWorkflowDefinition without sending the request
|
|
151
181
|
*/
|
|
152
|
-
|
|
182
|
+
deleteWorkflowDefinitionRequestOpts(requestParameters) {
|
|
153
183
|
return __awaiter(this, void 0, void 0, function* () {
|
|
154
184
|
if (requestParameters['definitionId'] == null) {
|
|
155
|
-
throw new runtime.RequiredError('definitionId', 'Required parameter "definitionId" was null or undefined when calling
|
|
185
|
+
throw new runtime.RequiredError('definitionId', 'Required parameter "definitionId" was null or undefined when calling deleteWorkflowDefinition().');
|
|
156
186
|
}
|
|
157
187
|
const queryParameters = {};
|
|
158
188
|
const headerParameters = {};
|
|
@@ -163,77 +193,69 @@ class WorkflowDefinitionsApi extends runtime.BaseAPI {
|
|
|
163
193
|
urlPath = urlPath.replace(`{${"definition_id"}}`, encodeURIComponent(String(requestParameters['definitionId'])));
|
|
164
194
|
return {
|
|
165
195
|
path: urlPath,
|
|
166
|
-
method: '
|
|
196
|
+
method: 'DELETE',
|
|
167
197
|
headers: headerParameters,
|
|
168
198
|
query: queryParameters,
|
|
169
199
|
};
|
|
170
200
|
});
|
|
171
201
|
}
|
|
172
202
|
/**
|
|
173
|
-
*
|
|
203
|
+
* Delete Workflow Definition Handler
|
|
174
204
|
*/
|
|
175
|
-
|
|
205
|
+
deleteWorkflowDefinitionRaw(requestParameters, initOverrides) {
|
|
176
206
|
return __awaiter(this, void 0, void 0, function* () {
|
|
177
|
-
const requestOptions = yield this.
|
|
207
|
+
const requestOptions = yield this.deleteWorkflowDefinitionRequestOpts(requestParameters);
|
|
178
208
|
const response = yield this.request(requestOptions, initOverrides);
|
|
179
|
-
return new runtime.
|
|
209
|
+
return new runtime.VoidApiResponse(response);
|
|
180
210
|
});
|
|
181
211
|
}
|
|
182
212
|
/**
|
|
183
|
-
*
|
|
213
|
+
* Delete Workflow Definition Handler
|
|
184
214
|
*/
|
|
185
|
-
|
|
215
|
+
deleteWorkflowDefinition(requestParameters, initOverrides) {
|
|
186
216
|
return __awaiter(this, void 0, void 0, function* () {
|
|
187
|
-
|
|
188
|
-
return yield response.value();
|
|
217
|
+
yield this.deleteWorkflowDefinitionRaw(requestParameters, initOverrides);
|
|
189
218
|
});
|
|
190
219
|
}
|
|
191
220
|
/**
|
|
192
|
-
* Creates request options for
|
|
221
|
+
* Creates request options for getWorkflowDefinition without sending the request
|
|
193
222
|
*/
|
|
194
|
-
|
|
223
|
+
getWorkflowDefinitionRequestOpts(requestParameters) {
|
|
195
224
|
return __awaiter(this, void 0, void 0, function* () {
|
|
196
225
|
if (requestParameters['definitionId'] == null) {
|
|
197
|
-
throw new runtime.RequiredError('definitionId', 'Required parameter "definitionId" was null or undefined when calling
|
|
198
|
-
}
|
|
199
|
-
if (requestParameters['invokeWorkflowRequest'] == null) {
|
|
200
|
-
throw new runtime.RequiredError('invokeWorkflowRequest', 'Required parameter "invokeWorkflowRequest" was null or undefined when calling invokeWorkflow().');
|
|
226
|
+
throw new runtime.RequiredError('definitionId', 'Required parameter "definitionId" was null or undefined when calling getWorkflowDefinition().');
|
|
201
227
|
}
|
|
202
228
|
const queryParameters = {};
|
|
203
229
|
const headerParameters = {};
|
|
204
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
205
230
|
if (requestParameters['authorization'] != null) {
|
|
206
231
|
headerParameters['authorization'] = String(requestParameters['authorization']);
|
|
207
232
|
}
|
|
208
|
-
let urlPath = `/v1/workflow-definitions/{definition_id}
|
|
233
|
+
let urlPath = `/v1/workflow-definitions/{definition_id}`;
|
|
209
234
|
urlPath = urlPath.replace(`{${"definition_id"}}`, encodeURIComponent(String(requestParameters['definitionId'])));
|
|
210
235
|
return {
|
|
211
236
|
path: urlPath,
|
|
212
|
-
method: '
|
|
237
|
+
method: 'GET',
|
|
213
238
|
headers: headerParameters,
|
|
214
239
|
query: queryParameters,
|
|
215
|
-
body: (0, index_1.InvokeWorkflowRequestToJSON)(requestParameters['invokeWorkflowRequest']),
|
|
216
240
|
};
|
|
217
241
|
});
|
|
218
242
|
}
|
|
219
243
|
/**
|
|
220
|
-
*
|
|
221
|
-
* Invoke Workflow Handler
|
|
244
|
+
* Get Workflow Definition Handler
|
|
222
245
|
*/
|
|
223
|
-
|
|
246
|
+
getWorkflowDefinitionRaw(requestParameters, initOverrides) {
|
|
224
247
|
return __awaiter(this, void 0, void 0, function* () {
|
|
225
|
-
const requestOptions = yield this.
|
|
248
|
+
const requestOptions = yield this.getWorkflowDefinitionRequestOpts(requestParameters);
|
|
226
249
|
const response = yield this.request(requestOptions, initOverrides);
|
|
227
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.
|
|
250
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.WorkflowDefinitionResponseFromJSON)(jsonValue));
|
|
228
251
|
});
|
|
229
252
|
}
|
|
230
253
|
/**
|
|
231
|
-
*
|
|
232
|
-
* Invoke Workflow Handler
|
|
254
|
+
* Get Workflow Definition Handler
|
|
233
255
|
*/
|
|
234
|
-
|
|
256
|
+
getWorkflowDefinition(requestParameters, initOverrides) {
|
|
235
257
|
return __awaiter(this, void 0, void 0, function* () {
|
|
236
|
-
const response = yield this.
|
|
258
|
+
const response = yield this.getWorkflowDefinitionRaw(requestParameters, initOverrides);
|
|
237
259
|
return yield response.value();
|
|
238
260
|
});
|
|
239
261
|
}
|
|
@@ -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
|
}
|
|
@@ -91,7 +91,6 @@ class WorkflowMemoryApi extends runtime.BaseAPI {
|
|
|
91
91
|
});
|
|
92
92
|
}
|
|
93
93
|
/**
|
|
94
|
-
* 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.
|
|
95
94
|
* Append Workflow Memory Chunk Handler
|
|
96
95
|
*/
|
|
97
96
|
appendWorkflowMemoryChunkRaw(requestParameters, initOverrides) {
|
|
@@ -102,7 +101,6 @@ class WorkflowMemoryApi extends runtime.BaseAPI {
|
|
|
102
101
|
});
|
|
103
102
|
}
|
|
104
103
|
/**
|
|
105
|
-
* 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.
|
|
106
104
|
* Append Workflow Memory Chunk Handler
|
|
107
105
|
*/
|
|
108
106
|
appendWorkflowMemoryChunk(requestParameters, initOverrides) {
|
|
@@ -262,6 +260,12 @@ class WorkflowMemoryApi extends runtime.BaseAPI {
|
|
|
262
260
|
throw new runtime.RequiredError('definitionId', 'Required parameter "definitionId" was null or undefined when calling listWorkflowMemoryChunks().');
|
|
263
261
|
}
|
|
264
262
|
const queryParameters = {};
|
|
263
|
+
if (requestParameters['limit'] != null) {
|
|
264
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
265
|
+
}
|
|
266
|
+
if (requestParameters['offset'] != null) {
|
|
267
|
+
queryParameters['offset'] = requestParameters['offset'];
|
|
268
|
+
}
|
|
265
269
|
const headerParameters = {};
|
|
266
270
|
if (requestParameters['authorization'] != null) {
|
|
267
271
|
headerParameters['authorization'] = String(requestParameters['authorization']);
|
|
@@ -283,7 +287,7 @@ class WorkflowMemoryApi extends runtime.BaseAPI {
|
|
|
283
287
|
return __awaiter(this, void 0, void 0, function* () {
|
|
284
288
|
const requestOptions = yield this.listWorkflowMemoryChunksRequestOpts(requestParameters);
|
|
285
289
|
const response = yield this.request(requestOptions, initOverrides);
|
|
286
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.
|
|
290
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.PaginatedResponseMemoryChunkResponseFromJSON)(jsonValue));
|
|
287
291
|
});
|
|
288
292
|
}
|
|
289
293
|
/**
|