{"openapi":"3.1.0","info":{"title":"Watney Endpoints","description":"REST services for the Watney platform. \n","contact":{"name":"Luke C","email":"luke@watneylabs.com"},"version":"0.1.0"},"paths":{"/":{"get":{"summary":"Health Check","operationId":"health_check__get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/secure-endpoint":{"get":{"summary":"Secure Endpoint","operationId":"secure_endpoint_secure_endpoint_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"APIKeyHeader":[]}]}},"/create-email-account":{"post":{"tags":["API Auth"],"summary":"Create Email Account","operationId":"create_email_account_create_email_account_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignUpCodeRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/create-google-account":{"post":{"tags":["API Auth"],"summary":"Create Google Account","operationId":"create_google_account_create_google_account_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleSignUpRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/verify-signup-code":{"post":{"tags":["API Auth"],"summary":"Verify Signup Code","operationId":"verify_signup_code_verify_signup_code_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerifySignUpCodeRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/experiment-token":{"post":{"tags":["Authentication"],"summary":"Generate Experiment Token","description":"Generate a JWT token containing ALL experiments the user has access to.\nThis efficiently looks up user experiments from the user document and validates team access.\n\nThe token is valid for 2 hours and contains all experiments the user can access.\nPerfect for caching and reducing permission check overhead.","operationId":"generate_experiment_token_auth_experiment_token_post","parameters":[{"name":"firebase-token","in":"header","required":true,"schema":{"type":"string","title":"Firebase-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExperimentTokenRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExperimentTokenResponse"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/test-token-performance":{"post":{"tags":["Authentication"],"summary":"Test Token Performance","description":"Test endpoint to verify JWT token optimization performance.\nValidates token and measures performance vs database lookups.","operationId":"test_token_performance_auth_test_token_performance_post","parameters":[{"name":"experiment_token","in":"query","required":true,"schema":{"type":"string","title":"Experiment Token"}},{"name":"firebase-token","in":"header","required":true,"schema":{"type":"string","title":"Firebase-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenTestResponse"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/set-team-claims":{"post":{"tags":["Authentication"],"summary":"Set Team Claims","description":"Verify user is a member of the team and set the teamId in custom claims.\nThis is required for Firebase Storage rules to work securely.","operationId":"set_team_claims_auth_set_team_claims_post","parameters":[{"name":"firebase-token","in":"header","required":true,"schema":{"type":"string","title":"Firebase-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TeamClaimRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/experiment/{team_id}/{experiment_id}":{"get":{"tags":["Experiment management","Experiment management"],"summary":"Api Get Experiment Data","description":"Retrieve detailed data for a specific experiment.\n\nThis endpoint allows authorized users to fetch all associated data for a particular experiment identified by its ID.\n\nParameters:\n- **experiment_id** (str): The unique identifier of the experiment to retrieve.\n\nReturns:\n- **dict**: A dictionary containing all data related to the specified experiment.\n\nRaises:\n- **HTTPException**:\n    - **403 Forbidden**: If access to the experiment is denied.\n    - **404 Not Found**: If the experiment is not found.\n    - **500 Internal Server Error**: If an internal server error occurs.","operationId":"api_get_experiment_data_experiment__team_id___experiment_id__get","parameters":[{"name":"team_id","in":"path","required":true,"schema":{"type":"string","title":"Team Id"}},{"name":"experiment_id","in":"path","required":true,"schema":{"type":"string","title":"Experiment Id"}},{"name":"jwt-token","in":"header","required":true,"schema":{"type":"string","title":"Jwt-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/experiment/{team_id}/create_new":{"post":{"tags":["Experiment management","Experiment management"],"summary":"Create New Experiment","description":"Creates a new experiment in Firestore and returns its id and experiment data.\n\nArguments:\n- experiment_name: Name of the new experiment\n\nReturns:\n- 200 OK: Returns experiment id and experiment data\n- 404 Not Found: If there is an error adding the data.","operationId":"create_new_experiment_experiment__team_id__create_new_post","parameters":[{"name":"team_id","in":"path","required":true,"schema":{"type":"string","title":"Team Id"}},{"name":"experiment_name","in":"query","required":true,"schema":{"type":"string","title":"Experiment Name"}},{"name":"firebase-token","in":"header","required":true,"schema":{"type":"string","title":"Firebase-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/experiment/{team_id}/{experiment_id}/update_name":{"post":{"tags":["Experiment management","Experiment management"],"summary":"Update the Experiment Name","description":"Update the name of a specific experiment.\n\nThis endpoint allows authorized users to change the name of an experiment. The experiment ID is automatically obtained via dependency injection.\n\nParameters:\n- **update** (`ExperimentNameUpdate`): An object containing the new name for the experiment.\n\nReturns:\n- **dict**: A message confirming that the experiment name was updated successfully.\n\nRaises:\n- **HTTPException**:\n- **404 Not Found**: If the experiment is not found or an error occurs during the update process.","operationId":"api_update_experiment_name_experiment__team_id___experiment_id__update_name_post","parameters":[{"name":"team_id","in":"path","required":true,"schema":{"type":"string","title":"Team Id"}},{"name":"jwt-token","in":"header","required":true,"schema":{"type":"string","title":"Jwt-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExperimentNameUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/experiment/{team_id}/{experiment_id}/permanently_delete":{"post":{"tags":["Experiment management","Experiment management"],"summary":"Permanently Delete Experiment","operationId":"permanently_delete_experiment_experiment__team_id___experiment_id__permanently_delete_post","parameters":[{"name":"team_id","in":"path","required":true,"schema":{"type":"string","title":"Team Id"}},{"name":"experiment_id","in":"path","required":true,"schema":{"type":"string","title":"Experiment Id"}},{"name":"firebase-token","in":"header","required":true,"schema":{"type":"string","title":"Firebase-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/experiment/{team_id}/{experiment_id}/start_date":{"post":{"tags":["Experiment management","Experiment management"],"summary":"Update Experiment Start Date","operationId":"update_experiment_start_date_experiment__team_id___experiment_id__start_date_post","parameters":[{"name":"team_id","in":"path","required":true,"schema":{"type":"string","title":"Team Id"}},{"name":"experiment_id","in":"path","required":true,"schema":{"type":"string","title":"Experiment Id"}},{"name":"jwt-token","in":"header","required":true,"schema":{"type":"string","title":"Jwt-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExperimenStartDateUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/experiment/{team_id}/{experiment_id}/checkpoint":{"post":{"tags":["Experiment management","Experiment management"],"summary":"Create Checkpoint","description":"Creates a checkpoint of the current experiment state.","operationId":"create_checkpoint_experiment__team_id___experiment_id__checkpoint_post","parameters":[{"name":"team_id","in":"path","required":true,"schema":{"type":"string","title":"Team Id"}},{"name":"experiment_id","in":"path","required":true,"schema":{"type":"string","title":"Experiment Id"}},{"name":"jwt-token","in":"header","required":true,"schema":{"type":"string","title":"Jwt-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/experiment/{team_id}/{experiment_id}/checkpoint/{filename}/restore":{"post":{"tags":["Experiment management","Experiment management"],"summary":"Restore Checkpoint","description":"Restores an experiment to a previous checkpoint.\nAuto-creates a safety checkpoint of the current state first.","operationId":"restore_checkpoint_experiment__team_id___experiment_id__checkpoint__filename__restore_post","parameters":[{"name":"team_id","in":"path","required":true,"schema":{"type":"string","title":"Team Id"}},{"name":"experiment_id","in":"path","required":true,"schema":{"type":"string","title":"Experiment Id"}},{"name":"filename","in":"path","required":true,"schema":{"type":"string","title":"Filename"}},{"name":"jwt-token","in":"header","required":true,"schema":{"type":"string","title":"Jwt-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/experiment/{team_id}/{experiment_id}/variable/{variableDomain}/{variable_type}":{"post":{"tags":["Variables","Variables"],"summary":"Api Add New Variable","description":"Add a new variable to an experiment.\n\nThis endpoint allows authorized users to add a new variable (either time series or metadata) to a specific domain (plant or environment) within an experiment.\n\nParameters:\n- **variable_type** (`VariableType`): The type of variable to add; must be either `\"timeSeries\"` or `\"metadata\"`.\n- **variable_domain** (`VariableDomain`): The domain to which the variable belongs; must be either `\"plant\"` or `\"env\"`.\n- **variable** (`Variable`): The details of the variable to be added.\n\nReturns:\n- **dict**: A message confirming the addition of the new variable, along with the variable's unique ID.\n\nRaises:\n- **HTTPException**:\n- **403 Forbidden**: If access to the experiment is denied or if the variable type is invalid.\n- **500 Internal Server Error**: If an error occurs during the update process.","operationId":"api_add_new_variable_experiment__team_id___experiment_id__variable__variableDomain___variable_type__post","parameters":[{"name":"team_id","in":"path","required":true,"schema":{"type":"string","title":"Team Id"}},{"name":"experiment_id","in":"path","required":true,"schema":{"type":"string","title":"Experiment Id"}},{"name":"variable_type","in":"path","required":true,"schema":{"$ref":"#/components/schemas/VariableType"}},{"name":"variable_domain","in":"query","required":true,"schema":{"$ref":"#/components/schemas/VariableDomain"}},{"name":"jwt-token","in":"header","required":true,"schema":{"type":"string","title":"Jwt-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Variable"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ai/test-perplexity":{"get":{"tags":["AI","AI"],"summary":"Test Perplexity","description":"Test endpoint to debug Perplexity API issues","operationId":"test_perplexity_ai_test_perplexity_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"404":{"description":"Not found"}}}},"/experiment/{team_id}/{experiment_id}/timstamps/new":{"post":{"tags":["Timestamps","Timestamps"],"summary":"Api Add New Timestamp","description":"Create a new timestamp in an experiment.\n\nThis endpoint allows authorized users to add a new timestamp to an experiment. The timestamp includes a name and date, and updates the time series data for all plants and environments within the experiment.\n\nParameters:\n- **new_timestamp** (`NewTimestamp`): An object containing the details of the new timestamp.\n\nReturns:\n- **dict**: A message confirming the addition of the new timestamp, including the timestamp's unique ID and details.\n\nRaises:\n- **HTTPException**:\n- **500 Internal Server Error**: If an error occurs during the creation process.","operationId":"api_add_new_timestamp_experiment__team_id___experiment_id__timstamps_new_post","parameters":[{"name":"team_id","in":"path","required":true,"schema":{"type":"string","title":"Team Id"}},{"name":"experiment_id","in":"path","required":true,"schema":{"type":"string","title":"Experiment Id"}},{"name":"jwt-token","in":"header","required":true,"schema":{"type":"string","title":"Jwt-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewTimestamp"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/experiment/{team_id}/{experiment_id}/timestamps/predict_name":{"post":{"tags":["Timestamps","Timestamps"],"summary":"Api Predict Timestamp Name","description":"Predict a name for a new timestamp based on existing timestamps in the experiment.\n\nThis endpoint uses AI to suggest an appropriate name for a new timestamp based on the pattern\nof existing timestamp names and dates in the experiment.\n\nParameters:\n- **experiment_id** (str): The unique identifier of the experiment\n- **predicted_date** (str, optional): ISO format date for the timestamp to be named\n\nReturns:\n- **dict**: Contains the suggested name for the timestamp\n    - **suggested_name** (str): The AI-generated name suggestion\n\nRaises:\n- **HTTPException**:\n    - **403 Forbidden**: If access to the experiment is denied\n    - **404 Not Found**: If the experiment is not found\n    - **500 Internal Server Error**: If an error occurs during prediction","operationId":"api_predict_timestamp_name_experiment__team_id___experiment_id__timestamps_predict_name_post","parameters":[{"name":"team_id","in":"path","required":true,"schema":{"type":"string","title":"Team Id"}},{"name":"experiment_id","in":"path","required":true,"schema":{"type":"string","title":"Experiment Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PredictedTimestamp"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/predict-file-dates":{"post":{"tags":["Timestamps","Timestamps"],"summary":"Predict File Dates","description":"Deprecated: the dashboard computes capture dates in the browser and stores them on the FileNode.\n\nKept so older clients still get a valid answer; returns `null` for every file id without\ncalling any model.","operationId":"predict_file_dates_predict_file_dates_post","requestBody":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/FileMetadata"},"type":"array","title":"Files"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"deprecated":true}},"/experiment/{team_id}/{experiment_id}/plant/new":{"post":{"tags":["Plants","Plants"],"summary":"Api Create New Plants","description":"Create new plants in an experiment.\n\nThis endpoint allows authorized users to add one or more new plants to a specific experiment. It generates non-overlapping positions for the new plants if positions are not provided and assigns unique IDs if not specified.\n\nParameters:\n- **experiment_id** (str): The unique identifier of the experiment.\n- **new_plants** (List[`New_Plant`]): A list of new plant data to be added to the experiment.\n- **environment_id** (str, optional): The ID of the environment you would like to place the plant in.\n- **environment_name** (str, optional): The name of the environment you would like to place the plant in if the ID is unknown.\n\nReturns:\n- **dict**: A message confirming the addition of the new plants and the number of plants added.\n\nRaises:\n- **HTTPException**:\n- **404 Not Found**: If the experiment is not found.\n- **500 Internal Server Error**: If an error occurs during the addition process.","operationId":"api_create_new_plants_experiment__team_id___experiment_id__plant_new_post","parameters":[{"name":"team_id","in":"path","required":true,"schema":{"type":"string","title":"Team Id"}},{"name":"experiment_id","in":"path","required":true,"schema":{"type":"string","title":"Experiment Id"}},{"name":"environment_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Environment Id"}},{"name":"environment_name","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Environment Name"}},{"name":"jwt-token","in":"header","required":true,"schema":{"type":"string","title":"Jwt-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/New_Plant"},"title":"New Plants"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/experiment/{team_id}/{experiment_id}/plant/{plant_id}/update_metadata_value":{"post":{"tags":["Plants","Plants"],"summary":"Update Plant Metadata Value","description":"Update the metadata value of a specific plant in an experiment.\n\nThis endpoint allows authorized users to update a specific metadata value for a given plant within an experiment. It ensures that the user has access rights by verifying that the experiment ID in the request path matches the one in the JWT token.\n\n**Path Parameters:**\n- **experiment_id** (`str`): The unique identifier of the experiment.\n- **plant_id** (`str`): The unique identifier of the plant whose metadata is to be updated.\n\n**Request Body:**\n- **variable_update_object** (`UpdateValue`): An object containing the metadata key and the new value to be updated.\n    - **variable_id** (`str`): The identifier of the metadata variable to update.\n    - **value** (`Any`): The new value for the specified metadata variable.\n    - **timestamp_id** (`str`, optional): An optional identifier for the timestamp associated with the metadata update.\n\n**Returns:**\n- **dict**: A message confirming the successful update of the plant metadata.\n    - **message** (`str`): Confirmation message.\n    - **plant_id** (`str`): The ID of the plant that was updated.\n    - **metadata_key** (`str`): The key of the metadata that was updated.\n    - **metadata_value** (`Any`): The new value of the metadata.\n\n**Raises:**\n- **HTTPException**:\n    - **403 Forbidden**: If access to the experiment is denied.\n    - **500 Internal Server Error**: If an error occurs during the update process.","operationId":"update_plant_metadata_value_experiment__team_id___experiment_id__plant__plant_id__update_metadata_value_post","parameters":[{"name":"team_id","in":"path","required":true,"schema":{"type":"string","title":"Team Id"}},{"name":"experiment_id","in":"path","required":true,"schema":{"type":"string","title":"Experiment Id"}},{"name":"plant_id","in":"path","required":true,"schema":{"type":"string","title":"Plant Id"}},{"name":"jwt-token","in":"header","required":true,"schema":{"type":"string","title":"Jwt-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateValue"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/experiment/{team_id}/{experiment_id}/plant/{plant_id}/update_timeseries_value":{"post":{"tags":["Plants","Plants"],"summary":"Update Plant Timeseries Value","operationId":"update_plant_timeseries_value_experiment__team_id___experiment_id__plant__plant_id__update_timeseries_value_post","parameters":[{"name":"team_id","in":"path","required":true,"schema":{"type":"string","title":"Team Id"}},{"name":"experiment_id","in":"path","required":true,"schema":{"type":"string","title":"Experiment Id"}},{"name":"plant_id","in":"path","required":true,"schema":{"type":"string","title":"Plant Id"}},{"name":"jwt-token","in":"header","required":true,"schema":{"type":"string","title":"Jwt-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateValue"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/experiment/{team_id}/{experiment_id}/environment/new":{"post":{"tags":["Environment","Environments"],"summary":"Add New Environments","description":"Add new environments to an experiment.\n\nThis endpoint allows authorized users to add one or more new environments to a specific experiment. It generates non-overlapping positions for the new environments if positions are not provided and assigns unique IDs if not specified.\n\n**Path Parameters:**\n- **experiment_id** (`str`): The unique identifier of the experiment.\n\n**Request Body:**\n- **new_environments** (`List[New_Environment]`): A list of new environment data to be added to the experiment. Each `New_Environment` object includes:\n    - **id** (`str`, optional): An optional unique identifier for the environment. If not provided, a new one will be generated.\n    - **canvas** (`EnvironmentCanvasPosition`, optional): The canvas position boundaries of the environment, including:\n        - **left** (`float`): The left boundary of the environment on the canvas.\n        - **top** (`float`): The top boundary of the environment on the canvas.\n        - **bottom** (`float`): The bottom boundary of the environment on the canvas.\n        - **right** (`float`): The right boundary of the environment on the canvas.\n    - **name** (`str`, optional): The name of the environment.\n    - **note** (`str`, optional): A note about the environment.\n    - **plants** (`List[str]`, optional): A list of plant IDs associated with the environment.\n    - **timeSeriesData** (`Dict[str, Dict[str, Any]]`, optional): Time series data for the environment.\n    - **metadata** (`Dict[str, Any]`, optional): Metadata for the environment.\n\n**Returns:**\n- **dict**: A message confirming the addition of the new environments and the number of environments added.\n    - **message** (`str`): Confirmation message.\n    - **number_environments_added** (`int`): The number of environments successfully added.\n\n**Raises:**\n- **HTTPException**:\n    - **404 Not Found**: If the experiment is not found.\n    - **500 Internal Server Error**: If an error occurs during the addition process.","operationId":"add_new_environments_experiment__team_id___experiment_id__environment_new_post","parameters":[{"name":"team_id","in":"path","required":true,"schema":{"type":"string","title":"Team Id"}},{"name":"experiment_id","in":"path","required":true,"schema":{"type":"string","title":"Experiment Id"}},{"name":"jwt-token","in":"header","required":true,"schema":{"type":"string","title":"Jwt-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/New_Environment"},"title":"New Environments"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/experiment/{team_id}/{experiment_id}/environment/{environment_id}/update_metadata_value":{"post":{"tags":["Environment","Environments"],"summary":"Update Environment Metadata Value","description":"Update the metadata value of a specific environment in an experiment.\n\nThis endpoint allows authorized users to update a specific metadata value for a given environment within an experiment. It ensures that the user has access rights by verifying that the experiment ID in the request path matches the one in the JWT token.\n\n**Path Parameters:**\n- **experiment_id** (`str`): The unique identifier of the experiment.\n- **environment_id** (`str`): The unique identifier of the environment whose metadata is to be updated.\n\n**Request Body:**\n- **variable_update_object** (`UpdateValue`): An object containing the metadata key and the new value to be updated.\n    - **variable_id** (`str`): The identifier of the metadata variable to update.\n    - **value** (`Any`): The new value for the specified metadata variable.\n    - **timestamp_id** (`str`, optional): An optional identifier for the timestamp associated with the metadata update.\n\n**Returns:**\n- **dict**: A message confirming the successful update of the environment metadata.\n    - **message** (`str`): Confirmation message.\n    - **metadata_key** (`str`): The key of the metadata that was updated.\n    - **metadata_value** (`Any`): The new value of the metadata.\n\n**Raises:**\n- **HTTPException**:\n    - **403 Forbidden**: If access to the experiment is denied.\n    - **500 Internal Server Error**: If an error occurs during the update process.","operationId":"update_environment_metadata_value_experiment__team_id___experiment_id__environment__environment_id__update_metadata_value_post","parameters":[{"name":"team_id","in":"path","required":true,"schema":{"type":"string","title":"Team Id"}},{"name":"experiment_id","in":"path","required":true,"schema":{"type":"string","title":"Experiment Id"}},{"name":"environment_id","in":"path","required":true,"schema":{"type":"string","title":"Environment Id"}},{"name":"jwt-token","in":"header","required":true,"schema":{"type":"string","title":"Jwt-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateValue"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/experiment/{team_id}/{experiment_id}/environment/{environment_id}/update_timeseries_value":{"post":{"tags":["Environment","Environments"],"summary":"Update Environment Timeseries Value","description":"Update the time series value of a specific environment in an experiment.\n\nThis endpoint allows authorized users to update a specific time series value for a given environment within an experiment. It ensures that the user has access rights by verifying that the experiment ID in the request path matches the one in the JWT token.\n\n**Path Parameters:**\n- **experiment_id** (`str`): The unique identifier of the experiment.\n- **environment_id** (`str`): The unique identifier of the environment whose time series data is to be updated.\n\n**Request Body:**\n- **variable_update_object** (`UpdateValue`): An object containing the time series key and the new value to be updated.\n    - **variable_id** (`str`): The identifier of the time series variable to update.\n    - **value** (`Any`): The new value for the specified time series variable.\n    - **timestamp_id** (`str`, required): The identifier for the timestamp associated with the time series update.\n\n**Returns:**\n- **dict**: A message confirming the successful update of the environment's time series data.\n    - **message** (`str`): Confirmation message.\n    - **environment_id** (`str`): The ID of the environment that was updated.\n    - **timeseries_key** (`str`): The key of the time series that was updated.\n    - **timeseries_value** (`Any`): The new value of the time series.\n\n**Raises:**\n- **HTTPException**:\n    - **400 Bad Request**: If `timestamp_id` is not provided when updating time series data.\n    - **403 Forbidden**: If access to the experiment is denied.\n    - **404 Not Found**: If the experiment or environment is not found.\n    - **500 Internal Server Error**: If an error occurs during the update process.","operationId":"update_environment_timeseries_value_experiment__team_id___experiment_id__environment__environment_id__update_timeseries_value_post","parameters":[{"name":"team_id","in":"path","required":true,"schema":{"type":"string","title":"Team Id"}},{"name":"experiment_id","in":"path","required":true,"schema":{"type":"string","title":"Experiment Id"}},{"name":"environment_id","in":"path","required":true,"schema":{"type":"string","title":"Environment Id"}},{"name":"jwt-token","in":"header","required":true,"schema":{"type":"string","title":"Jwt-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateValue"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/get-high-res-signed-url":{"post":{"tags":["Images and Files"],"summary":"Get High Res Signed Url","operationId":"get_high_res_signed_url_get_high_res_signed_url_post","parameters":[{"name":"experiment-token","in":"header","required":true,"schema":{"type":"string","description":"JWT token containing experiment access permissions","title":"Experiment-Token"},"description":"JWT token containing experiment access permissions"},{"name":"firebase-token","in":"header","required":true,"schema":{"type":"string","title":"Firebase-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImageRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignedUrlResponseItem"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/cache-stats":{"get":{"tags":["Images and Files"],"summary":"Get Cache Stats","description":"Get cache statistics for monitoring","operationId":"get_cache_stats_cache_stats_get","parameters":[{"name":"firebase-token","in":"header","required":true,"schema":{"type":"string","title":"Firebase-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/batch-signed-urls":{"post":{"tags":["Images and Files"],"summary":"Get Batch Signed Urls","operationId":"get_batch_signed_urls_batch_signed_urls_post","parameters":[{"name":"experiment-token","in":"header","required":true,"schema":{"type":"string","description":"JWT token containing experiment access permissions","title":"Experiment-Token"},"description":"JWT token containing experiment access permissions"},{"name":"firebase-token","in":"header","required":true,"schema":{"type":"string","title":"Firebase-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchImageRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchSignedUrlResponse"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/experiment/{experiment_id}/files/new":{"post":{"tags":["Images and Files","Images and Files"],"summary":"Add New Files","operationId":"add_new_files_experiment__experiment_id__files_new_post","parameters":[{"name":"experiment_id","in":"path","required":true,"schema":{"type":"string","title":"Experiment Id"}},{"name":"jwt-token","in":"header","required":true,"schema":{"type":"string","title":"Jwt-Token"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_add_new_files_experiment__experiment_id__files_new_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/experiment/{experiment_id}/queue-3d-conversion":{"post":{"tags":["Images and Files","Images and Files"],"summary":"Queue 3D Conversion","description":"Queue a 3D model for conversion after upload (called by frontend)","operationId":"queue_3d_conversion_experiment__experiment_id__queue_3d_conversion_post","parameters":[{"name":"experiment_id","in":"path","required":true,"schema":{"type":"string","title":"Experiment Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConvertModelRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/experiment/{experiment_id}/convert-3d-model":{"post":{"tags":["Images and Files","Images and Files"],"summary":"Convert 3D Model","description":"Convert a single 3D model file to optimized GLB format","operationId":"convert_3d_model_experiment__experiment_id__convert_3d_model_post","parameters":[{"name":"experiment_id","in":"path","required":true,"schema":{"type":"string","title":"Experiment Id"}},{"name":"jwt-token","in":"header","required":true,"schema":{"type":"string","title":"Jwt-Token"}},{"name":"firebase-token","in":"header","required":true,"schema":{"type":"string","title":"Firebase-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConvertModelRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/experiment/{experiment_id}/batch-convert-3d-models":{"post":{"tags":["Images and Files","Images and Files"],"summary":"Batch Convert 3D Models","description":"Convert all 3D models in an experiment to optimized GLB format","operationId":"batch_convert_3d_models_experiment__experiment_id__batch_convert_3d_models_post","parameters":[{"name":"experiment_id","in":"path","required":true,"schema":{"type":"string","title":"Experiment Id"}},{"name":"jwt-token","in":"header","required":true,"schema":{"type":"string","title":"Jwt-Token"}},{"name":"firebase-token","in":"header","required":true,"schema":{"type":"string","title":"Firebase-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchConvertRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/python-scripts/available_pipelines":{"get":{"tags":["Python Scripts"],"summary":"Get Available Pipelines","operationId":"get_available_pipelines_python_scripts_available_pipelines_get","parameters":[{"name":"user_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Id"}},{"name":"firebase-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Firebase-Token"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response Get Available Pipelines Python Scripts Available Pipelines Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/python-scripts/pipelines/run":{"post":{"tags":["Python Scripts"],"summary":"Run Pipeline","description":"Start a pipeline process and return the task ID for tracking","operationId":"run_pipeline_python_scripts_pipelines_run_post","parameters":[{"name":"firebase-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Firebase-Token"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PipelineConfigRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Run Pipeline Python Scripts Pipelines Run Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/python-scripts/pipelines/test":{"post":{"tags":["Python Scripts"],"summary":"Test Pipeline","description":"Test a pipeline by running it directly against the script runner service","operationId":"test_pipeline_python_scripts_pipelines_test_post","parameters":[{"name":"firebase-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Firebase-Token"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TestPipelineRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Test Pipeline Python Scripts Pipelines Test Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/phenovation/add":{"post":{"tags":["Phenovation"],"summary":"Add Phenovation Data","operationId":"add_phenovation_data_phenovation_add_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PhenovationAddRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/segmentation/point-click/{experiment_id}/{image_id}":{"post":{"tags":["segmentation"],"summary":"Segment By Points","description":"Segment an object by clicking specific points on the image.\n\n- Positive points (positive=True) indicate areas to include\n- Negative points (positive=False) indicate areas to exclude","operationId":"segment_by_points_segmentation_point_click__experiment_id___image_id__post","parameters":[{"name":"experiment_id","in":"path","required":true,"schema":{"type":"string","title":"Experiment Id"}},{"name":"image_id","in":"path","required":true,"schema":{"type":"string","title":"Image Id"}},{"name":"firebase-token","in":"header","required":true,"schema":{"type":"string","title":"Firebase-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PointClickRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SegmentationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/segmentation/text-prompt/{experiment_id}/{image_id}":{"post":{"tags":["segmentation"],"summary":"Segment By Text","description":"Segment objects by describing them with text.\n\nExample class_names: [\"leaf\", \"root\", \"stem\", \"seed\"]","operationId":"segment_by_text_segmentation_text_prompt__experiment_id___image_id__post","parameters":[{"name":"experiment_id","in":"path","required":true,"schema":{"type":"string","title":"Experiment Id"}},{"name":"image_id","in":"path","required":true,"schema":{"type":"string","title":"Image Id"}},{"name":"firebase-token","in":"header","required":true,"schema":{"type":"string","title":"Firebase-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TextPromptRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SegmentationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/segmentation/manual/{experiment_id}/{image_id}":{"post":{"tags":["segmentation"],"summary":"Save Manual Annotation","description":"Save manually drawn annotations (from canvas-annotation component).","operationId":"save_manual_annotation_segmentation_manual__experiment_id___image_id__post","parameters":[{"name":"experiment_id","in":"path","required":true,"schema":{"type":"string","title":"Experiment Id"}},{"name":"image_id","in":"path","required":true,"schema":{"type":"string","title":"Image Id"}},{"name":"firebase-token","in":"header","required":true,"schema":{"type":"string","title":"Firebase-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ManualAnnotationRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SegmentationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/segmentation/status":{"get":{"tags":["segmentation"],"summary":"Get Segmentation Status","description":"Check if Roboflow integration is configured","operationId":"get_segmentation_status_segmentation_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/wofost/task/{task_id}/status":{"get":{"tags":["WOFOST Crop Simulation","WOFOST Crop Simulation"],"summary":"Get Wofost Task Status","description":"Get the status of a WOFOST simulation task.\n\n**Path Parameters:**\n- **task_id** (`str`): The Celery task ID returned from simulation start endpoints.\n\n**Returns:**\n- **dict**: Task status information including:\n    - **task_id** (`str`): The task ID.\n    - **status** (`str`): Current status ('PENDING', 'SUCCESS', 'FAILURE', etc.).\n    - **result** (`Any`): Task result if completed.\n    - **info** (`Any`): Additional task information.\n\n**Raises:**\n- **HTTPException**:\n    - **404 Not Found**: If the task ID is not found.\n    - **500 Internal Server Error**: If an error occurs checking task status.","operationId":"get_wofost_task_status_wofost_task__task_id__status_get","parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","title":"Task Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/wofost/available_crops":{"get":{"tags":["WOFOST Crop Simulation","WOFOST Crop Simulation"],"summary":"Get Available Crops","description":"Get list of available crops and varieties for WOFOST simulation.\n\n**Returns:**\n- **dict**: Available crops and varieties including:\n    - **crops** (`Dict[str, List[str]]`): Dictionary mapping crop names to available varieties.\n\n**Raises:**\n- **HTTPException**:\n    - **500 Internal Server Error**: If an error occurs retrieving crop data.","operationId":"get_available_crops_wofost_available_crops_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"404":{"description":"Not found"}}}},"/wofost/simulation/example":{"get":{"tags":["WOFOST Crop Simulation","WOFOST Crop Simulation"],"summary":"Get Simulation Example","description":"Get an example WOFOST simulation request for maize across two different environments.\n\nThis endpoint provides a complete example of how to structure a multi-environment\nWOFOST simulation request for maize, including all required parameters and\nsample weather data. It demonstrates how to specify different site and soil\nparameters for each environment.\n\n**Returns:**\n- **dict**: Example simulation request for maize.","operationId":"get_simulation_example_wofost_simulation_example_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"404":{"description":"Not found"}}}},"/wofost/simulation/environment-profile":{"get":{"tags":["WOFOST Crop Simulation","WOFOST Crop Simulation"],"summary":"Run Wofost Simulation With Env Profile","description":"Run WOFOST simulation using automatically generated environment profile.\n\nThis endpoint integrates our environment profile system with the existing\nWOFOST simulation infrastructure. It:\n\n1. Generates environment profile from coordinates (soil + climate + management)\n2. Converts environment data to WOFOST parameter format\n3. Uses existing WOFOST simulation service for execution\n\n**Parameters:**\n- **latitude** (`float`): Environment latitude (-90 to 90)\n- **longitude** (`float`): Environment longitude (-180 to 180)  \n- **crop_name** (`str`): Crop name (e.g., 'wheat', 'maize')\n- **variety_name** (`str`): Variety name (e.g., 'Winter_wheat_101')\n- **simulation_year** (`int`): Year to simulate (default: 2022, historical data)\n- **simulation_mode** (`str`): 'potential' or 'water_limited' (default: 'water_limited')\n\n**Returns:**\n- **dict**: Simulation results including:\n    - **environment_profile**: Generated environment data\n    - **wofost_parameters**: Converted WOFOST parameters  \n    - **simulation_results**: WOFOST simulation outputs","operationId":"run_wofost_simulation_with_env_profile_wofost_simulation_environment_profile_get","parameters":[{"name":"latitude","in":"query","required":true,"schema":{"type":"number","title":"Latitude"}},{"name":"longitude","in":"query","required":true,"schema":{"type":"number","title":"Longitude"}},{"name":"crop_name","in":"query","required":true,"schema":{"type":"string","title":"Crop Name"}},{"name":"variety_name","in":"query","required":true,"schema":{"type":"string","title":"Variety Name"}},{"name":"simulation_year","in":"query","required":false,"schema":{"type":"integer","default":2022,"title":"Simulation Year"}},{"name":"simulation_mode","in":"query","required":false,"schema":{"type":"string","default":"water_limited","title":"Simulation Mode"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/wofost/simulation/portfolio-batch":{"post":{"tags":["WOFOST Crop Simulation","WOFOST Crop Simulation"],"summary":"Run Portfolio Batch Simulation","description":"Run WOFOST simulations for all varieties × environments × years in a portfolio.\n\nThis endpoint:\n1. Loads portfolio data from Firestore (varieties + environments)\n2. Generates simulation matrix: varieties × environments × years\n3. Dispatches Celery tasks (one per combination)\n4. Returns batch tracking ID\n\n**Parameters:**\n- **portfolio_id** (`str`): Portfolio ID from Firestore\n- **team_id** (`str`): Team ID that owns the portfolio\n- **simulation_years** (`List[int]`): Years to simulate (default: 2020-2023)\n- **simulation_mode** (`str`): Simulation mode (default: water_limited)\n\n**Returns:**\n- **batch_id**: Unique identifier for this batch\n- **total_simulations**: Total number of simulations dispatched\n- **variety_count**: Number of varieties\n- **environment_count**: Number of environments\n- **year_count**: Number of years\n- **task_ids**: List of Celery task IDs\n\n**Example:**\n- 10 varieties × 5 environments × 4 years = 200 simulations\n- Estimated time: 5-10 minutes (with parallel Celery workers)","operationId":"run_portfolio_batch_simulation_wofost_simulation_portfolio_batch_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PortfolioBatchRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/wofost/portfolio/{portfolio_id}/heatmap":{"get":{"tags":["WOFOST Crop Simulation","Portfolio Analytics"],"summary":"Get Portfolio Heatmap Endpoint","description":"Get cached heatmap data for portfolio customer activity or churn.\nReturns 404 if heatmap hasn't been generated yet.","operationId":"get_portfolio_heatmap_endpoint_wofost_portfolio__portfolio_id__heatmap_get","parameters":[{"name":"portfolio_id","in":"path","required":true,"schema":{"type":"string","title":"Portfolio Id"}},{"name":"team_id","in":"query","required":true,"schema":{"type":"string","title":"Team Id"}},{"name":"type","in":"query","required":true,"schema":{"type":"string","title":"Type"}},{"name":"variety_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Variety Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/wofost/portfolio/{portfolio_id}/heatmap/generate":{"post":{"tags":["WOFOST Crop Simulation","Portfolio Analytics"],"summary":"Generate Portfolio Heatmap","description":"Generate heatmap data for portfolio customer activity or churn.\n\n- Activity heatmap: Revenue by location\n- Churn heatmap: Churn percentage by location (15-month threshold)","operationId":"generate_portfolio_heatmap_wofost_portfolio__portfolio_id__heatmap_generate_post","parameters":[{"name":"portfolio_id","in":"path","required":true,"schema":{"type":"string","title":"Portfolio Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HeatmapGenerateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/wofost/portfolio/{portfolio_id}/churn-analysis":{"get":{"tags":["WOFOST Crop Simulation","Portfolio Analytics"],"summary":"Get Portfolio Churn Analysis","description":"Analyze customer churn and variety performance metrics for a seed portfolio.\n\nCalculates:\n- Churn rate per variety\n- Season-over-season sales comparison (tonnes and revenue)\n- Variety revenue ranking\n- Estimated revenue loss from churned customers\n\nArgs:\n    portfolio_id: Portfolio UUID\n    team_id: Team identifier\n    \nReturns:\n    Churn analysis with variety-level metrics and rankings","operationId":"get_portfolio_churn_analysis_wofost_portfolio__portfolio_id__churn_analysis_get","parameters":[{"name":"portfolio_id","in":"path","required":true,"schema":{"type":"string","title":"Portfolio Id"}},{"name":"team_id","in":"query","required":true,"schema":{"type":"string","title":"Team Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/wofost/portfolio/{portfolio_id}/correlation-analysis":{"get":{"tags":["WOFOST Crop Simulation","Portfolio Analytics"],"summary":"Get Portfolio Correlation Analysis","description":"Analyze correlation between customer churn and environment performance at the environment profile level.\n\nCalculates:\n- Correlation scores between environment performance and customer churn\n- Environment profile characteristics (soil, climate, management)\n- Customer metrics grouped by environment profiles\n- Statistical significance of correlations\n\nArgs:\n    portfolio_id: Portfolio UUID\n    team_id: Team identifier\n    \nReturns:\n    Correlation analysis with environment profile-level metrics","operationId":"get_portfolio_correlation_analysis_wofost_portfolio__portfolio_id__correlation_analysis_get","parameters":[{"name":"portfolio_id","in":"path","required":true,"schema":{"type":"string","title":"Portfolio Id"}},{"name":"team_id","in":"query","required":true,"schema":{"type":"string","title":"Team Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/wofost/portfolio/{portfolio_id}/environment-clusters":{"get":{"tags":["WOFOST Crop Simulation","Portfolio Analytics"],"summary":"Get Portfolio Environment Clusters","description":"Get environment clustering results for a portfolio.\n\nReturns cluster assignments, statistics, and metadata about the clustering process.\nClustering is performed automatically after all simulations complete.\n\nArgs:\n    portfolio_id: Portfolio UUID\n    team_id: Team identifier\n    \nReturns:\n    Clustering results with cluster map and metadata","operationId":"get_portfolio_environment_clusters_wofost_portfolio__portfolio_id__environment_clusters_get","parameters":[{"name":"portfolio_id","in":"path","required":true,"schema":{"type":"string","title":"Portfolio Id"}},{"name":"team_id","in":"query","required":true,"schema":{"type":"string","title":"Team Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/wofost/portfolio/{portfolio_id}/trigger-clustering":{"post":{"tags":["WOFOST Crop Simulation","Portfolio Analytics"],"summary":"Trigger Portfolio Clustering","description":"Manually trigger environment clustering for a portfolio.\n\nThis endpoint allows users to generate environment clusters even if they weren't\nautomatically created after simulations completed. Useful for portfolios that\nwere created before the clustering feature was added.\n\nArgs:\n    portfolio_id: Portfolio UUID\n    request: Contains team_id\n    \nReturns:\n    Task information for the clustering job","operationId":"trigger_portfolio_clustering_wofost_portfolio__portfolio_id__trigger_clustering_post","parameters":[{"name":"portfolio_id","in":"path","required":true,"schema":{"type":"string","title":"Portfolio Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TriggerClusteringRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/wofost/schema":{"get":{"tags":["WOFOST Crop Simulation","WOFOST Schema"],"summary":"Get Wofost Schema","description":"Get WOFOST model schemas as JSON Schema for frontend code generation.\n\nThis endpoint provides the complete schema for all WOFOST models,\nallowing the frontend to generate TypeScript interfaces automatically\nand ensure consistency between backend and frontend models.","operationId":"get_wofost_schema_wofost_schema_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"404":{"description":"Not found"}}}},"/qtl-analysis/runs":{"post":{"tags":["QTL Analysis","QTL Analysis"],"summary":"Create Analysis Run","description":"Create a new QTL analysis run with baseline + QTL-modified simulations.\n\nThis creates multiple WOFOST simulations:\n- 1 baseline simulation per environment (no QTL modifications)\n- N QTL simulations per environment (where N = number of QTLs)\n- Comparative analysis between baseline and QTL results","operationId":"create_analysis_run_qtl_analysis_runs_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateAnalysisRunRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnalysisRunResponse"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["QTL Analysis","QTL Analysis"],"summary":"Get Analysis Runs","description":"Get analysis runs for the current user with optional filtering.","operationId":"get_analysis_runs_qtl_analysis_runs_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/qtl-analysis/runs/{run_id}":{"get":{"tags":["QTL Analysis","QTL Analysis"],"summary":"Get Analysis Run","description":"Get a specific analysis run by ID.","operationId":"get_analysis_run_qtl_analysis_runs__run_id__get","parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","title":"Run Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["QTL Analysis","QTL Analysis"],"summary":"Delete Analysis Run","description":"Delete an analysis run and all associated data.","operationId":"delete_analysis_run_qtl_analysis_runs__run_id__delete","parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","title":"Run Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/qtl-analysis/runs/{run_id}/status":{"get":{"tags":["QTL Analysis","QTL Analysis"],"summary":"Get Analysis Status","description":"Get current status and progress of QTL analysis run.","operationId":"get_analysis_status_qtl_analysis_runs__run_id__status_get","parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","title":"Run Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnalysisStatusResponse"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/qtl-analysis/runs/{run_id}/results":{"get":{"tags":["QTL Analysis","QTL Analysis"],"summary":"Get Analysis Results","description":"Get complete results for finished analysis.","operationId":"get_analysis_results_qtl_analysis_runs__run_id__results_get","parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","title":"Run Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnalysisResultsResponse"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/qtl-analysis/runs/{run_id}/cancel":{"post":{"tags":["QTL Analysis","QTL Analysis"],"summary":"Cancel Analysis Run","description":"Cancel a running analysis.","operationId":"cancel_analysis_run_qtl_analysis_runs__run_id__cancel_post","parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","title":"Run Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/qtl-analysis/parameter-mappings":{"get":{"tags":["QTL Analysis","QTL Analysis"],"summary":"Get Parameter Mappings","description":"Get available QTL → WOFOST parameter mappings.","operationId":"get_parameter_mappings_qtl_analysis_parameter_mappings_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"404":{"description":"Not found"}}}},"/qtl-analysis/example":{"get":{"tags":["QTL Analysis","QTL Analysis"],"summary":"Get Example Request","description":"Get an example QTL analysis request for testing with corrected parameter mappings.","operationId":"get_example_request_qtl_analysis_example_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"404":{"description":"Not found"}}}},"/qtl-analysis/validate":{"post":{"tags":["QTL Analysis","QTL Analysis"],"summary":"Validate Qtl Configuration","description":"Validate QTL analysis configuration before submission.","operationId":"validate_qtl_configuration_qtl_analysis_validate_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateAnalysisRunRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/qtl-analysis/crops":{"get":{"tags":["QTL Analysis","QTL Analysis"],"summary":"Get Available Crops","description":"Get available crops and their supported parameters for QTL analysis.","operationId":"get_available_crops_qtl_analysis_crops_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"404":{"description":"Not found"}}}},"/stats/tests":{"get":{"tags":["Stats"],"summary":"Get Available Tests","description":"Get a list of available statistical tests, grouped by category.","operationId":"get_available_tests_stats_tests_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"items":{"$ref":"#/components/schemas/TestConfiguration"},"type":"array"},"type":"object","title":"Response Get Available Tests Stats Tests Get"}}}},"404":{"description":"Not found"}}}},"/stats/ancova":{"post":{"tags":["Stats","Statistical Tests - ANCOVA"],"summary":"Ancova Endpoint","description":"Performs ANCOVA on the provided data.\n**Request Body:**\n- data: A dictionary where keys are column names and values are lists of observations.\n- dv: The name of the dependent variable column in the data.\n- between: The name of the between-subject factor in the data.\n- covar: The name(s) of the covariate(s) in the data.\n- effsize: The effect size measure to use (default is 'np2' for partial eta-squared).\n**Returns:**\n- TestResultResponse containing summary table and box plot visualizations.","operationId":"ancova_endpoint_stats_ancova_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AncovaRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TestResultResponse"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/stats/anova":{"post":{"tags":["Stats","Statistical Tests - ANOVA"],"summary":"Anova Endpoint","description":"Performs ANOVA on the provided data.\n**Request Body:**\n- data: A dictionary where keys are column names and values are lists of observations.\n- dv: The name of the dependent variable column in the data.\n- between: The name(s) of the between-subject factor(s) in the data.\n- detailed: If True, returns detailed ANOVA table; if False, returns simplified output.\n- effsize: Effect size measure (default is 'np2' for partial eta-squared).\n**Returns:**\n- A `TestResultResponse` object containing the data formatted for frontend visualization components.","operationId":"anova_endpoint_stats_anova_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnovaRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TestResultResponse"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/stats/chi2_independence":{"post":{"tags":["Stats","Statistical Tests - Chi-squared Independence"],"summary":"Perform Chi2 Independence Test","description":"Performs a Chi-squared test of independence between two categorical variables.\n\n**Request Body:**\n- data: Dataset in wide-format. Each column represents a variable, and each row represents an observation.\n- x: The first categorical variable for independence testing.\n- y: The second categorical variable for independence testing.\n- alpha: Significance level for the test.\n\n**Returns:**\n- TestResultResponse containing summary table with chi-squared test results.","operationId":"perform_chi2_independence_test_stats_chi2_independence_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Chi2IndependenceRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TestResultResponse"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/stats/correlation":{"post":{"tags":["Stats","Statistical Tests - Correlation"],"summary":"Perform Correlation","description":"Performs correlation analysis on the provided data.\n**Request Body:**\n- data: Dataset in wide-format. Each column represents a variable, and each row represents an observation.\n- x: The first numeric variable for correlation analysis.\n- y: The second numeric variable for correlation analysis.\n- method: Type of correlation to compute (default is 'pearson').\n- alternative: The alternative hypothesis to test (default is 'two-sided').\n**Returns:**\n- TestResultResponse containing summary table and scatter plot visualizations.","operationId":"perform_correlation_stats_correlation_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CorrelationRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TestResultResponse"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/stats/homoscedasticity":{"post":{"tags":["Stats","Statistical Tests - Homoscedasticity"],"summary":"Perform Homoscedasticity","description":"Performs homoscedasticity test on the provided data.\n**Request Body:**\n- data: Data for homoscedasticity test, can be in list-of-lists, wide format, or long format.\n- method: Statistical test method for homoscedasticity ('levene' or 'bartlett').\n- alpha: Significance level for the test, typically between 0 and 1 (exclusive).\n**Returns:**\n- test_statistic: Test statistic from the homoscedasticity test.\n- p_value : P-value of the homoscedasticity test.\n- result: Test result indicating whether variances are equal or unequal.\n- method: Test method used (Levene or Bartlett).\n- alpha: Significance level used for the test.","operationId":"perform_homoscedasticity_stats_homoscedasticity_post","requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ListOfListsRequest"},{"$ref":"#/components/schemas/WideFormatRequest"},{"$ref":"#/components/schemas/LongFormatRequest"}],"title":"Input Data"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TestResultResponse"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/stats/linear_regression":{"post":{"tags":["Stats","Statistical Tests - Linear Regression"],"summary":"Perform Linear Regression","description":"Performs linear regression analysis on the provided data.\n**Request Body:**\n- data: Dataset in wide-format. Each column represents a variable, and each row represents an observation.\n- y: The numeric outcome variable to predict.\n- x: The numeric predictor variables (independent variables).\n- add_intercept: Include a constant term (intercept) in the model.\n- alpha: Significance level for confidence intervals.\n**Returns:**\n- TestResultResponse containing summary table and scatter plot visualizations.","operationId":"perform_linear_regression_stats_linear_regression_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LinearRegressionRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TestResultResponse"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/stats/multivariate_normality":{"post":{"tags":["Stats","Statistical Tests - Test statistic from the Henze-Zirkler test"],"summary":"Perform Multivariate Normality","description":"Performs the Henze-Zirkler multivariate normality test on the provided data.\n**Request Body:**\n- data: Dataset in wide-format. Each column represents a variable, and each row represents an observation.\n- variables: The numeric variables to test for multivariate normality.\n- alpha: Significance level for the test (default is 0.05).\n**Returns:**\n- TestResultResponse containing summary table with multivariate normality results.","operationId":"perform_multivariate_normality_stats_multivariate_normality_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MultivariateNormalityRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TestResultResponse"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/stats/non_parametric_tests":{"post":{"tags":["Stats","Statistical Tests - Non-Parametric (Unified)"],"summary":"Perform Unified Non Parametric Test","description":"Performs a selected non-parametric statistical test (Wilcoxon, Mann-Whitney U, or Kruskal-Wallis).\n\n**Request Body:**\n- test_type: The type of non-parametric test to perform ('wilcoxon', 'mann_whitney_u', 'kruskal_wallis').\n- data: Dataset in wide-format. Each column represents a variable, and each row represents an observation.\n- dv: The numeric variable to analyze.\n- group: The categorical variable that defines the groups (required for Mann-Whitney U and Kruskal-Wallis).\n- alternative: The alternative hypothesis to test.\n- alpha: Significance level for the test.\n\n**Returns:**\n- TestResultResponse containing summary table and box plot visualizations.","operationId":"perform_unified_non_parametric_test_stats_non_parametric_tests_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NonParametricTestRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TestResultResponse"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/stats/normality_test":{"post":{"tags":["Stats","Statistical Tests - Normality Tests"],"summary":"Perform Normality Test","description":"Performs a selected normality test on a numeric variable.\n\n**Request Body:**\n- data: Dataset in wide-format. Each column represents a variable, and each row represents an observation.\n- variable: The numeric variable to test for normality.\n- method: The normality test method to use ('shapiro', 'normaltest', 'jarque_bera').\n- alpha: The significance level for the test (default: 0.05).\n\n**Returns:**\n- TestResultResponse containing summary table with normality test results.","operationId":"perform_normality_test_stats_normality_test_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NormalityTestRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TestResultResponse"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/stats/pairwise_correlation":{"post":{"tags":["Stats","Statistical Tests - Pairwise Correlation"],"summary":"Perform Pairwise Correlation","description":"Performs pairwise correlation analysis on the provided data.\n**Request Body:**\n- data: Dataset in wide-format. Each column represents a variable, and each row represents an observation.\n- variables: The numeric variables to include in the correlation matrix.\n- method: Type of correlation to compute.\n- alpha: Significance level for the correlations.\n**Returns:**\n- TestResultResponse containing correlation matrix summary table.","operationId":"perform_pairwise_correlation_stats_pairwise_correlation_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PairwiseCorrRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TestResultResponse"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/stats/power_anova":{"post":{"tags":["Stats","Statistical Tests - Power ANOVA"],"summary":"Power Anova","description":"Performs power analysis for ANOVA tests.\n**Request Body:**\n- eta_squared: Effect size for ANOVA, measured as eta-squared (optional, required if solving for power or sample size).\n- k: Number of groups in the ANOVA (optional, required if solving for power or sample size).\n- n: Sample size per group (optional, required if solving for power or effect size).\n- power: Statistical power of the test, between 0 and 1 (inclusive) (optional, required if solving for sample size or effect size).\n- alpha: Significance level for the test, typically between 0 and 1 (inclusive) (optional, required if solving for power or sample size).\n**Returns:**\n- TestResultResponse containing summary table with power analysis results.","operationId":"power_anova_stats_power_anova_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PowerAnovaRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TestResultResponse"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/stats/power_chi2":{"post":{"tags":["Stats","Statistical Tests - Power Chi-squared"],"summary":"Power Chi2","description":"Performs power analysis for chi-squared tests.\n**Request Body:**\n- dof: Degrees of freedom for the chi-squared test (required).\n- w: Effect size for chi-squared test, measured as Cohen's w (optional, required if solving for power or sample size).\n- n: Total sample size (optional, required if solving for power or effect size).\n- power: Statistical power of the test, between 0 and 1 (inclusive) (optional, required if solving for sample size or effect size).\n- alpha: Significance level for the test, typically between 0 and 1 (inclusive) (optional, required if solving for power or sample size).\n**Returns:**\n- TestResultResponse containing summary table with power analysis results.","operationId":"power_chi2_stats_power_chi2_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PowerChi2Request"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TestResultResponse"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/stats/power_corr":{"post":{"tags":["Stats","Statistical Tests - Power Correlation"],"summary":"Power Corr","description":"Performs power analysis for correlation tests.\n**Request Body:**\n- r: Correlation coefficient (optional, required if solving for power or sample size).\n- n: Sample size (optional, required if solving for power or effect size).\n- power: Statistical power (optional, required if solving for sample size or effect size).\n- alpha: Significance level (optional, required if solving for power or sample size).\n- alternative: Type of alternative hypothesis (default is 'two-sided').\n**Returns:**\n- TestResultResponse containing summary table with power analysis results.","operationId":"power_corr_stats_power_corr_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PowerCorrRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TestResultResponse"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/stats/power_ttest":{"post":{"tags":["Stats","Statistical Tests - Power T-test"],"summary":"Power Ttest","description":"Performs power analysis for a t-test based on provided parameters.\n**Request Body:**\n- d: Effect size (Cohen's d) for the t-test.\n- n: Sample size (per group for two-sample, total for one-sample or paired).\n- power: Desired statistical power of the test (between 0 and 1).\n- alpha: Significance level for the test (between 0 and 1).\n- contrast: Type of t-test (paired, one-sample, two-sample).\n- alternative: Type of alternative hypothesis (two-sided, less, greater).\n**Returns:**\n- TestResultResponse containing summary table with power analysis results.","operationId":"power_ttest_stats_power_ttest_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PowerTTestRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TestResultResponse"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/stats/ttest_independent":{"post":{"tags":["Stats","Statistical Tests - T-Test"],"summary":"Perform Independent Ttest","description":"Performs a t-test on the provided data.\n**Request Body:**\n- data: Dataset in wide-format. Each column represents a variable, and each row represents an observation.\n- x: The grouping variable column name (categorical) for independent samples t-test, or the first variable for paired t-test.\n- y: The dependent variable column name (numeric) for independent samples t-test, or the second variable for paired t-test.\n- paired: If True, performs a paired t-test; if False, performs an independent samples t-test.\n- alternative: Type of alternative hypothesis.\n- correction: Correction for unequal variances in independent t-tests.\n- r: Effect size for power analysis (correlation coefficient for paired tests).\n- confidence: Confidence level for the confidence interval of the mean difference.\n**Returns:**\n- A `TestResultResponse` object containing the data formatted for frontend visualization components.","operationId":"perform_independent_ttest_stats_ttest_independent_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TTestRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TestResultResponse"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/stats/ttest_paired":{"post":{"tags":["Stats","Statistical Tests - T-Test"],"summary":"Perform Paired Ttest","description":"Performs a paired t-test on the provided data.\n**Request Body:**\n- data: Dataset in wide-format. Each column represents a variable, and each row represents an observation.\n- x: The first numeric variable for paired comparison.\n- y: The second numeric variable for paired comparison.\n- alternative: Type of alternative hypothesis.\n- r: Effect size for power analysis (correlation coefficient for paired tests).\n- confidence: Confidence level for the confidence interval of the mean difference.\n**Returns:**\n- A `TestResultResponse` object containing the data formatted for frontend visualization components.","operationId":"perform_paired_ttest_stats_ttest_paired_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TTestRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TestResultResponse"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/stats/welch_anova":{"post":{"tags":["Stats","Statistical Tests - Welch ANOVA"],"summary":"Welch Anova Endpoint","description":"Performs Welch's ANOVA on the provided data.\n**Request Body:**\n- data: A dictionary where keys are column names and values are lists of observations.\n- dv: The name of the dependent variable column in the data.\n- between: The name of the between-subject factor in the data.\n**Returns:**\n- result: A list of dictionaries containing the results of the Welch's ANOVA test.","operationId":"welch_anova_endpoint_stats_welch_anova_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WelchAnovaRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TestResultResponse"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/stats/pca":{"post":{"tags":["Stats","Statistical Tests - PCA"],"summary":"Pca Endpoint","description":"Performs Principal Component Analysis (PCA) on the provided data.\n\n**Request Body:**\n- data: A dictionary where keys are column names and values are lists of observations.\n- variables: List of numeric variables to include in the PCA analysis.\n- n_components: Number of components to keep or percentage of variance to retain.\n- method: Method to use for PCA ('pca', 'sparse_pca', 'trunc_svd').\n- normalize: Whether to standardize the data before applying PCA.\n- target: Optional name of the variable for categorical grouping in biplot visualization.\n\n**Returns:**\n- TestResultResponse containing PCA results and visualizations.","operationId":"pca_endpoint_stats_pca_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PcaRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TestResultResponse"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/crop-defaults/":{"get":{"tags":["crop-defaults"],"summary":"List Available Crops","description":"List all available crops and varieties from PCSE","operationId":"list_available_crops_api_crop_defaults__get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response List Available Crops Api Crop Defaults  Get"}}}}}}},"/api/crop-defaults/{crop_name}":{"get":{"tags":["crop-defaults"],"summary":"Get Crop Defaults","description":"Get default crop parameters for a species from PCSE.\nIf variety_name is not provided, uses the first available variety.","operationId":"get_crop_defaults_api_crop_defaults__crop_name__get","parameters":[{"name":"crop_name","in":"path","required":true,"schema":{"type":"string","title":"Crop Name"}},{"name":"variety_name","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Variety Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Crop Defaults Api Crop Defaults  Crop Name  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/crop-defaults/{crop_name}/varieties":{"get":{"tags":["crop-defaults"],"summary":"List Crop Varieties","description":"List all available varieties for a specific crop","operationId":"list_crop_varieties_api_crop_defaults__crop_name__varieties_get","parameters":[{"name":"crop_name","in":"path","required":true,"schema":{"type":"string","title":"Crop Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Crop Varieties Api Crop Defaults  Crop Name  Varieties Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/crop-defaults/{crop_name}/schema":{"get":{"tags":["crop-defaults"],"summary":"Get Crop Form Schema","description":"Get complete form schema for crop parameters including metadata, validation, and grouping.\nThis is used to dynamically generate the frontend form.","operationId":"get_crop_form_schema_api_crop_defaults__crop_name__schema_get","parameters":[{"name":"crop_name","in":"path","required":true,"schema":{"type":"string","title":"Crop Name"}},{"name":"variety_name","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Variety Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CropFormSchema"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/crop-defaults/{crop_name}/{variety_name}/raw":{"get":{"tags":["crop-defaults"],"summary":"Get Raw Crop Parameters","description":"Get all raw PCSE parameters for a crop variety (for debugging/exploration)","operationId":"get_raw_crop_parameters_api_crop_defaults__crop_name___variety_name__raw_get","parameters":[{"name":"crop_name","in":"path","required":true,"schema":{"type":"string","title":"Crop Name"}},{"name":"variety_name","in":"path","required":true,"schema":{"type":"string","title":"Variety Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Raw Crop Parameters Api Crop Defaults  Crop Name   Variety Name  Raw Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/environment/profiles/batch":{"post":{"tags":["environment"],"summary":"Get Batch Environment Profiles","description":"Generate environment profiles for multiple locations in a single request.\n\nThis endpoint is optimized for processing multiple locations concurrently,\nmaking it ideal for environment clustering and analysis workflows.\n\n**Features:**\n- Concurrent processing of up to 100 locations\n- Automatic data source selection per location\n- Comprehensive error handling and reporting\n- Processing time tracking and data source analytics\n- Real-time portfolio updates (provide team_id + portfolio_id)\n\n**Use Cases:**\n- Environment clustering analysis\n- Multi-location agricultural assessments\n- Batch soil and climate data collection\n\n**Real-time Updates:**\n- Provide team_id and portfolio_id for real-time portfolio updates\n- Each completed profile is written directly to portfolio\n- Frontend listens to teams/{team_id}/grace-portfolios/{portfolio_id}","operationId":"get_batch_environment_profiles_api_environment_profiles_batch_post","parameters":[{"name":"team_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Team Id"}},{"name":"portfolio_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Portfolio Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchEnvironmentRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchEnvironmentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/environment/profiles/batch/queue":{"post":{"tags":["environment"],"summary":"Queue Batch Environment Profiles","description":"Queue environment profile generation for any number of locations via Celery.\n\nThis endpoint accepts unlimited locations and processes them in batches of 100\nvia Celery task queue for asynchronous processing.\n\n**Features:**\n- Accepts unlimited number of locations\n- Automatically batches into groups of 100\n- Asynchronous processing via Celery\n- Real-time portfolio updates (provide team_id + portfolio_id)\n\n**Returns:**\n- request_id: Unique identifier for tracking\n- total_locations: Total number of locations queued\n- total_batches: Number of batches created\n- task_ids: List of Celery task IDs for each batch","operationId":"queue_batch_environment_profiles_api_environment_profiles_batch_queue_post","parameters":[{"name":"team_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Team Id"}},{"name":"portfolio_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Portfolio Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QueuedBatchEnvironmentRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/environment/clusters/generate":{"post":{"tags":["environment"],"summary":"Generate Environment Clusters","description":"Generate environment profile clusters with AI-generated titles and descriptions.\n\nTakes a list of environment profiles and groups them into clusters based on \nsoil and climate similarity, then generates meaningful titles and descriptions\nfor each cluster using AI.\n\n**Workflow:**\n1. Cluster environment profiles by soil/climate similarity\n2. Calculate cluster statistics and geographic centers\n3. Generate AI titles and descriptions for each cluster\n4. Return structured clusters with metadata\n\n**Use Cases:**\n- Customer location analysis and segmentation  \n- Agricultural environment classification\n- Market analysis and regional profiling","operationId":"generate_environment_clusters_api_environment_clusters_generate_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClusterGenerationRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClusterGenerationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/environment/clustering-task-status/{portfolio_id}":{"get":{"tags":["environment"],"summary":"Get Clustering Task Status","description":"Check the status of clustering tasks for a portfolio.","operationId":"get_clustering_task_status_api_environment_clustering_task_status__portfolio_id__get","parameters":[{"name":"portfolio_id","in":"path","required":true,"schema":{"type":"string","title":"Portfolio Id"}},{"name":"team_id","in":"query","required":true,"schema":{"type":"string","title":"Team Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/environment/test":{"get":{"tags":["environment"],"summary":"Test Environment Service","description":"Test endpoint to verify the environment service is working","operationId":"test_environment_service_api_environment_test_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/import/index-files":{"post":{"tags":["Import System"],"summary":"Index Files","description":"Index uploaded files and store them in temporary storage.\nNow integrated with objective-based system.","operationId":"index_files_import_index_files_post","parameters":[{"name":"firebase-token","in":"header","required":true,"schema":{"type":"string","title":"Firebase-Token"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_index_files_import_index_files_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FileIndexResponse"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/import/start-parsing-session":{"post":{"tags":["Import System"],"summary":"Start Parsing Session","description":"Start parsing session with objective-based approach.","operationId":"start_parsing_session_import_start_parsing_session_post","parameters":[{"name":"firebase-token","in":"header","required":true,"schema":{"type":"string","title":"Firebase-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StartSessionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Start Parsing Session Import Start Parsing Session Post"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/import/user-feedback-to-confirmation":{"post":{"tags":["Import System"],"summary":"Submit User Feedback To Confirmation","description":"Submit user response to an input request and resume AI processing.","operationId":"submit_user_feedback_to_confirmation_import_user_feedback_to_confirmation_post","parameters":[{"name":"firebase-token","in":"header","required":true,"schema":{"type":"string","title":"Firebase-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserResponseRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Submit User Feedback To Confirmation Import User Feedback To Confirmation Post"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/import/user-response":{"post":{"tags":["Import System"],"summary":"Submit User Response","description":"Submit user response to an input request and resume AI processing.","operationId":"submit_user_response_import_user_response_post","parameters":[{"name":"firebase-token","in":"header","required":true,"schema":{"type":"string","title":"Firebase-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserResponseRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Submit User Response Import User Response Post"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/import/session/{experiment_id}/pause":{"post":{"tags":["Import System"],"summary":"Pause Session","description":"Pause an import session.","operationId":"pause_session_import_session__experiment_id__pause_post","parameters":[{"name":"experiment_id","in":"path","required":true,"schema":{"type":"string","title":"Experiment Id"}},{"name":"firebase-token","in":"header","required":true,"schema":{"type":"string","title":"Firebase-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Pause Session Import Session  Experiment Id  Pause Post"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/import/session/{experiment_id}/cancel":{"post":{"tags":["Import System"],"summary":"Cancel Session","description":"Cancel an import session (V4 with proper API cancellation).","operationId":"cancel_session_import_session__experiment_id__cancel_post","parameters":[{"name":"experiment_id","in":"path","required":true,"schema":{"type":"string","title":"Experiment Id"}},{"name":"firebase-token","in":"header","required":true,"schema":{"type":"string","title":"Firebase-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Cancel Session Import Session  Experiment Id  Cancel Post"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/import/session/{experiment_id}/resume":{"post":{"tags":["Import System"],"summary":"Resume Session","description":"Resume a paused session.","operationId":"resume_session_import_session__experiment_id__resume_post","parameters":[{"name":"experiment_id","in":"path","required":true,"schema":{"type":"string","title":"Experiment Id"}},{"name":"firebase-token","in":"header","required":true,"schema":{"type":"string","title":"Firebase-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Resume Session Import Session  Experiment Id  Resume Post"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/import/milestones":{"get":{"tags":["Import System"],"summary":"Get Milestones","description":"Get suggested objectives (formerly milestones).","operationId":"get_milestones_import_milestones_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Get Milestones Import Milestones Get"}}}},"404":{"description":"Not found"}}}},"/import/team/{team_id}/scripts":{"get":{"tags":["Import System"],"summary":"Get Team Scripts","description":"Get all available import scripts from experiments in the team.","operationId":"get_team_scripts_import_team__team_id__scripts_get","parameters":[{"name":"team_id","in":"path","required":true,"schema":{"type":"string","title":"Team Id"}},{"name":"firebase-token","in":"header","required":true,"schema":{"type":"string","title":"Firebase-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Team Scripts Import Team  Team Id  Scripts Get"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/import/session/{experiment_id}/experiment-data/sample":{"get":{"tags":["Import System"],"summary":"Get Experiment Data Sample","description":"Return a small sample of parsed experiment data for preview overlays.\n\ntype: one of 'plants', 'variables', 'environments', 'timestamps', 'dataPoints'","operationId":"get_experiment_data_sample_import_session__experiment_id__experiment_data_sample_get","parameters":[{"name":"experiment_id","in":"path","required":true,"schema":{"type":"string","title":"Experiment Id"}},{"name":"type","in":"query","required":true,"schema":{"type":"string","title":"Type"}},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Limit"}},{"name":"teamId","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Teamid"}},{"name":"firebase-token","in":"header","required":true,"schema":{"type":"string","title":"Firebase-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Experiment Data Sample Import Session  Experiment Id  Experiment Data Sample Get"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/import/session/{experiment_id}/task-status":{"get":{"tags":["Import System"],"summary":"Get Task Status","description":"Get the current Celery task status for an import session.","operationId":"get_task_status_import_session__experiment_id__task_status_get","parameters":[{"name":"experiment_id","in":"path","required":true,"schema":{"type":"string","title":"Experiment Id"}},{"name":"firebase-token","in":"header","required":true,"schema":{"type":"string","title":"Firebase-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Task Status Import Session  Experiment Id  Task Status Get"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/import/session/{experiment_id}/start-manual-review":{"post":{"tags":["Import System"],"summary":"Start Manual Review","description":"Initialize manual fine-tuning sections and persist to Firestore.\n\nSections:\n  1. Timestamp clustering (only if timestampsCount > 3)\n  2. Variable ontology maps\n  3. Data points summary breakdown","operationId":"start_manual_review_import_session__experiment_id__start_manual_review_post","parameters":[{"name":"experiment_id","in":"path","required":true,"schema":{"type":"string","title":"Experiment Id"}},{"name":"firebase-token","in":"header","required":true,"schema":{"type":"string","title":"Firebase-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/import/session/{experiment_id}/restart":{"post":{"tags":["Import System"],"summary":"Restart Import Session","description":"Restart a failed import session using V4 import service.","operationId":"restart_import_session_import_session__experiment_id__restart_post","parameters":[{"name":"experiment_id","in":"path","required":true,"schema":{"type":"string","title":"Experiment Id"}},{"name":"firebase-token","in":"header","required":true,"schema":{"type":"string","title":"Firebase-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/import/complete-ai-import":{"post":{"tags":["Import System"],"summary":"Complete Ai Import","description":"Complete the AI import by taking the extracted data and adding it to the experiment.\nThis is a replacement for the Phenovation endpoint specifically for AI imports.","operationId":"complete_ai_import_import_complete_ai_import_post","parameters":[{"name":"firebase-token","in":"header","required":true,"schema":{"type":"string","title":"Firebase-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompleteImportRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Complete Ai Import Import Complete Ai Import Post"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/commodities/list":{"get":{"tags":["Commodity Prices"],"summary":"List Commodities","description":"List available commodity types","operationId":"list_commodities_commodities_list_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/commodities/{commodity_type}/prices":{"get":{"tags":["Commodity Prices"],"summary":"Get Commodity Prices","description":"Get commodity prices directly from FRED API (no authentication required)\n\nArgs:\n    commodity_type: Type of commodity (wheat, corn, soybeans, barley, rice)\n    start_year: Start year for data (default: 5 years ago)\n    end_year: End year for data (default: current year)","operationId":"get_commodity_prices_commodities__commodity_type__prices_get","parameters":[{"name":"commodity_type","in":"path","required":true,"schema":{"type":"string","title":"Commodity Type"}},{"name":"start_year","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Start Year"}},{"name":"end_year","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"End Year"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/commodities/{commodity_type}/annual-average":{"get":{"tags":["Commodity Prices"],"summary":"Get Annual Average Prices","description":"Get annual average commodity prices (no authentication required)\nUseful for plotting alongside yearly simulation data","operationId":"get_annual_average_prices_commodities__commodity_type__annual_average_get","parameters":[{"name":"commodity_type","in":"path","required":true,"schema":{"type":"string","title":"Commodity Type"}},{"name":"start_year","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Start Year"}},{"name":"end_year","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"End Year"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/mail/send-demo-link":{"post":{"tags":["mail"],"summary":"Send Demo Link","description":"Send a demo portfolio link to the specified email address.","operationId":"send_demo_link_api_mail_send_demo_link_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendDemoLinkRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/demo-portfolio/create":{"post":{"tags":["Demo Portfolio"],"summary":"Create Demo Portfolio Endpoint","description":"Create a demo portfolio with customized variety names.\n\nRequires Firebase authentication.","operationId":"create_demo_portfolio_endpoint_api_demo_portfolio_create_post","parameters":[{"name":"firebase-token","in":"header","required":true,"schema":{"type":"string","title":"Firebase-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateDemoPortfolioRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/public-pages/{experiment_id}":{"get":{"tags":["Public Pages"],"summary":"Get Public Experiment","description":"Get public experiment data.\n\nVerifies that the experiment is currently published by checking \nthe verification token against the source private document.","operationId":"get_public_experiment_public_pages__experiment_id__get","parameters":[{"name":"experiment_id","in":"path","required":true,"schema":{"type":"string","title":"Experiment Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Public Pages"],"summary":"Unpublish Experiment","description":"Unpublish an experiment by removing the public HTML page.\n\nNote: Signed URLs will remain valid until they expire, but the\npublic page will no longer be accessible.","operationId":"unpublish_experiment_public_pages__experiment_id__delete","parameters":[{"name":"experiment_id","in":"path","required":true,"schema":{"type":"string","title":"Experiment Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/public-pages/{experiment_id}/publish":{"post":{"tags":["Public Pages"],"summary":"Publish Experiment","description":"Publish an experiment to make it publicly accessible.\n\nThis will:\n1. Generate long-lived signed URLs for all specified images\n2. Generate pre-rendered HTML with meta tags\n3. Upload HTML to public storage\n4. Update the public-experiments collection","operationId":"publish_experiment_public_pages__experiment_id__publish_post","parameters":[{"name":"experiment_id","in":"path","required":true,"schema":{"type":"string","title":"Experiment Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublishExperimentRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublishExperimentResponse"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/public-pages/public-signed-urls":{"post":{"tags":["Public Pages"],"summary":"Get Public Signed Urls","description":"Generate long-lived signed URLs for public experiment images.\n\nThis endpoint does NOT require authentication but verifies that\nthe experiment is published in the public-experiments collection.","operationId":"get_public_signed_urls_public_pages_public_signed_urls_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicSignedUrlRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicSignedUrlResponse"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/public-pages/{experiment_id}/refresh-urls":{"post":{"tags":["Public Pages"],"summary":"Refresh Signed Urls","description":"Refresh all signed URLs for a published experiment.\n\nCall this when URLs are about to expire or after updating images.","operationId":"refresh_signed_urls_public_pages__experiment_id__refresh_urls_post","parameters":[{"name":"experiment_id","in":"path","required":true,"schema":{"type":"string","title":"Experiment Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/enviromics/location":{"post":{"tags":["enviromics"],"summary":"Gather Location Data","description":"Gather environmental data for a single lat/lon point.\n\n- Fetches soil profile (AI4SoilHealth / SoilGrids / LUCAS)\n- Fetches elevation (Open-Elevation API)\n- Fetches multi-year climate summaries (NASA POWER)\n- Fetches ecoregion (WWF raster)\n- Saves compact entry to 'enviromics-locations' index\n- Saves full profile to 'enviromics-location-details/{location_id}'\n\n**No client authentication required** – writes are performed server-side via\nthe Firebase Admin SDK (admin-only write, public read enforced in Firestore rules).","operationId":"gather_location_data_api_enviromics_location_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnviromicsLocationRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnviromicsLocationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/enviromics/location/{location_id}/daily-rainfall":{"get":{"tags":["enviromics"],"summary":"Get Location Daily Rainfall","description":"Return daily rainfall for a selected period for an existing Enviromics location.\nData is fetched on-demand from NASA POWER and not persisted.","operationId":"get_location_daily_rainfall_api_enviromics_location__location_id__daily_rainfall_get","parameters":[{"name":"location_id","in":"path","required":true,"schema":{"type":"string","title":"Location Id"}},{"name":"start_date","in":"query","required":true,"schema":{"type":"string","format":"date","title":"Start Date"}},{"name":"end_date","in":"query","required":true,"schema":{"type":"string","format":"date","title":"End Date"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnviromicsDailyRainfallResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/enviromics/location/{location_id}/seasonal-forecast":{"get":{"tags":["enviromics"],"summary":"Get Location Seasonal Forecast","description":"Return seasonal forecast payloads for a saved Enviromics point.\n- Open-Meteo seasonal API (ECMWF IFS04 + SEAS5): live forecast data.\n- C3S Seasonal Multi-System: variable/model catalog metadata for now.","operationId":"get_location_seasonal_forecast_api_enviromics_location__location_id__seasonal_forecast_get","parameters":[{"name":"location_id","in":"path","required":true,"schema":{"type":"string","title":"Location Id"}},{"name":"forecast_days","in":"query","required":false,"schema":{"type":"integer","maximum":215,"minimum":30,"description":"Number of days of seasonal forecast to request from Open-Meteo (max 215).","default":184,"title":"Forecast Days"},"description":"Number of days of seasonal forecast to request from Open-Meteo (max 215)."},{"name":"include_raw_data","in":"query","required":false,"schema":{"type":"boolean","description":"Include full raw Open-Meteo data payload (large; slower for browser clients).","default":false,"title":"Include Raw Data"},"description":"Include full raw Open-Meteo data payload (large; slower for browser clients)."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnviromicsSeasonalForecastResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/enviromics/location/{location_id}":{"put":{"tags":["enviromics"],"summary":"Update Location Name","description":"Update the human-readable name for a location.","operationId":"update_location_name_api_enviromics_location__location_id__put","parameters":[{"name":"location_id","in":"path","required":true,"schema":{"type":"string","title":"Location Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"string"},"title":"Name Update"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["enviromics"],"summary":"Delete Location","description":"Delete an Enviromics location:\n- details doc\n- index entry\n- AI summary history","operationId":"delete_location_api_enviromics_location__location_id__delete","parameters":[{"name":"location_id","in":"path","required":true,"schema":{"type":"string","title":"Location Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/enviromics/location/{location_id}/ai-summary":{"post":{"tags":["enviromics"],"summary":"Create Location Ai Summary","operationId":"create_location_ai_summary_api_enviromics_location__location_id__ai_summary_post","parameters":[{"name":"location_id","in":"path","required":true,"schema":{"type":"string","title":"Location Id"}},{"name":"X-Enviromics-Session","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Enviromics-Session"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnviromicsAiSummaryRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnviromicsAiSummaryCreateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/enviromics/location/{location_id}/ai-summaries":{"get":{"tags":["enviromics"],"summary":"List Location Ai Summaries","operationId":"list_location_ai_summaries_api_enviromics_location__location_id__ai_summaries_get","parameters":[{"name":"location_id","in":"path","required":true,"schema":{"type":"string","title":"Location Id"}},{"name":"X-Enviromics-Session","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Enviromics-Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnviromicsAiSummariesResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/enviromics/locations":{"get":{"tags":["enviromics"],"summary":"List Locations","description":"Return all saved enviromics locations (lightweight index data only).\nNo authentication required.","operationId":"list_locations_api_enviromics_locations_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnviromicsLocationsListResponse"}}}}}}},"/user/credits":{"get":{"tags":["Billing"],"summary":"Get Credits","description":"Get current credit balance for authenticated user","operationId":"get_credits_user_credits_get","parameters":[{"name":"firebase-token","in":"header","required":true,"schema":{"type":"string","title":"Firebase-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/me":{"get":{"tags":["Identity & API tokens"],"summary":"Who am I (identity, scopes, teams)","operationId":"get_me_api_v1_me_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token.","title":"Authorization"},"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token."},{"name":"firebase-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Legacy dashboard header (Firebase ID token).","title":"Firebase-Token"},"description":"Legacy dashboard header (Firebase ID token)."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeResponse"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/api-tokens":{"get":{"tags":["Identity & API tokens"],"summary":"List your API tokens","operationId":"list_api_tokens_api_v1_api_tokens_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token.","title":"Authorization"},"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token."},{"name":"firebase-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Legacy dashboard header (Firebase ID token).","title":"Firebase-Token"},"description":"Legacy dashboard header (Firebase ID token)."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/TokenInfo"},"title":"Response List Api Tokens Api V1 Api Tokens Get"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["Identity & API tokens"],"summary":"Create a personal API token (Firebase session only)","operationId":"create_api_token_api_v1_api_tokens_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token.","title":"Authorization"},"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token."},{"name":"firebase-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Legacy dashboard header (Firebase ID token).","title":"Firebase-Token"},"description":"Legacy dashboard header (Firebase ID token)."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenCreated"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/api-tokens/{token_id}":{"delete":{"tags":["Identity & API tokens"],"summary":"Revoke an API token","operationId":"revoke_api_token_api_v1_api_tokens__token_id__delete","parameters":[{"name":"token_id","in":"path","required":true,"schema":{"type":"string","title":"Token Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token.","title":"Authorization"},"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token."},{"name":"firebase-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Legacy dashboard header (Firebase ID token).","title":"Firebase-Token"},"description":"Legacy dashboard header (Firebase ID token)."}],"responses":{"204":{"description":"Successful Response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/me/profile":{"get":{"tags":["Identity & API tokens"],"summary":"Your Watney profile","operationId":"get_profile_api_v1_me_profile_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token.","title":"Authorization"},"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token."},{"name":"firebase-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Legacy dashboard header (Firebase ID token).","title":"Firebase-Token"},"description":"Legacy dashboard header (Firebase ID token)."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Profile"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["Identity & API tokens"],"summary":"Update your display name (Firestore + Firebase Auth)","operationId":"update_profile_api_v1_me_profile_patch","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token.","title":"Authorization"},"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token."},{"name":"firebase-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Legacy dashboard header (Firebase ID token).","title":"Firebase-Token"},"description":"Legacy dashboard header (Firebase ID token)."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProfileUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Profile"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/teams":{"get":{"tags":["Teams"],"summary":"List teams you belong to","operationId":"list_teams_api_v1_teams_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token.","title":"Authorization"},"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token."},{"name":"firebase-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Legacy dashboard header (Firebase ID token).","title":"Firebase-Token"},"description":"Legacy dashboard header (Firebase ID token)."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/TeamMembership"},"title":"Response List Teams Api V1 Teams Get"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["Teams"],"summary":"Create a team (you become admin)","operationId":"create_team_api_v1_teams_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token.","title":"Authorization"},"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token."},{"name":"firebase-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Legacy dashboard header (Firebase ID token).","title":"Firebase-Token"},"description":"Legacy dashboard header (Firebase ID token)."},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"description":"Optional client-generated key making this POST safe to retry.","title":"Idempotency-Key"},"description":"Optional client-generated key making this POST safe to retry."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TeamCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Team"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/teams/{team_id}":{"get":{"tags":["Teams"],"summary":"Get a team and its members","operationId":"get_team_api_v1_teams__team_id__get","parameters":[{"name":"team_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Team ID","title":"Team Id"},"description":"Team ID"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token.","title":"Authorization"},"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token."},{"name":"firebase-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Legacy dashboard header (Firebase ID token).","title":"Firebase-Token"},"description":"Legacy dashboard header (Firebase ID token)."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Team"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["Teams"],"summary":"Rename a team (admin)","operationId":"update_team_api_v1_teams__team_id__patch","parameters":[{"name":"team_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Team ID","title":"Team Id"},"description":"Team ID"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token.","title":"Authorization"},"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token."},{"name":"firebase-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Legacy dashboard header (Firebase ID token).","title":"Firebase-Token"},"description":"Legacy dashboard header (Firebase ID token)."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TeamUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Team"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Teams"],"summary":"Delete a team (admin)","operationId":"delete_team_api_v1_teams__team_id__delete","parameters":[{"name":"team_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Team ID","title":"Team Id"},"description":"Team ID"},{"name":"confirm","in":"query","required":true,"schema":{"type":"string","description":"Must equal the team ID; guards against accidental deletion.","title":"Confirm"},"description":"Must equal the team ID; guards against accidental deletion."},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token.","title":"Authorization"},"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token."},{"name":"firebase-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Legacy dashboard header (Firebase ID token).","title":"Firebase-Token"},"description":"Legacy dashboard header (Firebase ID token)."}],"responses":{"204":{"description":"Successful Response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/teams/{team_id}/members":{"post":{"tags":["Teams"],"summary":"Add an existing user to the team as 'member' (admin)","operationId":"add_member_api_v1_teams__team_id__members_post","parameters":[{"name":"team_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Team ID","title":"Team Id"},"description":"Team ID"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token.","title":"Authorization"},"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token."},{"name":"firebase-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Legacy dashboard header (Firebase ID token).","title":"Firebase-Token"},"description":"Legacy dashboard header (Firebase ID token)."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MemberAdd"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Team"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/teams/{team_id}/members/{user_id}":{"patch":{"tags":["Teams"],"summary":"Change a team member's role (admin; keep at least one admin)","operationId":"update_member_role_api_v1_teams__team_id__members__user_id__patch","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}},{"name":"team_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Team ID","title":"Team Id"},"description":"Team ID"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token.","title":"Authorization"},"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token."},{"name":"firebase-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Legacy dashboard header (Firebase ID token).","title":"Firebase-Token"},"description":"Legacy dashboard header (Firebase ID token)."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MemberRoleUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Team"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Teams"],"summary":"Remove a member (admin) or leave the team (yourself)","operationId":"remove_member_api_v1_teams__team_id__members__user_id__delete","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}},{"name":"team_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Team ID","title":"Team Id"},"description":"Team ID"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token.","title":"Authorization"},"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token."},{"name":"firebase-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Legacy dashboard header (Firebase ID token).","title":"Firebase-Token"},"description":"Legacy dashboard header (Firebase ID token)."}],"responses":{"204":{"description":"Successful Response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/teams/{team_id}/experiments":{"get":{"tags":["Experiments"],"summary":"List a team's experiments","operationId":"list_experiments_api_v1_teams__team_id__experiments_get","parameters":[{"name":"team_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Team ID","title":"Team Id"},"description":"Team ID"},{"name":"name_contains","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"description":"Case-insensitive name filter.","title":"Name Contains"},"description":"Case-insensitive name filter."},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":1},{"type":"null"}],"description":"Page size (default 50, max 500).","title":"Limit"},"description":"Page size (default 50, max 500)."},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":1024},{"type":"null"}],"description":"Opaque cursor from a previous page's next_cursor.","title":"Cursor"},"description":"Opaque cursor from a previous page's next_cursor."},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token.","title":"Authorization"},"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token."},{"name":"firebase-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Legacy dashboard header (Firebase ID token).","title":"Firebase-Token"},"description":"Legacy dashboard header (Firebase ID token)."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_ExperimentSummary_"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"}}},"post":{"tags":["Experiments"],"summary":"Create an empty experiment or clone one as a template","operationId":"create_experiment_api_v1_teams__team_id__experiments_post","parameters":[{"name":"team_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Team ID","title":"Team Id"},"description":"Team ID"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token.","title":"Authorization"},"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token."},{"name":"firebase-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Legacy dashboard header (Firebase ID token).","title":"Firebase-Token"},"description":"Legacy dashboard header (Firebase ID token)."},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"description":"Optional client-generated key making this POST safe to retry.","title":"Idempotency-Key"},"description":"Optional client-generated key making this POST safe to retry."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExperimentCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExperimentCreated"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"}}}},"/api/v1/teams/{team_id}/experiments/{experiment_id}":{"get":{"tags":["Experiments"],"summary":"Get the full experiment document","operationId":"get_experiment_api_v1_teams__team_id__experiments__experiment_id__get","parameters":[{"name":"team_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Team ID","title":"Team Id"},"description":"Team ID"},{"name":"experiment_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Experiment ID","title":"Experiment Id"},"description":"Experiment ID"},{"name":"fields","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"description":"Comma-separated top-level fields to return, e.g. 'name,timestamps,variables'.","title":"Fields"},"description":"Comma-separated top-level fields to return, e.g. 'name,timestamps,variables'."},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token.","title":"Authorization"},"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token."},{"name":"firebase-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Legacy dashboard header (Firebase ID token).","title":"Firebase-Token"},"description":"Legacy dashboard header (Firebase ID token)."}],"responses":{"200":{"description":"The experiment document plus `id` and `team_id`.","content":{"application/json":{"schema":{}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"}}},"patch":{"tags":["Experiments"],"summary":"Update experiment settings","operationId":"update_experiment_api_v1_teams__team_id__experiments__experiment_id__patch","parameters":[{"name":"team_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Team ID","title":"Team Id"},"description":"Team ID"},{"name":"experiment_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Experiment ID","title":"Experiment Id"},"description":"Experiment ID"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token.","title":"Authorization"},"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token."},{"name":"firebase-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Legacy dashboard header (Firebase ID token).","title":"Firebase-Token"},"description":"Legacy dashboard header (Firebase ID token)."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExperimentSettings"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"}}},"delete":{"tags":["Experiments"],"summary":"Delete an experiment","operationId":"delete_experiment_api_v1_teams__team_id__experiments__experiment_id__delete","parameters":[{"name":"team_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Team ID","title":"Team Id"},"description":"Team ID"},{"name":"experiment_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Experiment ID","title":"Experiment Id"},"description":"Experiment ID"},{"name":"confirm","in":"query","required":true,"schema":{"type":"string","description":"Must equal the experiment ID; guards against accidental deletion.","title":"Confirm"},"description":"Must equal the experiment ID; guards against accidental deletion."},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token.","title":"Authorization"},"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token."},{"name":"firebase-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Legacy dashboard header (Firebase ID token).","title":"Firebase-Token"},"description":"Legacy dashboard header (Firebase ID token)."}],"responses":{"204":{"description":"Successful Response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"}}}},"/api/v1/teams/{team_id}/experiments/{experiment_id}/checkpoints":{"get":{"tags":["Experiments"],"summary":"List checkpoints","operationId":"list_checkpoints_api_v1_teams__team_id__experiments__experiment_id__checkpoints_get","parameters":[{"name":"team_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Team ID","title":"Team Id"},"description":"Team ID"},{"name":"experiment_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Experiment ID","title":"Experiment Id"},"description":"Experiment ID"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token.","title":"Authorization"},"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token."},{"name":"firebase-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Legacy dashboard header (Firebase ID token).","title":"Firebase-Token"},"description":"Legacy dashboard header (Firebase ID token)."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"}}},"post":{"tags":["Experiments"],"summary":"Create a checkpoint","operationId":"create_checkpoint_api_v1_teams__team_id__experiments__experiment_id__checkpoints_post","parameters":[{"name":"team_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Team ID","title":"Team Id"},"description":"Team ID"},{"name":"experiment_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Experiment ID","title":"Experiment Id"},"description":"Experiment ID"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token.","title":"Authorization"},"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token."},{"name":"firebase-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Legacy dashboard header (Firebase ID token).","title":"Firebase-Token"},"description":"Legacy dashboard header (Firebase ID token)."}],"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"}}}},"/api/v1/teams/{team_id}/experiments/{experiment_id}/checkpoints/{checkpoint_id}/restore":{"post":{"tags":["Experiments"],"summary":"Restore a checkpoint (a safety checkpoint of the current state is taken first)","operationId":"restore_checkpoint_api_v1_teams__team_id__experiments__experiment_id__checkpoints__checkpoint_id__restore_post","parameters":[{"name":"checkpoint_id","in":"path","required":true,"schema":{"type":"string","title":"Checkpoint Id"}},{"name":"team_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Team ID","title":"Team Id"},"description":"Team ID"},{"name":"experiment_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Experiment ID","title":"Experiment Id"},"description":"Experiment ID"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token.","title":"Authorization"},"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token."},{"name":"firebase-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Legacy dashboard header (Firebase ID token).","title":"Firebase-Token"},"description":"Legacy dashboard header (Firebase ID token)."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"}}}},"/api/v1/teams/{team_id}/experiments/{experiment_id}/plants":{"get":{"tags":["Plants"],"summary":"List plants","operationId":"list_plants_api_v1_teams__team_id__experiments__experiment_id__plants_get","parameters":[{"name":"team_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Team ID","title":"Team Id"},"description":"Team ID"},{"name":"experiment_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Experiment ID","title":"Experiment Id"},"description":"Experiment ID"},{"name":"environment_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$"},{"type":"null"}],"title":"Environment Id"}},{"name":"tag","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Tag"}},{"name":"name_contains","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Name Contains"}},{"name":"cultivar","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"description":"Matches scientificName/species/commonName/variety (case-insensitive).","title":"Cultivar"},"description":"Matches scientificName/species/commonName/variety (case-insensitive)."},{"name":"include_data","in":"query","required":false,"schema":{"type":"boolean","description":"Include metadata and time-series values.","default":false,"title":"Include Data"},"description":"Include metadata and time-series values."},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":1},{"type":"null"}],"description":"Page size (default 50, max 500).","title":"Limit"},"description":"Page size (default 50, max 500)."},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":1024},{"type":"null"}],"description":"Opaque cursor from a previous page's next_cursor.","title":"Cursor"},"description":"Opaque cursor from a previous page's next_cursor."},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token.","title":"Authorization"},"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token."},{"name":"firebase-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Legacy dashboard header (Firebase ID token).","title":"Firebase-Token"},"description":"Legacy dashboard header (Firebase ID token)."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_PlantOut_"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"}}},"post":{"tags":["Plants"],"summary":"Create plants (auto-positioned, optionally inside an environment)","operationId":"create_plants_api_v1_teams__team_id__experiments__experiment_id__plants_post","parameters":[{"name":"team_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Team ID","title":"Team Id"},"description":"Team ID"},{"name":"experiment_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Experiment ID","title":"Experiment Id"},"description":"Experiment ID"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token.","title":"Authorization"},"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token."},{"name":"firebase-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Legacy dashboard header (Firebase ID token).","title":"Firebase-Token"},"description":"Legacy dashboard header (Firebase ID token)."},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"description":"Optional client-generated key making this POST safe to retry.","title":"Idempotency-Key"},"description":"Optional client-generated key making this POST safe to retry."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlantsCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlantsCreated"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"}}}},"/api/v1/teams/{team_id}/experiments/{experiment_id}/plants/{plant_id}":{"get":{"tags":["Plants"],"summary":"Get a plant","operationId":"get_plant_api_v1_teams__team_id__experiments__experiment_id__plants__plant_id__get","parameters":[{"name":"plant_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","title":"Plant Id"}},{"name":"team_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Team ID","title":"Team Id"},"description":"Team ID"},{"name":"experiment_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Experiment ID","title":"Experiment Id"},"description":"Experiment ID"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token.","title":"Authorization"},"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token."},{"name":"firebase-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Legacy dashboard header (Firebase ID token).","title":"Firebase-Token"},"description":"Legacy dashboard header (Firebase ID token)."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlantOut"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"}}},"patch":{"tags":["Plants"],"summary":"Update a plant","operationId":"update_plant_api_v1_teams__team_id__experiments__experiment_id__plants__plant_id__patch","parameters":[{"name":"plant_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","title":"Plant Id"}},{"name":"team_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Team ID","title":"Team Id"},"description":"Team ID"},{"name":"experiment_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Experiment ID","title":"Experiment Id"},"description":"Experiment ID"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token.","title":"Authorization"},"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token."},{"name":"firebase-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Legacy dashboard header (Firebase ID token).","title":"Firebase-Token"},"description":"Legacy dashboard header (Firebase ID token)."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlantUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlantOut"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"}}},"delete":{"tags":["Plants"],"summary":"Delete a plant (also removed from environments)","operationId":"delete_plant_api_v1_teams__team_id__experiments__experiment_id__plants__plant_id__delete","parameters":[{"name":"plant_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","title":"Plant Id"}},{"name":"team_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Team ID","title":"Team Id"},"description":"Team ID"},{"name":"experiment_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Experiment ID","title":"Experiment Id"},"description":"Experiment ID"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token.","title":"Authorization"},"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token."},{"name":"firebase-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Legacy dashboard header (Firebase ID token).","title":"Firebase-Token"},"description":"Legacy dashboard header (Firebase ID token)."}],"responses":{"204":{"description":"Successful Response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"}}}},"/api/v1/teams/{team_id}/experiments/{experiment_id}/plants/{plant_id}/tags":{"post":{"tags":["Plants"],"summary":"Add a tag (arrayUnion)","operationId":"add_tag_api_v1_teams__team_id__experiments__experiment_id__plants__plant_id__tags_post","parameters":[{"name":"plant_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","title":"Plant Id"}},{"name":"team_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Team ID","title":"Team Id"},"description":"Team ID"},{"name":"experiment_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Experiment ID","title":"Experiment Id"},"description":"Experiment ID"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token.","title":"Authorization"},"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token."},{"name":"firebase-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Legacy dashboard header (Firebase ID token).","title":"Firebase-Token"},"description":"Legacy dashboard header (Firebase ID token)."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TagBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlantOut"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"}}}},"/api/v1/teams/{team_id}/experiments/{experiment_id}/plants/{plant_id}/tags/{tag}":{"delete":{"tags":["Plants"],"summary":"Remove a tag (arrayRemove)","operationId":"remove_tag_api_v1_teams__team_id__experiments__experiment_id__plants__plant_id__tags__tag__delete","parameters":[{"name":"tag","in":"path","required":true,"schema":{"type":"string","title":"Tag"}},{"name":"plant_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","title":"Plant Id"}},{"name":"team_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Team ID","title":"Team Id"},"description":"Team ID"},{"name":"experiment_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Experiment ID","title":"Experiment Id"},"description":"Experiment ID"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token.","title":"Authorization"},"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token."},{"name":"firebase-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Legacy dashboard header (Firebase ID token).","title":"Firebase-Token"},"description":"Legacy dashboard header (Firebase ID token)."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlantOut"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"}}}},"/api/v1/teams/{team_id}/experiments/{experiment_id}/environments":{"get":{"tags":["Environments"],"summary":"List environments","operationId":"list_environments_api_v1_teams__team_id__experiments__experiment_id__environments_get","parameters":[{"name":"team_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Team ID","title":"Team Id"},"description":"Team ID"},{"name":"experiment_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Experiment ID","title":"Experiment Id"},"description":"Experiment ID"},{"name":"include_data","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Data"}},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":1},{"type":"null"}],"description":"Page size (default 50, max 500).","title":"Limit"},"description":"Page size (default 50, max 500)."},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":1024},{"type":"null"}],"description":"Opaque cursor from a previous page's next_cursor.","title":"Cursor"},"description":"Opaque cursor from a previous page's next_cursor."},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token.","title":"Authorization"},"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token."},{"name":"firebase-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Legacy dashboard header (Firebase ID token).","title":"Firebase-Token"},"description":"Legacy dashboard header (Firebase ID token)."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_EnvironmentOut_"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"}}},"post":{"tags":["Environments"],"summary":"Create environments","operationId":"create_environments_api_v1_teams__team_id__experiments__experiment_id__environments_post","parameters":[{"name":"team_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Team ID","title":"Team Id"},"description":"Team ID"},{"name":"experiment_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Experiment ID","title":"Experiment Id"},"description":"Experiment ID"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token.","title":"Authorization"},"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token."},{"name":"firebase-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Legacy dashboard header (Firebase ID token).","title":"Firebase-Token"},"description":"Legacy dashboard header (Firebase ID token)."},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"description":"Optional client-generated key making this POST safe to retry.","title":"Idempotency-Key"},"description":"Optional client-generated key making this POST safe to retry."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnvironmentsCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"}}}},"/api/v1/teams/{team_id}/experiments/{experiment_id}/environments/{environment_id}":{"get":{"tags":["Environments"],"summary":"Get an environment","operationId":"get_environment_api_v1_teams__team_id__experiments__experiment_id__environments__environment_id__get","parameters":[{"name":"environment_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","title":"Environment Id"}},{"name":"team_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Team ID","title":"Team Id"},"description":"Team ID"},{"name":"experiment_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Experiment ID","title":"Experiment Id"},"description":"Experiment ID"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token.","title":"Authorization"},"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token."},{"name":"firebase-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Legacy dashboard header (Firebase ID token).","title":"Firebase-Token"},"description":"Legacy dashboard header (Firebase ID token)."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnvironmentOut"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"}}},"patch":{"tags":["Environments"],"summary":"Update an environment","operationId":"update_environment_api_v1_teams__team_id__experiments__experiment_id__environments__environment_id__patch","parameters":[{"name":"environment_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","title":"Environment Id"}},{"name":"team_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Team ID","title":"Team Id"},"description":"Team ID"},{"name":"experiment_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Experiment ID","title":"Experiment Id"},"description":"Experiment ID"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token.","title":"Authorization"},"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token."},{"name":"firebase-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Legacy dashboard header (Firebase ID token).","title":"Firebase-Token"},"description":"Legacy dashboard header (Firebase ID token)."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnvironmentUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnvironmentOut"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"}}},"delete":{"tags":["Environments"],"summary":"Delete an environment (plants are kept)","operationId":"delete_environment_api_v1_teams__team_id__experiments__experiment_id__environments__environment_id__delete","parameters":[{"name":"environment_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","title":"Environment Id"}},{"name":"team_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Team ID","title":"Team Id"},"description":"Team ID"},{"name":"experiment_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Experiment ID","title":"Experiment Id"},"description":"Experiment ID"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token.","title":"Authorization"},"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token."},{"name":"firebase-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Legacy dashboard header (Firebase ID token).","title":"Firebase-Token"},"description":"Legacy dashboard header (Firebase ID token)."}],"responses":{"204":{"description":"Successful Response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"}}}},"/api/v1/teams/{team_id}/experiments/{experiment_id}/environments/{environment_id}/plants/{plant_id}":{"put":{"tags":["Environments"],"summary":"Add a plant to an environment (arrayUnion)","operationId":"add_plant_to_environment_api_v1_teams__team_id__experiments__experiment_id__environments__environment_id__plants__plant_id__put","parameters":[{"name":"plant_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","title":"Plant Id"}},{"name":"environment_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","title":"Environment Id"}},{"name":"team_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Team ID","title":"Team Id"},"description":"Team ID"},{"name":"experiment_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Experiment ID","title":"Experiment Id"},"description":"Experiment ID"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token.","title":"Authorization"},"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token."},{"name":"firebase-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Legacy dashboard header (Firebase ID token).","title":"Firebase-Token"},"description":"Legacy dashboard header (Firebase ID token)."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnvironmentOut"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"}}},"delete":{"tags":["Environments"],"summary":"Remove a plant from an environment (arrayRemove)","operationId":"remove_plant_from_environment_api_v1_teams__team_id__experiments__experiment_id__environments__environment_id__plants__plant_id__delete","parameters":[{"name":"plant_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","title":"Plant Id"}},{"name":"environment_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","title":"Environment Id"}},{"name":"team_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Team ID","title":"Team Id"},"description":"Team ID"},{"name":"experiment_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Experiment ID","title":"Experiment Id"},"description":"Experiment ID"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token.","title":"Authorization"},"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token."},{"name":"firebase-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Legacy dashboard header (Firebase ID token).","title":"Firebase-Token"},"description":"Legacy dashboard header (Firebase ID token)."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnvironmentOut"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"}}}},"/api/v1/teams/{team_id}/experiments/{experiment_id}/variables":{"get":{"tags":["Variables"],"summary":"List variable definitions","operationId":"list_variables_api_v1_teams__team_id__experiments__experiment_id__variables_get","parameters":[{"name":"team_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Team ID","title":"Team Id"},"description":"Team ID"},{"name":"experiment_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Experiment ID","title":"Experiment Id"},"description":"Experiment ID"},{"name":"domain","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/Domain"},{"type":"null"}],"title":"Domain"}},{"name":"kind","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/Kind"},{"type":"null"}],"title":"Kind"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token.","title":"Authorization"},"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token."},{"name":"firebase-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Legacy dashboard header (Firebase ID token).","title":"Firebase-Token"},"description":"Legacy dashboard header (Firebase ID token)."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/VariableOut"},"title":"Response List Variables Api V1 Teams  Team Id  Experiments  Experiment Id  Variables Get"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"}}},"post":{"tags":["Variables"],"summary":"Create variables","operationId":"create_variables_api_v1_teams__team_id__experiments__experiment_id__variables_post","parameters":[{"name":"team_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Team ID","title":"Team Id"},"description":"Team ID"},{"name":"experiment_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Experiment ID","title":"Experiment Id"},"description":"Experiment ID"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token.","title":"Authorization"},"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token."},{"name":"firebase-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Legacy dashboard header (Firebase ID token).","title":"Firebase-Token"},"description":"Legacy dashboard header (Firebase ID token)."},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"description":"Optional client-generated key making this POST safe to retry.","title":"Idempotency-Key"},"description":"Optional client-generated key making this POST safe to retry."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VariablesCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/VariableOut"},"title":"Response Create Variables Api V1 Teams  Team Id  Experiments  Experiment Id  Variables Post"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"}}}},"/api/v1/teams/{team_id}/experiments/{experiment_id}/variables/{variable_id}":{"get":{"tags":["Variables"],"summary":"Get a variable definition","operationId":"get_variable_api_v1_teams__team_id__experiments__experiment_id__variables__variable_id__get","parameters":[{"name":"variable_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","title":"Variable Id"}},{"name":"team_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Team ID","title":"Team Id"},"description":"Team ID"},{"name":"experiment_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Experiment ID","title":"Experiment Id"},"description":"Experiment ID"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token.","title":"Authorization"},"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token."},{"name":"firebase-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Legacy dashboard header (Firebase ID token).","title":"Firebase-Token"},"description":"Legacy dashboard header (Firebase ID token)."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VariableOut"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"}}},"patch":{"tags":["Variables"],"summary":"Update a variable definition","operationId":"update_variable_api_v1_teams__team_id__experiments__experiment_id__variables__variable_id__patch","parameters":[{"name":"variable_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","title":"Variable Id"}},{"name":"team_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Team ID","title":"Team Id"},"description":"Team ID"},{"name":"experiment_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Experiment ID","title":"Experiment Id"},"description":"Experiment ID"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token.","title":"Authorization"},"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token."},{"name":"firebase-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Legacy dashboard header (Firebase ID token).","title":"Firebase-Token"},"description":"Legacy dashboard header (Firebase ID token)."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VariableUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VariableOut"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"}}},"delete":{"tags":["Variables"],"summary":"Delete a variable definition (values are left in place, as in the dashboard)","operationId":"delete_variable_api_v1_teams__team_id__experiments__experiment_id__variables__variable_id__delete","parameters":[{"name":"variable_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","title":"Variable Id"}},{"name":"team_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Team ID","title":"Team Id"},"description":"Team ID"},{"name":"experiment_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Experiment ID","title":"Experiment Id"},"description":"Experiment ID"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token.","title":"Authorization"},"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token."},{"name":"firebase-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Legacy dashboard header (Firebase ID token).","title":"Firebase-Token"},"description":"Legacy dashboard header (Firebase ID token)."}],"responses":{"204":{"description":"Successful Response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"}}}},"/api/v1/teams/{team_id}/experiments/{experiment_id}/timestamps":{"get":{"tags":["Timestamps"],"summary":"List timestamps (chronological)","operationId":"list_timestamps_api_v1_teams__team_id__experiments__experiment_id__timestamps_get","parameters":[{"name":"team_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Team ID","title":"Team Id"},"description":"Team ID"},{"name":"experiment_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Experiment ID","title":"Experiment Id"},"description":"Experiment ID"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token.","title":"Authorization"},"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token."},{"name":"firebase-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Legacy dashboard header (Firebase ID token).","title":"Firebase-Token"},"description":"Legacy dashboard header (Firebase ID token)."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/TimestampOut"},"title":"Response List Timestamps Api V1 Teams  Team Id  Experiments  Experiment Id  Timestamps Get"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"}}},"post":{"tags":["Timestamps"],"summary":"Create timestamps (adds empty time-series slots to every plant and environment)","operationId":"create_timestamps_api_v1_teams__team_id__experiments__experiment_id__timestamps_post","parameters":[{"name":"team_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Team ID","title":"Team Id"},"description":"Team ID"},{"name":"experiment_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Experiment ID","title":"Experiment Id"},"description":"Experiment ID"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token.","title":"Authorization"},"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token."},{"name":"firebase-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Legacy dashboard header (Firebase ID token).","title":"Firebase-Token"},"description":"Legacy dashboard header (Firebase ID token)."},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"description":"Optional client-generated key making this POST safe to retry.","title":"Idempotency-Key"},"description":"Optional client-generated key making this POST safe to retry."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TimestampsCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/TimestampOut"},"title":"Response Create Timestamps Api V1 Teams  Team Id  Experiments  Experiment Id  Timestamps Post"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"}}}},"/api/v1/teams/{team_id}/experiments/{experiment_id}/timestamps/{timestamp_id}":{"patch":{"tags":["Timestamps"],"summary":"Rename / re-date a timestamp","operationId":"update_timestamp_api_v1_teams__team_id__experiments__experiment_id__timestamps__timestamp_id__patch","parameters":[{"name":"timestamp_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","title":"Timestamp Id"}},{"name":"team_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Team ID","title":"Team Id"},"description":"Team ID"},{"name":"experiment_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Experiment ID","title":"Experiment Id"},"description":"Experiment ID"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token.","title":"Authorization"},"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token."},{"name":"firebase-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Legacy dashboard header (Firebase ID token).","title":"Firebase-Token"},"description":"Legacy dashboard header (Firebase ID token)."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TimestampUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TimestampOut"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"}}},"delete":{"tags":["Timestamps"],"summary":"Delete a timestamp (values are left in place, as in the dashboard)","operationId":"delete_timestamp_api_v1_teams__team_id__experiments__experiment_id__timestamps__timestamp_id__delete","parameters":[{"name":"timestamp_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","title":"Timestamp Id"}},{"name":"team_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Team ID","title":"Team Id"},"description":"Team ID"},{"name":"experiment_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Experiment ID","title":"Experiment Id"},"description":"Experiment ID"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token.","title":"Authorization"},"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token."},{"name":"firebase-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Legacy dashboard header (Firebase ID token).","title":"Firebase-Token"},"description":"Legacy dashboard header (Firebase ID token)."}],"responses":{"204":{"description":"Successful Response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"}}}},"/api/v1/teams/{team_id}/experiments/{experiment_id}/data":{"get":{"tags":["Data"],"summary":"Read values in long format (filterable)","operationId":"read_values_api_v1_teams__team_id__experiments__experiment_id__data_get","parameters":[{"name":"team_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Team ID","title":"Team Id"},"description":"Team ID"},{"name":"experiment_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Experiment ID","title":"Experiment Id"},"description":"Experiment ID"},{"name":"domain","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/Domain"},{"type":"null"}],"title":"Domain"}},{"name":"kind","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/Kind"},{"type":"null"}],"title":"Kind"}},{"name":"entity_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$"},{"type":"null"}],"title":"Entity Id"}},{"name":"variable_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$"},{"type":"null"}],"title":"Variable Id"}},{"name":"timestamp_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$"},{"type":"null"}],"title":"Timestamp Id"}},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":1},{"type":"null"}],"description":"Page size (default 50, max 500).","title":"Limit"},"description":"Page size (default 50, max 500)."},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":1024},{"type":"null"}],"description":"Opaque cursor from a previous page's next_cursor.","title":"Cursor"},"description":"Opaque cursor from a previous page's next_cursor."},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token.","title":"Authorization"},"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token."},{"name":"firebase-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Legacy dashboard header (Firebase ID token).","title":"Firebase-Token"},"description":"Legacy dashboard header (Firebase ID token)."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_DataPoint_"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"}}}},"/api/v1/teams/{team_id}/experiments/{experiment_id}/data/values":{"post":{"tags":["Data"],"summary":"Write or delete values in bulk (atomic, last-write-wins like the dashboard)","operationId":"write_values_api_v1_teams__team_id__experiments__experiment_id__data_values_post","parameters":[{"name":"team_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Team ID","title":"Team Id"},"description":"Team ID"},{"name":"experiment_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Experiment ID","title":"Experiment Id"},"description":"Experiment ID"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token.","title":"Authorization"},"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token."},{"name":"firebase-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Legacy dashboard header (Firebase ID token).","title":"Firebase-Token"},"description":"Legacy dashboard header (Firebase ID token)."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValuesWrite"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteResult"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"}}}},"/api/v1/teams/{team_id}/experiments/{experiment_id}/data/imported":{"get":{"tags":["Data"],"summary":"Read AI-import data points (plantData subcollection, read-only)","operationId":"read_imported_api_v1_teams__team_id__experiments__experiment_id__data_imported_get","parameters":[{"name":"team_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Team ID","title":"Team Id"},"description":"Team ID"},{"name":"experiment_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Experiment ID","title":"Experiment Id"},"description":"Experiment ID"},{"name":"plant_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$"},{"type":"null"}],"title":"Plant Id"}},{"name":"environment_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$"},{"type":"null"}],"title":"Environment Id"}},{"name":"variable_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$"},{"type":"null"}],"title":"Variable Id"}},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":1},{"type":"null"}],"description":"Page size (default 50, max 500).","title":"Limit"},"description":"Page size (default 50, max 500)."},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":1024},{"type":"null"}],"description":"Opaque cursor from a previous page's next_cursor.","title":"Cursor"},"description":"Opaque cursor from a previous page's next_cursor."},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token.","title":"Authorization"},"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token."},{"name":"firebase-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Legacy dashboard header (Firebase ID token).","title":"Firebase-Token"},"description":"Legacy dashboard header (Firebase ID token)."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_ImportedPoint_"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"}}}},"/api/v1/teams/{team_id}/experiments/{experiment_id}/files":{"get":{"tags":["Files"],"summary":"List files, images and folders","operationId":"list_files_api_v1_teams__team_id__experiments__experiment_id__files_get","parameters":[{"name":"team_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Team ID","title":"Team Id"},"description":"Team ID"},{"name":"experiment_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Experiment ID","title":"Experiment Id"},"description":"Experiment ID"},{"name":"parent_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$"},{"type":"null"}],"description":"Direct children of this folder.","title":"Parent Id"},"description":"Direct children of this folder."},{"name":"root","in":"query","required":false,"schema":{"type":"boolean","description":"Only top-level nodes (parent_id null).","default":false,"title":"Root"},"description":"Only top-level nodes (parent_id null)."},{"name":"type","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^(file|image|folder|model3d)$"},{"type":"null"}],"title":"Type"}},{"name":"plant_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$"},{"type":"null"}],"title":"Plant Id"}},{"name":"plant_tag","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"},"description":"Repeatable: nodes linked to a plant carrying any of these tags (case-insensitive).","title":"Plant Tag"},"description":"Repeatable: nodes linked to a plant carrying any of these tags (case-insensitive)."},{"name":"environment_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$"},{"type":"null"}],"title":"Environment Id"}},{"name":"timestamp_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$"},{"type":"null"}],"title":"Timestamp Id"}},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":1},{"type":"null"}],"description":"Page size (default 50, max 500).","title":"Limit"},"description":"Page size (default 50, max 500)."},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":1024},{"type":"null"}],"description":"Opaque cursor from a previous page's next_cursor.","title":"Cursor"},"description":"Opaque cursor from a previous page's next_cursor."},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token.","title":"Authorization"},"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token."},{"name":"firebase-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Legacy dashboard header (Firebase ID token).","title":"Firebase-Token"},"description":"Legacy dashboard header (Firebase ID token)."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_FileOut_"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"}}},"post":{"tags":["Files"],"summary":"Upload a file (multipart: `file` + optional `metadata` JSON and `parent_id`)","operationId":"upload_file_api_v1_teams__team_id__experiments__experiment_id__files_post","parameters":[{"name":"team_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Team ID","title":"Team Id"},"description":"Team ID"},{"name":"experiment_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Experiment ID","title":"Experiment Id"},"description":"Experiment ID"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token.","title":"Authorization"},"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token."},{"name":"firebase-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Legacy dashboard header (Firebase ID token).","title":"Firebase-Token"},"description":"Legacy dashboard header (Firebase ID token)."},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"description":"Optional client-generated key making this POST safe to retry.","title":"Idempotency-Key"},"description":"Optional client-generated key making this POST safe to retry."}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_file_api_v1_teams__team_id__experiments__experiment_id__files_post"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FileOut"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"}}}},"/api/v1/teams/{team_id}/experiments/{experiment_id}/files/select":{"post":{"tags":["Files"],"summary":"Select images by plant tags, plants, environments, timestamps and upload time","description":"A query with a body (read-only): the same matching that ``POST .../pipeline-runs`` applies to its\n``selection``, so the dashboard's run dialog can preview exactly what would run. Empty filters match\nevery image; external-storage images are never included.","operationId":"select_files_api_v1_teams__team_id__experiments__experiment_id__files_select_post","parameters":[{"name":"team_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Team ID","title":"Team Id"},"description":"Team ID"},{"name":"experiment_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Experiment ID","title":"Experiment Id"},"description":"Experiment ID"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token.","title":"Authorization"},"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token."},{"name":"firebase-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Legacy dashboard header (Firebase ID token).","title":"Firebase-Token"},"description":"Legacy dashboard header (Firebase ID token)."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImageFilters"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Selection"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"}}}},"/api/v1/teams/{team_id}/experiments/{experiment_id}/files/{file_id}":{"get":{"tags":["Files"],"summary":"Get a file node","operationId":"get_file_api_v1_teams__team_id__experiments__experiment_id__files__file_id__get","parameters":[{"name":"file_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","title":"File Id"}},{"name":"team_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Team ID","title":"Team Id"},"description":"Team ID"},{"name":"experiment_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Experiment ID","title":"Experiment Id"},"description":"Experiment ID"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token.","title":"Authorization"},"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token."},{"name":"firebase-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Legacy dashboard header (Firebase ID token).","title":"Firebase-Token"},"description":"Legacy dashboard header (Firebase ID token)."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FileOut"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"}}},"patch":{"tags":["Files"],"summary":"Rename, move or edit file metadata/links","operationId":"update_file_api_v1_teams__team_id__experiments__experiment_id__files__file_id__patch","parameters":[{"name":"file_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","title":"File Id"}},{"name":"team_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Team ID","title":"Team Id"},"description":"Team ID"},{"name":"experiment_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Experiment ID","title":"Experiment Id"},"description":"Experiment ID"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token.","title":"Authorization"},"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token."},{"name":"firebase-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Legacy dashboard header (Firebase ID token).","title":"Firebase-Token"},"description":"Legacy dashboard header (Firebase ID token)."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FileUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FileOut"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"}}},"delete":{"tags":["Files"],"summary":"Delete a file or folder (recursively), including stored blobs and thumbnails","operationId":"delete_file_api_v1_teams__team_id__experiments__experiment_id__files__file_id__delete","parameters":[{"name":"file_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","title":"File Id"}},{"name":"team_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Team ID","title":"Team Id"},"description":"Team ID"},{"name":"experiment_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Experiment ID","title":"Experiment Id"},"description":"Experiment ID"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token.","title":"Authorization"},"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token."},{"name":"firebase-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Legacy dashboard header (Firebase ID token).","title":"Firebase-Token"},"description":"Legacy dashboard header (Firebase ID token)."}],"responses":{"204":{"description":"Successful Response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"}}}},"/api/v1/teams/{team_id}/experiments/{experiment_id}/files/{file_id}/download-url":{"get":{"tags":["Files"],"summary":"Short-lived signed download URL (original or a variant file)","operationId":"download_url_api_v1_teams__team_id__experiments__experiment_id__files__file_id__download_url_get","parameters":[{"name":"file_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","title":"File Id"}},{"name":"team_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Team ID","title":"Team Id"},"description":"Team ID"},{"name":"experiment_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Experiment ID","title":"Experiment Id"},"description":"Experiment ID"},{"name":"variant_path","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":1024},{"type":"null"}],"description":"storagePath of one of the node's variant files.","title":"Variant Path"},"description":"storagePath of one of the node's variant files."},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token.","title":"Authorization"},"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token."},{"name":"firebase-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Legacy dashboard header (Firebase ID token).","title":"Firebase-Token"},"description":"Legacy dashboard header (Firebase ID token)."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DownloadUrl"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"}}}},"/api/v1/teams/{team_id}/experiments/{experiment_id}/files/download-urls":{"post":{"tags":["Files"],"summary":"Signed download URLs for many files (per-item errors, never all-or-nothing)","operationId":"batch_download_urls_api_v1_teams__team_id__experiments__experiment_id__files_download_urls_post","parameters":[{"name":"team_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Team ID","title":"Team Id"},"description":"Team ID"},{"name":"experiment_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Experiment ID","title":"Experiment Id"},"description":"Experiment ID"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token.","title":"Authorization"},"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token."},{"name":"firebase-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Legacy dashboard header (Firebase ID token).","title":"Firebase-Token"},"description":"Legacy dashboard header (Firebase ID token)."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchDownload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/BatchDownloadItem"},"title":"Response Batch Download Urls Api V1 Teams  Team Id  Experiments  Experiment Id  Files Download Urls Post"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"}}}},"/api/v1/teams/{team_id}/experiments/{experiment_id}/files/folders":{"post":{"tags":["Files"],"summary":"Create a folder","operationId":"create_folder_api_v1_teams__team_id__experiments__experiment_id__files_folders_post","parameters":[{"name":"team_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Team ID","title":"Team Id"},"description":"Team ID"},{"name":"experiment_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Experiment ID","title":"Experiment Id"},"description":"Experiment ID"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token.","title":"Authorization"},"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token."},{"name":"firebase-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Legacy dashboard header (Firebase ID token).","title":"Firebase-Token"},"description":"Legacy dashboard header (Firebase ID token)."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FolderCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FileOut"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"}}}},"/api/v1/teams/{team_id}/experiments/{experiment_id}/files/remote":{"post":{"tags":["Files"],"summary":"Add files that stay where they are (a URL instead of an upload)","description":"Each file becomes an ordinary FileNode (same fields as an upload) with ``url`` in place of\n``storagePath``. A URL that is already in this experiment is returned as-is rather than duplicated,\nso re-registering a folder is safe; change links or the URL with PATCH. Thumbnails of ``s3://`` and\n``http(s)://`` images are generated in the background right after this call (sources up to 10 MB); a\nsource Watney cannot read simply has no thumbnail until ``PUT .../thumbnail`` provides one.","operationId":"add_remote_files_api_v1_teams__team_id__experiments__experiment_id__files_remote_post","parameters":[{"name":"team_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Team ID","title":"Team Id"},"description":"Team ID"},{"name":"experiment_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Experiment ID","title":"Experiment Id"},"description":"Experiment ID"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token.","title":"Authorization"},"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token."},{"name":"firebase-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Legacy dashboard header (Firebase ID token).","title":"Firebase-Token"},"description":"Legacy dashboard header (Firebase ID token)."},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"description":"Optional client-generated key making this POST safe to retry.","title":"Idempotency-Key"},"description":"Optional client-generated key making this POST safe to retry."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RemoteFilesCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/RemoteFileResult"},"title":"Response Add Remote Files Api V1 Teams  Team Id  Experiments  Experiment Id  Files Remote Post"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"}}}},"/api/v1/teams/{team_id}/experiments/{experiment_id}/files/{file_id}/thumbnail":{"put":{"tags":["Files"],"summary":"Set a remote image's thumbnail (stored in Watney like an upload's _200x200)","description":"Whoever can read the original (e.g. the tool next to it) sends a downscaled copy; the server re-encodes\nit to fit 200x200 and stores it at ``teams/{team}/experiments/{experiment}/{file_id}_200x200``, tagged so\nthe Resize Images extension leaves it alone. ``source`` is recorded as ``metadata.thumbnailSource`` so a\nclient can tell later which content the stored thumbnail shows; an upload without it removes the field.","operationId":"put_thumbnail_api_v1_teams__team_id__experiments__experiment_id__files__file_id__thumbnail_put","parameters":[{"name":"file_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","title":"File Id"}},{"name":"team_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Team ID","title":"Team Id"},"description":"Team ID"},{"name":"experiment_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Experiment ID","title":"Experiment Id"},"description":"Experiment ID"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token.","title":"Authorization"},"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token."},{"name":"firebase-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Legacy dashboard header (Firebase ID token).","title":"Firebase-Token"},"description":"Legacy dashboard header (Firebase ID token)."}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_put_thumbnail_api_v1_teams__team_id__experiments__experiment_id__files__file_id__thumbnail_put"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FileOut"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"}}}},"/api/v1/teams/{team_id}/experiments/{experiment_id}/files/{file_id}/variants":{"post":{"tags":["Files"],"summary":"Upload a custom variant (one or more files) for an image","operationId":"upload_variant_api_v1_teams__team_id__experiments__experiment_id__files__file_id__variants_post","parameters":[{"name":"file_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","title":"File Id"}},{"name":"team_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Team ID","title":"Team Id"},"description":"Team ID"},{"name":"experiment_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Experiment ID","title":"Experiment Id"},"description":"Experiment ID"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token.","title":"Authorization"},"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token."},{"name":"firebase-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Legacy dashboard header (Firebase ID token).","title":"Firebase-Token"},"description":"Legacy dashboard header (Firebase ID token)."},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"description":"Optional client-generated key making this POST safe to retry.","title":"Idempotency-Key"},"description":"Optional client-generated key making this POST safe to retry."}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_variant_api_v1_teams__team_id__experiments__experiment_id__files__file_id__variants_post"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FileOut"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"}}}},"/api/v1/teams/{team_id}/experiments/{experiment_id}/files/{file_id}/variant-files":{"delete":{"tags":["Files"],"summary":"Delete one variant file (empty variants are removed, as in the dashboard)","operationId":"delete_variant_file_api_v1_teams__team_id__experiments__experiment_id__files__file_id__variant_files_delete","parameters":[{"name":"file_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","title":"File Id"}},{"name":"team_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Team ID","title":"Team Id"},"description":"Team ID"},{"name":"experiment_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Experiment ID","title":"Experiment Id"},"description":"Experiment ID"},{"name":"storage_path","in":"query","required":true,"schema":{"type":"string","maxLength":1024,"title":"Storage Path"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token.","title":"Authorization"},"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token."},{"name":"firebase-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Legacy dashboard header (Firebase ID token).","title":"Firebase-Token"},"description":"Legacy dashboard header (Firebase ID token)."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FileOut"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"}}}},"/api/v1/teams/{team_id}/experiments/{experiment_id}/files/{file_id}/detect-markers":{"post":{"tags":["Files"],"summary":"Detect the ArUco box marker in an image and link the image to the box's plants","description":"Writes ``metadata.markerDetection`` (status ``linked``, ``confirmed``, ``mismatch``, ``none``,\n``ambiguous``, ``unverified``, ``unknown_box``, ``no_box_variable``, ``no_plant`` or ``error``) and, for\n``linked`` only, ``plantIds`` (+ ``environmentIds`` when the image has none).","operationId":"detect_markers_api_v1_teams__team_id__experiments__experiment_id__files__file_id__detect_markers_post","parameters":[{"name":"file_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","title":"File Id"}},{"name":"team_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Team ID","title":"Team Id"},"description":"Team ID"},{"name":"experiment_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Experiment ID","title":"Experiment Id"},"description":"Experiment ID"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token.","title":"Authorization"},"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token."},{"name":"firebase-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Legacy dashboard header (Firebase ID token).","title":"Firebase-Token"},"description":"Legacy dashboard header (Firebase ID token)."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DetectionOut"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"}}}},"/api/v1/teams/{team_id}/experiments/{experiment_id}/files/detect-markers":{"post":{"tags":["Files"],"summary":"Detect ArUco box markers in up to 25 images (per-file errors, never all-or-nothing)","operationId":"detect_markers_batch_api_v1_teams__team_id__experiments__experiment_id__files_detect_markers_post","parameters":[{"name":"team_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Team ID","title":"Team Id"},"description":"Team ID"},{"name":"experiment_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Experiment ID","title":"Experiment Id"},"description":"Experiment ID"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token.","title":"Authorization"},"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token."},{"name":"firebase-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Legacy dashboard header (Firebase ID token).","title":"Firebase-Token"},"description":"Legacy dashboard header (Firebase ID token)."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchOut"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"}}}},"/api/v1/teams/{team_id}/experiments/{experiment_id}/files/{file_id}/segmentation/points":{"post":{"tags":["Segmentation"],"summary":"Segment by point/box prompts (Roboflow SAM)","operationId":"segment_points_api_v1_teams__team_id__experiments__experiment_id__files__file_id__segmentation_points_post","parameters":[{"name":"file_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","title":"File Id"}},{"name":"team_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Team ID","title":"Team Id"},"description":"Team ID"},{"name":"experiment_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Experiment ID","title":"Experiment Id"},"description":"Experiment ID"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token.","title":"Authorization"},"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token."},{"name":"firebase-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Legacy dashboard header (Firebase ID token).","title":"Firebase-Token"},"description":"Legacy dashboard header (Firebase ID token)."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PointsIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"}}}},"/api/v1/teams/{team_id}/experiments/{experiment_id}/files/{file_id}/segmentation/text":{"post":{"tags":["Segmentation"],"summary":"Segment by text prompt (Roboflow SAM)","operationId":"segment_text_api_v1_teams__team_id__experiments__experiment_id__files__file_id__segmentation_text_post","parameters":[{"name":"file_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","title":"File Id"}},{"name":"team_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Team ID","title":"Team Id"},"description":"Team ID"},{"name":"experiment_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Experiment ID","title":"Experiment Id"},"description":"Experiment ID"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token.","title":"Authorization"},"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token."},{"name":"firebase-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Legacy dashboard header (Firebase ID token).","title":"Firebase-Token"},"description":"Legacy dashboard header (Firebase ID token)."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TextIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"}}}},"/api/v1/teams/{team_id}/experiments/{experiment_id}/files/{file_id}/segmentation/manual":{"post":{"tags":["Segmentation"],"summary":"Save a manual COCO annotation as a variant","operationId":"segment_manual_api_v1_teams__team_id__experiments__experiment_id__files__file_id__segmentation_manual_post","parameters":[{"name":"file_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","title":"File Id"}},{"name":"team_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Team ID","title":"Team Id"},"description":"Team ID"},{"name":"experiment_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Experiment ID","title":"Experiment Id"},"description":"Experiment ID"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token.","title":"Authorization"},"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token."},{"name":"firebase-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Legacy dashboard header (Firebase ID token).","title":"Firebase-Token"},"description":"Legacy dashboard header (Firebase ID token)."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ManualIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"}}}},"/api/v1/teams/{team_id}/experiments/{experiment_id}/notebook":{"get":{"tags":["Notebooks & charts"],"summary":"Get the experiment notebook","operationId":"get_notebook_api_v1_teams__team_id__experiments__experiment_id__notebook_get","parameters":[{"name":"team_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Team ID","title":"Team Id"},"description":"Team ID"},{"name":"experiment_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Experiment ID","title":"Experiment Id"},"description":"Experiment ID"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token.","title":"Authorization"},"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token."},{"name":"firebase-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Legacy dashboard header (Firebase ID token).","title":"Firebase-Token"},"description":"Legacy dashboard header (Firebase ID token)."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Notebook"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"}}}},"/api/v1/teams/{team_id}/experiments/{experiment_id}/notebook/items":{"post":{"tags":["Notebooks & charts"],"summary":"Add a notebook item","operationId":"add_item_api_v1_teams__team_id__experiments__experiment_id__notebook_items_post","parameters":[{"name":"team_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Team ID","title":"Team Id"},"description":"Team ID"},{"name":"experiment_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Experiment ID","title":"Experiment Id"},"description":"Experiment ID"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token.","title":"Authorization"},"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token."},{"name":"firebase-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Legacy dashboard header (Firebase ID token).","title":"Firebase-Token"},"description":"Legacy dashboard header (Firebase ID token)."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Notebook"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"}}}},"/api/v1/teams/{team_id}/experiments/{experiment_id}/notebook/items/{item_id}":{"patch":{"tags":["Notebooks & charts"],"summary":"Update a notebook item's fields","operationId":"update_item_api_v1_teams__team_id__experiments__experiment_id__notebook_items__item_id__patch","parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","title":"Item Id"}},{"name":"team_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Team ID","title":"Team Id"},"description":"Team ID"},{"name":"experiment_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Experiment ID","title":"Experiment Id"},"description":"Experiment ID"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token.","title":"Authorization"},"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token."},{"name":"firebase-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Legacy dashboard header (Firebase ID token).","title":"Firebase-Token"},"description":"Legacy dashboard header (Firebase ID token)."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemPatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Notebook"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"}}},"delete":{"tags":["Notebooks & charts"],"summary":"Delete a notebook item (a linked chart document is kept, as in the dashboard)","operationId":"delete_item_api_v1_teams__team_id__experiments__experiment_id__notebook_items__item_id__delete","parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","title":"Item Id"}},{"name":"team_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Team ID","title":"Team Id"},"description":"Team ID"},{"name":"experiment_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Experiment ID","title":"Experiment Id"},"description":"Experiment ID"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token.","title":"Authorization"},"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token."},{"name":"firebase-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Legacy dashboard header (Firebase ID token).","title":"Firebase-Token"},"description":"Legacy dashboard header (Firebase ID token)."}],"responses":{"204":{"description":"Successful Response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"}}}},"/api/v1/teams/{team_id}/experiments/{experiment_id}/notebook/order":{"put":{"tags":["Notebooks & charts"],"summary":"Reorder notebook items","operationId":"reorder_api_v1_teams__team_id__experiments__experiment_id__notebook_order_put","parameters":[{"name":"team_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Team ID","title":"Team Id"},"description":"Team ID"},{"name":"experiment_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Experiment ID","title":"Experiment Id"},"description":"Experiment ID"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token.","title":"Authorization"},"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token."},{"name":"firebase-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Legacy dashboard header (Firebase ID token).","title":"Firebase-Token"},"description":"Legacy dashboard header (Firebase ID token)."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Notebook"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"}}}},"/api/v1/teams/{team_id}/experiments/{experiment_id}/charts":{"get":{"tags":["Notebooks & charts"],"summary":"List chart configurations for this experiment","operationId":"list_charts_api_v1_teams__team_id__experiments__experiment_id__charts_get","parameters":[{"name":"team_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Team ID","title":"Team Id"},"description":"Team ID"},{"name":"experiment_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Experiment ID","title":"Experiment Id"},"description":"Experiment ID"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token.","title":"Authorization"},"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token."},{"name":"firebase-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Legacy dashboard header (Firebase ID token).","title":"Firebase-Token"},"description":"Legacy dashboard header (Firebase ID token)."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"}}}},"/api/v1/teams/{team_id}/experiments/{experiment_id}/charts/{chart_id}":{"get":{"tags":["Notebooks & charts"],"summary":"Get a chart configuration","operationId":"get_chart_api_v1_teams__team_id__experiments__experiment_id__charts__chart_id__get","parameters":[{"name":"chart_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","title":"Chart Id"}},{"name":"team_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Team ID","title":"Team Id"},"description":"Team ID"},{"name":"experiment_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Experiment ID","title":"Experiment Id"},"description":"Experiment ID"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token.","title":"Authorization"},"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token."},{"name":"firebase-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Legacy dashboard header (Firebase ID token).","title":"Firebase-Token"},"description":"Legacy dashboard header (Firebase ID token)."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"}}},"put":{"tags":["Notebooks & charts"],"summary":"Create or replace a chart configuration (chart id = notebook item id)","operationId":"put_chart_api_v1_teams__team_id__experiments__experiment_id__charts__chart_id__put","parameters":[{"name":"chart_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","title":"Chart Id"}},{"name":"team_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Team ID","title":"Team Id"},"description":"Team ID"},{"name":"experiment_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Experiment ID","title":"Experiment Id"},"description":"Experiment ID"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token.","title":"Authorization"},"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token."},{"name":"firebase-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Legacy dashboard header (Firebase ID token).","title":"Firebase-Token"},"description":"Legacy dashboard header (Firebase ID token)."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChartIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"}}}},"/api/v1/teams/{team_id}/pipeline-scripts":{"get":{"tags":["Pipelines"],"summary":"List the team's Python pipeline scripts","operationId":"list_scripts_api_v1_teams__team_id__pipeline_scripts_get","parameters":[{"name":"team_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Team ID","title":"Team Id"},"description":"Team ID"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token.","title":"Authorization"},"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token."},{"name":"firebase-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Legacy dashboard header (Firebase ID token).","title":"Firebase-Token"},"description":"Legacy dashboard header (Firebase ID token)."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ScriptOut"},"title":"Response List Scripts Api V1 Teams  Team Id  Pipeline Scripts Get"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"}}},"post":{"tags":["Pipelines"],"summary":"Create a script (first code version)","operationId":"create_script_api_v1_teams__team_id__pipeline_scripts_post","parameters":[{"name":"team_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Team ID","title":"Team Id"},"description":"Team ID"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token.","title":"Authorization"},"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token."},{"name":"firebase-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Legacy dashboard header (Firebase ID token).","title":"Firebase-Token"},"description":"Legacy dashboard header (Firebase ID token)."},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"description":"Optional client-generated key making this POST safe to retry.","title":"Idempotency-Key"},"description":"Optional client-generated key making this POST safe to retry."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScriptCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScriptOut"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"}}}},"/api/v1/teams/{team_id}/pipeline-scripts/{script_id}":{"get":{"tags":["Pipelines"],"summary":"Get a script with its current code","operationId":"get_script_api_v1_teams__team_id__pipeline_scripts__script_id__get","parameters":[{"name":"script_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","title":"Script Id"}},{"name":"team_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Team ID","title":"Team Id"},"description":"Team ID"},{"name":"reveal_env_values","in":"query","required":false,"schema":{"type":"boolean","description":"Include environment-variable values.","default":false,"title":"Reveal Env Values"},"description":"Include environment-variable values."},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token.","title":"Authorization"},"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token."},{"name":"firebase-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Legacy dashboard header (Firebase ID token).","title":"Firebase-Token"},"description":"Legacy dashboard header (Firebase ID token)."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"}}},"patch":{"tags":["Pipelines"],"summary":"Rename / describe a script","operationId":"update_script_api_v1_teams__team_id__pipeline_scripts__script_id__patch","parameters":[{"name":"script_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","title":"Script Id"}},{"name":"team_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Team ID","title":"Team Id"},"description":"Team ID"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token.","title":"Authorization"},"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token."},{"name":"firebase-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Legacy dashboard header (Firebase ID token).","title":"Firebase-Token"},"description":"Legacy dashboard header (Firebase ID token)."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScriptUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScriptOut"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"}}},"delete":{"tags":["Pipelines"],"summary":"Remove a script from the team library (code versions are kept, as in the dashboard)","operationId":"delete_script_api_v1_teams__team_id__pipeline_scripts__script_id__delete","parameters":[{"name":"script_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","title":"Script Id"}},{"name":"team_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Team ID","title":"Team Id"},"description":"Team ID"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token.","title":"Authorization"},"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token."},{"name":"firebase-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Legacy dashboard header (Firebase ID token).","title":"Firebase-Token"},"description":"Legacy dashboard header (Firebase ID token)."}],"responses":{"204":{"description":"Successful Response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"}}}},"/api/v1/teams/{team_id}/pipeline-code/{code_id}":{"get":{"tags":["Pipelines"],"summary":"Get a specific code version (must belong to one of the team's scripts)","operationId":"get_code_version_api_v1_teams__team_id__pipeline_code__code_id__get","parameters":[{"name":"code_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","title":"Code Id"}},{"name":"team_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Team ID","title":"Team Id"},"description":"Team ID"},{"name":"reveal_env_values","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Reveal Env Values"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token.","title":"Authorization"},"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token."},{"name":"firebase-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Legacy dashboard header (Firebase ID token).","title":"Firebase-Token"},"description":"Legacy dashboard header (Firebase ID token)."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodeVersion"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"}}}},"/api/v1/teams/{team_id}/pipeline-scripts/{script_id}/versions":{"post":{"tags":["Pipelines"],"summary":"Save a new code version (becomes current)","operationId":"create_version_api_v1_teams__team_id__pipeline_scripts__script_id__versions_post","parameters":[{"name":"script_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","title":"Script Id"}},{"name":"team_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Team ID","title":"Team Id"},"description":"Team ID"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token.","title":"Authorization"},"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token."},{"name":"firebase-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Legacy dashboard header (Firebase ID token).","title":"Firebase-Token"},"description":"Legacy dashboard header (Firebase ID token)."},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"description":"Optional client-generated key making this POST safe to retry.","title":"Idempotency-Key"},"description":"Optional client-generated key making this POST safe to retry."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VersionCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScriptOut"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"}}}},"/api/v1/teams/{team_id}/experiments/{experiment_id}/pipeline-runs":{"get":{"tags":["Pipelines"],"summary":"List pipeline runs for an experiment (newest first)","operationId":"list_runs_api_v1_teams__team_id__experiments__experiment_id__pipeline_runs_get","parameters":[{"name":"team_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Team ID","title":"Team Id"},"description":"Team ID"},{"name":"experiment_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Experiment ID","title":"Experiment Id"},"description":"Experiment ID"},{"name":"include_hidden","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Hidden"}},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":1},{"type":"null"}],"description":"Page size (default 50, max 500).","title":"Limit"},"description":"Page size (default 50, max 500)."},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":1024},{"type":"null"}],"description":"Opaque cursor from a previous page's next_cursor.","title":"Cursor"},"description":"Opaque cursor from a previous page's next_cursor."},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token.","title":"Authorization"},"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token."},{"name":"firebase-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Legacy dashboard header (Firebase ID token).","title":"Firebase-Token"},"description":"Legacy dashboard header (Firebase ID token)."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_RunOut_"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"}}},"post":{"tags":["Pipelines"],"summary":"Start a batch pipeline run over experiment images","operationId":"start_run_api_v1_teams__team_id__experiments__experiment_id__pipeline_runs_post","parameters":[{"name":"team_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Team ID","title":"Team Id"},"description":"Team ID"},{"name":"experiment_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Experiment ID","title":"Experiment Id"},"description":"Experiment ID"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token.","title":"Authorization"},"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token."},{"name":"firebase-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Legacy dashboard header (Firebase ID token).","title":"Firebase-Token"},"description":"Legacy dashboard header (Firebase ID token)."},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"description":"Optional client-generated key making this POST safe to retry.","title":"Idempotency-Key"},"description":"Optional client-generated key making this POST safe to retry."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunCreate"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"}}}},"/api/v1/teams/{team_id}/experiments/{experiment_id}/pipeline-runs/{run_id}":{"get":{"tags":["Pipelines"],"summary":"Get a pipeline run (status + logs)","operationId":"get_run_api_v1_teams__team_id__experiments__experiment_id__pipeline_runs__run_id__get","parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","title":"Run Id"}},{"name":"team_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Team ID","title":"Team Id"},"description":"Team ID"},{"name":"experiment_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Experiment ID","title":"Experiment Id"},"description":"Experiment ID"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token.","title":"Authorization"},"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token."},{"name":"firebase-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Legacy dashboard header (Firebase ID token).","title":"Firebase-Token"},"description":"Legacy dashboard header (Firebase ID token)."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunOut"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"}}},"patch":{"tags":["Pipelines"],"summary":"Hide/unhide a run","operationId":"update_run_api_v1_teams__team_id__experiments__experiment_id__pipeline_runs__run_id__patch","parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","title":"Run Id"}},{"name":"team_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Team ID","title":"Team Id"},"description":"Team ID"},{"name":"experiment_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Experiment ID","title":"Experiment Id"},"description":"Experiment ID"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token.","title":"Authorization"},"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token."},{"name":"firebase-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Legacy dashboard header (Firebase ID token).","title":"Firebase-Token"},"description":"Legacy dashboard header (Firebase ID token)."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunOut"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"}}}},"/api/v1/teams/{team_id}/experiments/{experiment_id}/pipeline-runs/{run_id}/results":{"get":{"tags":["Pipelines"],"summary":"Run results: output variants per input image","operationId":"get_run_results_api_v1_teams__team_id__experiments__experiment_id__pipeline_runs__run_id__results_get","parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","title":"Run Id"}},{"name":"team_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Team ID","title":"Team Id"},"description":"Team ID"},{"name":"experiment_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Experiment ID","title":"Experiment Id"},"description":"Experiment ID"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token.","title":"Authorization"},"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token."},{"name":"firebase-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Legacy dashboard header (Firebase ID token).","title":"Firebase-Token"},"description":"Legacy dashboard header (Firebase ID token)."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"}}}},"/api/v1/teams/{team_id}/experiments/{experiment_id}/pipeline-scripts/{script_id}/test":{"post":{"tags":["Pipelines"],"summary":"Test a script version on one experiment image via the script runner","operationId":"test_script_api_v1_teams__team_id__experiments__experiment_id__pipeline_scripts__script_id__test_post","parameters":[{"name":"script_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","title":"Script Id"}},{"name":"team_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Team ID","title":"Team Id"},"description":"Team ID"},{"name":"experiment_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Experiment ID","title":"Experiment Id"},"description":"Experiment ID"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token.","title":"Authorization"},"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token."},{"name":"firebase-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Legacy dashboard header (Firebase ID token).","title":"Firebase-Token"},"description":"Legacy dashboard header (Firebase ID token)."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScriptTest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"}}}},"/api/v1/teams/{team_id}/pipeline-quota":{"get":{"tags":["Pipelines"],"summary":"Pipeline run caps and today's usage for the team","operationId":"get_pipeline_quota_api_v1_teams__team_id__pipeline_quota_get","parameters":[{"name":"team_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Team ID","title":"Team Id"},"description":"Team ID"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token.","title":"Authorization"},"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token."},{"name":"firebase-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Legacy dashboard header (Firebase ID token).","title":"Firebase-Token"},"description":"Legacy dashboard header (Firebase ID token)."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Pipeline Quota Api V1 Teams  Team Id  Pipeline Quota Get"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/teams/{team_id}/experiments/{experiment_id}/pipeline-triggers":{"get":{"tags":["Pipelines"],"summary":"List the experiment's auto-run rules","operationId":"list_triggers_api_v1_teams__team_id__experiments__experiment_id__pipeline_triggers_get","parameters":[{"name":"team_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Team ID","title":"Team Id"},"description":"Team ID"},{"name":"experiment_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Experiment ID","title":"Experiment Id"},"description":"Experiment ID"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token.","title":"Authorization"},"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token."},{"name":"firebase-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Legacy dashboard header (Firebase ID token).","title":"Firebase-Token"},"description":"Legacy dashboard header (Firebase ID token)."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/TriggerOut"},"title":"Response List Triggers Api V1 Teams  Team Id  Experiments  Experiment Id  Pipeline Triggers Get"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"}}},"post":{"tags":["Pipelines"],"summary":"Create an auto-run rule","description":"Images uploaded from now on (`dateUploaded` at or after `since`) that match `filters` are run with the\nscript's current code version, as you, once the matching set has been unchanged for `settle_seconds`\n(at most `max_wait_seconds` after the first new image). `include_existing` also runs what already matches.\nLimits: 5 rules per experiment, 20 per team (422 `too_many_rules`).","operationId":"create_trigger_api_v1_teams__team_id__experiments__experiment_id__pipeline_triggers_post","parameters":[{"name":"team_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Team ID","title":"Team Id"},"description":"Team ID"},{"name":"experiment_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Experiment ID","title":"Experiment Id"},"description":"Experiment ID"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token.","title":"Authorization"},"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token."},{"name":"firebase-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Legacy dashboard header (Firebase ID token).","title":"Firebase-Token"},"description":"Legacy dashboard header (Firebase ID token)."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TriggerCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TriggerOut"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"}}}},"/api/v1/teams/{team_id}/experiments/{experiment_id}/pipeline-triggers/{rule_id}":{"get":{"tags":["Pipelines"],"summary":"Get an auto-run rule (state, counters, last error)","operationId":"get_trigger_api_v1_teams__team_id__experiments__experiment_id__pipeline_triggers__rule_id__get","parameters":[{"name":"rule_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Trigger rule ID","title":"Rule Id"},"description":"Trigger rule ID"},{"name":"team_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Team ID","title":"Team Id"},"description":"Team ID"},{"name":"experiment_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Experiment ID","title":"Experiment Id"},"description":"Experiment ID"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token.","title":"Authorization"},"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token."},{"name":"firebase-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Legacy dashboard header (Firebase ID token).","title":"Firebase-Token"},"description":"Legacy dashboard header (Firebase ID token)."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TriggerOut"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"}}},"patch":{"tags":["Pipelines"],"summary":"Update an auto-run rule","description":"The rule keeps running as its creator; your uid is recorded as `updated_by`. Sending `enabled: true`\nclears `disabled_reason`, `next_attempt_at` and `last_error`, so a rule that disabled itself can be retried\nonce the cause is fixed.","operationId":"update_trigger_api_v1_teams__team_id__experiments__experiment_id__pipeline_triggers__rule_id__patch","parameters":[{"name":"rule_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Trigger rule ID","title":"Rule Id"},"description":"Trigger rule ID"},{"name":"team_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Team ID","title":"Team Id"},"description":"Team ID"},{"name":"experiment_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Experiment ID","title":"Experiment Id"},"description":"Experiment ID"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token.","title":"Authorization"},"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token."},{"name":"firebase-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Legacy dashboard header (Firebase ID token).","title":"Firebase-Token"},"description":"Legacy dashboard header (Firebase ID token)."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TriggerUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TriggerOut"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"}}},"delete":{"tags":["Pipelines"],"summary":"Delete an auto-run rule (and its dispatch record)","operationId":"delete_trigger_api_v1_teams__team_id__experiments__experiment_id__pipeline_triggers__rule_id__delete","parameters":[{"name":"rule_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Trigger rule ID","title":"Rule Id"},"description":"Trigger rule ID"},{"name":"team_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Team ID","title":"Team Id"},"description":"Team ID"},{"name":"experiment_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Experiment ID","title":"Experiment Id"},"description":"Experiment ID"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token.","title":"Authorization"},"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token."},{"name":"firebase-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Legacy dashboard header (Firebase ID token).","title":"Firebase-Token"},"description":"Legacy dashboard header (Firebase ID token)."}],"responses":{"204":{"description":"Successful Response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"}}}},"/api/v1/teams/{team_id}/experiments/{experiment_id}/pipeline-triggers/{rule_id}/evaluate":{"post":{"tags":["Pipelines"],"summary":"Evaluate a rule now (\"Run now\")","description":"Runs the evaluation inline under the rule's lease, skipping the settle wait. A backoff from a quota\nrefusal still applies: its message comes back as `reason`. 409 `evaluation_in_progress` while the poller\nholds the lease; retry in a moment.","operationId":"evaluate_trigger_api_v1_teams__team_id__experiments__experiment_id__pipeline_triggers__rule_id__evaluate_post","parameters":[{"name":"rule_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Trigger rule ID","title":"Rule Id"},"description":"Trigger rule ID"},{"name":"team_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Team ID","title":"Team Id"},"description":"Team ID"},{"name":"experiment_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Experiment ID","title":"Experiment Id"},"description":"Experiment ID"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token.","title":"Authorization"},"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token."},{"name":"firebase-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Legacy dashboard header (Firebase ID token).","title":"Firebase-Token"},"description":"Legacy dashboard header (Firebase ID token)."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EvaluateOut"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Conflict"}}}},"/api/v1/teams/{team_id}/experiments/{experiment_id}/public-page":{"get":{"tags":["Public pages"],"summary":"Get the public page draft config and live status","operationId":"get_public_page_api_v1_teams__team_id__experiments__experiment_id__public_page_get","parameters":[{"name":"team_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Team ID","title":"Team Id"},"description":"Team ID"},{"name":"experiment_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Experiment ID","title":"Experiment Id"},"description":"Experiment ID"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token.","title":"Authorization"},"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token."},{"name":"firebase-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Legacy dashboard header (Firebase ID token).","title":"Firebase-Token"},"description":"Legacy dashboard header (Firebase ID token)."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"}}},"delete":{"tags":["Public pages"],"summary":"Unpublish the public page","operationId":"unpublish_api_v1_teams__team_id__experiments__experiment_id__public_page_delete","parameters":[{"name":"team_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Team ID","title":"Team Id"},"description":"Team ID"},{"name":"experiment_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Experiment ID","title":"Experiment Id"},"description":"Experiment ID"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token.","title":"Authorization"},"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token."},{"name":"firebase-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Legacy dashboard header (Firebase ID token).","title":"Firebase-Token"},"description":"Legacy dashboard header (Firebase ID token)."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"}}}},"/api/v1/teams/{team_id}/experiments/{experiment_id}/public-page/config":{"patch":{"tags":["Public pages"],"summary":"Update the draft config (stats are regenerated, as on dashboard save)","operationId":"update_config_api_v1_teams__team_id__experiments__experiment_id__public_page_config_patch","parameters":[{"name":"team_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Team ID","title":"Team Id"},"description":"Team ID"},{"name":"experiment_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Experiment ID","title":"Experiment Id"},"description":"Experiment ID"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token.","title":"Authorization"},"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token."},{"name":"firebase-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Legacy dashboard header (Firebase ID token).","title":"Firebase-Token"},"description":"Legacy dashboard header (Firebase ID token)."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicConfigUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"}}}},"/api/v1/teams/{team_id}/experiments/{experiment_id}/public-page/publish":{"post":{"tags":["Public pages"],"summary":"Publish (or republish) the public page","operationId":"publish_api_v1_teams__team_id__experiments__experiment_id__public_page_publish_post","parameters":[{"name":"team_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Team ID","title":"Team Id"},"description":"Team ID"},{"name":"experiment_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Experiment ID","title":"Experiment Id"},"description":"Experiment ID"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token.","title":"Authorization"},"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token."},{"name":"firebase-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Legacy dashboard header (Firebase ID token).","title":"Firebase-Token"},"description":"Legacy dashboard header (Firebase ID token)."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"}}}},"/api/v1/teams/{team_id}/experiments/{experiment_id}/exports":{"post":{"tags":["Exports"],"summary":"Start an export (runs in the background)","operationId":"start_export_api_v1_teams__team_id__experiments__experiment_id__exports_post","parameters":[{"name":"team_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Team ID","title":"Team Id"},"description":"Team ID"},{"name":"experiment_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Experiment ID","title":"Experiment Id"},"description":"Experiment ID"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token.","title":"Authorization"},"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token."},{"name":"firebase-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Legacy dashboard header (Firebase ID token).","title":"Firebase-Token"},"description":"Legacy dashboard header (Firebase ID token)."},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"description":"Optional client-generated key making this POST safe to retry.","title":"Idempotency-Key"},"description":"Optional client-generated key making this POST safe to retry."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExportCreate"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExportOut"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"}}}},"/api/v1/teams/{team_id}/experiments/{experiment_id}/exports/{export_id}":{"get":{"tags":["Exports"],"summary":"Export status and download URL","operationId":"get_export_api_v1_teams__team_id__experiments__experiment_id__exports__export_id__get","parameters":[{"name":"export_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","title":"Export Id"}},{"name":"team_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Team ID","title":"Team Id"},"description":"Team ID"},{"name":"experiment_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Experiment ID","title":"Experiment Id"},"description":"Experiment ID"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token.","title":"Authorization"},"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token."},{"name":"firebase-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Legacy dashboard header (Firebase ID token).","title":"Firebase-Token"},"description":"Legacy dashboard header (Firebase ID token)."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExportOut"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"}}}},"/api/v1/teams/{team_id}/experiments/{experiment_id}/import":{"get":{"tags":["AI import"],"summary":"Import session state (status, files, questions, outputs)","operationId":"get_import_session_api_v1_teams__team_id__experiments__experiment_id__import_get","parameters":[{"name":"team_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Team ID","title":"Team Id"},"description":"Team ID"},{"name":"experiment_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Experiment ID","title":"Experiment Id"},"description":"Experiment ID"},{"name":"include_script","in":"query","required":false,"schema":{"type":"boolean","description":"Include the generated parser script.","default":false,"title":"Include Script"},"description":"Include the generated parser script."},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token.","title":"Authorization"},"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token."},{"name":"firebase-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Legacy dashboard header (Firebase ID token).","title":"Firebase-Token"},"description":"Legacy dashboard header (Firebase ID token)."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"}}},"delete":{"tags":["AI import"],"summary":"Clear the import session (as the dashboard's 'clear session')","operationId":"clear_session_api_v1_teams__team_id__experiments__experiment_id__import_delete","parameters":[{"name":"team_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Team ID","title":"Team Id"},"description":"Team ID"},{"name":"experiment_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Experiment ID","title":"Experiment Id"},"description":"Experiment ID"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token.","title":"Authorization"},"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token."},{"name":"firebase-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Legacy dashboard header (Firebase ID token).","title":"Firebase-Token"},"description":"Legacy dashboard header (Firebase ID token)."}],"responses":{"204":{"description":"Successful Response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"}}}},"/api/v1/teams/{team_id}/experiments/{experiment_id}/import/files":{"post":{"tags":["AI import"],"summary":"Upload source files and start an AI import (multipart `files`, optional `directories`)","operationId":"start_import_api_v1_teams__team_id__experiments__experiment_id__import_files_post","parameters":[{"name":"team_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Team ID","title":"Team Id"},"description":"Team ID"},{"name":"experiment_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Experiment ID","title":"Experiment Id"},"description":"Experiment ID"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token.","title":"Authorization"},"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token."},{"name":"firebase-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Legacy dashboard header (Firebase ID token).","title":"Firebase-Token"},"description":"Legacy dashboard header (Firebase ID token)."}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_start_import_api_v1_teams__team_id__experiments__experiment_id__import_files_post"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"}}}},"/api/v1/teams/{team_id}/experiments/{experiment_id}/import/task-status":{"get":{"tags":["AI import"],"summary":"Background task status","operationId":"task_status_api_v1_teams__team_id__experiments__experiment_id__import_task_status_get","parameters":[{"name":"team_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Team ID","title":"Team Id"},"description":"Team ID"},{"name":"experiment_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Experiment ID","title":"Experiment Id"},"description":"Experiment ID"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token.","title":"Authorization"},"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token."},{"name":"firebase-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Legacy dashboard header (Firebase ID token).","title":"Firebase-Token"},"description":"Legacy dashboard header (Firebase ID token)."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"}}}},"/api/v1/teams/{team_id}/experiments/{experiment_id}/import/responses":{"post":{"tags":["AI import"],"summary":"Answer the importer (Q&A loop)","operationId":"answer_api_v1_teams__team_id__experiments__experiment_id__import_responses_post","parameters":[{"name":"team_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Team ID","title":"Team Id"},"description":"Team ID"},{"name":"experiment_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Experiment ID","title":"Experiment Id"},"description":"Experiment ID"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token.","title":"Authorization"},"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token."},{"name":"firebase-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Legacy dashboard header (Firebase ID token).","title":"Firebase-Token"},"description":"Legacy dashboard header (Firebase ID token)."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnswerIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"}}}},"/api/v1/teams/{team_id}/experiments/{experiment_id}/import/data-sample":{"get":{"tags":["AI import"],"summary":"Preview extracted data (plants, variables, timestamps, ...)","operationId":"data_sample_api_v1_teams__team_id__experiments__experiment_id__import_data_sample_get","parameters":[{"name":"team_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Team ID","title":"Team Id"},"description":"Team ID"},{"name":"experiment_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Experiment ID","title":"Experiment Id"},"description":"Experiment ID"},{"name":"type","in":"query","required":true,"schema":{"type":"string","maxLength":50,"title":"Type"}},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":5000,"minimum":1},{"type":"null"}],"title":"Limit"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token.","title":"Authorization"},"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token."},{"name":"firebase-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Legacy dashboard header (Firebase ID token).","title":"Firebase-Token"},"description":"Legacy dashboard header (Firebase ID token)."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"}}}},"/api/v1/teams/{team_id}/experiments/{experiment_id}/import/complete":{"post":{"tags":["AI import"],"summary":"Materialize the extracted data into this experiment","operationId":"complete_api_v1_teams__team_id__experiments__experiment_id__import_complete_post","parameters":[{"name":"team_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Team ID","title":"Team Id"},"description":"Team ID"},{"name":"experiment_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Experiment ID","title":"Experiment Id"},"description":"Experiment ID"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token.","title":"Authorization"},"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token."},{"name":"firebase-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Legacy dashboard header (Firebase ID token).","title":"Firebase-Token"},"description":"Legacy dashboard header (Firebase ID token)."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompleteIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"}}}},"/api/v1/teams/{team_id}/experiments/{experiment_id}/import/{action}":{"post":{"tags":["AI import"],"summary":"Control the session: pause | resume | cancel | restart | manual-review","operationId":"control_api_v1_teams__team_id__experiments__experiment_id__import__action__post","parameters":[{"name":"action","in":"path","required":true,"schema":{"type":"string","title":"Action"}},{"name":"team_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Team ID","title":"Team Id"},"description":"Team ID"},{"name":"experiment_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Experiment ID","title":"Experiment Id"},"description":"Experiment ID"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token.","title":"Authorization"},"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token."},{"name":"firebase-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Legacy dashboard header (Firebase ID token).","title":"Firebase-Token"},"description":"Legacy dashboard header (Firebase ID token)."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"}}}},"/api/v1/teams/{team_id}/portfolios":{"get":{"tags":["Seed portfolios"],"summary":"List the team's seed portfolios","operationId":"list_portfolios_api_v1_teams__team_id__portfolios_get","parameters":[{"name":"team_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Team ID","title":"Team Id"},"description":"Team ID"},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":1},{"type":"null"}],"description":"Page size (default 50, max 500).","title":"Limit"},"description":"Page size (default 50, max 500)."},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":1024},{"type":"null"}],"description":"Opaque cursor from a previous page's next_cursor.","title":"Cursor"},"description":"Opaque cursor from a previous page's next_cursor."},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token.","title":"Authorization"},"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token."},{"name":"firebase-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Legacy dashboard header (Firebase ID token).","title":"Firebase-Token"},"description":"Legacy dashboard header (Firebase ID token)."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"}}},"post":{"tags":["Seed portfolios"],"summary":"Create a portfolio (wizard step 1)","operationId":"create_portfolio_api_v1_teams__team_id__portfolios_post","parameters":[{"name":"team_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Team ID","title":"Team Id"},"description":"Team ID"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token.","title":"Authorization"},"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token."},{"name":"firebase-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Legacy dashboard header (Firebase ID token).","title":"Firebase-Token"},"description":"Legacy dashboard header (Firebase ID token)."},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"description":"Optional client-generated key making this POST safe to retry.","title":"Idempotency-Key"},"description":"Optional client-generated key making this POST safe to retry."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PortfolioCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"}}}},"/api/v1/teams/{team_id}/portfolios/{portfolio_id}":{"get":{"tags":["Seed portfolios"],"summary":"Get a portfolio document","operationId":"get_portfolio_api_v1_teams__team_id__portfolios__portfolio_id__get","parameters":[{"name":"portfolio_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","title":"Portfolio Id"}},{"name":"team_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Team ID","title":"Team Id"},"description":"Team ID"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token.","title":"Authorization"},"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token."},{"name":"firebase-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Legacy dashboard header (Firebase ID token).","title":"Firebase-Token"},"description":"Legacy dashboard header (Firebase ID token)."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"}}},"patch":{"tags":["Seed portfolios"],"summary":"Edit basic info, modeling mode or onboarding step","operationId":"update_portfolio_api_v1_teams__team_id__portfolios__portfolio_id__patch","parameters":[{"name":"portfolio_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","title":"Portfolio Id"}},{"name":"team_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Team ID","title":"Team Id"},"description":"Team ID"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token.","title":"Authorization"},"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token."},{"name":"firebase-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Legacy dashboard header (Firebase ID token).","title":"Firebase-Token"},"description":"Legacy dashboard header (Firebase ID token)."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PortfolioUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"}}}},"/api/v1/teams/{team_id}/portfolios/{portfolio_id}/environments":{"get":{"tags":["Seed portfolios"],"summary":"Environment details (climate, soil, simulation results)","operationId":"list_environment_details_api_v1_teams__team_id__portfolios__portfolio_id__environments_get","parameters":[{"name":"portfolio_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","title":"Portfolio Id"}},{"name":"team_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Team ID","title":"Team Id"},"description":"Team ID"},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":1},{"type":"null"}],"description":"Page size (default 50, max 500).","title":"Limit"},"description":"Page size (default 50, max 500)."},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":1024},{"type":"null"}],"description":"Opaque cursor from a previous page's next_cursor.","title":"Cursor"},"description":"Opaque cursor from a previous page's next_cursor."},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token.","title":"Authorization"},"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token."},{"name":"firebase-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Legacy dashboard header (Firebase ID token).","title":"Firebase-Token"},"description":"Legacy dashboard header (Firebase ID token)."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"}}}},"/api/v1/teams/{team_id}/portfolios/{portfolio_id}/simulation-results":{"get":{"tags":["Seed portfolios"],"summary":"WOFOST simulation results","operationId":"list_simulation_results_api_v1_teams__team_id__portfolios__portfolio_id__simulation_results_get","parameters":[{"name":"portfolio_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","title":"Portfolio Id"}},{"name":"team_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Team ID","title":"Team Id"},"description":"Team ID"},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":1},{"type":"null"}],"description":"Page size (default 50, max 500).","title":"Limit"},"description":"Page size (default 50, max 500)."},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":1024},{"type":"null"}],"description":"Opaque cursor from a previous page's next_cursor.","title":"Cursor"},"description":"Opaque cursor from a previous page's next_cursor."},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token.","title":"Authorization"},"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token."},{"name":"firebase-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Legacy dashboard header (Firebase ID token).","title":"Firebase-Token"},"description":"Legacy dashboard header (Firebase ID token)."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"}}}},"/api/v1/teams/{team_id}/portfolios/{portfolio_id}/heatmaps/{heatmap_type}":{"get":{"tags":["Seed portfolios"],"summary":"Cached activity/churn heatmap","operationId":"get_heatmap_api_v1_teams__team_id__portfolios__portfolio_id__heatmaps__heatmap_type__get","parameters":[{"name":"heatmap_type","in":"path","required":true,"schema":{"type":"string","pattern":"^(activity|churn)$","title":"Heatmap Type"}},{"name":"portfolio_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","title":"Portfolio Id"}},{"name":"team_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Team ID","title":"Team Id"},"description":"Team ID"},{"name":"variety_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$"},{"type":"null"}],"title":"Variety Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token.","title":"Authorization"},"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token."},{"name":"firebase-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Legacy dashboard header (Firebase ID token).","title":"Firebase-Token"},"description":"Legacy dashboard header (Firebase ID token)."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"}}}},"/api/v1/teams/{team_id}/portfolios/{portfolio_id}/simulations":{"post":{"tags":["Seed portfolios"],"summary":"Run WOFOST simulations for all varieties × environments × years","operationId":"run_simulations_api_v1_teams__team_id__portfolios__portfolio_id__simulations_post","parameters":[{"name":"portfolio_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","title":"Portfolio Id"}},{"name":"team_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Team ID","title":"Team Id"},"description":"Team ID"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token.","title":"Authorization"},"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token."},{"name":"firebase-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Legacy dashboard header (Firebase ID token).","title":"Firebase-Token"},"description":"Legacy dashboard header (Firebase ID token)."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SimulationRun"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"}}}},"/api/v1/teams/{team_id}/portfolios/{portfolio_id}/heatmaps":{"post":{"tags":["Seed portfolios"],"summary":"Generate an activity/churn heatmap","operationId":"generate_heatmap_api_v1_teams__team_id__portfolios__portfolio_id__heatmaps_post","parameters":[{"name":"portfolio_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","title":"Portfolio Id"}},{"name":"team_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Team ID","title":"Team Id"},"description":"Team ID"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token.","title":"Authorization"},"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token."},{"name":"firebase-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Legacy dashboard header (Firebase ID token).","title":"Firebase-Token"},"description":"Legacy dashboard header (Firebase ID token)."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HeatmapGenerate"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"}}}},"/api/v1/teams/{team_id}/portfolios/{portfolio_id}/clustering":{"post":{"tags":["Seed portfolios"],"summary":"(Re)generate environment clusters","operationId":"trigger_clustering_api_v1_teams__team_id__portfolios__portfolio_id__clustering_post","parameters":[{"name":"portfolio_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","title":"Portfolio Id"}},{"name":"team_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Team ID","title":"Team Id"},"description":"Team ID"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token.","title":"Authorization"},"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token."},{"name":"firebase-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Legacy dashboard header (Firebase ID token).","title":"Firebase-Token"},"description":"Legacy dashboard header (Firebase ID token)."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClusteringRun"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"}}}},"/api/v1/teams/{team_id}/portfolios/{portfolio_id}/varieties":{"put":{"tags":["Seed portfolios"],"summary":"Replace the portfolio's varieties","operationId":"put_varieties_api_v1_teams__team_id__portfolios__portfolio_id__varieties_put","parameters":[{"name":"portfolio_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","title":"Portfolio Id"}},{"name":"team_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Team ID","title":"Team Id"},"description":"Team ID"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token.","title":"Authorization"},"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token."},{"name":"firebase-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Legacy dashboard header (Firebase ID token).","title":"Firebase-Token"},"description":"Legacy dashboard header (Firebase ID token)."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VarietiesPut"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"}}}},"/api/v1/teams/{team_id}/portfolios/{portfolio_id}/transactions":{"put":{"tags":["Seed portfolios"],"summary":"Replace transaction records + variety mappings","operationId":"put_transactions_api_v1_teams__team_id__portfolios__portfolio_id__transactions_put","parameters":[{"name":"portfolio_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","title":"Portfolio Id"}},{"name":"team_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Team ID","title":"Team Id"},"description":"Team ID"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token.","title":"Authorization"},"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token."},{"name":"firebase-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Legacy dashboard header (Firebase ID token).","title":"Firebase-Token"},"description":"Legacy dashboard header (Firebase ID token)."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TransactionsPut"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"}}},"get":{"tags":["Seed portfolios"],"summary":"Read the stored transaction records","operationId":"get_transactions_api_v1_teams__team_id__portfolios__portfolio_id__transactions_get","parameters":[{"name":"portfolio_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","title":"Portfolio Id"}},{"name":"team_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Team ID","title":"Team Id"},"description":"Team ID"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token.","title":"Authorization"},"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token."},{"name":"firebase-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Legacy dashboard header (Firebase ID token).","title":"Firebase-Token"},"description":"Legacy dashboard header (Firebase ID token)."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"}}}},"/api/v1/teams/{team_id}/portfolios/{portfolio_id}/environments/discover":{"post":{"tags":["Seed portfolios"],"summary":"Create one placeholder environment per unique customer location (replaces discovered set)","operationId":"discover_environments_api_v1_teams__team_id__portfolios__portfolio_id__environments_discover_post","parameters":[{"name":"portfolio_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","title":"Portfolio Id"}},{"name":"team_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Team ID","title":"Team Id"},"description":"Team ID"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token.","title":"Authorization"},"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token."},{"name":"firebase-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Legacy dashboard header (Firebase ID token).","title":"Firebase-Token"},"description":"Legacy dashboard header (Firebase ID token)."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"}}}},"/api/v1/teams/{team_id}/portfolios/{portfolio_id}/environment-config":{"patch":{"tags":["Seed portfolios"],"summary":"Select environments / set simulated environments and trial sites","operationId":"patch_environment_config_api_v1_teams__team_id__portfolios__portfolio_id__environment_config_patch","parameters":[{"name":"portfolio_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","title":"Portfolio Id"}},{"name":"team_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Team ID","title":"Team Id"},"description":"Team ID"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token.","title":"Authorization"},"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token."},{"name":"firebase-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Legacy dashboard header (Firebase ID token).","title":"Firebase-Token"},"description":"Legacy dashboard header (Firebase ID token)."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnvironmentConfigPatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"}}}},"/api/v1/teams/{team_id}/avatar":{"put":{"tags":["Teams"],"summary":"Upload the team logo (sets photoURL)","operationId":"put_team_avatar_api_v1_teams__team_id__avatar_put","parameters":[{"name":"team_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Team ID","title":"Team Id"},"description":"Team ID"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token.","title":"Authorization"},"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token."},{"name":"firebase-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Legacy dashboard header (Firebase ID token).","title":"Firebase-Token"},"description":"Legacy dashboard header (Firebase ID token)."}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_put_team_avatar_api_v1_teams__team_id__avatar_put"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"}}}},"/api/v1/me/avatar":{"put":{"tags":["Identity & API tokens"],"summary":"Upload your avatar (sets photoURL)","operationId":"put_my_avatar_api_v1_me_avatar_put","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token.","title":"Authorization"},"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token."},{"name":"firebase-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Legacy dashboard header (Firebase ID token).","title":"Firebase-Token"},"description":"Legacy dashboard header (Firebase ID token)."}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_put_my_avatar_api_v1_me_avatar_put"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"}}}},"/api/v1/teams/{team_id}/experiments/{experiment_id}/brapi/study":{"get":{"tags":["BrAPI"],"summary":"Breeder API (BrAPI) study configuration for this experiment","operationId":"get_brapi_study_api_v1_teams__team_id__experiments__experiment_id__brapi_study_get","parameters":[{"name":"team_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Team ID","title":"Team Id"},"description":"Team ID"},{"name":"experiment_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Experiment ID","title":"Experiment Id"},"description":"Experiment ID"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token.","title":"Authorization"},"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token."},{"name":"firebase-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Legacy dashboard header (Firebase ID token).","title":"Firebase-Token"},"description":"Legacy dashboard header (Firebase ID token)."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"}}},"put":{"tags":["BrAPI"],"summary":"Replace the BrAPI study configuration (stored at brapi_study/{experimentId})","operationId":"put_brapi_study_api_v1_teams__team_id__experiments__experiment_id__brapi_study_put","parameters":[{"name":"team_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Team ID","title":"Team Id"},"description":"Team ID"},{"name":"experiment_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Experiment ID","title":"Experiment Id"},"description":"Experiment ID"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token.","title":"Authorization"},"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token."},{"name":"firebase-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Legacy dashboard header (Firebase ID token).","title":"Firebase-Token"},"description":"Legacy dashboard header (Firebase ID token)."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Study"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"}}}},"/api/v1/teams/{team_id}/experiments/{experiment_id}/ai/messages":{"get":{"tags":["AI assistant"],"summary":"Watney AI chat history for this experiment","operationId":"ai_messages_api_v1_teams__team_id__experiments__experiment_id__ai_messages_get","parameters":[{"name":"team_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Team ID","title":"Team Id"},"description":"Team ID"},{"name":"experiment_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Experiment ID","title":"Experiment Id"},"description":"Experiment ID"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token.","title":"Authorization"},"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token."},{"name":"firebase-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Legacy dashboard header (Firebase ID token).","title":"Firebase-Token"},"description":"Legacy dashboard header (Firebase ID token)."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"}}}},"/api/v1/teams/{team_id}/experiments/{experiment_id}/ai/chat":{"post":{"tags":["AI assistant"],"summary":"Send a message; streams agent events as NDJSON","operationId":"chat_stream_api_v1_teams__team_id__experiments__experiment_id__ai_chat_post","parameters":[{"name":"team_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Team ID","title":"Team Id"},"description":"Team ID"},{"name":"experiment_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Experiment ID","title":"Experiment Id"},"description":"Experiment ID"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token.","title":"Authorization"},"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token."},{"name":"firebase-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Legacy dashboard header (Firebase ID token).","title":"Firebase-Token"},"description":"Legacy dashboard header (Firebase ID token)."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatIn"}}}},"responses":{"200":{"description":"One JSON event per line: STARTED, PROCESS, MESSAGE_DELTA, FOLLOW_UP_QUESTIONS, END_OF_REPLY or ERROR.","content":{"application/x-ndjson":{}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"}}}},"/api/v1/accounts":{"post":{"tags":["Accounts"],"summary":"Create an email/password account with a signup code","operationId":"create_email_account_api_v1_accounts_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailSignUp"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountCreated"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/v1/accounts/google":{"post":{"tags":["Accounts"],"summary":"Finish sign-up for a Google-authenticated Firebase user with a signup code","operationId":"create_google_account_api_v1_accounts_google_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleSignUp"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountCreated"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/v1/accounts/signup-codes/verify":{"post":{"tags":["Accounts"],"summary":"Check a signup code without creating an account","operationId":"verify_signup_code_api_v1_accounts_signup_codes_verify_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodeCheck"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/v1/teams/{team_id}/s3-buckets":{"get":{"tags":["Storage buckets"],"summary":"List the S3 buckets this team can read from","operationId":"list_buckets_api_v1_teams__team_id__s3_buckets_get","parameters":[{"name":"team_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Team ID","title":"Team Id"},"description":"Team ID"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token.","title":"Authorization"},"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token."},{"name":"firebase-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Legacy dashboard header (Firebase ID token).","title":"Firebase-Token"},"description":"Legacy dashboard header (Firebase ID token)."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/BucketOut"},"title":"Response List Buckets Api V1 Teams  Team Id  S3 Buckets Get"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["Storage buckets"],"summary":"Connect a bucket (admin): verifies access, stores the keys encrypted","description":"Re-connecting an existing bucket replaces its keys (200 instead of 201). Give the IAM user only\n`s3:ListBucket` and `s3:GetObject` on this bucket. 422 `bucket_unreachable` carries the AWS error code\n(`NoSuchBucket`, `AccessDenied`, `InvalidAccessKeyId`, `SignatureDoesNotMatch`, ...).","operationId":"connect_bucket_api_v1_teams__team_id__s3_buckets_post","parameters":[{"name":"team_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Team ID","title":"Team Id"},"description":"Team ID"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token.","title":"Authorization"},"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token."},{"name":"firebase-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Legacy dashboard header (Firebase ID token).","title":"Firebase-Token"},"description":"Legacy dashboard header (Firebase ID token)."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BucketIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BucketOut"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Service Unavailable"}}}},"/api/v1/teams/{team_id}/s3-buckets/{bucket}":{"delete":{"tags":["Storage buckets"],"summary":"Disconnect a bucket (admin)","description":"Files already registered from it stay in their experiments but become unreadable (409) until the\nbucket is connected again.","operationId":"disconnect_bucket_api_v1_teams__team_id__s3_buckets__bucket__delete","parameters":[{"name":"bucket","in":"path","required":true,"schema":{"type":"string","pattern":"^[a-z0-9][a-z0-9.-]{1,61}[a-z0-9]$","description":"S3 bucket name","title":"Bucket"},"description":"S3 bucket name"},{"name":"team_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Team ID","title":"Team Id"},"description":"Team ID"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token.","title":"Authorization"},"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token."},{"name":"firebase-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Legacy dashboard header (Firebase ID token).","title":"Firebase-Token"},"description":"Legacy dashboard header (Firebase ID token)."}],"responses":{"204":{"description":"Successful Response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/teams/{team_id}/s3-buckets/{bucket}/objects":{"get":{"tags":["Storage buckets"],"summary":"Browse a bucket (one folder level per call)","description":"Works for team-connected and server-configured buckets alike. Keys are returned as `s3://` URLs that\n`POST .../files/remote` accepts as they are.","operationId":"browse_bucket_api_v1_teams__team_id__s3_buckets__bucket__objects_get","parameters":[{"name":"bucket","in":"path","required":true,"schema":{"type":"string","pattern":"^[a-z0-9][a-z0-9.-]{1,61}[a-z0-9]$","description":"S3 bucket name","title":"Bucket"},"description":"S3 bucket name"},{"name":"team_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","description":"Team ID","title":"Team Id"},"description":"Team ID"},{"name":"prefix","in":"query","required":false,"schema":{"type":"string","maxLength":1024,"default":"","title":"Prefix"}},{"name":"token","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":2048},{"type":"null"}],"description":"`next_token` of the previous page","title":"Token"},"description":"`next_token` of the previous page"},{"name":"max_keys","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":1,"default":200,"title":"Max Keys"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token.","title":"Authorization"},"description":"`Bearer <Firebase ID token>` or `Bearer wat_...` personal API token."},{"name":"firebase-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Legacy dashboard header (Firebase ID token).","title":"Firebase-Token"},"description":"Legacy dashboard header (Firebase ID token)."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ObjectsPage"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Conflict"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"AccountCreated":{"properties":{"user_id":{"type":"string","title":"User Id"},"team_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Team Id"},"tutorial_experiment_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tutorial Experiment Id"},"dashboard_path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dashboard Path"}},"type":"object","required":["user_id"],"title":"AccountCreated"},"Alternative":{"type":"string","enum":["two-sided","greater","less"],"title":"Alternative"},"AnalysisResultsResponse":{"properties":{"analysisRunId":{"type":"string","title":"Analysisrunid","description":"ID of the analysis run"},"status":{"type":"string","title":"Status","description":"Final status"},"results":{"additionalProperties":true,"type":"object","title":"Results","description":"Nested results structure"},"summary":{"additionalProperties":true,"type":"object","title":"Summary","description":"Summary information"}},"type":"object","required":["analysisRunId","status","results","summary"],"title":"AnalysisResultsResponse","description":"Response for analysis results"},"AnalysisRunResponse":{"properties":{"success":{"type":"boolean","title":"Success","description":"Whether the request was successful"},"analysisRunId":{"type":"string","title":"Analysisrunid","description":"ID of the created analysis run"},"estimatedDuration":{"type":"integer","title":"Estimatedduration","description":"Estimated duration in minutes"},"totalSimulations":{"type":"integer","title":"Totalsimulations","description":"Total number of simulations"},"message":{"type":"string","title":"Message","description":"Success message"},"taskId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Taskid","description":"Celery task ID"}},"type":"object","required":["success","analysisRunId","estimatedDuration","totalSimulations","message"],"title":"AnalysisRunResponse","description":"Response after creating analysis run"},"AnalysisStatusResponse":{"properties":{"analysisRunId":{"type":"string","title":"Analysisrunid","description":"ID of the analysis run"},"status":{"type":"string","title":"Status","description":"Current status"},"progress":{"additionalProperties":true,"type":"object","title":"Progress","description":"Progress information"},"errors":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Errors","description":"List of errors if any"},"createdAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Createdat","description":"Creation timestamp"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At","description":"Last update timestamp"}},"type":"object","required":["analysisRunId","status","progress"],"title":"AnalysisStatusResponse","description":"Response for analysis status"},"AncovaRequest":{"properties":{"data":{"additionalProperties":{"items":{},"type":"array"},"type":"object","title":"Data","description":"Data for ANCOVA in wide format. A dictionary where keys are column names and values are lists of observations, including the dependent variable, factor, and covariates."},"dv":{"type":"string","title":"Dv","description":"Name of the dependent variable column in the data, containing numerical observations."},"between":{"type":"string","title":"Between","description":"Name of the between-subject factor in the data, identifying group membership."},"covar":{"anyOf":[{"type":"string"},{"items":{"type":"string"},"type":"array"}],"title":"Covar","description":"Name(s) of the covariate(s) in the data. Can be a single string or a list of strings for multiple covariates."},"effsize":{"type":"string","title":"Effsize","description":"Effect size measure. 'np2' for partial eta-squared, other options may include 'eta2' (eta-squared) or 'omega2' (omega-squared).","default":"np2"}},"type":"object","required":["data","dv","between","covar"],"title":"AncovaRequest"},"AnovaRequest":{"properties":{"data":{"additionalProperties":{"items":{},"type":"array"},"type":"object","title":"Data","description":"Data for ANOVA in wide format. A dictionary where keys are column names and values are lists of observations, including the dependent variable and factors."},"dv":{"type":"string","title":"Dv","description":"Name of the dependent variable column in the data, containing numerical observations."},"between":{"anyOf":[{"type":"string"},{"items":{"type":"string"},"type":"array"}],"title":"Between","description":"Name(s) of the between-subject factor(s) in the data. Can be a single string or a list of strings for multiple factors."},"detailed":{"type":"boolean","title":"Detailed","description":"If True, returns detailed ANOVA table including sum of squares, mean squares, and degrees of freedom; if False, returns simplified output.","default":false},"effsize":{"type":"string","title":"Effsize","description":"Effect size measure. 'np2' for partial eta-squared, other options may include 'eta2' (eta-squared) or 'omega2' (omega-squared).","default":"np2"}},"type":"object","required":["data","dv","between"],"title":"AnovaRequest"},"AnswerIn":{"properties":{"response":{"title":"Response","description":"Answer to the importer's pending question."},"kind":{"type":"string","pattern":"^(question|confirmation_feedback)$","title":"Kind","description":"'question' answers an AI question; 'confirmation_feedback' gives feedback on the extraction preview.","default":"question"}},"additionalProperties":false,"type":"object","required":["response"],"title":"AnswerIn"},"BarDataPoint":{"properties":{"x":{"type":"string","title":"X"},"y":{"anyOf":[{"type":"number"},{"type":"integer"}],"title":"Y"},"color":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Color"}},"type":"object","required":["x","y"],"title":"BarDataPoint"},"BarPlotData":{"properties":{"type":{"type":"string","const":"bar_plot","title":"Type","default":"bar_plot"},"title":{"type":"string","title":"Title"},"x_label":{"type":"string","title":"X Label"},"y_label":{"type":"string","title":"Y Label"},"data":{"items":{"$ref":"#/components/schemas/BarDataPoint"},"type":"array","title":"Data"},"curve_data":{"anyOf":[{"items":{"$ref":"#/components/schemas/CurveDataPoint"},"type":"array"},{"type":"null"}],"title":"Curve Data"},"curve_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Curve Label"}},"type":"object","required":["title","x_label","y_label","data"],"title":"BarPlotData"},"BatchConvertRequest":{"properties":{"quality":{"type":"string","title":"Quality","default":"medium"}},"type":"object","title":"BatchConvertRequest"},"BatchDownload":{"properties":{"file_ids":{"items":{"type":"string"},"type":"array","maxItems":200,"minItems":1,"title":"File Ids"}},"additionalProperties":false,"type":"object","required":["file_ids"],"title":"BatchDownload"},"BatchDownloadItem":{"properties":{"file_id":{"type":"string","title":"File Id"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At"},"error":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Error"}},"type":"object","required":["file_id"],"title":"BatchDownloadItem"},"BatchEnvironmentRequest":{"properties":{"locations":{"items":{"$ref":"#/components/schemas/EnvironmentLocation"},"type":"array","maxItems":100,"minItems":1,"title":"Locations","description":"List of locations to analyze"},"include_agricultural_notes":{"type":"boolean","title":"Include Agricultural Notes","description":"Whether to include agricultural suitability notes","default":true}},"type":"object","required":["locations"],"title":"BatchEnvironmentRequest","description":"Request model for batch environment profile generation"},"BatchEnvironmentResponse":{"properties":{"request_id":{"type":"string","title":"Request Id","description":"Unique identifier for this batch request"},"total_locations":{"type":"integer","title":"Total Locations","description":"Total number of locations requested"},"successful_profiles":{"type":"integer","title":"Successful Profiles","description":"Number of profiles successfully generated"},"failed_locations":{"items":{"type":"string"},"type":"array","title":"Failed Locations","description":"IDs of locations that failed to process"},"profiles":{"items":{"$ref":"#/components/schemas/EnvironmentProfile"},"type":"array","title":"Profiles","description":"Generated environment profiles"},"processing_time_seconds":{"type":"number","title":"Processing Time Seconds","description":"Total processing time"},"generated_at":{"type":"string","format":"date-time","title":"Generated At","description":"Batch generation timestamp"},"data_source_summary":{"additionalProperties":{"type":"integer"},"type":"object","title":"Data Source Summary","description":"Count of profiles by data source"}},"type":"object","required":["request_id","total_locations","successful_profiles","failed_locations","profiles","processing_time_seconds","generated_at","data_source_summary"],"title":"BatchEnvironmentResponse","description":"Response model for batch environment profile generation"},"BatchImageRequest":{"properties":{"images":{"items":{"$ref":"#/components/schemas/ImageRequest"},"type":"array","title":"Images"}},"type":"object","required":["images"],"title":"BatchImageRequest"},"BatchIn":{"properties":{"file_ids":{"items":{"type":"string"},"type":"array","maxItems":25,"minItems":1,"title":"File Ids"}},"additionalProperties":false,"type":"object","required":["file_ids"],"title":"BatchIn"},"BatchItemOut":{"properties":{"fileId":{"type":"string","title":"Fileid"},"markerDetection":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Markerdetection"},"plants":{"items":{"$ref":"#/components/schemas/PlantRef"},"type":"array","title":"Plants","default":[]},"error":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Error","description":"{code, message} when this file was not processed."}},"type":"object","required":["fileId"],"title":"BatchItemOut"},"BatchOut":{"properties":{"results":{"items":{"$ref":"#/components/schemas/BatchItemOut"},"type":"array","title":"Results"}},"type":"object","required":["results"],"title":"BatchOut"},"BatchSignedUrlResponse":{"properties":{"results":{"items":{"$ref":"#/components/schemas/SignedUrlResponseItem"},"type":"array","title":"Results"}},"type":"object","required":["results"],"title":"BatchSignedUrlResponse"},"BiplotData":{"properties":{"type":{"type":"string","const":"biplot","title":"Type","default":"biplot"},"title":{"type":"string","title":"Title"},"x_label":{"type":"string","title":"X Label"},"y_label":{"type":"string","title":"Y Label"},"data":{"items":{"$ref":"#/components/schemas/BiplotDataPoint"},"type":"array","title":"Data"},"loading_vectors":{"items":{"$ref":"#/components/schemas/BiplotLoadingVector"},"type":"array","title":"Loading Vectors"},"show_target_legend":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Show Target Legend","default":false}},"type":"object","required":["title","x_label","y_label","data","loading_vectors"],"title":"BiplotData"},"BiplotDataPoint":{"properties":{"x":{"anyOf":[{"type":"number"},{"type":"integer"}],"title":"X"},"y":{"anyOf":[{"type":"number"},{"type":"integer"}],"title":"Y"},"target":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Target"}},"type":"object","required":["x","y"],"title":"BiplotDataPoint"},"BiplotLoadingVector":{"properties":{"variable":{"type":"string","title":"Variable"},"x":{"anyOf":[{"type":"number"},{"type":"integer"}],"title":"X"},"y":{"anyOf":[{"type":"number"},{"type":"integer"}],"title":"Y"},"text_x":{"anyOf":[{"type":"number"},{"type":"integer"}],"title":"Text X"},"text_y":{"anyOf":[{"type":"number"},{"type":"integer"}],"title":"Text Y"}},"type":"object","required":["variable","x","y","text_x","text_y"],"title":"BiplotLoadingVector"},"Body_add_new_files_experiment__experiment_id__files_new_post":{"properties":{"files":{"items":{"type":"string","format":"binary"},"type":"array","title":"Files"},"metadata":{"type":"string","title":"Metadata"},"parent_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parent Id"}},"type":"object","required":["files","metadata"],"title":"Body_add_new_files_experiment__experiment_id__files_new_post"},"Body_index_files_import_index_files_post":{"properties":{"experiment_id":{"type":"string","title":"Experiment Id"},"files":{"items":{"type":"string","format":"binary"},"type":"array","title":"Files"},"directories":{"items":{"type":"string"},"type":"array","title":"Directories","default":[]},"initial_script":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Initial Script"}},"type":"object","required":["experiment_id","files"],"title":"Body_index_files_import_index_files_post"},"Body_put_my_avatar_api_v1_me_avatar_put":{"properties":{"file":{"type":"string","format":"binary","title":"File"}},"type":"object","required":["file"],"title":"Body_put_my_avatar_api_v1_me_avatar_put"},"Body_put_team_avatar_api_v1_teams__team_id__avatar_put":{"properties":{"file":{"type":"string","format":"binary","title":"File"}},"type":"object","required":["file"],"title":"Body_put_team_avatar_api_v1_teams__team_id__avatar_put"},"Body_put_thumbnail_api_v1_teams__team_id__experiments__experiment_id__files__file_id__thumbnail_put":{"properties":{"file":{"type":"string","format":"binary","title":"File"},"source":{"anyOf":[{"type":"string","maxLength":64,"pattern":"^[0-9a-f]{1,64}$"},{"type":"null"}],"title":"Source","description":"Optional key of the content the thumbnail was made from (lowercase hex), stored as metadata.thumbnailSource"}},"type":"object","required":["file"],"title":"Body_put_thumbnail_api_v1_teams__team_id__experiments__experiment_id__files__file_id__thumbnail_put"},"Body_start_import_api_v1_teams__team_id__experiments__experiment_id__import_files_post":{"properties":{"files":{"items":{"type":"string","format":"binary"},"type":"array","title":"Files"},"directories":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Directories","description":"JSON list of directory paths, one per file."},"initial_script":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Initial Script"}},"type":"object","required":["files"],"title":"Body_start_import_api_v1_teams__team_id__experiments__experiment_id__import_files_post"},"Body_upload_file_api_v1_teams__team_id__experiments__experiment_id__files_post":{"properties":{"file":{"type":"string","format":"binary","title":"File"},"parent_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parent Id"},"metadata":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Metadata","description":"JSON: {name, description, plant_ids, environment_ids, timestamp_id, created_date}"}},"type":"object","required":["file"],"title":"Body_upload_file_api_v1_teams__team_id__experiments__experiment_id__files_post"},"Body_upload_variant_api_v1_teams__team_id__experiments__experiment_id__files__file_id__variants_post":{"properties":{"files":{"items":{"type":"string","format":"binary"},"type":"array","title":"Files"}},"type":"object","required":["files"],"title":"Body_upload_variant_api_v1_teams__team_id__experiments__experiment_id__files__file_id__variants_post"},"BoundingBox":{"properties":{"right":{"type":"number","title":"Right"},"left":{"type":"number","title":"Left"},"top":{"type":"number","title":"Top"},"bottom":{"type":"number","title":"Bottom"}},"type":"object","required":["right","left","top","bottom"],"title":"BoundingBox"},"Box":{"properties":{"x":{"type":"number","title":"X"},"y":{"type":"number","title":"Y"},"width":{"type":"number","title":"Width"},"height":{"type":"number","title":"Height"}},"additionalProperties":false,"type":"object","required":["x","y","width","height"],"title":"Box"},"BoxPlotData":{"properties":{"type":{"type":"string","const":"box_plot","title":"Type","default":"box_plot"},"title":{"type":"string","title":"Title"},"data":{"items":{"$ref":"#/components/schemas/BoxPlotGroup"},"type":"array","title":"Data"}},"type":"object","required":["title","data"],"title":"BoxPlotData"},"BoxPlotGroup":{"properties":{"group":{"type":"string","title":"Group"},"values":{"items":{"anyOf":[{"type":"number"},{"type":"integer"}]},"type":"array","title":"Values"}},"type":"object","required":["group","values"],"title":"BoxPlotGroup"},"BoxPrompt":{"properties":{"x":{"type":"number","title":"X"},"y":{"type":"number","title":"Y"},"width":{"type":"number","title":"Width"},"height":{"type":"number","title":"Height"}},"type":"object","required":["x","y","width","height"],"title":"BoxPrompt"},"BucketIn":{"properties":{"bucket":{"type":"string","pattern":"^[a-z0-9][a-z0-9.-]{1,61}[a-z0-9]$","title":"Bucket","description":"Bucket name, e.g. `phytotron-2026`."},"region":{"type":"string","pattern":"^[a-z0-9-]{2,32}$","title":"Region","description":"Bucket region, e.g. `eu-west-2`."},"access_key_id":{"anyOf":[{"type":"string","maxLength":128,"minLength":16},{"type":"null"}],"title":"Access Key Id","description":"IAM user access key id (read-only user recommended)."},"secret_access_key":{"anyOf":[{"type":"string","maxLength":256,"minLength":16},{"type":"null"}],"title":"Secret Access Key"},"anonymous":{"type":"boolean","title":"Anonymous","description":"Public bucket: read unsigned, no keys.","default":false},"endpoint_url":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"title":"Endpoint Url","description":"S3-compatible endpoint (MinIO, Cloudflare R2, ...); AWS when unset."}},"additionalProperties":false,"type":"object","required":["bucket","region"],"title":"BucketIn"},"BucketOut":{"properties":{"bucket":{"type":"string","title":"Bucket"},"region":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Region"},"anonymous":{"type":"boolean","title":"Anonymous","default":false},"endpoint_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Endpoint Url"},"access_key_hint":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Access Key Hint","description":"Last four characters of the access key id."},"source":{"type":"string","title":"Source","description":"`team` (connected here, removable) or `server` (configured by Watney)."},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"created_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created By"},"verified_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Verified At"}},"type":"object","required":["bucket","source"],"title":"BucketOut"},"Canvas":{"properties":{"left":{"type":"number","title":"Left"},"top":{"type":"number","title":"Top"}},"additionalProperties":false,"type":"object","required":["left","top"],"title":"Canvas"},"CanvasPosition":{"properties":{"left":{"type":"number","title":"Left","description":"The left position of the plant on the canvas."},"top":{"type":"number","title":"Top","description":"The top position of the plant on the canvas."}},"type":"object","required":["left","top"],"title":"CanvasPosition"},"ChartIn":{"properties":{"type":{"type":"string","maxLength":100,"title":"Type"},"domain":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Domain"},"groupBy":{"anyOf":[{},{"type":"null"}],"title":"Groupby"},"variableConfigs":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Variableconfigs","default":[]},"xAxisDateRange":{"anyOf":[{"items":{},"type":"array"},{"type":"null"}],"title":"Xaxisdaterange"}},"additionalProperties":true,"type":"object","required":["type"],"title":"ChartIn","description":"ChartsService chart document (``charts/{chartId}``)."},"ChatIn":{"properties":{"content":{"type":"string","maxLength":20000,"minLength":1,"title":"Content"},"thread_id":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Thread Id"}},"additionalProperties":false,"type":"object","required":["content"],"title":"ChatIn"},"Chi2IndependenceRequest":{"properties":{"data":{"additionalProperties":{"items":{},"type":"array"},"type":"object","title":"Data","description":"Dataset in wide-format. Each column represents a variable, and each row represents an observation."},"x":{"type":"string","title":"X","description":"The first categorical variable for independence testing."},"y":{"type":"string","title":"Y","description":"The second categorical variable for independence testing."},"alpha":{"type":"number","exclusiveMaximum":1.0,"exclusiveMinimum":0.0,"title":"Alpha","description":"Significance level for the test.","default":0.05}},"type":"object","required":["data","x","y"],"title":"Chi2IndependenceRequest"},"ChromosomeRegion":{"properties":{"chromosome":{"type":"string","title":"Chromosome","description":"Chromosome identifier"},"start":{"type":"integer","title":"Start","description":"Start position"},"end":{"type":"integer","title":"End","description":"End position"}},"type":"object","required":["chromosome","start","end"],"title":"ChromosomeRegion","description":"Chromosome region specification"},"ClimateProfile":{"properties":{"avg_temperature":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Avg Temperature","description":"Average annual temperature (°C)"},"min_temperature":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Min Temperature","description":"Absolute minimum temperature for the year (°C) - coldest day"},"max_temperature":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Max Temperature","description":"Absolute maximum temperature for the year (°C) - hottest day"},"annual_precipitation":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Annual Precipitation","description":"Annual precipitation (mm)"},"avg_humidity":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Avg Humidity","description":"Average relative humidity (%)"},"avg_wind_speed":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Avg Wind Speed","description":"Average wind speed (m/s)"},"avg_solar_radiation":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Avg Solar Radiation","description":"Average solar radiation (MJ/m²/day)"},"monthly_precipitation":{"anyOf":[{"items":{"type":"number"},"type":"array"},{"type":"null"}],"title":"Monthly Precipitation","description":"Monthly precipitation totals (mm) Jan-Dec"},"monthly_avg_temperature":{"anyOf":[{"items":{"anyOf":[{"type":"number"},{"type":"null"}]},"type":"array"},{"type":"null"}],"title":"Monthly Avg Temperature","description":"Monthly average temperature (°C) Jan-Dec"},"precipitation_year":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Precipitation Year","description":"Calendar year used for monthly precipitation aggregation"},"growing_degree_days":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Growing Degree Days","description":"Growing degree days (base 10°C)"},"frost_free_days":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Frost Free Days","description":"Estimated frost-free days"},"climate_zone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Climate Zone","description":"Köppen climate classification estimate"}},"type":"object","title":"ClimateProfile","description":"Climate characteristics from NASA POWER via PCSE"},"ClusterGenerationRequest":{"properties":{"profiles":{"items":{"$ref":"#/components/schemas/EnvironmentProfile"},"type":"array","maxItems":1000,"minItems":2,"title":"Profiles","description":"Environment profiles to cluster"},"target_cluster_count":{"type":"integer","maximum":20.0,"minimum":2.0,"title":"Target Cluster Count","description":"Desired number of clusters","default":4},"strictness":{"type":"string","title":"Strictness","description":"Clustering strictness: loose, moderate, strict","default":"moderate"},"generate_titles":{"type":"boolean","title":"Generate Titles","description":"Whether to generate AI titles for clusters","default":true},"generate_descriptions":{"type":"boolean","title":"Generate Descriptions","description":"Whether to generate AI descriptions for clusters","default":true},"context":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Context","description":"Additional context for AI generation (e.g., 'wheat production', 'European agriculture')"}},"type":"object","required":["profiles"],"title":"ClusterGenerationRequest","description":"Request to generate environment profile clusters from existing profiles"},"ClusterGenerationResponse":{"properties":{"request_id":{"type":"string","title":"Request Id","description":"Unique identifier for this clustering request"},"clusters":{"items":{"$ref":"#/components/schemas/EnvironmentProfileCluster"},"type":"array","title":"Clusters","description":"Generated environment profile clusters"},"total_profiles_processed":{"type":"integer","title":"Total Profiles Processed","description":"Total number of environment profiles processed"},"clusters_generated":{"type":"integer","title":"Clusters Generated","description":"Number of clusters generated"},"processing_time_seconds":{"type":"number","title":"Processing Time Seconds","description":"Total processing time"},"generated_at":{"type":"string","format":"date-time","title":"Generated At","description":"Timestamp of cluster generation"},"clustering_algorithm":{"type":"string","title":"Clustering Algorithm","description":"Algorithm used for clustering"},"clustering_parameters":{"$ref":"#/components/schemas/ClusteringParameters","description":"Final clustering parameters used"},"overall_clustering_quality":{"anyOf":[{"$ref":"#/components/schemas/ClusteringQualityMetrics"},{"type":"null"}],"description":"Overall clustering quality metrics"}},"type":"object","required":["request_id","clusters","total_profiles_processed","clusters_generated","processing_time_seconds","generated_at","clustering_algorithm","clustering_parameters"],"title":"ClusterGenerationResponse","description":"Response containing generated environment profile clusters"},"ClusteringParameters":{"properties":{"cluster_count":{"type":"integer","title":"Cluster Count","description":"Number of clusters generated"},"strictness":{"type":"string","title":"Strictness","description":"Clustering strictness level"},"distance_threshold":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Distance Threshold","description":"Distance threshold used for clustering"},"similarity_metric":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Similarity Metric","description":"Metric used for similarity calculation"},"min_cluster_size":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Min Cluster Size","description":"Minimum number of profiles per cluster"}},"type":"object","required":["cluster_count","strictness"],"title":"ClusteringParameters","description":"Parameters used for environment clustering"},"ClusteringQualityMetrics":{"properties":{"silhouette_score":{"type":"number","title":"Silhouette Score","description":"Silhouette score (-1 to 1, higher is better)"},"calinski_harabasz_score":{"type":"number","title":"Calinski Harabasz Score","description":"Calinski-Harabasz index (higher is better)"},"davies_bouldin_score":{"type":"number","title":"Davies Bouldin Score","description":"Davies-Bouldin index (lower is better)"},"inertia":{"type":"number","title":"Inertia","description":"Within-cluster sum of squares (lower is better)"},"overall_quality_score":{"type":"number","title":"Overall Quality Score","description":"Normalized overall quality score (0-1, higher is better)"}},"type":"object","required":["silhouette_score","calinski_harabasz_score","davies_bouldin_score","inertia","overall_quality_score"],"title":"ClusteringQualityMetrics","description":"Quality metrics for evaluating clustering performance"},"ClusteringRun":{"properties":{"force":{"type":"boolean","title":"Force","default":false}},"additionalProperties":false,"type":"object","title":"ClusteringRun"},"CodeCheck":{"properties":{"code":{"type":"string","maxLength":200,"minLength":1,"title":"Code"}},"additionalProperties":false,"type":"object","required":["code"],"title":"CodeCheck"},"CodeVersion":{"properties":{"id":{"type":"string","title":"Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code"},"packages":{"items":{},"type":"array","title":"Packages","default":[]},"environment_variables":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Environment Variables","default":[]},"tested_locally":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Tested Locally"},"tested_on_server":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Tested On Server"},"last_updated":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Updated"},"version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Version"}},"type":"object","required":["id"],"title":"CodeVersion"},"CompleteImportRequest":{"properties":{"session_id":{"type":"string","title":"Session Id"},"experiment_id":{"type":"string","title":"Experiment Id"},"team_id":{"type":"string","title":"Team Id"},"timestamp_clusters":{"additionalProperties":{"items":{"type":"string"},"type":"array"},"type":"object","title":"Timestamp Clusters"},"selected_plants":{"items":{"type":"string"},"type":"array","title":"Selected Plants"}},"type":"object","required":["session_id","experiment_id","team_id","timestamp_clusters","selected_plants"],"title":"CompleteImportRequest","description":"Request to complete AI import and save data to experiment."},"CompleteIn":{"properties":{"timestamp_clusters":{"additionalProperties":{"items":{"type":"string"},"type":"array"},"type":"object","title":"Timestamp Clusters"},"selected_plants":{"items":{"type":"string"},"type":"array","title":"Selected Plants"}},"additionalProperties":false,"type":"object","title":"CompleteIn"},"Contrast":{"type":"string","enum":["paired","one-sample","two-sample"],"title":"Contrast"},"ConvertModelRequest":{"properties":{"file_id":{"type":"string","title":"File Id"},"quality":{"type":"string","title":"Quality","default":"medium"}},"type":"object","required":["file_id"],"title":"ConvertModelRequest"},"CopySource":{"properties":{"team_id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","title":"Team Id"},"experiment_id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","title":"Experiment Id"}},"additionalProperties":false,"type":"object","required":["team_id","experiment_id"],"title":"CopySource"},"CorrelationRequest":{"properties":{"metadata_rows":{"anyOf":[{"items":{"$ref":"#/components/schemas/SummaryTableRow"},"type":"array"},{"type":"null"}],"title":"Metadata Rows","description":"Optional metadata rows to prepend to the summary table (e.g., test configuration info)"},"data":{"additionalProperties":{"items":{},"type":"array"},"type":"object","title":"Data","description":"Dataset in wide-format. Each column represents a variable, and each row represents an observation."},"x":{"type":"string","title":"X","description":"The first numeric variable for correlation analysis."},"y":{"type":"string","title":"Y","description":"The second numeric variable for correlation analysis."},"method":{"type":"string","title":"Method","description":"Type of correlation to compute.","default":"pearson"},"alternative":{"type":"string","title":"Alternative","description":"The alternative hypothesis to test.","default":"two-sided"}},"type":"object","required":["data","x","y"],"title":"CorrelationRequest"},"CreateAnalysisRunRequest":{"properties":{"name":{"type":"string","title":"Name","description":"Name for the analysis run"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description","description":"Description of the analysis run"},"inputConfig":{"$ref":"#/components/schemas/InputConfig","description":"Input configuration"},"qtls":{"items":{"$ref":"#/components/schemas/QtlAnalysisParameter"},"type":"array","title":"Qtls","description":"List of QTLs to analyze"},"environments":{"items":{"$ref":"#/components/schemas/EnvironmentConfig"},"type":"array","title":"Environments","description":"List of environments to simulate"},"globalConfig":{"$ref":"#/components/schemas/GlobalConfig","description":"Global configuration"},"soilConfig":{"$ref":"#/components/schemas/SoilConfig","description":"Soil configuration"},"managementConfig":{"$ref":"#/components/schemas/ManagementConfig","description":"Management configuration"}},"type":"object","required":["name","inputConfig","qtls","environments","globalConfig","soilConfig","managementConfig"],"title":"CreateAnalysisRunRequest","description":"Request to create a new QTL analysis run - matches frontend exactly","example":{"description":"QTL analysis for rice yield and flowering time traits using Q-TARO database","environments":[{"elevation":150.0,"id":"env_1","labels":["temperate","mediterranean"],"latitude":43.6,"longitude":1.4,"name":"Toulouse, France","predefinedLocationId":"toulouse_fr","type":"predefined","weatherSource":"location_based"}],"globalConfig":{"co2Concentration":415,"endType":"maturity","maxDuration":120,"season":"wet_season","startDate":"2025-05-01"},"inputConfig":{"chromosomeRegion":{"chromosome":"Chr6","end":3416728,"start":3416533},"species":"rice","type":"gene_locus","value":"Chr6:3416533-3416728","variety":"Rice_IR72"},"managementConfig":{"fertilization":{"applicationDates":["2025-05-15","2025-06-15"],"enabled":true,"nitrogenAmount":150.0},"irrigation":{"enabled":false,"type":"none"},"sowingDate":"2025-05-01","sowingDensity":180.0},"name":"Rice QTL Analysis - Yield and Maturity Traits 2025","qtls":[{"chromosome":"Chr6","confidence":0.85,"dataSource":"qtaro_rice","effectSize":12.5,"parameter":"Plant Height","qtl":"qHd1","qtlId":"qtl_123","source":"Q-TARO","startPosition":3416533,"stopPosition":3416728,"unit":"cm","variation":{"description":"Plant Height modification based on QTL qHd1","type":"percentage","value":1.25},"wofostMapping":{"baseValue":25.0,"modificationMethod":"multiplicative","modifiedValue":28.75,"parameterName":"SPAN"}}],"soilConfig":{"soilType":"clay","waterBalanceType":"water_limited"}}},"CreateDemoPortfolioRequest":{"properties":{"teamId":{"type":"string","title":"Teamid"},"portfolioId":{"type":"string","title":"Portfolioid"},"breederName":{"type":"string","title":"Breedername"},"varietyMappings":{"additionalProperties":{"type":"string"},"type":"object","title":"Varietymappings"}},"type":"object","required":["teamId","portfolioId","breederName","varietyMappings"],"title":"CreateDemoPortfolioRequest"},"CropFormSchema":{"properties":{"crop":{"type":"string","title":"Crop"},"variety":{"type":"string","title":"Variety"},"groups":{"items":{"$ref":"#/components/schemas/ParameterGroup"},"type":"array","title":"Groups"},"total_parameters":{"type":"integer","title":"Total Parameters"},"source":{"type":"string","title":"Source","default":"PCSE"}},"type":"object","required":["crop","variety","groups","total_parameters"],"title":"CropFormSchema","description":"Complete form schema for crop parameters"},"CurveDataPoint":{"properties":{"x":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"integer"}],"title":"X"},"y":{"anyOf":[{"type":"number"},{"type":"integer"}],"title":"Y"}},"type":"object","required":["x","y"],"title":"CurveDataPoint"},"DataPoint":{"properties":{"domain":{"$ref":"#/components/schemas/Domain"},"entity_id":{"type":"string","title":"Entity Id"},"kind":{"$ref":"#/components/schemas/Kind"},"variable_id":{"type":"string","title":"Variable Id"},"timestamp_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Timestamp Id"},"value":{"title":"Value"}},"type":"object","required":["domain","entity_id","kind","variable_id"],"title":"DataPoint"},"DetectionOut":{"properties":{"fileId":{"type":"string","title":"Fileid"},"markerDetection":{"additionalProperties":true,"type":"object","title":"Markerdetection","description":"What was written to metadata.markerDetection."},"plants":{"items":{"$ref":"#/components/schemas/PlantRef"},"type":"array","title":"Plants","description":"The plants the marker points to (whether or not linked).","default":[]}},"type":"object","required":["fileId","markerDetection"],"title":"DetectionOut"},"Domain":{"type":"string","enum":["plant","env"],"title":"Domain"},"DownloadUrl":{"properties":{"url":{"type":"string","title":"Url"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At","description":"Null for a remote URL returned as-is."},"storage_path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Storage Path","description":"Null for remote files."}},"type":"object","required":["url"],"title":"DownloadUrl"},"EmailSignUp":{"properties":{"code":{"type":"string","maxLength":200,"minLength":1,"title":"Code"},"email":{"type":"string","maxLength":320,"pattern":"^[^@\\s]+@[^@\\s]+\\.[^@\\s]+$","title":"Email"},"password":{"type":"string","maxLength":4096,"minLength":6,"title":"Password","description":"Firebase requires ≥ 6 characters."}},"additionalProperties":false,"type":"object","required":["code","email","password"],"title":"EmailSignUp"},"EnvCanvas":{"properties":{"left":{"type":"number","title":"Left"},"top":{"type":"number","title":"Top"},"right":{"type":"number","title":"Right"},"bottom":{"type":"number","title":"Bottom"}},"additionalProperties":false,"type":"object","required":["left","top","right","bottom"],"title":"EnvCanvas"},"EnvVar":{"properties":{"name":{"type":"string","pattern":"^[A-Za-z_][A-Za-z0-9_]{0,127}$","title":"Name"},"value":{"type":"string","maxLength":10000,"title":"Value"}},"additionalProperties":false,"type":"object","required":["name","value"],"title":"EnvVar"},"EnviromicsAiPeriod":{"properties":{"from_month":{"type":"integer","maximum":12.0,"minimum":1.0,"title":"From Month"},"from_year":{"type":"integer","maximum":2200.0,"minimum":1900.0,"title":"From Year"},"to_month":{"type":"integer","maximum":12.0,"minimum":1.0,"title":"To Month"},"to_year":{"type":"integer","maximum":2200.0,"minimum":1900.0,"title":"To Year"}},"type":"object","required":["from_month","from_year","to_month","to_year"],"title":"EnviromicsAiPeriod"},"EnviromicsAiSummariesResponse":{"properties":{"location_id":{"type":"string","title":"Location Id"},"entries":{"items":{"$ref":"#/components/schemas/EnviromicsAiSummaryEntry"},"type":"array","title":"Entries"}},"type":"object","required":["location_id","entries"],"title":"EnviromicsAiSummariesResponse"},"EnviromicsAiSummaryCreateResponse":{"properties":{"location_id":{"type":"string","title":"Location Id"},"entry":{"$ref":"#/components/schemas/EnviromicsAiSummaryEntry"}},"type":"object","required":["location_id","entry"],"title":"EnviromicsAiSummaryCreateResponse"},"EnviromicsAiSummaryEntry":{"properties":{"id":{"type":"string","title":"Id"},"question":{"type":"string","title":"Question"},"answer":{"type":"string","title":"Answer"},"crop":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Crop"},"see_more_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"See More Url"},"period":{"$ref":"#/components/schemas/EnviromicsAiPeriod"},"created_at":{"type":"string","title":"Created At"},"model":{"type":"string","title":"Model"}},"type":"object","required":["id","question","answer","period","created_at","model"],"title":"EnviromicsAiSummaryEntry"},"EnviromicsAiSummaryRequest":{"properties":{"question":{"type":"string","maxLength":2000,"minLength":3,"title":"Question"},"crop":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Crop"},"from_month":{"type":"integer","maximum":12.0,"minimum":1.0,"title":"From Month"},"from_year":{"type":"integer","maximum":2200.0,"minimum":1900.0,"title":"From Year"},"to_month":{"type":"integer","maximum":12.0,"minimum":1.0,"title":"To Month"},"to_year":{"type":"integer","maximum":2200.0,"minimum":1900.0,"title":"To Year"}},"type":"object","required":["question","from_month","from_year","to_month","to_year"],"title":"EnviromicsAiSummaryRequest"},"EnviromicsDailyRainfallPoint":{"properties":{"date":{"type":"string","title":"Date"},"precipitation_mm":{"type":"number","title":"Precipitation Mm"}},"type":"object","required":["date","precipitation_mm"],"title":"EnviromicsDailyRainfallPoint"},"EnviromicsDailyRainfallResponse":{"properties":{"location_id":{"type":"string","title":"Location Id"},"latitude":{"type":"number","title":"Latitude"},"longitude":{"type":"number","title":"Longitude"},"start_date":{"type":"string","title":"Start Date"},"end_date":{"type":"string","title":"End Date"},"data_through_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Data Through Date"},"days_requested":{"type":"integer","title":"Days Requested"},"days_with_data":{"type":"integer","title":"Days With Data"},"total_precipitation_mm":{"type":"number","title":"Total Precipitation Mm"},"daily_rainfall":{"items":{"$ref":"#/components/schemas/EnviromicsDailyRainfallPoint"},"type":"array","title":"Daily Rainfall"}},"type":"object","required":["location_id","latitude","longitude","start_date","end_date","days_requested","days_with_data","total_precipitation_mm","daily_rainfall"],"title":"EnviromicsDailyRainfallResponse"},"EnviromicsLocationEntry":{"properties":{"id":{"type":"string","title":"Id"},"latitude":{"type":"number","title":"Latitude"},"longitude":{"type":"number","title":"Longitude"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"created_at":{"type":"string","title":"Created At"}},"type":"object","required":["id","latitude","longitude","created_at"],"title":"EnviromicsLocationEntry","description":"Lightweight entry stored in the index document."},"EnviromicsLocationRequest":{"properties":{"latitude":{"type":"number","maximum":90.0,"minimum":-90.0,"title":"Latitude"},"longitude":{"type":"number","maximum":180.0,"minimum":-180.0,"title":"Longitude"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name","description":"Optional human-readable label"}},"type":"object","required":["latitude","longitude"],"title":"EnviromicsLocationRequest"},"EnviromicsLocationResponse":{"properties":{"location_id":{"type":"string","title":"Location Id"},"latitude":{"type":"number","title":"Latitude"},"longitude":{"type":"number","title":"Longitude"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"profile":{"additionalProperties":true,"type":"object","title":"Profile"},"created_at":{"type":"string","title":"Created At"}},"type":"object","required":["location_id","latitude","longitude","name","profile","created_at"],"title":"EnviromicsLocationResponse"},"EnviromicsLocationsListResponse":{"properties":{"locations":{"items":{"$ref":"#/components/schemas/EnviromicsLocationEntry"},"type":"array","title":"Locations"},"total":{"type":"integer","title":"Total"}},"type":"object","required":["locations","total"],"title":"EnviromicsLocationsListResponse"},"EnviromicsSeasonalForecastResponse":{"properties":{"location_id":{"type":"string","title":"Location Id"},"latitude":{"type":"number","title":"Latitude"},"longitude":{"type":"number","title":"Longitude"},"generated_at":{"type":"string","title":"Generated At"},"summary":{"additionalProperties":true,"type":"object","title":"Summary"},"open_meteo":{"additionalProperties":true,"type":"object","title":"Open Meteo"},"c3s":{"additionalProperties":true,"type":"object","title":"C3S"}},"type":"object","required":["location_id","latitude","longitude","generated_at","summary","open_meteo","c3s"],"title":"EnviromicsSeasonalForecastResponse"},"EnvironmentCanvasPosition":{"properties":{"left":{"type":"number","title":"Left","description":"The left boundary of the environment on the canvas."},"top":{"type":"number","title":"Top","description":"The top boundary of the environment on the canvas."},"bottom":{"type":"number","title":"Bottom","description":"The bottom boundary of the environment on the canvas."},"right":{"type":"number","title":"Right","description":"The right boundary of the environment on the canvas."}},"type":"object","required":["left","top","bottom","right"],"title":"EnvironmentCanvasPosition","description":"Represents the canvas position boundaries of an environment.\n\nAttributes:\n    left (float): The left boundary of the environment on the canvas.\n    top (float): The top boundary of the environment on the canvas.\n    bottom (float): The bottom boundary of the environment on the canvas.\n    right (float): The right boundary of the environment on the canvas.","example":{"bottom":-10.0,"left":-5.0,"right":15.0,"top":10.0}},"EnvironmentConfig":{"properties":{"id":{"type":"string","title":"Id","description":"Unique identifier for the environment"},"name":{"type":"string","title":"Name","description":"Human-readable name for the environment"},"type":{"type":"string","title":"Type","description":"Environment type: predefined or custom"},"latitude":{"type":"number","title":"Latitude","description":"Latitude of the environment"},"longitude":{"type":"number","title":"Longitude","description":"Longitude of the environment"},"elevation":{"type":"number","title":"Elevation","description":"Elevation in meters"},"weatherSource":{"type":"string","title":"Weathersource","description":"Weather source: location_based, upload_file, generated"},"weatherFile":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Weatherfile","description":"Weather file name if uploaded"},"labels":{"items":{"type":"string"},"type":"array","title":"Labels","description":"Environment labels/tags"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description","description":"Environment description"},"predefinedLocationId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Predefinedlocationid","description":"Predefined location ID"},"weatherDataId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Weatherdataid","description":"Weather data reference ID"}},"type":"object","required":["id","name","type","latitude","longitude","elevation","weatherSource"],"title":"EnvironmentConfig","description":"Environment configuration matching frontend structure"},"EnvironmentConfigPatch":{"properties":{"discovered_selection":{"anyOf":[{"additionalProperties":{"type":"boolean"},"type":"object"},{"type":"null"}],"title":"Discovered Selection","description":"Select/deselect discovered environments by id."},"simulated_environments":{"anyOf":[{"additionalProperties":{"additionalProperties":true,"type":"object"},"type":"object"},{"type":"null"}],"title":"Simulated Environments","description":"Replace the simulated-environment map (dashboard: predefined + custom)."},"trial_sites":{"anyOf":[{"additionalProperties":{"additionalProperties":true,"type":"object"},"type":"object"},{"type":"null"}],"title":"Trial Sites","description":"Replace the trial-site map."}},"additionalProperties":false,"type":"object","title":"EnvironmentConfigPatch"},"EnvironmentCreate":{"properties":{"id":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$"},{"type":"null"}],"title":"Id"},"name":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"title":"Name"},"note":{"anyOf":[{"type":"string","maxLength":20000},{"type":"null"}],"title":"Note"},"canvas":{"anyOf":[{"$ref":"#/components/schemas/EnvCanvas"},{"type":"null"}],"description":"Auto-positioned when omitted."},"plant_ids":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":5000},{"type":"null"}],"title":"Plant Ids"},"metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Metadata"}},"additionalProperties":false,"type":"object","title":"EnvironmentCreate"},"EnvironmentLocation":{"properties":{"id":{"type":"string","title":"Id","description":"Unique identifier for this location"},"latitude":{"type":"number","maximum":90.0,"minimum":-90.0,"title":"Latitude","description":"Latitude coordinate"},"longitude":{"type":"number","maximum":180.0,"minimum":-180.0,"title":"Longitude","description":"Longitude coordinate"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name","description":"Optional name/description for this location"}},"type":"object","required":["id","latitude","longitude"],"title":"EnvironmentLocation","description":"A location for environment profile generation"},"EnvironmentOut":{"properties":{"id":{"type":"string","title":"Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"},"tags":{"items":{},"type":"array","title":"Tags","default":[]},"canvas":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Canvas"},"plant_ids":{"items":{"type":"string"},"type":"array","title":"Plant Ids","default":[]},"metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Metadata"},"time_series":{"anyOf":[{"additionalProperties":{"additionalProperties":true,"type":"object"},"type":"object"},{"type":"null"}],"title":"Time Series"}},"type":"object","required":["id"],"title":"EnvironmentOut"},"EnvironmentProfile":{"properties":{"latitude":{"type":"number","title":"Latitude","description":"Latitude coordinate"},"longitude":{"type":"number","title":"Longitude","description":"Longitude coordinate"},"elevation":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Elevation","description":"Elevation above sea level (meters)"},"soil_profile":{"$ref":"#/components/schemas/SoilProfile","description":"Soil characteristics"},"soil_source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Soil Source","description":"Source of soil data (e.g., 'isric', 'hwsd')"},"yearly_climate_data":{"anyOf":[{"additionalProperties":{"$ref":"#/components/schemas/ClimateProfile"},"type":"object"},{"type":"null"}],"title":"Yearly Climate Data","description":"DEPRECATED: Now stored in subcollection. Year-specific climate data (year -> ClimateProfile)"},"climate_zone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Climate Zone","description":"Köppen-Geiger climate classification"},"management_profile":{"anyOf":[{"$ref":"#/components/schemas/ManagementProfile"},{"type":"null"}],"description":"Recommended management practices (generated during simulation)"},"ecoregion_data":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Ecoregion Data","description":"Ecoregion data from WWF Terrestrial Ecoregions dataset"},"display_yield":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Display Yield","description":"Most recent year's yield for most planted variety (kg/ha)"},"display_variety_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Variety Id","description":"The variety ID used for display_yield (or 'average' if no transaction data)"},"data_sources":{"additionalProperties":{"type":"string"},"type":"object","title":"Data Sources","description":"Data sources used"},"data_source_summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Data Source Summary","description":"Human-readable summary of data sources used for soil data"},"generated_at":{"type":"string","format":"date-time","title":"Generated At","description":"Timestamp of profile generation"},"agricultural_notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agricultural Notes","description":"Basic agricultural suitability notes"}},"type":"object","required":["latitude","longitude","soil_profile","data_sources","generated_at"],"title":"EnvironmentProfile","description":"Complete environment profile for a location\n\nNOTE: yearly_climate_data and simulation_results_summary are now stored in \nFirestore subcollections to avoid index limits. They should be loaded on-demand."},"EnvironmentProfileCluster":{"properties":{"cluster_id":{"type":"string","title":"Cluster Id","description":"Unique identifier for this cluster"},"title":{"type":"string","title":"Title","description":"AI-generated cluster title/name"},"description":{"type":"string","title":"Description","description":"AI-generated cluster description"},"environment_profiles":{"items":{"$ref":"#/components/schemas/EnvironmentProfile"},"type":"array","title":"Environment Profiles","description":"Environment profiles belonging to this cluster"},"center_latitude":{"type":"number","title":"Center Latitude","description":"Geographic center latitude of the cluster"},"center_longitude":{"type":"number","title":"Center Longitude","description":"Geographic center longitude of the cluster"},"profile_count":{"type":"integer","title":"Profile Count","description":"Number of environment profiles in this cluster"},"clustering_parameters":{"$ref":"#/components/schemas/ClusteringParameters","description":"Parameters used to generate this cluster"},"dominant_soil_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dominant Soil Type","description":"Most common soil texture in cluster"},"avg_temperature":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Avg Temperature","description":"Average temperature across cluster"},"avg_precipitation":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Avg Precipitation","description":"Average precipitation across cluster"},"climate_zone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Climate Zone","description":"Dominant climate zone in cluster"},"generated_at":{"type":"string","format":"date-time","title":"Generated At","description":"Timestamp when cluster was generated"}},"type":"object","required":["cluster_id","title","description","environment_profiles","center_latitude","center_longitude","profile_count","clustering_parameters","generated_at"],"title":"EnvironmentProfileCluster","description":"A cluster of environment profiles with AI-generated metadata"},"EnvironmentUpdate":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"title":"Name"},"note":{"anyOf":[{"type":"string","maxLength":20000},{"type":"null"}],"title":"Note"},"tags":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":500},{"type":"null"}],"title":"Tags"},"canvas":{"anyOf":[{"$ref":"#/components/schemas/EnvCanvas"},{"type":"null"}]},"plant_ids":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":5000},{"type":"null"}],"title":"Plant Ids","description":"Replace the plant list (updateEnvironmentPlants)."},"metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Metadata","description":"Merge; null removes an entry."}},"additionalProperties":false,"type":"object","title":"EnvironmentUpdate"},"EnvironmentsCreate":{"properties":{"environments":{"items":{"$ref":"#/components/schemas/EnvironmentCreate"},"type":"array","maxItems":200,"minItems":1,"title":"Environments"}},"additionalProperties":false,"type":"object","required":["environments"],"title":"EnvironmentsCreate"},"ErrorBody":{"properties":{"code":{"type":"string","title":"Code"},"message":{"type":"string","title":"Message"},"details":{"anyOf":[{},{"type":"null"}],"title":"Details"}},"type":"object","required":["code","message"],"title":"ErrorBody"},"ErrorResponse":{"properties":{"error":{"$ref":"#/components/schemas/ErrorBody"}},"type":"object","required":["error"],"title":"ErrorResponse"},"EvaluateOut":{"properties":{"dispatched":{"type":"boolean","title":"Dispatched"},"run_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Run Id","description":"The run started now, or the earlier run adopted for this batch."},"image_count":{"type":"integer","title":"Image Count","default":0},"pending":{"type":"integer","title":"Pending","description":"Eligible images still waiting after this evaluation.","default":0},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason","description":"Why nothing was dispatched (quota message, backoff, ...)."}},"type":"object","required":["dispatched"],"title":"EvaluateOut"},"ExperimenStartDateUpdate":{"properties":{"start_date":{"anyOf":[{"type":"string"},{"type":"string","format":"date-time"}],"title":"Start Date"}},"type":"object","required":["start_date"],"title":"ExperimenStartDateUpdate"},"ExperimentCreate":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":300,"minLength":1},{"type":"null"}],"title":"Name","description":"Defaults to 'New Experiment' (or 'Copy of <name>')."},"start_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Start Date"},"copy_from":{"anyOf":[{"$ref":"#/components/schemas/CopySource"},{"type":"null"}],"description":"Clone settings + variables (not plants/data) from an experiment you can read, like the dashboard's 'Clone as Template'."}},"additionalProperties":false,"type":"object","title":"ExperimentCreate"},"ExperimentCreated":{"properties":{"id":{"type":"string","title":"Id"},"team_id":{"type":"string","title":"Team Id"},"experiment":{"additionalProperties":true,"type":"object","title":"Experiment"}},"type":"object","required":["id","team_id","experiment"],"title":"ExperimentCreated"},"ExperimentNameUpdate":{"properties":{"name":{"type":"string","title":"Name"}},"type":"object","required":["name"],"title":"ExperimentNameUpdate"},"ExperimentSettings":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":300,"minLength":1},{"type":"null"}],"title":"Name"},"start_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Start Date"},"default_plant_name":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Default Plant Name"},"default_plant_color":{"anyOf":[{"type":"string","maxLength":50},{"type":"null"}],"title":"Default Plant Color"},"default_environment_name":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Default Environment Name"},"colors":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":1000},{"type":"null"}],"title":"Colors"},"use_custom_plant_model":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Use Custom Plant Model"},"downsampling":{"anyOf":[{"type":"string","maxLength":50},{"type":"null"}],"title":"Downsampling"},"scale":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Scale"}},"additionalProperties":false,"type":"object","title":"ExperimentSettings","description":"Top-level fields the dashboard edits (name, start date, defaults, 3D/canvas settings)."},"ExperimentSummary":{"properties":{"id":{"type":"string","title":"Id"},"team_id":{"type":"string","title":"Team Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"start_date":{"anyOf":[{},{"type":"null"}],"title":"Start Date"},"created_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created By"},"number_of_plants":{"type":"integer","title":"Number Of Plants","default":0},"number_of_environments":{"type":"integer","title":"Number Of Environments","default":0},"number_of_timestamps":{"type":"integer","title":"Number Of Timestamps","default":0},"number_of_variables":{"type":"integer","title":"Number Of Variables","default":0},"live":{"type":"boolean","title":"Live","description":"Public page is live (public_config/main.live).","default":false},"last_modified":{"anyOf":[{},{"type":"null"}],"title":"Last Modified"}},"type":"object","required":["id","team_id"],"title":"ExperimentSummary"},"ExperimentTokenRequest":{"properties":{"team_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Team Id"},"team_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Team Ids","default":[]}},"type":"object","title":"ExperimentTokenRequest"},"ExperimentTokenResponse":{"properties":{"token":{"type":"string","title":"Token"},"authorized_experiments":{"items":{"type":"string"},"type":"array","title":"Authorized Experiments"},"expires_in_seconds":{"type":"integer","title":"Expires In Seconds"}},"type":"object","required":["token","authorized_experiments","expires_in_seconds"],"title":"ExperimentTokenResponse"},"ExportCreate":{"properties":{"size":{"$ref":"#/components/schemas/ExportSize","default":"small"},"email_me":{"type":"boolean","title":"Email Me","default":true}},"additionalProperties":false,"type":"object","title":"ExportCreate"},"ExportOut":{"properties":{"id":{"type":"string","title":"Id"},"experiment_id":{"type":"string","title":"Experiment Id"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"download_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Download Url"},"type":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Type"},"created":{"anyOf":[{},{"type":"null"}],"title":"Created"},"updated":{"anyOf":[{},{"type":"null"}],"title":"Updated"}},"type":"object","required":["id","experiment_id"],"title":"ExportOut"},"ExportSize":{"type":"string","enum":["small","large"],"title":"ExportSize"},"FertilizationConfig":{"properties":{"enabled":{"type":"boolean","title":"Enabled","description":"Whether fertilization is enabled"},"nitrogenAmount":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Nitrogenamount","description":"Nitrogen amount if enabled"},"applicationDates":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Applicationdates","description":"Application dates"}},"type":"object","required":["enabled"],"title":"FertilizationConfig","description":"Fertilization configuration"},"FileIndexResponse":{"properties":{"experiment_id":{"type":"string","title":"Experiment Id"},"indexed_files":{"items":{"$ref":"#/components/schemas/IndexedFile"},"type":"array","title":"Indexed Files"},"total_size_bytes":{"type":"integer","title":"Total Size Bytes"},"file_count":{"type":"integer","title":"File Count"}},"type":"object","required":["experiment_id","indexed_files","total_size_bytes","file_count"],"title":"FileIndexResponse"},"FileMetadata":{"properties":{"id":{"type":"string","title":"Id"},"metadata":{"$ref":"#/components/schemas/FileMetadataContent"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"}},"additionalProperties":true,"type":"object","required":["id","metadata"],"title":"FileMetadata"},"FileMetadataContent":{"properties":{"name":{"type":"string","title":"Name"},"lastModified":{"type":"integer","title":"Lastmodified"},"type":{"type":"string","title":"Type"},"size":{"type":"integer","title":"Size"},"dateUploaded":{"type":"string","title":"Dateuploaded"}},"additionalProperties":true,"type":"object","required":["name","lastModified","type","size","dateUploaded"],"title":"FileMetadataContent"},"FileOut":{"properties":{"id":{"type":"string","title":"Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type"},"parent_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parent Id"},"mime_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mime Type"},"storage_kind":{"type":"string","title":"Storage Kind","description":"'firebase' (storage_path), 'remote' (url) or 'external'.","default":"firebase"},"storage_path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Storage Path"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url","description":"Where a remote file lives (http(s), file or s3 URL)."},"metadata":{"additionalProperties":true,"type":"object","title":"Metadata","default":{}},"variants":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Variants","default":[]},"external_ref":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"External Ref"}},"type":"object","required":["id"],"title":"FileOut"},"FileType":{"type":"string","enum":["csv","xlsx","image","pdf","txt","json","other"],"title":"FileType"},"FileUpdate":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string","maxLength":20000},{"type":"null"}],"title":"Description"},"plant_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Plant Ids"},"environment_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Environment Ids"},"timestamp_id":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$"},{"type":"null"}],"title":"Timestamp Id"},"created_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created Date"},"parent_id":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$"},{"type":"null"}],"title":"Parent Id","description":"Move into this folder (null = root)."},"url":{"anyOf":[{"type":"string","maxLength":2048},{"type":"null"}],"title":"Url","description":"Remote files only: the new location."}},"additionalProperties":false,"type":"object","title":"FileUpdate"},"FolderCreate":{"properties":{"name":{"type":"string","maxLength":500,"minLength":1,"title":"Name"},"parent_id":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$"},{"type":"null"}],"title":"Parent Id"}},"additionalProperties":false,"type":"object","required":["name"],"title":"FolderCreate"},"GlobalConfig":{"properties":{"co2Concentration":{"type":"number","title":"Co2Concentration","description":"CO2 concentration in ppm"},"season":{"type":"string","title":"Season","description":"Growing season"},"startDate":{"type":"string","title":"Startdate","description":"Start date for simulations (YYYY-MM-DD)"},"endType":{"type":"string","title":"Endtype","description":"End type: maturity, harvest_date, maximum_duration"},"endDate":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Enddate","description":"End date for simulations (YYYY-MM-DD)"},"maxDuration":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Maxduration","description":"Maximum duration in days"}},"type":"object","required":["co2Concentration","season","startDate","endType"],"title":"GlobalConfig","description":"Global configuration matching frontend structure"},"GoogleSignUp":{"properties":{"code":{"type":"string","maxLength":200,"minLength":1,"title":"Code"},"id_token":{"type":"string","maxLength":8192,"minLength":20,"title":"Id Token","description":"Firebase ID token from Google sign-in."},"display_name":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Display Name"}},"additionalProperties":false,"type":"object","required":["code","id_token"],"title":"GoogleSignUp"},"GoogleSignUpRequest":{"properties":{"code":{"type":"string","title":"Code"},"id_token":{"type":"string","title":"Id Token"},"display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Name"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"}},"type":"object","required":["code","id_token"],"title":"GoogleSignUpRequest"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"HeatmapCell":{"properties":{"x":{"type":"string","title":"X"},"y":{"type":"string","title":"Y"},"value":{"anyOf":[{"type":"number"},{"type":"integer"},{"type":"null"}],"title":"Value"},"text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Text"}},"type":"object","required":["x","y","value"],"title":"HeatmapCell"},"HeatmapData":{"properties":{"type":{"type":"string","const":"heatmap","title":"Type","default":"heatmap"},"title":{"type":"string","title":"Title"},"x_labels":{"items":{"type":"string"},"type":"array","title":"X Labels"},"y_labels":{"items":{"type":"string"},"type":"array","title":"Y Labels"},"data":{"items":{"$ref":"#/components/schemas/HeatmapCell"},"type":"array","title":"Data"},"color_scale":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Color Scale","default":"RdBu_r"},"min_value":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Min Value","default":-1.0},"max_value":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Max Value","default":1.0}},"type":"object","required":["title","x_labels","y_labels","data"],"title":"HeatmapData"},"HeatmapGenerate":{"properties":{"type":{"type":"string","pattern":"^(activity|churn)$","title":"Type"},"variety_id":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$"},{"type":"null"}],"title":"Variety Id"}},"additionalProperties":false,"type":"object","required":["type"],"title":"HeatmapGenerate"},"HeatmapGenerateRequest":{"properties":{"team_id":{"type":"string","title":"Team Id"},"type":{"type":"string","title":"Type"},"variety_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Variety Id"}},"type":"object","required":["team_id","type"],"title":"HeatmapGenerateRequest"},"HistogramData":{"properties":{"type":{"type":"string","const":"histogram","title":"Type","default":"histogram"},"title":{"type":"string","title":"Title"},"x_label":{"type":"string","title":"X Label"},"data":{"items":{"anyOf":[{"type":"number"},{"type":"integer"}]},"type":"array","title":"Data"},"bins":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Bins"},"show_normal_curve":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Show Normal Curve","default":false},"statistics":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Statistics"}},"type":"object","required":["title","x_label","data"],"title":"HistogramData"},"ImageFilters":{"properties":{"plant_tags":{"items":{"type":"string","maxLength":100,"minLength":1},"type":"array","maxItems":50,"title":"Plant Tags","description":"Images of a plant carrying any of these tags (case-insensitive)."},"plant_ids":{"items":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$"},"type":"array","maxItems":500,"title":"Plant Ids"},"environment_ids":{"items":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$"},"type":"array","maxItems":200,"title":"Environment Ids"},"timestamp_ids":{"items":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$"},"type":"array","maxItems":500,"title":"Timestamp Ids"},"uploaded_after":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Uploaded After","description":"metadata.dateUploaded at or after this instant."}},"additionalProperties":false,"type":"object","title":"ImageFilters","description":"Each non-empty filter must match (AND across kinds, OR within a list). Empty filters match every image."},"ImageRequest":{"properties":{"requestId":{"type":"string","title":"Requestid"},"experimentId":{"type":"string","title":"Experimentid"},"internalFilePath":{"type":"string","title":"Internalfilepath"}},"type":"object","required":["requestId","experimentId","internalFilePath"],"title":"ImageRequest"},"ImportedPoint":{"properties":{"id":{"type":"string","title":"Id"},"plant_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Plant Id"},"environment_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Environment Id"},"variable_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Variable Id"},"timestamp_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Timestamp Id"},"value":{"title":"Value"},"source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source"},"created_at":{"anyOf":[{},{"type":"null"}],"title":"Created At"}},"type":"object","required":["id"],"title":"ImportedPoint"},"IndexedFile":{"properties":{"filename":{"type":"string","title":"Filename"},"directory":{"type":"string","title":"Directory"},"description":{"type":"string","title":"Description"},"fileType":{"$ref":"#/components/schemas/FileType"},"sizeBytes":{"type":"integer","title":"Sizebytes"},"dateCreated":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Datecreated"},"storagePath":{"type":"string","title":"Storagepath"},"uploaded":{"type":"boolean","title":"Uploaded","default":false},"metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Metadata"},"shouldUploadToAssistant":{"type":"boolean","title":"Shoulduploadtoassistant","default":false},"uploadReason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Uploadreason"}},"type":"object","required":["filename","directory","description","fileType","sizeBytes","storagePath"],"title":"IndexedFile"},"InputConfig":{"properties":{"type":{"type":"string","title":"Type","description":"Input type: gene_locus, file, qtl_selection"},"value":{"type":"string","title":"Value","description":"Input value (gene locus coordinates, file path, etc.)"},"species":{"type":"string","title":"Species","description":"Species name"},"variety":{"type":"string","title":"Variety","description":"Variety name"},"chromosomeRegion":{"anyOf":[{"$ref":"#/components/schemas/ChromosomeRegion"},{"type":"null"}],"description":"Parsed chromosome region"}},"type":"object","required":["type","value","species","variety"],"title":"InputConfig","description":"Input configuration matching frontend structure"},"InputField":{"properties":{"name":{"type":"string","title":"Name","description":"The name of the input field."},"type":{"type":"string","enum":["dataframe","variable_mapping_single","variable_mapping_multiple","boolean","select","number","text"],"title":"Type","description":"The type of the input field."},"label":{"type":"string","title":"Label","description":"The user-friendly label for the input field."},"description":{"type":"string","title":"Description","description":"A description of the input field."},"defaultValue":{"anyOf":[{},{"type":"null"}],"title":"Defaultvalue","description":"The default value of the input field."},"options":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Options","description":"A list of options for 'select' type fields."},"required":{"type":"boolean","title":"Required","description":"Whether the input field is required.","default":true},"min_value":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Min Value","description":"The minimum value for a number input."},"max_value":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Max Value","description":"The maximum value for a number input."},"min_groups":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Min Groups","description":"The minimum number of groups required for categorical variables."},"max_groups":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Groups","description":"The maximum number of groups allowed for categorical variables."}},"type":"object","required":["name","type","label","description"],"title":"InputField"},"IrrigationConfig":{"properties":{"enabled":{"type":"boolean","title":"Enabled","description":"Whether irrigation is enabled"},"type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type","description":"Irrigation type: automatic, scheduled, none"}},"type":"object","required":["enabled"],"title":"IrrigationConfig","description":"Irrigation configuration"},"ItemIn":{"properties":{"type":{"type":"string","title":"Type"},"text":{"anyOf":[{"type":"string","maxLength":200000},{"type":"null"}],"title":"Text"},"chartId":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$"},{"type":"null"}],"title":"Chartid"},"fileId":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$"},{"type":"null"}],"title":"Fileid"},"position":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Position","description":"Insert position (default: end)."}},"additionalProperties":true,"type":"object","required":["type"],"title":"ItemIn"},"ItemPatch":{"properties":{"text":{"anyOf":[{"type":"string","maxLength":200000},{"type":"null"}],"title":"Text"}},"additionalProperties":true,"type":"object","title":"ItemPatch"},"Kind":{"type":"string","enum":["timeSeries","metadata"],"title":"Kind"},"LinearRegressionRequest":{"properties":{"data":{"additionalProperties":{"items":{},"type":"array"},"type":"object","title":"Data","description":"Dataset in wide-format. Each column represents a variable, and each row represents an observation."},"y":{"type":"string","title":"Y","description":"The numeric outcome variable to predict."},"x":{"items":{"type":"string"},"type":"array","title":"X","description":"The numeric predictor variables (independent variables)."},"add_intercept":{"type":"boolean","title":"Add Intercept","description":"Include a constant term (intercept) in the model.","default":true},"alpha":{"type":"number","exclusiveMaximum":1.0,"exclusiveMinimum":0.0,"title":"Alpha","description":"Significance level for confidence intervals.","default":0.05}},"type":"object","required":["data","y","x"],"title":"LinearRegressionRequest"},"ListOfListsRequest":{"properties":{"method":{"type":"string","title":"Method","description":"Statistical test method for homoscedasticity. 'levene' uses Levene's test (robust to non-normality), 'bartlett' uses Bartlett's test (assumes normality).","default":"levene"},"alpha":{"type":"number","exclusiveMaximum":1.0,"exclusiveMinimum":0.0,"title":"Alpha","description":"Significance level for the test, typically between 0 and 1 (exclusive). Determines the threshold for rejecting the null hypothesis of equal variances.","default":0.05},"data":{"items":{"items":{"type":"number"},"type":"array"},"type":"array","title":"Data","description":"Data for homoscedasticity test in list-of-lists format. Each inner list represents a group of observations, with float values for each observation."}},"type":"object","required":["data"],"title":"ListOfListsRequest"},"LongFormatRequest":{"properties":{"method":{"type":"string","title":"Method","description":"Statistical test method for homoscedasticity. 'levene' uses Levene's test (robust to non-normality), 'bartlett' uses Bartlett's test (assumes normality).","default":"levene"},"alpha":{"type":"number","exclusiveMaximum":1.0,"exclusiveMinimum":0.0,"title":"Alpha","description":"Significance level for the test, typically between 0 and 1 (exclusive). Determines the threshold for rejecting the null hypothesis of equal variances.","default":0.05},"data":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Data","description":"Data for homoscedasticity test in long format. A list of dictionaries, where each dictionary contains the dependent variable and group identifier for an observation."},"dv":{"type":"string","title":"Dv","description":"Name of the dependent variable column in the data, containing the numerical observations."},"group":{"type":"string","title":"Group","description":"Name of the group column in the data, identifying the group each observation belongs to."}},"type":"object","required":["data","dv","group"],"title":"LongFormatRequest"},"ManagementConfig":{"properties":{"sowingDate":{"type":"string","title":"Sowingdate","description":"Sowing date"},"sowingDensity":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Sowingdensity","description":"Sowing density"},"fertilization":{"$ref":"#/components/schemas/FertilizationConfig"},"irrigation":{"$ref":"#/components/schemas/IrrigationConfig"}},"type":"object","required":["sowingDate","fertilization","irrigation"],"title":"ManagementConfig","description":"Management configuration matching frontend structure"},"ManagementProfile":{"properties":{"sowing_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sowing Date","description":"Recommended sowing date (ISO format)"},"sowing_density":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Sowing Density","description":"Recommended sowing density (plants/ha)"},"planting_depth":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Planting Depth","description":"Recommended planting depth (cm)"},"nitrogen_application":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Nitrogen Application","description":"Recommended nitrogen application (kg N/ha)"},"phosphorus_application":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Phosphorus Application","description":"Recommended phosphorus application (kg P/ha)"},"potassium_application":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Potassium Application","description":"Recommended potassium application (kg K/ha)"},"fertilizer_timing":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fertilizer Timing","description":"Fertilizer application timing"},"irrigation_required":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Irrigation Required","description":"Whether irrigation is typically required"},"irrigation_amount":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Irrigation Amount","description":"Typical irrigation amount (mm)"},"drainage_required":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Drainage Required","description":"Whether drainage is typically required"},"harvest_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Harvest Date","description":"Expected harvest date (ISO format)"},"harvest_method":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Harvest Method","description":"Recommended harvest method"},"tillage_practice":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tillage Practice","description":"Common tillage practice in region"},"rotation_crops":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Rotation Crops","description":"Common rotation crops in region"}},"type":"object","title":"ManagementProfile","description":"Agronomic management parameters for an environment"},"ManualAnnotationRequest":{"properties":{"coco_data":{"additionalProperties":true,"type":"object","title":"Coco Data"},"storage_path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Storage Path"}},"type":"object","required":["coco_data"],"title":"ManualAnnotationRequest"},"ManualIn":{"properties":{"coco_data":{"additionalProperties":true,"type":"object","title":"Coco Data"}},"additionalProperties":false,"type":"object","required":["coco_data"],"title":"ManualIn"},"MeResponse":{"properties":{"uid":{"type":"string","title":"Uid"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"auth_type":{"type":"string","title":"Auth Type","description":"'firebase' or 'api_token'"},"scopes":{"items":{"type":"string"},"type":"array","title":"Scopes"},"token_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Token Id"},"token_team_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Token Team Ids"},"teams":{"items":{"$ref":"#/components/schemas/TeamMembership"},"type":"array","title":"Teams"}},"type":"object","required":["uid","auth_type","scopes","teams"],"title":"MeResponse"},"Member":{"properties":{"uid":{"type":"string","title":"Uid"},"role":{"type":"string","title":"Role"},"joined_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Joined At"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Name"}},"type":"object","required":["uid","role"],"title":"Member"},"MemberAdd":{"properties":{"email":{"anyOf":[{"type":"string","maxLength":320,"pattern":"^[^@\\s]+@[^@\\s]+$"},{"type":"null"}],"title":"Email","description":"Email of an existing Watney user (case-insensitive)."},"user_id":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$"},{"type":"null"}],"title":"User Id","description":"UID of an existing Watney user."}},"additionalProperties":false,"type":"object","title":"MemberAdd"},"MemberRoleUpdate":{"properties":{"role":{"type":"string","enum":["admin","member"],"title":"Role"}},"additionalProperties":false,"type":"object","required":["role"],"title":"MemberRoleUpdate"},"MultivariateNormalityRequest":{"properties":{"data":{"additionalProperties":{"items":{},"type":"array"},"type":"object","title":"Data","description":"Dataset in wide-format. Each column represents a variable, and each row represents an observation."},"variables":{"items":{"type":"string"},"type":"array","title":"Variables","description":"The numeric variables to test for multivariate normality."},"alpha":{"type":"number","exclusiveMaximum":1.0,"exclusiveMinimum":0.0,"title":"Alpha","description":"Significance level for the Henze-Zirkler multivariate normality test, typically between 0 and 1 (exclusive).","default":0.05}},"type":"object","required":["data","variables"],"title":"MultivariateNormalityRequest"},"NewTimestamp":{"properties":{"id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Id"},"name":{"type":"string","title":"Name","example":"Observation 1"},"date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"string"}],"title":"Date","example":"2024-01-01T00:00:00"}},"type":"object","required":["name","date"],"title":"NewTimestamp"},"New_Environment":{"properties":{"id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Id","description":"An optional unique identifier for the environment. If not provided, a new one will be generated."},"canvas":{"anyOf":[{"$ref":"#/components/schemas/EnvironmentCanvasPosition"},{"type":"null"}],"description":"The canvas position boundaries of the environment."},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name","description":"The name of the environment."},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note","description":"A note about the environment."},"plants":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Plants","description":"A list of plant IDs associated with the environment.","default":[]},"timeSeriesData":{"anyOf":[{"additionalProperties":{"additionalProperties":true,"type":"object"},"type":"object"},{"type":"null"}],"title":"Timeseriesdata","description":"Time series data for the environment."},"metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Metadata","description":"Metadata for the environment."}},"type":"object","title":"New_Environment","description":"Represents a new environment to be added to an experiment.\n\nAttributes:\n    id (Optional[str]): An optional unique identifier for the environment.\n    canvas (Optional[EnvironmentCanvasPosition]): The canvas position boundaries of the environment.\n    name (Optional[str]): The name of the environment.\n    note (Optional[str]): A note about the environment.\n    plants (Optional[List[str]]): A list of plant IDs associated with the environment.\n    timeSeriesData (Optional[Dict[str, Dict[str, Any]]]): Time series data for the environment.\n    metadata (Optional[Dict[str, Any]]): Metadata for the environment.","example":{"canvas":{"bottom":-10.0,"left":-5.0,"right":15.0,"top":10.0},"id":"env_001","metadata":{"location":"Sector 5"},"name":"Greenhouse A","note":"Controlled environment with optimal humidity.","plants":["plant_001","plant_002"],"timeSeriesData":{"2024-01-01T00:00:00Z":{"humidity":55,"temperature":22.5}}}},"New_Plant":{"properties":{"id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Id","description":"An optional unique identifier for the plant. If not provided, a new one will be generated."},"canvas":{"anyOf":[{"$ref":"#/components/schemas/CanvasPosition"},{"type":"null"}],"description":"The canvas position of the plant."},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name","description":"The name of the plant."},"tags":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Tags","description":"A list of tags associated with the plant."},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note","description":"A note about the plant."},"timeSeriesData":{"anyOf":[{"additionalProperties":{"additionalProperties":true,"type":"object"},"type":"object"},{"type":"null"}],"title":"Timeseriesdata","description":"Time series data for the plant."},"metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Metadata","description":"Metadata for the plant."},"cultivar":{"anyOf":[{"$ref":"#/components/schemas/app__models__experiment__Cultivar"},{"type":"null"}],"description":"Cultivar information for the plant."},"color":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Color","description":"The color of the plant."}},"type":"object","title":"New_Plant","example":{"canvas":{"left":10.5,"top":20.75},"color":"green","cultivar":{"gbifKey":123456,"gbifSpeciesKey":654321,"scientificName":"Solanum lycopersicum","species":"Tomato","synonym":false},"id":"plant_001","metadata":{"origin":"seedling"},"name":"Tommy","note":"Healthy and growing well.","tags":["tomato","green"],"timeSeriesData":{"2024-01-01T00:00:00Z":{"height":15.2,"leaf_count":5}}}},"NonParametricTestRequest":{"properties":{"metadata_rows":{"anyOf":[{"items":{"$ref":"#/components/schemas/SummaryTableRow"},"type":"array"},{"type":"null"}],"title":"Metadata Rows","description":"Optional metadata rows to prepend to the summary table (e.g., test configuration info)"},"test_type":{"type":"string","enum":["wilcoxon","mann_whitney_u","kruskal_wallis"],"title":"Test Type","description":"The type of non-parametric test to perform."},"data":{"additionalProperties":{"items":{},"type":"array"},"type":"object","title":"Data","description":"Dataset in wide-format. Each column represents a variable, and each row represents an observation."},"dv":{"type":"string","title":"Dv","description":"The numeric variable to analyze."},"group":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Group","description":"The categorical variable that defines the groups (required for Mann-Whitney U and Kruskal-Wallis)."},"alternative":{"type":"string","enum":["two-sided","less","greater"],"title":"Alternative","description":"The alternative hypothesis to test.","default":"two-sided"},"alpha":{"type":"number","exclusiveMaximum":1.0,"exclusiveMinimum":0.0,"title":"Alpha","description":"Significance level for the test.","default":0.05}},"type":"object","required":["test_type","data","dv"],"title":"NonParametricTestRequest"},"NormalityTestRequest":{"properties":{"data":{"additionalProperties":{"items":{},"type":"array"},"type":"object","title":"Data","description":"Dataset in wide-format. Each column represents a variable, and each row represents an observation."},"variable":{"type":"string","title":"Variable","description":"The numeric variable to test for normality."},"method":{"type":"string","enum":["shapiro","normaltest","jarque_bera"],"title":"Method","description":"The normality test method to use.","default":"shapiro"},"alpha":{"type":"number","exclusiveMaximum":1.0,"exclusiveMinimum":0.0,"title":"Alpha","description":"Significance level for the test.","default":0.05}},"type":"object","required":["data","variable"],"title":"NormalityTestRequest"},"Notebook":{"properties":{"experiment_id":{"type":"string","title":"Experiment Id"},"items":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Items","description":"Items in display order."},"items_order":{"items":{"type":"string"},"type":"array","title":"Items Order"},"last_modified":{"anyOf":[{},{"type":"null"}],"title":"Last Modified"}},"type":"object","required":["experiment_id","items","items_order"],"title":"Notebook"},"ObjectOut":{"properties":{"key":{"type":"string","title":"Key"},"url":{"type":"string","title":"Url","description":"`s3://bucket/key`, ready for `POST .../files/remote`."},"size":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Size"},"last_modified":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Modified"}},"type":"object","required":["key","url"],"title":"ObjectOut"},"ObjectsPage":{"properties":{"bucket":{"type":"string","title":"Bucket"},"prefix":{"type":"string","title":"Prefix"},"prefixes":{"items":{"type":"string"},"type":"array","title":"Prefixes","description":"Sub-folders (common prefixes) directly under `prefix`."},"objects":{"items":{"$ref":"#/components/schemas/ObjectOut"},"type":"array","title":"Objects"},"next_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Token"}},"type":"object","required":["bucket","prefix","prefixes","objects"],"title":"ObjectsPage"},"OrderIn":{"properties":{"items_order":{"items":{"type":"string"},"type":"array","title":"Items Order"}},"additionalProperties":false,"type":"object","required":["items_order"],"title":"OrderIn"},"Page_DataPoint_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/DataPoint"},"type":"array","title":"Items"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor"},"total":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total"}},"type":"object","required":["items"],"title":"Page[DataPoint]"},"Page_EnvironmentOut_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/EnvironmentOut"},"type":"array","title":"Items"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor"},"total":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total"}},"type":"object","required":["items"],"title":"Page[EnvironmentOut]"},"Page_ExperimentSummary_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/ExperimentSummary"},"type":"array","title":"Items"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor"},"total":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total"}},"type":"object","required":["items"],"title":"Page[ExperimentSummary]"},"Page_FileOut_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/FileOut"},"type":"array","title":"Items"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor"},"total":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total"}},"type":"object","required":["items"],"title":"Page[FileOut]"},"Page_ImportedPoint_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/ImportedPoint"},"type":"array","title":"Items"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor"},"total":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total"}},"type":"object","required":["items"],"title":"Page[ImportedPoint]"},"Page_PlantOut_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/PlantOut"},"type":"array","title":"Items"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor"},"total":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total"}},"type":"object","required":["items"],"title":"Page[PlantOut]"},"Page_RunOut_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/RunOut"},"type":"array","title":"Items"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor"},"total":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total"}},"type":"object","required":["items"],"title":"Page[RunOut]"},"PairwiseCorrRequest":{"properties":{"data":{"additionalProperties":{"items":{},"type":"array"},"type":"object","title":"Data","description":"Dataset in wide-format. Each column represents a variable, and each row represents an observation."},"variables":{"items":{"type":"string"},"type":"array","title":"Variables","description":"The numeric variables to include in the correlation matrix."},"method":{"type":"string","title":"Method","description":"Type of correlation to compute.","default":"pearson"},"alpha":{"type":"number","exclusiveMaximum":1.0,"exclusiveMinimum":0.0,"title":"Alpha","description":"Significance level for the correlations.","default":0.05}},"type":"object","required":["data","variables"],"title":"PairwiseCorrRequest"},"ParameterDefinition":{"properties":{"key":{"type":"string","title":"Key"},"label":{"type":"string","title":"Label"},"description":{"type":"string","title":"Description"},"unit":{"type":"string","title":"Unit"},"type":{"type":"string","title":"Type"},"required":{"type":"boolean","title":"Required","default":false},"min_value":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Min Value"},"max_value":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Max Value"},"default_value":{"anyOf":[{"type":"number"},{"items":{"type":"number"},"type":"array"},{"type":"null"}],"title":"Default Value"},"tooltip":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tooltip"},"group":{"type":"string","title":"Group","default":"general"},"priority":{"type":"integer","title":"Priority","default":1},"table_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Table Type"},"x_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X Label"},"y_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Y Label"},"x_min":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"X Min"},"x_max":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"X Max"},"y_min":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Y Min"},"y_max":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Y Max"}},"type":"object","required":["key","label","description","unit","type"],"title":"ParameterDefinition","description":"Definition of a crop parameter for form generation"},"ParameterGroup":{"properties":{"key":{"type":"string","title":"Key"},"label":{"type":"string","title":"Label"},"description":{"type":"string","title":"Description"},"icon":{"type":"string","title":"Icon"},"priority":{"type":"integer","title":"Priority"},"collapsible":{"type":"boolean","title":"Collapsible","default":false},"parameters":{"items":{"$ref":"#/components/schemas/ParameterDefinition"},"type":"array","title":"Parameters"}},"type":"object","required":["key","label","description","icon","priority","parameters"],"title":"ParameterGroup","description":"Group of related parameters"},"ParsedEnvironment":{"properties":{"environmentId":{"type":"string","title":"Environmentid"},"linkedPlants":{"items":{"type":"string"},"type":"array","title":"Linkedplants"},"boundingBox":{"anyOf":[{"$ref":"#/components/schemas/BoundingBox"},{"type":"null"}]},"exists":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Exists"},"addToExperiment":{"type":"boolean","title":"Addtoexperiment"}},"type":"object","required":["environmentId","linkedPlants","addToExperiment"],"title":"ParsedEnvironment"},"ParsedPlant":{"properties":{"plantId":{"type":"string","title":"Plantid"},"plantName":{"type":"string","title":"Plantname"},"images":{"items":{"type":"string"},"type":"array","title":"Images"},"values":{"items":{"$ref":"#/components/schemas/ParsedPlantValue"},"type":"array","title":"Values"},"linkedEnvironment":{"type":"string","title":"Linkedenvironment"},"addToExperiment":{"type":"boolean","title":"Addtoexperiment"},"exists":{"type":"boolean","title":"Exists"}},"type":"object","required":["plantId","plantName","images","values","linkedEnvironment","addToExperiment","exists"],"title":"ParsedPlant"},"ParsedPlantValue":{"properties":{"variableName":{"type":"string","title":"Variablename"},"fileId":{"type":"string","title":"Fileid"},"value":{"type":"number","title":"Value"}},"type":"object","required":["variableName","fileId","value"],"title":"ParsedPlantValue"},"PcaRequest":{"properties":{"data":{"additionalProperties":{"items":{},"type":"array"},"type":"object","title":"Data","description":"Data for PCA in wide format. A dictionary where keys are column names and values are lists of observations."},"variables":{"items":{"type":"string"},"type":"array","title":"Variables","description":"List of numeric variables to include in the PCA analysis."},"n_components":{"anyOf":[{"type":"number"},{"type":"integer"}],"title":"N Components","description":"Number of components to keep. If float (0-1), represents the percentage of variance to retain. If int, the exact number of components.","default":0.95},"method":{"type":"string","title":"Method","description":"Method to use for PCA. Options: 'pca' (Principal Component Analysis), 'sparse_pca' (Sparse PCA), 'trunc_svd' (Truncated SVD).","default":"pca"},"normalize":{"type":"boolean","title":"Normalize","description":"Whether to standardize the data before applying PCA (recommended for variables with different scales).","default":true},"target":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Target","description":"Name of the variable contained in data that can represent different categories in the dataset."}},"type":"object","required":["data","variables"],"title":"PcaRequest","description":"'\nRequest model for PCA analysis.\nContains the data in wide format, variables to analyze, number of components,\nmethod to use, and whether to normalize the data.\nAttributes:\n    data (Dict[str, List[Any]]): Data for PCA in wide format.\n    variables (List[str]): List of numeric variables to include in the PCA analysis.\n    n_components (Union[float, int]): Number of components to keep or percentage of variance to retain.\n    method (str): Method to use for PCA ('pca', 'sparse_pca', 'trunc_svd').\n    normalize (bool): Whether to standardize the data before applying PCA.\n    target (Optional[str]): Name of the variable for categorical grouping in biplot visualization.\nValidators:\n    check_data_lengths: Ensures all columns in data have the same length.\n    variables_in_data: Checks that all specified variables are present in the data.\n    check_n_components: Validates the n_components value.\n    check_method: Validates the method used for PCA.\nRaises:\n    ValueError: If any validation fails, such as mismatched lengths, missing variables,\n                invalid n_components, or unsupported method."},"PhenovationAddRequest":{"properties":{"experimentId":{"type":"string","title":"Experimentid"},"variables":{"items":{"$ref":"#/components/schemas/PlantTimeSeriesVariable"},"type":"array","title":"Variables"},"timestamps":{"additionalProperties":{"items":{"type":"string"},"type":"array"},"type":"object","title":"Timestamps"},"plants":{"items":{"$ref":"#/components/schemas/ParsedPlant"},"type":"array","title":"Plants"},"environments":{"items":{"$ref":"#/components/schemas/ParsedEnvironment"},"type":"array","title":"Environments"},"txtData":{"type":"string","title":"Txtdata"}},"type":"object","required":["experimentId","variables","timestamps","plants","environments","txtData"],"title":"PhenovationAddRequest"},"PipelineConfigRequest":{"properties":{"team_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Team Id","description":"ID of the team context."},"experiment_id":{"type":"string","title":"Experiment Id","description":"ID of the experiment context.","examples":["aV0xcNk2TJUVWRYyBiTn"]},"pipeline_type":{"type":"string","title":"Pipeline Type","description":"Type of pipeline (custom or plantcv).","examples":["custom"]},"model_id":{"type":"string","title":"Model Id","description":"ID of the PythonPipelineEditor document in Firestore, or a PlantCV operation ID.","example":"3ajvLfTD3oSBfMD3hLfd"},"image_ids":{"items":{"type":"string"},"type":"array","title":"Image Ids","description":"List of image IDs to process.","example":["4e7fce0d-23c1-458b-8fcc-cbd95d09cb60"]},"pipeline_name":{"type":"string","title":"Pipeline Name","description":"Name of the pipeline","example":"My Pipeline"}},"type":"object","required":["experiment_id","pipeline_type","model_id","image_ids","pipeline_name"],"title":"PipelineConfigRequest"},"PlantCreate":{"properties":{"id":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$"},{"type":"null"}],"title":"Id","description":"Optional ID (non-alphanumerics are stripped, as in the legacy API)."},"name":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"title":"Name"},"note":{"anyOf":[{"type":"string","maxLength":20000},{"type":"null"}],"title":"Note"},"color":{"anyOf":[{"type":"string","maxLength":50},{"type":"null"}],"title":"Color"},"tags":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":500},{"type":"null"}],"title":"Tags"},"cultivar":{"anyOf":[{"$ref":"#/components/schemas/app__api_v1__routers__plants__Cultivar"},{"type":"null"}]},"metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Metadata"},"time_series":{"anyOf":[{"additionalProperties":{"additionalProperties":true,"type":"object"},"type":"object"},{"type":"null"}],"title":"Time Series","description":"{timestamp_id: {variable_id: value}}"}},"additionalProperties":false,"type":"object","title":"PlantCreate"},"PlantOut":{"properties":{"id":{"type":"string","title":"Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"},"color":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Color"},"tags":{"items":{},"type":"array","title":"Tags","default":[]},"canvas":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Canvas"},"cultivar":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Cultivar"},"parent_ids":{"items":{"type":"string"},"type":"array","title":"Parent Ids","default":[]},"environment_ids":{"items":{"type":"string"},"type":"array","title":"Environment Ids","description":"Environments containing this plant."},"metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Metadata"},"time_series":{"anyOf":[{"additionalProperties":{"additionalProperties":true,"type":"object"},"type":"object"},{"type":"null"}],"title":"Time Series","description":"{timestamp_id: {variable_id: value}} (included when include_data=true)."}},"type":"object","required":["id"],"title":"PlantOut"},"PlantRef":{"properties":{"id":{"type":"string","title":"Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"}},"type":"object","required":["id"],"title":"PlantRef"},"PlantTimeSeriesVariable":{"properties":{"id":{"type":"string","title":"Id"},"unit":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Unit"},"exists":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Exists"},"variableName":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Variablename"},"variableNameOriginal":{"type":"string","title":"Variablenameoriginal"},"addToExperiment":{"type":"boolean","title":"Addtoexperiment"}},"type":"object","required":["id","variableNameOriginal","addToExperiment"],"title":"PlantTimeSeriesVariable"},"PlantUpdate":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"title":"Name"},"note":{"anyOf":[{"type":"string","maxLength":20000},{"type":"null"}],"title":"Note"},"color":{"anyOf":[{"type":"string","maxLength":50},{"type":"null"}],"title":"Color"},"tags":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":500},{"type":"null"}],"title":"Tags"},"canvas":{"anyOf":[{"$ref":"#/components/schemas/Canvas"},{"type":"null"}]},"cultivar":{"anyOf":[{"$ref":"#/components/schemas/app__api_v1__routers__plants__Cultivar"},{"type":"null"}],"description":"Set null to clear."},"parent_ids":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":1000},{"type":"null"}],"title":"Parent Ids"},"metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Metadata","description":"Merge {variable_id: value}; a null value removes the entry."}},"additionalProperties":false,"type":"object","title":"PlantUpdate"},"PlantsCreate":{"properties":{"plants":{"items":{"$ref":"#/components/schemas/PlantCreate"},"type":"array","maxItems":400,"minItems":1,"title":"Plants"},"environment_id":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$"},{"type":"null"}],"title":"Environment Id","description":"Place plants inside this environment (positions auto-generated)."}},"additionalProperties":false,"type":"object","required":["plants"],"title":"PlantsCreate"},"PlantsCreated":{"properties":{"created":{"items":{"type":"string"},"type":"array","title":"Created"},"not_placed":{"type":"integer","title":"Not Placed","description":"Plants that could not be positioned (spacing constraints)."},"outside_environment":{"type":"integer","title":"Outside Environment","default":0},"message":{"type":"string","title":"Message"}},"type":"object","required":["created","not_placed","message"],"title":"PlantsCreated"},"Point":{"properties":{"x":{"type":"integer","title":"X","description":"Pixel x"},"y":{"type":"integer","title":"Y","description":"Pixel y"},"positive":{"type":"boolean","title":"Positive","default":true}},"additionalProperties":false,"type":"object","required":["x","y"],"title":"Point"},"PointClickRequest":{"properties":{"points":{"items":{"$ref":"#/components/schemas/PointPrompt"},"type":"array","title":"Points"},"box":{"anyOf":[{"$ref":"#/components/schemas/BoxPrompt"},{"type":"null"}]},"morphology_size":{"type":"integer","title":"Morphology Size","default":5},"storage_path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Storage Path"},"multi_object":{"type":"boolean","title":"Multi Object","default":false}},"type":"object","title":"PointClickRequest"},"PointPrompt":{"properties":{"x":{"type":"integer","title":"X"},"y":{"type":"integer","title":"Y"},"positive":{"type":"boolean","title":"Positive","default":true}},"type":"object","required":["x","y"],"title":"PointPrompt"},"PointsIn":{"properties":{"points":{"items":{"$ref":"#/components/schemas/Point"},"type":"array","maxItems":200,"title":"Points"},"box":{"anyOf":[{"$ref":"#/components/schemas/Box"},{"type":"null"}]},"morphology_size":{"type":"integer","maximum":50.0,"minimum":0.0,"title":"Morphology Size","default":5},"multi_object":{"type":"boolean","title":"Multi Object","default":false}},"additionalProperties":false,"type":"object","title":"PointsIn"},"PortfolioBatchRequest":{"properties":{"portfolio_id":{"type":"string","title":"Portfolio Id","description":"Portfolio ID from Firestore"},"team_id":{"type":"string","title":"Team Id","description":"Team ID that owns the portfolio"},"simulation_years":{"items":{"type":"integer"},"type":"array","title":"Simulation Years","description":"Years to simulate","default":[2020,2021,2022,2023]},"simulation_mode":{"type":"string","title":"Simulation Mode","description":"Simulation mode for all runs","default":"water_limited"}},"type":"object","required":["portfolio_id","team_id"],"title":"PortfolioBatchRequest","description":"Request for portfolio-level batch simulation across varieties, environments, and years","example":{"portfolio_id":"abc123","simulation_mode":"water_limited","simulation_years":[2021,2022,2023],"team_id":"team456"}},"PortfolioCreate":{"properties":{"portfolio_name":{"type":"string","maxLength":300,"minLength":3,"title":"Portfolio Name"},"description":{"type":"string","maxLength":10000,"title":"Description","default":""},"species_id":{"type":"string","maxLength":200,"minLength":1,"title":"Species Id"}},"additionalProperties":false,"type":"object","required":["portfolio_name","species_id"],"title":"PortfolioCreate"},"PortfolioUpdate":{"properties":{"portfolio_name":{"anyOf":[{"type":"string","maxLength":300,"minLength":3},{"type":"null"}],"title":"Portfolio Name"},"description":{"anyOf":[{"type":"string","maxLength":10000},{"type":"null"}],"title":"Description"},"species_id":{"anyOf":[{"type":"string","maxLength":200,"minLength":1},{"type":"null"}],"title":"Species Id"},"modeling_mode":{"anyOf":[{"type":"string","enum":["crop_parameters","field_trial_upload"]},{"type":"null"}],"title":"Modeling Mode"},"onboarding_step":{"anyOf":[{"type":"string","enum":["home","onboarding","modeling","varieties","transactions","environments"]},{"type":"null"}],"title":"Onboarding Step"}},"additionalProperties":false,"type":"object","title":"PortfolioUpdate"},"PowerAnovaRequest":{"properties":{"eta_squared":{"anyOf":[{"type":"number","maximum":1.0,"minimum":0.0},{"type":"null"}],"title":"Eta Squared","description":"Effect size for ANOVA, measured as eta-squared. Must be between 0 and 1 (inclusive). Required if solving for power or sample size."},"k":{"anyOf":[{"type":"integer","minimum":2.0},{"type":"null"}],"title":"K","description":"Number of groups in the ANOVA. Must be at least 2. Required if solving for power or sample size."},"n":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"N","description":"Sample size per group. Must be at least 1. Required if solving for power or effect size."},"power":{"anyOf":[{"type":"number","maximum":1.0,"minimum":0.0},{"type":"null"}],"title":"Power","description":"Statistical power of the test, between 0 and 1 (inclusive). Required if solving for sample size or effect size."},"alpha":{"anyOf":[{"type":"number","maximum":1.0,"minimum":0.0},{"type":"null"}],"title":"Alpha","description":"Significance level for the test, typically between 0 and 1 (inclusive). Required if solving for power or sample size."}},"type":"object","title":"PowerAnovaRequest"},"PowerChi2Request":{"properties":{"dof":{"type":"number","exclusiveMinimum":0.0,"title":"Dof","description":"Degrees of freedom for the chi-squared test. Must be positive."},"w":{"anyOf":[{"type":"number","minimum":0.0},{"type":"null"}],"title":"W","description":"Effect size for chi-squared test, measured as Cohen's w. Must be non-negative. Required if solving for power or sample size."},"n":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"N","description":"Total sample size. Must be at least 1. Required if solving for power or effect size."},"power":{"anyOf":[{"type":"number","maximum":1.0,"minimum":0.0},{"type":"null"}],"title":"Power","description":"Statistical power of the test, between 0 and 1 (inclusive). Required if solving for sample size or effect size."},"alpha":{"anyOf":[{"type":"number","maximum":1.0,"minimum":0.0},{"type":"null"}],"title":"Alpha","description":"Significance level for the test, typically between 0 and 1 (inclusive). Required if solving for power or sample size."}},"type":"object","required":["dof"],"title":"PowerChi2Request"},"PowerCorrRequest":{"properties":{"r":{"anyOf":[{"type":"number","maximum":1.0,"minimum":-1.0},{"type":"null"}],"title":"R","description":"Correlation coefficient for the test. Must be between -1 and 1 (inclusive). Required if solving for power or sample size."},"n":{"anyOf":[{"type":"integer","minimum":4.0},{"type":"null"}],"title":"N","description":"Sample size for the correlation test. Must be at least 4. Required if solving for power or effect size."},"power":{"anyOf":[{"type":"number","maximum":1.0,"minimum":0.0},{"type":"null"}],"title":"Power","description":"Statistical power of the test, between 0 and 1 (inclusive). Required if solving for sample size or effect size."},"alpha":{"anyOf":[{"type":"number","maximum":1.0,"minimum":0.0},{"type":"null"}],"title":"Alpha","description":"Significance level for the test, typically between 0 and 1 (inclusive). Required if solving for power or sample size."},"alternative":{"$ref":"#/components/schemas/Alternative","description":"Type of alternative hypothesis. 'two-sided' tests for non-zero correlation, 'less' for negative correlation, 'greater' for positive correlation.","default":"two-sided"}},"type":"object","title":"PowerCorrRequest"},"PowerTTestRequest":{"properties":{"d":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"D","description":"Effect size for t-test, measured as Cohen's d. Required if solving for power or sample size."},"n":{"anyOf":[{"type":"integer","minimum":2.0},{"type":"null"}],"title":"N","description":"Sample size (per group for two-sample, total for one-sample or paired). Must be at least 2. Required if solving for power or effect size."},"power":{"anyOf":[{"type":"number","maximum":1.0,"minimum":0.0},{"type":"null"}],"title":"Power","description":"Statistical power of the test, between 0 and 1 (inclusive). Required if solving for sample size or effect size."},"alpha":{"anyOf":[{"type":"number","maximum":1.0,"minimum":0.0},{"type":"null"}],"title":"Alpha","description":"Significance level for the test, typically between 0 and 1 (inclusive). Required if solving for power or sample size."},"contrast":{"$ref":"#/components/schemas/Contrast","description":"Type of t-test: 'two-sample' for independent samples, 'one-sample' for single sample, 'paired' for paired samples.","default":"two-sample"},"alternative":{"$ref":"#/components/schemas/Alternative","description":"Type of alternative hypothesis. 'two-sided' tests for difference, 'less' tests for smaller mean, 'greater' tests for larger mean.","default":"two-sided"}},"type":"object","title":"PowerTTestRequest"},"PredictedTimestamp":{"properties":{"date":{"type":"string","title":"Date"}},"type":"object","required":["date"],"title":"PredictedTimestamp"},"Profile":{"properties":{"uid":{"type":"string","title":"Uid"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Name"},"photo_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Photo Url"}},"type":"object","required":["uid"],"title":"Profile"},"ProfileUpdate":{"properties":{"display_name":{"type":"string","maxLength":200,"minLength":1,"title":"Display Name"}},"additionalProperties":false,"type":"object","required":["display_name"],"title":"ProfileUpdate"},"PublicConfigUpdate":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":300,"minLength":1},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string","maxLength":50000},{"type":"null"}],"title":"Description"},"allow_templating":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Allow Templating"},"hidden_variables":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":2000},{"type":"null"}],"title":"Hidden Variables"},"notebook_sections":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Notebook Sections","description":"{experimentSummary, growthProtocol, summaryOfFindings: item id, additionalSections: [ids]}"},"links":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array","maxItems":200},{"type":"null"}],"title":"Links"},"media":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array","maxItems":200},{"type":"null"}],"title":"Media"},"gallery":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Gallery","description":"{type: 'gallery', images: [{storagePath, name, description, ...}]} — first image is the cover."}},"additionalProperties":false,"type":"object","title":"PublicConfigUpdate"},"PublicSignedUrlRequest":{"properties":{"experiment_id":{"type":"string","title":"Experiment Id"},"image_paths":{"items":{"type":"string"},"type":"array","title":"Image Paths"}},"type":"object","required":["experiment_id","image_paths"],"title":"PublicSignedUrlRequest","description":"Request for public signed URLs"},"PublicSignedUrlResponse":{"properties":{"urls":{"additionalProperties":true,"type":"object","title":"Urls"}},"type":"object","required":["urls"],"title":"PublicSignedUrlResponse","description":"Response with public signed URLs"},"PublishExperimentRequest":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"cover_image_path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cover Image Path"},"image_paths":{"items":{"type":"string"},"type":"array","title":"Image Paths","default":[]},"source_team_id":{"type":"string","title":"Source Team Id"},"allow_templating":{"type":"boolean","title":"Allow Templating","default":true},"teamName":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Teamname"},"teamLogoUrl":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Teamlogourl"},"numberOfPlants":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Numberofplants"},"numberOfEnvironments":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Numberofenvironments"},"plantSpecies":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Plantspecies"},"environmentSpecies":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Environmentspecies"},"environmentsArray":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Environmentsarray"},"gallery":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Gallery"},"notebookSections":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Notebooksections"},"notebookContent":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Notebookcontent"},"hiddenVariables":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Hiddenvariables"},"variables":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Variables"},"links":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Links"},"media":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Media"}},"type":"object","required":["id","name","source_team_id"],"title":"PublishExperimentRequest","description":"Request body for publishing an experiment"},"PublishExperimentResponse":{"properties":{"success":{"type":"boolean","title":"Success"},"public_url":{"type":"string","title":"Public Url"},"cover_image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cover Image Url"},"signed_image_urls":{"additionalProperties":true,"type":"object","title":"Signed Image Urls","default":{}}},"type":"object","required":["success","public_url"],"title":"PublishExperimentResponse","description":"Response after publishing an experiment"},"QtlAnalysisParameter":{"properties":{"qtlId":{"type":"string","title":"Qtlid","description":"Unique identifier for the QTL"},"qtl":{"type":"string","title":"Qtl","description":"QTL identifier"},"parameter":{"type":"string","title":"Parameter","description":"Parameter affected (e.g., 'Plant Height', 'Yield')"},"chromosome":{"type":"string","title":"Chromosome","description":"Chromosome location"},"startPosition":{"type":"integer","title":"Startposition","description":"Start position on chromosome"},"stopPosition":{"type":"integer","title":"Stopposition","description":"Stop position on chromosome"},"effectSize":{"type":"number","title":"Effectsize","description":"Effect size of the QTL"},"unit":{"type":"string","title":"Unit","description":"Unit of measurement"},"confidence":{"type":"number","title":"Confidence","description":"Confidence level"},"source":{"type":"string","title":"Source","description":"Source of QTL data"},"dataSource":{"type":"string","title":"Datasource","description":"Data source: qtl_data or qtaro_rice"},"variation":{"$ref":"#/components/schemas/QtlVariation","description":"Variation configuration"},"wofostMapping":{"$ref":"#/components/schemas/WofostMapping","description":"WOFOST parameter mapping"}},"type":"object","required":["qtlId","qtl","parameter","chromosome","startPosition","stopPosition","effectSize","unit","confidence","source","dataSource","variation","wofostMapping"],"title":"QtlAnalysisParameter","description":"QTL parameter matching frontend structure exactly"},"QtlVariation":{"properties":{"type":{"type":"string","title":"Type","description":"Type of variation: percentage, absolute, multiplicative"},"value":{"type":"number","title":"Value","description":"How much to modify the parameter"},"description":{"type":"string","title":"Description","description":"Human-readable description of the effect"}},"type":"object","required":["type","value","description"],"title":"QtlVariation","description":"QTL variation configuration"},"QueuedBatchEnvironmentRequest":{"properties":{"locations":{"items":{"$ref":"#/components/schemas/EnvironmentLocation"},"type":"array","minItems":1,"title":"Locations","description":"List of locations to analyze (unlimited)"},"include_agricultural_notes":{"type":"boolean","title":"Include Agricultural Notes","description":"Whether to include agricultural suitability notes","default":true}},"type":"object","required":["locations"],"title":"QueuedBatchEnvironmentRequest","description":"Request model for queued batch environment profile generation (unlimited locations)"},"RemoteFileIn":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string","maxLength":20000},{"type":"null"}],"title":"Description"},"plant_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Plant Ids"},"environment_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Environment Ids"},"timestamp_id":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$"},{"type":"null"}],"title":"Timestamp Id"},"created_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created Date"},"url":{"type":"string","maxLength":2048,"title":"Url"},"parent_id":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$"},{"type":"null"}],"title":"Parent Id"},"mime_type":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Mime Type","description":"Default: guessed from the name."},"size":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Size"}},"additionalProperties":false,"type":"object","required":["url"],"title":"RemoteFileIn"},"RemoteFileResult":{"properties":{"created":{"type":"boolean","title":"Created","description":"False when a file with this URL already existed (it is returned unchanged)."},"file":{"$ref":"#/components/schemas/FileOut"}},"type":"object","required":["created","file"],"title":"RemoteFileResult"},"RemoteFilesCreate":{"properties":{"files":{"items":{"$ref":"#/components/schemas/RemoteFileIn"},"type":"array","maxItems":500,"minItems":1,"title":"Files"}},"additionalProperties":false,"type":"object","required":["files"],"title":"RemoteFilesCreate"},"RunCreate":{"properties":{"pipeline_type":{"type":"string","pattern":"^(custom|plantcv)$","title":"Pipeline Type","default":"custom"},"script_id":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$"},{"type":"null"}],"title":"Script Id","description":"custom: team script id (its current code version runs)."},"model_id":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$"},{"type":"null"}],"title":"Model Id","description":"Explicit code version id of one of the team's scripts."},"image_ids":{"anyOf":[{"items":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$"},"type":"array","maxItems":10000,"minItems":1},{"type":"null"}],"title":"Image Ids","description":"Explicit images; exclusive with selection."},"selection":{"anyOf":[{"$ref":"#/components/schemas/ImageFilters"},{"type":"null"}],"description":"Run every image matching these filters (see POST .../files/select); exclusive with image_ids."},"pipeline_name":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"title":"Pipeline Name"}},"additionalProperties":false,"type":"object","title":"RunCreate"},"RunOut":{"properties":{"id":{"type":"string","title":"Id"},"experiment_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Experiment Id"},"pipeline_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pipeline Name"},"pipeline_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pipeline Type"},"model_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model Id"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"completion":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Completion"},"is_visible":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Visible"},"images":{"additionalProperties":true,"type":"object","title":"Images","default":{}},"logs":{"anyOf":[{"items":{},"type":"array"},{"type":"null"}],"title":"Logs"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"created_at":{"anyOf":[{},{"type":"null"}],"title":"Created At"},"updated_at":{"anyOf":[{},{"type":"null"}],"title":"Updated At"},"recovery_required":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Recovery Required"},"recovery_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Recovery Reason"},"execution_finished_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Execution Finished Count"}},"type":"object","required":["id"],"title":"RunOut"},"RunUpdate":{"properties":{"is_visible":{"type":"boolean","title":"Is Visible"}},"additionalProperties":false,"type":"object","required":["is_visible"],"title":"RunUpdate"},"ScatterDataPoint":{"properties":{"x":{"anyOf":[{"type":"number"},{"type":"integer"}],"title":"X"},"y":{"anyOf":[{"type":"number"},{"type":"integer"}],"title":"Y"}},"type":"object","required":["x","y"],"title":"ScatterDataPoint"},"ScatterPlotData":{"properties":{"type":{"type":"string","const":"scatter_plot","title":"Type","default":"scatter_plot"},"title":{"type":"string","title":"Title"},"x_label":{"type":"string","title":"X Label"},"y_label":{"type":"string","title":"Y Label"},"data":{"items":{"$ref":"#/components/schemas/ScatterDataPoint"},"type":"array","title":"Data"},"regression_line":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Regression Line","default":false}},"type":"object","required":["title","x_label","y_label","data"],"title":"ScatterPlotData"},"ScriptCreate":{"properties":{"name":{"type":"string","maxLength":300,"minLength":1,"title":"Name"},"description":{"type":"string","maxLength":5000,"title":"Description","default":""},"code":{"type":"string","maxLength":500000,"minLength":1,"title":"Code"},"packages":{"items":{"type":"string"},"type":"array","maxItems":200,"title":"Packages"},"environment_variables":{"items":{"$ref":"#/components/schemas/EnvVar"},"type":"array","maxItems":100,"title":"Environment Variables"}},"additionalProperties":false,"type":"object","required":["name","code"],"title":"ScriptCreate"},"ScriptOut":{"properties":{"id":{"type":"string","title":"Id","description":"Stable script id (first code version id)."},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Version"},"current_code_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Current Code Id"},"previous_code_ids":{"items":{"type":"string"},"type":"array","title":"Previous Code Ids","default":[]},"last_run_success":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Last Run Success"},"test_image_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Test Image Id"},"test_image_experiment_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Test Image Experiment Id"}},"type":"object","required":["id"],"title":"ScriptOut"},"ScriptTest":{"properties":{"image_id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","title":"Image Id"},"code_id":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$"},{"type":"null"}],"title":"Code Id","description":"Defaults to the script's current version."}},"additionalProperties":false,"type":"object","required":["image_id"],"title":"ScriptTest"},"ScriptUpdate":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":300,"minLength":1},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string","maxLength":5000},{"type":"null"}],"title":"Description"}},"additionalProperties":false,"type":"object","title":"ScriptUpdate"},"SegmentationResponse":{"properties":{"status":{"type":"string","title":"Status"},"task_id":{"type":"string","title":"Task Id"},"pipeline_run_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pipeline Run Id"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"}},"type":"object","required":["status","task_id"],"title":"SegmentationResponse"},"Selection":{"properties":{"image_ids":{"items":{"type":"string"},"type":"array","title":"Image Ids"},"count":{"type":"integer","title":"Count"}},"type":"object","required":["image_ids","count"],"title":"Selection"},"SendDemoLinkRequest":{"properties":{"email":{"type":"string","format":"email","title":"Email"},"demo_url":{"type":"string","title":"Demo Url"}},"type":"object","required":["email","demo_url"],"title":"SendDemoLinkRequest"},"SignUpCodeRequest":{"properties":{"code":{"type":"string","title":"Code"},"email":{"type":"string","title":"Email"},"password":{"type":"string","title":"Password"}},"type":"object","required":["code","email","password"],"title":"SignUpCodeRequest"},"SignedUrlResponseItem":{"properties":{"requestId":{"type":"string","title":"Requestid"},"signedUrl":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Signedurl"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"}},"type":"object","required":["requestId"],"title":"SignedUrlResponseItem"},"SimulationRun":{"properties":{"simulation_years":{"items":{"type":"integer"},"type":"array","maxItems":50,"minItems":1,"title":"Simulation Years"},"reset_results":{"type":"boolean","title":"Reset Results","description":"Delete previous simulation results first (dashboard behaviour).","default":true},"simulation_mode":{"type":"string","pattern":"^(potential|water_limited|water_limited_cwb)$","title":"Simulation Mode","default":"water_limited"}},"additionalProperties":false,"type":"object","title":"SimulationRun"},"SoilConfig":{"properties":{"soilType":{"type":"string","title":"Soiltype","description":"Soil type identifier"},"waterBalanceType":{"type":"string","title":"Waterbalancetype","description":"Water balance type for simulation"}},"type":"object","required":["soilType","waterBalanceType"],"title":"SoilConfig","description":"Soil configuration matching frontend structure"},"SoilProfile":{"properties":{"ph_h2o":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Ph H2O","description":"Soil pH in H2O (0-14)"},"clay_content":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Clay Content","description":"Clay content (%)"},"sand_content":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Sand Content","description":"Sand content (%)"},"silt_content":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Silt Content","description":"Silt content (%)"},"organic_carbon":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Organic Carbon","description":"Soil organic carbon (g/kg)"},"bulk_density":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Bulk Density","description":"Bulk density (cg/cm³)"},"cation_exchange_capacity":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Cation Exchange Capacity","description":"CEC (cmol/kg)"},"nitrogen":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Nitrogen","description":"Total nitrogen (g/kg)"},"coarse_fragments":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Coarse Fragments","description":"Coarse fragments volumetric (%)"},"available_water_capacity":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Available Water Capacity","description":"Available water capacity (mm/m) - from LUCAS"},"carbonate":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Carbonate","description":"Carbonate content CaCO3 (g/kg)"},"electrical_conductivity":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Electrical Conductivity","description":"Electrical conductivity EC (dS/m)"},"ph_cacl2":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Ph Cacl2","description":"Soil pH in CaCl2 solution"},"extractable_phosphorus":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Extractable Phosphorus","description":"Extractable phosphorus P (mg/kg)"},"extractable_potassium":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Extractable Potassium","description":"Extractable potassium K (mg/kg)"},"texture_class":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Texture Class","description":"USDA soil texture classification"},"drainage_class":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Drainage Class","description":"Estimated drainage class"}},"type":"object","title":"SoilProfile","description":"Soil characteristics from SoilGrids API and AI4SoilHealth"},"StartSessionRequest":{"properties":{"experiment_id":{"type":"string","title":"Experiment Id"},"indexed_files":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Indexed Files"}},"type":"object","required":["experiment_id","indexed_files"],"title":"StartSessionRequest","description":"Request to start objective-based import session."},"SummaryTableData":{"properties":{"type":{"type":"string","const":"summary_table","title":"Type","default":"summary_table"},"title":{"type":"string","title":"Title"},"data":{"items":{"$ref":"#/components/schemas/SummaryTableRow"},"type":"array","title":"Data"}},"type":"object","required":["title","data"],"title":"SummaryTableData"},"SummaryTableRow":{"properties":{"label":{"type":"string","title":"Label"},"value":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"integer"},{"type":"null"}],"title":"Value"}},"type":"object","required":["label","value"],"title":"SummaryTableRow"},"TTestRequest":{"properties":{"metadata_rows":{"anyOf":[{"items":{"$ref":"#/components/schemas/SummaryTableRow"},"type":"array"},{"type":"null"}],"title":"Metadata Rows","description":"Optional metadata rows to prepend to the summary table (e.g., test configuration info)"},"data":{"additionalProperties":{"items":{},"type":"array"},"type":"object","title":"Data","description":"Dataset in wide-format. Each column represents a variable, and each row represents an observation."},"x":{"type":"string","title":"X","description":"The grouping variable column name (categorical) for independent samples t-test, or the first variable for paired t-test."},"y":{"type":"string","title":"Y","description":"The dependent variable column name (numeric) for independent samples t-test, or the second variable for paired t-test."},"paired":{"type":"boolean","title":"Paired","description":"If True, performs a paired t-test; if False, performs an independent samples t-test.","default":false},"alternative":{"type":"string","title":"Alternative","description":"Type of alternative hypothesis. 'two-sided' tests for difference, 'less' tests if x mean is less than y mean, 'greater' tests if x mean is greater than y mean.","default":"two-sided"},"correction":{"type":"string","title":"Correction","description":"Correction for unequal variances in independent t-tests. 'auto' applies Welch's correction if needed, True forces correction, False assumes equal variances.","default":"auto"},"r":{"type":"number","exclusiveMaximum":1.0,"exclusiveMinimum":0.0,"title":"R","description":"Effect size for power analysis (correlation coefficient for paired tests), typically between 0 and 1 (exclusive).","default":0.707},"confidence":{"type":"number","exclusiveMaximum":1.0,"exclusiveMinimum":0.0,"title":"Confidence","description":"Confidence level for the confidence interval of the mean difference, typically between 0 and 1 (exclusive).","default":0.95}},"type":"object","required":["data","x","y"],"title":"TTestRequest"},"TagBody":{"properties":{"tag":{"type":"string","maxLength":200,"minLength":1,"title":"Tag"}},"additionalProperties":false,"type":"object","required":["tag"],"title":"TagBody"},"Team":{"properties":{"id":{"type":"string","title":"Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"image":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image","description":"Team logo URL (`image` or legacy `photoURL`)."},"role":{"type":"string","title":"Role","description":"Caller's role in this team."},"members":{"items":{"$ref":"#/components/schemas/Member"},"type":"array","title":"Members"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"}},"type":"object","required":["id","role","members"],"title":"Team"},"TeamClaimRequest":{"properties":{"team_id":{"type":"string","title":"Team Id"}},"type":"object","required":["team_id"],"title":"TeamClaimRequest"},"TeamCreate":{"properties":{"name":{"type":"string","maxLength":200,"minLength":1,"title":"Name"}},"additionalProperties":false,"type":"object","required":["name"],"title":"TeamCreate"},"TeamMembership":{"properties":{"id":{"type":"string","title":"Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"role":{"type":"string","title":"Role"}},"type":"object","required":["id","role"],"title":"TeamMembership"},"TeamUpdate":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":200,"minLength":1},{"type":"null"}],"title":"Name"}},"additionalProperties":false,"type":"object","title":"TeamUpdate"},"TestConfiguration":{"properties":{"id":{"type":"string","title":"Id","description":"The unique identifier for the test."},"name":{"type":"string","title":"Name","description":"The name of the statistical test."},"description":{"type":"string","title":"Description","description":"A description of the statistical test."},"category":{"type":"string","title":"Category","description":"The category of the statistical test."},"endpoint":{"type":"string","title":"Endpoint","description":"The API endpoint for running the statistical test."},"inputs":{"items":{"$ref":"#/components/schemas/InputField"},"type":"array","title":"Inputs","description":"A list of input fields for the statistical test."},"visualizations":{"items":{"$ref":"#/components/schemas/VisualizationInfo"},"type":"array","title":"Visualizations","description":"A list of visualizations to display for the test results.","default":[]}},"type":"object","required":["id","name","description","category","endpoint","inputs"],"title":"TestConfiguration"},"TestPipelineRequest":{"properties":{"pipeline_id":{"type":"string","title":"Pipeline Id","description":"ID of the python pipeline to test"},"image_id":{"type":"string","title":"Image Id","description":"ID of the test image to use"},"experiment_id":{"type":"string","title":"Experiment Id","description":"ID of the experiment context"},"storage_path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Storage Path","description":"Optional full storage path to test image"}},"type":"object","required":["pipeline_id","image_id","experiment_id"],"title":"TestPipelineRequest"},"TestResultResponse":{"properties":{"visualizations":{"items":{"anyOf":[{"$ref":"#/components/schemas/SummaryTableData"},{"$ref":"#/components/schemas/BoxPlotData"},{"$ref":"#/components/schemas/ScatterPlotData"},{"$ref":"#/components/schemas/HistogramData"},{"$ref":"#/components/schemas/HeatmapData"},{"$ref":"#/components/schemas/BarPlotData"},{"$ref":"#/components/schemas/BiplotData"}]},"type":"array","title":"Visualizations"}},"type":"object","required":["visualizations"],"title":"TestResultResponse"},"TextIn":{"properties":{"class_names":{"items":{"type":"string"},"type":"array","maxItems":20,"minItems":1,"title":"Class Names"},"morphology_size":{"type":"integer","maximum":50.0,"minimum":0.0,"title":"Morphology Size","default":5}},"additionalProperties":false,"type":"object","required":["class_names"],"title":"TextIn"},"TextPromptRequest":{"properties":{"class_names":{"items":{"type":"string"},"type":"array","title":"Class Names"},"morphology_size":{"type":"integer","title":"Morphology Size","default":5},"storage_path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Storage Path"}},"type":"object","required":["class_names"],"title":"TextPromptRequest"},"TimestampCreate":{"properties":{"id":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$"},{"type":"null"}],"title":"Id"},"name":{"type":"string","maxLength":300,"minLength":1,"title":"Name"},"date":{"type":"string","format":"date-time","title":"Date"}},"additionalProperties":false,"type":"object","required":["name","date"],"title":"TimestampCreate"},"TimestampOut":{"properties":{"id":{"type":"string","title":"Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"date":{"anyOf":[{},{"type":"null"}],"title":"Date"}},"type":"object","required":["id"],"title":"TimestampOut"},"TimestampUpdate":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":300,"minLength":1},{"type":"null"}],"title":"Name"},"date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Date"}},"additionalProperties":false,"type":"object","title":"TimestampUpdate"},"TimestampsCreate":{"properties":{"timestamps":{"items":{"$ref":"#/components/schemas/TimestampCreate"},"type":"array","maxItems":200,"minItems":1,"title":"Timestamps"}},"additionalProperties":false,"type":"object","required":["timestamps"],"title":"TimestampsCreate"},"TokenCreate":{"properties":{"name":{"type":"string","maxLength":100,"minLength":1,"title":"Name","description":"Label to recognise the token."},"scopes":{"items":{"type":"string"},"type":"array","title":"Scopes","description":"Any of 'read', 'write', 'admin' (write implies read, admin implies write)."},"expires_in_days":{"type":"integer","minimum":1.0,"title":"Expires In Days","description":"Lifetime in days (clamped to the server maximum).","default":90},"team_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Team Ids","description":"Optional allow-list of team IDs. Omit for all of your teams."}},"additionalProperties":false,"type":"object","required":["name"],"title":"TokenCreate"},"TokenCreated":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"scopes":{"items":{"type":"string"},"type":"array","title":"Scopes"},"team_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Team Ids"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At"},"last_used_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Used At"},"revoked_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Revoked At"},"active":{"type":"boolean","title":"Active"},"token":{"type":"string","title":"Token","description":"The secret token. Shown only once — store it securely."}},"type":"object","required":["id","name","scopes","active","token"],"title":"TokenCreated"},"TokenInfo":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"scopes":{"items":{"type":"string"},"type":"array","title":"Scopes"},"team_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Team Ids"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At"},"last_used_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Used At"},"revoked_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Revoked At"},"active":{"type":"boolean","title":"Active"}},"type":"object","required":["id","name","scopes","active"],"title":"TokenInfo"},"TokenTestResponse":{"properties":{"message":{"type":"string","title":"Message"},"token_valid":{"type":"boolean","title":"Token Valid"},"authorized_experiments":{"items":{"type":"string"},"type":"array","title":"Authorized Experiments"},"performance_ms":{"type":"integer","title":"Performance Ms"}},"type":"object","required":["message","token_valid","authorized_experiments","performance_ms"],"title":"TokenTestResponse"},"TransactionRecord":{"properties":{"customerId":{"type":"string","maxLength":200,"title":"Customerid"},"customerName":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Customername"},"latitude":{"type":"number","maximum":90.0,"minimum":-90.0,"title":"Latitude"},"longitude":{"type":"number","maximum":180.0,"minimum":-180.0,"title":"Longitude"},"purchaseAmount":{"type":"number","minimum":0.0,"title":"Purchaseamount"},"purchaseDate":{"title":"Purchasedate"},"varietyPurchased":{"type":"string","maxLength":300,"title":"Varietypurchased"}},"additionalProperties":true,"type":"object","required":["customerId","latitude","longitude","purchaseAmount","purchaseDate","varietyPurchased"],"title":"TransactionRecord"},"TransactionsPut":{"properties":{"file_name":{"type":"string","maxLength":300,"title":"File Name","default":"api_upload.json"},"records":{"items":{"$ref":"#/components/schemas/TransactionRecord"},"type":"array","maxItems":20000,"title":"Records"},"variety_mappings":{"additionalProperties":{"type":"string"},"type":"object","title":"Variety Mappings","description":"Transaction variety name -> portfolio variety id."},"excluded_varieties":{"items":{"type":"string"},"type":"array","title":"Excluded Varieties"},"validation_errors":{"items":{"type":"string"},"type":"array","title":"Validation Errors"},"onboarding_step":{"anyOf":[{"type":"string","enum":["home","onboarding","modeling","varieties","transactions","environments"]},{"type":"null"}],"title":"Onboarding Step","description":"e.g. 'environments' to advance."}},"additionalProperties":false,"type":"object","required":["records"],"title":"TransactionsPut"},"TriggerClusteringRequest":{"properties":{"team_id":{"type":"string","title":"Team Id","description":"Team ID"},"force":{"type":"boolean","title":"Force","description":"Force regeneration even if clusters exist","default":false}},"type":"object","required":["team_id"],"title":"TriggerClusteringRequest"},"TriggerCreate":{"properties":{"name":{"type":"string","maxLength":200,"minLength":1,"title":"Name"},"script_id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","title":"Script Id","description":"One of the team's scripts (its current code version runs)."},"filters":{"$ref":"#/components/schemas/ImageFilters","description":"Which new images qualify (same filters as POST .../files/select)."},"include_existing":{"type":"boolean","title":"Include Existing","description":"Also run the images that already match at creation.","default":false},"enabled":{"type":"boolean","title":"Enabled","default":true},"settle_seconds":{"anyOf":[{"type":"integer","maximum":3600.0,"minimum":10.0},{"type":"null"}],"title":"Settle Seconds","description":"The matching set must be unchanged this long before a run starts (default 90)."}},"additionalProperties":false,"type":"object","required":["name","script_id"],"title":"TriggerCreate"},"TriggerOut":{"properties":{"id":{"type":"string","title":"Id"},"team_id":{"type":"string","title":"Team Id"},"experiment_id":{"type":"string","title":"Experiment Id"},"script_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Script Id"},"script_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Script Name","description":"Resolved from the team's script library (null if the script is gone)."},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"enabled":{"type":"boolean","title":"Enabled","default":false},"filters":{"additionalProperties":true,"type":"object","title":"Filters","default":{}},"include_existing":{"type":"boolean","title":"Include Existing","default":false},"since":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Since","description":"Only images with dateUploaded at or after this are eligible (null = all)."},"settle_seconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Settle Seconds"},"max_wait_seconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Wait Seconds"},"created_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created By"},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created At"},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Updated At"},"updated_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Updated By"},"pending_count":{"type":"integer","title":"Pending Count","default":0},"pending_fingerprint":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pending Fingerprint"},"pending_since":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pending Since"},"pending_changed_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pending Changed At"},"last_evaluated_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Evaluated At"},"last_run_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Run Id"},"last_run_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Run At"},"last_error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Error"},"next_attempt_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Attempt At"},"runs_count":{"type":"integer","title":"Runs Count","default":0},"images_count":{"type":"integer","title":"Images Count","default":0},"disabled_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Disabled Reason","description":"creator_not_member | script_missing | experiment_missing | pipeline_code_conflict"}},"type":"object","required":["id","team_id","experiment_id"],"title":"TriggerOut"},"TriggerUpdate":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":200,"minLength":1},{"type":"null"}],"title":"Name"},"script_id":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$"},{"type":"null"}],"title":"Script Id"},"filters":{"anyOf":[{"$ref":"#/components/schemas/ImageFilters"},{"type":"null"}]},"enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Enabled","description":"Re-enabling clears disabled_reason, next_attempt_at and last_error."},"settle_seconds":{"anyOf":[{"type":"integer","maximum":3600.0,"minimum":10.0},{"type":"null"}],"title":"Settle Seconds"}},"additionalProperties":false,"type":"object","title":"TriggerUpdate"},"UpdateValue":{"properties":{"variable_id":{"type":"string","title":"Variable Id","description":"The identifier of the variable to update."},"value":{"title":"Value","description":"The new value for the specified variable."},"timestamp_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Timestamp Id","description":"An identifier for the timestamp if the variable is a time series variable."}},"type":"object","required":["variable_id","value"],"title":"UpdateValue","description":"Represents an update to a specific metadata or time series variable value for an environment or a plant.\n\nAttributes:\n    variable_id (str): The identifier of the variable to update.\n    value (Any): The new value for the specified variable.\n    timestamp_id (Optional[str]): An identifier for the timestamp if the variable is a time series variable.","metadata_example":{"value":"percival","variable_id":"chamber_type"},"time_series_example":{"timestamp_id":"2024-04-27T12:00:00Z","value":23.5,"variable_id":"temperature"}},"UserResponseRequest":{"properties":{"experiment_id":{"type":"string","title":"Experiment Id"},"response":{"title":"Response"}},"type":"object","required":["experiment_id","response"],"title":"UserResponseRequest","description":"User response to an input request."},"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"},"ValueWrite":{"properties":{"domain":{"$ref":"#/components/schemas/Domain"},"entity_id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","title":"Entity Id","description":"Plant or environment ID."},"variable_id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$","title":"Variable Id"},"timestamp_id":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$"},{"type":"null"}],"title":"Timestamp Id","description":"Required for time-series variables; omit for metadata."},"value":{"title":"Value","description":"number | string | ISO date (per the variable's input_type) | null"},"delete":{"type":"boolean","title":"Delete","description":"Remove the value instead of writing it.","default":false}},"additionalProperties":false,"type":"object","required":["domain","entity_id","variable_id"],"title":"ValueWrite"},"ValuesWrite":{"properties":{"values":{"items":{"$ref":"#/components/schemas/ValueWrite"},"type":"array","maxItems":5000,"minItems":1,"title":"Values"}},"additionalProperties":false,"type":"object","required":["values"],"title":"ValuesWrite"},"Variable":{"properties":{"id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Id"},"name":{"type":"string","title":"Name"},"unit":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Unit"},"inputType":{"type":"string","title":"Inputtype"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"ontologyReference":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ontologyreference"}},"type":"object","required":["name","inputType"],"title":"Variable"},"VariableCreate":{"properties":{"id":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9]{1,200}$"},{"type":"null"}],"title":"Id","description":"Optional alphanumeric ID; generated when omitted."},"domain":{"$ref":"#/components/schemas/Domain"},"kind":{"$ref":"#/components/schemas/Kind"},"name":{"type":"string","maxLength":300,"minLength":1,"title":"Name"},"unit":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Unit","default":""},"input_type":{"type":"string","title":"Input Type","description":"One of 'string', 'number', 'date'.","default":"number"},"description":{"anyOf":[{"type":"string","maxLength":5000},{"type":"null"}],"title":"Description","default":""},"ontology_reference":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Ontology Reference","default":""}},"additionalProperties":false,"type":"object","required":["domain","kind","name"],"title":"VariableCreate"},"VariableDomain":{"type":"string","enum":["plant","env"],"title":"VariableDomain"},"VariableOut":{"properties":{"id":{"type":"string","title":"Id"},"domain":{"$ref":"#/components/schemas/Domain"},"kind":{"$ref":"#/components/schemas/Kind"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"unit":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Unit"},"input_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Input Type"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"ontology_reference":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ontology Reference"}},"type":"object","required":["id","domain","kind"],"title":"VariableOut"},"VariableType":{"type":"string","enum":["timeSeries","metadata"],"title":"VariableType"},"VariableUpdate":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":300,"minLength":1},{"type":"null"}],"title":"Name"},"unit":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Unit"},"input_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Input Type"},"description":{"anyOf":[{"type":"string","maxLength":5000},{"type":"null"}],"title":"Description"},"ontology_reference":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Ontology Reference"}},"additionalProperties":false,"type":"object","title":"VariableUpdate"},"VariablesCreate":{"properties":{"variables":{"items":{"$ref":"#/components/schemas/VariableCreate"},"type":"array","maxItems":400,"minItems":1,"title":"Variables"}},"additionalProperties":false,"type":"object","required":["variables"],"title":"VariablesCreate"},"VarietiesPut":{"properties":{"varieties":{"items":{"$ref":"#/components/schemas/Variety"},"type":"array","maxItems":500,"title":"Varieties"},"onboarding_step":{"anyOf":[{"type":"string","enum":["home","onboarding","modeling","varieties","transactions","environments"]},{"type":"null"}],"title":"Onboarding Step","description":"e.g. 'transactions' to advance the wizard."}},"additionalProperties":false,"type":"object","required":["varieties"],"title":"VarietiesPut"},"Variety":{"properties":{"variety_id":{"type":"string","maxLength":200,"title":"Variety Id"},"variety_name":{"type":"string","maxLength":300,"title":"Variety Name"},"config_mode":{"type":"string","enum":["crop_parameters","field_trial_upload"],"title":"Config Mode","default":"crop_parameters"},"wofost_parameters":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Wofost Parameters"},"field_trial":{"additionalProperties":true,"type":"object","title":"Field Trial"}},"additionalProperties":true,"type":"object","required":["variety_id","variety_name"],"title":"Variety"},"VerifySignUpCodeRequest":{"properties":{"code":{"type":"string","title":"Code"}},"type":"object","required":["code"],"title":"VerifySignUpCodeRequest"},"VersionCreate":{"properties":{"code":{"type":"string","maxLength":500000,"minLength":1,"title":"Code"},"packages":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":200},{"type":"null"}],"title":"Packages","description":"Defaults to the current version's."},"environment_variables":{"anyOf":[{"items":{"$ref":"#/components/schemas/EnvVar"},"type":"array","maxItems":100},{"type":"null"}],"title":"Environment Variables","description":"Defaults to the current version's (values preserved)."}},"additionalProperties":false,"type":"object","required":["code"],"title":"VersionCreate"},"VisualizationInfo":{"properties":{"type":{"type":"string","enum":["summary_table","scatter_plot","box_plot","bar_chart","heatmap","histogram","line_chart","bar_plot","qq_plot","biplot"],"title":"Type","description":"The type of visualization component to render."},"title":{"type":"string","title":"Title","description":"The title for the visualization."}},"type":"object","required":["type","title"],"title":"VisualizationInfo"},"WelchAnovaRequest":{"properties":{"data":{"additionalProperties":{"items":{},"type":"array"},"type":"object","title":"Data","description":"Data for Welch's ANOVA in wide format. A dictionary where keys are column names and values are lists of observations, including the dependent variable and factor."},"dv":{"type":"string","title":"Dv","description":"Name of the dependent variable column in the data, containing numerical observations."},"between":{"type":"string","title":"Between","description":"Name of the between-subject factor in the data, identifying group membership."}},"type":"object","required":["data","dv","between"],"title":"WelchAnovaRequest"},"WideFormatRequest":{"properties":{"method":{"type":"string","title":"Method","description":"Statistical test method for homoscedasticity. 'levene' uses Levene's test (robust to non-normality), 'bartlett' uses Bartlett's test (assumes normality).","default":"levene"},"alpha":{"type":"number","exclusiveMaximum":1.0,"exclusiveMinimum":0.0,"title":"Alpha","description":"Significance level for the test, typically between 0 and 1 (exclusive). Determines the threshold for rejecting the null hypothesis of equal variances.","default":0.05},"data":{"additionalProperties":{"items":{},"type":"array"},"type":"object","title":"Data","description":"Data for homoscedasticity test in wide format. Each column represents a variable, and each row represents an observation."},"dv":{"type":"string","title":"Dv","description":"Name of the dependent variable column in the data, containing the numerical observations."},"group":{"type":"string","title":"Group","description":"Name of the group column in the data, identifying the group each observation belongs to."}},"type":"object","required":["data","dv","group"],"title":"WideFormatRequest"},"WofostMapping":{"properties":{"parameterName":{"type":"string","title":"Parametername","description":"WOFOST parameter name"},"baseValue":{"type":"number","title":"Basevalue","description":"Original parameter value"},"modifiedValue":{"type":"number","title":"Modifiedvalue","description":"Modified value for delta simulation"},"modificationMethod":{"type":"string","title":"Modificationmethod","description":"How the modification is applied"}},"type":"object","required":["parameterName","baseValue","modifiedValue","modificationMethod"],"title":"WofostMapping","description":"WOFOST parameter mapping for QTL effects"},"WriteResult":{"properties":{"written":{"type":"integer","title":"Written"},"deleted":{"type":"integer","title":"Deleted"}},"type":"object","required":["written","deleted"],"title":"WriteResult"},"app__api_v1__routers__plants__Cultivar":{"properties":{"gbifKey":{"anyOf":[{},{"type":"null"}],"title":"Gbifkey","description":"GBIF usage key for a GBIF species; omit for a custom cultivar."},"gbifSpeciesKey":{"anyOf":[{},{"type":"null"}],"title":"Gbifspecieskey"},"scientificName":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Scientificname"},"species":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Species"},"synonym":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Synonym"},"commonName":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Commonname"},"variety":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"title":"Variety","description":"Variety name or breeder's identifier, e.g. 'Parris Island Cos'."}},"additionalProperties":true,"type":"object","title":"Cultivar","description":"Same fields as the dashboard's edit-species dialog. Every name is optional, but at least one of\nscientificName, species, commonName or variety must be given."},"app__models__experiment__Cultivar":{"properties":{"gbifKey":{"anyOf":[{"type":"integer"},{"type":"string"},{"type":"null"}],"title":"Gbifkey","description":"The GBIF key for the cultivar (int), or 'custom-<timestamp>' for custom cultivars."},"gbifSpeciesKey":{"anyOf":[{"type":"integer"},{"type":"string"},{"type":"null"}],"title":"Gbifspecieskey","description":"The GBIF species key for the cultivar."},"scientificName":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Scientificname","description":"The scientific name of the cultivar."},"species":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Species","description":"The species of the cultivar."},"synonym":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Synonym","description":"Indicates if the name is a synonym."},"commonName":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Commonname","description":"The common name of the cultivar."},"variety":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Variety","description":"Variety name or breeder's identifier (e.g. 'Parris Island Cos', 'BL-24-07')."}},"type":"object","title":"Cultivar","description":"Represents cultivar information for a plant.\n\nEvery name is optional: a custom cultivar may carry only a common name or\nonly a variety. The web app writes the same shape directly to Firestore\n(see watney-frontend src/app/@model/cultivar.utils.ts).\n\nAttributes:\n    gbifKey (Optional[int | str]): GBIF usage key (int) for GBIF picks; the\n        web app stores \"custom-<timestamp>\" for custom cultivars.\n    gbifSpeciesKey (Optional[int | str]): The GBIF species key for the cultivar.\n    scientificName (Optional[str]): The scientific name of the cultivar.\n    species (Optional[str]): The species of the cultivar.\n    synonym (Optional[bool]): Indicates if the name is a synonym.\n    commonName (Optional[str]): The common name of the cultivar.\n    variety (Optional[str]): Variety name or breeder's identifier.","example":{"commonName":"Tomato","gbifKey":123456,"gbifSpeciesKey":654321,"scientificName":"Solanum lycopersicum","species":"Tomato","synonym":false,"variety":"San Marzano"}}},"securitySchemes":{"APIKeyHeader":{"type":"apiKey","in":"header","name":"Authorization"}}},"tags":[{"name":"Identity & API tokens","description":"Who am I; personal API tokens (create/list/revoke)."},{"name":"Teams","description":"Teams and membership (admin/member roles)."},{"name":"Experiments","description":"Experiments: list, create/clone, settings, delete, checkpoints."},{"name":"Plants","description":"Plants in an experiment (canvas, cultivar, tags, metadata)."},{"name":"Environments","description":"Environments and plant placement."},{"name":"Variables","description":"Plant/environment metadata and time-series variable definitions."},{"name":"Timestamps","description":"Observation timestamps."},{"name":"Data","description":"Time-series and metadata values (bulk read/write)."},{"name":"Files","description":"Experiment files, images, folders and download URLs."},{"name":"Storage buckets","description":"S3 buckets a team connects for remote files (keys stored encrypted)."},{"name":"Notebooks & charts","description":"Experiment notebook items and chart configurations."},{"name":"Pipelines","description":"Python pipeline scripts, runs and run results."},{"name":"Public pages","description":"Public experiment page config, publish and unpublish."},{"name":"Exports","description":"Experiment data exports."},{"name":"AI import","description":"Headless AI import of raw files into an experiment."},{"name":"Segmentation","description":"Image segmentation (SAM prompts, manual COCO annotations)."},{"name":"Seed portfolios","description":"GRACE seed portfolios and WOFOST simulations."},{"name":"AI assistant","description":"Watney AI chat: history, streaming send (NDJSON) and WebSocket."},{"name":"BrAPI","description":"Breeder API study configuration."},{"name":"Accounts","description":"Signup-code gated account creation (unauthenticated by design)."}]}