{
  "openapi": "3.1.0",
  "info": {
    "title": "BugSeq",
    "version": "0.1.0"
  },
  "paths": {
    "/v1/users/me": {
      "get": {
        "tags": [
          "users"
        ],
        "summary": "Get Current User",
        "operationId": "get_current_user_v1_users_me_get",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UserResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v1/files/singlepart/init": {
      "post": {
        "tags": [
          "files"
        ],
        "summary": "Initialize Single Part Upload",
        "operationId": "initialize_single_part_upload_v1_files_singlepart_init_post",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FileCreateS3Request"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FileInitUploadS3Response"
                }
              }
            }
          }
        }
      }
    },
    "/v1/files/multipart/init": {
      "post": {
        "tags": [
          "files"
        ],
        "summary": "Initialize Multipart Upload",
        "operationId": "initialize_multipart_upload_v1_files_multipart_init_post",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FileCreateS3Request"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FileInitUploadS3Response"
                }
              }
            }
          }
        }
      }
    },
    "/v1/files/multipart/chunk": {
      "post": {
        "tags": [
          "files"
        ],
        "summary": "Presign Multipart Chunk",
        "operationId": "presign_multipart_chunk_v1_files_multipart_chunk_post",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FileMultipartChunkInitUploadRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FileInitUploadS3Response"
                }
              }
            }
          }
        }
      }
    },
    "/v1/files/multipart/complete": {
      "post": {
        "tags": [
          "files"
        ],
        "summary": "Complete Multipart Upload",
        "operationId": "complete_multipart_upload_v1_files_multipart_complete_post",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FileMultipartUploadCompleteRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        }
      }
    },
    "/v1/jobs/": {
      "post": {
        "tags": [
          "jobs"
        ],
        "summary": "Submit Analysis",
        "operationId": "submit_analysis_v1_jobs__post",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/JobRunSubmitRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JobRunSubmitResponse"
                }
              }
            }
          }
        }
      },
      "get": {
        "tags": [
          "jobs"
        ],
        "summary": "List Analyses",
        "operationId": "list_analyses_v1_jobs__get",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "ids",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                {
                  "type": "null"
                }
              ],
              "title": "Ids"
            }
          },
          {
            "name": "owner_ids",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                {
                  "type": "null"
                }
              ],
              "title": "Owner Ids"
            }
          },
          {
            "name": "lab_ids",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                {
                  "type": "null"
                }
              ],
              "title": "Lab Ids"
            }
          },
          {
            "name": "user_provided_name",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "User Provided Name"
            }
          },
          {
            "name": "skip",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "default": 0,
              "title": "Skip"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 100,
              "default": 20,
              "title": "Limit"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JobRunListResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v1/jobs/{job_id}/results": {
      "get": {
        "tags": [
          "jobs"
        ],
        "summary": "Get Analysis Results",
        "operationId": "get_analysis_results_v1_jobs__job_id__results_get",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "job_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Job Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JobRunResultsResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v1/jobs/{job_id}/results/download": {
      "get": {
        "tags": [
          "jobs"
        ],
        "summary": "Download Analysis Result",
        "operationId": "download_analysis_result_v1_jobs__job_id__results_download_get",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "job_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Job Id"
            }
          },
          {
            "name": "filename",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Filename"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FileDownloadResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v1/billing/{billing_account_id}/credits/sample": {
      "get": {
        "tags": [
          "billing"
        ],
        "summary": "List Billing Account Sample Credits",
        "operationId": "list_billing_account_sample_credits_v1_billing__billing_account_id__credits_sample_get",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "billing_account_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Billing Account Id"
            }
          },
          {
            "name": "remaining_count_gt",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Remaining Count Gt"
            }
          },
          {
            "name": "include_expired",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "default": true,
              "title": "Include Expired"
            }
          },
          {
            "name": "skip",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "default": 0,
              "title": "Skip"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 100,
              "default": 20,
              "title": "Limit"
            }
          },
          {
            "name": "sort_dir",
            "in": "query",
            "required": false,
            "schema": {
              "enum": [
                "asc",
                "desc"
              ],
              "type": "string",
              "default": "asc",
              "title": "Sort Dir"
            }
          },
          {
            "name": "sort_by",
            "in": "query",
            "required": false,
            "schema": {
              "enum": [
                "created",
                "expiration"
              ],
              "type": "string",
              "default": "expiration",
              "title": "Sort By"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ListBillingAccountSampleCreditResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v1/organization/membership": {
      "get": {
        "tags": [],
        "summary": "List Memberships",
        "operationId": "list_memberships_v1_organization_membership_get",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "role",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/OrgMemberRole"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Role"
            }
          },
          {
            "name": "skip",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "default": 0,
              "title": "Skip"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 100,
              "default": 20,
              "title": "Limit"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ListMembershipsResponse"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "BillingAccountSampleCreditResponse": {
        "properties": {
          "id": {
            "type": "string",
            "title": "Id"
          },
          "sample_type": {
            "$ref": "#/components/schemas/app__db_models__billing_account_sample__SampleType"
          },
          "initial_count": {
            "type": "integer",
            "title": "Initial Count"
          },
          "remaining_count": {
            "type": "integer",
            "title": "Remaining Count"
          },
          "expiration": {
            "type": "string",
            "format": "date-time",
            "title": "Expiration"
          },
          "billing_account_id": {
            "type": "string",
            "title": "Billing Account Id"
          },
          "created": {
            "type": "string",
            "format": "date-time",
            "title": "Created"
          },
          "is_signup_trial_credit": {
            "type": "boolean",
            "title": "Is Signup Trial Credit"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "id",
          "sample_type",
          "initial_count",
          "remaining_count",
          "expiration",
          "billing_account_id",
          "created",
          "is_signup_trial_credit"
        ],
        "title": "BillingAccountSampleCreditResponse"
      },
      "BreakpointStandard": {
        "type": "string",
        "enum": [
          "CLSI",
          "EUCAST"
        ],
        "title": "BreakpointStandard"
      },
      "ExperimentalDesign": {
        "type": "string",
        "enum": [
          "AUTODETECT",
          "AMPLICON_16S",
          "METAGENOMIC"
        ],
        "title": "ExperimentalDesign"
      },
      "FileCreateS3Request": {
        "properties": {
          "filename": {
            "type": "string",
            "title": "Filename"
          },
          "s3_region": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "S3 Region"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "filename"
        ],
        "title": "FileCreateS3Request"
      },
      "FileDownloadResponse": {
        "properties": {
          "url": {
            "type": "string",
            "title": "Url"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "url"
        ],
        "title": "FileDownloadResponse"
      },
      "FileInitUploadS3Response": {
        "properties": {
          "id": {
            "type": "string",
            "title": "Id"
          },
          "presigned_s3_data": {
            "title": "Presigned S3 Data"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "id",
          "presigned_s3_data"
        ],
        "title": "FileInitUploadS3Response"
      },
      "FileMultipartChunkInitUploadRequest": {
        "properties": {
          "file_id": {
            "type": "string",
            "title": "File Id"
          },
          "upload_id": {
            "type": "string",
            "title": "Upload Id"
          },
          "part_number": {
            "type": "integer",
            "title": "Part Number"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "file_id",
          "upload_id",
          "part_number"
        ],
        "title": "FileMultipartChunkInitUploadRequest"
      },
      "FileMultipartUploadCompleteRequest": {
        "properties": {
          "file_id": {
            "type": "string",
            "title": "File Id"
          },
          "upload_id": {
            "type": "string",
            "title": "Upload Id"
          },
          "parts": {
            "title": "Parts"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "file_id",
          "upload_id",
          "parts"
        ],
        "title": "FileMultipartUploadCompleteRequest"
      },
      "HTTPValidationError": {
        "properties": {
          "detail": {
            "items": {
              "$ref": "#/components/schemas/ValidationError"
            },
            "type": "array",
            "title": "Detail"
          }
        },
        "type": "object",
        "title": "HTTPValidationError"
      },
      "JobRunFileResponse": {
        "properties": {
          "filename": {
            "type": "string",
            "title": "Filename"
          },
          "size": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Size"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "filename"
        ],
        "title": "JobRunFileResponse"
      },
      "JobRunListResponse": {
        "properties": {
          "job_runs": {
            "items": {
              "$ref": "#/components/schemas/JobRunResponse"
            },
            "type": "array",
            "title": "Job Runs"
          },
          "has_more": {
            "type": "boolean",
            "title": "Has More"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "job_runs",
          "has_more"
        ],
        "title": "JobRunListResponse"
      },
      "JobRunResponse": {
        "properties": {
          "id": {
            "type": "string",
            "title": "Id"
          },
          "user_provided_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "User Provided Name"
          },
          "owner_id": {
            "type": "string",
            "title": "Owner Id"
          },
          "created": {
            "type": "string",
            "format": "date-time",
            "title": "Created"
          },
          "end_time": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "End Time"
          },
          "job_status": {
            "$ref": "#/components/schemas/JobStatus"
          },
          "results_url": {
            "type": "string",
            "title": "Results Url"
          },
          "org_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Org Id"
          },
          "pipeline_version": {
            "$ref": "#/components/schemas/PipelineVersion"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "id",
          "user_provided_name",
          "owner_id",
          "created",
          "end_time",
          "job_status",
          "results_url",
          "org_id",
          "pipeline_version"
        ],
        "title": "JobRunResponse"
      },
      "JobRunResultsResponse": {
        "properties": {
          "id": {
            "type": "string",
            "title": "Id"
          },
          "user_provided_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "User Provided Name"
          },
          "owner_id": {
            "type": "string",
            "title": "Owner Id"
          },
          "created": {
            "type": "string",
            "format": "date-time",
            "title": "Created"
          },
          "end_time": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "End Time"
          },
          "job_status": {
            "$ref": "#/components/schemas/JobStatus"
          },
          "inputs": {
            "items": {
              "$ref": "#/components/schemas/JobRunFileResponse"
            },
            "type": "array",
            "title": "Inputs"
          },
          "outputs": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/JobRunFileResponse"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Outputs"
          },
          "org_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Org Id"
          },
          "pipeline_version": {
            "$ref": "#/components/schemas/PipelineVersion"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "id",
          "owner_id",
          "created",
          "job_status",
          "inputs",
          "outputs",
          "org_id",
          "pipeline_version"
        ],
        "title": "JobRunResultsResponse"
      },
      "JobRunSubmitRequest": {
        "properties": {
          "user_provided_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "User Provided Name"
          },
          "aws_region": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Aws Region"
          },
          "file_ids": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "File Ids"
          },
          "run_options": {
            "$ref": "#/components/schemas/RunOptions"
          },
          "lab_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Lab Id"
          },
          "testmode": {
            "type": "boolean",
            "title": "Testmode",
            "default": false
          },
          "user_provided_metadata": {
            "anyOf": [
              {
                "items": {
                  "additionalProperties": {
                    "anyOf": [
                      {
                        "type": "boolean"
                      },
                      {
                        "type": "string"
                      }
                    ]
                  },
                  "type": "object"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "User Provided Metadata"
          },
          "pipeline_version": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PipelineVersion"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "file_ids",
          "run_options"
        ],
        "title": "JobRunSubmitRequest"
      },
      "JobRunSubmitResponse": {
        "properties": {
          "id": {
            "type": "string",
            "title": "Id"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "id"
        ],
        "title": "JobRunSubmitResponse"
      },
      "JobStatus": {
        "type": "string",
        "enum": [
          "created",
          "pending",
          "running",
          "success",
          "failure",
          "marked_in_error"
        ],
        "title": "JobStatus"
      },
      "Kit": {
        "type": "string",
        "enum": [
          "MINION_R9_4_1",
          "MINION_R10_3",
          "MINION_Q20",
          "PROMETHION_R9_4_1",
          "PROMETHION_Q20",
          "MINION_R10_4_1",
          "PROMETHION_R10_4_1",
          "HIFI",
          "UNKNOWN",
          "FLONGLE_R9_4_1"
        ],
        "title": "Kit"
      },
      "ListBillingAccountSampleCreditResponse": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/BillingAccountSampleCreditResponse"
            },
            "type": "array",
            "title": "Items"
          },
          "has_more": {
            "type": "boolean",
            "title": "Has More"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "items",
          "has_more"
        ],
        "title": "ListBillingAccountSampleCreditResponse"
      },
      "ListMembershipsItemResponse": {
        "properties": {
          "id": {
            "type": "string",
            "title": "Id"
          },
          "name": {
            "type": "string",
            "title": "Name"
          },
          "manager_id": {
            "type": "string",
            "title": "Manager Id"
          },
          "auto_share_analyses": {
            "type": "boolean",
            "title": "Auto Share Analyses"
          },
          "metadata_keys": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Metadata Keys"
          },
          "created": {
            "type": "string",
            "format": "date-time",
            "title": "Created"
          },
          "percent_identity_to_reference_genome_threshold": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Percent Identity To Reference Genome Threshold"
          },
          "median_coverage_of_reference_genome_threshold": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Median Coverage Of Reference Genome Threshold"
          },
          "assembly_completeness_threshold": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Assembly Completeness Threshold"
          },
          "assembly_duplication_threshold": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Assembly Duplication Threshold"
          },
          "number_of_contigs_warn_threshold": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Number Of Contigs Warn Threshold"
          },
          "number_of_contigs_fail_threshold": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Number Of Contigs Fail Threshold"
          },
          "length_qc_tukeys_k_warn_threshold": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Length Qc Tukeys K Warn Threshold"
          },
          "length_qc_tukeys_k_fail_threshold": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Length Qc Tukeys K Fail Threshold"
          },
          "gc_content_qc_tukeys_k_warn_threshold": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Gc Content Qc Tukeys K Warn Threshold"
          },
          "gc_content_qc_tukeys_k_fail_threshold": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Gc Content Qc Tukeys K Fail Threshold"
          },
          "default_outbreak_allele_cutoff": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/OutbreakAlleleCutoff"
              },
              {
                "type": "null"
              }
            ]
          },
          "per_taxid_outbreak_parameters": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/PerTaxidOutbreakParameters"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Per Taxid Outbreak Parameters"
          },
          "per_sample_type_metagenomic_thresholds": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PerSampleTypeMetagenomicThresholds"
              },
              {
                "type": "null"
              }
            ]
          },
          "generate_ai_summary_in_reports": {
            "type": "boolean",
            "title": "Generate Ai Summary In Reports"
          },
          "default_molecule_type": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/MoleculeType"
              },
              {
                "type": "null"
              }
            ]
          },
          "default_molecule_type_enforced": {
            "type": "boolean",
            "title": "Default Molecule Type Enforced"
          },
          "default_platform": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Platform"
              },
              {
                "type": "null"
              }
            ]
          },
          "default_platform_enforced": {
            "type": "boolean",
            "title": "Default Platform Enforced"
          },
          "default_kit": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Kit"
              },
              {
                "type": "null"
              }
            ]
          },
          "default_kit_enforced": {
            "type": "boolean",
            "title": "Default Kit Enforced"
          },
          "default_metagenomic_database": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/MetagenomicDatabase"
              },
              {
                "type": "null"
              }
            ]
          },
          "default_metagenomic_database_enforced": {
            "type": "boolean",
            "title": "Default Metagenomic Database Enforced"
          },
          "default_sample_type": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/app__models__job_run_options__SampleType"
              },
              {
                "type": "null"
              }
            ]
          },
          "default_sample_type_enforced": {
            "type": "boolean",
            "title": "Default Sample Type Enforced"
          },
          "default_pipeline_version": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PipelineVersion"
              },
              {
                "type": "null"
              }
            ]
          },
          "force_experimental_design": {
            "$ref": "#/components/schemas/ExperimentalDesign"
          },
          "default_breakpoint_standard": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/BreakpointStandard"
              },
              {
                "type": "null"
              }
            ]
          },
          "member_preferences": {
            "$ref": "#/components/schemas/OrganizationMembershipPreferencesResponse"
          },
          "members": {
            "items": {
              "$ref": "#/components/schemas/OrganizationMemberResponse"
            },
            "type": "array",
            "title": "Members"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "id",
          "name",
          "manager_id",
          "auto_share_analyses",
          "metadata_keys",
          "created",
          "percent_identity_to_reference_genome_threshold",
          "median_coverage_of_reference_genome_threshold",
          "assembly_completeness_threshold",
          "assembly_duplication_threshold",
          "number_of_contigs_warn_threshold",
          "number_of_contigs_fail_threshold",
          "length_qc_tukeys_k_warn_threshold",
          "length_qc_tukeys_k_fail_threshold",
          "gc_content_qc_tukeys_k_warn_threshold",
          "gc_content_qc_tukeys_k_fail_threshold",
          "default_outbreak_allele_cutoff",
          "per_taxid_outbreak_parameters",
          "per_sample_type_metagenomic_thresholds",
          "generate_ai_summary_in_reports",
          "default_molecule_type",
          "default_molecule_type_enforced",
          "default_platform",
          "default_platform_enforced",
          "default_kit",
          "default_kit_enforced",
          "default_metagenomic_database",
          "default_metagenomic_database_enforced",
          "default_sample_type",
          "default_sample_type_enforced",
          "default_pipeline_version",
          "force_experimental_design",
          "default_breakpoint_standard",
          "member_preferences",
          "members"
        ],
        "title": "ListMembershipsItemResponse"
      },
      "ListMembershipsResponse": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/ListMembershipsItemResponse"
            },
            "type": "array",
            "title": "Items"
          },
          "has_more": {
            "type": "boolean",
            "title": "Has More"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "items",
          "has_more"
        ],
        "title": "ListMembershipsResponse"
      },
      "MetagenomicDatabase": {
        "type": "string",
        "enum": [
          "BUGSEQ_DEFAULT",
          "NCBI_NT"
        ],
        "title": "MetagenomicDatabase"
      },
      "MetagenomicDetectionThresholdParameters": {
        "properties": {
          "unique_read_alignments": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Unique Read Alignments"
          },
          "read_count_summed": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Read Count Summed"
          },
          "read_count_at_rank": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Read Count At Rank"
          },
          "negative_control_multiplicity_summed": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Negative Control Multiplicity Summed"
          },
          "relative_abundance": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Relative Abundance"
          },
          "horizontal_genome_coverage_gt_1x": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Horizontal Genome Coverage Gt 1X"
          },
          "median_percent_read_aligned": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Median Percent Read Aligned"
          },
          "pathogen_prioritization_specifications": {
            "anyOf": [
              {
                "additionalProperties": {
                  "items": {
                    "$ref": "#/components/schemas/PathogenicityTaxaEntry"
                  },
                  "type": "array"
                },
                "propertyNames": {
                  "$ref": "#/components/schemas/PathogenicityClassification"
                },
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Pathogen Prioritization Specifications"
          },
          "pathogen_ordering_priorities": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/PathogenicityDisplayCategory"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Pathogen Ordering Priorities"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "unique_read_alignments",
          "read_count_summed",
          "negative_control_multiplicity_summed",
          "relative_abundance",
          "horizontal_genome_coverage_gt_1x"
        ],
        "title": "MetagenomicDetectionThresholdParameters"
      },
      "MoleculeType": {
        "type": "string",
        "enum": [
          "DNA",
          "RNA",
          "TNA"
        ],
        "title": "MoleculeType"
      },
      "OrgMemberRole": {
        "type": "string",
        "enum": [
          "REVIEWER",
          "SUBMITTER"
        ],
        "title": "OrgMemberRole"
      },
      "OrganizationMemberResponse": {
        "properties": {
          "id": {
            "type": "string",
            "title": "Id"
          },
          "first_name": {
            "type": "string",
            "title": "First Name"
          },
          "last_name": {
            "type": "string",
            "title": "Last Name"
          },
          "email": {
            "type": "string",
            "title": "Email"
          },
          "member_role": {
            "$ref": "#/components/schemas/OrgMemberRole"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "id",
          "first_name",
          "last_name",
          "email",
          "member_role"
        ],
        "title": "OrganizationMemberResponse"
      },
      "OrganizationMembershipPreferencesResponse": {
        "properties": {
          "emails_enabled_org_share": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Emails Enabled Org Share"
          },
          "is_default_for_submission": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Is Default For Submission"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "title": "OrganizationMembershipPreferencesResponse"
      },
      "OutbreakAlleleCutoff": {
        "type": "string",
        "enum": [
          "OUTBREAK_ALLELE_CUTOFF_UNSPECIFIED",
          "OUTBREAK_ALLELE_CUTOFF_5",
          "OUTBREAK_ALLELE_CUTOFF_10",
          "OUTBREAK_ALLELE_CUTOFF_20",
          "OUTBREAK_ALLELE_CUTOFF_50",
          "OUTBREAK_ALLELE_CUTOFF_100",
          "OUTBREAK_ALLELE_CUTOFF_200",
          "OUTBREAK_ALLELE_CUTOFF_1000"
        ],
        "title": "OutbreakAlleleCutoff"
      },
      "PathogenicityClassification": {
        "type": "string",
        "enum": [
          "PATHOGENIC_PROBABLE",
          "PATHOGENIC_NORMAL"
        ],
        "title": "PathogenicityClassification"
      },
      "PathogenicityDisplayCategory": {
        "type": "string",
        "enum": [
          "PATHOGENIC_PROBABLE_ABOVE_THRESHOLD",
          "PATHOGENIC_POSSIBLE_ABOVE_THRESHOLD",
          "PATHOGENIC_PROBABLE",
          "PATHOGENIC_POSSIBLE",
          "PATHOGENIC_NORMAL_ABOVE_THRESHOLD",
          "PATHOGENIC_NORMAL"
        ],
        "title": "PathogenicityDisplayCategory"
      },
      "PathogenicityTaxaEntry": {
        "properties": {
          "species_taxid": {
            "type": "integer",
            "title": "Species Taxid"
          },
          "species_name": {
            "type": "string",
            "title": "Species Name"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "species_taxid",
          "species_name"
        ],
        "title": "PathogenicityTaxaEntry"
      },
      "PerSampleTypeMetagenomicThresholds": {
        "additionalProperties": {
          "$ref": "#/components/schemas/MetagenomicDetectionThresholdParameters"
        },
        "propertyNames": {
          "$ref": "#/components/schemas/app__models__job_run_options__SampleType"
        },
        "type": "object"
      },
      "PerTaxidOutbreakParameters": {
        "properties": {
          "species_taxid": {
            "type": "integer",
            "title": "Species Taxid"
          },
          "species_name": {
            "type": "string",
            "title": "Species Name"
          },
          "new_sample_alert_cutoff": {
            "$ref": "#/components/schemas/OutbreakAlleleCutoff"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "species_taxid",
          "species_name",
          "new_sample_alert_cutoff"
        ],
        "title": "PerTaxidOutbreakParameters"
      },
      "PipelineVersion": {
        "type": "string",
        "enum": [
          "latest",
          "v1.2",
          "v5.6",
          "v5.7",
          "v5.8",
          "v5.9",
          "v6.0",
          "v6.1"
        ],
        "title": "PipelineVersion"
      },
      "Platform": {
        "type": "string",
        "enum": [
          "NANOPORE",
          "ILLUMINA",
          "ILLUMINA_SINGLE_END",
          "OTHER_SHORT_READ_PAIRED_END",
          "OTHER_SHORT_READ_SINGLE_END",
          "PACBIO",
          "ION_TORRENT"
        ],
        "title": "Platform"
      },
      "RunOptions": {
        "properties": {
          "platform": {
            "$ref": "#/components/schemas/Platform"
          },
          "kit": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Kit"
              },
              {
                "type": "null"
              }
            ]
          },
          "metagenomic_database": {
            "$ref": "#/components/schemas/MetagenomicDatabase",
            "default": "BUGSEQ_DEFAULT"
          },
          "sample_type": {
            "$ref": "#/components/schemas/app__models__job_run_options__SampleType"
          },
          "molecule_type": {
            "$ref": "#/components/schemas/MoleculeType",
            "default": "DNA"
          },
          "include_in_lab_db": {
            "type": "boolean",
            "title": "Include In Lab Db",
            "default": true
          },
          "filter_animal_reads": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Filter Animal Reads"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "platform",
          "sample_type"
        ],
        "title": "RunOptions"
      },
      "UserResponse": {
        "properties": {
          "id": {
            "type": "string",
            "title": "Id"
          },
          "email": {
            "type": "string",
            "title": "Email"
          },
          "first_name": {
            "type": "string",
            "title": "First Name"
          },
          "last_name": {
            "type": "string",
            "title": "Last Name"
          },
          "created": {
            "type": "string",
            "format": "date-time",
            "title": "Created"
          },
          "affiliation": {
            "type": "string",
            "title": "Affiliation"
          },
          "billing_account_id": {
            "type": "string",
            "title": "Billing Account Id"
          },
          "pipeline_version": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Pipeline Version"
          },
          "pinned_region": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Pinned Region"
          },
          "enabled_features": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Enabled Features"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "id",
          "email",
          "first_name",
          "last_name",
          "created",
          "affiliation",
          "billing_account_id",
          "enabled_features"
        ],
        "title": "UserResponse"
      },
      "ValidationError": {
        "properties": {
          "loc": {
            "items": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "integer"
                }
              ]
            },
            "type": "array",
            "title": "Location"
          },
          "msg": {
            "type": "string",
            "title": "Message"
          },
          "type": {
            "type": "string",
            "title": "Error Type"
          }
        },
        "type": "object",
        "required": [
          "loc",
          "msg",
          "type"
        ],
        "title": "ValidationError"
      },
      "app__db_models__billing_account_sample__SampleType": {
        "type": "string",
        "enum": [
          "metagenomic",
          "sixteen_s",
          "isolate",
          "any_sample_type"
        ],
        "title": "SampleType"
      },
      "app__models__job_run_options__SampleType": {
        "type": "string",
        "enum": [
          "ABSCESS",
          "BACTERIAL_ISOLATE",
          "BLOOD",
          "ENVIRONMENTAL",
          "GENERIC",
          "RESPIRATORY_LOWER",
          "RESPIRATORY_UPPER",
          "STERILE_SAMPLE",
          "CEREBROSPINAL_FLUID",
          "STOOL",
          "URINE",
          "WASTEWATER",
          "WOUND_DEEP",
          "WOUND_SUPERFICIAL",
          "PLASMA",
          "GENITAL_CERVICAL",
          "GENITAL_PENILE",
          "RESPIRATORY_BAL",
          "RESPIRATORY_BRONCHIAL_BRUSH",
          "RESPIRATORY_NASOPHARYNGEAL_OROPHARYNGEAL",
          "RESPIRATORY_SPUTUM",
          "STERILE_SAMPLE_BIOPSY",
          "STERILE_SAMPLE_JOINT_FLUID",
          "STERILE_SAMPLE_PERITONEAL_FLUID",
          "URINE_CATHETER",
          "URINE_MIDSTREAM",
          "FOOD"
        ],
        "title": "SampleType"
      }
    },
    "securitySchemes": {
      "HTTPBearer": {
        "type": "http",
        "scheme": "bearer"
      }
    }
  }
}