{"openapi":"3.1.0","info":{"title":"Tector API","version":"0.1.0"},"paths":{"/api/v1/customers/{customer_id}":{"get":{"tags":["Organisations"],"summary":"Read Customer By Id","description":"Get a specific customer by id.","operationId":"read_customer_by_id_api_v1_customers__customer_id__get","security":[{"OAuth2PasswordBearerWithCookie":[]}],"parameters":[{"name":"customer_id","in":"path","required":true,"schema":{"type":"string","pattern":"[A-Fa-f0-9]{24}","title":"Customer Id"}},{"name":"accept-language","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Accept-Language"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Customer"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/customers/{customer_id}/sensor_groups":{"get":{"tags":["Organisations"],"summary":"Read Customer Sensor Groups","description":"Retrieve customer sensor groups.","operationId":"read_customer_sensor_groups_api_v1_customers__customer_id__sensor_groups_get","security":[{"OAuth2PasswordBearerWithCookie":[]}],"parameters":[{"name":"customer_id","in":"path","required":true,"schema":{"type":"string","pattern":"[A-Fa-f0-9]{24}","title":"Customer Id"}},{"name":"sign_primary_image","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":false,"title":"Sign Primary Image"}},{"name":"accept-language","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Accept-Language"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response Read Customer Sensor Groups Api V1 Customers  Customer Id  Sensor Groups Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/login":{"post":{"tags":["Login"],"summary":"Login For Access Token","description":"Sign in with an email address and password, and set the access token cookie.\n\nLimited per client, and per email address for failed attempts only: a spent budget answers\n429 with ``Retry-After`` before the password is checked.","operationId":"login_for_access_token_api_v1_login_post","parameters":[{"name":"accept-language","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Accept-Language"}}],"requestBody":{"required":true,"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_login_for_access_token_api_v1_login_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccessToken"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/sensor_groups/{sensor_group_id}":{"get":{"tags":["Groups"],"summary":"Read Sensor Group By Id","description":"Get a specific sensor group by id.","operationId":"read_sensor_group_by_id_api_v1_sensor_groups__sensor_group_id__get","security":[{"OAuth2PasswordBearerWithCookie":[]}],"parameters":[{"name":"sensor_group_id","in":"path","required":true,"schema":{"type":"string","pattern":"[A-Fa-f0-9]{24}","title":"Sensor Group Id"}},{"name":"accept-language","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Accept-Language"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SensorGroup"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/sensor_groups/{sensor_group_id}/alarms":{"get":{"tags":["Groups"],"summary":"Read Group Alerts","description":"Get alerts of a specific sensor group.","operationId":"read_group_alerts_api_v1_sensor_groups__sensor_group_id__alarms_get","security":[{"OAuth2PasswordBearerWithCookie":[]}],"parameters":[{"name":"sensor_group_id","in":"path","required":true,"schema":{"type":"string","pattern":"[A-Fa-f0-9]{24}","title":"Sensor Group Id"}},{"name":"from_timestamp","in":"query","required":true,"schema":{"type":"string","format":"date-time","title":"From Timestamp"}},{"name":"to_timestamp","in":"query","required":true,"schema":{"type":"string","format":"date-time","title":"To Timestamp"}},{"name":"accept-language","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Accept-Language"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AlertListItem"},"title":"Response Read Group Alerts Api V1 Sensor Groups  Sensor Group Id  Alarms Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/sensor_groups/{sensor_group_id}/sensors":{"get":{"tags":["Groups"],"summary":"Read Sensor Group Sensors","description":"Retrieve sensor group sensors.","operationId":"read_sensor_group_sensors_api_v1_sensor_groups__sensor_group_id__sensors_get","security":[{"OAuth2PasswordBearerWithCookie":[]}],"parameters":[{"name":"sensor_group_id","in":"path","required":true,"schema":{"type":"string","pattern":"[A-Fa-f0-9]{24}","title":"Sensor Group Id"}},{"name":"include_archived","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Archived"}},{"name":"accept-language","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Accept-Language"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response Read Sensor Group Sensors Api V1 Sensor Groups  Sensor Group Id  Sensors Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/sensor_groups/{sensor_group_id}/subscription_access":{"get":{"tags":["Groups"],"summary":"Read Group Subscription Access","description":"Return aggregate subscription access status for non-archived sensors.\n\nUsed by the dashboard to render a \"no active subscription\" banner on the\nproject view when at least one non-archived sensor is locked.\n\nWhile ``ENFORCE_SUBSCRIPTION_LOCK`` is disabled (rollout gate), no sensor\nis reported as locked and the links table is not consulted, so the banner\ncannot appear before the schema migration and backfill have completed.","operationId":"read_group_subscription_access_api_v1_sensor_groups__sensor_group_id__subscription_access_get","security":[{"OAuth2PasswordBearerWithCookie":[]}],"parameters":[{"name":"sensor_group_id","in":"path","required":true,"schema":{"type":"string","pattern":"[A-Fa-f0-9]{24}","title":"Sensor Group Id"}},{"name":"accept-language","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Accept-Language"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GroupSubscriptionAccessSummary"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/sensor_groups/{sensor_group_id}/subscription_links":{"get":{"tags":["Groups"],"summary":"Read Group Subscription Coverage","description":"Return subscription coverage rows for the sensors in the group.","operationId":"read_group_subscription_coverage_api_v1_sensor_groups__sensor_group_id__subscription_links_get","security":[{"OAuth2PasswordBearerWithCookie":[]}],"parameters":[{"name":"sensor_group_id","in":"path","required":true,"schema":{"type":"string","pattern":"[A-Fa-f0-9]{24}","title":"Sensor Group Id"}},{"name":"accept-language","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Accept-Language"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/GroupSubscriptionCoverage"},"title":"Response Read Group Subscription Coverage Api V1 Sensor Groups  Sensor Group Id  Subscription Links Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/sensor_groups/{sensor_group_id}/transmissions":{"get":{"tags":["Groups"],"summary":"Read Sensor Group Transmissions","description":"Read all transmissions for sensors in the group in a given period.\n\nArgs:\n    from_timestamp (datetime): From timestamp (inclusive) in ISO format.\n    to_timestamp (datetime): To timestamp (exclusive) in ISO format.\n    limit (int, optional): Max number of returned transmissions. Defaults to 10000.\n    include_meta_columns (bool, optional): Include additional meta columns . Defaults to False.","operationId":"read_sensor_group_transmissions_api_v1_sensor_groups__sensor_group_id__transmissions_get","security":[{"OAuth2PasswordBearerWithCookie":[]}],"parameters":[{"name":"sensor_group_id","in":"path","required":true,"schema":{"type":"string","pattern":"[A-Fa-f0-9]{24}","title":"Sensor Group Id"}},{"name":"from_timestamp","in":"query","required":true,"schema":{"type":"string","format":"date-time","title":"From Timestamp"}},{"name":"to_timestamp","in":"query","required":true,"schema":{"type":"string","format":"date-time","title":"To Timestamp"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100000,"minimum":1,"default":30000,"title":"Limit"}},{"name":"include_meta_columns","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Meta Columns"}},{"name":"accept-language","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Accept-Language"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response Read Sensor Group Transmissions Api V1 Sensor Groups  Sensor Group Id  Transmissions Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/sensor_groups/{sensor_group_id}/users":{"get":{"tags":["Groups"],"summary":"Get Sensor Group Users","description":"Get sensor group users (through customers).","operationId":"get_sensor_group_users_api_v1_sensor_groups__sensor_group_id__users_get","security":[{"OAuth2PasswordBearerWithCookie":[]}],"parameters":[{"name":"sensor_group_id","in":"path","required":true,"schema":{"type":"string","pattern":"[A-Fa-f0-9]{24}","title":"Sensor Group Id"}},{"name":"accept-language","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Accept-Language"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/User"},"title":"Response Get Sensor Group Users Api V1 Sensor Groups  Sensor Group Id  Users Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/sensors/{sensor_id}":{"get":{"tags":["Sensors"],"summary":"Read Sensor By Id","description":"Get a specific sensor by id.","operationId":"read_sensor_by_id_api_v1_sensors__sensor_id__get","security":[{"OAuth2PasswordBearerWithCookie":[]}],"parameters":[{"name":"sensor_id","in":"path","required":true,"schema":{"type":"string","pattern":"[A-Fa-f0-9]{24}","title":"Sensor Id"}},{"name":"accept-language","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Accept-Language"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Sensor"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/sensors/{sensor_id}/alarms":{"get":{"tags":["Sensors"],"summary":"Read Sensor Alarms","description":"Get alarms of a specific sensor.","operationId":"read_sensor_alarms_api_v1_sensors__sensor_id__alarms_get","security":[{"OAuth2PasswordBearerWithCookie":[]}],"parameters":[{"name":"sensor_id","in":"path","required":true,"schema":{"type":"string","pattern":"[A-Fa-f0-9]{24}","title":"Sensor Id"}},{"name":"accept-language","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Accept-Language"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Alarm"},"title":"Response Read Sensor Alarms Api V1 Sensors  Sensor Id  Alarms Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/sensors/{sensor_id}/files/{sensor_file_id}":{"get":{"tags":["Sensors"],"summary":"Read Sensors File","description":"Get a specific sensor picture at original (high) quality as a signed URL.","operationId":"read_sensors_file_api_v1_sensors__sensor_id__files__sensor_file_id__get","security":[{"OAuth2PasswordBearerWithCookie":[]}],"parameters":[{"name":"sensor_id","in":"path","required":true,"schema":{"type":"string","pattern":"[A-Fa-f0-9]{24}","title":"Sensor Id"}},{"name":"sensor_file_id","in":"path","required":true,"schema":{"type":"string","pattern":"[A-Fa-f0-9]{24}","title":"Sensor File Id"}},{"name":"accept-language","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Accept-Language"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SensorFileSignedOriginal"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/sensors/{sensor_id}/files":{"get":{"tags":["Sensors"],"summary":"Read Sensors Files","description":"Get all of a sensor's pictures as signed thumbnail URLs: the gallery, or with\n`archived` the pictures archived from it.","operationId":"read_sensors_files_api_v1_sensors__sensor_id__files_get","security":[{"OAuth2PasswordBearerWithCookie":[]}],"parameters":[{"name":"sensor_id","in":"path","required":true,"schema":{"type":"string","pattern":"[A-Fa-f0-9]{24}","title":"Sensor Id"}},{"name":"archived","in":"query","required":false,"schema":{"type":"boolean","description":"List the archived pictures instead of the gallery","default":false,"title":"Archived"},"description":"List the archived pictures instead of the gallery"},{"name":"accept-language","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Accept-Language"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SensorFileSignedThumbnail"},"title":"Response Read Sensors Files Api V1 Sensors  Sensor Id  Files Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/sensors/{sensor_id}/sensor_groups":{"get":{"tags":["Sensors"],"summary":"Read Sensor Groups","description":"Get a sensors sensor groups. Generated groups are named in the caller's language.","operationId":"read_sensor_groups_api_v1_sensors__sensor_id__sensor_groups_get","security":[{"OAuth2PasswordBearerWithCookie":[]}],"parameters":[{"name":"sensor_id","in":"path","required":true,"schema":{"type":"string","pattern":"[A-Fa-f0-9]{24}","title":"Sensor Id"}},{"name":"accept-language","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Accept-Language"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SensorGroup"},"title":"Response Read Sensor Groups Api V1 Sensors  Sensor Id  Sensor Groups Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/sensors/{sensor_id}/subscription_access":{"get":{"tags":["Sensors"],"summary":"Read Sensor Subscription Access","description":"Return the current subscription access status for the sensor.\n\nAlways 200; the body's ``is_allowed`` field tells the client whether to\nblock the UI. Lock fields (``reason``, ``suggested_action``,\n``subscription_*``) describe why and what to suggest.\n\nWhile ``ENFORCE_SUBSCRIPTION_LOCK`` is disabled (rollout gate), every\nsensor is reported as allowed without consulting the links table, so the\ndashboard cannot lock sensors before the schema migration and backfill\nhave completed.","operationId":"read_sensor_subscription_access_api_v1_sensors__sensor_id__subscription_access_get","security":[{"OAuth2PasswordBearerWithCookie":[]}],"parameters":[{"name":"sensor_id","in":"path","required":true,"schema":{"type":"string","pattern":"[A-Fa-f0-9]{24}","title":"Sensor Id"}},{"name":"accept-language","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Accept-Language"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SensorAccessStatus"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/sensors/{sensor_id}/subscription_links":{"get":{"tags":["Sensors"],"summary":"Read Sensor Subscription Links","description":"Return the subscription-link history for a sensor.","operationId":"read_sensor_subscription_links_api_v1_sensors__sensor_id__subscription_links_get","security":[{"OAuth2PasswordBearerWithCookie":[]}],"parameters":[{"name":"sensor_id","in":"path","required":true,"schema":{"type":"string","pattern":"[A-Fa-f0-9]{24}","title":"Sensor Id"}},{"name":"accept-language","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Accept-Language"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SensorSubscriptionLinkRead"},"title":"Response Read Sensor Subscription Links Api V1 Sensors  Sensor Id  Subscription Links Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/sensors/{sensor_id}/transmissions":{"get":{"tags":["Sensors"],"summary":"Read Sensor Transmissions","description":"Read all transmissions for a sensor in a given period.\n\nArgs:\n    from_timestamp (datetime): From timestamp (inclusive) in ISO format.\n    to_timestamp (datetime): To timestamp (exclusive) in ISO format.\n    limit (int, optional): Max number of returned transmissions. Defaults to 5000.\n    include_meta_columns (bool, optional): Include additional meta columns . Defaults to False.","operationId":"read_sensor_transmissions_api_v1_sensors__sensor_id__transmissions_get","security":[{"OAuth2PasswordBearerWithCookie":[]}],"parameters":[{"name":"sensor_id","in":"path","required":true,"schema":{"type":"string","pattern":"[A-Fa-f0-9]{24}","title":"Sensor Id"}},{"name":"from_timestamp","in":"query","required":true,"schema":{"type":"string","format":"date-time","title":"From Timestamp"}},{"name":"to_timestamp","in":"query","required":true,"schema":{"type":"string","format":"date-time","title":"To Timestamp"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100000,"minimum":1,"default":20000,"title":"Limit"}},{"name":"include_meta_columns","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Meta Columns"}},{"name":"accept-language","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Accept-Language"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response Read Sensor Transmissions Api V1 Sensors  Sensor Id  Transmissions Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/sensors/{sensor_id}/users":{"get":{"tags":["Sensors"],"summary":"Read Users Of Sensor","description":"Get sensor users.","operationId":"read_users_of_sensor_api_v1_sensors__sensor_id__users_get","security":[{"OAuth2PasswordBearerWithCookie":[]}],"parameters":[{"name":"sensor_id","in":"path","required":true,"schema":{"type":"string","pattern":"[A-Fa-f0-9]{24}","title":"Sensor Id"}},{"name":"accept-language","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Accept-Language"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/User"},"title":"Response Read Users Of Sensor Api V1 Sensors  Sensor Id  Users Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/sensors_bulk":{"post":{"tags":["Sensors Bulk"],"summary":"Bulk Read Sensors","description":"Bulk update sensors.","operationId":"bulk_read_sensors_api_v1_sensors_bulk_post","security":[{"OAuth2PasswordBearerWithCookie":[]}],"parameters":[{"name":"accept-language","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Accept-Language"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SensorsBulkRead"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response Bulk Read Sensors Api V1 Sensors Bulk Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/sensors_bulk/transmissions":{"post":{"tags":["Sensors Bulk"],"summary":"Bulk Read Sensor Transmissions","description":"Read all transmissions for given set of sensors in a given period.\n\nWith a risk score field the rows also carry ``risk_scores_through``: the end of the window\nthe sensor's stored risk scores were last computed for (SW-2678 phase 3), so a row after it\nhas no score yet and the dashboard can say the scores are being computed. ``null`` for a\nsensor without stored scores: its rows carry no score, and the read asks the background job\nto score it, so the next load has them. With ``risk_score_lookback_hours`` such a row carries\nthe sensor's last stored score instead (SW-2772); ``risk_scores_through`` still says it is\nnot the row's own. ``risk_scores_from`` is where the sensor's stored scores start: a row\nbefore it has no score either, and the read asks the job to extend the sensor's stored\nhistory one window further back (SW-2788).","operationId":"bulk_read_sensor_transmissions_api_v1_sensors_bulk_transmissions_post","security":[{"OAuth2PasswordBearerWithCookie":[]}],"parameters":[{"name":"accept-language","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Accept-Language"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SensorsBulkTransmissions"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"array","items":{}},"title":"Response Bulk Read Sensor Transmissions Api V1 Sensors Bulk Transmissions Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/sensors_bulk/transmissions/daily":{"post":{"tags":["Sensors Bulk"],"summary":"Bulk Read Sensor Transmissions Daily","description":"Min, mean and max per sensor and interval of the given sensors in a period.\n\nThe interval is a UTC day, a calendar week or a calendar month, by the period's length as\nin the reports. One row per sensor and interval with transmissions, newest first and then\nby sensor id, truncated to the newest ``limit`` rows. Always holds ``hardware_id``,\n``sensor_id``, ``day`` and ``last_day`` (``YYYY-MM-DD``, the interval's first and last\nUTC day within the period; the same day for a daily row) and ``transmissions_count``,\nplus ``<field>_min``, ``<field>_mean`` and ``<field>_max`` per requested field (``null``\nwhen the sensor had no valid reading of it in the interval) and, with ``risk_score``,\n``risk_reasons_int_keys`` of the interval's highest score and ``risk_scores_from`` and\n``risk_scores_through``, where the sensor's stored scores start and the end of the window\nthey were last computed for (both ``null`` for a sensor without stored scores: its rows\ncarry no score and the read asks the background job to score it, so the next load has\nthem). A row before ``risk_scores_from`` has no score either: the read asks the job to\nextend the sensor's stored history one window further back (SW-2788), so a chart of any\nperiod fills in as it reads again. Days are whole UTC days, so the first and last day\ninclude readings outside the period. The route keeps its name: a row is a day or a run of\nwhole days. With many sensors never rolled up, those are left out and named in\n``pending_sensor_ids`` (one entry per sensor, not per row), and their builds are requested\nafter the response.","operationId":"bulk_read_sensor_transmissions_daily_api_v1_sensors_bulk_transmissions_daily_post","security":[{"OAuth2PasswordBearerWithCookie":[]}],"parameters":[{"name":"accept-language","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Accept-Language"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SensorsBulkTransmissionsDaily"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"array","items":{}},"title":"Response Bulk Read Sensor Transmissions Daily Api V1 Sensors Bulk Transmissions Daily Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/sensors_bulk/transmissions/distribution":{"post":{"tags":["Sensors Bulk"],"summary":"Bulk Read Sensor Transmissions Distribution","description":"The distribution of the sensors' values per time step of a period.\n\nA period the charts draw reading by reading is sampled every whole hour, each sensor at its\nlatest reading of the six hours before; a longer one per UTC day, calendar week or month\n(as the daily values), each sensor at its mean of the interval. Per step and field: the\nnumber of sensors with a value, the 5th to 95th percentile, mean, population standard\ndeviation, lowest and highest value; a step of fewer than five sensors has only the count,\nmedian, lowest and highest. Each field also names the sensors that stand out: out past\nTukey's fences in a lasting share of the steps, so their count is the data's. Spreading\nfactor and TX power give the share of sensors per value instead. With ``line_count``, a\nlonger period's groups carry the daily rows of that many of them per field\nin ``lines``, so a chart draws its lines without a second read. With many sensors whose rollups\ndo not cover the period yet, those are left out and named in ``pending_sensor_ids``, and their\nbuilds are requested after the response. The risk score (``risk_score``, SW-2765) is the\nstored one, never computed on a read: the sensors without stored scores, and those whose\nstored history starts after the period while they transmitted before (SW-2788), are named\nin ``risk_score_pending_sensor_ids`` and their scoring, or the extension of their history\none window further back, is requested after the response. A read of the risk score alone\ntakes nothing from the rollups, so it names no pending sensors and asks for no build.","operationId":"bulk_read_sensor_transmissions_distribution_api_v1_sensors_bulk_transmissions_distribution_post","security":[{"OAuth2PasswordBearerWithCookie":[]}],"parameters":[{"name":"accept-language","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Accept-Language"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SensorsBulkTransmissionsDistribution"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SensorsDistributionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/users/{user_id}/customer":{"get":{"tags":["Users"],"summary":"Read User Customer","description":"Get users customer.","operationId":"read_user_customer_api_v1_users__user_id__customer_get","security":[{"OAuth2PasswordBearerWithCookie":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","pattern":"[A-Za-z0-9]{24,28}","title":"User Id"}},{"name":"accept-language","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Accept-Language"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Customer"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/users/{user_id}/groups":{"get":{"tags":["Users"],"summary":"Read User Groups","description":"Retrieve user groups.","operationId":"read_user_groups_api_v1_users__user_id__groups_get","security":[{"OAuth2PasswordBearerWithCookie":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","pattern":"[A-Za-z0-9]{24,28}","title":"User Id"}},{"name":"sign_primary_image","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":false,"title":"Sign Primary Image"}},{"name":"accept-language","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Accept-Language"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response Read User Groups Api V1 Users  User Id  Groups Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/users/{user_id}/projects_associated_group_access":{"get":{"tags":["Users"],"summary":"Read Projects Associated Group Access","description":"Retrieve users projects.","operationId":"read_projects_associated_group_access_api_v1_users__user_id__projects_associated_group_access_get","security":[{"OAuth2PasswordBearerWithCookie":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","pattern":"[A-Za-z0-9]{24,28}","title":"User Id"}},{"name":"accept-language","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Accept-Language"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response Read Projects Associated Group Access Api V1 Users  User Id  Projects Associated Group Access Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/users/{user_id}/projects":{"get":{"tags":["Users"],"summary":"Read User Projects","description":"Retrieve users projects.","operationId":"read_user_projects_api_v1_users__user_id__projects_get","security":[{"OAuth2PasswordBearerWithCookie":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","pattern":"[A-Za-z0-9]{24,28}","title":"User Id"}},{"name":"sign_primary_image","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":false,"title":"Sign Primary Image"}},{"name":"accept-language","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Accept-Language"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response Read User Projects Api V1 Users  User Id  Projects Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/users/{user_id}/projects/read_only":{"get":{"tags":["Users"],"summary":"Read User Projects Read Only","description":"Retrieve read-only projects.","operationId":"read_user_projects_read_only_api_v1_users__user_id__projects_read_only_get","security":[{"OAuth2PasswordBearerWithCookie":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","pattern":"[A-Za-z0-9]{24,28}","title":"User Id"}},{"name":"accept-language","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Accept-Language"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SensorGroupViewOnly"},"title":"Response Read User Projects Read Only Api V1 Users  User Id  Projects Read Only Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/users/{user_id}/sensors":{"get":{"tags":["Users"],"summary":"Read User Sensors","description":"Retrieve sensors a user have access to from direct access links.","operationId":"read_user_sensors_api_v1_users__user_id__sensors_get","security":[{"OAuth2PasswordBearerWithCookie":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","pattern":"[A-Za-z0-9]{24,28}","title":"User Id"}},{"name":"include_thumbnails","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Thumbnails"}},{"name":"include_sensor_tags","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Sensor Tags"}},{"name":"include_geographic_location","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Geographic Location"}},{"name":"include_states","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include States"}},{"name":"permission","in":"query","required":false,"schema":{"$ref":"#/components/schemas/Permission","default":10}},{"name":"accept-language","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Accept-Language"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response Read User Sensors Api V1 Users  User Id  Sensors Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/users/{user_id}/all_sensors":{"get":{"tags":["Users"],"summary":"Read All User Sensors","description":"Retrieve all sensors a user have access to through organizations, groups and direct access links.","operationId":"read_all_user_sensors_api_v1_users__user_id__all_sensors_get","security":[{"OAuth2PasswordBearerWithCookie":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","pattern":"[A-Za-z0-9]{24,28}","title":"User Id"}},{"name":"include_thumbnails","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Thumbnails"}},{"name":"include_sensor_tags","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Sensor Tags"}},{"name":"include_geographic_location","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Geographic Location"}},{"name":"include_states","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include States"}},{"name":"permission","in":"query","required":false,"schema":{"$ref":"#/components/schemas/Permission","default":10}},{"name":"accept-language","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Accept-Language"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response Read All User Sensors Api V1 Users  User Id  All Sensors Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/":{"get":{"summary":"Root","operationId":"root__get","responses":{"307":{"description":"Successful Response"}}}}},"components":{"schemas":{"AccessToken":{"properties":{"access_token":{"title":"Access Token"},"token_type":{"title":"Token Type"},"user":{}},"type":"object","required":["access_token","token_type"],"title":"AccessToken"},"ActivityState":{"type":"string","enum":["ACTIVE","INACTIVE","DEREGISTERED"],"title":"ActivityState"},"Alarm":{"properties":{"id":{"title":"Id"},"type":{},"transmission_id":{"title":"Transmission Id"},"transmission_before_id":{"title":"Transmission Before Id"},"sensor_id":{"title":"Sensor Id"},"gateway_id":{"title":"Gateway Id"},"alarm_rule_id":{"title":"Alarm Rule Id"},"severity_level":{},"rule_snapshot":{"title":"Rule Snapshot"},"description_da":{"title":"Description Da"},"description_en":{"title":"Description En"},"resolved_reason":{"title":"Resolved Reason"},"resolved_time":{"title":"Resolved Time"},"resolution_type":{},"resolved_with_alert_id":{"title":"Resolved With Alert Id"},"resolved_by":{"title":"Resolved By"},"responsible_user":{"title":"Responsible User"},"created_date":{"title":"Created Date"}},"type":"object","required":["id","type","description_da","description_en","created_date"],"title":"Alarm"},"AlarmRule":{"properties":{"id":{"title":"Id"},"name":{"title":"Name"},"type":{},"subtype":{},"active_period_from":{"title":"Active Period From"},"active_period_to":{"title":"Active Period To"},"repeat_yearly":{"title":"Repeat Yearly"},"auto_enable_for_new_sensors":{"title":"Auto Enable For New Sensors"},"alarm_rule_criteria":{"title":"Alarm Rule Criteria"},"alarm_rule_locale_details":{"title":"Alarm Rule Locale Details"},"is_archived":{"title":"Is Archived"},"archived_at":{"title":"Archived At"},"archived_by":{"title":"Archived By"},"created_date":{"title":"Created Date"},"updated_date":{"title":"Updated Date"},"created_by":{"title":"Created By"},"updated_by":{"title":"Updated By"}},"type":"object","required":["id","name","type","created_date","created_by"],"title":"AlarmRule"},"AlarmRuleSubType":{"type":"integer","enum":[110,111,121,122,123,130,141,150,200],"title":"AlarmRuleSubType"},"AlarmRuleType":{"type":"integer","enum":[10,20],"title":"AlarmRuleType"},"AlarmType":{"type":"integer","enum":[0,51,52,53,101,202,203,204,300,400,500,600,601,610,611,1010,1011],"title":"AlarmType"},"AlertListItem":{"properties":{"id":{"title":"Id"},"type":{},"transmission_id":{"title":"Transmission Id"},"transmission_before_id":{"title":"Transmission Before Id"},"sensor_id":{"title":"Sensor Id"},"gateway_id":{"title":"Gateway Id"},"alarm_rule_id":{"title":"Alarm Rule Id"},"severity_level":{},"rule_snapshot":{"title":"Rule Snapshot"},"description_da":{"title":"Description Da"},"description_en":{"title":"Description En"},"resolved_reason":{"title":"Resolved Reason"},"resolved_time":{"title":"Resolved Time"},"resolution_type":{},"resolved_with_alert_id":{"title":"Resolved With Alert Id"},"resolved_by":{"title":"Resolved By"},"responsible_user":{"title":"Responsible User"},"created_date":{"title":"Created Date"},"resolution_batch_size":{"title":"Resolution Batch Size"}},"type":"object","required":["id","type","description_da","description_en","created_date"],"title":"AlertListItem","description":"An alert as the alert lists return it."},"AlertResolutionType":{"type":"integer","enum":[10,20,30],"title":"AlertResolutionType"},"AlertSeverityLevel":{"type":"integer","enum":[10,30],"title":"AlertSeverityLevel"},"Body_login_for_access_token_api_v1_login_post":{"properties":{"grant_type":{"anyOf":[{"type":"string","pattern":"^password$"},{"type":"null"}],"title":"Grant Type"},"username":{"type":"string","title":"Username"},"password":{"type":"string","format":"password","title":"Password"},"scope":{"type":"string","title":"Scope","default":""},"client_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client Id"},"client_secret":{"anyOf":[{"type":"string"},{"type":"null"}],"format":"password","title":"Client Secret"}},"type":"object","required":["username","password"],"title":"Body_login_for_access_token_api_v1_login_post"},"Customer":{"properties":{"id":{"title":"Id"},"name":{"title":"Name"},"logo_url":{"title":"Logo Url"},"demo_application_id":{"title":"Demo Application Id"},"is_distributor":{"title":"Is Distributor"},"customer_file_id":{"title":"Customer File Id"},"customer_file_url":{"title":"Customer File Url"},"alarm_rules":{"title":"Alarm Rules"},"settings":{},"hs_company_id":{"title":"Hs Company Id"},"created_date":{"title":"Created Date"},"updated_date":{"title":"Updated Date"},"created_by":{"title":"Created By"},"updated_by":{"title":"Updated By"}},"type":"object","required":["id","name","created_date","created_by"],"title":"Customer"},"CustomerSettings":{"properties":{"id":{"title":"Id"},"show_groups":{"title":"Show Groups"},"show_reports":{"title":"Show Reports"},"show_alarms":{"title":"Show Alarms"},"show_gateways":{"title":"Show Gateways"},"created_date":{"title":"Created Date"},"updated_date":{"title":"Updated Date"},"created_by":{"title":"Created By"},"updated_by":{"title":"Updated By"}},"type":"object","required":["id","created_date","created_by"],"title":"CustomerSettings"},"DeviceLoRaDetails":{"properties":{"id":{"title":"Id"},"device_id":{"title":"Device Id"},"app_eui":{"title":"App Eui"},"dev_eui":{"title":"Dev Eui"},"app_key":{"title":"App Key"},"ttn_server_url":{"title":"Ttn Server Url"},"ttn_app_id":{"title":"Ttn App Id"},"ttn_dev_id":{"title":"Ttn Dev Id"},"frequency_plan":{"title":"Frequency Plan"},"lorawan_version":{"title":"Lorawan Version"},"regional_parameters_version":{"title":"Regional Parameters Version"},"ttn_network_server_synced_at":{"title":"Ttn Network Server Synced At"}},"type":"object","required":["id"],"title":"DeviceLoRaDetails"},"GeographicLocation":{"properties":{"id":{"title":"Id"},"description":{"title":"Description"},"address":{"title":"Address"},"latitude":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Latitude"},"longitude":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Longitude"},"location_source":{"title":"Location Source"},"created_date":{"title":"Created Date"},"updated_date":{"title":"Updated Date"},"created_by":{"title":"Created By"},"updated_by":{"title":"Updated By"}},"type":"object","required":["id","created_date","created_by"],"title":"GeographicLocation"},"GroupSubscriptionAccessSummary":{"properties":{"sensor_group_id":{"type":"string","title":"Sensor Group Id"},"sensor_count":{"type":"integer","title":"Sensor Count"},"locked_sensor_count":{"type":"integer","title":"Locked Sensor Count"},"has_locked_sensors":{"type":"boolean","title":"Has Locked Sensors"},"locked_sensors":{"items":{"$ref":"#/components/schemas/SensorAccessStatus"},"type":"array","title":"Locked Sensors"},"active_sensor_subscriptions":{"additionalProperties":{"type":"string"},"type":"object","title":"Active Sensor Subscriptions"}},"type":"object","required":["sensor_group_id","sensor_count","locked_sensor_count","has_locked_sensors","locked_sensors","active_sensor_subscriptions"],"title":"GroupSubscriptionAccessSummary","description":"Aggregate subscription status for a sensor group's non-archived sensors."},"GroupSubscriptionCoverage":{"properties":{"sensor_id":{"type":"string","title":"Sensor Id"},"start_date":{"type":"string","format":"date-time","title":"Start Date"},"end_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"End Date"},"subscription_uuid":{"type":"string","title":"Subscription Uuid"}},"type":"object","required":["sensor_id","start_date","end_date","subscription_uuid"],"title":"GroupSubscriptionCoverage"},"GroupType":{"type":"integer","enum":[10,20,30],"title":"GroupType"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"HumidityState":{"type":"string","enum":["HUMIDITY_0_10","HUMIDITY_10_20","HUMIDITY_20_30","HUMIDITY_30_40","HUMIDITY_40_50","HUMIDITY_50_60","HUMIDITY_60_70","HUMIDITY_70_80","HUMIDITY_80_90","HUMIDITY_90_100","UNKNOWN"],"title":"HumidityState"},"LockReason":{"type":"string","enum":["no_coverage_ever","subscription_ended","not_yet_active"],"title":"LockReason","description":"Why a sensor's access is currently locked."},"MoistureState":{"type":"string","enum":["VERY_DRY","MOISTURE_0_10","MOISTURE_10_15","MOISTURE_15_20","MOISTURE_20_25","MOISTURE_25_30","MOISTURE_30_35","MOISTURE_35_40","MOISTURE_40_100","ACTIVE","INACTIVE","INVALID","CREATED","UNKNOWN"],"title":"MoistureState"},"MoldGrowthRiskState":{"type":"string","enum":["NO_RISK","LOW_RISK","MODERATE_RISK","HIGH_RISK","VERY_HIGH_RISK","UNKNOWN"],"title":"MoldGrowthRiskState"},"Permission":{"type":"integer","enum":[10,20,30],"title":"Permission"},"RiskScoreState":{"type":"string","enum":["RISK_SCORE_VERY_LOW","RISK_SCORE_LOW","RISK_SCORE_MODERATE","RISK_SCORE_HIGH","RISK_SCORE_VERY_HIGH","RISK_SCORE_NO_RISK","UNKNOWN"],"title":"RiskScoreState"},"Sensor":{"properties":{"id":{"title":"Id"},"hardware_id":{"title":"Hardware Id"},"name":{"title":"Name"},"type":{},"subtype":{},"customer_id":{"title":"Customer Id"},"tree_type":{},"demo_application_id":{"title":"Demo Application Id"},"setup_completed_at":{"title":"Setup Completed At"},"sensor_file_id":{"title":"Sensor File Id"},"sensor_file_url":{"title":"Sensor File Url"},"latest_transmission_received_at":{"title":"Latest Transmission Received At"},"heartbeat_interval":{"title":"Heartbeat Interval"},"ttn_app_id":{"title":"Ttn App Id"},"ttn_dev_id":{"title":"Ttn Dev Id"},"ttn_app_eui":{"title":"Ttn App Eui"},"ttn_dev_eui":{"title":"Ttn Dev Eui"},"frequency_plan":{"title":"Frequency Plan"},"sw_version":{"title":"Sw Version"},"hw_version":{"title":"Hw Version"},"send_alarms":{"title":"Send Alarms"},"at_woodsense_office":{"title":"At Woodsense Office"},"smappee_servicelocation":{"title":"Smappee Servicelocation"},"geographic_location":{},"states":{},"tags":{},"lora_details":{},"created_date":{"title":"Created Date"},"updated_date":{"title":"Updated Date"},"created_by":{"title":"Created By"},"updated_by":{"title":"Updated By"},"is_archived":{"title":"Is Archived"},"archived_date":{"title":"Archived Date"},"archived_by":{"title":"Archived By"},"archived_reason":{"title":"Archived Reason"}},"type":"object","required":["id","hardware_id","name","type","created_date","created_by"],"title":"Sensor"},"SensorAccessStatus":{"properties":{"sensor_id":{"type":"string","title":"Sensor Id"},"is_allowed":{"type":"boolean","title":"Is Allowed"},"reason":{"anyOf":[{"$ref":"#/components/schemas/LockReason"},{"type":"null"}]},"suggested_action":{"anyOf":[{"$ref":"#/components/schemas/SuggestedAction"},{"type":"null"}]},"active_link_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Active Link Id"},"subscription_uuid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subscription Uuid"},"subscription_status_snapshot":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subscription Status Snapshot"},"start_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Start Date"},"current_period_end_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Current Period End Date"}},"type":"object","required":["sensor_id","is_allowed"],"title":"SensorAccessStatus","description":"Result of :func:`compute_sensor_access`.\n\nFrozen so it can be safely cached in a per-request store.\n\nWhen ``is_allowed`` is ``True`` the lock-related fields are all ``None``;\nwhen ``False`` at least ``reason`` and ``suggested_action`` are set."},"SensorFileSignedOriginal":{"properties":{"id":{"title":"Id"},"description":{"title":"Description"},"tags":{"title":"Tags"},"filename":{"title":"Filename"},"mime_type":{"title":"Mime Type"},"storage_path":{"title":"Storage Path"},"storage_path_thumbnail":{"title":"Storage Path Thumbnail"},"bucket":{"title":"Bucket"},"marked_as_primary":{"title":"Marked As Primary"},"created_date":{"title":"Created Date"},"updated_date":{"title":"Updated Date"},"created_by":{"title":"Created By"},"updated_by":{"title":"Updated By"},"storage_url":{"title":"Storage Url"},"sensor_id":{"title":"Sensor Id"},"resolved_alert_id":{"title":"Resolved Alert Id"}},"type":"object","required":["id","description","tags","filename","mime_type","storage_path","storage_path_thumbnail","bucket","created_date","created_by","storage_url","sensor_id"],"title":"SensorFileSignedOriginal"},"SensorFileSignedThumbnail":{"properties":{"id":{"title":"Id"},"description":{"title":"Description"},"tags":{"title":"Tags"},"filename":{"title":"Filename"},"mime_type":{"title":"Mime Type"},"storage_path":{"title":"Storage Path"},"storage_path_thumbnail":{"title":"Storage Path Thumbnail"},"bucket":{"title":"Bucket"},"marked_as_primary":{"title":"Marked As Primary"},"created_date":{"title":"Created Date"},"updated_date":{"title":"Updated Date"},"created_by":{"title":"Created By"},"updated_by":{"title":"Updated By"},"storage_url_thumbnail":{"title":"Storage Url Thumbnail"},"sensor_id":{"title":"Sensor Id"},"resolved_alert_id":{"title":"Resolved Alert Id"}},"type":"object","required":["id","description","tags","filename","mime_type","storage_path","storage_path_thumbnail","bucket","created_date","created_by","storage_url_thumbnail","sensor_id"],"title":"SensorFileSignedThumbnail"},"SensorGroup":{"properties":{"id":{"title":"Id"},"name":{"title":"Name"},"description":{"title":"Description"},"sensor_group_file_id":{"title":"Sensor Group File Id"},"sensor_group_file_url":{"title":"Sensor Group File Url"},"demo_application_id":{"title":"Demo Application Id"},"type":{},"fenerum_account_code":{"title":"Fenerum Account Code"},"hs_deal_id":{"title":"Hs Deal Id"},"geographic_location":{},"parent_group":{"title":"Parent Group"},"tree_depth":{"title":"Tree Depth"},"tag_combination_key":{"title":"Tag Combination Key"},"tag_profiles_enabled":{"title":"Tag Profiles Enabled"},"auto_generate_tag_groups":{"title":"Auto Generate Tag Groups"},"project_setup_enabled":{"title":"Project Setup Enabled"},"responsibilities_enabled":{"title":"Responsibilities Enabled"},"experiments_enabled":{"title":"Experiments Enabled"},"created_date":{"title":"Created Date"},"updated_date":{"title":"Updated Date"},"created_by":{"title":"Created By"},"updated_by":{"title":"Updated By"}},"type":"object","required":["id","name","tree_depth","created_date","created_by"],"title":"SensorGroup"},"SensorGroupViewOnly":{"properties":{"id":{"title":"Id"},"name":{"title":"Name"},"description":{"title":"Description"},"sensor_group_file_id":{"title":"Sensor Group File Id"},"type":{},"access_through_subgroup_id":{"title":"Access Through Subgroup Id"},"read_only":{"title":"Read Only"}},"type":"object","required":["id","name","access_through_subgroup_id"],"title":"SensorGroupViewOnly"},"SensorStates":{"properties":{"activity_state":{},"humidity_state":{},"mold_growth_risk_state":{},"moisture_state":{},"risk_score_state":{},"signal_strength_state":{},"temperature_state":{},"humidity_value":{"title":"Humidity Value"},"moisture_value":{"title":"Moisture Value"},"risk_score_value":{"title":"Risk Score Value"},"temperature_value":{"title":"Temperature Value"},"observed_heartbeat_interval":{"title":"Observed Heartbeat Interval"},"id":{"title":"Id"},"created_date":{"title":"Created Date"},"updated_date":{"title":"Updated Date"},"created_by":{"title":"Created By"},"updated_by":{"title":"Updated By"}},"type":"object","required":["id","created_date","created_by"],"title":"SensorStates"},"SensorSubscriptionLinkRead":{"properties":{"sensor_id":{"type":"string","title":"Sensor Id"},"start_date":{"type":"string","format":"date-time","title":"Start Date"},"end_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"End Date"},"subscription_uuid":{"type":"string","title":"Subscription Uuid"},"fenerum_account_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fenerum Account Code"},"delivery_group_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Delivery Group Id"},"subscription_status_snapshot":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subscription Status Snapshot"}},"type":"object","required":["sensor_id","start_date","end_date","subscription_uuid","fenerum_account_code","delivery_group_id","subscription_status_snapshot"],"title":"SensorSubscriptionLinkRead","description":"UI-facing projection of ``SensorSubscriptionLinksSQL``.\n\nAlias of :class:`SubscriptionLinkProjection` kept for clarity at the\ncallsite and to preserve the OpenAPI schema name."},"SensorSubtype":{"type":"string","enum":["WOODSENSE_WOODY_PREMIUM","WOODSENSE_WOODY_QA","WOODSENSE_WOODY_V2_0","WOODSENSE_FLATTY_V1_0","SENSATIVE_STRIP_DRIP","ELSYS_ERS_CO2_LITE","ELSYS_ERS_LITE","ELSYS_ERS_EYE","ELSYS_ERS_SOUND","ELSYS_ERS_VOC","SMAPPEE_SERVICELOCATION"],"title":"SensorSubtype"},"SensorTagCasing":{"type":"integer","enum":[10,11,12],"title":"SensorTagCasing","description":"Enumerator class for casing type tags that apply to all sensors."},"SensorTagClimate":{"type":"integer","enum":[10,11],"title":"SensorTagClimate","description":"Enumerator class for climate tags that apply to all sensors."},"SensorTagComplementaryElement":{"type":"integer","enum":[311,312,321,322,371,372,378,379,380,381,382,501,502],"title":"SensorTagComplementaryElement","description":"Enumerator class for Complementary elements (i.e. 3XX) as denoted in BIM7aa."},"SensorTagConstructionPhase":{"type":"integer","enum":[10,11],"title":"SensorTagConstructionPhase","description":"Enumerator class for construction phase tags that apply to all sensors."},"SensorTagConstructionPrinciples":{"type":"integer","enum":[10,20,30],"title":"SensorTagConstructionPrinciples","description":"Enumerator class for construction principles that apply to all sensors"},"SensorTagInsulation":{"type":"integer","enum":[10,11],"title":"SensorTagInsulation","description":"Enumerator class for insulation tags that apply to all sensors."},"SensorTagInsulationType":{"type":"integer","enum":[10,20,30,40,50,60,61,70],"title":"SensorTagInsulationType","description":"Enumerator class for insulation type tags that apply to all sensors."},"SensorTagMeasurementPlacement":{"type":"integer","enum":[10,20,30,40],"title":"SensorTagMeasurementPlacement","description":"Enumerator class for placement of environment measurements"},"SensorTagOrientation":{"type":"integer","enum":[10,20,30,40,50,60,70,80],"title":"SensorTagOrientation","description":"Custom enumerator class for denoting the compass orientation of the placed sensor."},"SensorTagPrimaryElementCategory":{"type":"integer","enum":[21,22,23,24,25,26,27,28],"title":"SensorTagPrimaryElementCategory","description":"Enumerator class for Primary Element Categories (i.e. 2X) as denoted in BIM7aa."},"SensorTagPrimaryElementType":{"type":"integer","enum":[211,212,213,214,215,216,217,218,221,222,223,224,225,226,231,232,233,234,239,241,242,243,244,245,246,247,251,252,253,254,255,256,257,259,261,262,263,271,272,273,274,275,276,279,501,502],"title":"SensorTagPrimaryElementType","description":"Enumerator class for Primary Element Types (i.e. 2XX) as denoted in BIM7aa."},"SensorTagRoomType":{"type":"integer","enum":[10,20,30,40,50,60,100,110],"title":"SensorTagRoomType"},"SensorTagScrewType":{"type":"integer","enum":[10,11],"title":"SensorTagScrewType","description":"Enumerator class for screw type tags that apply to all sensors."},"SensorTagUsage":{"type":"integer","enum":[10,20],"title":"SensorTagUsage","description":"Enumerator class for usage tags that apply to all sensors."},"SensorTagVentilation":{"type":"integer","enum":[10,11],"title":"SensorTagVentilation","description":"Enumerator class for ventilation tags that apply to all sensors."},"SensorTagVerticalPlacement":{"type":"integer","enum":[10,20,30],"title":"SensorTagVerticalPlacement","description":"Custom enumerator class for denoting the vertical placement for a sensor."},"SensorTags":{"properties":{"primary_element_category":{},"primary_element_category_description":{"title":"Primary Element Category Description"},"primary_element_type":{},"primary_element_type_description":{"title":"Primary Element Type Description"},"complementary_element":{},"complementary_element_description":{"title":"Complementary Element Description"},"orientation":{},"room_type":{},"room_type_description":{"title":"Room Type Description"},"vertical_placement":{},"casing":{},"climate":{},"construction_phase":{},"construction_principles":{},"insulation":{},"insulation_type":{},"screw_type":{},"screw_length":{"title":"Screw Length"},"screw_diameter":{"title":"Screw Diameter"},"ventilation":{},"usage":{},"measurement_placement":{},"sensor_id":{"title":"Sensor Id"},"created_date":{"title":"Created Date"},"updated_by":{"title":"Updated By"},"updated_date":{"title":"Updated Date"}},"type":"object","required":["sensor_id","created_date"],"title":"SensorTags"},"SensorType":{"type":"string","enum":["WOODSENSE_WOODY","WOODSENSE_FLATTY","SENSATIVE_STRIP","ELSYS","SMAPPEE"],"title":"SensorType"},"SensorsBulkRead":{"properties":{"sensor_ids":{"items":{"type":"string"},"type":"array","title":"Sensor Ids"}},"type":"object","required":["sensor_ids"],"title":"SensorsBulkRead"},"SensorsBulkTransmissions":{"properties":{"sensor_ids":{"items":{"type":"string","pattern":"^[A-Fa-f0-9]{24}$"},"type":"array","maxItems":1000,"title":"Sensor Ids"},"from_timestamp":{"type":"string","format":"date-time","title":"From Timestamp"},"to_timestamp":{"type":"string","format":"date-time","title":"To Timestamp"},"limit":{"type":"integer","maximum":100000.0,"minimum":1.0,"title":"Limit","default":100000},"fields":{"items":{"anyOf":[{"type":"string","enum":["snr","frequency","bandwidth","spreading_factor","rssi","downlink_rssi","heartbeat_interval","tx_power","uptime","battery","humidity","moisture","ohms","temperature","co2","light","motion","sound_avg","sound_peak","occupancy","voc","id","timestamp","gateway_id","hardware_id","event","sensor_id"]},{"type":"string","enum":["risk_score","risk_reasons_int_keys"]}]},"type":"array","uniqueItems":true,"title":"Fields"},"risk_score_lookback_hours":{"anyOf":[{"type":"integer","maximum":720.0,"minimum":1.0},{"type":"null"}],"title":"Risk Score Lookback Hours"}},"type":"object","required":["sensor_ids","from_timestamp","to_timestamp","fields"],"title":"SensorsBulkTransmissions"},"SensorsBulkTransmissionsDaily":{"properties":{"sensor_ids":{"items":{"type":"string","pattern":"^[A-Fa-f0-9]{24}$"},"type":"array","maxItems":1000,"title":"Sensor Ids"},"from_timestamp":{"type":"string","format":"date-time","title":"From Timestamp"},"to_timestamp":{"type":"string","format":"date-time","title":"To Timestamp"},"limit":{"type":"integer","maximum":100000.0,"minimum":1.0,"title":"Limit","default":100000},"fields":{"items":{"type":"string","enum":["moisture","temperature","humidity","co2","voc","ohms","risk_score"]},"type":"array","uniqueItems":true,"title":"Fields"}},"type":"object","required":["sensor_ids","from_timestamp","to_timestamp","fields"],"title":"SensorsBulkTransmissionsDaily"},"SensorsBulkTransmissionsDistribution":{"properties":{"sensor_ids":{"items":{"type":"string","pattern":"^[A-Fa-f0-9]{24}$"},"type":"array","maxItems":5000,"title":"Sensor Ids"},"from_timestamp":{"type":"string","format":"date-time","title":"From Timestamp"},"to_timestamp":{"type":"string","format":"date-time","title":"To Timestamp"},"fields":{"items":{"type":"string","enum":["moisture","temperature","humidity","co2","voc","ohms","rssi","snr","battery","risk_score"]},"type":"array","uniqueItems":true,"title":"Fields"},"share_fields":{"items":{"type":"string","enum":["spreading_factor","tx_power"]},"type":"array","uniqueItems":true,"title":"Share Fields"},"by_gateway":{"type":"boolean","title":"By Gateway","default":false},"line_count":{"type":"integer","maximum":20.0,"minimum":0.0,"title":"Line Count","default":0}},"type":"object","required":["sensor_ids","from_timestamp","to_timestamp"],"title":"SensorsBulkTransmissionsDistribution"},"SensorsDistributionGroupResponse":{"properties":{"gateway_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gateway Id"},"hardware_ids":{"items":{"type":"string"},"type":"array","title":"Hardware Ids"},"steps":{"additionalProperties":{"items":{},"type":"array"},"type":"object","title":"Steps"},"extreme_hardware_ids":{"additionalProperties":{"items":{"type":"string"},"type":"array"},"type":"object","title":"Extreme Hardware Ids"},"shares":{"additionalProperties":{"additionalProperties":{"items":{},"type":"array"},"type":"object"},"type":"object","title":"Shares"},"lines":{"anyOf":[{"additionalProperties":{"items":{},"type":"array"},"type":"object"},{"type":"null"}],"title":"Lines"}},"type":"object","required":["gateway_id","hardware_ids","steps","extreme_hardware_ids","shares"],"title":"SensorsDistributionGroupResponse"},"SensorsDistributionResponse":{"properties":{"freq":{"type":"string","enum":["ME","W","d","h"],"title":"Freq"},"groups":{"items":{"$ref":"#/components/schemas/SensorsDistributionGroupResponse"},"type":"array","title":"Groups"},"pending_sensor_ids":{"items":{"type":"string"},"type":"array","title":"Pending Sensor Ids","default":[]},"risk_score_pending_sensor_ids":{"items":{"type":"string"},"type":"array","title":"Risk Score Pending Sensor Ids","default":[]}},"type":"object","required":["freq","groups"],"title":"SensorsDistributionResponse"},"SignalStrengthState":{"type":"string","enum":["VERY_GOOD","GOOD","FAIR","MODERATE","POOR","VERY_POOR","UNKNOWN"],"title":"SignalStrengthState"},"SuggestedAction":{"type":"string","enum":["contact_support","renew_subscription","wait_until_active"],"title":"SuggestedAction","description":"Action a user can take to unlock a sensor."},"TemperatureState":{"type":"string","enum":["TEMPERATURE_30_20","TEMPERATURE_20_10","TEMPERATURE_10_0","TEMPERATURE_0_10","TEMPERATURE_10_20","TEMPERATURE_20_30","TEMPERATURE_30_40","TEMPERATURE_40_50","TEMPERATURE_50_60","UNKNOWN"],"title":"TemperatureState"},"User":{"properties":{"id":{"title":"Id"},"email":{"title":"Email"},"full_name":{"title":"Full Name"},"phone_number":{"title":"Phone Number"},"customer_id":{"title":"Customer Id"},"is_admin":{"title":"Is Admin"},"receive_alarms_email":{"title":"Receive Alarms Email"},"receive_alarms_sms":{"title":"Receive Alarms Sms"},"last_signed_in_at":{"title":"Last Signed In At"},"last_locale_used":{"title":"Last Locale Used"},"add_demo_application":{"title":"Add Demo Application"},"send_notification":{"title":"Send Notification"},"demo_application_id":{"title":"Demo Application Id"},"hashed_password":{"title":"Hashed Password"},"password_salt":{"title":"Password Salt"},"hs_contact_id":{"title":"Hs Contact Id"},"created_date":{"title":"Created Date"},"updated_date":{"title":"Updated Date"},"created_by":{"title":"Created By"},"updated_by":{"title":"Updated By"}},"type":"object","required":["id","email","full_name","hashed_password","password_salt","created_date"],"title":"User"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"WoodSpecies":{"type":"string","enum":["UNKNOWN","PINE","SPRUCE","PINE_FINLAND","PINE_SWEDEN","PINE_NORWAY","PINE_GERMANY","PINE_FRANCE","PINE_BY_TRAETEK","PINE_NORDIC","PINE_RADIATA","PINE_RADIATA_LVL","SPRUCE_FINLAND","SPRUCE_SWEDEN","SPRUCE_NORWAY","SPRUCE_DENMARK","SPRUCE_GERMANY","SPRUCE_AUSTRIA","SPRUCE_BY_TRAETEK","SPRUCE_NORDIC","SPRUCE_CENTRAL_EUROPE","SPRUCE_UK_COATED_LJUBLJANA","BIRCH_FINLAND","BIRCH_SWEDEN","BIRCH_NORDIC","OAK_DENMARK","OAK_GERMANY","OAK_FRANCE","OAK_CENTRAL_EUROPE","OAK_HEARTWOOD_LJUBLJANA","BEECH_DENMARK","BEECH_GERMANY","BEECH_CENTRAL_EUROPE","ALDER_SWEDEN","LARCH_DENMARK","DOUGLAS_FIR","SHINING_GUM","CHESTNUT","POPLAR_THERMALLY_MODIFIED","ROBINIA","SUGI","KARAMATSU","KEYAKI","HINOKI","KIRI","OSB_BOARD","OSB_BOARD_WIGWAM","OSB_BOARD_NRC_CANADA","CUSTOM_PLYWOOD_BUNCH_001"],"title":"WoodSpecies"}},"securitySchemes":{"OAuth2PasswordBearerWithCookie":{"type":"oauth2","flows":{"password":{"scopes":{},"tokenUrl":"/api/v1/login"}}}}}}