@@ -1904,6 +1904,138 @@ public okhttp3.Call downloadDocumentVideoAsync(String documentId, final ApiCallb
19041904 localVarApiClient .executeAsync (localVarCall , localVarReturnType , _callback );
19051905 return localVarCall ;
19061906 }
1907+ /**
1908+ * Build call for downloadEvidenceFolder
1909+ * @param workflowRunId Workflow Run ID (required)
1910+ * @param _callback Callback for upload/download progress
1911+ * @return Call to execute
1912+ * @throws ApiException If fail to serialize the request body object
1913+ * @http.response.details
1914+ <table summary="Response Details" border="1">
1915+ <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
1916+ <tr><td> 302 </td><td> Found </td><td> * Location - Link to the Timeline File. <br> </td></tr>
1917+ <tr><td> 200 </td><td> The evidence folder binary data. </td><td> - </td></tr>
1918+ <tr><td> 0 </td><td> Unexpected error </td><td> - </td></tr>
1919+ </table>
1920+ */
1921+ public okhttp3 .Call downloadEvidenceFolderCall (UUID workflowRunId , final ApiCallback _callback ) throws ApiException {
1922+ String basePath = null ;
1923+ // Operation Servers
1924+ String [] localBasePaths = new String [] { };
1925+
1926+ // Determine Base Path to Use
1927+ if (localCustomBaseUrl != null ){
1928+ basePath = localCustomBaseUrl ;
1929+ } else if ( localBasePaths .length > 0 ) {
1930+ basePath = localBasePaths [localHostIndex ];
1931+ } else {
1932+ basePath = null ;
1933+ }
1934+
1935+ Object localVarPostBody = null ;
1936+
1937+ // create path and map variables
1938+ String localVarPath = "/workflow_runs/{workflow_run_id}/evidence_folder"
1939+ .replace ("{" + "workflow_run_id" + "}" , localVarApiClient .escapeString (workflowRunId .toString ()));
1940+
1941+ List <Pair > localVarQueryParams = new ArrayList <Pair >();
1942+ List <Pair > localVarCollectionQueryParams = new ArrayList <Pair >();
1943+ Map <String , String > localVarHeaderParams = new HashMap <String , String >();
1944+ Map <String , String > localVarCookieParams = new HashMap <String , String >();
1945+ Map <String , Object > localVarFormParams = new HashMap <String , Object >();
1946+
1947+ final String [] localVarAccepts = {
1948+ "application/zip" ,
1949+ "application/json"
1950+ };
1951+ final String localVarAccept = localVarApiClient .selectHeaderAccept (localVarAccepts );
1952+ if (localVarAccept != null ) {
1953+ localVarHeaderParams .put ("Accept" , localVarAccept );
1954+ }
1955+
1956+ final String [] localVarContentTypes = {
1957+ };
1958+ final String localVarContentType = localVarApiClient .selectHeaderContentType (localVarContentTypes );
1959+ if (localVarContentType != null ) {
1960+ localVarHeaderParams .put ("Content-Type" , localVarContentType );
1961+ }
1962+
1963+ String [] localVarAuthNames = new String [] { "Token" };
1964+ return localVarApiClient .buildCall (basePath , localVarPath , "GET" , localVarQueryParams , localVarCollectionQueryParams , localVarPostBody , localVarHeaderParams , localVarCookieParams , localVarFormParams , localVarAuthNames , _callback );
1965+ }
1966+
1967+ @ SuppressWarnings ("rawtypes" )
1968+ private okhttp3 .Call downloadEvidenceFolderValidateBeforeCall (UUID workflowRunId , final ApiCallback _callback ) throws ApiException {
1969+ // verify the required parameter 'workflowRunId' is set
1970+ if (workflowRunId == null ) {
1971+ throw new ApiException ("Missing the required parameter 'workflowRunId' when calling downloadEvidenceFolder(Async)" );
1972+ }
1973+
1974+ return downloadEvidenceFolderCall (workflowRunId , _callback );
1975+
1976+ }
1977+
1978+ /**
1979+ * Retrieve Workflow Run Evidence Folder
1980+ * Retrieves the evidence folder for the designated Workflow Run
1981+ * @param workflowRunId Workflow Run ID (required)
1982+ * @return FileTransfer
1983+ * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
1984+ * @http.response.details
1985+ <table summary="Response Details" border="1">
1986+ <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
1987+ <tr><td> 302 </td><td> Found </td><td> * Location - Link to the Timeline File. <br> </td></tr>
1988+ <tr><td> 200 </td><td> The evidence folder binary data. </td><td> - </td></tr>
1989+ <tr><td> 0 </td><td> Unexpected error </td><td> - </td></tr>
1990+ </table>
1991+ */
1992+ public FileTransfer downloadEvidenceFolder (UUID workflowRunId ) throws ApiException {
1993+ ApiResponse <FileTransfer > localVarResp = downloadEvidenceFolderWithHttpInfo (workflowRunId );
1994+ return localVarResp .getData ();
1995+ }
1996+
1997+ /**
1998+ * Retrieve Workflow Run Evidence Folder
1999+ * Retrieves the evidence folder for the designated Workflow Run
2000+ * @param workflowRunId Workflow Run ID (required)
2001+ * @return ApiResponse<FileTransfer>
2002+ * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
2003+ * @http.response.details
2004+ <table summary="Response Details" border="1">
2005+ <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
2006+ <tr><td> 302 </td><td> Found </td><td> * Location - Link to the Timeline File. <br> </td></tr>
2007+ <tr><td> 200 </td><td> The evidence folder binary data. </td><td> - </td></tr>
2008+ <tr><td> 0 </td><td> Unexpected error </td><td> - </td></tr>
2009+ </table>
2010+ */
2011+ public ApiResponse <FileTransfer > downloadEvidenceFolderWithHttpInfo (UUID workflowRunId ) throws ApiException {
2012+ okhttp3 .Call localVarCall = downloadEvidenceFolderValidateBeforeCall (workflowRunId , null );
2013+ Type localVarReturnType = new TypeToken <FileTransfer >(){}.getType ();
2014+ return localVarApiClient .execute (localVarCall , localVarReturnType );
2015+ }
2016+
2017+ /**
2018+ * Retrieve Workflow Run Evidence Folder (asynchronously)
2019+ * Retrieves the evidence folder for the designated Workflow Run
2020+ * @param workflowRunId Workflow Run ID (required)
2021+ * @param _callback The callback to be executed when the API call finishes
2022+ * @return The request call
2023+ * @throws ApiException If fail to process the API call, e.g. serializing the request body object
2024+ * @http.response.details
2025+ <table summary="Response Details" border="1">
2026+ <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
2027+ <tr><td> 302 </td><td> Found </td><td> * Location - Link to the Timeline File. <br> </td></tr>
2028+ <tr><td> 200 </td><td> The evidence folder binary data. </td><td> - </td></tr>
2029+ <tr><td> 0 </td><td> Unexpected error </td><td> - </td></tr>
2030+ </table>
2031+ */
2032+ public okhttp3 .Call downloadEvidenceFolderAsync (UUID workflowRunId , final ApiCallback <FileTransfer > _callback ) throws ApiException {
2033+
2034+ okhttp3 .Call localVarCall = downloadEvidenceFolderValidateBeforeCall (workflowRunId , _callback );
2035+ Type localVarReturnType = new TypeToken <FileTransfer >(){}.getType ();
2036+ localVarApiClient .executeAsync (localVarCall , localVarReturnType , _callback );
2037+ return localVarCall ;
2038+ }
19072039 /**
19082040 * Build call for downloadIdPhoto
19092041 * @param idPhotoId The ID photo's unique identifier. (required)
0 commit comments