@knowledge-stack/ksapi 1.88.1 → 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
|
@@ -63,50 +63,51 @@ const index_1 = require("../models/index");
|
|
|
63
63
|
*/
|
|
64
64
|
class WorkflowRunsApi extends runtime.BaseAPI {
|
|
65
65
|
/**
|
|
66
|
-
* Creates request options for
|
|
66
|
+
* Creates request options for cloneWorkflowRun without sending the request
|
|
67
67
|
*/
|
|
68
|
-
|
|
68
|
+
cloneWorkflowRunRequestOpts(requestParameters) {
|
|
69
69
|
return __awaiter(this, void 0, void 0, function* () {
|
|
70
70
|
if (requestParameters['runId'] == null) {
|
|
71
|
-
throw new runtime.RequiredError('runId', 'Required parameter "runId" was null or undefined when calling
|
|
71
|
+
throw new runtime.RequiredError('runId', 'Required parameter "runId" was null or undefined when calling cloneWorkflowRun().');
|
|
72
72
|
}
|
|
73
|
-
if (requestParameters['
|
|
74
|
-
throw new runtime.RequiredError('
|
|
73
|
+
if (requestParameters['cloneWorkflowRunRequest'] == null) {
|
|
74
|
+
throw new runtime.RequiredError('cloneWorkflowRunRequest', 'Required parameter "cloneWorkflowRunRequest" was null or undefined when calling cloneWorkflowRun().');
|
|
75
75
|
}
|
|
76
76
|
const queryParameters = {};
|
|
77
77
|
const headerParameters = {};
|
|
78
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
78
79
|
if (requestParameters['authorization'] != null) {
|
|
79
80
|
headerParameters['authorization'] = String(requestParameters['authorization']);
|
|
80
81
|
}
|
|
81
|
-
let urlPath = `/v1/workflow-runs/{run_id}/
|
|
82
|
+
let urlPath = `/v1/workflow-runs/{run_id}/clone`;
|
|
82
83
|
urlPath = urlPath.replace(`{${"run_id"}}`, encodeURIComponent(String(requestParameters['runId'])));
|
|
83
|
-
urlPath = urlPath.replace(`{${"path_part_id"}}`, encodeURIComponent(String(requestParameters['pathPartId'])));
|
|
84
84
|
return {
|
|
85
85
|
path: urlPath,
|
|
86
86
|
method: 'POST',
|
|
87
87
|
headers: headerParameters,
|
|
88
88
|
query: queryParameters,
|
|
89
|
+
body: (0, index_1.CloneWorkflowRunRequestToJSON)(requestParameters['cloneWorkflowRunRequest']),
|
|
89
90
|
};
|
|
90
91
|
});
|
|
91
92
|
}
|
|
92
93
|
/**
|
|
93
|
-
*
|
|
94
|
-
*
|
|
94
|
+
* Clone a started run into a new NOT_STARTED draft. ``include_inputs=True`` pins the source\'s snapshotted inputs onto the new run; uploads stay in the source\'s ``inputs/`` and are referenced by path_part_id. No S3 copy. A NOT_STARTED source has no snapshot to pin → 409. The clone is born NOT_STARTED so the user can edit it (PATCH) before pressing Start.
|
|
95
|
+
* Clone Workflow Run Handler
|
|
95
96
|
*/
|
|
96
|
-
|
|
97
|
+
cloneWorkflowRunRaw(requestParameters, initOverrides) {
|
|
97
98
|
return __awaiter(this, void 0, void 0, function* () {
|
|
98
|
-
const requestOptions = yield this.
|
|
99
|
+
const requestOptions = yield this.cloneWorkflowRunRequestOpts(requestParameters);
|
|
99
100
|
const response = yield this.request(requestOptions, initOverrides);
|
|
100
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.
|
|
101
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.WorkflowRunResponseFromJSON)(jsonValue));
|
|
101
102
|
});
|
|
102
103
|
}
|
|
103
104
|
/**
|
|
104
|
-
*
|
|
105
|
-
*
|
|
105
|
+
* Clone a started run into a new NOT_STARTED draft. ``include_inputs=True`` pins the source\'s snapshotted inputs onto the new run; uploads stay in the source\'s ``inputs/`` and are referenced by path_part_id. No S3 copy. A NOT_STARTED source has no snapshot to pin → 409. The clone is born NOT_STARTED so the user can edit it (PATCH) before pressing Start.
|
|
106
|
+
* Clone Workflow Run Handler
|
|
106
107
|
*/
|
|
107
|
-
|
|
108
|
+
cloneWorkflowRun(requestParameters, initOverrides) {
|
|
108
109
|
return __awaiter(this, void 0, void 0, function* () {
|
|
109
|
-
const response = yield this.
|
|
110
|
+
const response = yield this.cloneWorkflowRunRaw(requestParameters, initOverrides);
|
|
110
111
|
return yield response.value();
|
|
111
112
|
});
|
|
112
113
|
}
|
|
@@ -194,18 +195,15 @@ class WorkflowRunsApi extends runtime.BaseAPI {
|
|
|
194
195
|
});
|
|
195
196
|
}
|
|
196
197
|
/**
|
|
197
|
-
* Creates request options for
|
|
198
|
+
* Creates request options for setWorkflowRunApproval without sending the request
|
|
198
199
|
*/
|
|
199
|
-
|
|
200
|
+
setWorkflowRunApprovalRequestOpts(requestParameters) {
|
|
200
201
|
return __awaiter(this, void 0, void 0, function* () {
|
|
201
202
|
if (requestParameters['runId'] == null) {
|
|
202
|
-
throw new runtime.RequiredError('runId', 'Required parameter "runId" was null or undefined when calling
|
|
203
|
-
}
|
|
204
|
-
if (requestParameters['pathPartId'] == null) {
|
|
205
|
-
throw new runtime.RequiredError('pathPartId', 'Required parameter "pathPartId" was null or undefined when calling rejectWorkflowRunFile().');
|
|
203
|
+
throw new runtime.RequiredError('runId', 'Required parameter "runId" was null or undefined when calling setWorkflowRunApproval().');
|
|
206
204
|
}
|
|
207
|
-
if (requestParameters['
|
|
208
|
-
throw new runtime.RequiredError('
|
|
205
|
+
if (requestParameters['setWorkflowRunApprovalRequest'] == null) {
|
|
206
|
+
throw new runtime.RequiredError('setWorkflowRunApprovalRequest', 'Required parameter "setWorkflowRunApprovalRequest" was null or undefined when calling setWorkflowRunApproval().');
|
|
209
207
|
}
|
|
210
208
|
const queryParameters = {};
|
|
211
209
|
const headerParameters = {};
|
|
@@ -213,58 +211,53 @@ class WorkflowRunsApi extends runtime.BaseAPI {
|
|
|
213
211
|
if (requestParameters['authorization'] != null) {
|
|
214
212
|
headerParameters['authorization'] = String(requestParameters['authorization']);
|
|
215
213
|
}
|
|
216
|
-
let urlPath = `/v1/workflow-runs/{run_id}/
|
|
214
|
+
let urlPath = `/v1/workflow-runs/{run_id}/approval`;
|
|
217
215
|
urlPath = urlPath.replace(`{${"run_id"}}`, encodeURIComponent(String(requestParameters['runId'])));
|
|
218
|
-
urlPath = urlPath.replace(`{${"path_part_id"}}`, encodeURIComponent(String(requestParameters['pathPartId'])));
|
|
219
216
|
return {
|
|
220
217
|
path: urlPath,
|
|
221
218
|
method: 'POST',
|
|
222
219
|
headers: headerParameters,
|
|
223
220
|
query: queryParameters,
|
|
224
|
-
body: (0, index_1.
|
|
221
|
+
body: (0, index_1.SetWorkflowRunApprovalRequestToJSON)(requestParameters['setWorkflowRunApprovalRequest']),
|
|
225
222
|
};
|
|
226
223
|
});
|
|
227
224
|
}
|
|
228
225
|
/**
|
|
229
|
-
*
|
|
230
|
-
*
|
|
226
|
+
* Approve an entire completed run in one call. Approves every output document under ``outputs/`` then the run folder. The run must be ``COMPLETED`` and its definition must have required approval. Requires write access to the run folder. ``run_id`` is the WorkflowRun id.
|
|
227
|
+
* Set Workflow Run Approval Handler
|
|
231
228
|
*/
|
|
232
|
-
|
|
229
|
+
setWorkflowRunApprovalRaw(requestParameters, initOverrides) {
|
|
233
230
|
return __awaiter(this, void 0, void 0, function* () {
|
|
234
|
-
const requestOptions = yield this.
|
|
231
|
+
const requestOptions = yield this.setWorkflowRunApprovalRequestOpts(requestParameters);
|
|
235
232
|
const response = yield this.request(requestOptions, initOverrides);
|
|
236
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.
|
|
233
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.WorkflowRunResponseFromJSON)(jsonValue));
|
|
237
234
|
});
|
|
238
235
|
}
|
|
239
236
|
/**
|
|
240
|
-
*
|
|
241
|
-
*
|
|
237
|
+
* Approve an entire completed run in one call. Approves every output document under ``outputs/`` then the run folder. The run must be ``COMPLETED`` and its definition must have required approval. Requires write access to the run folder. ``run_id`` is the WorkflowRun id.
|
|
238
|
+
* Set Workflow Run Approval Handler
|
|
242
239
|
*/
|
|
243
|
-
|
|
240
|
+
setWorkflowRunApproval(requestParameters, initOverrides) {
|
|
244
241
|
return __awaiter(this, void 0, void 0, function* () {
|
|
245
|
-
const response = yield this.
|
|
242
|
+
const response = yield this.setWorkflowRunApprovalRaw(requestParameters, initOverrides);
|
|
246
243
|
return yield response.value();
|
|
247
244
|
});
|
|
248
245
|
}
|
|
249
246
|
/**
|
|
250
|
-
* Creates request options for
|
|
247
|
+
* Creates request options for startWorkflowRun without sending the request
|
|
251
248
|
*/
|
|
252
|
-
|
|
249
|
+
startWorkflowRunRequestOpts(requestParameters) {
|
|
253
250
|
return __awaiter(this, void 0, void 0, function* () {
|
|
254
251
|
if (requestParameters['runId'] == null) {
|
|
255
|
-
throw new runtime.RequiredError('runId', 'Required parameter "runId" was null or undefined when calling
|
|
256
|
-
}
|
|
257
|
-
if (requestParameters['pathPartId'] == null) {
|
|
258
|
-
throw new runtime.RequiredError('pathPartId', 'Required parameter "pathPartId" was null or undefined when calling unapproveWorkflowRunFile().');
|
|
252
|
+
throw new runtime.RequiredError('runId', 'Required parameter "runId" was null or undefined when calling startWorkflowRun().');
|
|
259
253
|
}
|
|
260
254
|
const queryParameters = {};
|
|
261
255
|
const headerParameters = {};
|
|
262
256
|
if (requestParameters['authorization'] != null) {
|
|
263
257
|
headerParameters['authorization'] = String(requestParameters['authorization']);
|
|
264
258
|
}
|
|
265
|
-
let urlPath = `/v1/workflow-runs/{run_id}/
|
|
259
|
+
let urlPath = `/v1/workflow-runs/{run_id}/start`;
|
|
266
260
|
urlPath = urlPath.replace(`{${"run_id"}}`, encodeURIComponent(String(requestParameters['runId'])));
|
|
267
|
-
urlPath = urlPath.replace(`{${"path_part_id"}}`, encodeURIComponent(String(requestParameters['pathPartId'])));
|
|
268
261
|
return {
|
|
269
262
|
path: urlPath,
|
|
270
263
|
method: 'POST',
|
|
@@ -274,23 +267,72 @@ class WorkflowRunsApi extends runtime.BaseAPI {
|
|
|
274
267
|
});
|
|
275
268
|
}
|
|
276
269
|
/**
|
|
277
|
-
*
|
|
278
|
-
*
|
|
270
|
+
* Flip a NOT_STARTED run to IN_PROGRESS and dispatch its agent run. Idempotent on IN_PROGRESS (returns the row). Terminal states → 409. Inputs still ingesting or in a failed terminal state → 409. The snapshot is built at this point (KB DOCUMENTs resolve to active versions, uploaded DVs are walked from inputs/, KB FOLDERs stay live).
|
|
271
|
+
* Start Workflow Run Handler
|
|
279
272
|
*/
|
|
280
|
-
|
|
273
|
+
startWorkflowRunRaw(requestParameters, initOverrides) {
|
|
281
274
|
return __awaiter(this, void 0, void 0, function* () {
|
|
282
|
-
const requestOptions = yield this.
|
|
275
|
+
const requestOptions = yield this.startWorkflowRunRequestOpts(requestParameters);
|
|
283
276
|
const response = yield this.request(requestOptions, initOverrides);
|
|
284
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.
|
|
277
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.WorkflowRunResponseFromJSON)(jsonValue));
|
|
285
278
|
});
|
|
286
279
|
}
|
|
287
280
|
/**
|
|
288
|
-
*
|
|
289
|
-
*
|
|
281
|
+
* Flip a NOT_STARTED run to IN_PROGRESS and dispatch its agent run. Idempotent on IN_PROGRESS (returns the row). Terminal states → 409. Inputs still ingesting or in a failed terminal state → 409. The snapshot is built at this point (KB DOCUMENTs resolve to active versions, uploaded DVs are walked from inputs/, KB FOLDERs stay live).
|
|
282
|
+
* Start Workflow Run Handler
|
|
290
283
|
*/
|
|
291
|
-
|
|
284
|
+
startWorkflowRun(requestParameters, initOverrides) {
|
|
292
285
|
return __awaiter(this, void 0, void 0, function* () {
|
|
293
|
-
const response = yield this.
|
|
286
|
+
const response = yield this.startWorkflowRunRaw(requestParameters, initOverrides);
|
|
287
|
+
return yield response.value();
|
|
288
|
+
});
|
|
289
|
+
}
|
|
290
|
+
/**
|
|
291
|
+
* Creates request options for updateWorkflowRun without sending the request
|
|
292
|
+
*/
|
|
293
|
+
updateWorkflowRunRequestOpts(requestParameters) {
|
|
294
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
295
|
+
if (requestParameters['runId'] == null) {
|
|
296
|
+
throw new runtime.RequiredError('runId', 'Required parameter "runId" was null or undefined when calling updateWorkflowRun().');
|
|
297
|
+
}
|
|
298
|
+
if (requestParameters['updateWorkflowRunRequest'] == null) {
|
|
299
|
+
throw new runtime.RequiredError('updateWorkflowRunRequest', 'Required parameter "updateWorkflowRunRequest" was null or undefined when calling updateWorkflowRun().');
|
|
300
|
+
}
|
|
301
|
+
const queryParameters = {};
|
|
302
|
+
const headerParameters = {};
|
|
303
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
304
|
+
if (requestParameters['authorization'] != null) {
|
|
305
|
+
headerParameters['authorization'] = String(requestParameters['authorization']);
|
|
306
|
+
}
|
|
307
|
+
let urlPath = `/v1/workflow-runs/{run_id}`;
|
|
308
|
+
urlPath = urlPath.replace(`{${"run_id"}}`, encodeURIComponent(String(requestParameters['runId'])));
|
|
309
|
+
return {
|
|
310
|
+
path: urlPath,
|
|
311
|
+
method: 'PATCH',
|
|
312
|
+
headers: headerParameters,
|
|
313
|
+
query: queryParameters,
|
|
314
|
+
body: (0, index_1.UpdateWorkflowRunRequestToJSON)(requestParameters['updateWorkflowRunRequest']),
|
|
315
|
+
};
|
|
316
|
+
});
|
|
317
|
+
}
|
|
318
|
+
/**
|
|
319
|
+
* Edit a NOT_STARTED run\'s KB scope and / or display name. Both body fields are optional but at least one must be present. The run must be ``NOT_STARTED`` (409 otherwise). Caller must be the triggerer or OWNER/ADMIN (403 otherwise). A name collision with a sibling run under the same definition\'s ``runs/`` folder maps to a 409 via ``IntegrityError`` translation.
|
|
320
|
+
* Update Workflow Run Handler
|
|
321
|
+
*/
|
|
322
|
+
updateWorkflowRunRaw(requestParameters, initOverrides) {
|
|
323
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
324
|
+
const requestOptions = yield this.updateWorkflowRunRequestOpts(requestParameters);
|
|
325
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
326
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.WorkflowRunResponseFromJSON)(jsonValue));
|
|
327
|
+
});
|
|
328
|
+
}
|
|
329
|
+
/**
|
|
330
|
+
* Edit a NOT_STARTED run\'s KB scope and / or display name. Both body fields are optional but at least one must be present. The run must be ``NOT_STARTED`` (409 otherwise). Caller must be the triggerer or OWNER/ADMIN (403 otherwise). A name collision with a sibling run under the same definition\'s ``runs/`` folder maps to a 409 via ``IntegrityError`` translation.
|
|
331
|
+
* Update Workflow Run Handler
|
|
332
|
+
*/
|
|
333
|
+
updateWorkflowRun(requestParameters, initOverrides) {
|
|
334
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
335
|
+
const response = yield this.updateWorkflowRunRaw(requestParameters, initOverrides);
|
|
294
336
|
return yield response.value();
|
|
295
337
|
});
|
|
296
338
|
}
|
|
@@ -308,6 +350,9 @@ class WorkflowRunsApi extends runtime.BaseAPI {
|
|
|
308
350
|
const queryParameters = {};
|
|
309
351
|
const headerParameters = {};
|
|
310
352
|
headerParameters['Content-Type'] = 'application/json';
|
|
353
|
+
if (requestParameters['authorization'] != null) {
|
|
354
|
+
headerParameters['authorization'] = String(requestParameters['authorization']);
|
|
355
|
+
}
|
|
311
356
|
let urlPath = `/v1/workflow-runs/{run_id}/callback`;
|
|
312
357
|
urlPath = urlPath.replace(`{${"run_id"}}`, encodeURIComponent(String(requestParameters['runId'])));
|
|
313
358
|
return {
|
|
@@ -320,6 +365,7 @@ class WorkflowRunsApi extends runtime.BaseAPI {
|
|
|
320
365
|
});
|
|
321
366
|
}
|
|
322
367
|
/**
|
|
368
|
+
* Terminal-state write seam for the in-process agent runner. The gating Temporal activities ``mark_run_completed_activity`` and ``mark_run_failed_activity`` authenticate as the triggering user (via ``assume_user``) and POST here. Only the user who triggered the run (or OWNER/ADMIN) may write its terminal state. The handler is idempotent: a callback against an already-terminal row returns ``already_terminal`` and the activity-level retry treats it as a no-op.
|
|
323
369
|
* Workflow Run Callback Handler
|
|
324
370
|
*/
|
|
325
371
|
workflowRunCallbackRaw(requestParameters, initOverrides) {
|
|
@@ -330,6 +376,7 @@ class WorkflowRunsApi extends runtime.BaseAPI {
|
|
|
330
376
|
});
|
|
331
377
|
}
|
|
332
378
|
/**
|
|
379
|
+
* Terminal-state write seam for the in-process agent runner. The gating Temporal activities ``mark_run_completed_activity`` and ``mark_run_failed_activity`` authenticate as the triggering user (via ``assume_user``) and POST here. Only the user who triggered the run (or OWNER/ADMIN) may write its terminal state. The handler is idempotent: a callback against an already-terminal row returns ``already_terminal`` and the activity-level retry treats it as a no-op.
|
|
333
380
|
* Workflow Run Callback Handler
|
|
334
381
|
*/
|
|
335
382
|
workflowRunCallback(requestParameters, initOverrides) {
|
package/dist/apis/index.d.ts
CHANGED
|
@@ -11,6 +11,7 @@ export * from './FeaturesApi';
|
|
|
11
11
|
export * from './FeedbackApi';
|
|
12
12
|
export * from './FoldersApi';
|
|
13
13
|
export * from './InvitesApi';
|
|
14
|
+
export * from './PathPartApprovalsApi';
|
|
14
15
|
export * from './PathPartsApi';
|
|
15
16
|
export * from './PublicApi';
|
|
16
17
|
export * from './SectionsApi';
|
package/dist/apis/index.js
CHANGED
|
@@ -29,6 +29,7 @@ __exportStar(require("./FeaturesApi"), exports);
|
|
|
29
29
|
__exportStar(require("./FeedbackApi"), exports);
|
|
30
30
|
__exportStar(require("./FoldersApi"), exports);
|
|
31
31
|
__exportStar(require("./InvitesApi"), exports);
|
|
32
|
+
__exportStar(require("./PathPartApprovalsApi"), exports);
|
|
32
33
|
__exportStar(require("./PathPartsApi"), exports);
|
|
33
34
|
__exportStar(require("./PublicApi"), exports);
|
|
34
35
|
__exportStar(require("./SectionsApi"), exports);
|
|
@@ -12,17 +12,18 @@
|
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
13
|
import type { DocumentCheckoutResponse } from '../models/index';
|
|
14
14
|
export interface AcquireDocumentCheckoutRequest {
|
|
15
|
-
|
|
15
|
+
documentId: string;
|
|
16
|
+
force?: boolean;
|
|
16
17
|
authorization?: string | null;
|
|
17
18
|
ksUat?: string | null;
|
|
18
19
|
}
|
|
19
20
|
export interface GetDocumentCheckoutRequest {
|
|
20
|
-
|
|
21
|
+
documentId: string;
|
|
21
22
|
authorization?: string | null;
|
|
22
23
|
ksUat?: string | null;
|
|
23
24
|
}
|
|
24
25
|
export interface ReleaseDocumentCheckoutRequest {
|
|
25
|
-
|
|
26
|
+
documentId: string;
|
|
26
27
|
authorization?: string | null;
|
|
27
28
|
ksUat?: string | null;
|
|
28
29
|
}
|
|
@@ -35,7 +36,8 @@ export interface ReleaseDocumentCheckoutRequest {
|
|
|
35
36
|
export interface DocumentCheckoutApiInterface {
|
|
36
37
|
/**
|
|
37
38
|
* Creates request options for acquireDocumentCheckout without sending the request
|
|
38
|
-
* @param {string}
|
|
39
|
+
* @param {string} documentId Document ID
|
|
40
|
+
* @param {boolean} [force] OWNER/ADMIN only — atomically take the checkout regardless of the current holder. Sealed docs are still refused.
|
|
39
41
|
* @param {string} [authorization]
|
|
40
42
|
* @param {string} [ksUat]
|
|
41
43
|
* @throws {RequiredError}
|
|
@@ -43,9 +45,10 @@ export interface DocumentCheckoutApiInterface {
|
|
|
43
45
|
*/
|
|
44
46
|
acquireDocumentCheckoutRequestOpts(requestParameters: AcquireDocumentCheckoutRequest): Promise<runtime.RequestOpts>;
|
|
45
47
|
/**
|
|
46
|
-
* Acquire a write lock on the document. If the caller already holds the lock, re-acquire refreshes ``acquired_at``; the response is 200 in both cases. If another user holds the lock, returns 409. Locks have no TTL — they persist until released by the holder.
|
|
48
|
+
* Acquire a write lock on the document. If the caller already holds the lock, re-acquire refreshes ``acquired_at``; the response is 200 in both cases. If another user holds the lock, returns 409. ``?force=true`` lets OWNER/ADMIN steal the lock from the current holder; a sealed (approved) document is refused regardless of ``force``. Locks have no TTL — they persist until released by the holder.
|
|
47
49
|
* @summary Acquire Document Checkout Handler
|
|
48
|
-
* @param {string}
|
|
50
|
+
* @param {string} documentId Document ID
|
|
51
|
+
* @param {boolean} [force] OWNER/ADMIN only — atomically take the checkout regardless of the current holder. Sealed docs are still refused.
|
|
49
52
|
* @param {string} [authorization]
|
|
50
53
|
* @param {string} [ksUat]
|
|
51
54
|
* @param {*} [options] Override http request option.
|
|
@@ -54,13 +57,13 @@ export interface DocumentCheckoutApiInterface {
|
|
|
54
57
|
*/
|
|
55
58
|
acquireDocumentCheckoutRaw(requestParameters: AcquireDocumentCheckoutRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DocumentCheckoutResponse>>;
|
|
56
59
|
/**
|
|
57
|
-
* Acquire a write lock on the document. If the caller already holds the lock, re-acquire refreshes ``acquired_at``; the response is 200 in both cases. If another user holds the lock, returns 409. Locks have no TTL — they persist until released by the holder.
|
|
60
|
+
* Acquire a write lock on the document. If the caller already holds the lock, re-acquire refreshes ``acquired_at``; the response is 200 in both cases. If another user holds the lock, returns 409. ``?force=true`` lets OWNER/ADMIN steal the lock from the current holder; a sealed (approved) document is refused regardless of ``force``. Locks have no TTL — they persist until released by the holder.
|
|
58
61
|
* Acquire Document Checkout Handler
|
|
59
62
|
*/
|
|
60
63
|
acquireDocumentCheckout(requestParameters: AcquireDocumentCheckoutRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DocumentCheckoutResponse>;
|
|
61
64
|
/**
|
|
62
65
|
* Creates request options for getDocumentCheckout without sending the request
|
|
63
|
-
* @param {string}
|
|
66
|
+
* @param {string} documentId Document ID
|
|
64
67
|
* @param {string} [authorization]
|
|
65
68
|
* @param {string} [ksUat]
|
|
66
69
|
* @throws {RequiredError}
|
|
@@ -70,7 +73,7 @@ export interface DocumentCheckoutApiInterface {
|
|
|
70
73
|
/**
|
|
71
74
|
* Get the active checkout for the document. 404 if no active checkout exists. The holder can always GET their own lock regardless of current path permissions (parallel to the release holder-bypass).
|
|
72
75
|
* @summary Get Document Checkout Handler
|
|
73
|
-
* @param {string}
|
|
76
|
+
* @param {string} documentId Document ID
|
|
74
77
|
* @param {string} [authorization]
|
|
75
78
|
* @param {string} [ksUat]
|
|
76
79
|
* @param {*} [options] Override http request option.
|
|
@@ -85,7 +88,7 @@ export interface DocumentCheckoutApiInterface {
|
|
|
85
88
|
getDocumentCheckout(requestParameters: GetDocumentCheckoutRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DocumentCheckoutResponse>;
|
|
86
89
|
/**
|
|
87
90
|
* Creates request options for releaseDocumentCheckout without sending the request
|
|
88
|
-
* @param {string}
|
|
91
|
+
* @param {string} documentId Document ID
|
|
89
92
|
* @param {string} [authorization]
|
|
90
93
|
* @param {string} [ksUat]
|
|
91
94
|
* @throws {RequiredError}
|
|
@@ -95,7 +98,7 @@ export interface DocumentCheckoutApiInterface {
|
|
|
95
98
|
/**
|
|
96
99
|
* Release the write lock on the document. Only the holder may release the lock; others receive 403. The holder can always release regardless of current path permissions (in case a folder move relocated the doc to a path the holder can no longer write to).
|
|
97
100
|
* @summary Release Document Checkout Handler
|
|
98
|
-
* @param {string}
|
|
101
|
+
* @param {string} documentId Document ID
|
|
99
102
|
* @param {string} [authorization]
|
|
100
103
|
* @param {string} [ksUat]
|
|
101
104
|
* @param {*} [options] Override http request option.
|
|
@@ -118,12 +121,12 @@ export declare class DocumentCheckoutApi extends runtime.BaseAPI implements Docu
|
|
|
118
121
|
*/
|
|
119
122
|
acquireDocumentCheckoutRequestOpts(requestParameters: AcquireDocumentCheckoutRequest): Promise<runtime.RequestOpts>;
|
|
120
123
|
/**
|
|
121
|
-
* Acquire a write lock on the document. If the caller already holds the lock, re-acquire refreshes ``acquired_at``; the response is 200 in both cases. If another user holds the lock, returns 409. Locks have no TTL — they persist until released by the holder.
|
|
124
|
+
* Acquire a write lock on the document. If the caller already holds the lock, re-acquire refreshes ``acquired_at``; the response is 200 in both cases. If another user holds the lock, returns 409. ``?force=true`` lets OWNER/ADMIN steal the lock from the current holder; a sealed (approved) document is refused regardless of ``force``. Locks have no TTL — they persist until released by the holder.
|
|
122
125
|
* Acquire Document Checkout Handler
|
|
123
126
|
*/
|
|
124
127
|
acquireDocumentCheckoutRaw(requestParameters: AcquireDocumentCheckoutRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DocumentCheckoutResponse>>;
|
|
125
128
|
/**
|
|
126
|
-
* Acquire a write lock on the document. If the caller already holds the lock, re-acquire refreshes ``acquired_at``; the response is 200 in both cases. If another user holds the lock, returns 409. Locks have no TTL — they persist until released by the holder.
|
|
129
|
+
* Acquire a write lock on the document. If the caller already holds the lock, re-acquire refreshes ``acquired_at``; the response is 200 in both cases. If another user holds the lock, returns 409. ``?force=true`` lets OWNER/ADMIN steal the lock from the current holder; a sealed (approved) document is refused regardless of ``force``. Locks have no TTL — they persist until released by the holder.
|
|
127
130
|
* Acquire Document Checkout Handler
|
|
128
131
|
*/
|
|
129
132
|
acquireDocumentCheckout(requestParameters: AcquireDocumentCheckoutRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DocumentCheckoutResponse>;
|
|
@@ -31,16 +31,19 @@ export class DocumentCheckoutApi extends runtime.BaseAPI {
|
|
|
31
31
|
*/
|
|
32
32
|
acquireDocumentCheckoutRequestOpts(requestParameters) {
|
|
33
33
|
return __awaiter(this, void 0, void 0, function* () {
|
|
34
|
-
if (requestParameters['
|
|
35
|
-
throw new runtime.RequiredError('
|
|
34
|
+
if (requestParameters['documentId'] == null) {
|
|
35
|
+
throw new runtime.RequiredError('documentId', 'Required parameter "documentId" was null or undefined when calling acquireDocumentCheckout().');
|
|
36
36
|
}
|
|
37
37
|
const queryParameters = {};
|
|
38
|
+
if (requestParameters['force'] != null) {
|
|
39
|
+
queryParameters['force'] = requestParameters['force'];
|
|
40
|
+
}
|
|
38
41
|
const headerParameters = {};
|
|
39
42
|
if (requestParameters['authorization'] != null) {
|
|
40
43
|
headerParameters['authorization'] = String(requestParameters['authorization']);
|
|
41
44
|
}
|
|
42
|
-
let urlPath = `/v1/documents/{
|
|
43
|
-
urlPath = urlPath.replace(`{${"
|
|
45
|
+
let urlPath = `/v1/documents/{document_id}/checkout`;
|
|
46
|
+
urlPath = urlPath.replace(`{${"document_id"}}`, encodeURIComponent(String(requestParameters['documentId'])));
|
|
44
47
|
return {
|
|
45
48
|
path: urlPath,
|
|
46
49
|
method: 'POST',
|
|
@@ -50,7 +53,7 @@ export class DocumentCheckoutApi extends runtime.BaseAPI {
|
|
|
50
53
|
});
|
|
51
54
|
}
|
|
52
55
|
/**
|
|
53
|
-
* Acquire a write lock on the document. If the caller already holds the lock, re-acquire refreshes ``acquired_at``; the response is 200 in both cases. If another user holds the lock, returns 409. Locks have no TTL — they persist until released by the holder.
|
|
56
|
+
* Acquire a write lock on the document. If the caller already holds the lock, re-acquire refreshes ``acquired_at``; the response is 200 in both cases. If another user holds the lock, returns 409. ``?force=true`` lets OWNER/ADMIN steal the lock from the current holder; a sealed (approved) document is refused regardless of ``force``. Locks have no TTL — they persist until released by the holder.
|
|
54
57
|
* Acquire Document Checkout Handler
|
|
55
58
|
*/
|
|
56
59
|
acquireDocumentCheckoutRaw(requestParameters, initOverrides) {
|
|
@@ -61,7 +64,7 @@ export class DocumentCheckoutApi extends runtime.BaseAPI {
|
|
|
61
64
|
});
|
|
62
65
|
}
|
|
63
66
|
/**
|
|
64
|
-
* Acquire a write lock on the document. If the caller already holds the lock, re-acquire refreshes ``acquired_at``; the response is 200 in both cases. If another user holds the lock, returns 409. Locks have no TTL — they persist until released by the holder.
|
|
67
|
+
* Acquire a write lock on the document. If the caller already holds the lock, re-acquire refreshes ``acquired_at``; the response is 200 in both cases. If another user holds the lock, returns 409. ``?force=true`` lets OWNER/ADMIN steal the lock from the current holder; a sealed (approved) document is refused regardless of ``force``. Locks have no TTL — they persist until released by the holder.
|
|
65
68
|
* Acquire Document Checkout Handler
|
|
66
69
|
*/
|
|
67
70
|
acquireDocumentCheckout(requestParameters, initOverrides) {
|
|
@@ -75,16 +78,16 @@ export class DocumentCheckoutApi extends runtime.BaseAPI {
|
|
|
75
78
|
*/
|
|
76
79
|
getDocumentCheckoutRequestOpts(requestParameters) {
|
|
77
80
|
return __awaiter(this, void 0, void 0, function* () {
|
|
78
|
-
if (requestParameters['
|
|
79
|
-
throw new runtime.RequiredError('
|
|
81
|
+
if (requestParameters['documentId'] == null) {
|
|
82
|
+
throw new runtime.RequiredError('documentId', 'Required parameter "documentId" was null or undefined when calling getDocumentCheckout().');
|
|
80
83
|
}
|
|
81
84
|
const queryParameters = {};
|
|
82
85
|
const headerParameters = {};
|
|
83
86
|
if (requestParameters['authorization'] != null) {
|
|
84
87
|
headerParameters['authorization'] = String(requestParameters['authorization']);
|
|
85
88
|
}
|
|
86
|
-
let urlPath = `/v1/documents/{
|
|
87
|
-
urlPath = urlPath.replace(`{${"
|
|
89
|
+
let urlPath = `/v1/documents/{document_id}/checkout`;
|
|
90
|
+
urlPath = urlPath.replace(`{${"document_id"}}`, encodeURIComponent(String(requestParameters['documentId'])));
|
|
88
91
|
return {
|
|
89
92
|
path: urlPath,
|
|
90
93
|
method: 'GET',
|
|
@@ -119,16 +122,16 @@ export class DocumentCheckoutApi extends runtime.BaseAPI {
|
|
|
119
122
|
*/
|
|
120
123
|
releaseDocumentCheckoutRequestOpts(requestParameters) {
|
|
121
124
|
return __awaiter(this, void 0, void 0, function* () {
|
|
122
|
-
if (requestParameters['
|
|
123
|
-
throw new runtime.RequiredError('
|
|
125
|
+
if (requestParameters['documentId'] == null) {
|
|
126
|
+
throw new runtime.RequiredError('documentId', 'Required parameter "documentId" was null or undefined when calling releaseDocumentCheckout().');
|
|
124
127
|
}
|
|
125
128
|
const queryParameters = {};
|
|
126
129
|
const headerParameters = {};
|
|
127
130
|
if (requestParameters['authorization'] != null) {
|
|
128
131
|
headerParameters['authorization'] = String(requestParameters['authorization']);
|
|
129
132
|
}
|
|
130
|
-
let urlPath = `/v1/documents/{
|
|
131
|
-
urlPath = urlPath.replace(`{${"
|
|
133
|
+
let urlPath = `/v1/documents/{document_id}/checkout`;
|
|
134
|
+
urlPath = urlPath.replace(`{${"document_id"}}`, encodeURIComponent(String(requestParameters['documentId'])));
|
|
132
135
|
return {
|
|
133
136
|
path: urlPath,
|
|
134
137
|
method: 'DELETE',
|
|
@@ -180,7 +180,7 @@ export interface DocumentVersionsApiInterface {
|
|
|
180
180
|
*/
|
|
181
181
|
getDocumentVersionRequestOpts(requestParameters: GetDocumentVersionRequest): Promise<runtime.RequestOpts>;
|
|
182
182
|
/**
|
|
183
|
-
*
|
|
183
|
+
*
|
|
184
184
|
* @summary Get Document Version Handler
|
|
185
185
|
* @param {string} versionId DocumentVersion ID
|
|
186
186
|
* @param {boolean} [includePageScreenshots] When true, populate page_screenshot_urls with presigned URLs for every per-page WEBP screenshot the ingestion pipeline produced. Off by default to keep typical responses small.
|
|
@@ -192,7 +192,6 @@ export interface DocumentVersionsApiInterface {
|
|
|
192
192
|
*/
|
|
193
193
|
getDocumentVersionRaw(requestParameters: GetDocumentVersionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DocumentVersionResponse>>;
|
|
194
194
|
/**
|
|
195
|
-
* Get a document version by its ID.
|
|
196
195
|
* Get Document Version Handler
|
|
197
196
|
*/
|
|
198
197
|
getDocumentVersion(requestParameters: GetDocumentVersionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DocumentVersionResponse>;
|
|
@@ -351,12 +350,10 @@ export declare class DocumentVersionsApi extends runtime.BaseAPI implements Docu
|
|
|
351
350
|
*/
|
|
352
351
|
getDocumentVersionRequestOpts(requestParameters: GetDocumentVersionRequest): Promise<runtime.RequestOpts>;
|
|
353
352
|
/**
|
|
354
|
-
* Get a document version by its ID.
|
|
355
353
|
* Get Document Version Handler
|
|
356
354
|
*/
|
|
357
355
|
getDocumentVersionRaw(requestParameters: GetDocumentVersionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DocumentVersionResponse>>;
|
|
358
356
|
/**
|
|
359
|
-
* Get a document version by its ID.
|
|
360
357
|
* Get Document Version Handler
|
|
361
358
|
*/
|
|
362
359
|
getDocumentVersion(requestParameters: GetDocumentVersionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DocumentVersionResponse>;
|
|
@@ -234,7 +234,6 @@ export class DocumentVersionsApi extends runtime.BaseAPI {
|
|
|
234
234
|
});
|
|
235
235
|
}
|
|
236
236
|
/**
|
|
237
|
-
* Get a document version by its ID.
|
|
238
237
|
* Get Document Version Handler
|
|
239
238
|
*/
|
|
240
239
|
getDocumentVersionRaw(requestParameters, initOverrides) {
|
|
@@ -245,7 +244,6 @@ export class DocumentVersionsApi extends runtime.BaseAPI {
|
|
|
245
244
|
});
|
|
246
245
|
}
|
|
247
246
|
/**
|
|
248
|
-
* Get a document version by its ID.
|
|
249
247
|
* Get Document Version Handler
|
|
250
248
|
*/
|
|
251
249
|
getDocumentVersion(requestParameters, initOverrides) {
|
|
@@ -131,7 +131,7 @@ export interface DocumentsApiInterface {
|
|
|
131
131
|
*/
|
|
132
132
|
getDocumentRequestOpts(requestParameters: GetDocumentRequest): Promise<runtime.RequestOpts>;
|
|
133
133
|
/**
|
|
134
|
-
*
|
|
134
|
+
*
|
|
135
135
|
* @summary Get Document Handler
|
|
136
136
|
* @param {string} documentId
|
|
137
137
|
* @param {boolean} [withTags] Include tags in the response (default: false)
|
|
@@ -143,7 +143,6 @@ export interface DocumentsApiInterface {
|
|
|
143
143
|
*/
|
|
144
144
|
getDocumentRaw(requestParameters: GetDocumentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DocumentResponse>>;
|
|
145
145
|
/**
|
|
146
|
-
* Get a document by its document ID.
|
|
147
146
|
* Get Document Handler
|
|
148
147
|
*/
|
|
149
148
|
getDocument(requestParameters: GetDocumentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DocumentResponse>;
|
|
@@ -317,12 +316,10 @@ export declare class DocumentsApi extends runtime.BaseAPI implements DocumentsAp
|
|
|
317
316
|
*/
|
|
318
317
|
getDocumentRequestOpts(requestParameters: GetDocumentRequest): Promise<runtime.RequestOpts>;
|
|
319
318
|
/**
|
|
320
|
-
* Get a document by its document ID.
|
|
321
319
|
* Get Document Handler
|
|
322
320
|
*/
|
|
323
321
|
getDocumentRaw(requestParameters: GetDocumentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DocumentResponse>>;
|
|
324
322
|
/**
|
|
325
|
-
* Get a document by its document ID.
|
|
326
323
|
* Get Document Handler
|
|
327
324
|
*/
|
|
328
325
|
getDocument(requestParameters: GetDocumentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DocumentResponse>;
|
|
@@ -141,7 +141,6 @@ export class DocumentsApi extends runtime.BaseAPI {
|
|
|
141
141
|
});
|
|
142
142
|
}
|
|
143
143
|
/**
|
|
144
|
-
* Get a document by its document ID.
|
|
145
144
|
* Get Document Handler
|
|
146
145
|
*/
|
|
147
146
|
getDocumentRaw(requestParameters, initOverrides) {
|
|
@@ -152,7 +151,6 @@ export class DocumentsApi extends runtime.BaseAPI {
|
|
|
152
151
|
});
|
|
153
152
|
}
|
|
154
153
|
/**
|
|
155
|
-
* Get a document by its document ID.
|
|
156
154
|
* Get Document Handler
|
|
157
155
|
*/
|
|
158
156
|
getDocument(requestParameters, initOverrides) {
|