()
- useEffect(() => {
- getSessionData(sessid).then((sess) => setSession(sess.session));
- }, []);
+ useEffect(() => {
+ getSessionData(sessid).then((sess) => setSession(sess.session))
+ }, [])
- const handleSelection = (formData: any) => {
- if (typeof sessid !== "undefined"){
- delete formData.type;
- registerProcessingParameters(
- formData as ProvidedProcessingParameters,
- parseInt(sessid),
- );
- startMultigridWatcher(parseInt(sessid));
- setParamsSet(true);
+ const handleSelection = (formData: any) => {
+ if (typeof sessid !== 'undefined') {
+ delete formData.type
+ registerProcessingParameters(
+ formData as ProvidedProcessingParameters,
+ parseInt(sessid)
+ )
+ startMultigridWatcher(parseInt(sessid))
+ setParamsSet(true)
+ }
}
- };
- const handleSkip = async () => {
- if (sessid !== undefined){
- await updateSession(parseInt(sessid), false);
- startMultigridWatcher(parseInt(sessid));
+ const handleSkip = async () => {
+ if (sessid !== undefined) {
+ await updateSession(parseInt(sessid), false)
+ startMultigridWatcher(parseInt(sessid))
+ }
}
- }
- if (session)
- getProcessingParameterData(session.session.id.toString()).then((params) =>
- setProcParams(params),
- );
- const activeStep = session
- ? procParams
- ? 4
- : session.session.visit
- ? 3
- : 0
- : 3;
- return (
-
-
-
-
-
-
- Processing parameters
-
-
-
-
-
-
-
-
-
-
-
- SPA
- Tomography
-
-
-
-
- {sessid?getForm(expType, handleSelection): <>>}
-
-
-
-
-
-
-
-
-
-
-
-
- );
-};
+ if (session)
+ getProcessingParameterData(session.session.id.toString()).then(
+ (params) => setProcParams(params)
+ )
+ // todo this is duplicated logic, would be better with an enum
+ const activeStep = session
+ ? procParams
+ ? 4
+ : session.session.visit
+ ? 3
+ : 0
+ : 3
+ return (
+
+
+
+
+
+
+ Processing parameters
+
+
+
+
+
+
+
+
+
+ {
+ if (isValidExpType(v)) {
+ setExpType(v as ExperimentType)
+ } else {
+ window.alert("wrong experiment type")
+ }
+ }
+ }
+ value={expType}
+ colorScheme="murfey"
+ isDisabled={activeStep !== 3 ? true : false}
+ >
+
+ SPA
+ Tomography
+
+
+
+
+ {sessid ? getForm(expType, handleSelection) : <>>}
+
+
+
+
+
+
+
+
+
+
+
+
+ )
+}
-export { SessionSetup };
+export { SessionSetup }
diff --git a/src/routes/UserParameters.tsx b/src/routes/UserParameters.tsx
index 1415a19..4bba43d 100644
--- a/src/routes/UserParameters.tsx
+++ b/src/routes/UserParameters.tsx
@@ -1,45 +1,52 @@
-import {
- Box,
- RadioGroup,
- Radio,
- Stack,
-} from "@chakra-ui/react";
-import { getForm } from "components/forms";
+import { Box, Radio, RadioGroup, Stack } from '@chakra-ui/react'
+import { getForm } from 'components/forms'
-import React from "react";
+import { useState } from 'react'
+import { ExperimentType, isValidExpType } from 'utils/ExperimentType'
const UserParameters = () => {
- const [expType, setExpType] = React.useState("spa");
- const [procParams, setProcParams] = React.useState();
- return (
-
-
-
-
- SPA
- Tomography
-
-
-
-
- {getForm(expType, setProcParams)}
-
-
- );
-};
+ const [expType, setExpType] = useState('spa')
+ const [procParams, setProcParams] = useState()
+ return (
+
+
+ {
+ if (isValidExpType(v)) {
+ setExpType(v as ExperimentType)
+ } else {
+ window.alert("wrong experiment type")
+ }
+ }
+ }
+ value={expType}
+ colorScheme="murfey"
+ >
+
+ SPA
+ Tomography
+
+
+
+
+ {getForm(expType, setProcParams)}
+
+
+ )
+}
-export { UserParameters };
+export { UserParameters }
diff --git a/src/routes/nameLabelMap.tsx b/src/routes/nameLabelMap.tsx
new file mode 100644
index 0000000..8334965
--- /dev/null
+++ b/src/routes/nameLabelMap.tsx
@@ -0,0 +1,28 @@
+import { angstromHtmlChar } from 'utils/constants';
+
+export const nameLabelMap: Map = new Map([
+ ['pj_id', 'Processing Job ID'],
+ ['angpix', 'Pixel Size [m]'],
+ ['dose_per_frame', `Dose per frame [e- / ${angstromHtmlChar}]`],
+ ['gain_ref', 'Gain Reference'],
+ ['voltage', 'Voltage [kV]'],
+ ['motion_corr_binning', 'Motion correction binning factor'],
+ ['eer_grouping', 'EER Grouping'],
+ ['symmetry', 'Symmetry'],
+ ['particle_diameter', `Particle Diameter ${angstromHtmlChar}]`],
+ ['downscale', 'Downscaling During Extraction'],
+ ['do_icebreaker_jobs', 'Perform IceBreaker Jobs'],
+ ['boxsize', 'Box Size'],
+ ['small_boxsize', 'Downscaled Box Size'],
+ ['mask_diameter', 'Mask Diameter for Classification'],
+ ['estimate_particle_diameter', 'Automatically Estimate Particle Diameter'],
+ ['hold_class2d', '2D Classification Held'],
+ ['rerun_class2d', 'First 2D Classification Batch Needs to be Rerun'],
+ ['rerun_class3d', '3D Classification Needs to be Rerun'],
+ ['class_selection_score', 'Class Selection Threshold'],
+ ['star_combination_job', 'Job Number for Rebatching Job'],
+ ['initial_model', 'Initial Model'],
+ ['next_job', 'Next Job Number'],
+ ['picker_murfey_id', 'Murfey ID of Picker for Use in ISPyB'],
+ ['picker_ispyb_id', 'ISPyB Particle Picker ID'],
+]);
diff --git a/src/routes/processingParams.test.tsx b/src/routes/processingParams.test.tsx
new file mode 100644
index 0000000..276c985
--- /dev/null
+++ b/src/routes/processingParams.test.tsx
@@ -0,0 +1,77 @@
+
+import { ProcessingDetails } from 'utils/types'
+import { nameLabelMap } from './nameLabelMap'
+import { ProcessingTable, getStartExtraRows } from './ProcessingParameters'
+
+describe('getStartExtraRows', () => {
+ it('should extract relion and feedback rows correctly', () => {
+ nameLabelMap.set('threshold', 'Threshold') // mock mapping
+
+ const procParams: ProcessingDetails[] = [
+ {
+ relion_params: {
+ dose_per_frame: 0.5,
+ pj_id: 123,
+ angpix: 0,
+ voltage: 0,
+ motion_corr_binning: 0,
+ symmetry: '',
+ downscale: false
+ },
+ feedback_params: {
+ estimate_particle_diameter: true,
+ pj_id: 456,
+ class_selection_score: 0,
+ star_combination_job: 0,
+ initial_model: '',
+ next_job: 0
+ },
+ data_collection_group: {
+ id: 0,
+ session_id: 0,
+ tag: '',
+ atlas_id: undefined,
+ atlas_pixel_size: undefined,
+ atlas: undefined,
+ sample: undefined
+ },
+ data_collections: [],
+ processing_jobs: []
+ },
+ ]
+
+ const tableRows: ProcessingTable[] = []
+
+ const result = getStartExtraRows(procParams, tableRows)
+
+ // todo make tests work
+ expect(tableRows).toEqual([
+ {
+ tag: '123',
+ processingRows: [
+ {
+ parameterName: 'Threshold',
+ parameterValue: 0.5,
+ },
+ ],
+ },
+ ])
+
+ expect(result).toEqual([
+ {
+ tag: '456',
+ processingRows: [
+ {
+ parameterName: 'Threshold',
+ parameterValue: 'True',
+ },
+ ],
+ },
+ ])
+ })
+
+ it('should return empty arrays when procParams is null', () => {
+ const result = getStartExtraRows(null, [])
+ expect(result).toEqual([])
+ })
+})
diff --git a/src/schema/main.ts b/src/schema/main.ts
index 2266d3e..239f2ec 100644
--- a/src/schema/main.ts
+++ b/src/schema/main.ts
@@ -3,287 +3,3677 @@
* Do not make direct changes to the file.
*/
-
export interface paths {
- "/": {
+ '/': {
+ /** Root */
+ get: operations['root__get']
+ }
+ '/machine': {
+ /** Machine Info */
+ get: operations['machine_info_machine_get']
+ }
+ '/instruments/{instrument_name}/machine': {
+ /** Machine Info By Name */
+ get: operations['machine_info_by_name_instruments__instrument_name__machine_get']
+ }
+ '/microscope_image/': {
+ /** Get Mic Image */
+ get: operations['get_mic_image_microscope_image__get']
+ }
+ '/mag_table/': {
+ /** Get Mag Table */
+ get: operations['get_mag_table_mag_table__get']
+ /** Add To Mag Table */
+ post: operations['add_to_mag_table_mag_table__post']
+ }
+ '/mag_table/{mag}': {
+ /** Remove Mag Table Row */
+ delete: operations['remove_mag_table_row_mag_table__mag__delete']
+ }
+ '/instruments/{instrument_name}/instrument_name': {
+ /** Get Instrument Display Name */
+ get: operations['get_instrument_display_name_instruments__instrument_name__instrument_name_get']
+ }
+ '/instruments/{instrument_name}/visits/': {
+ /** All Visit Info */
+ get: operations['all_visit_info_instruments__instrument_name__visits__get']
+ }
+ '/visits/{visit_name}': {
+ /** Visit Info */
+ get: operations['visit_info_visits__visit_name__get']
+ /** Register Client To Visit */
+ post: operations['register_client_to_visit_visits__visit_name__post']
+ }
+ '/num_movies': {
+ /** Count Number Of Movies */
+ get: operations['count_number_of_movies_num_movies_get']
+ }
+ '/sessions/{session_id}/rsyncer': {
+ /** Register Rsyncer */
+ post: operations['register_rsyncer_sessions__session_id__rsyncer_post']
+ }
+ '/sessions/{session_id}/rsyncer/{source}': {
+ /** Delete Rsyncer */
+ delete: operations['delete_rsyncer_sessions__session_id__rsyncer__source__delete']
+ }
+ '/sessions/{session_id}/rsyncer_stopped': {
+ /** Register Stopped Rsyncer */
+ post: operations['register_stopped_rsyncer_sessions__session_id__rsyncer_stopped_post']
+ }
+ '/sessions/{session_id}/rsyncer_started': {
+ /** Register Restarted Rsyncer */
+ post: operations['register_restarted_rsyncer_sessions__session_id__rsyncer_started_post']
+ }
+ '/clients/{client_id}/rsyncers': {
+ /** Get Rsyncers For Client */
+ get: operations['get_rsyncers_for_client_clients__client_id__rsyncers_get']
+ }
+ '/session/{session_id}': {
+ /** Get Session */
+ get: operations['get_session_session__session_id__get']
+ }
+ '/visits/{visit_name}/increment_rsync_file_count': {
+ /** Increment Rsync File Count */
+ post: operations['increment_rsync_file_count_visits__visit_name__increment_rsync_file_count_post']
+ }
+ '/visits/{visit_name}/increment_rsync_transferred_files': {
+ /** Increment Rsync Transferred Files */
+ post: operations['increment_rsync_transferred_files_visits__visit_name__increment_rsync_transferred_files_post']
+ }
+ '/visits/{visit_name}/increment_rsync_transferred_files_prometheus': {
+ /** Increment Rsync Transferred Files Prometheus */
+ post: operations['increment_rsync_transferred_files_prometheus_visits__visit_name__increment_rsync_transferred_files_prometheus_post']
+ }
+ '/sessions/{session_id}/spa_processing_parameters': {
+ /** Get Spa Proc Param Details */
+ get: operations['get_spa_proc_param_details_sessions__session_id__spa_processing_parameters_get']
+ /** Register Spa Proc Params */
+ post: operations['register_spa_proc_params_sessions__session_id__spa_processing_parameters_post']
+ }
+ '/sessions/{session_id}/tomography_preprocessing_parameters': {
+ /** Register Tomo Preproc Params */
+ post: operations['register_tomo_preproc_params_sessions__session_id__tomography_preprocessing_parameters_post']
+ }
+ '/clients/{client_id}/tomography_processing_parameters': {
+ /** Register Tomo Proc Params */
+ post: operations['register_tomo_proc_params_clients__client_id__tomography_processing_parameters_post']
+ }
+ '/clients/{client_id}/spa_processing_parameters': {
+ /** Get Spa Proc Params */
+ get: operations['get_spa_proc_params_clients__client_id__spa_processing_parameters_get']
+ }
+ '/sessions/{session_id}/grid_squares': {
+ /** Get Grid Squares */
+ get: operations['get_grid_squares_sessions__session_id__grid_squares_get']
+ }
+ '/sessions/{session_id}/data_collection_groups/{dcgid}/grid_squares': {
+ /** Get Grid Squares From Dcg */
+ get: operations['get_grid_squares_from_dcg_sessions__session_id__data_collection_groups__dcgid__grid_squares_get']
+ }
+ '/sessions/{session_id}/data_collection_groups/{dcgid}/grid_squares/{gsid}/num_movies': {
+ /** Get Number Of Movies From Grid Square */
+ get: operations['get_number_of_movies_from_grid_square_sessions__session_id__data_collection_groups__dcgid__grid_squares__gsid__num_movies_get']
+ }
+ '/sessions/{session_id}/data_collection_groups/{dcgid}/grid_squares/{gsid}/foil_holes': {
+ /** Get Foil Holes From Grid Square */
+ get: operations['get_foil_holes_from_grid_square_sessions__session_id__data_collection_groups__dcgid__grid_squares__gsid__foil_holes_get']
+ }
+ '/sessions/{session_id}/data_collection_groups/{dcgid}/grid_squares/{gsid}/foil_holes/{fhid}/num_movies': {
+ /** Get Number Of Movies From Foil Hole */
+ get: operations['get_number_of_movies_from_foil_hole_sessions__session_id__data_collection_groups__dcgid__grid_squares__gsid__foil_holes__fhid__num_movies_get']
+ }
+ '/sessions/{session_id}/grid_square/{gsid}': {
+ /** Register Grid Square */
+ post: operations['register_grid_square_sessions__session_id__grid_square__gsid__post']
+ }
+ '/sessions/{session_id}/foil_hole/{fh_name}': {
+ /** Get Foil Hole */
+ get: operations['get_foil_hole_sessions__session_id__foil_hole__fh_name__get']
+ }
+ '/sessions/{session_id}/grid_square/{gs_name}/foil_hole': {
+ /** Register Foil Hole */
+ post: operations['register_foil_hole_sessions__session_id__grid_square__gs_name__foil_hole_post']
+ }
+ '/visits/{visit_name}/tilt_series': {
+ /** Register Tilt Series */
+ post: operations['register_tilt_series_visits__visit_name__tilt_series_post']
+ }
+ '/visits/{visit_name}/{client_id}/completed_tilt_series': {
+ /** Register Completed Tilt Series */
+ post: operations['register_completed_tilt_series_visits__visit_name___client_id__completed_tilt_series_post']
+ }
+ '/clients/{client_id}/tilt_series/{tilt_series_tag}/tilts': {
+ /** Get Tilts */
+ get: operations['get_tilts_clients__client_id__tilt_series__tilt_series_tag__tilts_get']
+ }
+ '/visits/{visit_name}/{client_id}/tilt': {
+ /** Register Tilt */
+ post: operations['register_tilt_visits__visit_name___client_id__tilt_post']
+ }
+ '/instruments/{instrument_name}/visits_raw': {
+ /** Get Current Visits */
+ get: operations['get_current_visits_instruments__instrument_name__visits_raw_get']
+ }
+ '/feedback': {
+ /** Send Murfey Message */
+ post: operations['send_murfey_message_feedback_post']
+ }
+ '/visits/{visit_name}/{session_id}/flush_spa_processing': {
+ /** Flush Spa Processing */
+ post: operations['flush_spa_processing_visits__visit_name___session_id__flush_spa_processing_post']
+ }
+ '/visits/{visit_name}/{session_id}/spa_preprocess': {
+ /** Request Spa Preprocessing */
+ post: operations['request_spa_preprocessing_visits__visit_name___session_id__spa_preprocess_post']
+ }
+ '/visits/{visit_name}/{client_id}/flush_tomography_processing': {
+ /** Flush Tomography Processing */
+ post: operations['flush_tomography_processing_visits__visit_name___client_id__flush_tomography_processing_post']
+ }
+ '/visits/{visit_name}/{client_id}/tomography_preprocess': {
+ /** Request Tomography Preprocessing */
+ post: operations['request_tomography_preprocessing_visits__visit_name___client_id__tomography_preprocess_post']
+ }
+ '/version': {
+ /** Get Version */
+ get: operations['get_version_version_get']
+ }
+ '/visits/{visit_name}/{session_id}/suggested_path': {
+ /** Suggest Path */
+ post: operations['suggest_path_visits__visit_name___session_id__suggested_path_post']
+ }
+ '/sessions/{session_id}/data_collection_groups': {
+ /** Get Dc Groups */
+ get: operations['get_dc_groups_sessions__session_id__data_collection_groups_get']
+ }
+ '/sessions/{session_id}/data_collection_groups/{dcgid}/data_collections': {
+ /** Get Data Collections */
+ get: operations['get_data_collections_sessions__session_id__data_collection_groups__dcgid__data_collections_get']
+ }
+ '/visits/{visit_name}/{session_id}/register_data_collection_group': {
+ /** Register Dc Group */
+ post: operations['register_dc_group_visits__visit_name___session_id__register_data_collection_group_post']
+ }
+ '/visits/{visit_name}/{session_id}/start_data_collection': {
+ /** Start Dc */
+ post: operations['start_dc_visits__visit_name___session_id__start_data_collection_post']
+ }
+ '/visits/{visit_name}/{session_id}/register_processing_job': {
+ /** Register Proc */
+ post: operations['register_proc_visits__visit_name___session_id__register_processing_job_post']
+ }
+ '/sessions/{session_id}/process_gain': {
+ /** Process Gain */
+ post: operations['process_gain_sessions__session_id__process_gain_post']
+ }
+ '/new_client_id/': {
+ /** New Client Id */
+ get: operations['new_client_id_new_client_id__get']
+ }
+ '/clients': {
+ /** Get Clients */
+ get: operations['get_clients_clients_get']
+ }
+ '/sessions': {
+ /** Get Sessions */
+ get: operations['get_sessions_sessions_get']
+ }
+ '/instruments/{instrument_name}/sessions': {
+ /** Get Sessions By Instrument Name */
+ get: operations['get_sessions_by_instrument_name_instruments__instrument_name__sessions_get']
+ }
+ '/instruments/{instrument_name}/clients/{client_id}/session': {
+ /** Link Client To Session */
+ post: operations['link_client_to_session_instruments__instrument_name__clients__client_id__session_post']
+ }
+ '/clients/{client_id}/session': {
+ /** Remove Session */
+ delete: operations['remove_session_clients__client_id__session_delete']
+ }
+ '/sessions/{session_id}/rsyncers': {
+ /** Get Rsyncers For Session */
+ get: operations['get_rsyncers_for_session_sessions__session_id__rsyncers_get']
+ }
+ '/sessions/{session_id}': {
+ /** Remove Session By Id */
+ delete: operations['remove_session_by_id_sessions__session_id__delete']
+ }
+ '/visits/{visit_name}/{session_id}/eer_fractionation_file': {
+ /** Write Eer Fractionation File */
+ post: operations['write_eer_fractionation_file_visits__visit_name___session_id__eer_fractionation_file_post']
+ }
+ '/visits/{visit_name}/monitoring/{on}': {
+ /** Change Monitoring Status */
+ post: operations['change_monitoring_status_visits__visit_name__monitoring__on__post']
+ }
+ '/sessions/{session_id}/upstream_visits': {
+ /** Find Upstream Visits */
+ get: operations['find_upstream_visits_sessions__session_id__upstream_visits_get']
+ }
+ '/visits/{visit_name}/{session_id}/upstream_tiff_paths': {
+ /** Gather Upstream Tiffs */
+ get: operations['gather_upstream_tiffs_visits__visit_name___session_id__upstream_tiff_paths_get']
+ }
+ '/visits/{visit_name}/{session_id}/upstream_tiff/{tiff_path}': {
+ /** Get Tiff */
+ get: operations['get_tiff_visits__visit_name___session_id__upstream_tiff__tiff_path__get']
+ }
+ '/failed_client_post': {
+ /** Failed Client Post */
+ post: operations['failed_client_post_failed_client_post_post']
+ }
+ '/instruments/{instrument_name}/visits/{visit}/session/{name}': {
+ /** Create Session */
+ post: operations['create_session_instruments__instrument_name__visits__visit__session__name__post']
+ }
+ '/sessions/{session_id}/current_gain_ref': {
+ /** Update Current Gain Ref */
+ put: operations['update_current_gain_ref_sessions__session_id__current_gain_ref_put']
+ }
+ '/version/': {
+ /** Get Version */
+ get: operations['get_version_version__get']
+ }
+ '/bootstrap/': {
+ /**
+ * Get Bootstrap Instructions
+ * @description Return a website containing instructions for installing the Murfey client on a
+ * machine with no internet access.
+ */
+ get: operations['get_bootstrap_instructions_bootstrap__get']
+ }
+ '/bootstrap/pip.whl': {
+ /**
+ * Get Pip Wheel
+ * @description Return a static version of pip. This does not need to be the newest or best,
+ * but has to be compatible with all supported Python versions.
+ * This is only used during bootstrapping by the client to identify and then
+ * download the actually newest appropriate version of pip.
+ */
+ get: operations['get_pip_wheel_bootstrap_pip_whl_get']
+ }
+ '/bootstrap/murfey.whl': {
+ /**
+ * Get Murfey Wheel
+ * @description Return a wheel file containing the latest release version of Murfey. We should
+ * not have to worry about the exact Python compatibility here, as long as
+ * murfey.bootstrap is compatible with all relevant versions of Python.
+ * This also ignores yanked releases, which again should be fine.
+ */
+ get: operations['get_murfey_wheel_bootstrap_murfey_whl_get']
+ }
+ '/cygwin/setup-x86_64.exe': {
+ /**
+ * Get Cygwin Setup
+ * @description Obtain and pass through a Cygwin installer from an official source.
+ * This is used during client bootstrapping and can download and install the
+ * Cygwin distribution that then remains on the client machines.
+ */
+ get: operations['get_cygwin_setup_cygwin_setup_x86_64_exe_get']
+ }
+ '/cygwin/{request_path}': {
+ /**
+ * Parse Cygwin Request
+ * @description Forward a Cygwin setup request to an official mirror.
+ */
+ get: operations['parse_cygwin_request_cygwin__request_path__get']
+ }
+ '/msys2/config/pacman.d.zip': {
+ /**
+ * Get Pacman Mirrors
+ * @description Dynamically generates a zip file containing mirrorlist files that have been set
+ * up to mirror the MSYS2 package database for each environment.
+ *
+ * The files in this folder should be pasted into, and overwrite, the 'mirrorlist'
+ * files present in the %MSYS64%\etc\pacman.d folder. The default path to this
+ * folder is C:\msys64\etc\pacman.d.
+ */
+ get: operations['get_pacman_mirrors_msys2_config_pacman_d_zip_get']
+ }
+ '/msys2/repo/distrib/{setup_file}': {
+ /**
+ * Get Msys2 Setup
+ * @description Obtain and pass through an MSYS2 installer from an official source.
+ * This is used during client bootstrapping, and can download and install the
+ * MSYS2 distribution that then remains on the client machines.
+ */
+ get: operations['get_msys2_setup_msys2_repo_distrib__setup_file__get']
+ }
+ '/msys2/repo/': {
+ /**
+ * Get Msys2 Main Index
+ * @description Returns a simple index displaying valid MSYS2 systems and the latest setup file
+ * from the main MSYS2 repository.
+ */
+ get: operations['get_msys2_main_index_msys2_repo__get']
+ }
+ '/msys2/repo/{system}/': {
+ /**
+ * Get Msys2 Environment Index
+ * @description Returns a list of all MSYS2 environments for a given system from the main MSYS2
+ * repository.
+ */
+ get: operations['get_msys2_environment_index_msys2_repo__system___get']
+ }
+ '/msys2/repo/{system}/{environment}/': {
+ /**
+ * Get Msys2 Package Index
+ * @description Obtain a list of all available MSYS2 packages for a given environment from the main
+ * MSYS2 repo.
+ */
+ get: operations['get_msys2_package_index_msys2_repo__system___environment___get']
+ }
+ '/msys2/repo/{system}/{environment}/{package}': {
+ /**
+ * Get Msys2 Package File
+ * @description Obtain and pass through a specific download for an MSYS2 package.
+ */
+ get: operations['get_msys2_package_file_msys2_repo__system___environment___package__get']
+ }
+ '/rust/cargo/config.toml': {
+ /**
+ * Get Cargo Config
+ * @description Returns a properly configured Cargo config that sets it to look ONLY at the
+ * crates.io mirror.
+ *
+ * The default path for this config on Linux devices is ~/.cargo/config.toml,
+ * and its default path on Windows is %USERPROFILE%\.cargo\config.toml.
+ */
+ get: operations['get_cargo_config_rust_cargo_config_toml_get']
+ }
+ '/rust/index/': {
+ /**
+ * Get Index Page
+ * @description Returns a mirror of the https://index.crates.io landing page.
+ */
+ get: operations['get_index_page_rust_index__get']
+ }
+ '/rust/index/config.json': {
+ /**
+ * Get Index Config
+ * @description Download a config.json file used by Cargo to navigate sparse index registries
+ * with.
+ *
+ * The 'dl' key points to our mirror of the static crates.io repository, while
+ * the 'api' key points to an API version of that same registry. Both will be
+ * used by Cargo when searching for and downloading packages.
+ */
+ get: operations['get_index_config_rust_index_config_json_get']
+ }
+ '/rust/index/{c1}/{c2}/{package}': {
+ /**
+ * Get Index Package Metadata
+ * @description Download the metadata for a given package from the crates.io sparse index.
+ * The path to the metadata file on the server side takes the following form:
+ * /{c1}/{c2}/{package}
+ *
+ * c1 and c2 are 2 characters-long strings that are taken from the first 4
+ * characters of the package name (a-z, A-Z, 0-9, -, _). For 3-letter packages,
+ * c1 = 3, and c2 is the first character of the package.
+ */
+ get: operations['get_index_package_metadata_rust_index__c1___c2___package__get']
+ }
+ '/rust/index/{n}/{package}': {
+ /**
+ * Get Index Package Metadata For Short Package Names
+ * @description The Rust sparse index' naming scheme for packages with 1-2 characters is
+ * different from the standard path convention. They are stored under
+ * /1/{package} or /2/{package}.
+ */
+ get: operations['get_index_package_metadata_for_short_package_names_rust_index__n___package__get']
+ }
+ '/rust/crates/{package}/{version}/download': {
+ /**
+ * Get Rust Package Download
+ * @description Obtain and pass through a crate download request for a Rust package via the
+ * sparse index registry.
+ */
+ get: operations['get_rust_package_download_rust_crates__package___version__download_get']
+ }
+ '/rust/api/v1/crates': {
+ /**
+ * Get Rust Api Package Index
+ * @description Displays the Rust API package index, which returns names of available packages
+ * in a JSON object based on the search query given.
+ */
+ get: operations['get_rust_api_package_index_rust_api_v1_crates_get']
+ }
+ '/rust/api/v1/crates/{package}': {
+ /**
+ * Get Rust Api Package Info
+ * @description Displays general information for a given Rust package, as a JSON object.
+ * Contains both version information and download information, in addition
+ * to other types of metadata.
+ */
+ get: operations['get_rust_api_package_info_rust_api_v1_crates__package__get']
+ }
+ '/rust/api/v1/crates/{package}/versions': {
+ /**
+ * Get Rust Api Package Versions
+ * @description Displays all available versions for a particular Rust package, along with download
+ * links for said versions, as a JSON object.
+ */
+ get: operations['get_rust_api_package_versions_rust_api_v1_crates__package__versions_get']
+ }
+ '/rust/api/v1/crates/{package}/{version}/download': {
+ /**
+ * Get Rust Api Package Download
+ * @description Obtain and pass through a crate download request for a specific Rust package.
+ */
+ get: operations['get_rust_api_package_download_rust_api_v1_crates__package___version__download_get']
+ }
+ '/rust/crates/{package}/{crate}': {
+ /**
+ * Get Rust Package Crate
+ * @description Obtain and pass through a download for a specific Rust crate. The Rust API
+ * download request actually redirects to the static crate repository, so this
+ * endpoint covers cases where the static crate download link is requested.
+ *
+ * The static Rust package repository has been configured such that only requests
+ * for a specific crate are accepted and handled.
+ * (e.g. https://static.crates.io/crates/anyhow/anyhow-1.0.97.crate will pass)
+ *
+ * A request for any other part of the URL path will be denied.
+ * (e.g. https://static.crates.io/crates/anyhow will fail)
+ */
+ get: operations['get_rust_package_crate_rust_crates__package___crate__get']
+ }
+ '/pypi/': {
+ /**
+ * Get Pypi Index
+ * @description Obtain list of all PyPI packages via the simple API (PEP 503).
+ */
+ get: operations['get_pypi_index_pypi__get']
+ }
+ '/pypi/{package}/': {
+ /**
+ * Get Pypi Package Downloads List
+ * @description Obtain list of all package downloads from PyPI via the simple API (PEP 503), and
+ * rewrite all download URLs to point to this server, under the current directory.
+ */
+ get: operations['get_pypi_package_downloads_list_pypi__package___get']
+ }
+ '/pypi/{package}/{filename}': {
+ /**
+ * Get Pypi File
+ * @description Obtain and pass through a specific download for a PyPI package.
+ */
+ get: operations['get_pypi_file_pypi__package___filename__get']
+ }
+ '/plugins/instruments/{instrument_name}/{package}': {
+ /** Get Plugin Wheel */
+ get: operations['get_plugin_wheel_plugins_instruments__instrument_name___package__get']
+ }
+ '/sessions/{session_id}/clem/lif_files': {
+ /** Register Lif File */
+ post: operations['register_lif_file_sessions__session_id__clem_lif_files_post']
+ }
+ '/sessions/{session_id}/clem/tiff_files': {
+ /** Register Tiff File */
+ post: operations['register_tiff_file_sessions__session_id__clem_tiff_files_post']
+ }
+ '/sessions/{session_id}/clem/metadata_files': {
+ /** Register Clem Metadata */
+ post: operations['register_clem_metadata_sessions__session_id__clem_metadata_files_post']
+ }
+ '/sessions/{session_id}/clem/image_series': {
+ /** Register Image Series */
+ post: operations['register_image_series_sessions__session_id__clem_image_series_post']
+ }
+ '/sessions/{session_id}/clem/image_stacks': {
+ /** Register Image Stack */
+ post: operations['register_image_stack_sessions__session_id__clem_image_stacks_post']
+ }
+ '/sessions/{session_id}/clem/preprocessing/process_raw_lifs': {
+ /** Process Raw Lifs */
+ post: operations['process_raw_lifs_sessions__session_id__clem_preprocessing_process_raw_lifs_post']
+ }
+ '/sessions/{session_id}/clem/preprocessing/process_raw_tiffs': {
+ /** Process Raw Tiffs */
+ post: operations['process_raw_tiffs_sessions__session_id__clem_preprocessing_process_raw_tiffs_post']
+ }
+ '/sessions/{session_id}/clem/processing/align_and_merge_stacks': {
+ /** Align And Merge Stacks */
+ post: operations['align_and_merge_stacks_sessions__session_id__clem_processing_align_and_merge_stacks_post']
+ }
+ '/sessions/{session_id}/cryolo_model': {
+ /** Get Cryolo Model Path */
+ get: operations['get_cryolo_model_path_sessions__session_id__cryolo_model_get']
+ }
+ 'auth/token': {
+ /** Generate Token */
+ post: operations['generate_token_token_post']
+ }
+ 'auth/sessions/{session_id}/token': {
+ /** Mint Session Token */
+ get: operations['mint_session_token_sessions__session_id__token_get']
+ }
+ 'auth/validate_token': {
+ /** Simple Token Validation */
+ get: operations['simple_token_validation_validate_token_get']
+ }
+ '/display/instruments/{instrument_name}/image/': {
+ /** Get Mic Image */
+ get: operations['get_mic_image_display_instruments__instrument_name__image__get']
+ }
+ '/display/sessions/{session_id}/data_collection_groups/{dcgid}/grid_squares/{grid_square_name}/image': {
+ /** Get Grid Square Img */
+ get: operations['get_grid_square_img_display_sessions__session_id__data_collection_groups__dcgid__grid_squares__grid_square_name__image_get']
+ }
+ '/display/sessions/{session_id}/data_collection_groups/{dcgid}/grid_squares/{grid_square_name}/foil_holes/{foil_hole_name}/image': {
+ /** Get Foil Hole Img */
+ get: operations['get_foil_hole_img_display_sessions__session_id__data_collection_groups__dcgid__grid_squares__grid_square_name__foil_holes__foil_hole_name__image_get']
+ }
+ '/instruments/{instrument_name}/sessions/{session_id}/activate_instrument_server': {
+ /** Activate Instrument Server For Session */
+ post: operations['activate_instrument_server_for_session_instruments__instrument_name__sessions__session_id__activate_instrument_server_post']
+ }
+ '/instruments/{instrument_name}/sessions/{session_id}/active': {
+ /** Check If Session Is Active */
+ get: operations['check_if_session_is_active_instruments__instrument_name__sessions__session_id__active_get']
+ }
+ '/sessions/{session_id}/multigrid_watcher': {
+ /** Setup Multigrid Watcher */
+ post: operations['setup_multigrid_watcher_sessions__session_id__multigrid_watcher_post']
+ }
+ '/sessions/{session_id}/start_multigrid_watcher': {
+ /** Start Multigrid Watcher */
+ post: operations['start_multigrid_watcher_sessions__session_id__start_multigrid_watcher_post']
+ }
+ '/sessions/{session_id}/provided_processing_parameters': {
+ /** Pass Proc Params To Instrument Server */
+ post: operations['pass_proc_params_to_instrument_server_sessions__session_id__provided_processing_parameters_post']
+ }
+ '/instruments/{instrument_name}/instrument_server': {
+ /** Check Instrument Server */
+ get: operations['check_instrument_server_instruments__instrument_name__instrument_server_get']
+ }
+ '/instruments/{instrument_name}/sessions/{session_id}/possible_gain_references': {
+ /** Get Possible Gain References */
+ get: operations['get_possible_gain_references_instruments__instrument_name__sessions__session_id__possible_gain_references_get']
+ }
+ '/sessions/{session_id}/upload_gain_reference': {
+ /** Request Gain Reference Upload */
+ post: operations['request_gain_reference_upload_sessions__session_id__upload_gain_reference_post']
+ }
+ '/visits/{visit_name}/{session_id}/upstream_tiff_data_request': {
+ /** Request Upstream Tiff Data Download */
+ post: operations['request_upstream_tiff_data_download_visits__visit_name___session_id__upstream_tiff_data_request_post']
+ }
+ '/sessions/{session_id}/stop_rsyncer': {
+ /** Stop Rsyncer */
+ post: operations['stop_rsyncer_sessions__session_id__stop_rsyncer_post']
+ }
+ '/sessions/{session_id}/finalise_rsyncer': {
+ /** Finalise Rsyncer */
+ post: operations['finalise_rsyncer_sessions__session_id__finalise_rsyncer_post']
+ }
+ '/sessions/{session_id}/finalise_session': {
+ /** Finalise Session */
+ post: operations['finalise_session_sessions__session_id__finalise_session_post']
+ }
+ '/sessions/{session_id}/remove_rsyncer': {
+ /** Remove Rsyncer */
+ post: operations['remove_rsyncer_sessions__session_id__remove_rsyncer_post']
+ }
+ '/sessions/{session_id}/restart_rsyncer': {
+ /** Restart Rsyncer */
+ post: operations['restart_rsyncer_sessions__session_id__restart_rsyncer_post']
+ }
+ '/instruments/{instrument_name}/sessions/{session_id}/rsyncer_info': {
+ /** Get Rsyncer Info */
+ get: operations['get_rsyncer_info_instruments__instrument_name__sessions__session_id__rsyncer_info_get']
+ }
+ '/instruments': {
+ /** Get Instrument Info */
+ get: operations['get_instrument_info_instruments_get']
+ }
+ '/instrument/{instrument_name}/image': {
+ /** Get Instrument Image */
+ get: operations['get_instrument_image_instrument__instrument_name__image_get']
+ }
+ '/sessions/{session_id}/session_processing_parameters': {
+ /** Get Session Processing Parameters */
+ get: operations['get_session_processing_parameters_sessions__session_id__session_processing_parameters_get']
+ /** Set Session Processing Parameters */
+ post: operations['set_session_processing_parameters_sessions__session_id__session_processing_parameters_post']
+ }
+ '/ws/test/{client_id}': {
+ /** Close Ws Connection */
+ delete: operations['close_ws_connection_ws_test__client_id__delete']
+ }
+ '/ws/connect/{client_id}': {
+ /** Close Unrecorded Ws Connection */
+ delete: operations['close_unrecorded_ws_connection_ws_connect__client_id__delete']
+ }
+ '/instruments/{instrument_name}/visits/{visit_name}/{session_id}/smartem_atlas/': {
+ /** Request Smartem Atlas Analysis */
+ post: operations['request_smartem_atlas_analysis_instruments__instrument_name__visits__visit_name___session_id__smartem_atlas__post']
+ }
+ '/instruments/{instrument_name}/k3_ssd': {
+ /** Update K3 Ssd Statuses */
+ post: operations['update_k3_ssd_statuses_instruments__instrument_name__k3_ssd_post']
+ }
+}
+
+export type webhooks = Record
+
+export interface components {
+ schemas: {
+ /** AlignAndMergeParams */
+ AlignAndMergeParams: {
+ /** Series Name */
+ series_name: string
+ /** Images */
+ images: string[]
+ /**
+ * Metadata
+ * Format: path
+ */
+ metadata: string
+ /** Crop To N Frames */
+ crop_to_n_frames?: number
+ /**
+ * Align Self
+ * @default
+ * @enum {string}
+ */
+ align_self?: 'enabled' | ''
+ /**
+ * Flatten
+ * @default
+ * @enum {string}
+ */
+ flatten?: 'mean' | 'min' | 'max' | ''
+ /**
+ * Align Across
+ * @default
+ * @enum {string}
+ */
+ align_across?: 'enabled' | ''
+ }
+ /** Body_generate_token_token_post */
+ Body_generate_token_token_post: {
+ /** Grant Type */
+ grant_type?: string
+ /** Username */
+ username: string
+ /** Password */
+ password: string
+ /**
+ * Scope
+ * @default
+ */
+ scope?: string
+ /** Client Id */
+ client_id?: string
+ /** Client Secret */
+ client_secret?: string
+ }
+ /** Body_register_clem_metadata_sessions__session_id__clem_metadata_files_post */
+ Body_register_clem_metadata_sessions__session_id__clem_metadata_files_post: {
+ /**
+ * Associated Tiffs
+ * @default []
+ */
+ associated_tiffs?: string[]
+ /**
+ * Associated Stacks
+ * @default []
+ */
+ associated_stacks?: string[]
+ }
+ /** Body_register_image_series_sessions__session_id__clem_image_series_post */
+ Body_register_image_series_sessions__session_id__clem_image_series_post: {
+ /**
+ * Parent Tiffs
+ * @default []
+ */
+ parent_tiffs?: string[]
+ /**
+ * Child Stacks
+ * @default []
+ */
+ child_stacks?: string[]
+ }
+ /** Body_register_lif_file_sessions__session_id__clem_lif_files_post */
+ Body_register_lif_file_sessions__session_id__clem_lif_files_post: {
+ /**
+ * Child Metadata
+ * @default []
+ */
+ child_metadata?: string[]
+ /**
+ * Child Series
+ * @default []
+ */
+ child_series?: string[]
+ /**
+ * Child Stacks
+ * @default []
+ */
+ child_stacks?: string[]
+ }
+ /** ClientEnvironment */
+ ClientEnvironment: {
+ /** Client Id */
+ client_id?: number
+ /**
+ * Visit
+ * @default
+ */
+ visit?: string
+ /** Session Id */
+ session_id?: number
+ /** Connected */
+ connected: boolean
+ }
+ /** ClientInfo */
+ ClientInfo: {
+ /** Id */
+ id: number
+ }
+ /** CurrentGainRef */
+ CurrentGainRef: {
+ /** Path */
+ path: string
+ }
+ /** DCGroupParameters */
+ DCGroupParameters: {
+ /** Experiment Type */
+ experiment_type: string
+ /** Experiment Type Id */
+ experiment_type_id: number
+ /** Tag */
+ tag: string
+ /**
+ * Atlas
+ * @default
+ */
+ atlas?: string
+ /** Sample */
+ sample?: number
+ /**
+ * Atlas Pixel Size
+ * @default 0
+ */
+ atlas_pixel_size?: number
+ }
+ /** DCParameters */
+ DCParameters: {
+ /** Voltage */
+ voltage: number
+ /** Pixel Size On Image */
+ pixel_size_on_image: string
+ /** Experiment Type */
+ experiment_type: string
+ /** Image Size X */
+ image_size_x: number
+ /** Image Size Y */
+ image_size_y: number
+ /** File Extension */
+ file_extension: string
+ /** Acquisition Software */
+ acquisition_software: string
+ /** Image Directory */
+ image_directory: string
+ /** Tag */
+ tag: string
+ /** Source */
+ source: string
+ /** Magnification */
+ magnification: number
+ /** Total Exposed Dose */
+ total_exposed_dose?: number
+ /** C2Aperture */
+ c2aperture?: number
+ /** Exposure Time */
+ exposure_time?: number
+ /** Slit Width */
+ slit_width?: number
+ /**
+ * Phase Plate
+ * @default false
+ */
+ phase_plate?: boolean
+ /**
+ * Data Collection Tag
+ * @default
+ */
+ data_collection_tag?: string
+ }
+ /** DataCollection */
+ DataCollection: {
+ /** Id */
+ id: number
+ /** Tag */
+ tag: string
+ /** Dcg Id */
+ dcg_id: number
+ }
+ /** DataCollectionGroup */
+ DataCollectionGroup: {
+ /** Id */
+ id: number
+ /** Session Id */
+ session_id: number
+ /** Tag */
+ tag: string
+ /** Atlas Id */
+ atlas_id?: number
+ /** Atlas Pixel Size */
+ atlas_pixel_size?: number
+ /**
+ * Atlas
+ * @default
+ */
+ atlas?: string
+ /** Sample */
+ sample?: number
+ }
+ /** EditableSessionProcessingParameters */
+ EditableSessionProcessingParameters: {
+ /**
+ * Gain Ref
+ * @default
+ */
+ gain_ref?: string
+ /** Dose Per Frame */
+ dose_per_frame?: number
+ /**
+ * Eer Fractionation File
+ * @default
+ */
+ eer_fractionation_file?: string
+ /**
+ * Symmetry
+ * @default
+ */
+ symmetry?: string
+ }
+ /** File */
+ File: {
+ /** Name */
+ name: string
+ /** Description */
+ description: string
+ /** Size */
+ size: number
+ /**
+ * Timestamp
+ * Format: date-time
+ */
+ timestamp: string
+ /** Full Path */
+ full_path: string
+ }
+ /** FoilHole */
+ FoilHole: {
+ /** Id */
+ id?: number
+ /** Grid Square Id */
+ grid_square_id: number
+ /** Session Id */
+ session_id: number
+ /** Name */
+ name: number
+ /** X Location */
+ x_location?: number
+ /** Y Location */
+ y_location?: number
+ /** X Stage Position */
+ x_stage_position?: number
+ /** Y Stage Position */
+ y_stage_position?: number
+ /** Readout Area X */
+ readout_area_x?: number
+ /** Readout Area Y */
+ readout_area_y?: number
+ /** Thumbnail Size X */
+ thumbnail_size_x?: number
+ /** Thumbnail Size Y */
+ thumbnail_size_y?: number
+ /** Pixel Size */
+ pixel_size?: number
+ /**
+ * Image
+ * @default
+ */
+ image?: string
+ }
+ /** FoilHoleParameters */
+ FoilHoleParameters: {
+ /** Tag */
+ tag: string
+ /** Name */
+ name: number
+ /** X Location */
+ x_location?: number
+ /** Y Location */
+ y_location?: number
+ /** X Stage Position */
+ x_stage_position?: number
+ /** Y Stage Position */
+ y_stage_position?: number
+ /** Readout Area X */
+ readout_area_x?: number
+ /** Readout Area Y */
+ readout_area_y?: number
+ /** Thumbnail Size X */
+ thumbnail_size_x?: number
+ /** Thumbnail Size Y */
+ thumbnail_size_y?: number
+ /** Pixel Size */
+ pixel_size?: number
+ /**
+ * Image
+ * @default
+ */
+ image?: string
+ /** Diameter */
+ diameter?: number
+ }
+ /** FractionationParameters */
+ FractionationParameters: {
+ /** Fractionation */
+ fractionation: number
+ /** Dose Per Frame */
+ dose_per_frame: number
+ /**
+ * Num Frames
+ * @default 0
+ */
+ num_frames?: number
+ /** Eer Path */
+ eer_path?: string
+ /**
+ * Fractionation File Name
+ * @default eer_fractionation.txt
+ */
+ fractionation_file_name?: string
+ }
+ /** GainReference */
+ GainReference: {
+ /**
+ * Gain Ref
+ * Format: path
+ */
+ gain_ref: string
+ /**
+ * Rescale
+ * @default true
+ */
+ rescale?: boolean
+ /**
+ * Eer
+ * @default false
+ */
+ eer?: boolean
+ /**
+ * Tag
+ * @default
+ */
+ tag?: string
+ }
+ /** GainReferenceRequest */
+ GainReferenceRequest: {
+ /**
+ * Gain Path
+ * Format: path
+ */
+ gain_path: string
+ }
+ /** GridSquare */
+ GridSquare: {
+ /** Id */
+ id?: number
+ /** Session Id */
+ session_id: number
+ /** Name */
+ name: number
+ /** Tag */
+ tag: string
+ /** X Location */
+ x_location?: number
+ /** Y Location */
+ y_location?: number
+ /** X Stage Position */
+ x_stage_position?: number
+ /** Y Stage Position */
+ y_stage_position?: number
+ /** Readout Area X */
+ readout_area_x?: number
+ /** Readout Area Y */
+ readout_area_y?: number
+ /** Thumbnail Size X */
+ thumbnail_size_x?: number
+ /** Thumbnail Size Y */
+ thumbnail_size_y?: number
+ /** Pixel Size */
+ pixel_size?: number
+ /**
+ * Image
+ * @default
+ */
+ image?: string
+ }
+ /** GridSquareParameters */
+ GridSquareParameters: {
+ /** Tag */
+ tag: string
+ /** X Location */
+ x_location?: number
+ /** Y Location */
+ y_location?: number
+ /** X Stage Position */
+ x_stage_position?: number
+ /** Y Stage Position */
+ y_stage_position?: number
+ /** Readout Area X */
+ readout_area_x?: number
+ /** Readout Area Y */
+ readout_area_y?: number
+ /** Thumbnail Size X */
+ thumbnail_size_x?: number
+ /** Thumbnail Size Y */
+ thumbnail_size_y?: number
+ /** Height */
+ height?: number
+ /** Width */
+ width?: number
+ /** Pixel Size */
+ pixel_size?: number
+ /**
+ * Image
+ * @default
+ */
+ image?: string
+ /** Angle */
+ angle?: number
+ }
+ /** HTTPValidationError */
+ HTTPValidationError: {
+ /** Detail */
+ detail?: components['schemas']['ValidationError'][]
+ }
+ /** InstrumentInfo */
+ InstrumentInfo: {
+ /** Instrument Name */
+ instrument_name: string
+ /** Display Name */
+ display_name: string
+ /** Instrument Url */
+ instrument_url: string
+ }
+ /** MachineConfig */
+ MachineConfig: {
+ /** Acquisition Software */
+ acquisition_software: string[]
+ /** Calibrations */
+ calibrations: {
+ [key: string]: {
+ [key: string]: Record | number
+ }
+ }
+ /** Data Directories */
+ data_directories: string[]
+ /**
+ * Rsync Basepath
+ * Format: path
+ */
+ rsync_basepath: string
+ /**
+ * Default Model
+ * Format: path
+ */
+ default_model: string
+ /**
+ * Display Name
+ * @default
+ */
+ display_name?: string
+ /**
+ * Instrument Name
+ * @default
+ */
+ instrument_name?: string
+ /**
+ * Image Path
+ * Format: path
+ */
+ image_path?: string
+ /**
+ * Software Versions
+ * @default {}
+ */
+ software_versions?: {
+ [key: string]: string
+ }
+ /**
+ * External Executables
+ * @default {}
+ */
+ external_executables?: {
+ [key: string]: string
+ }
+ /**
+ * External Executables Eer
+ * @default {}
+ */
+ external_executables_eer?: {
+ [key: string]: string
+ }
+ /**
+ * External Environment
+ * @default {}
+ */
+ external_environment?: {
+ [key: string]: string
+ }
+ /**
+ * Rsync Module
+ * @default
+ */
+ rsync_module?: string
+ /**
+ * Create Directories
+ * @default [
+ * "atlas"
+ * ]
+ */
+ create_directories?: string[]
+ /**
+ * Analyse Created Directories
+ * @default []
+ */
+ analyse_created_directories?: string[]
+ /**
+ * Gain Reference Directory
+ * Format: path
+ */
+ gain_reference_directory?: string
+ /**
+ * Eer Fractionation File Template
+ * @default
+ */
+ eer_fractionation_file_template?: string
+ /**
+ * Processed Directory Name
+ * @default processed
+ */
+ processed_directory_name?: string
+ /**
+ * Gain Directory Name
+ * @default processing
+ */
+ gain_directory_name?: string
+ /**
+ * Node Creator Queue
+ * @default node_creator
+ */
+ node_creator_queue?: string
+ /**
+ * Superres
+ * @default false
+ */
+ superres?: boolean
+ /**
+ * Camera
+ * @default FALCON
+ */
+ camera?: string
+ /**
+ * Data Required Substrings
+ * @default {}
+ */
+ data_required_substrings?: {
+ [key: string]: {
+ [key: string]: string[]
+ }
+ }
+ /**
+ * Allow Removal
+ * @default false
+ */
+ allow_removal?: boolean
+ /**
+ * Data Transfer Enabled
+ * @default true
+ */
+ data_transfer_enabled?: boolean
+ /**
+ * Processing Enabled
+ * @default true
+ */
+ processing_enabled?: boolean
+ /**
+ * Machine Override
+ * @default
+ */
+ machine_override?: string
+ /**
+ * Processed Extra Directory
+ * @default
+ */
+ processed_extra_directory?: string
+ /**
+ * Plugin Packages
+ * @default {}
+ */
+ plugin_packages?: {
+ [key: string]: string
+ }
+ /**
+ * Software Settings Output Directories
+ * @default {}
+ */
+ software_settings_output_directories?: {
+ [key: string]: string[]
+ }
+ /**
+ * Process By Default
+ * @default true
+ */
+ process_by_default?: boolean
+ /**
+ * Recipes
+ * @default {
+ * "em-spa-bfactor": "em-spa-bfactor",
+ * "em-spa-class2d": "em-spa-class2d",
+ * "em-spa-class3d": "em-spa-class3d",
+ * "em-spa-preprocess": "em-spa-preprocess",
+ * "em-spa-refine": "em-spa-refine",
+ * "em-tomo-preprocess": "em-tomo-preprocess",
+ * "em-tomo-align": "em-tomo-align"
+ * }
+ */
+ recipes?: {
+ [key: string]: string
+ }
+ /**
+ * Upstream Data Directories
+ * @default []
+ */
+ upstream_data_directories?: string[]
+ /**
+ * Upstream Data Download Directory
+ * Format: path
+ */
+ upstream_data_download_directory?: string
+ /**
+ * Upstream Data Tiff Locations
+ * @default [
+ * "processed"
+ * ]
+ */
+ upstream_data_tiff_locations?: string[]
+ /**
+ * Model Search Directory
+ * @default processing
+ */
+ model_search_directory?: string
+ /**
+ * Initial Model Search Directory
+ * @default processing/initial_model
+ */
+ initial_model_search_directory?: string
+ /**
+ * Failure Queue
+ * @default
+ */
+ failure_queue?: string
+ /**
+ * Instrument Server Url
+ * @default http://localhost:8001
+ */
+ instrument_server_url?: string
+ /**
+ * Frontend Url
+ * @default http://localhost:3000
+ */
+ frontend_url?: string
+ /**
+ * Murfey Url
+ * @default http://localhost:8000
+ */
+ murfey_url?: string
+ /**
+ * Rsync Url
+ * @default
+ */
+ rsync_url?: string
+ /**
+ * Security Configuration Path
+ * Format: path
+ */
+ security_configuration_path?: string
+ /**
+ * Auth Url
+ * @default
+ */
+ auth_url?: string
+ /**
+ * Notifications Queue
+ * @default pato_notification
+ */
+ notifications_queue?: string
+ }
+ /** MagnificationLookup */
+ MagnificationLookup: {
+ /** Magnification */
+ magnification: number
+ /** Pixel Size */
+ pixel_size: number
+ }
+ /** MultigridWatcherSetup */
+ MultigridWatcherSetup: {
+ /**
+ * Source
+ * Format: path
+ */
+ source: string
+ /**
+ * Skip Existing Processing
+ * @default false
+ */
+ skip_existing_processing?: boolean
+ /**
+ * Destination Overrides
+ * @default {}
+ */
+ destination_overrides?: {
+ [key: string]: string
+ }
+ /**
+ * Rsync Restarts
+ * @default []
+ */
+ rsync_restarts?: string[]
+ }
+ /** PostInfo */
+ PostInfo: {
+ /** Url */
+ url: string
+ /** Data */
+ data: Record
+ }
+ /** PreprocessingParametersTomo */
+ PreprocessingParametersTomo: {
+ /** Dose Per Frame */
+ dose_per_frame?: number
+ /** Frame Count */
+ frame_count: number
+ /** Tilt Axis */
+ tilt_axis: number
+ /** Gain Ref */
+ gain_ref?: string
+ /** Experiment Type */
+ experiment_type: string
+ /** Voltage */
+ voltage: number
+ /** Image Size X */
+ image_size_x: number
+ /** Image Size Y */
+ image_size_y: number
+ /** Pixel Size On Image */
+ pixel_size_on_image: string
+ /** Motion Corr Binning */
+ motion_corr_binning: number
+ /** Manual Tilt Offset */
+ manual_tilt_offset: number
+ /** File Extension */
+ file_extension: string
+ /** Tag */
+ tag: string
+ /** Tilt Series Tag */
+ tilt_series_tag: string
+ /** Eer Fractionation File */
+ eer_fractionation_file?: string
+ /** Eer Fractionation */
+ eer_fractionation: number
+ }
+ /** ProcessingDetails */
+ ProcessingDetails: {
+ data_collection_group: components['schemas']['DataCollectionGroup']
+ /** Data Collections */
+ data_collections: components['schemas']['DataCollection'][]
+ /** Processing Jobs */
+ processing_jobs: components['schemas']['ProcessingJob'][]
+ relion_params: components['schemas']['SPARelionParameters']
+ feedback_params: components['schemas']['SPAFeedbackParameters']
+ }
+ /** ProcessingJob */
+ ProcessingJob: {
+ /** Id */
+ id: number
+ /** Recipe */
+ recipe: string
+ /** Dc Id */
+ dc_id: number
+ }
+ /** ProcessingJobParameters */
+ ProcessingJobParameters: {
+ /** Tag */
+ tag: string
+ /** Source */
+ source: string
+ /** Recipe */
+ recipe: string
+ /**
+ * Parameters
+ * @default {}
+ */
+ parameters?: Record
+ /**
+ * Experiment Type
+ * @default spa
+ */
+ experiment_type?: string
+ }
+ /** ProcessingParametersSPA */
+ ProcessingParametersSPA: {
+ /** Tag */
+ tag: string
+ /** Dose Per Frame */
+ dose_per_frame: number
+ /** Gain Ref */
+ gain_ref?: string
+ /** Experiment Type */
+ experiment_type: string
+ /** Voltage */
+ voltage: number
+ /** Image Size X */
+ image_size_x: number
+ /** Image Size Y */
+ image_size_y: number
+ /** Pixel Size On Image */
+ pixel_size_on_image: string
+ /** Motion Corr Binning */
+ motion_corr_binning: number
+ /** File Extension */
+ file_extension: string
+ /** Acquisition Software */
+ acquisition_software: string
+ /** Use Cryolo */
+ use_cryolo: boolean
+ /** Symmetry */
+ symmetry: string
+ /** Mask Diameter */
+ mask_diameter?: number
+ /** Boxsize */
+ boxsize?: number
+ /** Downscale */
+ downscale: boolean
+ /** Small Boxsize */
+ small_boxsize?: number
+ /**
+ * Eer Fractionation File
+ * @default
+ */
+ eer_fractionation_file?: string
+ /** Particle Diameter */
+ particle_diameter?: number
+ /** Magnification */
+ magnification?: number
+ /** Total Exposed Dose */
+ total_exposed_dose?: number
+ /** C2Aperture */
+ c2aperture?: number
+ /** Exposure Time */
+ exposure_time?: number
+ /** Slit Width */
+ slit_width?: number
+ /**
+ * Phase Plate
+ * @default false
+ */
+ phase_plate?: boolean
+ }
+ /** ProcessingParametersTomo */
+ ProcessingParametersTomo: {
+ /** Manual Tilt Offset */
+ manual_tilt_offset: number
+ /** Tag */
+ tag: string
+ /** Tilt Series Tag */
+ tilt_series_tag: string
+ }
+ /** ProvidedProcessingParameters */
+ ProvidedProcessingParameters: {
+ /** Dose Per Frame */
+ dose_per_frame: number
+ /**
+ * Extract Downscale
+ * @default true
+ */
+ extract_downscale?: boolean
+ /** Particle Diameter */
+ particle_diameter?: number
+ /**
+ * Symmetry
+ * @default C1
+ */
+ symmetry?: string
+ /**
+ * Eer Fractionation
+ * @default 20
+ */
+ eer_fractionation?: number
+ }
+ /** RSyncerInfo */
+ RSyncerInfo: {
+ /** Source */
+ source: string
+ /** Num Files Transferred */
+ num_files_transferred: number
+ /** Num Files In Queue */
+ num_files_in_queue: number
+ /** Num Files To Analyse */
+ num_files_to_analyse: number
+ /** Alive */
+ alive: boolean
+ /** Stopping */
+ stopping: boolean
+ /** Analyser Alive */
+ analyser_alive: boolean
+ /** Analyser Stopping */
+ analyser_stopping: boolean
+ /** Destination */
+ destination: string
+ /** Tag */
+ tag: string
+ /** Files Transferred */
+ files_transferred: number
+ /** Files Counted */
+ files_counted: number
+ /** Transferring */
+ transferring: boolean
+ /** Session Id */
+ session_id: number
+ }
+ /** RegistrationMessage */
+ RegistrationMessage: {
+ /** Registration */
+ registration: string
+ /** Params */
+ params?: Record
+ }
+ /** RsyncInstance */
+ RsyncInstance: {
+ /** Source */
+ source: string
+ /**
+ * Destination
+ * @default
+ */
+ destination?: string
+ /** Session Id */
+ session_id: number
+ /**
+ * Tag
+ * @default
+ */
+ tag?: string
+ /**
+ * Files Transferred
+ * @default 0
+ */
+ files_transferred?: number
+ /**
+ * Files Counted
+ * @default 0
+ */
+ files_counted?: number
+ /**
+ * Transferring
+ * @default false
+ */
+ transferring?: boolean
+ }
+ /** RsyncerInfo */
+ RsyncerInfo: {
+ /** Source */
+ source: string
+ /** Destination */
+ destination: string
+ /** Session Id */
+ session_id: number
+ /**
+ * Transferring
+ * @default true
+ */
+ transferring?: boolean
+ /**
+ * Increment Count
+ * @default 1
+ */
+ increment_count?: number
+ /**
+ * Bytes
+ * @default 0
+ */
+ bytes?: number
+ /**
+ * Increment Data Count
+ * @default 0
+ */
+ increment_data_count?: number
+ /**
+ * Data Bytes
+ * @default 0
+ */
+ data_bytes?: number
+ /**
+ * Tag
+ * @default
+ */
+ tag?: string
+ }
+ /** SPAFeedbackParameters */
+ SPAFeedbackParameters: {
+ /** Pj Id */
+ pj_id: number
+ /**
+ * Estimate Particle Diameter
+ * @default true
+ */
+ estimate_particle_diameter?: boolean
+ /**
+ * Hold Class2D
+ * @default false
+ */
+ hold_class2d?: boolean
+ /**
+ * Rerun Class2D
+ * @default false
+ */
+ rerun_class2d?: boolean
+ /**
+ * Hold Class3D
+ * @default false
+ */
+ hold_class3d?: boolean
+ /**
+ * Hold Refine
+ * @default false
+ */
+ hold_refine?: boolean
+ /** Class Selection Score */
+ class_selection_score: number
+ /** Star Combination Job */
+ star_combination_job: number
+ /** Initial Model */
+ initial_model: string
+ /** Next Job */
+ next_job: number
+ /** Picker Murfey Id */
+ picker_murfey_id?: number
+ /** Picker Ispyb Id */
+ picker_ispyb_id?: number
+ }
+ /** SPAProcessFile */
+ SPAProcessFile: {
+ /** Tag */
+ tag: string
+ /** Path */
+ path: string
+ /** Description */
+ description: string
+ /** Processing Job */
+ processing_job?: number
+ /** Data Collection Id */
+ data_collection_id?: number
+ /** Image Number */
+ image_number: number
+ /** Autoproc Program Id */
+ autoproc_program_id?: number
+ /** Foil Hole Id */
+ foil_hole_id?: number
+ /** Pixel Size */
+ pixel_size?: number
+ /** Dose Per Frame */
+ dose_per_frame?: number
+ /**
+ * Mc Binning
+ * @default 1
+ */
+ mc_binning?: number
+ /** Gain Ref */
+ gain_ref?: string
+ /**
+ * Extract Downscale
+ * @default true
+ */
+ extract_downscale?: boolean
+ /** Eer Fractionation File */
+ eer_fractionation_file?: string
+ /**
+ * Source
+ * @default
+ */
+ source?: string
+ }
+ /** SPARelionParameters */
+ SPARelionParameters: {
+ /** Pj Id */
+ pj_id: number
+ /** Angpix */
+ angpix: number
+ /** Dose Per Frame */
+ dose_per_frame: number
+ /** Gain Ref */
+ gain_ref?: string
+ /** Voltage */
+ voltage: number
+ /** Motion Corr Binning */
+ motion_corr_binning: number
+ /**
+ * Eer Fractionation File
+ * @default
+ */
+ eer_fractionation_file?: string
+ /** Symmetry */
+ symmetry: string
+ /** Particle Diameter */
+ particle_diameter?: number
+ /** Downscale */
+ downscale: boolean
+ /**
+ * Do Icebreaker Jobs
+ * @default true
+ */
+ do_icebreaker_jobs?: boolean
+ /**
+ * Boxsize
+ * @default 256
+ */
+ boxsize?: number
+ /**
+ * Small Boxsize
+ * @default 64
+ */
+ small_boxsize?: number
+ /**
+ * Mask Diameter
+ * @default 190
+ */
+ mask_diameter?: number
+ }
+ /** SSDData */
+ SSDData: {
+ /** Name */
+ name: string
+ /** Health */
+ health: number
+ }
+ /** Session */
+ Session: {
+ /** Id */
+ id: number
+ /** Name */
+ name: string
+ /**
+ * Visit
+ * @default
+ */
+ visit?: string
+ /**
+ * Started
+ * @default false
+ */
+ started?: boolean
+ /**
+ * Current Gain Ref
+ * @default
+ */
+ current_gain_ref?: string
+ /**
+ * Instrument Name
+ * @default
+ */
+ instrument_name?: string
+ /**
+ * Process
+ * @default
+ */
+ process?: boolean
+ visit_end_time: string
+ }
+ /** SessionClients */
+ SessionClients: {
+ session: components['schemas']['Session']
+ /** Clients */
+ clients: components['schemas']['ClientEnvironment'][]
+ }
+ /** SessionInfo */
+ SessionInfo: {
+ /** Session Id */
+ session_id?: number
+ /**
+ * Session Name
+ * @default
+ */
+ session_name?: string
+ /**
+ * Rescale
+ * @default true
+ */
+ rescale?: boolean
+ }
+ /** SmartEMAtlasRequest */
+ SmartEMAtlasRequest: {
+ /**
+ * Atlas Path
+ * Format: path
+ */
+ atlas_path: string
+ /**
+ * Output Dir
+ * Format: path
+ */
+ output_dir: string
+ /** Tag */
+ tag: string
+ /**
+ * Num Preds
+ * @default 15
+ */
+ num_preds?: number
+ /**
+ * Cpus
+ * @default 4
+ */
+ cpus?: number
+ }
+ /** Source */
+ Source: {
+ /** Rsync Source */
+ rsync_source: string
+ }
+ /** SuggestedPathParameters */
+ SuggestedPathParameters: {
+ /**
+ * Base Path
+ * Format: path
+ */
+ base_path: string
+ /**
+ * Touch
+ * @default false
+ */
+ touch?: boolean
+ /**
+ * Extra Directory
+ * @default
+ */
+ extra_directory?: string
+ }
+ /** TIFFSeriesInfo */
+ TIFFSeriesInfo: {
+ /** Series Name */
+ series_name: string
+ /** Tiff Files */
+ tiff_files: string[]
+ /**
+ * Series Metadata
+ * Format: path
+ */
+ series_metadata: string
+ }
+ /** Tag */
+ Tag: {
+ /** Tag */
+ tag: string
+ }
+ /** TiltInfo */
+ TiltInfo: {
+ /** Tilt Series Tag */
+ tilt_series_tag: string
+ /** Movie Path */
+ movie_path: string
+ /** Source */
+ source: string
+ }
+ /** TiltSeriesGroupInfo */
+ TiltSeriesGroupInfo: {
+ /** Tags */
+ tags: string[]
+ /** Source */
+ source: string
+ /** Tilt Series Lengths */
+ tilt_series_lengths: number[]
+ }
+ /** TiltSeriesInfo */
+ TiltSeriesInfo: {
+ /** Session Id */
+ session_id: number
+ /** Tag */
+ tag: string
+ /** Source */
+ source: string
+ }
+ /** Token */
+ Token: {
+ /** Access Token */
+ access_token: string
+ /** Token Type */
+ token_type: string
+ }
+ /** TomoProcessFile */
+ TomoProcessFile: {
+ /** Path */
+ path: string
+ /** Description */
+ description: string
+ /** Tag */
+ tag: string
+ /** Image Number */
+ image_number: number
+ /** Pixel Size */
+ pixel_size: number
+ /** Dose Per Frame */
+ dose_per_frame?: number
+ /** Frame Count */
+ frame_count: number
+ /** Tilt Axis */
+ tilt_axis?: number
+ /** Mc Uuid */
+ mc_uuid?: number
+ /**
+ * Voltage
+ * @default 300
+ */
+ voltage?: number
+ /**
+ * Mc Binning
+ * @default 1
+ */
+ mc_binning?: number
+ /** Gain Ref */
+ gain_ref?: string
+ /**
+ * Extract Downscale
+ * @default 1
+ */
+ extract_downscale?: number
+ /** Eer Fractionation File */
+ eer_fractionation_file?: string
+ /** Group Tag */
+ group_tag?: string
+ }
+ /** ValidationError */
+ ValidationError: {
+ /** Location */
+ loc: (string | number)[]
+ /** Message */
+ msg: string
+ /** Error Type */
+ type: string
+ }
+ /** Visit */
+ Visit: {
+ /**
+ * Start
+ * Format: date-time
+ */
+ start: string
+ /**
+ * End
+ * Format: date-time
+ */
+ end: string
+ /** Session Id */
+ session_id: number
+ /** Name */
+ name: string
+ /** Beamline */
+ beamline: string
+ /** Proposal Title */
+ proposal_title: string
+ }
+ /** RsyncerSource */
+ murfey__server__api__instrument__RsyncerSource: {
+ /** Source */
+ source: string
+ }
+ /** RsyncerSource */
+ murfey__util__models__RsyncerSource: {
+ /** Source */
+ source: string
+ }
+ }
+ responses: never
+ parameters: never
+ requestBodies: never
+ headers: never
+ pathItems: never
+}
+
+export type $defs = Record
+
+export type external = Record
+
+export interface operations {
/** Root */
- get: operations["root__get"];
- };
- "/machine": {
+ root__get: {
+ responses: {
+ /** @description Successful Response */
+ 200: {
+ content: {
+ 'text/html': string
+ }
+ }
+ }
+ }
/** Machine Info */
- get: operations["machine_info_machine_get"];
- };
- "/instruments/{instrument_name}/machine": {
+ machine_info_machine_get: {
+ responses: {
+ /** @description Successful Response */
+ 200: {
+ content: {
+ 'application/json': components['schemas']['MachineConfig']
+ }
+ }
+ }
+ }
/** Machine Info By Name */
- get: operations["machine_info_by_name_instruments__instrument_name__machine_get"];
- };
- "/microscope_image/": {
+ machine_info_by_name_instruments__instrument_name__machine_get: {
+ parameters: {
+ path: {
+ instrument_name: string
+ }
+ }
+ responses: {
+ /** @description Successful Response */
+ 200: {
+ content: {
+ 'application/json': components['schemas']['MachineConfig']
+ }
+ }
+ /** @description Validation Error */
+ 422: {
+ content: {
+ 'application/json': components['schemas']['HTTPValidationError']
+ }
+ }
+ }
+ }
/** Get Mic Image */
- get: operations["get_mic_image_microscope_image__get"];
- };
- "/mag_table/": {
+ get_mic_image_microscope_image__get: {
+ responses: {
+ /** @description Successful Response */
+ 200: {
+ content: {
+ 'application/json': unknown
+ }
+ }
+ }
+ }
/** Get Mag Table */
- get: operations["get_mag_table_mag_table__get"];
+ get_mag_table_mag_table__get: {
+ responses: {
+ /** @description Successful Response */
+ 200: {
+ content: {
+ 'application/json': components['schemas']['MagnificationLookup'][]
+ }
+ }
+ }
+ }
/** Add To Mag Table */
- post: operations["add_to_mag_table_mag_table__post"];
- };
- "/mag_table/{mag}": {
+ add_to_mag_table_mag_table__post: {
+ requestBody: {
+ content: {
+ 'application/json': components['schemas']['MagnificationLookup'][]
+ }
+ }
+ responses: {
+ /** @description Successful Response */
+ 200: {
+ content: {
+ 'application/json': unknown
+ }
+ }
+ /** @description Validation Error */
+ 422: {
+ content: {
+ 'application/json': components['schemas']['HTTPValidationError']
+ }
+ }
+ }
+ }
/** Remove Mag Table Row */
- delete: operations["remove_mag_table_row_mag_table__mag__delete"];
- };
- "/instruments/{instrument_name}/instrument_name": {
+ remove_mag_table_row_mag_table__mag__delete: {
+ parameters: {
+ path: {
+ mag: number
+ }
+ }
+ responses: {
+ /** @description Successful Response */
+ 200: {
+ content: {
+ 'application/json': unknown
+ }
+ }
+ /** @description Validation Error */
+ 422: {
+ content: {
+ 'application/json': components['schemas']['HTTPValidationError']
+ }
+ }
+ }
+ }
/** Get Instrument Display Name */
- get: operations["get_instrument_display_name_instruments__instrument_name__instrument_name_get"];
- };
- "/instruments/{instrument_name}/visits/": {
+ get_instrument_display_name_instruments__instrument_name__instrument_name_get: {
+ parameters: {
+ path: {
+ instrument_name: string
+ }
+ }
+ responses: {
+ /** @description Successful Response */
+ 200: {
+ content: {
+ 'application/json': string
+ }
+ }
+ /** @description Validation Error */
+ 422: {
+ content: {
+ 'application/json': components['schemas']['HTTPValidationError']
+ }
+ }
+ }
+ }
/** All Visit Info */
- get: operations["all_visit_info_instruments__instrument_name__visits__get"];
- };
- "/visits/{visit_name}": {
+ all_visit_info_instruments__instrument_name__visits__get: {
+ parameters: {
+ path: {
+ instrument_name: string
+ }
+ }
+ responses: {
+ /** @description Successful Response */
+ 200: {
+ content: {
+ 'application/json': unknown
+ }
+ }
+ /** @description Validation Error */
+ 422: {
+ content: {
+ 'application/json': components['schemas']['HTTPValidationError']
+ }
+ }
+ }
+ }
/** Visit Info */
- get: operations["visit_info_visits__visit_name__get"];
+ visit_info_visits__visit_name__get: {
+ parameters: {
+ path: {
+ visit_name: string
+ }
+ }
+ responses: {
+ /** @description Successful Response */
+ 200: {
+ content: {
+ 'application/json': unknown
+ }
+ }
+ /** @description Validation Error */
+ 422: {
+ content: {
+ 'application/json': components['schemas']['HTTPValidationError']
+ }
+ }
+ }
+ }
/** Register Client To Visit */
- post: operations["register_client_to_visit_visits__visit_name__post"];
- };
- "/num_movies": {
+ register_client_to_visit_visits__visit_name__post: {
+ parameters: {
+ path: {
+ visit_name: string
+ }
+ }
+ requestBody: {
+ content: {
+ 'application/json': components['schemas']['ClientInfo']
+ }
+ }
+ responses: {
+ /** @description Successful Response */
+ 200: {
+ content: {
+ 'application/json': unknown
+ }
+ }
+ /** @description Validation Error */
+ 422: {
+ content: {
+ 'application/json': components['schemas']['HTTPValidationError']
+ }
+ }
+ }
+ }
/** Count Number Of Movies */
- get: operations["count_number_of_movies_num_movies_get"];
- };
- "/sessions/{session_id}/rsyncer": {
+ count_number_of_movies_num_movies_get: {
+ responses: {
+ /** @description Successful Response */
+ 200: {
+ content: {
+ 'application/json': {
+ [key: string]: number
+ }
+ }
+ }
+ }
+ }
/** Register Rsyncer */
- post: operations["register_rsyncer_sessions__session_id__rsyncer_post"];
- };
- "/sessions/{session_id}/rsyncer/{source}": {
+ register_rsyncer_sessions__session_id__rsyncer_post: {
+ parameters: {
+ path: {
+ session_id: number
+ }
+ }
+ requestBody: {
+ content: {
+ 'application/json': components['schemas']['RsyncerInfo']
+ }
+ }
+ responses: {
+ /** @description Successful Response */
+ 200: {
+ content: {
+ 'application/json': unknown
+ }
+ }
+ /** @description Validation Error */
+ 422: {
+ content: {
+ 'application/json': components['schemas']['HTTPValidationError']
+ }
+ }
+ }
+ }
/** Delete Rsyncer */
- delete: operations["delete_rsyncer_sessions__session_id__rsyncer__source__delete"];
- };
- "/sessions/{session_id}/rsyncer_stopped": {
+ delete_rsyncer_sessions__session_id__rsyncer__source__delete: {
+ parameters: {
+ path: {
+ session_id: number
+ source: string
+ }
+ }
+ responses: {
+ /** @description Successful Response */
+ 200: {
+ content: {
+ 'application/json': unknown
+ }
+ }
+ /** @description Validation Error */
+ 422: {
+ content: {
+ 'application/json': components['schemas']['HTTPValidationError']
+ }
+ }
+ }
+ }
/** Register Stopped Rsyncer */
- post: operations["register_stopped_rsyncer_sessions__session_id__rsyncer_stopped_post"];
- };
- "/sessions/{session_id}/rsyncer_started": {
+ register_stopped_rsyncer_sessions__session_id__rsyncer_stopped_post: {
+ parameters: {
+ path: {
+ session_id: number
+ }
+ }
+ requestBody: {
+ content: {
+ 'application/json': components['schemas']['murfey__util__models__RsyncerSource']
+ }
+ }
+ responses: {
+ /** @description Successful Response */
+ 200: {
+ content: {
+ 'application/json': unknown
+ }
+ }
+ /** @description Validation Error */
+ 422: {
+ content: {
+ 'application/json': components['schemas']['HTTPValidationError']
+ }
+ }
+ }
+ }
/** Register Restarted Rsyncer */
- post: operations["register_restarted_rsyncer_sessions__session_id__rsyncer_started_post"];
- };
- "/clients/{client_id}/rsyncers": {
+ register_restarted_rsyncer_sessions__session_id__rsyncer_started_post: {
+ parameters: {
+ path: {
+ session_id: number
+ }
+ }
+ requestBody: {
+ content: {
+ 'application/json': components['schemas']['murfey__util__models__RsyncerSource']
+ }
+ }
+ responses: {
+ /** @description Successful Response */
+ 200: {
+ content: {
+ 'application/json': unknown
+ }
+ }
+ /** @description Validation Error */
+ 422: {
+ content: {
+ 'application/json': components['schemas']['HTTPValidationError']
+ }
+ }
+ }
+ }
/** Get Rsyncers For Client */
- get: operations["get_rsyncers_for_client_clients__client_id__rsyncers_get"];
- };
- "/session/{session_id}": {
+ get_rsyncers_for_client_clients__client_id__rsyncers_get: {
+ parameters: {
+ path: {
+ client_id: number
+ }
+ }
+ responses: {
+ /** @description Successful Response */
+ 200: {
+ content: {
+ 'application/json': unknown
+ }
+ }
+ /** @description Validation Error */
+ 422: {
+ content: {
+ 'application/json': components['schemas']['HTTPValidationError']
+ }
+ }
+ }
+ }
/** Get Session */
- get: operations["get_session_session__session_id__get"];
- };
- "/visits/{visit_name}/increment_rsync_file_count": {
+ get_session_session__session_id__get: {
+ parameters: {
+ path: {
+ session_id: number
+ }
+ }
+ responses: {
+ /** @description Successful Response */
+ 200: {
+ content: {
+ 'application/json': components['schemas']['SessionClients']
+ }
+ }
+ /** @description Validation Error */
+ 422: {
+ content: {
+ 'application/json': components['schemas']['HTTPValidationError']
+ }
+ }
+ }
+ }
/** Increment Rsync File Count */
- post: operations["increment_rsync_file_count_visits__visit_name__increment_rsync_file_count_post"];
- };
- "/visits/{visit_name}/increment_rsync_transferred_files": {
+ increment_rsync_file_count_visits__visit_name__increment_rsync_file_count_post: {
+ parameters: {
+ path: {
+ visit_name: string
+ }
+ }
+ requestBody: {
+ content: {
+ 'application/json': components['schemas']['RsyncerInfo']
+ }
+ }
+ responses: {
+ /** @description Successful Response */
+ 200: {
+ content: {
+ 'application/json': unknown
+ }
+ }
+ /** @description Validation Error */
+ 422: {
+ content: {
+ 'application/json': components['schemas']['HTTPValidationError']
+ }
+ }
+ }
+ }
/** Increment Rsync Transferred Files */
- post: operations["increment_rsync_transferred_files_visits__visit_name__increment_rsync_transferred_files_post"];
- };
- "/visits/{visit_name}/increment_rsync_transferred_files_prometheus": {
+ increment_rsync_transferred_files_visits__visit_name__increment_rsync_transferred_files_post: {
+ parameters: {
+ path: {
+ visit_name: string
+ }
+ }
+ requestBody: {
+ content: {
+ 'application/json': components['schemas']['RsyncerInfo']
+ }
+ }
+ responses: {
+ /** @description Successful Response */
+ 200: {
+ content: {
+ 'application/json': unknown
+ }
+ }
+ /** @description Validation Error */
+ 422: {
+ content: {
+ 'application/json': components['schemas']['HTTPValidationError']
+ }
+ }
+ }
+ }
/** Increment Rsync Transferred Files Prometheus */
- post: operations["increment_rsync_transferred_files_prometheus_visits__visit_name__increment_rsync_transferred_files_prometheus_post"];
- };
- "/sessions/{session_id}/spa_processing_parameters": {
+ increment_rsync_transferred_files_prometheus_visits__visit_name__increment_rsync_transferred_files_prometheus_post: {
+ parameters: {
+ path: {
+ visit_name: string
+ }
+ }
+ requestBody: {
+ content: {
+ 'application/json': components['schemas']['RsyncerInfo']
+ }
+ }
+ responses: {
+ /** @description Successful Response */
+ 200: {
+ content: {
+ 'application/json': unknown
+ }
+ }
+ /** @description Validation Error */
+ 422: {
+ content: {
+ 'application/json': components['schemas']['HTTPValidationError']
+ }
+ }
+ }
+ }
/** Get Spa Proc Param Details */
- get: operations["get_spa_proc_param_details_sessions__session_id__spa_processing_parameters_get"];
+ get_spa_proc_param_details_sessions__session_id__spa_processing_parameters_get: {
+ parameters: {
+ path: {
+ session_id: number
+ }
+ }
+ responses: {
+ /** @description Successful Response */
+ 200: {
+ content: {
+ 'application/json': components['schemas']['ProcessingDetails'][]
+ }
+ }
+ /** @description Validation Error */
+ 422: {
+ content: {
+ 'application/json': components['schemas']['HTTPValidationError']
+ }
+ }
+ }
+ }
/** Register Spa Proc Params */
- post: operations["register_spa_proc_params_sessions__session_id__spa_processing_parameters_post"];
- };
- "/sessions/{session_id}/tomography_preprocessing_parameters": {
+ register_spa_proc_params_sessions__session_id__spa_processing_parameters_post: {
+ parameters: {
+ path: {
+ session_id: number
+ }
+ }
+ requestBody: {
+ content: {
+ 'application/json': components['schemas']['ProcessingParametersSPA']
+ }
+ }
+ responses: {
+ /** @description Successful Response */
+ 200: {
+ content: {
+ 'application/json': unknown
+ }
+ }
+ /** @description Validation Error */
+ 422: {
+ content: {
+ 'application/json': components['schemas']['HTTPValidationError']
+ }
+ }
+ }
+ }
/** Register Tomo Preproc Params */
- post: operations["register_tomo_preproc_params_sessions__session_id__tomography_preprocessing_parameters_post"];
- };
- "/clients/{client_id}/tomography_processing_parameters": {
+ register_tomo_preproc_params_sessions__session_id__tomography_preprocessing_parameters_post: {
+ parameters: {
+ path: {
+ session_id: number
+ }
+ }
+ requestBody: {
+ content: {
+ 'application/json': components['schemas']['PreprocessingParametersTomo']
+ }
+ }
+ responses: {
+ /** @description Successful Response */
+ 200: {
+ content: {
+ 'application/json': unknown
+ }
+ }
+ /** @description Validation Error */
+ 422: {
+ content: {
+ 'application/json': components['schemas']['HTTPValidationError']
+ }
+ }
+ }
+ }
/** Register Tomo Proc Params */
- post: operations["register_tomo_proc_params_clients__client_id__tomography_processing_parameters_post"];
- };
- "/clients/{client_id}/spa_processing_parameters": {
+ register_tomo_proc_params_clients__client_id__tomography_processing_parameters_post: {
+ parameters: {
+ path: {
+ client_id: number
+ }
+ }
+ requestBody: {
+ content: {
+ 'application/json': components['schemas']['ProcessingParametersTomo']
+ }
+ }
+ responses: {
+ /** @description Successful Response */
+ 200: {
+ content: {
+ 'application/json': unknown
+ }
+ }
+ /** @description Validation Error */
+ 422: {
+ content: {
+ 'application/json': components['schemas']['HTTPValidationError']
+ }
+ }
+ }
+ }
/** Get Spa Proc Params */
- get: operations["get_spa_proc_params_clients__client_id__spa_processing_parameters_get"];
- };
- "/sessions/{session_id}/grid_squares": {
+ get_spa_proc_params_clients__client_id__spa_processing_parameters_get: {
+ parameters: {
+ path: {
+ client_id: number
+ }
+ }
+ responses: {
+ /** @description Successful Response */
+ 200: {
+ content: {
+ 'application/json': Record[]
+ }
+ }
+ /** @description Validation Error */
+ 422: {
+ content: {
+ 'application/json': components['schemas']['HTTPValidationError']
+ }
+ }
+ }
+ }
/** Get Grid Squares */
- get: operations["get_grid_squares_sessions__session_id__grid_squares_get"];
- };
- "/sessions/{session_id}/data_collection_groups/{dcgid}/grid_squares": {
+ get_grid_squares_sessions__session_id__grid_squares_get: {
+ parameters: {
+ path: {
+ session_id: number
+ }
+ }
+ responses: {
+ /** @description Successful Response */
+ 200: {
+ content: {
+ 'application/json': unknown
+ }
+ }
+ /** @description Validation Error */
+ 422: {
+ content: {
+ 'application/json': components['schemas']['HTTPValidationError']
+ }
+ }
+ }
+ }
/** Get Grid Squares From Dcg */
- get: operations["get_grid_squares_from_dcg_sessions__session_id__data_collection_groups__dcgid__grid_squares_get"];
- };
- "/sessions/{session_id}/data_collection_groups/{dcgid}/grid_squares/{gsid}/num_movies": {
+ get_grid_squares_from_dcg_sessions__session_id__data_collection_groups__dcgid__grid_squares_get: {
+ parameters: {
+ path: {
+ session_id: number
+ dcgid: number
+ }
+ }
+ responses: {
+ /** @description Successful Response */
+ 200: {
+ content: {
+ 'application/json': components['schemas']['GridSquare'][]
+ }
+ }
+ /** @description Validation Error */
+ 422: {
+ content: {
+ 'application/json': components['schemas']['HTTPValidationError']
+ }
+ }
+ }
+ }
/** Get Number Of Movies From Grid Square */
- get: operations["get_number_of_movies_from_grid_square_sessions__session_id__data_collection_groups__dcgid__grid_squares__gsid__num_movies_get"];
- };
- "/sessions/{session_id}/data_collection_groups/{dcgid}/grid_squares/{gsid}/foil_holes": {
+ get_number_of_movies_from_grid_square_sessions__session_id__data_collection_groups__dcgid__grid_squares__gsid__num_movies_get: {
+ parameters: {
+ path: {
+ session_id: number
+ dcgid: number
+ gsid: number
+ }
+ }
+ responses: {
+ /** @description Successful Response */
+ 200: {
+ content: {
+ 'application/json': number
+ }
+ }
+ /** @description Validation Error */
+ 422: {
+ content: {
+ 'application/json': components['schemas']['HTTPValidationError']
+ }
+ }
+ }
+ }
/** Get Foil Holes From Grid Square */
- get: operations["get_foil_holes_from_grid_square_sessions__session_id__data_collection_groups__dcgid__grid_squares__gsid__foil_holes_get"];
- };
- "/sessions/{session_id}/data_collection_groups/{dcgid}/grid_squares/{gsid}/foil_holes/{fhid}/num_movies": {
+ get_foil_holes_from_grid_square_sessions__session_id__data_collection_groups__dcgid__grid_squares__gsid__foil_holes_get: {
+ parameters: {
+ path: {
+ session_id: number
+ dcgid: number
+ gsid: number
+ }
+ }
+ responses: {
+ /** @description Successful Response */
+ 200: {
+ content: {
+ 'application/json': components['schemas']['FoilHole'][]
+ }
+ }
+ /** @description Validation Error */
+ 422: {
+ content: {
+ 'application/json': components['schemas']['HTTPValidationError']
+ }
+ }
+ }
+ }
/** Get Number Of Movies From Foil Hole */
- get: operations["get_number_of_movies_from_foil_hole_sessions__session_id__data_collection_groups__dcgid__grid_squares__gsid__foil_holes__fhid__num_movies_get"];
- };
- "/sessions/{session_id}/grid_square/{gsid}": {
+ get_number_of_movies_from_foil_hole_sessions__session_id__data_collection_groups__dcgid__grid_squares__gsid__foil_holes__fhid__num_movies_get: {
+ parameters: {
+ path: {
+ session_id: number
+ dcgid: number
+ gsid: number
+ fhid: number
+ }
+ }
+ responses: {
+ /** @description Successful Response */
+ 200: {
+ content: {
+ 'application/json': number
+ }
+ }
+ /** @description Validation Error */
+ 422: {
+ content: {
+ 'application/json': components['schemas']['HTTPValidationError']
+ }
+ }
+ }
+ }
/** Register Grid Square */
- post: operations["register_grid_square_sessions__session_id__grid_square__gsid__post"];
- };
- "/sessions/{session_id}/foil_hole/{fh_name}": {
+ register_grid_square_sessions__session_id__grid_square__gsid__post: {
+ parameters: {
+ path: {
+ session_id: number
+ gsid: number
+ }
+ }
+ requestBody: {
+ content: {
+ 'application/json': components['schemas']['GridSquareParameters']
+ }
+ }
+ responses: {
+ /** @description Successful Response */
+ 200: {
+ content: {
+ 'application/json': unknown
+ }
+ }
+ /** @description Validation Error */
+ 422: {
+ content: {
+ 'application/json': components['schemas']['HTTPValidationError']
+ }
+ }
+ }
+ }
/** Get Foil Hole */
- get: operations["get_foil_hole_sessions__session_id__foil_hole__fh_name__get"];
- };
- "/sessions/{session_id}/grid_square/{gs_name}/foil_hole": {
+ get_foil_hole_sessions__session_id__foil_hole__fh_name__get: {
+ parameters: {
+ path: {
+ fh_name: number
+ session_id: number
+ }
+ }
+ responses: {
+ /** @description Successful Response */
+ 200: {
+ content: {
+ 'application/json': {
+ [key: string]: number
+ }
+ }
+ }
+ /** @description Validation Error */
+ 422: {
+ content: {
+ 'application/json': components['schemas']['HTTPValidationError']
+ }
+ }
+ }
+ }
/** Register Foil Hole */
- post: operations["register_foil_hole_sessions__session_id__grid_square__gs_name__foil_hole_post"];
- };
- "/visits/{visit_name}/tilt_series": {
+ register_foil_hole_sessions__session_id__grid_square__gs_name__foil_hole_post: {
+ parameters: {
+ path: {
+ gs_name: number
+ session_id: number
+ }
+ }
+ requestBody: {
+ content: {
+ 'application/json': components['schemas']['FoilHoleParameters']
+ }
+ }
+ responses: {
+ /** @description Successful Response */
+ 200: {
+ content: {
+ 'application/json': unknown
+ }
+ }
+ /** @description Validation Error */
+ 422: {
+ content: {
+ 'application/json': components['schemas']['HTTPValidationError']
+ }
+ }
+ }
+ }
/** Register Tilt Series */
- post: operations["register_tilt_series_visits__visit_name__tilt_series_post"];
- };
- "/visits/{visit_name}/{client_id}/completed_tilt_series": {
+ register_tilt_series_visits__visit_name__tilt_series_post: {
+ parameters: {
+ path: {
+ visit_name: string
+ }
+ }
+ requestBody: {
+ content: {
+ 'application/json': components['schemas']['TiltSeriesInfo']
+ }
+ }
+ responses: {
+ /** @description Successful Response */
+ 200: {
+ content: {
+ 'application/json': unknown
+ }
+ }
+ /** @description Validation Error */
+ 422: {
+ content: {
+ 'application/json': components['schemas']['HTTPValidationError']
+ }
+ }
+ }
+ }
/** Register Completed Tilt Series */
- post: operations["register_completed_tilt_series_visits__visit_name___client_id__completed_tilt_series_post"];
- };
- "/clients/{client_id}/tilt_series/{tilt_series_tag}/tilts": {
+ register_completed_tilt_series_visits__visit_name___client_id__completed_tilt_series_post: {
+ parameters: {
+ path: {
+ visit_name: string
+ client_id: number
+ }
+ }
+ requestBody: {
+ content: {
+ 'application/json': components['schemas']['TiltSeriesGroupInfo']
+ }
+ }
+ responses: {
+ /** @description Successful Response */
+ 200: {
+ content: {
+ 'application/json': unknown
+ }
+ }
+ /** @description Validation Error */
+ 422: {
+ content: {
+ 'application/json': components['schemas']['HTTPValidationError']
+ }
+ }
+ }
+ }
/** Get Tilts */
- get: operations["get_tilts_clients__client_id__tilt_series__tilt_series_tag__tilts_get"];
- };
- "/visits/{visit_name}/{client_id}/tilt": {
+ get_tilts_clients__client_id__tilt_series__tilt_series_tag__tilts_get: {
+ parameters: {
+ path: {
+ client_id: number
+ tilt_series_tag: string
+ }
+ }
+ responses: {
+ /** @description Successful Response */
+ 200: {
+ content: {
+ 'application/json': unknown
+ }
+ }
+ /** @description Validation Error */
+ 422: {
+ content: {
+ 'application/json': components['schemas']['HTTPValidationError']
+ }
+ }
+ }
+ }
/** Register Tilt */
- post: operations["register_tilt_visits__visit_name___client_id__tilt_post"];
- };
- "/instruments/{instrument_name}/visits_raw": {
+ register_tilt_visits__visit_name___client_id__tilt_post: {
+ parameters: {
+ path: {
+ visit_name: string
+ client_id: number
+ }
+ }
+ requestBody: {
+ content: {
+ 'application/json': components['schemas']['TiltInfo']
+ }
+ }
+ responses: {
+ /** @description Successful Response */
+ 200: {
+ content: {
+ 'application/json': unknown
+ }
+ }
+ /** @description Validation Error */
+ 422: {
+ content: {
+ 'application/json': components['schemas']['HTTPValidationError']
+ }
+ }
+ }
+ }
/** Get Current Visits */
- get: operations["get_current_visits_instruments__instrument_name__visits_raw_get"];
- };
- "/feedback": {
+ get_current_visits_instruments__instrument_name__visits_raw_get: {
+ parameters: {
+ path: {
+ instrument_name: string
+ }
+ }
+ responses: {
+ /** @description Successful Response */
+ 200: {
+ content: {
+ 'application/json': components['schemas']['Visit'][]
+ }
+ }
+ /** @description Validation Error */
+ 422: {
+ content: {
+ 'application/json': components['schemas']['HTTPValidationError']
+ }
+ }
+ }
+ }
/** Send Murfey Message */
- post: operations["send_murfey_message_feedback_post"];
- };
- "/visits/{visit_name}/{session_id}/flush_spa_processing": {
+ send_murfey_message_feedback_post: {
+ requestBody: {
+ content: {
+ 'application/json': components['schemas']['RegistrationMessage']
+ }
+ }
+ responses: {
+ /** @description Successful Response */
+ 200: {
+ content: {
+ 'application/json': unknown
+ }
+ }
+ /** @description Validation Error */
+ 422: {
+ content: {
+ 'application/json': components['schemas']['HTTPValidationError']
+ }
+ }
+ }
+ }
/** Flush Spa Processing */
- post: operations["flush_spa_processing_visits__visit_name___session_id__flush_spa_processing_post"];
- };
- "/visits/{visit_name}/{session_id}/spa_preprocess": {
+ flush_spa_processing_visits__visit_name___session_id__flush_spa_processing_post: {
+ parameters: {
+ path: {
+ visit_name: string
+ session_id: number
+ }
+ }
+ requestBody: {
+ content: {
+ 'application/json': components['schemas']['Tag']
+ }
+ }
+ responses: {
+ /** @description Successful Response */
+ 200: {
+ content: {
+ 'application/json': unknown
+ }
+ }
+ /** @description Validation Error */
+ 422: {
+ content: {
+ 'application/json': components['schemas']['HTTPValidationError']
+ }
+ }
+ }
+ }
/** Request Spa Preprocessing */
- post: operations["request_spa_preprocessing_visits__visit_name___session_id__spa_preprocess_post"];
- };
- "/visits/{visit_name}/{client_id}/flush_tomography_processing": {
+ request_spa_preprocessing_visits__visit_name___session_id__spa_preprocess_post: {
+ parameters: {
+ path: {
+ visit_name: string
+ session_id: number
+ }
+ }
+ requestBody: {
+ content: {
+ 'application/json': components['schemas']['SPAProcessFile']
+ }
+ }
+ responses: {
+ /** @description Successful Response */
+ 200: {
+ content: {
+ 'application/json': unknown
+ }
+ }
+ /** @description Validation Error */
+ 422: {
+ content: {
+ 'application/json': components['schemas']['HTTPValidationError']
+ }
+ }
+ }
+ }
/** Flush Tomography Processing */
- post: operations["flush_tomography_processing_visits__visit_name___client_id__flush_tomography_processing_post"];
- };
- "/visits/{visit_name}/{client_id}/tomography_preprocess": {
+ flush_tomography_processing_visits__visit_name___client_id__flush_tomography_processing_post: {
+ parameters: {
+ path: {
+ visit_name: string
+ client_id: number
+ }
+ }
+ requestBody: {
+ content: {
+ 'application/json': components['schemas']['Source']
+ }
+ }
+ responses: {
+ /** @description Successful Response */
+ 200: {
+ content: {
+ 'application/json': unknown
+ }
+ }
+ /** @description Validation Error */
+ 422: {
+ content: {
+ 'application/json': components['schemas']['HTTPValidationError']
+ }
+ }
+ }
+ }
/** Request Tomography Preprocessing */
- post: operations["request_tomography_preprocessing_visits__visit_name___client_id__tomography_preprocess_post"];
- };
- "/version": {
+ request_tomography_preprocessing_visits__visit_name___client_id__tomography_preprocess_post: {
+ parameters: {
+ path: {
+ visit_name: string
+ client_id: number
+ }
+ }
+ requestBody: {
+ content: {
+ 'application/json': components['schemas']['TomoProcessFile']
+ }
+ }
+ responses: {
+ /** @description Successful Response */
+ 200: {
+ content: {
+ 'application/json': unknown
+ }
+ }
+ /** @description Validation Error */
+ 422: {
+ content: {
+ 'application/json': components['schemas']['HTTPValidationError']
+ }
+ }
+ }
+ }
/** Get Version */
- get: operations["get_version_version_get"];
- };
- "/visits/{visit_name}/{session_id}/suggested_path": {
+ get_version_version_get: {
+ parameters: {
+ query?: {
+ client_version?: string
+ }
+ }
+ responses: {
+ /** @description Successful Response */
+ 200: {
+ content: {
+ 'application/json': unknown
+ }
+ }
+ /** @description Validation Error */
+ 422: {
+ content: {
+ 'application/json': components['schemas']['HTTPValidationError']
+ }
+ }
+ }
+ }
/** Suggest Path */
- post: operations["suggest_path_visits__visit_name___session_id__suggested_path_post"];
- };
- "/sessions/{session_id}/data_collection_groups": {
+ suggest_path_visits__visit_name___session_id__suggested_path_post: {
+ parameters: {
+ path: {
+ visit_name: string
+ session_id: number
+ }
+ }
+ requestBody: {
+ content: {
+ 'application/json': components['schemas']['SuggestedPathParameters']
+ }
+ }
+ responses: {
+ /** @description Successful Response */
+ 200: {
+ content: {
+ 'application/json': unknown
+ }
+ }
+ /** @description Validation Error */
+ 422: {
+ content: {
+ 'application/json': components['schemas']['HTTPValidationError']
+ }
+ }
+ }
+ }
/** Get Dc Groups */
- get: operations["get_dc_groups_sessions__session_id__data_collection_groups_get"];
- };
- "/sessions/{session_id}/data_collection_groups/{dcgid}/data_collections": {
+ get_dc_groups_sessions__session_id__data_collection_groups_get: {
+ parameters: {
+ path: {
+ session_id: number
+ }
+ }
+ responses: {
+ /** @description Successful Response */
+ 200: {
+ content: {
+ 'application/json': {
+ [
+ key: string
+ ]: components['schemas']['DataCollectionGroup']
+ }
+ }
+ }
+ /** @description Validation Error */
+ 422: {
+ content: {
+ 'application/json': components['schemas']['HTTPValidationError']
+ }
+ }
+ }
+ }
/** Get Data Collections */
- get: operations["get_data_collections_sessions__session_id__data_collection_groups__dcgid__data_collections_get"];
- };
- "/visits/{visit_name}/{session_id}/register_data_collection_group": {
+ get_data_collections_sessions__session_id__data_collection_groups__dcgid__data_collections_get: {
+ parameters: {
+ path: {
+ dcgid: number
+ session_id: number
+ }
+ }
+ responses: {
+ /** @description Successful Response */
+ 200: {
+ content: {
+ 'application/json': components['schemas']['DataCollection'][]
+ }
+ }
+ /** @description Validation Error */
+ 422: {
+ content: {
+ 'application/json': components['schemas']['HTTPValidationError']
+ }
+ }
+ }
+ }
/** Register Dc Group */
- post: operations["register_dc_group_visits__visit_name___session_id__register_data_collection_group_post"];
- };
- "/visits/{visit_name}/{session_id}/start_data_collection": {
+ register_dc_group_visits__visit_name___session_id__register_data_collection_group_post: {
+ parameters: {
+ path: {
+ visit_name: string
+ session_id: number
+ }
+ }
+ requestBody: {
+ content: {
+ 'application/json': components['schemas']['DCGroupParameters']
+ }
+ }
+ responses: {
+ /** @description Successful Response */
+ 200: {
+ content: {
+ 'application/json': unknown
+ }
+ }
+ /** @description Validation Error */
+ 422: {
+ content: {
+ 'application/json': components['schemas']['HTTPValidationError']
+ }
+ }
+ }
+ }
/** Start Dc */
- post: operations["start_dc_visits__visit_name___session_id__start_data_collection_post"];
- };
- "/visits/{visit_name}/{session_id}/register_processing_job": {
+ start_dc_visits__visit_name___session_id__start_data_collection_post: {
+ parameters: {
+ path: {
+ visit_name: string
+ session_id: number
+ }
+ }
+ requestBody: {
+ content: {
+ 'application/json': components['schemas']['DCParameters']
+ }
+ }
+ responses: {
+ /** @description Successful Response */
+ 200: {
+ content: {
+ 'application/json': components['schemas']['DCParameters']
+ }
+ }
+ /** @description Validation Error */
+ 422: {
+ content: {
+ 'application/json': components['schemas']['HTTPValidationError']
+ }
+ }
+ }
+ }
/** Register Proc */
- post: operations["register_proc_visits__visit_name___session_id__register_processing_job_post"];
- };
- "/sessions/{session_id}/process_gain": {
+ register_proc_visits__visit_name___session_id__register_processing_job_post: {
+ parameters: {
+ path: {
+ visit_name: unknown
+ session_id: number
+ }
+ }
+ requestBody: {
+ content: {
+ 'application/json': components['schemas']['ProcessingJobParameters']
+ }
+ }
+ responses: {
+ /** @description Successful Response */
+ 200: {
+ content: {
+ 'application/json': unknown
+ }
+ }
+ /** @description Validation Error */
+ 422: {
+ content: {
+ 'application/json': components['schemas']['HTTPValidationError']
+ }
+ }
+ }
+ }
/** Process Gain */
- post: operations["process_gain_sessions__session_id__process_gain_post"];
- };
- "/new_client_id/": {
+ process_gain_sessions__session_id__process_gain_post: {
+ parameters: {
+ path: {
+ session_id: number
+ }
+ }
+ requestBody: {
+ content: {
+ 'application/json': components['schemas']['GainReference']
+ }
+ }
+ responses: {
+ /** @description Successful Response */
+ 200: {
+ content: {
+ 'application/json': unknown
+ }
+ }
+ /** @description Validation Error */
+ 422: {
+ content: {
+ 'application/json': components['schemas']['HTTPValidationError']
+ }
+ }
+ }
+ }
/** New Client Id */
- get: operations["new_client_id_new_client_id__get"];
- };
- "/clients": {
+ new_client_id_new_client_id__get: {
+ responses: {
+ /** @description Successful Response */
+ 200: {
+ content: {
+ 'application/json': unknown
+ }
+ }
+ }
+ }
/** Get Clients */
- get: operations["get_clients_clients_get"];
- };
- "/sessions": {
+ get_clients_clients_get: {
+ responses: {
+ /** @description Successful Response */
+ 200: {
+ content: {
+ 'application/json': unknown
+ }
+ }
+ }
+ }
/** Get Sessions */
- get: operations["get_sessions_sessions_get"];
- };
- "/instruments/{instrument_name}/sessions": {
+ get_sessions_sessions_get: {
+ responses: {
+ /** @description Successful Response */
+ 200: {
+ content: {
+ 'application/json': unknown
+ }
+ }
+ }
+ }
/** Get Sessions By Instrument Name */
- get: operations["get_sessions_by_instrument_name_instruments__instrument_name__sessions_get"];
- };
- "/instruments/{instrument_name}/clients/{client_id}/session": {
+ get_sessions_by_instrument_name_instruments__instrument_name__sessions_get: {
+ parameters: {
+ path: {
+ instrument_name: string
+ }
+ }
+ responses: {
+ /** @description Successful Response */
+ 200: {
+ content: {
+ 'application/json': components['schemas']['Session'][]
+ }
+ }
+ /** @description Validation Error */
+ 422: {
+ content: {
+ 'application/json': components['schemas']['HTTPValidationError']
+ }
+ }
+ }
+ }
/** Link Client To Session */
- post: operations["link_client_to_session_instruments__instrument_name__clients__client_id__session_post"];
- };
- "/clients/{client_id}/session": {
+ link_client_to_session_instruments__instrument_name__clients__client_id__session_post: {
+ parameters: {
+ path: {
+ instrument_name: string
+ client_id: number
+ }
+ }
+ requestBody: {
+ content: {
+ 'application/json': components['schemas']['SessionInfo']
+ }
+ }
+ responses: {
+ /** @description Successful Response */
+ 200: {
+ content: {
+ 'application/json': unknown
+ }
+ }
+ /** @description Validation Error */
+ 422: {
+ content: {
+ 'application/json': components['schemas']['HTTPValidationError']
+ }
+ }
+ }
+ }
/** Remove Session */
- delete: operations["remove_session_clients__client_id__session_delete"];
- };
- "/sessions/{session_id}/rsyncers": {
+ remove_session_clients__client_id__session_delete: {
+ parameters: {
+ path: {
+ client_id: number
+ }
+ }
+ responses: {
+ /** @description Successful Response */
+ 200: {
+ content: {
+ 'application/json': unknown
+ }
+ }
+ /** @description Validation Error */
+ 422: {
+ content: {
+ 'application/json': components['schemas']['HTTPValidationError']
+ }
+ }
+ }
+ }
/** Get Rsyncers For Session */
- get: operations["get_rsyncers_for_session_sessions__session_id__rsyncers_get"];
- };
- "/sessions/{session_id}": {
+ get_rsyncers_for_session_sessions__session_id__rsyncers_get: {
+ parameters: {
+ path: {
+ session_id: number
+ }
+ }
+ responses: {
+ /** @description Successful Response */
+ 200: {
+ content: {
+ 'application/json': components['schemas']['RsyncInstance'][]
+ }
+ }
+ /** @description Validation Error */
+ 422: {
+ content: {
+ 'application/json': components['schemas']['HTTPValidationError']
+ }
+ }
+ }
+ }
/** Remove Session By Id */
- delete: operations["remove_session_by_id_sessions__session_id__delete"];
- };
- "/visits/{visit_name}/{session_id}/eer_fractionation_file": {
+ remove_session_by_id_sessions__session_id__delete: {
+ parameters: {
+ path: {
+ session_id: number
+ }
+ }
+ responses: {
+ /** @description Successful Response */
+ 200: {
+ content: {
+ 'application/json': unknown
+ }
+ }
+ /** @description Validation Error */
+ 422: {
+ content: {
+ 'application/json': components['schemas']['HTTPValidationError']
+ }
+ }
+ }
+ }
/** Write Eer Fractionation File */
- post: operations["write_eer_fractionation_file_visits__visit_name___session_id__eer_fractionation_file_post"];
- };
- "/visits/{visit_name}/monitoring/{on}": {
+ write_eer_fractionation_file_visits__visit_name___session_id__eer_fractionation_file_post: {
+ parameters: {
+ path: {
+ visit_name: string
+ session_id: number
+ }
+ }
+ requestBody: {
+ content: {
+ 'application/json': components['schemas']['FractionationParameters']
+ }
+ }
+ responses: {
+ /** @description Successful Response */
+ 200: {
+ content: {
+ 'application/json': Record
+ }
+ }
+ /** @description Validation Error */
+ 422: {
+ content: {
+ 'application/json': components['schemas']['HTTPValidationError']
+ }
+ }
+ }
+ }
/** Change Monitoring Status */
- post: operations["change_monitoring_status_visits__visit_name__monitoring__on__post"];
- };
- "/sessions/{session_id}/upstream_visits": {
+ change_monitoring_status_visits__visit_name__monitoring__on__post: {
+ parameters: {
+ path: {
+ visit_name: string
+ on: number
+ }
+ }
+ responses: {
+ /** @description Successful Response */
+ 200: {
+ content: {
+ 'application/json': unknown
+ }
+ }
+ /** @description Validation Error */
+ 422: {
+ content: {
+ 'application/json': components['schemas']['HTTPValidationError']
+ }
+ }
+ }
+ }
/** Find Upstream Visits */
- get: operations["find_upstream_visits_sessions__session_id__upstream_visits_get"];
- };
- "/visits/{visit_name}/{session_id}/upstream_tiff_paths": {
+ find_upstream_visits_sessions__session_id__upstream_visits_get: {
+ parameters: {
+ path: {
+ session_id: number
+ }
+ }
+ responses: {
+ /** @description Successful Response */
+ 200: {
+ content: {
+ 'application/json': unknown
+ }
+ }
+ /** @description Validation Error */
+ 422: {
+ content: {
+ 'application/json': components['schemas']['HTTPValidationError']
+ }
+ }
+ }
+ }
/** Gather Upstream Tiffs */
- get: operations["gather_upstream_tiffs_visits__visit_name___session_id__upstream_tiff_paths_get"];
- };
- "/visits/{visit_name}/{session_id}/upstream_tiff/{tiff_path}": {
+ gather_upstream_tiffs_visits__visit_name___session_id__upstream_tiff_paths_get: {
+ parameters: {
+ path: {
+ visit_name: string
+ session_id: number
+ }
+ }
+ responses: {
+ /** @description Successful Response */
+ 200: {
+ content: {
+ 'application/json': unknown
+ }
+ }
+ /** @description Validation Error */
+ 422: {
+ content: {
+ 'application/json': components['schemas']['HTTPValidationError']
+ }
+ }
+ }
+ }
/** Get Tiff */
- get: operations["get_tiff_visits__visit_name___session_id__upstream_tiff__tiff_path__get"];
- };
- "/failed_client_post": {
+ get_tiff_visits__visit_name___session_id__upstream_tiff__tiff_path__get: {
+ parameters: {
+ path: {
+ visit_name: string
+ session_id: number
+ tiff_path: string
+ }
+ }
+ responses: {
+ /** @description Successful Response */
+ 200: {
+ content: {
+ 'application/json': unknown
+ }
+ }
+ /** @description Validation Error */
+ 422: {
+ content: {
+ 'application/json': components['schemas']['HTTPValidationError']
+ }
+ }
+ }
+ }
/** Failed Client Post */
- post: operations["failed_client_post_failed_client_post_post"];
- };
- "/instruments/{instrument_name}/visits/{visit}/session/{name}": {
+ failed_client_post_failed_client_post_post: {
+ requestBody: {
+ content: {
+ 'application/json': components['schemas']['PostInfo']
+ }
+ }
+ responses: {
+ /** @description Successful Response */
+ 200: {
+ content: {
+ 'application/json': unknown
+ }
+ }
+ /** @description Validation Error */
+ 422: {
+ content: {
+ 'application/json': components['schemas']['HTTPValidationError']
+ }
+ }
+ }
+ }
/** Create Session */
- post: operations["create_session_instruments__instrument_name__visits__visit__session__name__post"];
- };
- "/sessions/{session_id}/current_gain_ref": {
+ create_session_instruments__instrument_name__visits__visit__session__name__post: {
+ parameters: {
+ path: {
+ instrument_name: string
+ visit: string
+ name: string
+ }
+ }
+ responses: {
+ /** @description Successful Response */
+ 200: {
+ content: {
+ 'application/json': number
+ }
+ }
+ /** @description Validation Error */
+ 422: {
+ content: {
+ 'application/json': components['schemas']['HTTPValidationError']
+ }
+ }
+ }
+ }
/** Update Current Gain Ref */
- put: operations["update_current_gain_ref_sessions__session_id__current_gain_ref_put"];
- };
- "/version/": {
+ update_current_gain_ref_sessions__session_id__current_gain_ref_put: {
+ parameters: {
+ path: {
+ session_id: number
+ }
+ }
+ requestBody: {
+ content: {
+ 'application/json': components['schemas']['CurrentGainRef']
+ }
+ }
+ responses: {
+ /** @description Successful Response */
+ 200: {
+ content: {
+ 'application/json': unknown
+ }
+ }
+ /** @description Validation Error */
+ 422: {
+ content: {
+ 'application/json': components['schemas']['HTTPValidationError']
+ }
+ }
+ }
+ }
/** Get Version */
- get: operations["get_version_version__get"];
- };
- "/bootstrap/": {
+ get_version_version__get: {
+ parameters: {
+ query?: {
+ client_version?: string
+ }
+ }
+ responses: {
+ /** @description Successful Response */
+ 200: {
+ content: {
+ 'application/json': unknown
+ }
+ }
+ /** @description Validation Error */
+ 422: {
+ content: {
+ 'application/json': components['schemas']['HTTPValidationError']
+ }
+ }
+ }
+ }
/**
* Get Bootstrap Instructions
* @description Return a website containing instructions for installing the Murfey client on a
* machine with no internet access.
*/
- get: operations["get_bootstrap_instructions_bootstrap__get"];
- };
- "/bootstrap/pip.whl": {
+ get_bootstrap_instructions_bootstrap__get: {
+ responses: {
+ /** @description Successful Response */
+ 200: {
+ content: {
+ 'text/html': string
+ }
+ }
+ }
+ }
/**
* Get Pip Wheel
* @description Return a static version of pip. This does not need to be the newest or best,
@@ -291,9 +3681,14 @@ export interface paths {
* This is only used during bootstrapping by the client to identify and then
* download the actually newest appropriate version of pip.
*/
- get: operations["get_pip_wheel_bootstrap_pip_whl_get"];
- };
- "/bootstrap/murfey.whl": {
+ get_pip_wheel_bootstrap_pip_whl_get: {
+ responses: {
+ /** @description Successful Response */
+ 200: {
+ content: never
+ }
+ }
+ }
/**
* Get Murfey Wheel
* @description Return a wheel file containing the latest release version of Murfey. We should
@@ -301,25 +3696,51 @@ export interface paths {
* murfey.bootstrap is compatible with all relevant versions of Python.
* This also ignores yanked releases, which again should be fine.
*/
- get: operations["get_murfey_wheel_bootstrap_murfey_whl_get"];
- };
- "/cygwin/setup-x86_64.exe": {
+ get_murfey_wheel_bootstrap_murfey_whl_get: {
+ responses: {
+ /** @description Successful Response */
+ 200: {
+ content: never
+ }
+ }
+ }
/**
* Get Cygwin Setup
* @description Obtain and pass through a Cygwin installer from an official source.
* This is used during client bootstrapping and can download and install the
* Cygwin distribution that then remains on the client machines.
*/
- get: operations["get_cygwin_setup_cygwin_setup_x86_64_exe_get"];
- };
- "/cygwin/{request_path}": {
+ get_cygwin_setup_cygwin_setup_x86_64_exe_get: {
+ responses: {
+ /** @description Successful Response */
+ 200: {
+ content: never
+ }
+ }
+ }
/**
* Parse Cygwin Request
* @description Forward a Cygwin setup request to an official mirror.
*/
- get: operations["parse_cygwin_request_cygwin__request_path__get"];
- };
- "/msys2/config/pacman.d.zip": {
+ parse_cygwin_request_cygwin__request_path__get: {
+ parameters: {
+ path: {
+ request_path: string
+ }
+ }
+ responses: {
+ /** @description Successful Response */
+ 200: {
+ content: never
+ }
+ /** @description Validation Error */
+ 422: {
+ content: {
+ 'application/json': components['schemas']['HTTPValidationError']
+ }
+ }
+ }
+ }
/**
* Get Pacman Mirrors
* @description Dynamically generates a zip file containing mirrorlist files that have been set
@@ -329,49 +3750,126 @@ export interface paths {
* files present in the %MSYS64%\etc\pacman.d folder. The default path to this
* folder is C:\msys64\etc\pacman.d.
*/
- get: operations["get_pacman_mirrors_msys2_config_pacman_d_zip_get"];
- };
- "/msys2/repo/distrib/{setup_file}": {
+ get_pacman_mirrors_msys2_config_pacman_d_zip_get: {
+ responses: {
+ /** @description Successful Response */
+ 200: {
+ content: never
+ }
+ }
+ }
/**
* Get Msys2 Setup
* @description Obtain and pass through an MSYS2 installer from an official source.
* This is used during client bootstrapping, and can download and install the
* MSYS2 distribution that then remains on the client machines.
*/
- get: operations["get_msys2_setup_msys2_repo_distrib__setup_file__get"];
- };
- "/msys2/repo/": {
+ get_msys2_setup_msys2_repo_distrib__setup_file__get: {
+ parameters: {
+ path: {
+ setup_file: string
+ }
+ }
+ responses: {
+ /** @description Successful Response */
+ 200: {
+ content: never
+ }
+ /** @description Validation Error */
+ 422: {
+ content: {
+ 'application/json': components['schemas']['HTTPValidationError']
+ }
+ }
+ }
+ }
/**
* Get Msys2 Main Index
* @description Returns a simple index displaying valid MSYS2 systems and the latest setup file
* from the main MSYS2 repository.
*/
- get: operations["get_msys2_main_index_msys2_repo__get"];
- };
- "/msys2/repo/{system}/": {
+ get_msys2_main_index_msys2_repo__get: {
+ responses: {
+ /** @description Successful Response */
+ 200: {
+ content: never
+ }
+ }
+ }
/**
* Get Msys2 Environment Index
* @description Returns a list of all MSYS2 environments for a given system from the main MSYS2
* repository.
*/
- get: operations["get_msys2_environment_index_msys2_repo__system___get"];
- };
- "/msys2/repo/{system}/{environment}/": {
+ get_msys2_environment_index_msys2_repo__system___get: {
+ parameters: {
+ path: {
+ system: string
+ }
+ }
+ responses: {
+ /** @description Successful Response */
+ 200: {
+ content: never
+ }
+ /** @description Validation Error */
+ 422: {
+ content: {
+ 'application/json': components['schemas']['HTTPValidationError']
+ }
+ }
+ }
+ }
/**
* Get Msys2 Package Index
* @description Obtain a list of all available MSYS2 packages for a given environment from the main
* MSYS2 repo.
*/
- get: operations["get_msys2_package_index_msys2_repo__system___environment___get"];
- };
- "/msys2/repo/{system}/{environment}/{package}": {
+ get_msys2_package_index_msys2_repo__system___environment___get: {
+ parameters: {
+ path: {
+ system: string
+ environment: string
+ }
+ }
+ responses: {
+ /** @description Successful Response */
+ 200: {
+ content: never
+ }
+ /** @description Validation Error */
+ 422: {
+ content: {
+ 'application/json': components['schemas']['HTTPValidationError']
+ }
+ }
+ }
+ }
/**
* Get Msys2 Package File
* @description Obtain and pass through a specific download for an MSYS2 package.
*/
- get: operations["get_msys2_package_file_msys2_repo__system___environment___package__get"];
- };
- "/rust/cargo/config.toml": {
+ get_msys2_package_file_msys2_repo__system___environment___package__get: {
+ parameters: {
+ path: {
+ system: string
+ environment: string
+ package: string
+ }
+ }
+ responses: {
+ /** @description Successful Response */
+ 200: {
+ content: never
+ }
+ /** @description Validation Error */
+ 422: {
+ content: {
+ 'application/json': components['schemas']['HTTPValidationError']
+ }
+ }
+ }
+ }
/**
* Get Cargo Config
* @description Returns a properly configured Cargo config that sets it to look ONLY at the
@@ -380,16 +3878,26 @@ export interface paths {
* The default path for this config on Linux devices is ~/.cargo/config.toml,
* and its default path on Windows is %USERPROFILE%\.cargo\config.toml.
*/
- get: operations["get_cargo_config_rust_cargo_config_toml_get"];
- };
- "/rust/index/": {
+ get_cargo_config_rust_cargo_config_toml_get: {
+ responses: {
+ /** @description Successful Response */
+ 200: {
+ content: never
+ }
+ }
+ }
/**
* Get Index Page
* @description Returns a mirror of the https://index.crates.io landing page.
*/
- get: operations["get_index_page_rust_index__get"];
- };
- "/rust/index/config.json": {
+ get_index_page_rust_index__get: {
+ responses: {
+ /** @description Successful Response */
+ 200: {
+ content: never
+ }
+ }
+ }
/**
* Get Index Config
* @description Download a config.json file used by Cargo to navigate sparse index registries
@@ -399,9 +3907,14 @@ export interface paths {
* the 'api' key points to an API version of that same registry. Both will be
* used by Cargo when searching for and downloading packages.
*/
- get: operations["get_index_config_rust_index_config_json_get"];
- };
- "/rust/index/{c1}/{c2}/{package}": {
+ get_index_config_rust_index_config_json_get: {
+ responses: {
+ /** @description Successful Response */
+ 200: {
+ content: never
+ }
+ }
+ }
/**
* Get Index Package Metadata
* @description Download the metadata for a given package from the crates.io sparse index.
@@ -412,58 +3925,183 @@ export interface paths {
* characters of the package name (a-z, A-Z, 0-9, -, _). For 3-letter packages,
* c1 = 3, and c2 is the first character of the package.
*/
- get: operations["get_index_package_metadata_rust_index__c1___c2___package__get"];
- };
- "/rust/index/{n}/{package}": {
+ get_index_package_metadata_rust_index__c1___c2___package__get: {
+ parameters: {
+ path: {
+ c1: string
+ c2: string
+ package: string
+ }
+ }
+ responses: {
+ /** @description Successful Response */
+ 200: {
+ content: never
+ }
+ /** @description Validation Error */
+ 422: {
+ content: {
+ 'application/json': components['schemas']['HTTPValidationError']
+ }
+ }
+ }
+ }
/**
* Get Index Package Metadata For Short Package Names
* @description The Rust sparse index' naming scheme for packages with 1-2 characters is
* different from the standard path convention. They are stored under
* /1/{package} or /2/{package}.
*/
- get: operations["get_index_package_metadata_for_short_package_names_rust_index__n___package__get"];
- };
- "/rust/crates/{package}/{version}/download": {
+ get_index_package_metadata_for_short_package_names_rust_index__n___package__get: {
+ parameters: {
+ path: {
+ n: string
+ package: string
+ }
+ }
+ responses: {
+ /** @description Successful Response */
+ 200: {
+ content: never
+ }
+ /** @description Validation Error */
+ 422: {
+ content: {
+ 'application/json': components['schemas']['HTTPValidationError']
+ }
+ }
+ }
+ }
/**
* Get Rust Package Download
* @description Obtain and pass through a crate download request for a Rust package via the
* sparse index registry.
*/
- get: operations["get_rust_package_download_rust_crates__package___version__download_get"];
- };
- "/rust/api/v1/crates": {
+ get_rust_package_download_rust_crates__package___version__download_get: {
+ parameters: {
+ path: {
+ package: string
+ version: string
+ }
+ }
+ responses: {
+ /** @description Successful Response */
+ 200: {
+ content: never
+ }
+ /** @description Validation Error */
+ 422: {
+ content: {
+ 'application/json': components['schemas']['HTTPValidationError']
+ }
+ }
+ }
+ }
/**
* Get Rust Api Package Index
* @description Displays the Rust API package index, which returns names of available packages
* in a JSON object based on the search query given.
*/
- get: operations["get_rust_api_package_index_rust_api_v1_crates_get"];
- };
- "/rust/api/v1/crates/{package}": {
+ get_rust_api_package_index_rust_api_v1_crates_get: {
+ parameters: {
+ query?: {
+ q?: string
+ per_page?: number
+ seek?: string
+ }
+ }
+ responses: {
+ /** @description Successful Response */
+ 200: {
+ content: {
+ 'application/json': unknown
+ }
+ }
+ /** @description Validation Error */
+ 422: {
+ content: {
+ 'application/json': components['schemas']['HTTPValidationError']
+ }
+ }
+ }
+ }
/**
* Get Rust Api Package Info
* @description Displays general information for a given Rust package, as a JSON object.
* Contains both version information and download information, in addition
* to other types of metadata.
*/
- get: operations["get_rust_api_package_info_rust_api_v1_crates__package__get"];
- };
- "/rust/api/v1/crates/{package}/versions": {
+ get_rust_api_package_info_rust_api_v1_crates__package__get: {
+ parameters: {
+ path: {
+ package: string
+ }
+ }
+ responses: {
+ /** @description Successful Response */
+ 200: {
+ content: {
+ 'application/json': unknown
+ }
+ }
+ /** @description Validation Error */
+ 422: {
+ content: {
+ 'application/json': components['schemas']['HTTPValidationError']
+ }
+ }
+ }
+ }
/**
* Get Rust Api Package Versions
* @description Displays all available versions for a particular Rust package, along with download
* links for said versions, as a JSON object.
*/
- get: operations["get_rust_api_package_versions_rust_api_v1_crates__package__versions_get"];
- };
- "/rust/api/v1/crates/{package}/{version}/download": {
+ get_rust_api_package_versions_rust_api_v1_crates__package__versions_get: {
+ parameters: {
+ path: {
+ package: string
+ }
+ }
+ responses: {
+ /** @description Successful Response */
+ 200: {
+ content: {
+ 'application/json': unknown
+ }
+ }
+ /** @description Validation Error */
+ 422: {
+ content: {
+ 'application/json': components['schemas']['HTTPValidationError']
+ }
+ }
+ }
+ }
/**
* Get Rust Api Package Download
* @description Obtain and pass through a crate download request for a specific Rust package.
*/
- get: operations["get_rust_api_package_download_rust_api_v1_crates__package___version__download_get"];
- };
- "/rust/crates/{package}/{crate}": {
+ get_rust_api_package_download_rust_api_v1_crates__package___version__download_get: {
+ parameters: {
+ path: {
+ package: string
+ version: string
+ }
+ }
+ responses: {
+ /** @description Successful Response */
+ 200: {
+ content: never
+ }
+ /** @description Validation Error */
+ 422: {
+ content: {
+ 'application/json': components['schemas']['HTTPValidationError']
+ }
+ }
+ }
+ }
/**
* Get Rust Package Crate
* @description Obtain and pass through a download for a specific Rust crate. The Rust API
@@ -477,4679 +4115,1041 @@ export interface paths {
* A request for any other part of the URL path will be denied.
* (e.g. https://static.crates.io/crates/anyhow will fail)
*/
- get: operations["get_rust_package_crate_rust_crates__package___crate__get"];
- };
- "/pypi/": {
+ get_rust_package_crate_rust_crates__package___crate__get: {
+ parameters: {
+ path: {
+ package: string
+ crate: string
+ }
+ }
+ responses: {
+ /** @description Successful Response */
+ 200: {
+ content: never
+ }
+ /** @description Validation Error */
+ 422: {
+ content: {
+ 'application/json': components['schemas']['HTTPValidationError']
+ }
+ }
+ }
+ }
/**
* Get Pypi Index
* @description Obtain list of all PyPI packages via the simple API (PEP 503).
*/
- get: operations["get_pypi_index_pypi__get"];
- };
- "/pypi/{package}/": {
+ get_pypi_index_pypi__get: {
+ responses: {
+ /** @description Successful Response */
+ 200: {
+ content: never
+ }
+ }
+ }
/**
* Get Pypi Package Downloads List
* @description Obtain list of all package downloads from PyPI via the simple API (PEP 503), and
* rewrite all download URLs to point to this server, under the current directory.
*/
- get: operations["get_pypi_package_downloads_list_pypi__package___get"];
- };
- "/pypi/{package}/{filename}": {
+ get_pypi_package_downloads_list_pypi__package___get: {
+ parameters: {
+ path: {
+ package: string
+ }
+ }
+ responses: {
+ /** @description Successful Response */
+ 200: {
+ content: never
+ }
+ /** @description Validation Error */
+ 422: {
+ content: {
+ 'application/json': components['schemas']['HTTPValidationError']
+ }
+ }
+ }
+ }
/**
* Get Pypi File
* @description Obtain and pass through a specific download for a PyPI package.
*/
- get: operations["get_pypi_file_pypi__package___filename__get"];
- };
- "/plugins/instruments/{instrument_name}/{package}": {
+ get_pypi_file_pypi__package___filename__get: {
+ parameters: {
+ path: {
+ package: string
+ filename: string
+ }
+ }
+ responses: {
+ /** @description Successful Response */
+ 200: {
+ content: never
+ }
+ /** @description Validation Error */
+ 422: {
+ content: {
+ 'application/json': components['schemas']['HTTPValidationError']
+ }
+ }
+ }
+ }
/** Get Plugin Wheel */
- get: operations["get_plugin_wheel_plugins_instruments__instrument_name___package__get"];
- };
- "/sessions/{session_id}/clem/lif_files": {
+ get_plugin_wheel_plugins_instruments__instrument_name___package__get: {
+ parameters: {
+ path: {
+ instrument_name: string
+ package: string
+ }
+ }
+ responses: {
+ /** @description Successful Response */
+ 200: {
+ content: never
+ }
+ /** @description Validation Error */
+ 422: {
+ content: {
+ 'application/json': components['schemas']['HTTPValidationError']
+ }
+ }
+ }
+ }
/** Register Lif File */
- post: operations["register_lif_file_sessions__session_id__clem_lif_files_post"];
- };
- "/sessions/{session_id}/clem/tiff_files": {
+ register_lif_file_sessions__session_id__clem_lif_files_post: {
+ parameters: {
+ query: {
+ lif_file: string
+ master_metadata?: string
+ }
+ path: {
+ session_id: number
+ }
+ }
+ requestBody?: {
+ content: {
+ 'application/json': components['schemas']['Body_register_lif_file_sessions__session_id__clem_lif_files_post']
+ }
+ }
+ responses: {
+ /** @description Successful Response */
+ 200: {
+ content: {
+ 'application/json': unknown
+ }
+ }
+ /** @description Validation Error */
+ 422: {
+ content: {
+ 'application/json': components['schemas']['HTTPValidationError']
+ }
+ }
+ }
+ }
/** Register Tiff File */
- post: operations["register_tiff_file_sessions__session_id__clem_tiff_files_post"];
- };
- "/sessions/{session_id}/clem/metadata_files": {
+ register_tiff_file_sessions__session_id__clem_tiff_files_post: {
+ parameters: {
+ query: {
+ tiff_file: string
+ associated_metadata?: string
+ associated_series?: string
+ associated_stack?: string
+ }
+ path: {
+ session_id: number
+ }
+ }
+ responses: {
+ /** @description Successful Response */
+ 200: {
+ content: {
+ 'application/json': unknown
+ }
+ }
+ /** @description Validation Error */
+ 422: {
+ content: {
+ 'application/json': components['schemas']['HTTPValidationError']
+ }
+ }
+ }
+ }
/** Register Clem Metadata */
- post: operations["register_clem_metadata_sessions__session_id__clem_metadata_files_post"];
- };
- "/sessions/{session_id}/clem/image_series": {
+ register_clem_metadata_sessions__session_id__clem_metadata_files_post: {
+ parameters: {
+ query: {
+ metadata_file: string
+ parent_lif?: string
+ associated_series?: string
+ }
+ path: {
+ session_id: number
+ }
+ }
+ requestBody?: {
+ content: {
+ 'application/json': components['schemas']['Body_register_clem_metadata_sessions__session_id__clem_metadata_files_post']
+ }
+ }
+ responses: {
+ /** @description Successful Response */
+ 200: {
+ content: {
+ 'application/json': unknown
+ }
+ }
+ /** @description Validation Error */
+ 422: {
+ content: {
+ 'application/json': components['schemas']['HTTPValidationError']
+ }
+ }
+ }
+ }
/** Register Image Series */
- post: operations["register_image_series_sessions__session_id__clem_image_series_post"];
- };
- "/sessions/{session_id}/clem/image_stacks": {
+ register_image_series_sessions__session_id__clem_image_series_post: {
+ parameters: {
+ query: {
+ series_name: string
+ parent_lif?: string
+ associated_metadata?: string
+ }
+ path: {
+ session_id: number
+ }
+ }
+ requestBody?: {
+ content: {
+ 'application/json': components['schemas']['Body_register_image_series_sessions__session_id__clem_image_series_post']
+ }
+ }
+ responses: {
+ /** @description Successful Response */
+ 200: {
+ content: {
+ 'application/json': unknown
+ }
+ }
+ /** @description Validation Error */
+ 422: {
+ content: {
+ 'application/json': components['schemas']['HTTPValidationError']
+ }
+ }
+ }
+ }
/** Register Image Stack */
- post: operations["register_image_stack_sessions__session_id__clem_image_stacks_post"];
- };
- "/sessions/{session_id}/clem/preprocessing/process_raw_lifs": {
+ register_image_stack_sessions__session_id__clem_image_stacks_post: {
+ parameters: {
+ query: {
+ image_stack: string
+ channel?: string
+ parent_lif?: string
+ associated_metadata?: string
+ parent_series?: string
+ }
+ path: {
+ session_id: number
+ }
+ }
+ requestBody?: {
+ content: {
+ 'application/json': string[]
+ }
+ }
+ responses: {
+ /** @description Successful Response */
+ 200: {
+ content: {
+ 'application/json': unknown
+ }
+ }
+ /** @description Validation Error */
+ 422: {
+ content: {
+ 'application/json': components['schemas']['HTTPValidationError']
+ }
+ }
+ }
+ }
/** Process Raw Lifs */
- post: operations["process_raw_lifs_sessions__session_id__clem_preprocessing_process_raw_lifs_post"];
- };
- "/sessions/{session_id}/clem/preprocessing/process_raw_tiffs": {
+ process_raw_lifs_sessions__session_id__clem_preprocessing_process_raw_lifs_post: {
+ parameters: {
+ query: {
+ lif_file: string
+ }
+ path: {
+ session_id: number
+ }
+ }
+ responses: {
+ /** @description Successful Response */
+ 200: {
+ content: {
+ 'application/json': unknown
+ }
+ }
+ /** @description Validation Error */
+ 422: {
+ content: {
+ 'application/json': components['schemas']['HTTPValidationError']
+ }
+ }
+ }
+ }
/** Process Raw Tiffs */
- post: operations["process_raw_tiffs_sessions__session_id__clem_preprocessing_process_raw_tiffs_post"];
- };
- "/sessions/{session_id}/clem/processing/align_and_merge_stacks": {
+ process_raw_tiffs_sessions__session_id__clem_preprocessing_process_raw_tiffs_post: {
+ parameters: {
+ path: {
+ session_id: number
+ }
+ }
+ requestBody: {
+ content: {
+ 'application/json': components['schemas']['TIFFSeriesInfo']
+ }
+ }
+ responses: {
+ /** @description Successful Response */
+ 200: {
+ content: {
+ 'application/json': unknown
+ }
+ }
+ /** @description Validation Error */
+ 422: {
+ content: {
+ 'application/json': components['schemas']['HTTPValidationError']
+ }
+ }
+ }
+ }
/** Align And Merge Stacks */
- post: operations["align_and_merge_stacks_sessions__session_id__clem_processing_align_and_merge_stacks_post"];
- };
- "/sessions/{session_id}/cryolo_model": {
+ align_and_merge_stacks_sessions__session_id__clem_processing_align_and_merge_stacks_post: {
+ parameters: {
+ path: {
+ session_id: number
+ }
+ }
+ requestBody: {
+ content: {
+ 'application/json': components['schemas']['AlignAndMergeParams']
+ }
+ }
+ responses: {
+ /** @description Successful Response */
+ 200: {
+ content: {
+ 'application/json': unknown
+ }
+ }
+ /** @description Validation Error */
+ 422: {
+ content: {
+ 'application/json': components['schemas']['HTTPValidationError']
+ }
+ }
+ }
+ }
/** Get Cryolo Model Path */
- get: operations["get_cryolo_model_path_sessions__session_id__cryolo_model_get"];
- };
- "auth/token": {
+ get_cryolo_model_path_sessions__session_id__cryolo_model_get: {
+ parameters: {
+ path: {
+ session_id: number
+ }
+ }
+ responses: {
+ /** @description Successful Response */
+ 200: {
+ content: {
+ 'application/json': unknown
+ }
+ }
+ /** @description Validation Error */
+ 422: {
+ content: {
+ 'application/json': components['schemas']['HTTPValidationError']
+ }
+ }
+ }
+ }
/** Generate Token */
- post: operations["generate_token_token_post"];
- };
- "auth/sessions/{session_id}/token": {
+ generate_token_token_post: {
+ requestBody: {
+ content: {
+ 'application/x-www-form-urlencoded': components['schemas']['Body_generate_token_token_post']
+ }
+ }
+ responses: {
+ /** @description Successful Response */
+ 200: {
+ content: {
+ 'application/json': components['schemas']['Token']
+ }
+ }
+ /** @description Validation Error */
+ 422: {
+ content: {
+ 'application/json': components['schemas']['HTTPValidationError']
+ }
+ }
+ }
+ }
/** Mint Session Token */
- get: operations["mint_session_token_sessions__session_id__token_get"];
- };
- "auth/validate_token": {
+ mint_session_token_sessions__session_id__token_get: {
+ parameters: {
+ path: {
+ session_id: number
+ }
+ }
+ responses: {
+ /** @description Successful Response */
+ 200: {
+ content: {
+ 'application/json': unknown
+ }
+ }
+ /** @description Validation Error */
+ 422: {
+ content: {
+ 'application/json': components['schemas']['HTTPValidationError']
+ }
+ }
+ }
+ }
/** Simple Token Validation */
- get: operations["simple_token_validation_validate_token_get"];
- };
- "/display/instruments/{instrument_name}/image/": {
+ simple_token_validation_validate_token_get: {
+ responses: {
+ /** @description Successful Response */
+ 200: {
+ content: {
+ 'application/json': unknown
+ }
+ }
+ }
+ }
/** Get Mic Image */
- get: operations["get_mic_image_display_instruments__instrument_name__image__get"];
- };
- "/display/sessions/{session_id}/data_collection_groups/{dcgid}/grid_squares/{grid_square_name}/image": {
+ get_mic_image_display_instruments__instrument_name__image__get: {
+ parameters: {
+ path: {
+ instrument_name: string
+ }
+ }
+ responses: {
+ /** @description Successful Response */
+ 200: {
+ content: {
+ 'application/json': unknown
+ }
+ }
+ /** @description Validation Error */
+ 422: {
+ content: {
+ 'application/json': components['schemas']['HTTPValidationError']
+ }
+ }
+ }
+ }
/** Get Grid Square Img */
- get: operations["get_grid_square_img_display_sessions__session_id__data_collection_groups__dcgid__grid_squares__grid_square_name__image_get"];
- };
- "/display/sessions/{session_id}/data_collection_groups/{dcgid}/grid_squares/{grid_square_name}/foil_holes/{foil_hole_name}/image": {
+ get_grid_square_img_display_sessions__session_id__data_collection_groups__dcgid__grid_squares__grid_square_name__image_get: {
+ parameters: {
+ path: {
+ session_id: number
+ dcgid: number
+ grid_square_name: number
+ }
+ }
+ responses: {
+ /** @description Successful Response */
+ 200: {
+ content: {
+ 'application/json': unknown
+ }
+ }
+ /** @description Validation Error */
+ 422: {
+ content: {
+ 'application/json': components['schemas']['HTTPValidationError']
+ }
+ }
+ }
+ }
/** Get Foil Hole Img */
- get: operations["get_foil_hole_img_display_sessions__session_id__data_collection_groups__dcgid__grid_squares__grid_square_name__foil_holes__foil_hole_name__image_get"];
- };
- "/instruments/{instrument_name}/sessions/{session_id}/activate_instrument_server": {
+ get_foil_hole_img_display_sessions__session_id__data_collection_groups__dcgid__grid_squares__grid_square_name__foil_holes__foil_hole_name__image_get: {
+ parameters: {
+ path: {
+ session_id: number
+ dcgid: number
+ grid_square_name: number
+ foil_hole_name: number
+ }
+ }
+ responses: {
+ /** @description Successful Response */
+ 200: {
+ content: {
+ 'application/json': unknown
+ }
+ }
+ /** @description Validation Error */
+ 422: {
+ content: {
+ 'application/json': components['schemas']['HTTPValidationError']
+ }
+ }
+ }
+ }
/** Activate Instrument Server For Session */
- post: operations["activate_instrument_server_for_session_instruments__instrument_name__sessions__session_id__activate_instrument_server_post"];
- };
- "/instruments/{instrument_name}/sessions/{session_id}/active": {
+ activate_instrument_server_for_session_instruments__instrument_name__sessions__session_id__activate_instrument_server_post: {
+ parameters: {
+ path: {
+ instrument_name: string
+ session_id: number
+ }
+ }
+ responses: {
+ /** @description Successful Response */
+ 200: {
+ content: {
+ 'application/json': unknown
+ }
+ }
+ /** @description Validation Error */
+ 422: {
+ content: {
+ 'application/json': components['schemas']['HTTPValidationError']
+ }
+ }
+ }
+ }
/** Check If Session Is Active */
- get: operations["check_if_session_is_active_instruments__instrument_name__sessions__session_id__active_get"];
- };
- "/sessions/{session_id}/multigrid_watcher": {
+ check_if_session_is_active_instruments__instrument_name__sessions__session_id__active_get: {
+ parameters: {
+ path: {
+ instrument_name: string
+ session_id: number
+ }
+ }
+ responses: {
+ /** @description Successful Response */
+ 200: {
+ content: {
+ 'application/json': unknown
+ }
+ }
+ /** @description Validation Error */
+ 422: {
+ content: {
+ 'application/json': components['schemas']['HTTPValidationError']
+ }
+ }
+ }
+ }
/** Setup Multigrid Watcher */
- post: operations["setup_multigrid_watcher_sessions__session_id__multigrid_watcher_post"];
- };
- "/sessions/{session_id}/start_multigrid_watcher": {
+ setup_multigrid_watcher_sessions__session_id__multigrid_watcher_post: {
+ parameters: {
+ path: {
+ session_id: number
+ }
+ }
+ requestBody: {
+ content: {
+ 'application/json': components['schemas']['MultigridWatcherSetup']
+ }
+ }
+ responses: {
+ /** @description Successful Response */
+ 200: {
+ content: {
+ 'application/json': unknown
+ }
+ }
+ /** @description Validation Error */
+ 422: {
+ content: {
+ 'application/json': components['schemas']['HTTPValidationError']
+ }
+ }
+ }
+ }
/** Start Multigrid Watcher */
- post: operations["start_multigrid_watcher_sessions__session_id__start_multigrid_watcher_post"];
- };
- "/sessions/{session_id}/provided_processing_parameters": {
+ start_multigrid_watcher_sessions__session_id__start_multigrid_watcher_post: {
+ parameters: {
+ path: {
+ session_id: number
+ }
+ }
+ responses: {
+ /** @description Successful Response */
+ 200: {
+ content: {
+ 'application/json': unknown
+ }
+ }
+ /** @description Validation Error */
+ 422: {
+ content: {
+ 'application/json': components['schemas']['HTTPValidationError']
+ }
+ }
+ }
+ }
/** Pass Proc Params To Instrument Server */
- post: operations["pass_proc_params_to_instrument_server_sessions__session_id__provided_processing_parameters_post"];
- };
- "/instruments/{instrument_name}/instrument_server": {
+ pass_proc_params_to_instrument_server_sessions__session_id__provided_processing_parameters_post: {
+ parameters: {
+ path: {
+ session_id: number
+ }
+ }
+ requestBody: {
+ content: {
+ 'application/json': components['schemas']['ProvidedProcessingParameters']
+ }
+ }
+ responses: {
+ /** @description Successful Response */
+ 200: {
+ content: {
+ 'application/json': unknown
+ }
+ }
+ /** @description Validation Error */
+ 422: {
+ content: {
+ 'application/json': components['schemas']['HTTPValidationError']
+ }
+ }
+ }
+ }
/** Check Instrument Server */
- get: operations["check_instrument_server_instruments__instrument_name__instrument_server_get"];
- };
- "/instruments/{instrument_name}/sessions/{session_id}/possible_gain_references": {
+ check_instrument_server_instruments__instrument_name__instrument_server_get: {
+ parameters: {
+ path: {
+ instrument_name: string
+ }
+ }
+ responses: {
+ /** @description Successful Response */
+ 200: {
+ content: {
+ 'application/json': unknown
+ }
+ }
+ /** @description Validation Error */
+ 422: {
+ content: {
+ 'application/json': components['schemas']['HTTPValidationError']
+ }
+ }
+ }
+ }
/** Get Possible Gain References */
- get: operations["get_possible_gain_references_instruments__instrument_name__sessions__session_id__possible_gain_references_get"];
- };
- "/sessions/{session_id}/upload_gain_reference": {
+ get_possible_gain_references_instruments__instrument_name__sessions__session_id__possible_gain_references_get: {
+ parameters: {
+ path: {
+ instrument_name: string
+ session_id: number
+ }
+ }
+ responses: {
+ /** @description Successful Response */
+ 200: {
+ content: {
+ 'application/json': components['schemas']['File'][]
+ }
+ }
+ /** @description Validation Error */
+ 422: {
+ content: {
+ 'application/json': components['schemas']['HTTPValidationError']
+ }
+ }
+ }
+ }
/** Request Gain Reference Upload */
- post: operations["request_gain_reference_upload_sessions__session_id__upload_gain_reference_post"];
- };
- "/visits/{visit_name}/{session_id}/upstream_tiff_data_request": {
+ request_gain_reference_upload_sessions__session_id__upload_gain_reference_post: {
+ parameters: {
+ path: {
+ session_id: number
+ }
+ }
+ requestBody: {
+ content: {
+ 'application/json': components['schemas']['GainReferenceRequest']
+ }
+ }
+ responses: {
+ /** @description Successful Response */
+ 200: {
+ content: {
+ 'application/json': unknown
+ }
+ }
+ /** @description Validation Error */
+ 422: {
+ content: {
+ 'application/json': components['schemas']['HTTPValidationError']
+ }
+ }
+ }
+ }
/** Request Upstream Tiff Data Download */
- post: operations["request_upstream_tiff_data_download_visits__visit_name___session_id__upstream_tiff_data_request_post"];
- };
- "/sessions/{session_id}/stop_rsyncer": {
+ request_upstream_tiff_data_download_visits__visit_name___session_id__upstream_tiff_data_request_post: {
+ parameters: {
+ path: {
+ visit_name: string
+ session_id: number
+ }
+ }
+ responses: {
+ /** @description Successful Response */
+ 200: {
+ content: {
+ 'application/json': unknown
+ }
+ }
+ /** @description Validation Error */
+ 422: {
+ content: {
+ 'application/json': components['schemas']['HTTPValidationError']
+ }
+ }
+ }
+ }
/** Stop Rsyncer */
- post: operations["stop_rsyncer_sessions__session_id__stop_rsyncer_post"];
- };
- "/sessions/{session_id}/finalise_rsyncer": {
+ stop_rsyncer_sessions__session_id__stop_rsyncer_post: {
+ parameters: {
+ path: {
+ session_id: number
+ }
+ }
+ requestBody: {
+ content: {
+ 'application/json': components['schemas']['murfey__server__api__instrument__RsyncerSource']
+ }
+ }
+ responses: {
+ /** @description Successful Response */
+ 200: {
+ content: {
+ 'application/json': unknown
+ }
+ }
+ /** @description Validation Error */
+ 422: {
+ content: {
+ 'application/json': components['schemas']['HTTPValidationError']
+ }
+ }
+ }
+ }
/** Finalise Rsyncer */
- post: operations["finalise_rsyncer_sessions__session_id__finalise_rsyncer_post"];
- };
- "/sessions/{session_id}/finalise_session": {
+ finalise_rsyncer_sessions__session_id__finalise_rsyncer_post: {
+ parameters: {
+ path: {
+ session_id: number
+ }
+ }
+ requestBody: {
+ content: {
+ 'application/json': components['schemas']['murfey__server__api__instrument__RsyncerSource']
+ }
+ }
+ responses: {
+ /** @description Successful Response */
+ 200: {
+ content: {
+ 'application/json': unknown
+ }
+ }
+ /** @description Validation Error */
+ 422: {
+ content: {
+ 'application/json': components['schemas']['HTTPValidationError']
+ }
+ }
+ }
+ }
/** Finalise Session */
- post: operations["finalise_session_sessions__session_id__finalise_session_post"];
- };
- "/sessions/{session_id}/remove_rsyncer": {
+ finalise_session_sessions__session_id__finalise_session_post: {
+ parameters: {
+ path: {
+ session_id: number
+ }
+ }
+ responses: {
+ /** @description Successful Response */
+ 200: {
+ content: {
+ 'application/json': unknown
+ }
+ }
+ /** @description Validation Error */
+ 422: {
+ content: {
+ 'application/json': components['schemas']['HTTPValidationError']
+ }
+ }
+ }
+ }
/** Remove Rsyncer */
- post: operations["remove_rsyncer_sessions__session_id__remove_rsyncer_post"];
- };
- "/sessions/{session_id}/restart_rsyncer": {
+ remove_rsyncer_sessions__session_id__remove_rsyncer_post: {
+ parameters: {
+ path: {
+ session_id: number
+ }
+ }
+ requestBody: {
+ content: {
+ 'application/json': components['schemas']['murfey__server__api__instrument__RsyncerSource']
+ }
+ }
+ responses: {
+ /** @description Successful Response */
+ 200: {
+ content: {
+ 'application/json': unknown
+ }
+ }
+ /** @description Validation Error */
+ 422: {
+ content: {
+ 'application/json': components['schemas']['HTTPValidationError']
+ }
+ }
+ }
+ }
/** Restart Rsyncer */
- post: operations["restart_rsyncer_sessions__session_id__restart_rsyncer_post"];
- };
- "/instruments/{instrument_name}/sessions/{session_id}/rsyncer_info": {
+ restart_rsyncer_sessions__session_id__restart_rsyncer_post: {
+ parameters: {
+ path: {
+ session_id: number
+ }
+ }
+ requestBody: {
+ content: {
+ 'application/json': components['schemas']['murfey__server__api__instrument__RsyncerSource']
+ }
+ }
+ responses: {
+ /** @description Successful Response */
+ 200: {
+ content: {
+ 'application/json': unknown
+ }
+ }
+ /** @description Validation Error */
+ 422: {
+ content: {
+ 'application/json': components['schemas']['HTTPValidationError']
+ }
+ }
+ }
+ }
/** Get Rsyncer Info */
- get: operations["get_rsyncer_info_instruments__instrument_name__sessions__session_id__rsyncer_info_get"];
- };
- "/instruments": {
+ get_rsyncer_info_instruments__instrument_name__sessions__session_id__rsyncer_info_get: {
+ parameters: {
+ path: {
+ instrument_name: string
+ session_id: number
+ }
+ }
+ responses: {
+ /** @description Successful Response */
+ 200: {
+ content: {
+ 'application/json': components['schemas']['RSyncerInfo'][]
+ }
+ }
+ /** @description Validation Error */
+ 422: {
+ content: {
+ 'application/json': components['schemas']['HTTPValidationError']
+ }
+ }
+ }
+ }
/** Get Instrument Info */
- get: operations["get_instrument_info_instruments_get"];
- };
- "/instrument/{instrument_name}/image": {
+ get_instrument_info_instruments_get: {
+ responses: {
+ /** @description Successful Response */
+ 200: {
+ content: {
+ 'application/json': components['schemas']['InstrumentInfo'][]
+ }
+ }
+ }
+ }
/** Get Instrument Image */
- get: operations["get_instrument_image_instrument__instrument_name__image_get"];
- };
- "/sessions/{session_id}/session_processing_parameters": {
+ get_instrument_image_instrument__instrument_name__image_get: {
+ parameters: {
+ path: {
+ instrument_name: string
+ }
+ }
+ responses: {
+ /** @description Successful Response */
+ 200: {
+ content: {
+ 'application/json': unknown
+ }
+ }
+ /** @description Validation Error */
+ 422: {
+ content: {
+ 'application/json': components['schemas']['HTTPValidationError']
+ }
+ }
+ }
+ }
/** Get Session Processing Parameters */
- get: operations["get_session_processing_parameters_sessions__session_id__session_processing_parameters_get"];
+ get_session_processing_parameters_sessions__session_id__session_processing_parameters_get: {
+ parameters: {
+ path: {
+ session_id: number
+ }
+ }
+ responses: {
+ /** @description Successful Response */
+ 200: {
+ content: {
+ 'application/json': components['schemas']['EditableSessionProcessingParameters']
+ }
+ }
+ /** @description Validation Error */
+ 422: {
+ content: {
+ 'application/json': components['schemas']['HTTPValidationError']
+ }
+ }
+ }
+ }
/** Set Session Processing Parameters */
- post: operations["set_session_processing_parameters_sessions__session_id__session_processing_parameters_post"];
- };
- "/ws/test/{client_id}": {
+ set_session_processing_parameters_sessions__session_id__session_processing_parameters_post: {
+ parameters: {
+ path: {
+ session_id: number
+ }
+ }
+ requestBody: {
+ content: {
+ 'application/json': components['schemas']['EditableSessionProcessingParameters']
+ }
+ }
+ responses: {
+ /** @description Successful Response */
+ 200: {
+ content: {
+ 'application/json': components['schemas']['EditableSessionProcessingParameters']
+ }
+ }
+ /** @description Validation Error */
+ 422: {
+ content: {
+ 'application/json': components['schemas']['HTTPValidationError']
+ }
+ }
+ }
+ }
/** Close Ws Connection */
- delete: operations["close_ws_connection_ws_test__client_id__delete"];
- };
- "/ws/connect/{client_id}": {
+ close_ws_connection_ws_test__client_id__delete: {
+ parameters: {
+ path: {
+ client_id: number
+ }
+ }
+ responses: {
+ /** @description Successful Response */
+ 200: {
+ content: {
+ 'application/json': unknown
+ }
+ }
+ /** @description Validation Error */
+ 422: {
+ content: {
+ 'application/json': components['schemas']['HTTPValidationError']
+ }
+ }
+ }
+ }
/** Close Unrecorded Ws Connection */
- delete: operations["close_unrecorded_ws_connection_ws_connect__client_id__delete"];
- };
- "/instruments/{instrument_name}/visits/{visit_name}/{session_id}/smartem_atlas/": {
+ close_unrecorded_ws_connection_ws_connect__client_id__delete: {
+ parameters: {
+ path: {
+ client_id: number | string
+ }
+ }
+ responses: {
+ /** @description Successful Response */
+ 200: {
+ content: {
+ 'application/json': unknown
+ }
+ }
+ /** @description Validation Error */
+ 422: {
+ content: {
+ 'application/json': components['schemas']['HTTPValidationError']
+ }
+ }
+ }
+ }
/** Request Smartem Atlas Analysis */
- post: operations["request_smartem_atlas_analysis_instruments__instrument_name__visits__visit_name___session_id__smartem_atlas__post"];
- };
- "/instruments/{instrument_name}/k3_ssd": {
+ request_smartem_atlas_analysis_instruments__instrument_name__visits__visit_name___session_id__smartem_atlas__post: {
+ parameters: {
+ path: {
+ instrument_name: string
+ visit_name: string
+ session_id: number
+ }
+ }
+ requestBody: {
+ content: {
+ 'application/json': components['schemas']['SmartEMAtlasRequest']
+ }
+ }
+ responses: {
+ /** @description Successful Response */
+ 200: {
+ content: {
+ 'application/json': unknown
+ }
+ }
+ /** @description Validation Error */
+ 422: {
+ content: {
+ 'application/json': components['schemas']['HTTPValidationError']
+ }
+ }
+ }
+ }
/** Update K3 Ssd Statuses */
- post: operations["update_k3_ssd_statuses_instruments__instrument_name__k3_ssd_post"];
- };
-}
-
-export type webhooks = Record;
-
-export interface components {
- schemas: {
- /** AlignAndMergeParams */
- AlignAndMergeParams: {
- /** Series Name */
- series_name: string;
- /** Images */
- images: string[];
- /**
- * Metadata
- * Format: path
- */
- metadata: string;
- /** Crop To N Frames */
- crop_to_n_frames?: number;
- /**
- * Align Self
- * @default
- * @enum {string}
- */
- align_self?: "enabled" | "";
- /**
- * Flatten
- * @default
- * @enum {string}
- */
- flatten?: "mean" | "min" | "max" | "";
- /**
- * Align Across
- * @default
- * @enum {string}
- */
- align_across?: "enabled" | "";
- };
- /** Body_generate_token_token_post */
- Body_generate_token_token_post: {
- /** Grant Type */
- grant_type?: string;
- /** Username */
- username: string;
- /** Password */
- password: string;
- /**
- * Scope
- * @default
- */
- scope?: string;
- /** Client Id */
- client_id?: string;
- /** Client Secret */
- client_secret?: string;
- };
- /** Body_register_clem_metadata_sessions__session_id__clem_metadata_files_post */
- Body_register_clem_metadata_sessions__session_id__clem_metadata_files_post: {
- /**
- * Associated Tiffs
- * @default []
- */
- associated_tiffs?: string[];
- /**
- * Associated Stacks
- * @default []
- */
- associated_stacks?: string[];
- };
- /** Body_register_image_series_sessions__session_id__clem_image_series_post */
- Body_register_image_series_sessions__session_id__clem_image_series_post: {
- /**
- * Parent Tiffs
- * @default []
- */
- parent_tiffs?: string[];
- /**
- * Child Stacks
- * @default []
- */
- child_stacks?: string[];
- };
- /** Body_register_lif_file_sessions__session_id__clem_lif_files_post */
- Body_register_lif_file_sessions__session_id__clem_lif_files_post: {
- /**
- * Child Metadata
- * @default []
- */
- child_metadata?: string[];
- /**
- * Child Series
- * @default []
- */
- child_series?: string[];
- /**
- * Child Stacks
- * @default []
- */
- child_stacks?: string[];
- };
- /** ClientEnvironment */
- ClientEnvironment: {
- /** Client Id */
- client_id?: number;
- /**
- * Visit
- * @default
- */
- visit?: string;
- /** Session Id */
- session_id?: number;
- /** Connected */
- connected: boolean;
- };
- /** ClientInfo */
- ClientInfo: {
- /** Id */
- id: number;
- };
- /** CurrentGainRef */
- CurrentGainRef: {
- /** Path */
- path: string;
- };
- /** DCGroupParameters */
- DCGroupParameters: {
- /** Experiment Type */
- experiment_type: string;
- /** Experiment Type Id */
- experiment_type_id: number;
- /** Tag */
- tag: string;
- /**
- * Atlas
- * @default
- */
- atlas?: string;
- /** Sample */
- sample?: number;
- /**
- * Atlas Pixel Size
- * @default 0
- */
- atlas_pixel_size?: number;
- };
- /** DCParameters */
- DCParameters: {
- /** Voltage */
- voltage: number;
- /** Pixel Size On Image */
- pixel_size_on_image: string;
- /** Experiment Type */
- experiment_type: string;
- /** Image Size X */
- image_size_x: number;
- /** Image Size Y */
- image_size_y: number;
- /** File Extension */
- file_extension: string;
- /** Acquisition Software */
- acquisition_software: string;
- /** Image Directory */
- image_directory: string;
- /** Tag */
- tag: string;
- /** Source */
- source: string;
- /** Magnification */
- magnification: number;
- /** Total Exposed Dose */
- total_exposed_dose?: number;
- /** C2Aperture */
- c2aperture?: number;
- /** Exposure Time */
- exposure_time?: number;
- /** Slit Width */
- slit_width?: number;
- /**
- * Phase Plate
- * @default false
- */
- phase_plate?: boolean;
- /**
- * Data Collection Tag
- * @default
- */
- data_collection_tag?: string;
- };
- /** DataCollection */
- DataCollection: {
- /** Id */
- id: number;
- /** Tag */
- tag: string;
- /** Dcg Id */
- dcg_id: number;
- };
- /** DataCollectionGroup */
- DataCollectionGroup: {
- /** Id */
- id: number;
- /** Session Id */
- session_id: number;
- /** Tag */
- tag: string;
- /** Atlas Id */
- atlas_id?: number;
- /** Atlas Pixel Size */
- atlas_pixel_size?: number;
- /**
- * Atlas
- * @default
- */
- atlas?: string;
- /** Sample */
- sample?: number;
- };
- /** EditableSessionProcessingParameters */
- EditableSessionProcessingParameters: {
- /**
- * Gain Ref
- * @default
- */
- gain_ref?: string;
- /** Dose Per Frame */
- dose_per_frame?: number;
- /**
- * Eer Fractionation File
- * @default
- */
- eer_fractionation_file?: string;
- /**
- * Symmetry
- * @default
- */
- symmetry?: string;
- };
- /** File */
- File: {
- /** Name */
- name: string;
- /** Description */
- description: string;
- /** Size */
- size: number;
- /**
- * Timestamp
- * Format: date-time
- */
- timestamp: string;
- /** Full Path */
- full_path: string;
- };
- /** FoilHole */
- FoilHole: {
- /** Id */
- id?: number;
- /** Grid Square Id */
- grid_square_id: number;
- /** Session Id */
- session_id: number;
- /** Name */
- name: number;
- /** X Location */
- x_location?: number;
- /** Y Location */
- y_location?: number;
- /** X Stage Position */
- x_stage_position?: number;
- /** Y Stage Position */
- y_stage_position?: number;
- /** Readout Area X */
- readout_area_x?: number;
- /** Readout Area Y */
- readout_area_y?: number;
- /** Thumbnail Size X */
- thumbnail_size_x?: number;
- /** Thumbnail Size Y */
- thumbnail_size_y?: number;
- /** Pixel Size */
- pixel_size?: number;
- /**
- * Image
- * @default
- */
- image?: string;
- };
- /** FoilHoleParameters */
- FoilHoleParameters: {
- /** Tag */
- tag: string;
- /** Name */
- name: number;
- /** X Location */
- x_location?: number;
- /** Y Location */
- y_location?: number;
- /** X Stage Position */
- x_stage_position?: number;
- /** Y Stage Position */
- y_stage_position?: number;
- /** Readout Area X */
- readout_area_x?: number;
- /** Readout Area Y */
- readout_area_y?: number;
- /** Thumbnail Size X */
- thumbnail_size_x?: number;
- /** Thumbnail Size Y */
- thumbnail_size_y?: number;
- /** Pixel Size */
- pixel_size?: number;
- /**
- * Image
- * @default
- */
- image?: string;
- /** Diameter */
- diameter?: number;
- };
- /** FractionationParameters */
- FractionationParameters: {
- /** Fractionation */
- fractionation: number;
- /** Dose Per Frame */
- dose_per_frame: number;
- /**
- * Num Frames
- * @default 0
- */
- num_frames?: number;
- /** Eer Path */
- eer_path?: string;
- /**
- * Fractionation File Name
- * @default eer_fractionation.txt
- */
- fractionation_file_name?: string;
- };
- /** GainReference */
- GainReference: {
- /**
- * Gain Ref
- * Format: path
- */
- gain_ref: string;
- /**
- * Rescale
- * @default true
- */
- rescale?: boolean;
- /**
- * Eer
- * @default false
- */
- eer?: boolean;
- /**
- * Tag
- * @default
- */
- tag?: string;
- };
- /** GainReferenceRequest */
- GainReferenceRequest: {
- /**
- * Gain Path
- * Format: path
- */
- gain_path: string;
- };
- /** GridSquare */
- GridSquare: {
- /** Id */
- id?: number;
- /** Session Id */
- session_id: number;
- /** Name */
- name: number;
- /** Tag */
- tag: string;
- /** X Location */
- x_location?: number;
- /** Y Location */
- y_location?: number;
- /** X Stage Position */
- x_stage_position?: number;
- /** Y Stage Position */
- y_stage_position?: number;
- /** Readout Area X */
- readout_area_x?: number;
- /** Readout Area Y */
- readout_area_y?: number;
- /** Thumbnail Size X */
- thumbnail_size_x?: number;
- /** Thumbnail Size Y */
- thumbnail_size_y?: number;
- /** Pixel Size */
- pixel_size?: number;
- /**
- * Image
- * @default
- */
- image?: string;
- };
- /** GridSquareParameters */
- GridSquareParameters: {
- /** Tag */
- tag: string;
- /** X Location */
- x_location?: number;
- /** Y Location */
- y_location?: number;
- /** X Stage Position */
- x_stage_position?: number;
- /** Y Stage Position */
- y_stage_position?: number;
- /** Readout Area X */
- readout_area_x?: number;
- /** Readout Area Y */
- readout_area_y?: number;
- /** Thumbnail Size X */
- thumbnail_size_x?: number;
- /** Thumbnail Size Y */
- thumbnail_size_y?: number;
- /** Height */
- height?: number;
- /** Width */
- width?: number;
- /** Pixel Size */
- pixel_size?: number;
- /**
- * Image
- * @default
- */
- image?: string;
- /** Angle */
- angle?: number;
- };
- /** HTTPValidationError */
- HTTPValidationError: {
- /** Detail */
- detail?: components["schemas"]["ValidationError"][];
- };
- /** InstrumentInfo */
- InstrumentInfo: {
- /** Instrument Name */
- instrument_name: string;
- /** Display Name */
- display_name: string;
- /** Instrument Url */
- instrument_url: string;
- };
- /** MachineConfig */
- MachineConfig: {
- /** Acquisition Software */
- acquisition_software: string[];
- /** Calibrations */
- calibrations: {
- [key: string]: {
- [key: string]: Record | number;
- };
- };
- /** Data Directories */
- data_directories: string[];
- /**
- * Rsync Basepath
- * Format: path
- */
- rsync_basepath: string;
- /**
- * Default Model
- * Format: path
- */
- default_model: string;
- /**
- * Display Name
- * @default
- */
- display_name?: string;
- /**
- * Instrument Name
- * @default
- */
- instrument_name?: string;
- /**
- * Image Path
- * Format: path
- */
- image_path?: string;
- /**
- * Software Versions
- * @default {}
- */
- software_versions?: {
- [key: string]: string;
- };
- /**
- * External Executables
- * @default {}
- */
- external_executables?: {
- [key: string]: string;
- };
- /**
- * External Executables Eer
- * @default {}
- */
- external_executables_eer?: {
- [key: string]: string;
- };
- /**
- * External Environment
- * @default {}
- */
- external_environment?: {
- [key: string]: string;
- };
- /**
- * Rsync Module
- * @default
- */
- rsync_module?: string;
- /**
- * Create Directories
- * @default [
- * "atlas"
- * ]
- */
- create_directories?: string[];
- /**
- * Analyse Created Directories
- * @default []
- */
- analyse_created_directories?: string[];
- /**
- * Gain Reference Directory
- * Format: path
- */
- gain_reference_directory?: string;
- /**
- * Eer Fractionation File Template
- * @default
- */
- eer_fractionation_file_template?: string;
- /**
- * Processed Directory Name
- * @default processed
- */
- processed_directory_name?: string;
- /**
- * Gain Directory Name
- * @default processing
- */
- gain_directory_name?: string;
- /**
- * Node Creator Queue
- * @default node_creator
- */
- node_creator_queue?: string;
- /**
- * Superres
- * @default false
- */
- superres?: boolean;
- /**
- * Camera
- * @default FALCON
- */
- camera?: string;
- /**
- * Data Required Substrings
- * @default {}
- */
- data_required_substrings?: {
- [key: string]: {
- [key: string]: string[];
- };
- };
- /**
- * Allow Removal
- * @default false
- */
- allow_removal?: boolean;
- /**
- * Data Transfer Enabled
- * @default true
- */
- data_transfer_enabled?: boolean;
- /**
- * Processing Enabled
- * @default true
- */
- processing_enabled?: boolean;
- /**
- * Machine Override
- * @default
- */
- machine_override?: string;
- /**
- * Processed Extra Directory
- * @default
- */
- processed_extra_directory?: string;
- /**
- * Plugin Packages
- * @default {}
- */
- plugin_packages?: {
- [key: string]: string;
- };
- /**
- * Software Settings Output Directories
- * @default {}
- */
- software_settings_output_directories?: {
- [key: string]: string[];
- };
- /**
- * Process By Default
- * @default true
- */
- process_by_default?: boolean;
- /**
- * Recipes
- * @default {
- * "em-spa-bfactor": "em-spa-bfactor",
- * "em-spa-class2d": "em-spa-class2d",
- * "em-spa-class3d": "em-spa-class3d",
- * "em-spa-preprocess": "em-spa-preprocess",
- * "em-spa-refine": "em-spa-refine",
- * "em-tomo-preprocess": "em-tomo-preprocess",
- * "em-tomo-align": "em-tomo-align"
- * }
- */
- recipes?: {
- [key: string]: string;
- };
- /**
- * Upstream Data Directories
- * @default []
- */
- upstream_data_directories?: string[];
- /**
- * Upstream Data Download Directory
- * Format: path
- */
- upstream_data_download_directory?: string;
- /**
- * Upstream Data Tiff Locations
- * @default [
- * "processed"
- * ]
- */
- upstream_data_tiff_locations?: string[];
- /**
- * Model Search Directory
- * @default processing
- */
- model_search_directory?: string;
- /**
- * Initial Model Search Directory
- * @default processing/initial_model
- */
- initial_model_search_directory?: string;
- /**
- * Failure Queue
- * @default
- */
- failure_queue?: string;
- /**
- * Instrument Server Url
- * @default http://localhost:8001
- */
- instrument_server_url?: string;
- /**
- * Frontend Url
- * @default http://localhost:3000
- */
- frontend_url?: string;
- /**
- * Murfey Url
- * @default http://localhost:8000
- */
- murfey_url?: string;
- /**
- * Rsync Url
- * @default
- */
- rsync_url?: string;
- /**
- * Security Configuration Path
- * Format: path
- */
- security_configuration_path?: string;
- /**
- * Auth Url
- * @default
- */
- auth_url?: string;
- /**
- * Notifications Queue
- * @default pato_notification
- */
- notifications_queue?: string;
- };
- /** MagnificationLookup */
- MagnificationLookup: {
- /** Magnification */
- magnification: number;
- /** Pixel Size */
- pixel_size: number;
- };
- /** MultigridWatcherSetup */
- MultigridWatcherSetup: {
- /**
- * Source
- * Format: path
- */
- source: string;
- /**
- * Skip Existing Processing
- * @default false
- */
- skip_existing_processing?: boolean;
- /**
- * Destination Overrides
- * @default {}
- */
- destination_overrides?: {
- [key: string]: string;
- };
- /**
- * Rsync Restarts
- * @default []
- */
- rsync_restarts?: string[];
- };
- /** PostInfo */
- PostInfo: {
- /** Url */
- url: string;
- /** Data */
- data: Record;
- };
- /** PreprocessingParametersTomo */
- PreprocessingParametersTomo: {
- /** Dose Per Frame */
- dose_per_frame?: number;
- /** Frame Count */
- frame_count: number;
- /** Tilt Axis */
- tilt_axis: number;
- /** Gain Ref */
- gain_ref?: string;
- /** Experiment Type */
- experiment_type: string;
- /** Voltage */
- voltage: number;
- /** Image Size X */
- image_size_x: number;
- /** Image Size Y */
- image_size_y: number;
- /** Pixel Size On Image */
- pixel_size_on_image: string;
- /** Motion Corr Binning */
- motion_corr_binning: number;
- /** Manual Tilt Offset */
- manual_tilt_offset: number;
- /** File Extension */
- file_extension: string;
- /** Tag */
- tag: string;
- /** Tilt Series Tag */
- tilt_series_tag: string;
- /** Eer Fractionation File */
- eer_fractionation_file?: string;
- /** Eer Fractionation */
- eer_fractionation: number;
- };
- /** ProcessingDetails */
- ProcessingDetails: {
- data_collection_group: components["schemas"]["DataCollectionGroup"];
- /** Data Collections */
- data_collections: components["schemas"]["DataCollection"][];
- /** Processing Jobs */
- processing_jobs: components["schemas"]["ProcessingJob"][];
- relion_params: components["schemas"]["SPARelionParameters"];
- feedback_params: components["schemas"]["SPAFeedbackParameters"];
- };
- /** ProcessingJob */
- ProcessingJob: {
- /** Id */
- id: number;
- /** Recipe */
- recipe: string;
- /** Dc Id */
- dc_id: number;
- };
- /** ProcessingJobParameters */
- ProcessingJobParameters: {
- /** Tag */
- tag: string;
- /** Source */
- source: string;
- /** Recipe */
- recipe: string;
- /**
- * Parameters
- * @default {}
- */
- parameters?: Record;
- /**
- * Experiment Type
- * @default spa
- */
- experiment_type?: string;
- };
- /** ProcessingParametersSPA */
- ProcessingParametersSPA: {
- /** Tag */
- tag: string;
- /** Dose Per Frame */
- dose_per_frame: number;
- /** Gain Ref */
- gain_ref?: string;
- /** Experiment Type */
- experiment_type: string;
- /** Voltage */
- voltage: number;
- /** Image Size X */
- image_size_x: number;
- /** Image Size Y */
- image_size_y: number;
- /** Pixel Size On Image */
- pixel_size_on_image: string;
- /** Motion Corr Binning */
- motion_corr_binning: number;
- /** File Extension */
- file_extension: string;
- /** Acquisition Software */
- acquisition_software: string;
- /** Use Cryolo */
- use_cryolo: boolean;
- /** Symmetry */
- symmetry: string;
- /** Mask Diameter */
- mask_diameter?: number;
- /** Boxsize */
- boxsize?: number;
- /** Downscale */
- downscale: boolean;
- /** Small Boxsize */
- small_boxsize?: number;
- /**
- * Eer Fractionation File
- * @default
- */
- eer_fractionation_file?: string;
- /** Particle Diameter */
- particle_diameter?: number;
- /** Magnification */
- magnification?: number;
- /** Total Exposed Dose */
- total_exposed_dose?: number;
- /** C2Aperture */
- c2aperture?: number;
- /** Exposure Time */
- exposure_time?: number;
- /** Slit Width */
- slit_width?: number;
- /**
- * Phase Plate
- * @default false
- */
- phase_plate?: boolean;
- };
- /** ProcessingParametersTomo */
- ProcessingParametersTomo: {
- /** Manual Tilt Offset */
- manual_tilt_offset: number;
- /** Tag */
- tag: string;
- /** Tilt Series Tag */
- tilt_series_tag: string;
- };
- /** ProvidedProcessingParameters */
- ProvidedProcessingParameters: {
- /** Dose Per Frame */
- dose_per_frame: number;
- /**
- * Extract Downscale
- * @default true
- */
- extract_downscale?: boolean;
- /** Particle Diameter */
- particle_diameter?: number;
- /**
- * Symmetry
- * @default C1
- */
- symmetry?: string;
- /**
- * Eer Fractionation
- * @default 20
- */
- eer_fractionation?: number;
- };
- /** RSyncerInfo */
- RSyncerInfo: {
- /** Source */
- source: string;
- /** Num Files Transferred */
- num_files_transferred: number;
- /** Num Files In Queue */
- num_files_in_queue: number;
- /** Num Files To Analyse */
- num_files_to_analyse: number;
- /** Alive */
- alive: boolean;
- /** Stopping */
- stopping: boolean;
- /** Analyser Alive */
- analyser_alive: boolean;
- /** Analyser Stopping */
- analyser_stopping: boolean;
- /** Destination */
- destination: string;
- /** Tag */
- tag: string;
- /** Files Transferred */
- files_transferred: number;
- /** Files Counted */
- files_counted: number;
- /** Transferring */
- transferring: boolean;
- /** Session Id */
- session_id: number;
- };
- /** RegistrationMessage */
- RegistrationMessage: {
- /** Registration */
- registration: string;
- /** Params */
- params?: Record;
- };
- /** RsyncInstance */
- RsyncInstance: {
- /** Source */
- source: string;
- /**
- * Destination
- * @default
- */
- destination?: string;
- /** Session Id */
- session_id: number;
- /**
- * Tag
- * @default
- */
- tag?: string;
- /**
- * Files Transferred
- * @default 0
- */
- files_transferred?: number;
- /**
- * Files Counted
- * @default 0
- */
- files_counted?: number;
- /**
- * Transferring
- * @default false
- */
- transferring?: boolean;
- };
- /** RsyncerInfo */
- RsyncerInfo: {
- /** Source */
- source: string;
- /** Destination */
- destination: string;
- /** Session Id */
- session_id: number;
- /**
- * Transferring
- * @default true
- */
- transferring?: boolean;
- /**
- * Increment Count
- * @default 1
- */
- increment_count?: number;
- /**
- * Bytes
- * @default 0
- */
- bytes?: number;
- /**
- * Increment Data Count
- * @default 0
- */
- increment_data_count?: number;
- /**
- * Data Bytes
- * @default 0
- */
- data_bytes?: number;
- /**
- * Tag
- * @default
- */
- tag?: string;
- };
- /** SPAFeedbackParameters */
- SPAFeedbackParameters: {
- /** Pj Id */
- pj_id: number;
- /**
- * Estimate Particle Diameter
- * @default true
- */
- estimate_particle_diameter?: boolean;
- /**
- * Hold Class2D
- * @default false
- */
- hold_class2d?: boolean;
- /**
- * Rerun Class2D
- * @default false
- */
- rerun_class2d?: boolean;
- /**
- * Hold Class3D
- * @default false
- */
- hold_class3d?: boolean;
- /**
- * Hold Refine
- * @default false
- */
- hold_refine?: boolean;
- /** Class Selection Score */
- class_selection_score: number;
- /** Star Combination Job */
- star_combination_job: number;
- /** Initial Model */
- initial_model: string;
- /** Next Job */
- next_job: number;
- /** Picker Murfey Id */
- picker_murfey_id?: number;
- /** Picker Ispyb Id */
- picker_ispyb_id?: number;
- };
- /** SPAProcessFile */
- SPAProcessFile: {
- /** Tag */
- tag: string;
- /** Path */
- path: string;
- /** Description */
- description: string;
- /** Processing Job */
- processing_job?: number;
- /** Data Collection Id */
- data_collection_id?: number;
- /** Image Number */
- image_number: number;
- /** Autoproc Program Id */
- autoproc_program_id?: number;
- /** Foil Hole Id */
- foil_hole_id?: number;
- /** Pixel Size */
- pixel_size?: number;
- /** Dose Per Frame */
- dose_per_frame?: number;
- /**
- * Mc Binning
- * @default 1
- */
- mc_binning?: number;
- /** Gain Ref */
- gain_ref?: string;
- /**
- * Extract Downscale
- * @default true
- */
- extract_downscale?: boolean;
- /** Eer Fractionation File */
- eer_fractionation_file?: string;
- /**
- * Source
- * @default
- */
- source?: string;
- };
- /** SPARelionParameters */
- SPARelionParameters: {
- /** Pj Id */
- pj_id: number;
- /** Angpix */
- angpix: number;
- /** Dose Per Frame */
- dose_per_frame: number;
- /** Gain Ref */
- gain_ref?: string;
- /** Voltage */
- voltage: number;
- /** Motion Corr Binning */
- motion_corr_binning: number;
- /**
- * Eer Fractionation File
- * @default
- */
- eer_fractionation_file?: string;
- /** Symmetry */
- symmetry: string;
- /** Particle Diameter */
- particle_diameter?: number;
- /** Downscale */
- downscale: boolean;
- /**
- * Do Icebreaker Jobs
- * @default true
- */
- do_icebreaker_jobs?: boolean;
- /**
- * Boxsize
- * @default 256
- */
- boxsize?: number;
- /**
- * Small Boxsize
- * @default 64
- */
- small_boxsize?: number;
- /**
- * Mask Diameter
- * @default 190
- */
- mask_diameter?: number;
- };
- /** SSDData */
- SSDData: {
- /** Name */
- name: string;
- /** Health */
- health: number;
- };
- /** Session */
- Session: {
- /** Id */
- id: number;
- /** Name */
- name: string;
- /**
- * Visit
- * @default
- */
- visit?: string;
- /**
- * Started
- * @default false
- */
- started?: boolean;
- /**
- * Current Gain Ref
- * @default
- */
- current_gain_ref?: string;
- /**
- * Instrument Name
- * @default
- */
- instrument_name?: string;
- /**
- * Process
- * @default
- */
- process?: boolean;
- visit_end_time: string;
- };
- /** SessionClients */
- SessionClients: {
- session: components["schemas"]["Session"];
- /** Clients */
- clients: components["schemas"]["ClientEnvironment"][];
- };
- /** SessionInfo */
- SessionInfo: {
- /** Session Id */
- session_id?: number;
- /**
- * Session Name
- * @default
- */
- session_name?: string;
- /**
- * Rescale
- * @default true
- */
- rescale?: boolean;
- };
- /** SmartEMAtlasRequest */
- SmartEMAtlasRequest: {
- /**
- * Atlas Path
- * Format: path
- */
- atlas_path: string;
- /**
- * Output Dir
- * Format: path
- */
- output_dir: string;
- /** Tag */
- tag: string;
- /**
- * Num Preds
- * @default 15
- */
- num_preds?: number;
- /**
- * Cpus
- * @default 4
- */
- cpus?: number;
- };
- /** Source */
- Source: {
- /** Rsync Source */
- rsync_source: string;
- };
- /** SuggestedPathParameters */
- SuggestedPathParameters: {
- /**
- * Base Path
- * Format: path
- */
- base_path: string;
- /**
- * Touch
- * @default false
- */
- touch?: boolean;
- /**
- * Extra Directory
- * @default
- */
- extra_directory?: string;
- };
- /** TIFFSeriesInfo */
- TIFFSeriesInfo: {
- /** Series Name */
- series_name: string;
- /** Tiff Files */
- tiff_files: string[];
- /**
- * Series Metadata
- * Format: path
- */
- series_metadata: string;
- };
- /** Tag */
- Tag: {
- /** Tag */
- tag: string;
- };
- /** TiltInfo */
- TiltInfo: {
- /** Tilt Series Tag */
- tilt_series_tag: string;
- /** Movie Path */
- movie_path: string;
- /** Source */
- source: string;
- };
- /** TiltSeriesGroupInfo */
- TiltSeriesGroupInfo: {
- /** Tags */
- tags: string[];
- /** Source */
- source: string;
- /** Tilt Series Lengths */
- tilt_series_lengths: number[];
- };
- /** TiltSeriesInfo */
- TiltSeriesInfo: {
- /** Session Id */
- session_id: number;
- /** Tag */
- tag: string;
- /** Source */
- source: string;
- };
- /** Token */
- Token: {
- /** Access Token */
- access_token: string;
- /** Token Type */
- token_type: string;
- };
- /** TomoProcessFile */
- TomoProcessFile: {
- /** Path */
- path: string;
- /** Description */
- description: string;
- /** Tag */
- tag: string;
- /** Image Number */
- image_number: number;
- /** Pixel Size */
- pixel_size: number;
- /** Dose Per Frame */
- dose_per_frame?: number;
- /** Frame Count */
- frame_count: number;
- /** Tilt Axis */
- tilt_axis?: number;
- /** Mc Uuid */
- mc_uuid?: number;
- /**
- * Voltage
- * @default 300
- */
- voltage?: number;
- /**
- * Mc Binning
- * @default 1
- */
- mc_binning?: number;
- /** Gain Ref */
- gain_ref?: string;
- /**
- * Extract Downscale
- * @default 1
- */
- extract_downscale?: number;
- /** Eer Fractionation File */
- eer_fractionation_file?: string;
- /** Group Tag */
- group_tag?: string;
- };
- /** ValidationError */
- ValidationError: {
- /** Location */
- loc: (string | number)[];
- /** Message */
- msg: string;
- /** Error Type */
- type: string;
- };
- /** Visit */
- Visit: {
- /**
- * Start
- * Format: date-time
- */
- start: string;
- /**
- * End
- * Format: date-time
- */
- end: string;
- /** Session Id */
- session_id: number;
- /** Name */
- name: string;
- /** Beamline */
- beamline: string;
- /** Proposal Title */
- proposal_title: string;
- };
- /** RsyncerSource */
- murfey__server__api__instrument__RsyncerSource: {
- /** Source */
- source: string;
- };
- /** RsyncerSource */
- murfey__util__models__RsyncerSource: {
- /** Source */
- source: string;
- };
- };
- responses: never;
- parameters: never;
- requestBodies: never;
- headers: never;
- pathItems: never;
-}
-
-export type $defs = Record;
-
-export type external = Record;
-
-export interface operations {
-
- /** Root */
- root__get: {
- responses: {
- /** @description Successful Response */
- 200: {
- content: {
- "text/html": string;
- };
- };
- };
- };
- /** Machine Info */
- machine_info_machine_get: {
- responses: {
- /** @description Successful Response */
- 200: {
- content: {
- "application/json": components["schemas"]["MachineConfig"];
- };
- };
- };
- };
- /** Machine Info By Name */
- machine_info_by_name_instruments__instrument_name__machine_get: {
- parameters: {
- path: {
- instrument_name: string;
- };
- };
- responses: {
- /** @description Successful Response */
- 200: {
- content: {
- "application/json": components["schemas"]["MachineConfig"];
- };
- };
- /** @description Validation Error */
- 422: {
- content: {
- "application/json": components["schemas"]["HTTPValidationError"];
- };
- };
- };
- };
- /** Get Mic Image */
- get_mic_image_microscope_image__get: {
- responses: {
- /** @description Successful Response */
- 200: {
- content: {
- "application/json": unknown;
- };
- };
- };
- };
- /** Get Mag Table */
- get_mag_table_mag_table__get: {
- responses: {
- /** @description Successful Response */
- 200: {
- content: {
- "application/json": components["schemas"]["MagnificationLookup"][];
- };
- };
- };
- };
- /** Add To Mag Table */
- add_to_mag_table_mag_table__post: {
- requestBody: {
- content: {
- "application/json": components["schemas"]["MagnificationLookup"][];
- };
- };
- responses: {
- /** @description Successful Response */
- 200: {
- content: {
- "application/json": unknown;
- };
- };
- /** @description Validation Error */
- 422: {
- content: {
- "application/json": components["schemas"]["HTTPValidationError"];
- };
- };
- };
- };
- /** Remove Mag Table Row */
- remove_mag_table_row_mag_table__mag__delete: {
- parameters: {
- path: {
- mag: number;
- };
- };
- responses: {
- /** @description Successful Response */
- 200: {
- content: {
- "application/json": unknown;
- };
- };
- /** @description Validation Error */
- 422: {
- content: {
- "application/json": components["schemas"]["HTTPValidationError"];
- };
- };
- };
- };
- /** Get Instrument Display Name */
- get_instrument_display_name_instruments__instrument_name__instrument_name_get: {
- parameters: {
- path: {
- instrument_name: string;
- };
- };
- responses: {
- /** @description Successful Response */
- 200: {
- content: {
- "application/json": string;
- };
- };
- /** @description Validation Error */
- 422: {
- content: {
- "application/json": components["schemas"]["HTTPValidationError"];
- };
- };
- };
- };
- /** All Visit Info */
- all_visit_info_instruments__instrument_name__visits__get: {
- parameters: {
- path: {
- instrument_name: string;
- };
- };
- responses: {
- /** @description Successful Response */
- 200: {
- content: {
- "application/json": unknown;
- };
- };
- /** @description Validation Error */
- 422: {
- content: {
- "application/json": components["schemas"]["HTTPValidationError"];
- };
- };
- };
- };
- /** Visit Info */
- visit_info_visits__visit_name__get: {
- parameters: {
- path: {
- visit_name: string;
- };
- };
- responses: {
- /** @description Successful Response */
- 200: {
- content: {
- "application/json": unknown;
- };
- };
- /** @description Validation Error */
- 422: {
- content: {
- "application/json": components["schemas"]["HTTPValidationError"];
- };
- };
- };
- };
- /** Register Client To Visit */
- register_client_to_visit_visits__visit_name__post: {
- parameters: {
- path: {
- visit_name: string;
- };
- };
- requestBody: {
- content: {
- "application/json": components["schemas"]["ClientInfo"];
- };
- };
- responses: {
- /** @description Successful Response */
- 200: {
- content: {
- "application/json": unknown;
- };
- };
- /** @description Validation Error */
- 422: {
- content: {
- "application/json": components["schemas"]["HTTPValidationError"];
- };
- };
- };
- };
- /** Count Number Of Movies */
- count_number_of_movies_num_movies_get: {
- responses: {
- /** @description Successful Response */
- 200: {
- content: {
- "application/json": {
- [key: string]: number;
- };
- };
- };
- };
- };
- /** Register Rsyncer */
- register_rsyncer_sessions__session_id__rsyncer_post: {
- parameters: {
- path: {
- session_id: number;
- };
- };
- requestBody: {
- content: {
- "application/json": components["schemas"]["RsyncerInfo"];
- };
- };
- responses: {
- /** @description Successful Response */
- 200: {
- content: {
- "application/json": unknown;
- };
- };
- /** @description Validation Error */
- 422: {
- content: {
- "application/json": components["schemas"]["HTTPValidationError"];
- };
- };
- };
- };
- /** Delete Rsyncer */
- delete_rsyncer_sessions__session_id__rsyncer__source__delete: {
- parameters: {
- path: {
- session_id: number;
- source: string;
- };
- };
- responses: {
- /** @description Successful Response */
- 200: {
- content: {
- "application/json": unknown;
- };
- };
- /** @description Validation Error */
- 422: {
- content: {
- "application/json": components["schemas"]["HTTPValidationError"];
- };
- };
- };
- };
- /** Register Stopped Rsyncer */
- register_stopped_rsyncer_sessions__session_id__rsyncer_stopped_post: {
- parameters: {
- path: {
- session_id: number;
- };
- };
- requestBody: {
- content: {
- "application/json": components["schemas"]["murfey__util__models__RsyncerSource"];
- };
- };
- responses: {
- /** @description Successful Response */
- 200: {
- content: {
- "application/json": unknown;
- };
- };
- /** @description Validation Error */
- 422: {
- content: {
- "application/json": components["schemas"]["HTTPValidationError"];
- };
- };
- };
- };
- /** Register Restarted Rsyncer */
- register_restarted_rsyncer_sessions__session_id__rsyncer_started_post: {
- parameters: {
- path: {
- session_id: number;
- };
- };
- requestBody: {
- content: {
- "application/json": components["schemas"]["murfey__util__models__RsyncerSource"];
- };
- };
- responses: {
- /** @description Successful Response */
- 200: {
- content: {
- "application/json": unknown;
- };
- };
- /** @description Validation Error */
- 422: {
- content: {
- "application/json": components["schemas"]["HTTPValidationError"];
- };
- };
- };
- };
- /** Get Rsyncers For Client */
- get_rsyncers_for_client_clients__client_id__rsyncers_get: {
- parameters: {
- path: {
- client_id: number;
- };
- };
- responses: {
- /** @description Successful Response */
- 200: {
- content: {
- "application/json": unknown;
- };
- };
- /** @description Validation Error */
- 422: {
- content: {
- "application/json": components["schemas"]["HTTPValidationError"];
- };
- };
- };
- };
- /** Get Session */
- get_session_session__session_id__get: {
- parameters: {
- path: {
- session_id: number;
- };
- };
- responses: {
- /** @description Successful Response */
- 200: {
- content: {
- "application/json": components["schemas"]["SessionClients"];
- };
- };
- /** @description Validation Error */
- 422: {
- content: {
- "application/json": components["schemas"]["HTTPValidationError"];
- };
- };
- };
- };
- /** Increment Rsync File Count */
- increment_rsync_file_count_visits__visit_name__increment_rsync_file_count_post: {
- parameters: {
- path: {
- visit_name: string;
- };
- };
- requestBody: {
- content: {
- "application/json": components["schemas"]["RsyncerInfo"];
- };
- };
- responses: {
- /** @description Successful Response */
- 200: {
- content: {
- "application/json": unknown;
- };
- };
- /** @description Validation Error */
- 422: {
- content: {
- "application/json": components["schemas"]["HTTPValidationError"];
- };
- };
- };
- };
- /** Increment Rsync Transferred Files */
- increment_rsync_transferred_files_visits__visit_name__increment_rsync_transferred_files_post: {
- parameters: {
- path: {
- visit_name: string;
- };
- };
- requestBody: {
- content: {
- "application/json": components["schemas"]["RsyncerInfo"];
- };
- };
- responses: {
- /** @description Successful Response */
- 200: {
- content: {
- "application/json": unknown;
- };
- };
- /** @description Validation Error */
- 422: {
- content: {
- "application/json": components["schemas"]["HTTPValidationError"];
- };
- };
- };
- };
- /** Increment Rsync Transferred Files Prometheus */
- increment_rsync_transferred_files_prometheus_visits__visit_name__increment_rsync_transferred_files_prometheus_post: {
- parameters: {
- path: {
- visit_name: string;
- };
- };
- requestBody: {
- content: {
- "application/json": components["schemas"]["RsyncerInfo"];
- };
- };
- responses: {
- /** @description Successful Response */
- 200: {
- content: {
- "application/json": unknown;
- };
- };
- /** @description Validation Error */
- 422: {
- content: {
- "application/json": components["schemas"]["HTTPValidationError"];
- };
- };
- };
- };
- /** Get Spa Proc Param Details */
- get_spa_proc_param_details_sessions__session_id__spa_processing_parameters_get: {
- parameters: {
- path: {
- session_id: number;
- };
- };
- responses: {
- /** @description Successful Response */
- 200: {
- content: {
- "application/json": components["schemas"]["ProcessingDetails"][];
- };
- };
- /** @description Validation Error */
- 422: {
- content: {
- "application/json": components["schemas"]["HTTPValidationError"];
- };
- };
- };
- };
- /** Register Spa Proc Params */
- register_spa_proc_params_sessions__session_id__spa_processing_parameters_post: {
- parameters: {
- path: {
- session_id: number;
- };
- };
- requestBody: {
- content: {
- "application/json": components["schemas"]["ProcessingParametersSPA"];
- };
- };
- responses: {
- /** @description Successful Response */
- 200: {
- content: {
- "application/json": unknown;
- };
- };
- /** @description Validation Error */
- 422: {
- content: {
- "application/json": components["schemas"]["HTTPValidationError"];
- };
- };
- };
- };
- /** Register Tomo Preproc Params */
- register_tomo_preproc_params_sessions__session_id__tomography_preprocessing_parameters_post: {
- parameters: {
- path: {
- session_id: number;
- };
- };
- requestBody: {
- content: {
- "application/json": components["schemas"]["PreprocessingParametersTomo"];
- };
- };
- responses: {
- /** @description Successful Response */
- 200: {
- content: {
- "application/json": unknown;
- };
- };
- /** @description Validation Error */
- 422: {
- content: {
- "application/json": components["schemas"]["HTTPValidationError"];
- };
- };
- };
- };
- /** Register Tomo Proc Params */
- register_tomo_proc_params_clients__client_id__tomography_processing_parameters_post: {
- parameters: {
- path: {
- client_id: number;
- };
- };
- requestBody: {
- content: {
- "application/json": components["schemas"]["ProcessingParametersTomo"];
- };
- };
- responses: {
- /** @description Successful Response */
- 200: {
- content: {
- "application/json": unknown;
- };
- };
- /** @description Validation Error */
- 422: {
- content: {
- "application/json": components["schemas"]["HTTPValidationError"];
- };
- };
- };
- };
- /** Get Spa Proc Params */
- get_spa_proc_params_clients__client_id__spa_processing_parameters_get: {
- parameters: {
- path: {
- client_id: number;
- };
- };
- responses: {
- /** @description Successful Response */
- 200: {
- content: {
- "application/json": Record[];
- };
- };
- /** @description Validation Error */
- 422: {
- content: {
- "application/json": components["schemas"]["HTTPValidationError"];
- };
- };
- };
- };
- /** Get Grid Squares */
- get_grid_squares_sessions__session_id__grid_squares_get: {
- parameters: {
- path: {
- session_id: number;
- };
- };
- responses: {
- /** @description Successful Response */
- 200: {
- content: {
- "application/json": unknown;
- };
- };
- /** @description Validation Error */
- 422: {
- content: {
- "application/json": components["schemas"]["HTTPValidationError"];
- };
- };
- };
- };
- /** Get Grid Squares From Dcg */
- get_grid_squares_from_dcg_sessions__session_id__data_collection_groups__dcgid__grid_squares_get: {
- parameters: {
- path: {
- session_id: number;
- dcgid: number;
- };
- };
- responses: {
- /** @description Successful Response */
- 200: {
- content: {
- "application/json": components["schemas"]["GridSquare"][];
- };
- };
- /** @description Validation Error */
- 422: {
- content: {
- "application/json": components["schemas"]["HTTPValidationError"];
- };
- };
- };
- };
- /** Get Number Of Movies From Grid Square */
- get_number_of_movies_from_grid_square_sessions__session_id__data_collection_groups__dcgid__grid_squares__gsid__num_movies_get: {
- parameters: {
- path: {
- session_id: number;
- dcgid: number;
- gsid: number;
- };
- };
- responses: {
- /** @description Successful Response */
- 200: {
- content: {
- "application/json": number;
- };
- };
- /** @description Validation Error */
- 422: {
- content: {
- "application/json": components["schemas"]["HTTPValidationError"];
- };
- };
- };
- };
- /** Get Foil Holes From Grid Square */
- get_foil_holes_from_grid_square_sessions__session_id__data_collection_groups__dcgid__grid_squares__gsid__foil_holes_get: {
- parameters: {
- path: {
- session_id: number;
- dcgid: number;
- gsid: number;
- };
- };
- responses: {
- /** @description Successful Response */
- 200: {
- content: {
- "application/json": components["schemas"]["FoilHole"][];
- };
- };
- /** @description Validation Error */
- 422: {
- content: {
- "application/json": components["schemas"]["HTTPValidationError"];
- };
- };
- };
- };
- /** Get Number Of Movies From Foil Hole */
- get_number_of_movies_from_foil_hole_sessions__session_id__data_collection_groups__dcgid__grid_squares__gsid__foil_holes__fhid__num_movies_get: {
- parameters: {
- path: {
- session_id: number;
- dcgid: number;
- gsid: number;
- fhid: number;
- };
- };
- responses: {
- /** @description Successful Response */
- 200: {
- content: {
- "application/json": number;
- };
- };
- /** @description Validation Error */
- 422: {
- content: {
- "application/json": components["schemas"]["HTTPValidationError"];
- };
- };
- };
- };
- /** Register Grid Square */
- register_grid_square_sessions__session_id__grid_square__gsid__post: {
- parameters: {
- path: {
- session_id: number;
- gsid: number;
- };
- };
- requestBody: {
- content: {
- "application/json": components["schemas"]["GridSquareParameters"];
- };
- };
- responses: {
- /** @description Successful Response */
- 200: {
- content: {
- "application/json": unknown;
- };
- };
- /** @description Validation Error */
- 422: {
- content: {
- "application/json": components["schemas"]["HTTPValidationError"];
- };
- };
- };
- };
- /** Get Foil Hole */
- get_foil_hole_sessions__session_id__foil_hole__fh_name__get: {
- parameters: {
- path: {
- fh_name: number;
- session_id: number;
- };
- };
- responses: {
- /** @description Successful Response */
- 200: {
- content: {
- "application/json": {
- [key: string]: number;
- };
- };
- };
- /** @description Validation Error */
- 422: {
- content: {
- "application/json": components["schemas"]["HTTPValidationError"];
- };
- };
- };
- };
- /** Register Foil Hole */
- register_foil_hole_sessions__session_id__grid_square__gs_name__foil_hole_post: {
- parameters: {
- path: {
- gs_name: number;
- session_id: number;
- };
- };
- requestBody: {
- content: {
- "application/json": components["schemas"]["FoilHoleParameters"];
- };
- };
- responses: {
- /** @description Successful Response */
- 200: {
- content: {
- "application/json": unknown;
- };
- };
- /** @description Validation Error */
- 422: {
- content: {
- "application/json": components["schemas"]["HTTPValidationError"];
- };
- };
- };
- };
- /** Register Tilt Series */
- register_tilt_series_visits__visit_name__tilt_series_post: {
- parameters: {
- path: {
- visit_name: string;
- };
- };
- requestBody: {
- content: {
- "application/json": components["schemas"]["TiltSeriesInfo"];
- };
- };
- responses: {
- /** @description Successful Response */
- 200: {
- content: {
- "application/json": unknown;
- };
- };
- /** @description Validation Error */
- 422: {
- content: {
- "application/json": components["schemas"]["HTTPValidationError"];
- };
- };
- };
- };
- /** Register Completed Tilt Series */
- register_completed_tilt_series_visits__visit_name___client_id__completed_tilt_series_post: {
- parameters: {
- path: {
- visit_name: string;
- client_id: number;
- };
- };
- requestBody: {
- content: {
- "application/json": components["schemas"]["TiltSeriesGroupInfo"];
- };
- };
- responses: {
- /** @description Successful Response */
- 200: {
- content: {
- "application/json": unknown;
- };
- };
- /** @description Validation Error */
- 422: {
- content: {
- "application/json": components["schemas"]["HTTPValidationError"];
- };
- };
- };
- };
- /** Get Tilts */
- get_tilts_clients__client_id__tilt_series__tilt_series_tag__tilts_get: {
- parameters: {
- path: {
- client_id: number;
- tilt_series_tag: string;
- };
- };
- responses: {
- /** @description Successful Response */
- 200: {
- content: {
- "application/json": unknown;
- };
- };
- /** @description Validation Error */
- 422: {
- content: {
- "application/json": components["schemas"]["HTTPValidationError"];
- };
- };
- };
- };
- /** Register Tilt */
- register_tilt_visits__visit_name___client_id__tilt_post: {
- parameters: {
- path: {
- visit_name: string;
- client_id: number;
- };
- };
- requestBody: {
- content: {
- "application/json": components["schemas"]["TiltInfo"];
- };
- };
- responses: {
- /** @description Successful Response */
- 200: {
- content: {
- "application/json": unknown;
- };
- };
- /** @description Validation Error */
- 422: {
- content: {
- "application/json": components["schemas"]["HTTPValidationError"];
- };
- };
- };
- };
- /** Get Current Visits */
- get_current_visits_instruments__instrument_name__visits_raw_get: {
- parameters: {
- path: {
- instrument_name: string;
- };
- };
- responses: {
- /** @description Successful Response */
- 200: {
- content: {
- "application/json": components["schemas"]["Visit"][];
- };
- };
- /** @description Validation Error */
- 422: {
- content: {
- "application/json": components["schemas"]["HTTPValidationError"];
- };
- };
- };
- };
- /** Send Murfey Message */
- send_murfey_message_feedback_post: {
- requestBody: {
- content: {
- "application/json": components["schemas"]["RegistrationMessage"];
- };
- };
- responses: {
- /** @description Successful Response */
- 200: {
- content: {
- "application/json": unknown;
- };
- };
- /** @description Validation Error */
- 422: {
- content: {
- "application/json": components["schemas"]["HTTPValidationError"];
- };
- };
- };
- };
- /** Flush Spa Processing */
- flush_spa_processing_visits__visit_name___session_id__flush_spa_processing_post: {
- parameters: {
- path: {
- visit_name: string;
- session_id: number;
- };
- };
- requestBody: {
- content: {
- "application/json": components["schemas"]["Tag"];
- };
- };
- responses: {
- /** @description Successful Response */
- 200: {
- content: {
- "application/json": unknown;
- };
- };
- /** @description Validation Error */
- 422: {
- content: {
- "application/json": components["schemas"]["HTTPValidationError"];
- };
- };
- };
- };
- /** Request Spa Preprocessing */
- request_spa_preprocessing_visits__visit_name___session_id__spa_preprocess_post: {
- parameters: {
- path: {
- visit_name: string;
- session_id: number;
- };
- };
- requestBody: {
- content: {
- "application/json": components["schemas"]["SPAProcessFile"];
- };
- };
- responses: {
- /** @description Successful Response */
- 200: {
- content: {
- "application/json": unknown;
- };
- };
- /** @description Validation Error */
- 422: {
- content: {
- "application/json": components["schemas"]["HTTPValidationError"];
- };
- };
- };
- };
- /** Flush Tomography Processing */
- flush_tomography_processing_visits__visit_name___client_id__flush_tomography_processing_post: {
- parameters: {
- path: {
- visit_name: string;
- client_id: number;
- };
- };
- requestBody: {
- content: {
- "application/json": components["schemas"]["Source"];
- };
- };
- responses: {
- /** @description Successful Response */
- 200: {
- content: {
- "application/json": unknown;
- };
- };
- /** @description Validation Error */
- 422: {
- content: {
- "application/json": components["schemas"]["HTTPValidationError"];
- };
- };
- };
- };
- /** Request Tomography Preprocessing */
- request_tomography_preprocessing_visits__visit_name___client_id__tomography_preprocess_post: {
- parameters: {
- path: {
- visit_name: string;
- client_id: number;
- };
- };
- requestBody: {
- content: {
- "application/json": components["schemas"]["TomoProcessFile"];
- };
- };
- responses: {
- /** @description Successful Response */
- 200: {
- content: {
- "application/json": unknown;
- };
- };
- /** @description Validation Error */
- 422: {
- content: {
- "application/json": components["schemas"]["HTTPValidationError"];
- };
- };
- };
- };
- /** Get Version */
- get_version_version_get: {
- parameters: {
- query?: {
- client_version?: string;
- };
- };
- responses: {
- /** @description Successful Response */
- 200: {
- content: {
- "application/json": unknown;
- };
- };
- /** @description Validation Error */
- 422: {
- content: {
- "application/json": components["schemas"]["HTTPValidationError"];
- };
- };
- };
- };
- /** Suggest Path */
- suggest_path_visits__visit_name___session_id__suggested_path_post: {
- parameters: {
- path: {
- visit_name: string;
- session_id: number;
- };
- };
- requestBody: {
- content: {
- "application/json": components["schemas"]["SuggestedPathParameters"];
- };
- };
- responses: {
- /** @description Successful Response */
- 200: {
- content: {
- "application/json": unknown;
- };
- };
- /** @description Validation Error */
- 422: {
- content: {
- "application/json": components["schemas"]["HTTPValidationError"];
- };
- };
- };
- };
- /** Get Dc Groups */
- get_dc_groups_sessions__session_id__data_collection_groups_get: {
- parameters: {
- path: {
- session_id: number;
- };
- };
- responses: {
- /** @description Successful Response */
- 200: {
- content: {
- "application/json": {
- [key: string]: components["schemas"]["DataCollectionGroup"];
- };
- };
- };
- /** @description Validation Error */
- 422: {
- content: {
- "application/json": components["schemas"]["HTTPValidationError"];
- };
- };
- };
- };
- /** Get Data Collections */
- get_data_collections_sessions__session_id__data_collection_groups__dcgid__data_collections_get: {
- parameters: {
- path: {
- dcgid: number;
- session_id: number;
- };
- };
- responses: {
- /** @description Successful Response */
- 200: {
- content: {
- "application/json": components["schemas"]["DataCollection"][];
- };
- };
- /** @description Validation Error */
- 422: {
- content: {
- "application/json": components["schemas"]["HTTPValidationError"];
- };
- };
- };
- };
- /** Register Dc Group */
- register_dc_group_visits__visit_name___session_id__register_data_collection_group_post: {
- parameters: {
- path: {
- visit_name: string;
- session_id: number;
- };
- };
- requestBody: {
- content: {
- "application/json": components["schemas"]["DCGroupParameters"];
- };
- };
- responses: {
- /** @description Successful Response */
- 200: {
- content: {
- "application/json": unknown;
- };
- };
- /** @description Validation Error */
- 422: {
- content: {
- "application/json": components["schemas"]["HTTPValidationError"];
- };
- };
- };
- };
- /** Start Dc */
- start_dc_visits__visit_name___session_id__start_data_collection_post: {
- parameters: {
- path: {
- visit_name: string;
- session_id: number;
- };
- };
- requestBody: {
- content: {
- "application/json": components["schemas"]["DCParameters"];
- };
- };
- responses: {
- /** @description Successful Response */
- 200: {
- content: {
- "application/json": components["schemas"]["DCParameters"];
- };
- };
- /** @description Validation Error */
- 422: {
- content: {
- "application/json": components["schemas"]["HTTPValidationError"];
- };
- };
- };
- };
- /** Register Proc */
- register_proc_visits__visit_name___session_id__register_processing_job_post: {
- parameters: {
- path: {
- visit_name: unknown;
- session_id: number;
- };
- };
- requestBody: {
- content: {
- "application/json": components["schemas"]["ProcessingJobParameters"];
- };
- };
- responses: {
- /** @description Successful Response */
- 200: {
- content: {
- "application/json": unknown;
- };
- };
- /** @description Validation Error */
- 422: {
- content: {
- "application/json": components["schemas"]["HTTPValidationError"];
- };
- };
- };
- };
- /** Process Gain */
- process_gain_sessions__session_id__process_gain_post: {
- parameters: {
- path: {
- session_id: number;
- };
- };
- requestBody: {
- content: {
- "application/json": components["schemas"]["GainReference"];
- };
- };
- responses: {
- /** @description Successful Response */
- 200: {
- content: {
- "application/json": unknown;
- };
- };
- /** @description Validation Error */
- 422: {
- content: {
- "application/json": components["schemas"]["HTTPValidationError"];
- };
- };
- };
- };
- /** New Client Id */
- new_client_id_new_client_id__get: {
- responses: {
- /** @description Successful Response */
- 200: {
- content: {
- "application/json": unknown;
- };
- };
- };
- };
- /** Get Clients */
- get_clients_clients_get: {
- responses: {
- /** @description Successful Response */
- 200: {
- content: {
- "application/json": unknown;
- };
- };
- };
- };
- /** Get Sessions */
- get_sessions_sessions_get: {
- responses: {
- /** @description Successful Response */
- 200: {
- content: {
- "application/json": unknown;
- };
- };
- };
- };
- /** Get Sessions By Instrument Name */
- get_sessions_by_instrument_name_instruments__instrument_name__sessions_get: {
- parameters: {
- path: {
- instrument_name: string;
- };
- };
- responses: {
- /** @description Successful Response */
- 200: {
- content: {
- "application/json": components["schemas"]["Session"][];
- };
- };
- /** @description Validation Error */
- 422: {
- content: {
- "application/json": components["schemas"]["HTTPValidationError"];
- };
- };
- };
- };
- /** Link Client To Session */
- link_client_to_session_instruments__instrument_name__clients__client_id__session_post: {
- parameters: {
- path: {
- instrument_name: string;
- client_id: number;
- };
- };
- requestBody: {
- content: {
- "application/json": components["schemas"]["SessionInfo"];
- };
- };
- responses: {
- /** @description Successful Response */
- 200: {
- content: {
- "application/json": unknown;
- };
- };
- /** @description Validation Error */
- 422: {
- content: {
- "application/json": components["schemas"]["HTTPValidationError"];
- };
- };
- };
- };
- /** Remove Session */
- remove_session_clients__client_id__session_delete: {
- parameters: {
- path: {
- client_id: number;
- };
- };
- responses: {
- /** @description Successful Response */
- 200: {
- content: {
- "application/json": unknown;
- };
- };
- /** @description Validation Error */
- 422: {
- content: {
- "application/json": components["schemas"]["HTTPValidationError"];
- };
- };
- };
- };
- /** Get Rsyncers For Session */
- get_rsyncers_for_session_sessions__session_id__rsyncers_get: {
- parameters: {
- path: {
- session_id: number;
- };
- };
- responses: {
- /** @description Successful Response */
- 200: {
- content: {
- "application/json": components["schemas"]["RsyncInstance"][];
- };
- };
- /** @description Validation Error */
- 422: {
- content: {
- "application/json": components["schemas"]["HTTPValidationError"];
- };
- };
- };
- };
- /** Remove Session By Id */
- remove_session_by_id_sessions__session_id__delete: {
- parameters: {
- path: {
- session_id: number;
- };
- };
- responses: {
- /** @description Successful Response */
- 200: {
- content: {
- "application/json": unknown;
- };
- };
- /** @description Validation Error */
- 422: {
- content: {
- "application/json": components["schemas"]["HTTPValidationError"];
- };
- };
- };
- };
- /** Write Eer Fractionation File */
- write_eer_fractionation_file_visits__visit_name___session_id__eer_fractionation_file_post: {
- parameters: {
- path: {
- visit_name: string;
- session_id: number;
- };
- };
- requestBody: {
- content: {
- "application/json": components["schemas"]["FractionationParameters"];
- };
- };
- responses: {
- /** @description Successful Response */
- 200: {
- content: {
- "application/json": Record;
- };
- };
- /** @description Validation Error */
- 422: {
- content: {
- "application/json": components["schemas"]["HTTPValidationError"];
- };
- };
- };
- };
- /** Change Monitoring Status */
- change_monitoring_status_visits__visit_name__monitoring__on__post: {
- parameters: {
- path: {
- visit_name: string;
- on: number;
- };
- };
- responses: {
- /** @description Successful Response */
- 200: {
- content: {
- "application/json": unknown;
- };
- };
- /** @description Validation Error */
- 422: {
- content: {
- "application/json": components["schemas"]["HTTPValidationError"];
- };
- };
- };
- };
- /** Find Upstream Visits */
- find_upstream_visits_sessions__session_id__upstream_visits_get: {
- parameters: {
- path: {
- session_id: number;
- };
- };
- responses: {
- /** @description Successful Response */
- 200: {
- content: {
- "application/json": unknown;
- };
- };
- /** @description Validation Error */
- 422: {
- content: {
- "application/json": components["schemas"]["HTTPValidationError"];
- };
- };
- };
- };
- /** Gather Upstream Tiffs */
- gather_upstream_tiffs_visits__visit_name___session_id__upstream_tiff_paths_get: {
- parameters: {
- path: {
- visit_name: string;
- session_id: number;
- };
- };
- responses: {
- /** @description Successful Response */
- 200: {
- content: {
- "application/json": unknown;
- };
- };
- /** @description Validation Error */
- 422: {
- content: {
- "application/json": components["schemas"]["HTTPValidationError"];
- };
- };
- };
- };
- /** Get Tiff */
- get_tiff_visits__visit_name___session_id__upstream_tiff__tiff_path__get: {
- parameters: {
- path: {
- visit_name: string;
- session_id: number;
- tiff_path: string;
- };
- };
- responses: {
- /** @description Successful Response */
- 200: {
- content: {
- "application/json": unknown;
- };
- };
- /** @description Validation Error */
- 422: {
- content: {
- "application/json": components["schemas"]["HTTPValidationError"];
- };
- };
- };
- };
- /** Failed Client Post */
- failed_client_post_failed_client_post_post: {
- requestBody: {
- content: {
- "application/json": components["schemas"]["PostInfo"];
- };
- };
- responses: {
- /** @description Successful Response */
- 200: {
- content: {
- "application/json": unknown;
- };
- };
- /** @description Validation Error */
- 422: {
- content: {
- "application/json": components["schemas"]["HTTPValidationError"];
- };
- };
- };
- };
- /** Create Session */
- create_session_instruments__instrument_name__visits__visit__session__name__post: {
- parameters: {
- path: {
- instrument_name: string;
- visit: string;
- name: string;
- };
- };
- responses: {
- /** @description Successful Response */
- 200: {
- content: {
- "application/json": number;
- };
- };
- /** @description Validation Error */
- 422: {
- content: {
- "application/json": components["schemas"]["HTTPValidationError"];
- };
- };
- };
- };
- /** Update Current Gain Ref */
- update_current_gain_ref_sessions__session_id__current_gain_ref_put: {
- parameters: {
- path: {
- session_id: number;
- };
- };
- requestBody: {
- content: {
- "application/json": components["schemas"]["CurrentGainRef"];
- };
- };
- responses: {
- /** @description Successful Response */
- 200: {
- content: {
- "application/json": unknown;
- };
- };
- /** @description Validation Error */
- 422: {
- content: {
- "application/json": components["schemas"]["HTTPValidationError"];
- };
- };
- };
- };
- /** Get Version */
- get_version_version__get: {
- parameters: {
- query?: {
- client_version?: string;
- };
- };
- responses: {
- /** @description Successful Response */
- 200: {
- content: {
- "application/json": unknown;
- };
- };
- /** @description Validation Error */
- 422: {
- content: {
- "application/json": components["schemas"]["HTTPValidationError"];
- };
- };
- };
- };
- /**
- * Get Bootstrap Instructions
- * @description Return a website containing instructions for installing the Murfey client on a
- * machine with no internet access.
- */
- get_bootstrap_instructions_bootstrap__get: {
- responses: {
- /** @description Successful Response */
- 200: {
- content: {
- "text/html": string;
- };
- };
- };
- };
- /**
- * Get Pip Wheel
- * @description Return a static version of pip. This does not need to be the newest or best,
- * but has to be compatible with all supported Python versions.
- * This is only used during bootstrapping by the client to identify and then
- * download the actually newest appropriate version of pip.
- */
- get_pip_wheel_bootstrap_pip_whl_get: {
- responses: {
- /** @description Successful Response */
- 200: {
- content: never;
- };
- };
- };
- /**
- * Get Murfey Wheel
- * @description Return a wheel file containing the latest release version of Murfey. We should
- * not have to worry about the exact Python compatibility here, as long as
- * murfey.bootstrap is compatible with all relevant versions of Python.
- * This also ignores yanked releases, which again should be fine.
- */
- get_murfey_wheel_bootstrap_murfey_whl_get: {
- responses: {
- /** @description Successful Response */
- 200: {
- content: never;
- };
- };
- };
- /**
- * Get Cygwin Setup
- * @description Obtain and pass through a Cygwin installer from an official source.
- * This is used during client bootstrapping and can download and install the
- * Cygwin distribution that then remains on the client machines.
- */
- get_cygwin_setup_cygwin_setup_x86_64_exe_get: {
- responses: {
- /** @description Successful Response */
- 200: {
- content: never;
- };
- };
- };
- /**
- * Parse Cygwin Request
- * @description Forward a Cygwin setup request to an official mirror.
- */
- parse_cygwin_request_cygwin__request_path__get: {
- parameters: {
- path: {
- request_path: string;
- };
- };
- responses: {
- /** @description Successful Response */
- 200: {
- content: never;
- };
- /** @description Validation Error */
- 422: {
- content: {
- "application/json": components["schemas"]["HTTPValidationError"];
- };
- };
- };
- };
- /**
- * Get Pacman Mirrors
- * @description Dynamically generates a zip file containing mirrorlist files that have been set
- * up to mirror the MSYS2 package database for each environment.
- *
- * The files in this folder should be pasted into, and overwrite, the 'mirrorlist'
- * files present in the %MSYS64%\etc\pacman.d folder. The default path to this
- * folder is C:\msys64\etc\pacman.d.
- */
- get_pacman_mirrors_msys2_config_pacman_d_zip_get: {
- responses: {
- /** @description Successful Response */
- 200: {
- content: never;
- };
- };
- };
- /**
- * Get Msys2 Setup
- * @description Obtain and pass through an MSYS2 installer from an official source.
- * This is used during client bootstrapping, and can download and install the
- * MSYS2 distribution that then remains on the client machines.
- */
- get_msys2_setup_msys2_repo_distrib__setup_file__get: {
- parameters: {
- path: {
- setup_file: string;
- };
- };
- responses: {
- /** @description Successful Response */
- 200: {
- content: never;
- };
- /** @description Validation Error */
- 422: {
- content: {
- "application/json": components["schemas"]["HTTPValidationError"];
- };
- };
- };
- };
- /**
- * Get Msys2 Main Index
- * @description Returns a simple index displaying valid MSYS2 systems and the latest setup file
- * from the main MSYS2 repository.
- */
- get_msys2_main_index_msys2_repo__get: {
- responses: {
- /** @description Successful Response */
- 200: {
- content: never;
- };
- };
- };
- /**
- * Get Msys2 Environment Index
- * @description Returns a list of all MSYS2 environments for a given system from the main MSYS2
- * repository.
- */
- get_msys2_environment_index_msys2_repo__system___get: {
- parameters: {
- path: {
- system: string;
- };
- };
- responses: {
- /** @description Successful Response */
- 200: {
- content: never;
- };
- /** @description Validation Error */
- 422: {
- content: {
- "application/json": components["schemas"]["HTTPValidationError"];
- };
- };
- };
- };
- /**
- * Get Msys2 Package Index
- * @description Obtain a list of all available MSYS2 packages for a given environment from the main
- * MSYS2 repo.
- */
- get_msys2_package_index_msys2_repo__system___environment___get: {
- parameters: {
- path: {
- system: string;
- environment: string;
- };
- };
- responses: {
- /** @description Successful Response */
- 200: {
- content: never;
- };
- /** @description Validation Error */
- 422: {
- content: {
- "application/json": components["schemas"]["HTTPValidationError"];
- };
- };
- };
- };
- /**
- * Get Msys2 Package File
- * @description Obtain and pass through a specific download for an MSYS2 package.
- */
- get_msys2_package_file_msys2_repo__system___environment___package__get: {
- parameters: {
- path: {
- system: string;
- environment: string;
- package: string;
- };
- };
- responses: {
- /** @description Successful Response */
- 200: {
- content: never;
- };
- /** @description Validation Error */
- 422: {
- content: {
- "application/json": components["schemas"]["HTTPValidationError"];
- };
- };
- };
- };
- /**
- * Get Cargo Config
- * @description Returns a properly configured Cargo config that sets it to look ONLY at the
- * crates.io mirror.
- *
- * The default path for this config on Linux devices is ~/.cargo/config.toml,
- * and its default path on Windows is %USERPROFILE%\.cargo\config.toml.
- */
- get_cargo_config_rust_cargo_config_toml_get: {
- responses: {
- /** @description Successful Response */
- 200: {
- content: never;
- };
- };
- };
- /**
- * Get Index Page
- * @description Returns a mirror of the https://index.crates.io landing page.
- */
- get_index_page_rust_index__get: {
- responses: {
- /** @description Successful Response */
- 200: {
- content: never;
- };
- };
- };
- /**
- * Get Index Config
- * @description Download a config.json file used by Cargo to navigate sparse index registries
- * with.
- *
- * The 'dl' key points to our mirror of the static crates.io repository, while
- * the 'api' key points to an API version of that same registry. Both will be
- * used by Cargo when searching for and downloading packages.
- */
- get_index_config_rust_index_config_json_get: {
- responses: {
- /** @description Successful Response */
- 200: {
- content: never;
- };
- };
- };
- /**
- * Get Index Package Metadata
- * @description Download the metadata for a given package from the crates.io sparse index.
- * The path to the metadata file on the server side takes the following form:
- * /{c1}/{c2}/{package}
- *
- * c1 and c2 are 2 characters-long strings that are taken from the first 4
- * characters of the package name (a-z, A-Z, 0-9, -, _). For 3-letter packages,
- * c1 = 3, and c2 is the first character of the package.
- */
- get_index_package_metadata_rust_index__c1___c2___package__get: {
- parameters: {
- path: {
- c1: string;
- c2: string;
- package: string;
- };
- };
- responses: {
- /** @description Successful Response */
- 200: {
- content: never;
- };
- /** @description Validation Error */
- 422: {
- content: {
- "application/json": components["schemas"]["HTTPValidationError"];
- };
- };
- };
- };
- /**
- * Get Index Package Metadata For Short Package Names
- * @description The Rust sparse index' naming scheme for packages with 1-2 characters is
- * different from the standard path convention. They are stored under
- * /1/{package} or /2/{package}.
- */
- get_index_package_metadata_for_short_package_names_rust_index__n___package__get: {
- parameters: {
- path: {
- n: string;
- package: string;
- };
- };
- responses: {
- /** @description Successful Response */
- 200: {
- content: never;
- };
- /** @description Validation Error */
- 422: {
- content: {
- "application/json": components["schemas"]["HTTPValidationError"];
- };
- };
- };
- };
- /**
- * Get Rust Package Download
- * @description Obtain and pass through a crate download request for a Rust package via the
- * sparse index registry.
- */
- get_rust_package_download_rust_crates__package___version__download_get: {
- parameters: {
- path: {
- package: string;
- version: string;
- };
- };
- responses: {
- /** @description Successful Response */
- 200: {
- content: never;
- };
- /** @description Validation Error */
- 422: {
- content: {
- "application/json": components["schemas"]["HTTPValidationError"];
- };
- };
- };
- };
- /**
- * Get Rust Api Package Index
- * @description Displays the Rust API package index, which returns names of available packages
- * in a JSON object based on the search query given.
- */
- get_rust_api_package_index_rust_api_v1_crates_get: {
- parameters: {
- query?: {
- q?: string;
- per_page?: number;
- seek?: string;
- };
- };
- responses: {
- /** @description Successful Response */
- 200: {
- content: {
- "application/json": unknown;
- };
- };
- /** @description Validation Error */
- 422: {
- content: {
- "application/json": components["schemas"]["HTTPValidationError"];
- };
- };
- };
- };
- /**
- * Get Rust Api Package Info
- * @description Displays general information for a given Rust package, as a JSON object.
- * Contains both version information and download information, in addition
- * to other types of metadata.
- */
- get_rust_api_package_info_rust_api_v1_crates__package__get: {
- parameters: {
- path: {
- package: string;
- };
- };
- responses: {
- /** @description Successful Response */
- 200: {
- content: {
- "application/json": unknown;
- };
- };
- /** @description Validation Error */
- 422: {
- content: {
- "application/json": components["schemas"]["HTTPValidationError"];
- };
- };
- };
- };
- /**
- * Get Rust Api Package Versions
- * @description Displays all available versions for a particular Rust package, along with download
- * links for said versions, as a JSON object.
- */
- get_rust_api_package_versions_rust_api_v1_crates__package__versions_get: {
- parameters: {
- path: {
- package: string;
- };
- };
- responses: {
- /** @description Successful Response */
- 200: {
- content: {
- "application/json": unknown;
- };
- };
- /** @description Validation Error */
- 422: {
- content: {
- "application/json": components["schemas"]["HTTPValidationError"];
- };
- };
- };
- };
- /**
- * Get Rust Api Package Download
- * @description Obtain and pass through a crate download request for a specific Rust package.
- */
- get_rust_api_package_download_rust_api_v1_crates__package___version__download_get: {
- parameters: {
- path: {
- package: string;
- version: string;
- };
- };
- responses: {
- /** @description Successful Response */
- 200: {
- content: never;
- };
- /** @description Validation Error */
- 422: {
- content: {
- "application/json": components["schemas"]["HTTPValidationError"];
- };
- };
- };
- };
- /**
- * Get Rust Package Crate
- * @description Obtain and pass through a download for a specific Rust crate. The Rust API
- * download request actually redirects to the static crate repository, so this
- * endpoint covers cases where the static crate download link is requested.
- *
- * The static Rust package repository has been configured such that only requests
- * for a specific crate are accepted and handled.
- * (e.g. https://static.crates.io/crates/anyhow/anyhow-1.0.97.crate will pass)
- *
- * A request for any other part of the URL path will be denied.
- * (e.g. https://static.crates.io/crates/anyhow will fail)
- */
- get_rust_package_crate_rust_crates__package___crate__get: {
- parameters: {
- path: {
- package: string;
- crate: string;
- };
- };
- responses: {
- /** @description Successful Response */
- 200: {
- content: never;
- };
- /** @description Validation Error */
- 422: {
- content: {
- "application/json": components["schemas"]["HTTPValidationError"];
- };
- };
- };
- };
- /**
- * Get Pypi Index
- * @description Obtain list of all PyPI packages via the simple API (PEP 503).
- */
- get_pypi_index_pypi__get: {
- responses: {
- /** @description Successful Response */
- 200: {
- content: never;
- };
- };
- };
- /**
- * Get Pypi Package Downloads List
- * @description Obtain list of all package downloads from PyPI via the simple API (PEP 503), and
- * rewrite all download URLs to point to this server, under the current directory.
- */
- get_pypi_package_downloads_list_pypi__package___get: {
- parameters: {
- path: {
- package: string;
- };
- };
- responses: {
- /** @description Successful Response */
- 200: {
- content: never;
- };
- /** @description Validation Error */
- 422: {
- content: {
- "application/json": components["schemas"]["HTTPValidationError"];
- };
- };
- };
- };
- /**
- * Get Pypi File
- * @description Obtain and pass through a specific download for a PyPI package.
- */
- get_pypi_file_pypi__package___filename__get: {
- parameters: {
- path: {
- package: string;
- filename: string;
- };
- };
- responses: {
- /** @description Successful Response */
- 200: {
- content: never;
- };
- /** @description Validation Error */
- 422: {
- content: {
- "application/json": components["schemas"]["HTTPValidationError"];
- };
- };
- };
- };
- /** Get Plugin Wheel */
- get_plugin_wheel_plugins_instruments__instrument_name___package__get: {
- parameters: {
- path: {
- instrument_name: string;
- package: string;
- };
- };
- responses: {
- /** @description Successful Response */
- 200: {
- content: never;
- };
- /** @description Validation Error */
- 422: {
- content: {
- "application/json": components["schemas"]["HTTPValidationError"];
- };
- };
- };
- };
- /** Register Lif File */
- register_lif_file_sessions__session_id__clem_lif_files_post: {
- parameters: {
- query: {
- lif_file: string;
- master_metadata?: string;
- };
- path: {
- session_id: number;
- };
- };
- requestBody?: {
- content: {
- "application/json": components["schemas"]["Body_register_lif_file_sessions__session_id__clem_lif_files_post"];
- };
- };
- responses: {
- /** @description Successful Response */
- 200: {
- content: {
- "application/json": unknown;
- };
- };
- /** @description Validation Error */
- 422: {
- content: {
- "application/json": components["schemas"]["HTTPValidationError"];
- };
- };
- };
- };
- /** Register Tiff File */
- register_tiff_file_sessions__session_id__clem_tiff_files_post: {
- parameters: {
- query: {
- tiff_file: string;
- associated_metadata?: string;
- associated_series?: string;
- associated_stack?: string;
- };
- path: {
- session_id: number;
- };
- };
- responses: {
- /** @description Successful Response */
- 200: {
- content: {
- "application/json": unknown;
- };
- };
- /** @description Validation Error */
- 422: {
- content: {
- "application/json": components["schemas"]["HTTPValidationError"];
- };
- };
- };
- };
- /** Register Clem Metadata */
- register_clem_metadata_sessions__session_id__clem_metadata_files_post: {
- parameters: {
- query: {
- metadata_file: string;
- parent_lif?: string;
- associated_series?: string;
- };
- path: {
- session_id: number;
- };
- };
- requestBody?: {
- content: {
- "application/json": components["schemas"]["Body_register_clem_metadata_sessions__session_id__clem_metadata_files_post"];
- };
- };
- responses: {
- /** @description Successful Response */
- 200: {
- content: {
- "application/json": unknown;
- };
- };
- /** @description Validation Error */
- 422: {
- content: {
- "application/json": components["schemas"]["HTTPValidationError"];
- };
- };
- };
- };
- /** Register Image Series */
- register_image_series_sessions__session_id__clem_image_series_post: {
- parameters: {
- query: {
- series_name: string;
- parent_lif?: string;
- associated_metadata?: string;
- };
- path: {
- session_id: number;
- };
- };
- requestBody?: {
- content: {
- "application/json": components["schemas"]["Body_register_image_series_sessions__session_id__clem_image_series_post"];
- };
- };
- responses: {
- /** @description Successful Response */
- 200: {
- content: {
- "application/json": unknown;
- };
- };
- /** @description Validation Error */
- 422: {
- content: {
- "application/json": components["schemas"]["HTTPValidationError"];
- };
- };
- };
- };
- /** Register Image Stack */
- register_image_stack_sessions__session_id__clem_image_stacks_post: {
- parameters: {
- query: {
- image_stack: string;
- channel?: string;
- parent_lif?: string;
- associated_metadata?: string;
- parent_series?: string;
- };
- path: {
- session_id: number;
- };
- };
- requestBody?: {
- content: {
- "application/json": string[];
- };
- };
- responses: {
- /** @description Successful Response */
- 200: {
- content: {
- "application/json": unknown;
- };
- };
- /** @description Validation Error */
- 422: {
- content: {
- "application/json": components["schemas"]["HTTPValidationError"];
- };
- };
- };
- };
- /** Process Raw Lifs */
- process_raw_lifs_sessions__session_id__clem_preprocessing_process_raw_lifs_post: {
- parameters: {
- query: {
- lif_file: string;
- };
- path: {
- session_id: number;
- };
- };
- responses: {
- /** @description Successful Response */
- 200: {
- content: {
- "application/json": unknown;
- };
- };
- /** @description Validation Error */
- 422: {
- content: {
- "application/json": components["schemas"]["HTTPValidationError"];
- };
- };
- };
- };
- /** Process Raw Tiffs */
- process_raw_tiffs_sessions__session_id__clem_preprocessing_process_raw_tiffs_post: {
- parameters: {
- path: {
- session_id: number;
- };
- };
- requestBody: {
- content: {
- "application/json": components["schemas"]["TIFFSeriesInfo"];
- };
- };
- responses: {
- /** @description Successful Response */
- 200: {
- content: {
- "application/json": unknown;
- };
- };
- /** @description Validation Error */
- 422: {
- content: {
- "application/json": components["schemas"]["HTTPValidationError"];
- };
- };
- };
- };
- /** Align And Merge Stacks */
- align_and_merge_stacks_sessions__session_id__clem_processing_align_and_merge_stacks_post: {
- parameters: {
- path: {
- session_id: number;
- };
- };
- requestBody: {
- content: {
- "application/json": components["schemas"]["AlignAndMergeParams"];
- };
- };
- responses: {
- /** @description Successful Response */
- 200: {
- content: {
- "application/json": unknown;
- };
- };
- /** @description Validation Error */
- 422: {
- content: {
- "application/json": components["schemas"]["HTTPValidationError"];
- };
- };
- };
- };
- /** Get Cryolo Model Path */
- get_cryolo_model_path_sessions__session_id__cryolo_model_get: {
- parameters: {
- path: {
- session_id: number;
- };
- };
- responses: {
- /** @description Successful Response */
- 200: {
- content: {
- "application/json": unknown;
- };
- };
- /** @description Validation Error */
- 422: {
- content: {
- "application/json": components["schemas"]["HTTPValidationError"];
- };
- };
- };
- };
- /** Generate Token */
- generate_token_token_post: {
- requestBody: {
- content: {
- "application/x-www-form-urlencoded": components["schemas"]["Body_generate_token_token_post"];
- };
- };
- responses: {
- /** @description Successful Response */
- 200: {
- content: {
- "application/json": components["schemas"]["Token"];
- };
- };
- /** @description Validation Error */
- 422: {
- content: {
- "application/json": components["schemas"]["HTTPValidationError"];
- };
- };
- };
- };
- /** Mint Session Token */
- mint_session_token_sessions__session_id__token_get: {
- parameters: {
- path: {
- session_id: number;
- };
- };
- responses: {
- /** @description Successful Response */
- 200: {
- content: {
- "application/json": unknown;
- };
- };
- /** @description Validation Error */
- 422: {
- content: {
- "application/json": components["schemas"]["HTTPValidationError"];
- };
- };
- };
- };
- /** Simple Token Validation */
- simple_token_validation_validate_token_get: {
- responses: {
- /** @description Successful Response */
- 200: {
- content: {
- "application/json": unknown;
- };
- };
- };
- };
- /** Get Mic Image */
- get_mic_image_display_instruments__instrument_name__image__get: {
- parameters: {
- path: {
- instrument_name: string;
- };
- };
- responses: {
- /** @description Successful Response */
- 200: {
- content: {
- "application/json": unknown;
- };
- };
- /** @description Validation Error */
- 422: {
- content: {
- "application/json": components["schemas"]["HTTPValidationError"];
- };
- };
- };
- };
- /** Get Grid Square Img */
- get_grid_square_img_display_sessions__session_id__data_collection_groups__dcgid__grid_squares__grid_square_name__image_get: {
- parameters: {
- path: {
- session_id: number;
- dcgid: number;
- grid_square_name: number;
- };
- };
- responses: {
- /** @description Successful Response */
- 200: {
- content: {
- "application/json": unknown;
- };
- };
- /** @description Validation Error */
- 422: {
- content: {
- "application/json": components["schemas"]["HTTPValidationError"];
- };
- };
- };
- };
- /** Get Foil Hole Img */
- get_foil_hole_img_display_sessions__session_id__data_collection_groups__dcgid__grid_squares__grid_square_name__foil_holes__foil_hole_name__image_get: {
- parameters: {
- path: {
- session_id: number;
- dcgid: number;
- grid_square_name: number;
- foil_hole_name: number;
- };
- };
- responses: {
- /** @description Successful Response */
- 200: {
- content: {
- "application/json": unknown;
- };
- };
- /** @description Validation Error */
- 422: {
- content: {
- "application/json": components["schemas"]["HTTPValidationError"];
- };
- };
- };
- };
- /** Activate Instrument Server For Session */
- activate_instrument_server_for_session_instruments__instrument_name__sessions__session_id__activate_instrument_server_post: {
- parameters: {
- path: {
- instrument_name: string;
- session_id: number;
- };
- };
- responses: {
- /** @description Successful Response */
- 200: {
- content: {
- "application/json": unknown;
- };
- };
- /** @description Validation Error */
- 422: {
- content: {
- "application/json": components["schemas"]["HTTPValidationError"];
- };
- };
- };
- };
- /** Check If Session Is Active */
- check_if_session_is_active_instruments__instrument_name__sessions__session_id__active_get: {
- parameters: {
- path: {
- instrument_name: string;
- session_id: number;
- };
- };
- responses: {
- /** @description Successful Response */
- 200: {
- content: {
- "application/json": unknown;
- };
- };
- /** @description Validation Error */
- 422: {
- content: {
- "application/json": components["schemas"]["HTTPValidationError"];
- };
- };
- };
- };
- /** Setup Multigrid Watcher */
- setup_multigrid_watcher_sessions__session_id__multigrid_watcher_post: {
- parameters: {
- path: {
- session_id: number;
- };
- };
- requestBody: {
- content: {
- "application/json": components["schemas"]["MultigridWatcherSetup"];
- };
- };
- responses: {
- /** @description Successful Response */
- 200: {
- content: {
- "application/json": unknown;
- };
- };
- /** @description Validation Error */
- 422: {
- content: {
- "application/json": components["schemas"]["HTTPValidationError"];
- };
- };
- };
- };
- /** Start Multigrid Watcher */
- start_multigrid_watcher_sessions__session_id__start_multigrid_watcher_post: {
- parameters: {
- path: {
- session_id: number;
- };
- };
- responses: {
- /** @description Successful Response */
- 200: {
- content: {
- "application/json": unknown;
- };
- };
- /** @description Validation Error */
- 422: {
- content: {
- "application/json": components["schemas"]["HTTPValidationError"];
- };
- };
- };
- };
- /** Pass Proc Params To Instrument Server */
- pass_proc_params_to_instrument_server_sessions__session_id__provided_processing_parameters_post: {
- parameters: {
- path: {
- session_id: number;
- };
- };
- requestBody: {
- content: {
- "application/json": components["schemas"]["ProvidedProcessingParameters"];
- };
- };
- responses: {
- /** @description Successful Response */
- 200: {
- content: {
- "application/json": unknown;
- };
- };
- /** @description Validation Error */
- 422: {
- content: {
- "application/json": components["schemas"]["HTTPValidationError"];
- };
- };
- };
- };
- /** Check Instrument Server */
- check_instrument_server_instruments__instrument_name__instrument_server_get: {
- parameters: {
- path: {
- instrument_name: string;
- };
- };
- responses: {
- /** @description Successful Response */
- 200: {
- content: {
- "application/json": unknown;
- };
- };
- /** @description Validation Error */
- 422: {
- content: {
- "application/json": components["schemas"]["HTTPValidationError"];
- };
- };
- };
- };
- /** Get Possible Gain References */
- get_possible_gain_references_instruments__instrument_name__sessions__session_id__possible_gain_references_get: {
- parameters: {
- path: {
- instrument_name: string;
- session_id: number;
- };
- };
- responses: {
- /** @description Successful Response */
- 200: {
- content: {
- "application/json": components["schemas"]["File"][];
- };
- };
- /** @description Validation Error */
- 422: {
- content: {
- "application/json": components["schemas"]["HTTPValidationError"];
- };
- };
- };
- };
- /** Request Gain Reference Upload */
- request_gain_reference_upload_sessions__session_id__upload_gain_reference_post: {
- parameters: {
- path: {
- session_id: number;
- };
- };
- requestBody: {
- content: {
- "application/json": components["schemas"]["GainReferenceRequest"];
- };
- };
- responses: {
- /** @description Successful Response */
- 200: {
- content: {
- "application/json": unknown;
- };
- };
- /** @description Validation Error */
- 422: {
- content: {
- "application/json": components["schemas"]["HTTPValidationError"];
- };
- };
- };
- };
- /** Request Upstream Tiff Data Download */
- request_upstream_tiff_data_download_visits__visit_name___session_id__upstream_tiff_data_request_post: {
- parameters: {
- path: {
- visit_name: string;
- session_id: number;
- };
- };
- responses: {
- /** @description Successful Response */
- 200: {
- content: {
- "application/json": unknown;
- };
- };
- /** @description Validation Error */
- 422: {
- content: {
- "application/json": components["schemas"]["HTTPValidationError"];
- };
- };
- };
- };
- /** Stop Rsyncer */
- stop_rsyncer_sessions__session_id__stop_rsyncer_post: {
- parameters: {
- path: {
- session_id: number;
- };
- };
- requestBody: {
- content: {
- "application/json": components["schemas"]["murfey__server__api__instrument__RsyncerSource"];
- };
- };
- responses: {
- /** @description Successful Response */
- 200: {
- content: {
- "application/json": unknown;
- };
- };
- /** @description Validation Error */
- 422: {
- content: {
- "application/json": components["schemas"]["HTTPValidationError"];
- };
- };
- };
- };
- /** Finalise Rsyncer */
- finalise_rsyncer_sessions__session_id__finalise_rsyncer_post: {
- parameters: {
- path: {
- session_id: number;
- };
- };
- requestBody: {
- content: {
- "application/json": components["schemas"]["murfey__server__api__instrument__RsyncerSource"];
- };
- };
- responses: {
- /** @description Successful Response */
- 200: {
- content: {
- "application/json": unknown;
- };
- };
- /** @description Validation Error */
- 422: {
- content: {
- "application/json": components["schemas"]["HTTPValidationError"];
- };
- };
- };
- };
- /** Finalise Session */
- finalise_session_sessions__session_id__finalise_session_post: {
- parameters: {
- path: {
- session_id: number;
- };
- };
- responses: {
- /** @description Successful Response */
- 200: {
- content: {
- "application/json": unknown;
- };
- };
- /** @description Validation Error */
- 422: {
- content: {
- "application/json": components["schemas"]["HTTPValidationError"];
- };
- };
- };
- };
- /** Remove Rsyncer */
- remove_rsyncer_sessions__session_id__remove_rsyncer_post: {
- parameters: {
- path: {
- session_id: number;
- };
- };
- requestBody: {
- content: {
- "application/json": components["schemas"]["murfey__server__api__instrument__RsyncerSource"];
- };
- };
- responses: {
- /** @description Successful Response */
- 200: {
- content: {
- "application/json": unknown;
- };
- };
- /** @description Validation Error */
- 422: {
- content: {
- "application/json": components["schemas"]["HTTPValidationError"];
- };
- };
- };
- };
- /** Restart Rsyncer */
- restart_rsyncer_sessions__session_id__restart_rsyncer_post: {
- parameters: {
- path: {
- session_id: number;
- };
- };
- requestBody: {
- content: {
- "application/json": components["schemas"]["murfey__server__api__instrument__RsyncerSource"];
- };
- };
- responses: {
- /** @description Successful Response */
- 200: {
- content: {
- "application/json": unknown;
- };
- };
- /** @description Validation Error */
- 422: {
- content: {
- "application/json": components["schemas"]["HTTPValidationError"];
- };
- };
- };
- };
- /** Get Rsyncer Info */
- get_rsyncer_info_instruments__instrument_name__sessions__session_id__rsyncer_info_get: {
- parameters: {
- path: {
- instrument_name: string;
- session_id: number;
- };
- };
- responses: {
- /** @description Successful Response */
- 200: {
- content: {
- "application/json": components["schemas"]["RSyncerInfo"][];
- };
- };
- /** @description Validation Error */
- 422: {
- content: {
- "application/json": components["schemas"]["HTTPValidationError"];
- };
- };
- };
- };
- /** Get Instrument Info */
- get_instrument_info_instruments_get: {
- responses: {
- /** @description Successful Response */
- 200: {
- content: {
- "application/json": components["schemas"]["InstrumentInfo"][];
- };
- };
- };
- };
- /** Get Instrument Image */
- get_instrument_image_instrument__instrument_name__image_get: {
- parameters: {
- path: {
- instrument_name: string;
- };
- };
- responses: {
- /** @description Successful Response */
- 200: {
- content: {
- "application/json": unknown;
- };
- };
- /** @description Validation Error */
- 422: {
- content: {
- "application/json": components["schemas"]["HTTPValidationError"];
- };
- };
- };
- };
- /** Get Session Processing Parameters */
- get_session_processing_parameters_sessions__session_id__session_processing_parameters_get: {
- parameters: {
- path: {
- session_id: number;
- };
- };
- responses: {
- /** @description Successful Response */
- 200: {
- content: {
- "application/json": components["schemas"]["EditableSessionProcessingParameters"];
- };
- };
- /** @description Validation Error */
- 422: {
- content: {
- "application/json": components["schemas"]["HTTPValidationError"];
- };
- };
- };
- };
- /** Set Session Processing Parameters */
- set_session_processing_parameters_sessions__session_id__session_processing_parameters_post: {
- parameters: {
- path: {
- session_id: number;
- };
- };
- requestBody: {
- content: {
- "application/json": components["schemas"]["EditableSessionProcessingParameters"];
- };
- };
- responses: {
- /** @description Successful Response */
- 200: {
- content: {
- "application/json": components["schemas"]["EditableSessionProcessingParameters"];
- };
- };
- /** @description Validation Error */
- 422: {
- content: {
- "application/json": components["schemas"]["HTTPValidationError"];
- };
- };
- };
- };
- /** Close Ws Connection */
- close_ws_connection_ws_test__client_id__delete: {
- parameters: {
- path: {
- client_id: number;
- };
- };
- responses: {
- /** @description Successful Response */
- 200: {
- content: {
- "application/json": unknown;
- };
- };
- /** @description Validation Error */
- 422: {
- content: {
- "application/json": components["schemas"]["HTTPValidationError"];
- };
- };
- };
- };
- /** Close Unrecorded Ws Connection */
- close_unrecorded_ws_connection_ws_connect__client_id__delete: {
- parameters: {
- path: {
- client_id: number | string;
- };
- };
- responses: {
- /** @description Successful Response */
- 200: {
- content: {
- "application/json": unknown;
- };
- };
- /** @description Validation Error */
- 422: {
- content: {
- "application/json": components["schemas"]["HTTPValidationError"];
- };
- };
- };
- };
- /** Request Smartem Atlas Analysis */
- request_smartem_atlas_analysis_instruments__instrument_name__visits__visit_name___session_id__smartem_atlas__post: {
- parameters: {
- path: {
- instrument_name: string;
- visit_name: string;
- session_id: number;
- };
- };
- requestBody: {
- content: {
- "application/json": components["schemas"]["SmartEMAtlasRequest"];
- };
- };
- responses: {
- /** @description Successful Response */
- 200: {
- content: {
- "application/json": unknown;
- };
- };
- /** @description Validation Error */
- 422: {
- content: {
- "application/json": components["schemas"]["HTTPValidationError"];
- };
- };
- };
- };
- /** Update K3 Ssd Statuses */
- update_k3_ssd_statuses_instruments__instrument_name__k3_ssd_post: {
- parameters: {
- path: {
- instrument_name: string;
- };
- };
- requestBody: {
- content: {
- "application/json": components["schemas"]["SSDData"];
- };
- };
- responses: {
- /** @description Successful Response */
- 200: {
- content: {
- "application/json": unknown;
- };
- };
- /** @description Validation Error */
- 422: {
- content: {
- "application/json": components["schemas"]["HTTPValidationError"];
- };
- };
- };
- };
+ update_k3_ssd_statuses_instruments__instrument_name__k3_ssd_post: {
+ parameters: {
+ path: {
+ instrument_name: string
+ }
+ }
+ requestBody: {
+ content: {
+ 'application/json': components['schemas']['SSDData']
+ }
+ }
+ responses: {
+ /** @description Successful Response */
+ 200: {
+ content: {
+ 'application/json': unknown
+ }
+ }
+ /** @description Validation Error */
+ 422: {
+ content: {
+ 'application/json': components['schemas']['HTTPValidationError']
+ }
+ }
+ }
+ }
}
diff --git a/src/setupTests.js b/src/setupTests.js
index 1dd407a..52aaef1 100644
--- a/src/setupTests.js
+++ b/src/setupTests.js
@@ -2,4 +2,4 @@
// allows you to do things like:
// expect(element).toHaveTextContent(/react/i)
// learn more: https://github.com/testing-library/jest-dom
-import "@testing-library/jest-dom";
+import '@testing-library/jest-dom'
diff --git a/src/styles/colours.ts b/src/styles/colours.ts
new file mode 100644
index 0000000..3ee6333
--- /dev/null
+++ b/src/styles/colours.ts
@@ -0,0 +1,16 @@
+const colours = {
+ murfey: {
+ 50: { default: '#FBFBFB', _dark: '#525151' },
+ 75: { derfault: '#F7F7F7', _dark: '#080808' },
+ 100: { default: '#E7ECEF', _dark: '#383838' },
+ 200: { default: '#CBD5E0', _dark: '#030303' },
+ 300: { default: '#39435E', _dark: '#5f709e' },
+ 400: { default: '#ACACF9', _dark: '#030405' },
+ 500: { default: '#FC6321', _dark: '#050401' },
+ 600: { default: '#5738BD', _dark: '#101a36' },
+ 700: { default: '#2910A1', _dark: '#071d4a' },
+ 800: { default: '#0E0055', _dark: '#023496' },
+ },
+}
+
+export { colours }
diff --git a/src/styles/colours.tsx b/src/styles/colours.tsx
deleted file mode 100644
index 1cc89cc..0000000
--- a/src/styles/colours.tsx
+++ /dev/null
@@ -1,16 +0,0 @@
-const colours = {
- murfey: {
- 50: { default: "#FBFBFB", _dark: "#525151" },
- 75: { derfault: "#F7F7F7", _dark: "#080808" },
- 100: { default: "#E7ECEF", _dark: "#383838" },
- 200: { default: "#CBD5E0", _dark: "#030303" },
- 300: { default: "#39435E", _dark: "#5f709e" },
- 400: { default: "#ACACF9", _dark: "#030405" },
- 500: { default: "#FC6321", _dark: "#050401" },
- 600: { default: "#5738BD", _dark: "#101a36" },
- 700: { default: "#2910A1", _dark: "#071d4a" },
- 800: { default: "#0E0055", _dark: "#023496" },
- },
-};
-
-export { colours };
diff --git a/src/styles/components.ts b/src/styles/components.ts
index daf1da1..912f0b3 100644
--- a/src/styles/components.ts
+++ b/src/styles/components.ts
@@ -1,325 +1,325 @@
import {
- defineStyleConfig,
- defineStyle,
- createMultiStyleConfigHelpers,
- UseToastOptions,
-} from "@chakra-ui/react";
+ defineStyleConfig,
+ defineStyle,
+ createMultiStyleConfigHelpers,
+ UseToastOptions,
+} from '@chakra-ui/react'
import {
- cardAnatomy,
- tabsAnatomy,
- inputAnatomy,
- numberInputAnatomy,
- selectAnatomy,
-} from "@chakra-ui/anatomy";
+ cardAnatomy,
+ tabsAnatomy,
+ inputAnatomy,
+ numberInputAnatomy,
+ selectAnatomy,
+} from '@chakra-ui/anatomy'
const baseToast: UseToastOptions = {
- id: "main-toast",
- status: "success",
- duration: 6000,
- isClosable: true,
-};
+ id: 'main-toast',
+ status: 'success',
+ duration: 6000,
+ isClosable: true,
+}
const baseInput = {
- field: {
- bg: "white",
- border: "solid 1px",
- borderColor: "murfey.200",
- borderRadius: 0,
- },
-};
+ field: {
+ bg: 'white',
+ border: 'solid 1px',
+ borderColor: 'murfey.200',
+ borderRadius: 0,
+ },
+}
const Accordion = defineStyleConfig({
- baseStyle: {
- container: {
- border: "1px solid var(--chakra-colors-murfey-100)",
+ baseStyle: {
+ container: {
+ border: '1px solid var(--chakra-colors-murfey-100)',
+ },
},
- },
-});
+})
const Text = defineStyleConfig({
- variants: {
- infoGroupText: {
- wordBreak: "break-all",
- display: "inline",
- fontSize: "xs",
+ variants: {
+ infoGroupText: {
+ wordBreak: 'break-all',
+ display: 'inline',
+ fontSize: 'xs',
+ },
},
- },
-});
+})
const Checkbox = defineStyleConfig({
- sizes: {
- sm: {
- control: {
- height: "16px",
- width: "16px",
- },
- icon: {
- height: "16px",
- fontSize: "10px",
- },
- label: {
- fontSize: "14px",
- height: "16px",
- },
+ sizes: {
+ sm: {
+ control: {
+ height: '16px',
+ width: '16px',
+ },
+ icon: {
+ height: '16px',
+ fontSize: '10px',
+ },
+ label: {
+ fontSize: '14px',
+ height: '16px',
+ },
+ },
},
- },
- baseStyle: {
- control: {
- borderColor: "murfey.600",
- backgroundColor: "#FFF",
- _checked: {
- backgroundColor: "murfey.600",
- borderColor: "murfey.600",
- },
+ baseStyle: {
+ control: {
+ borderColor: 'murfey.600',
+ backgroundColor: '#FFF',
+ _checked: {
+ backgroundColor: 'murfey.600',
+ borderColor: 'murfey.600',
+ },
+ },
},
- },
-});
+})
const Table = defineStyleConfig({
- variants: {
- diamondStriped: {
- tbody: {
- tr: {
- _odd: {
- bg: "murfey.100",
- },
- _even: {
- bg: "murfey.50",
- },
- _hover: {
- bg: "murfey.200",
- },
+ variants: {
+ diamondStriped: {
+ tbody: {
+ tr: {
+ _odd: {
+ bg: 'murfey.100',
+ },
+ _even: {
+ bg: 'murfey.50',
+ },
+ _hover: {
+ bg: 'murfey.200',
+ },
+ },
+ },
},
- },
},
- },
-});
+})
const CardHeader = defineStyleConfig({
- baseStyle: {
- p: "10px !important",
- h: "10%",
- },
-});
+ baseStyle: {
+ p: '10px !important',
+ h: '10%',
+ },
+})
const CardBody = defineStyleConfig({
- baseStyle: {
- p: 2,
- h: "90%",
- },
-});
+ baseStyle: {
+ p: 2,
+ h: '90%',
+ },
+})
const { definePartsStyle, defineMultiStyleConfig } =
- createMultiStyleConfigHelpers(cardAnatomy.keys);
+ createMultiStyleConfigHelpers(cardAnatomy.keys)
const baseCardStyle = definePartsStyle({
- container: {
- p: 1,
- borderWidth: "1px",
- borderRadius: "lg",
- borderColor: "murfey.200",
- _hover: {
- borderColor: "murfey.400",
- cursor: "pointer",
+ container: {
+ p: 1,
+ borderWidth: '1px',
+ borderRadius: 'lg',
+ borderColor: 'murfey.200',
+ _hover: {
+ borderColor: 'murfey.400',
+ cursor: 'pointer',
+ },
+ _selected: {
+ bg: 'murfey.100',
+ fontWeight: '600',
+ borderBottomWidth: '3px',
+ },
},
- _selected: {
- bg: "murfey.100",
- fontWeight: "600",
- borderBottomWidth: "3px",
+ header: {
+ p: 2,
+ cursor: 'pointer',
+ _hover: {
+ color: 'murfey.300',
+ },
},
- },
- header: {
- p: 2,
- cursor: "pointer",
- _hover: {
- color: "murfey.300",
+ body: {
+ px: 2,
+ height: '90%',
},
- },
- body: {
- px: 2,
- height: "90%",
- },
-});
+})
const Card = defineMultiStyleConfig({
- baseStyle: baseCardStyle,
- defaultProps: { variant: "outline" },
-});
+ baseStyle: baseCardStyle,
+ defaultProps: { variant: 'outline' },
+})
const Button = defineStyleConfig({
- defaultProps: {
- variant: "default",
- },
- baseStyle: {
- borderBottom: "2px solid rgba(0,0,0,0.2)",
- },
- variants: {
- default: {
- color: "murfey.50",
- bg: "murfey.600",
- _hover: {
- bgImage: "linear-gradient(rgb(0 0 0/30%) 0 0)",
- _disabled: {
- bg: "murfey.600",
- },
- },
- },
- pgSelected: {
- bg: "murfey.600",
- color: "murfey.50",
- cursor: "default",
+ defaultProps: {
+ variant: 'default',
},
- pgNotSelected: {
- bg: "gray.200",
- color: "charcoal",
- fontSize: "sm",
- _hover: {
- bg: "murfey.200",
- },
+ baseStyle: {
+ borderBottom: '2px solid rgba(0,0,0,0.2)',
},
- onBlue: {
- color: "murfey.500",
- borderColor: "murfey.500",
- border: "1px solid",
- fontSize: "sm",
- _hover: {
- color: "murfey.300",
- bg: "murfey.500",
- },
+ variants: {
+ default: {
+ color: 'murfey.50',
+ bg: 'murfey.600',
+ _hover: {
+ bgImage: 'linear-gradient(rgb(0 0 0/30%) 0 0)',
+ _disabled: {
+ bg: 'murfey.600',
+ },
+ },
+ },
+ pgSelected: {
+ bg: 'murfey.600',
+ color: 'murfey.50',
+ cursor: 'default',
+ },
+ pgNotSelected: {
+ bg: 'gray.200',
+ color: 'charcoal',
+ fontSize: 'sm',
+ _hover: {
+ bg: 'murfey.200',
+ },
+ },
+ onBlue: {
+ color: 'murfey.500',
+ borderColor: 'murfey.500',
+ border: '1px solid',
+ fontSize: 'sm',
+ _hover: {
+ color: 'murfey.300',
+ bg: 'murfey.500',
+ },
+ },
},
- },
-});
+})
const notFound = defineStyle({
- textAlign: "center",
- color: "murfey.300",
-});
+ textAlign: 'center',
+ color: 'murfey.300',
+})
const Heading = defineStyleConfig({
- variants: {
- collection: {
- fontSize: 20,
- py: "4px",
- },
- notFound,
- notFoundSubtitle: {
- ...notFound,
- fontWeight: 200,
- fontSize: 20,
- paddingBottom: 10,
+ variants: {
+ collection: {
+ fontSize: 20,
+ py: '4px',
+ },
+ notFound,
+ notFoundSubtitle: {
+ ...notFound,
+ fontWeight: 200,
+ fontSize: 20,
+ paddingBottom: 10,
+ },
},
- },
-});
+})
const {
- definePartsStyle: defineInputStyle,
- defineMultiStyleConfig: defineInputConfig,
-} = createMultiStyleConfigHelpers(inputAnatomy.keys);
+ definePartsStyle: defineInputStyle,
+ defineMultiStyleConfig: defineInputConfig,
+} = createMultiStyleConfigHelpers(inputAnatomy.keys)
const hiContrastInput = defineInputStyle({
- field: {
- borderWidth: "1px",
- borderColor: "murfey.800",
- borderRadius: 0,
- _invalid: {
- borderColor: "red.500",
+ field: {
+ borderWidth: '1px',
+ borderColor: 'murfey.800',
+ borderRadius: 0,
+ _invalid: {
+ borderColor: 'red.500',
+ },
},
- },
-});
+})
const baseInputStyle = defineInputStyle({
- ...baseInput,
- addon: {
- border: "solid 1px",
- borderColor: "murfey.200",
- background: "murfey.100",
- },
-});
+ ...baseInput,
+ addon: {
+ border: 'solid 1px',
+ borderColor: 'murfey.200',
+ background: 'murfey.100',
+ },
+})
const Input = defineInputConfig({
- baseStyle: baseInputStyle,
- variants: { "hi-contrast": hiContrastInput, default: baseInputStyle },
- defaultProps: { variant: "default" },
-});
+ baseStyle: baseInputStyle,
+ variants: { 'hi-contrast': hiContrastInput, default: baseInputStyle },
+ defaultProps: { variant: 'default' },
+})
const { defineMultiStyleConfig: defineNumberInputConfig } =
- createMultiStyleConfigHelpers(numberInputAnatomy.keys);
+ createMultiStyleConfigHelpers(numberInputAnatomy.keys)
const NumberInput = defineNumberInputConfig({
- defaultProps: { variant: "default" },
- variants: { default: baseInput },
-});
+ defaultProps: { variant: 'default' },
+ variants: { default: baseInput },
+})
const { defineMultiStyleConfig: defineSelectConfig } =
- createMultiStyleConfigHelpers(selectAnatomy.keys);
+ createMultiStyleConfigHelpers(selectAnatomy.keys)
const Select = defineSelectConfig({
- defaultProps: { variant: "default" },
- variants: { default: baseInput, "hi-contrast": hiContrastInput },
-});
+ defaultProps: { variant: 'default' },
+ variants: { default: baseInput, 'hi-contrast': hiContrastInput },
+})
const {
- definePartsStyle: defineTabsStyle,
- defineMultiStyleConfig: defineTabsConfig,
-} = createMultiStyleConfigHelpers(tabsAnatomy.keys);
+ definePartsStyle: defineTabsStyle,
+ defineMultiStyleConfig: defineTabsConfig,
+} = createMultiStyleConfigHelpers(tabsAnatomy.keys)
const baseTabsStyle = defineTabsStyle({
- tab: {
- border: "1px solid",
- borderColor: "murfey.200",
- bg: "murfey.75",
- borderBottom: "none",
- _selected: {
- bg: "murfey.50",
- color: "murfey.700",
- borderColor: "inherit",
- borderBottom: "none",
- borderTopColor: "murfey.700",
- mb: "-2px",
+ tab: {
+ border: '1px solid',
+ borderColor: 'murfey.200',
+ bg: 'murfey.75',
+ borderBottom: 'none',
+ _selected: {
+ bg: 'murfey.50',
+ color: 'murfey.700',
+ borderColor: 'inherit',
+ borderBottom: 'none',
+ borderTopColor: 'murfey.700',
+ mb: '-2px',
+ },
},
- },
- tablist: {
- borderBottom: "none",
- },
- tabpanel: {
- p: "2",
- bg: "murfey.50",
- border: "1px solid",
- borderColor: "inherit",
- },
-});
+ tablist: {
+ borderBottom: 'none',
+ },
+ tabpanel: {
+ p: '2',
+ bg: 'murfey.50',
+ border: '1px solid',
+ borderColor: 'inherit',
+ },
+})
const Tabs = defineTabsConfig({
- baseStyle: baseTabsStyle,
- defaultProps: { variant: "none" },
-});
+ baseStyle: baseTabsStyle,
+ defaultProps: { variant: 'none' },
+})
const Code = defineStyleConfig({
- baseStyle: {
- backgroundColor: "murfey.100",
- color: "murfey.800",
- },
-});
+ baseStyle: {
+ backgroundColor: 'murfey.100',
+ color: 'murfey.800',
+ },
+})
const Textarea = defineStyleConfig({
- variants: { "hi-contrast": hiContrastInput.field },
-});
+ variants: { 'hi-contrast': hiContrastInput.field },
+})
export {
- Accordion,
- Button,
- Table,
- Text,
- Heading,
- Card,
- CardHeader,
- CardBody,
- Tabs,
- baseToast,
- Checkbox,
- Code,
- Input,
- Textarea,
- NumberInput,
- Select,
-};
+ Accordion,
+ Button,
+ Table,
+ Text,
+ Heading,
+ Card,
+ CardHeader,
+ CardBody,
+ Tabs,
+ baseToast,
+ Checkbox,
+ Code,
+ Input,
+ Textarea,
+ NumberInput,
+ Select,
+}
diff --git a/src/styles/theme.tsx b/src/styles/theme.tsx
index 5002470..c9a6c60 100644
--- a/src/styles/theme.tsx
+++ b/src/styles/theme.tsx
@@ -1,49 +1,49 @@
-import { ThemeConfig, extendTheme } from "@chakra-ui/react";
-import { colours } from "styles/colours";
+import { ThemeConfig, extendTheme } from '@chakra-ui/react'
+import { colours } from 'styles/colours'
import {
- Accordion,
- Button,
- Checkbox,
- Heading,
- Table,
- Card,
- Tabs,
- Code,
- Text,
- Input,
- Textarea,
- NumberInput,
- Select,
-} from "./components";
-
-const config: ThemeConfig = {
- initialColorMode: "light",
- useSystemColorMode: false,
-};
-
-export const theme = extendTheme({
- semanticTokens: { colors: colours },
- components: {
Accordion,
- Checkbox,
Button,
- Text,
+ Checkbox,
Heading,
Table,
Card,
Tabs,
Code,
+ Text,
Input,
Textarea,
NumberInput,
Select,
- },
- breakpoints: {
- sm: "30em",
- md: "48em",
- lg: "62em",
- xl: "80em",
- "2xl": "150em",
- },
- config,
-});
+} from './components'
+
+const config: ThemeConfig = {
+ initialColorMode: 'light',
+ useSystemColorMode: false,
+}
+
+export const theme = extendTheme({
+ semanticTokens: { colors: colours },
+ components: {
+ Accordion,
+ Checkbox,
+ Button,
+ Text,
+ Heading,
+ Table,
+ Card,
+ Tabs,
+ Code,
+ Input,
+ Textarea,
+ NumberInput,
+ Select,
+ },
+ breakpoints: {
+ sm: '30em',
+ md: '48em',
+ lg: '62em',
+ xl: '80em',
+ '2xl': '150em',
+ },
+ config,
+})
diff --git a/src/utils/ExperimentType.ts b/src/utils/ExperimentType.ts
new file mode 100644
index 0000000..1b8a6b0
--- /dev/null
+++ b/src/utils/ExperimentType.ts
@@ -0,0 +1,4 @@
+
+export const EXPERIMENT_TYPES = ['spa', 'tomography'] as const;
+export type ExperimentType = (typeof EXPERIMENT_TYPES)[number];
+export const isValidExpType = (val: string): val is ExperimentType => EXPERIMENT_TYPES.includes(val as ExperimentType);
diff --git a/src/utils/MultigridSetup.tsx b/src/utils/MultigridSetup.tsx
new file mode 100644
index 0000000..1b51295
--- /dev/null
+++ b/src/utils/MultigridSetup.tsx
@@ -0,0 +1,191 @@
+import { ArrowForwardIcon } from '@chakra-ui/icons'
+import {
+ Box,
+ FormControl,
+ FormLabel,
+ GridItem,
+ Heading,
+ HStack,
+ IconButton,
+ Link,
+ Select,
+ Stack,
+ Switch,
+ VStack,
+} from '@chakra-ui/react'
+
+import { SetupStepper } from 'components/setupStepper'
+import {
+ setupMultigridWatcher,
+ startMultigridWatcher,
+} from 'loaders/multigridSetup'
+import { getSessionData } from 'loaders/session_clients'
+import { ChangeEvent, useEffect, useState } from 'react'
+import { Link as LinkRouter, useLoaderData, useParams } from 'react-router-dom'
+import { components } from 'schema/main'
+
+type MachineConfig = components['schemas']['MachineConfig']
+type MultigridWatcherSpec = components['schemas']['MultigridWatcherSetup']
+type Session = components['schemas']['Session']
+
+function getInitialDirectory(machineConfig: MachineConfig | null) {
+ return machineConfig?.data_directories.find(Boolean) ?? ''
+}
+
+const MultigridSetup = () => {
+ const machineConfig = useLoaderData() as MachineConfig | null
+ const { sessid } = useParams()
+ const initialDirectory = getInitialDirectory(machineConfig)
+ const [selectedDirectory, setSelectedDirectory] =
+ useState(initialDirectory)
+
+ const processByDefault: boolean | undefined = machineConfig
+ ? machineConfig.process_by_default
+ : true
+
+ const [skipExistingProcessing, setSkipExistingProcessing] =
+ useState(!processByDefault)
+ const [session, setSession] = useState()
+
+ useEffect(() => {
+ getSessionData(sessid).then((sessionData) => setSession(sessionData.session))
+ }, [])
+
+ // todo better to have the step as enum, not hardcoded int
+ const activeStep = session != null ? (session.started ? 3 : 2) : 2
+
+ const handleDirectorySelection = (
+ e: ChangeEvent
+ ) => setSelectedDirectory(e.target.value)
+
+ const recipesAreDefined: boolean = [machineConfig, machineConfig?.recipes, Object.keys(machineConfig?.recipes!).length !== 0].every(v => v)
+
+ const handleSelection = async () => {
+ if (typeof sessid !== 'undefined') {
+ await setupMultigridWatcher(
+ {
+ source: selectedDirectory,
+ skip_existing_processing: skipExistingProcessing,
+ } as MultigridWatcherSpec,
+ parseInt(sessid)
+ )
+ if (!recipesAreDefined) await startMultigridWatcher(parseInt(sessid))
+ }
+ }
+
+ const targetLink = recipesAreDefined
+ ? `../new_session/parameters/${sessid}`
+ : `../sessions/${sessid}`
+
+ return (
+
+
+
+
+
+
+ Select data directory
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Do not process existing data
+
+ {
+ setSkipExistingProcessing(
+ !skipExistingProcessing
+ )
+ }}
+ />
+
+
+
+
+ }
+ onClick={handleSelection}
+ />
+
+
+
+
+
+
+
+
+ )
+}
+
+export { MultigridSetup }
+
diff --git a/src/utils/api/client.tsx b/src/utils/api/client.tsx
index 8e8edec..6f30142 100644
--- a/src/utils/api/client.tsx
+++ b/src/utils/api/client.tsx
@@ -1,159 +1,159 @@
-import { createStandaloneToast } from "@chakra-ui/toast";
-import { baseToast } from "@diamondlightsource/ui-components";
-const { toast } = createStandaloneToast();
+import { createStandaloneToast } from '@chakra-ui/toast'
+import { baseToast } from '@diamondlightsource/ui-components'
+const { toast } = createStandaloneToast()
-const controller = new AbortController();
+const controller = new AbortController()
const defaultSettings: Partial = {
- credentials:
- process.env.NODE_ENV === "development" ? "include" : "same-origin",
-};
+ credentials:
+ process.env.NODE_ENV === 'development' ? 'include' : 'same-origin',
+}
interface RequestConfig {
- method: string;
- headers: Record;
- body?: string | FormData;
- [k: string]: any;
+ method: string
+ headers: Record
+ body?: string | FormData
+ [k: string]: any
}
export interface Response {
- status: number;
- data: any;
- headers: Record;
- url: string;
+ status: number
+ data: any
+ headers: Record
+ url: string
}
-export const getPrefix = (prefix: string = "/api/") => {
- if (prefix.substring(0, 1) === "/") {
- return window.location.origin + prefix;
- }
+export const getPrefix = (prefix: string = '/api/') => {
+ if (prefix.substring(0, 1) === '/') {
+ return window.location.origin + prefix
+ }
- return prefix;
-};
+ return prefix
+}
export const client = async (
- endpoint: string,
- customConfig: Record = {},
- body?: Record | FormData | null,
- method: string | null = null,
- errToast: boolean = true,
- prefix: string = getPrefix(sessionStorage.getItem("murfeyServerURL") ?? process.env.REACT_APP_API_ENDPOINT),
+ endpoint: string,
+ customConfig: Record = {},
+ body?: Record | FormData | null,
+ method: string | null = null,
+ errToast: boolean = true,
+ prefix: string = getPrefix(
+ sessionStorage.getItem('murfeyServerURL') ??
+ process.env.REACT_APP_API_ENDPOINT
+ )
): Promise => {
- const config: RequestConfig = {
- method: method ? method : body != null ? "POST" : "GET",
- ...customConfig,
- headers: {
- ...customConfig.headers,
- },
- signal: controller.signal,
- body: undefined,
- ...defaultSettings,
- };
- console.log(endpoint);
-
- if (body != null) {
- if (!(body instanceof FormData)) {
- config.body = JSON.stringify(body);
- config.headers = {
- ...config.headers,
- Accept: "application/json",
- "Content-Type": "application/json",
- };
- } else {
- config.body = body;
+ const config: RequestConfig = {
+ method: method ? method : body != null ? 'POST' : 'GET',
+ ...customConfig,
+ headers: {
+ ...customConfig.headers,
+ },
+ signal: controller.signal,
+ body: undefined,
+ ...defaultSettings,
}
- }
-
- try {
- const token = sessionStorage.getItem("token");
- config.headers = { ...config.headers, Authorization: `Bearer ${token}` };
- const response = await fetch(prefix + endpoint, config);
- const isJson = response.headers.get("content-type") === "application/json";
-
- if(!isJson) console.log(endpoint);
-
- return {
- status: response.status,
- data: isJson ? await response.json() : await response.arrayBuffer(),
- headers: response.headers,
- url: response.url,
- };
- } catch (err) {
- if (!toast.isActive("main-toast") && errToast) {
- toast({
- ...baseToast,
- title:
- "An error has occurred while fetching data, please try again later.",
- status: "error",
- });
+ console.log(endpoint)
+
+ if (body != null) {
+ if (!(body instanceof FormData)) {
+ config.body = JSON.stringify(body)
+ config.headers = {
+ ...config.headers,
+ Accept: 'application/json',
+ 'Content-Type': 'application/json',
+ }
+ } else {
+ config.body = body
+ }
}
- throw err;
- }
-};
+ try {
+ const token = sessionStorage.getItem('token')
+ config.headers = { ...config.headers, Authorization: `Bearer ${token}` }
+ const response = await fetch(prefix + endpoint, config)
+ const isJson =
+ response.headers.get('content-type') === 'application/json'
+
+ if (!isJson) console.log(endpoint)
+
+ return {
+ status: response.status,
+ data: isJson ? await response.json() : await response.arrayBuffer(),
+ headers: response.headers,
+ url: response.url,
+ }
+ } catch (err) {
+ if (!toast.isActive('main-toast') && errToast) {
+ toast({
+ ...baseToast,
+ title: 'An error has occurred while fetching data, please try again later.',
+ status: 'error',
+ })
+ }
+
+ throw err
+ }
+}
client.get = async (
- endpoint: string,
- customConfig = {},
- errToast: boolean = true,
+ endpoint: string,
+ customConfig = {},
+ errToast: boolean = true
) => {
- return await client(
- endpoint,
- (customConfig = {
- ...customConfig,
- }),
- null,
- "GET",
- (errToast = errToast),
- );
-};
+ return await client(
+ endpoint,
+ (customConfig = {
+ ...customConfig,
+ }),
+ null,
+ 'GET',
+ (errToast = errToast)
+ )
+}
client.hub_get = async (
- endpoint: string,
- customConfig = {},
- errToast: boolean = true,
+ endpoint: string,
+ customConfig = {},
+ errToast: boolean = true
) => {
- return await client(
- endpoint,
- (customConfig = {
- ...customConfig,
- }),
- null,
- "GET",
- (errToast = errToast),
- getPrefix(process.env.REACT_APP_HUB_ENDPOINT),
- );
-};
-
+ return await client(
+ endpoint,
+ (customConfig = {
+ ...customConfig,
+ }),
+ null,
+ 'GET',
+ (errToast = errToast),
+ getPrefix(process.env.REACT_APP_HUB_ENDPOINT)
+ )
+}
client.delete = async (endpoint: string, customConfig = {}) => {
- return await client(
- endpoint,
- (customConfig = {
- ...customConfig,
- }),
- null,
- "DELETE",
- );
-};
+ return await client(
+ endpoint,
+ (customConfig = {
+ ...customConfig,
+ }),
+ null,
+ 'DELETE'
+ )
+}
client.post = async (
- endpoint: string,
- body: Record | FormData,
- customConfig = {},
+ endpoint: string,
+ body: Record | FormData,
+ customConfig = {}
) => {
- return await client(endpoint, { ...customConfig }, body);
-};
+ return await client(endpoint, { ...customConfig }, body)
+}
client.put = async (
- endpoint: string,
- body: Record | FormData,
- customConfig = {},
+ endpoint: string,
+ body: Record | FormData,
+ customConfig = {}
) => {
- return await client(endpoint, { ...customConfig }, body, "PUT");
-};
+ return await client(endpoint, { ...customConfig }, body, 'PUT')
+}
export const prependApiUrl = (url: string) =>
- `${getPrefix((sessionStorage.getItem("murfeyServerURL") ?? process.env.REACT_APP_API_ENDPOINT))}${url}`;
-
-
+ `${getPrefix(sessionStorage.getItem('murfeyServerURL') ?? process.env.REACT_APP_API_ENDPOINT)}${url}`
diff --git a/src/utils/constants.ts b/src/utils/constants.ts
new file mode 100644
index 0000000..4eb1662
--- /dev/null
+++ b/src/utils/constants.ts
@@ -0,0 +1,3 @@
+
+export const angstromHtmlChar = "\u212B";
+
diff --git a/src/utils/generic.ts b/src/utils/generic.ts
new file mode 100644
index 0000000..f3d34a3
--- /dev/null
+++ b/src/utils/generic.ts
@@ -0,0 +1,15 @@
+const timeFormatter = new Intl.DateTimeFormat('en-GB', {
+ dateStyle: 'short',
+ timeStyle: 'short',
+})
+
+export const parseDate = (dateString: string | undefined) => {
+ const safeDate = dateString ?? ''
+ const date = Date.parse(safeDate)
+
+ if (isNaN(date)) {
+ return safeDate
+ }
+
+ return timeFormatter.format(date)
+}
diff --git a/src/utils/generic.tsx b/src/utils/generic.tsx
deleted file mode 100644
index dd06c16..0000000
--- a/src/utils/generic.tsx
+++ /dev/null
@@ -1,15 +0,0 @@
-const timeFormatter = new Intl.DateTimeFormat("en-GB", {
- dateStyle: "short",
- timeStyle: "short",
-});
-
-export const parseDate = (dateString: string | undefined) => {
- const safeDate = dateString ?? "";
- const date = Date.parse(safeDate);
-
- if (isNaN(date)) {
- return safeDate;
- }
-
- return timeFormatter.format(date);
-};
diff --git a/src/utils/types.ts b/src/utils/types.ts
new file mode 100644
index 0000000..bc57c09
--- /dev/null
+++ b/src/utils/types.ts
@@ -0,0 +1,13 @@
+import { components } from "schema/main";
+
+export type Session = components['schemas']['Session'];
+export type InstrumentInfo = {
+ instrument_name: string;
+ display_name: string;
+ instrument_url: string;
+};
+
+export type ProcessingDetails = components['schemas']['ProcessingDetails']
+export type RSyncerInfo = components['schemas']['RSyncerInfo']
+export type MachineConfig = components['schemas']['MachineConfig']
+export type MultigridWatcherSpec = components['schemas']['MultigridWatcherSetup']
\ No newline at end of file
diff --git a/yarn.lock b/yarn.lock
index e0b9ce3..d410289 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -2611,6 +2611,11 @@
resolved "https://registry.yarnpkg.com/@pkgjs/parseargs/-/parseargs-0.11.0.tgz#a77ea742fab25775145434eb1d2328cf5013ac33"
integrity sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==
+"@pkgr/core@^0.2.4":
+ version "0.2.7"
+ resolved "https://registry.yarnpkg.com/@pkgr/core/-/core-0.2.7.tgz#eb5014dfd0b03e7f3ba2eeeff506eed89b028058"
+ integrity sha512-YLT9Zo3oNPJoBjBc4q8G2mjU4tqIbf5CEOORbUUr48dCD9q3umJ3IPlVqOqDakPfd2HuwccBaqlGhN4Gmr5OWg==
+
"@pmmmwh/react-refresh-webpack-plugin@^0.5.3":
version "0.5.15"
resolved "https://registry.yarnpkg.com/@pmmmwh/react-refresh-webpack-plugin/-/react-refresh-webpack-plugin-0.5.15.tgz#f126be97c30b83ed777e2aeabd518bc592e6e7c4"
@@ -5700,6 +5705,11 @@ escodegen@^2.0.0:
optionalDependencies:
source-map "~0.6.1"
+eslint-config-prettier@^10.1.5:
+ version "10.1.5"
+ resolved "https://registry.yarnpkg.com/eslint-config-prettier/-/eslint-config-prettier-10.1.5.tgz#00c18d7225043b6fbce6a665697377998d453782"
+ integrity sha512-zc1UmCpNltmVY34vuLRV61r1K27sWuX39E+uyUnY8xS2Bex88VV9cugG+UZbRSRGtGyFboj+D8JODyme1plMpw==
+
eslint-config-react-app@^7.0.1:
version "7.0.1"
resolved "https://registry.yarnpkg.com/eslint-config-react-app/-/eslint-config-react-app-7.0.1.tgz#73ba3929978001c5c86274c017ea57eb5fa644b4"
@@ -5796,6 +5806,14 @@ eslint-plugin-jsx-a11y@^6.5.1:
safe-regex-test "^1.0.3"
string.prototype.includes "^2.0.0"
+eslint-plugin-prettier@^5.4.1:
+ version "5.4.1"
+ resolved "https://registry.yarnpkg.com/eslint-plugin-prettier/-/eslint-plugin-prettier-5.4.1.tgz#99b55d7dd70047886b2222fdd853665f180b36af"
+ integrity sha512-9dF+KuU/Ilkq27A8idRP7N2DH8iUR6qXcjF3FR2wETY21PZdBrIjwCau8oboyGj9b7etWmTGEeM8e7oOed6ZWg==
+ dependencies:
+ prettier-linter-helpers "^1.0.0"
+ synckit "^0.11.7"
+
eslint-plugin-react-hooks@^4.3.0:
version "4.6.2"
resolved "https://registry.yarnpkg.com/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-4.6.2.tgz#c829eb06c0e6f484b3fbb85a97e57784f328c596"
@@ -6064,6 +6082,11 @@ fast-deep-equal@^3.1.1, fast-deep-equal@^3.1.3:
resolved "https://registry.yarnpkg.com/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz#3a7d56b559d6cbc3eb512325244e619a65c6c525"
integrity sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==
+fast-diff@^1.1.2:
+ version "1.3.0"
+ resolved "https://registry.yarnpkg.com/fast-diff/-/fast-diff-1.3.0.tgz#ece407fa550a64d638536cd727e129c61616e0f0"
+ integrity sha512-VxPP4NqbUjj6MaAOafWeUn2cXWLcCtljklUtZf0Ind4XQ+QPtmA0b18zZy0jIQx+ExRVCR/ZQpBmik5lXshNsw==
+
fast-glob@^3.2.9, fast-glob@^3.3.0, fast-glob@^3.3.2:
version "3.3.2"
resolved "https://registry.yarnpkg.com/fast-glob/-/fast-glob-3.3.2.tgz#a904501e57cfdd2ffcded45e99a54fef55e46129"
@@ -9282,10 +9305,17 @@ prelude-ls@~1.1.2:
resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.1.2.tgz#21932a549f5e52ffd9a827f570e04be62a97da54"
integrity sha512-ESF23V4SKG6lVSGZgYNpbsiaAkdab6ZgOxe52p7+Kid3W3u3bxR4Vfd/o21dmN7jSt0IwgZ4v5MUd26FEtXE9w==
-prettier@3.3.1:
- version "3.3.1"
- resolved "https://registry.yarnpkg.com/prettier/-/prettier-3.3.1.tgz#e68935518dd90bb7ec4821ba970e68f8de16e1ac"
- integrity sha512-7CAwy5dRsxs8PHXT3twixW9/OEll8MLE0VRPCJyl7CkS6VHGPSlsVaWTiASPTyGyYRyApxlaWTzwUxVNrhcwDg==
+prettier-linter-helpers@^1.0.0:
+ version "1.0.0"
+ resolved "https://registry.yarnpkg.com/prettier-linter-helpers/-/prettier-linter-helpers-1.0.0.tgz#d23d41fe1375646de2d0104d3454a3008802cf7b"
+ integrity sha512-GbK2cP9nraSSUF9N2XwUwqfzlAFlMNYYl+ShE/V+H8a9uNl/oUqB1w2EL54Jh0OlyRSd8RfWYJ3coVS4TROP2w==
+ dependencies:
+ fast-diff "^1.1.2"
+
+prettier@^3.5.3:
+ version "3.5.3"
+ resolved "https://registry.yarnpkg.com/prettier/-/prettier-3.5.3.tgz#4fc2ce0d657e7a02e602549f053b239cb7dfe1b5"
+ integrity sha512-QQtaxnoDJeAkDvDKWCLiwIXkTgRhwYDEQCghU9Z6q03iyek/rxRh/2lC3HB7P8sWT2xC/y5JDctPLBIGzHKbhw==
pretty-bytes@^5.3.0, pretty-bytes@^5.4.1:
version "5.6.0"
@@ -10373,7 +10403,16 @@ string-natural-compare@^3.0.1:
resolved "https://registry.yarnpkg.com/string-natural-compare/-/string-natural-compare-3.0.1.tgz#7a42d58474454963759e8e8b7ae63d71c1e7fdf4"
integrity sha512-n3sPwynL1nwKi3WJ6AIsClwBMa0zTi54fn2oLU6ndfTSIO05xaznjSf15PcBZU6FNWbmN5Q6cxT4V5hGvB4taw==
-"string-width-cjs@npm:string-width@^4.2.0", string-width@^4.1.0, string-width@^4.2.0:
+"string-width-cjs@npm:string-width@^4.2.0":
+ version "4.2.3"
+ resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010"
+ integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==
+ dependencies:
+ emoji-regex "^8.0.0"
+ is-fullwidth-code-point "^3.0.0"
+ strip-ansi "^6.0.1"
+
+string-width@^4.1.0, string-width@^4.2.0:
version "4.2.3"
resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010"
integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==
@@ -10476,7 +10515,14 @@ stringify-object@^3.3.0:
is-obj "^1.0.1"
is-regexp "^1.0.0"
-"strip-ansi-cjs@npm:strip-ansi@^6.0.1", strip-ansi@^6.0.0, strip-ansi@^6.0.1:
+"strip-ansi-cjs@npm:strip-ansi@^6.0.1":
+ version "6.0.1"
+ resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9"
+ integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==
+ dependencies:
+ ansi-regex "^5.0.1"
+
+strip-ansi@^6.0.0, strip-ansi@^6.0.1:
version "6.0.1"
resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9"
integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==
@@ -10634,6 +10680,13 @@ symbol-tree@^3.2.4:
resolved "https://registry.yarnpkg.com/symbol-tree/-/symbol-tree-3.2.4.tgz#430637d248ba77e078883951fb9aa0eed7c63fa2"
integrity sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw==
+synckit@^0.11.7:
+ version "0.11.8"
+ resolved "https://registry.yarnpkg.com/synckit/-/synckit-0.11.8.tgz#b2aaae998a4ef47ded60773ad06e7cb821f55457"
+ integrity sha512-+XZ+r1XGIJGeQk3VvXhT6xx/VpbHsRzsTkGgF6E5RX9TTXD0118l87puaEBZ566FhqblC6U0d4XnubznJDm30A==
+ dependencies:
+ "@pkgr/core" "^0.2.4"
+
tailwindcss@^3.0.2:
version "3.4.7"
resolved "https://registry.yarnpkg.com/tailwindcss/-/tailwindcss-3.4.7.tgz#6092f18767f5933f59375b9afe558e592fc77201"
@@ -11576,7 +11629,16 @@ workbox-window@6.6.1:
"@types/trusted-types" "^2.0.2"
workbox-core "6.6.1"
-"wrap-ansi-cjs@npm:wrap-ansi@^7.0.0", wrap-ansi@^7.0.0:
+"wrap-ansi-cjs@npm:wrap-ansi@^7.0.0":
+ version "7.0.0"
+ resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43"
+ integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==
+ dependencies:
+ ansi-styles "^4.0.0"
+ string-width "^4.1.0"
+ strip-ansi "^6.0.0"
+
+wrap-ansi@^7.0.0:
version "7.0.0"
resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43"
integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==