{"openapi": "3.1.0", "info": {"title": "OCEAn", "version": "0.9.9"}, "paths": {"/task-status": {"get": {"summary": "Task status", "description": "Return the status of a long-running task.", "operationId": "task_status_task_status_get", "parameters": [{"name": "task_id", "in": "query", "required": true, "schema": {"type": "string", "title": "Task Id"}}, {"name": "Ocean-Session-Id", "in": "header", "required": true, "schema": {"type": "string", "title": "Ocean-Session-Id"}}], "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/TaskStatusResponse"}}}}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}}, "/validate-emission-rule": {"post": {"summary": "Validates an emission rule and computes a display name", "operationId": "validate_emission_rule_validate_emission_rule_post", "parameters": [{"name": "Ocean-Session-Id", "in": "header", "required": true, "schema": {"type": "string", "title": "Ocean-Session-Id"}}], "requestBody": {"required": true, "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ValidateEmissionRuleRequest"}}}}, "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ValidateEmissionRuleResponse"}}}}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}}, "/get-available-attributes": {"post": {"summary": "Get Available Attributes For Emission Rule", "operationId": "get_available_attributes_for_emission_rule_get_available_attributes_post", "parameters": [{"name": "Ocean-Session-Id", "in": "header", "required": true, "schema": {"type": "string", "title": "Ocean-Session-Id"}}], "requestBody": {"required": true, "content": {"application/json": {"schema": {"$ref": "#/components/schemas/GetAvailableAttributesRequest"}}}}, "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/GetAvailableAttributesResponse"}}}}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}}, "/compute-emissions": {"post": {"summary": "Compute emissions", "operationId": "compute_emissions_compute_emissions_post", "parameters": [{"name": "Ocean-Session-Id", "in": "header", "required": true, "schema": {"type": "string", "title": "Ocean-Session-Id"}}], "requestBody": {"required": true, "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ComputeEmissionsRequestBody"}}}}, "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {"anyOf": [{"$ref": "#/components/schemas/TaskStatusResponse_ComputeEmissionsResponse_"}, {"$ref": "#/components/schemas/ComputeEmissionsResponse"}], "title": "Response Compute Emissions Compute Emissions Post"}}}}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}}, "/dfg": {"post": {"summary": "Directly-follows graph discovery", "operationId": "discover_dfg_dfg_post", "parameters": [{"name": "Ocean-Session-Id", "in": "header", "required": true, "schema": {"type": "string", "title": "Ocean-Session-Id"}}], "requestBody": {"required": true, "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ObjectTypeRequestBody"}}}}, "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/WeightedDirectedGraphResponse"}}}}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}}, "/efg": {"post": {"summary": "Eventually-follows graph discovery", "operationId": "discover_efg_efg_post", "parameters": [{"name": "Ocean-Session-Id", "in": "header", "required": true, "schema": {"type": "string", "title": "Ocean-Session-Id"}}], "requestBody": {"required": true, "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ObjectTypeRequestBody"}}}}, "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/DirectedGraphResponse"}}}}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}}, "/ocpn": {"post": {"summary": "OCPN discovery", "operationId": "ocpn_ocpn_post", "parameters": [{"name": "Ocean-Session-Id", "in": "header", "required": true, "schema": {"type": "string", "title": "Ocean-Session-Id"}}], "requestBody": {"required": true, "content": {"application/json": {"schema": {"$ref": "#/components/schemas/OcpnRequestBody"}}}}, "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/OcpnResponse"}}}}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}}, "/object-allocation": {"post": {"summary": "Allocate emissions from events to objects", "operationId": "object_allocation_object_allocation_post", "parameters": [{"name": "Ocean-Session-Id", "in": "header", "required": true, "schema": {"type": "string", "title": "Ocean-Session-Id"}}], "requestBody": {"required": true, "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ObjectAllocationRequestBody"}}}}, "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ObjectAllocationResponse"}}}}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}}, "/import": {"post": {"summary": "Import OCEL 2.0 from .sqlite file", "operationId": "import_ocel_import_post", "parameters": [{"name": "name", "in": "query", "required": true, "schema": {"type": "string", "pattern": "[\\w\\-\\(\\)]+\\.[a-z]+", "description": "The name of the uploaded file", "title": "Name"}, "description": "The name of the uploaded file"}], "requestBody": {"required": true, "content": {"multipart/form-data": {"schema": {"$ref": "#/components/schemas/Body_import_ocel_import_post"}}}}, "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/OcelResponse"}}}}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}}, "/import-default": {"get": {"summary": "Import default OCEL", "operationId": "import_default_ocel_import_default_get", "parameters": [{"name": "key", "in": "query", "required": true, "schema": {"type": "string", "description": "Default OCEL key", "examples": ["containerLogistics", "hinge", "orderManagement", "orderManagementWithDistances", "p2p", "pallet-logistics"], "title": "Key"}, "description": "Default OCEL key"}, {"name": "version", "in": "query", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "Dataset version (optional)", "examples": ["1.0"], "title": "Version"}, "description": "Dataset version (optional)"}], "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/OcelResponse"}}}}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}}, "/load": {"get": {"summary": "Load OCEL", "operationId": "load_ocel_load_get", "parameters": [{"name": "Ocean-Session-Id", "in": "header", "required": true, "schema": {"type": "string", "title": "Ocean-Session-Id"}}], "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/OcelResponse"}}}}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}}, "/download": {"get": {"summary": "Download OCEL including app state", "operationId": "download_ocel_download_get", "parameters": [{"name": "emissions", "in": "query", "required": false, "schema": {"enum": ["events", "objects", false], "description": "Controls on what level emission values are included in the resulting OCEL file as a new attribute. To preserve overall emissions, it is not possible to include both event and object emissions.", "default": false, "title": "Emissions"}, "description": "Controls on what level emission values are included in the resulting OCEL file as a new attribute. To preserve overall emissions, it is not possible to include both event and object emissions."}, {"name": "token", "in": "header", "required": true, "schema": {"type": "string", "title": "Token"}}, {"name": "Ocean-Session-Id", "in": "header", "required": true, "schema": {"type": "string", "title": "Ocean-Session-Id"}}], "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {}}}}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}}, "/update": {"put": {"summary": "Update user input", "operationId": "update_state_update_put", "parameters": [{"name": "Ocean-Session-Id", "in": "header", "required": true, "schema": {"type": "string", "title": "Ocean-Session-Id"}}], "requestBody": {"required": true, "content": {"application/json": {"schema": {"$ref": "#/components/schemas/UpdateAppStateRequestBody"}}}}, "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/UpdateAppStateResponse"}}}}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}}, "/sample-objects": {"get": {"summary": "Sample objects", "operationId": "sample_objects_sample_objects_get", "parameters": [{"name": "Ocean-Session-Id", "in": "header", "required": true, "schema": {"type": "string", "title": "Ocean-Session-Id"}}], "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/SampleObjectsResponse"}}}}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}}, "/sample-events": {"get": {"summary": "Sample events", "operationId": "sample_events_sample_events_get", "parameters": [{"name": "Ocean-Session-Id", "in": "header", "required": true, "schema": {"type": "string", "title": "Ocean-Session-Id"}}], "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/SampleEventsResponse"}}}}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}}, "/ocel/default": {"get": {"summary": "Get default OCEL metadata", "operationId": "default_ocels_ocel_default_get", "parameters": [{"name": "only_latest_versions", "in": "query", "required": false, "schema": {"type": "boolean", "default": true, "title": "Only Latest Versions"}}, {"name": "only_preloaded", "in": "query", "required": false, "schema": {"type": "boolean", "default": false, "title": "Only Preloaded"}}], "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {"type": "array", "items": {"$ref": "#/components/schemas/DefaultOCEL"}, "title": "Response Default Ocels Ocel Default Get"}}}}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}}, "/climatiq/units/list": {"get": {"summary": "Get list of climatiq units", "operationId": "get_climatiq_units_climatiq_units_list_get", "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {"items": {"$ref": "#/components/schemas/ClimatiqUnitType"}, "type": "array", "title": "Response Get Climatiq Units Climatiq Units List Get"}}}}}}}, "/units/search": {"get": {"summary": "Search for a unit", "operationId": "unit_search_units_search_get", "parameters": [{"name": "q", "in": "query", "required": true, "schema": {"type": "string", "title": "Q"}}], "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {"anyOf": [{"description": "A unit (physical, currency, ...), represented by a symbol, name, and dimensionality.", "properties": {"symbol": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "Unit symbol", "examples": ["m/s"], "title": "Symbol"}, "name": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "Long name of the unit", "examples": ["meter/second"], "title": "Name"}, "dim": {"additionalProperties": {"type": "integer"}, "description": "The unit dimensionality, compatible with the `pint` python package", "examples": [{"[length]": 1, "[time]": -1}], "title": "Dim", "type": "object"}}, "required": ["symbol", "name", "dim"], "title": "Unit", "type": "object"}, {"type": "null"}], "title": "Response Unit Search Units Search Get"}}}}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}}}, "components": {"schemas": {"AppState-Input": {"properties": {"objectTypeColors": {"anyOf": [{"additionalProperties": {"type": "string", "pattern": "#?(?:[0-9a-fA-F]{3}){1,2}"}, "type": "object"}, {"type": "null"}], "title": "Objecttypecolors"}, "objectTypeClasses": {"anyOf": [{"additionalProperties": {"type": "string", "enum": ["handling_unit", "resource"]}, "type": "object"}, {"type": "null"}], "title": "Objecttypeclasses"}, "attributeUnits": {"anyOf": [{"items": {"oneOf": [{"$ref": "#/components/schemas/EventAttributeDefinition"}, {"$ref": "#/components/schemas/ObjectAttributeDefinition"}], "discriminator": {"propertyName": "target", "mapping": {"event": "#/components/schemas/EventAttributeDefinition", "object": "#/components/schemas/ObjectAttributeDefinition"}}}, "type": "array"}, {"type": "null"}], "title": "Attributeunits"}, "emissionAttributes": {"anyOf": [{"items": {"oneOf": [{"$ref": "#/components/schemas/EventAttributeDefinition"}, {"$ref": "#/components/schemas/ObjectAttributeDefinition"}], "discriminator": {"propertyName": "target", "mapping": {"event": "#/components/schemas/EventAttributeDefinition", "object": "#/components/schemas/ObjectAttributeDefinition"}}}, "type": "array"}, {"type": "null"}], "title": "Emissionattributes"}, "emissionRules": {"anyOf": [{"items": {"oneOf": [{"$ref": "#/components/schemas/EventEmissionRule-Input"}, {"$ref": "#/components/schemas/E2OEmissionRule-Input"}], "discriminator": {"propertyName": "type", "mapping": {"E2OEmissionRule": "#/components/schemas/E2OEmissionRule-Input", "EventEmissionRule": "#/components/schemas/EventEmissionRule-Input"}}}, "type": "array"}, {"type": "null"}], "title": "Emissionrules"}, "objectAllocationConfig": {"anyOf": [{"$ref": "#/components/schemas/ObjectAllocationConfig"}, {"type": "null"}]}}, "type": "object", "title": "AppState"}, "AppState-Output": {"properties": {"objectTypeColors": {"anyOf": [{"additionalProperties": {"type": "string", "pattern": "#?(?:[0-9a-fA-F]{3}){1,2}"}, "type": "object"}, {"type": "null"}], "title": "Objecttypecolors"}, "objectTypeClasses": {"anyOf": [{"additionalProperties": {"type": "string", "enum": ["handling_unit", "resource"]}, "type": "object"}, {"type": "null"}], "title": "Objecttypeclasses"}, "attributeUnits": {"anyOf": [{"items": {"oneOf": [{"$ref": "#/components/schemas/EventAttributeDefinition"}, {"$ref": "#/components/schemas/ObjectAttributeDefinition"}], "discriminator": {"propertyName": "target", "mapping": {"event": "#/components/schemas/EventAttributeDefinition", "object": "#/components/schemas/ObjectAttributeDefinition"}}}, "type": "array"}, {"type": "null"}], "title": "Attributeunits"}, "emissionAttributes": {"anyOf": [{"items": {"oneOf": [{"$ref": "#/components/schemas/EventAttributeDefinition"}, {"$ref": "#/components/schemas/ObjectAttributeDefinition"}], "discriminator": {"propertyName": "target", "mapping": {"event": "#/components/schemas/EventAttributeDefinition", "object": "#/components/schemas/ObjectAttributeDefinition"}}}, "type": "array"}, {"type": "null"}], "title": "Emissionattributes"}, "emissionRules": {"anyOf": [{"items": {"oneOf": [{"$ref": "#/components/schemas/EventEmissionRule-Output"}, {"$ref": "#/components/schemas/E2OEmissionRule-Output"}], "discriminator": {"propertyName": "type", "mapping": {"E2OEmissionRule": "#/components/schemas/E2OEmissionRule-Output", "EventEmissionRule": "#/components/schemas/EventEmissionRule-Output"}}}, "type": "array"}, {"type": "null"}], "title": "Emissionrules"}, "objectAllocationConfig": {"anyOf": [{"$ref": "#/components/schemas/ObjectAllocationConfig"}, {"type": "null"}]}}, "type": "object", "title": "AppState"}, "Arc": {"properties": {"source": {"type": "string", "title": "Source"}, "target": {"type": "string", "title": "Target"}, "double": {"type": "boolean", "title": "Double"}}, "type": "object", "required": ["source", "target", "double"], "title": "Arc"}, "BaseResponse": {"properties": {"session": {"type": "string", "title": "Session"}, "route": {"type": "string", "title": "Route"}, "state": {"type": "string", "title": "State"}, "status": {"type": "integer", "title": "Status", "default": 200}, "msg": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Msg"}, "appState": {"anyOf": [{"$ref": "#/components/schemas/AppState-Output"}, {"type": "null"}]}, "emissions": {"anyOf": [{"$ref": "#/components/schemas/ProcessEmissions"}, {"type": "null"}]}}, "type": "object", "required": ["session", "route", "state"], "title": "BaseResponse"}, "Body_import_ocel_import_post": {"properties": {"file": {"type": "string", "format": "binary", "title": "File", "description": "An OCEL 2.0 event log (.sqlite format)"}}, "type": "object", "required": ["file"], "title": "Body_import_ocel_import_post"}, "ClimatiqDataVersionInformationRemoved": {"properties": {"status": {"type": "string", "enum": ["removed"], "const": "removed", "title": "Status"}, "replacedIn": {"type": "string", "title": "Replacedin"}}, "type": "object", "required": ["status", "replacedIn"], "title": "ClimatiqDataVersionInformationRemoved"}, "ClimatiqDataVersionInformationReplaced": {"properties": {"status": {"type": "string", "enum": ["replaced"], "const": "replaced", "title": "Status"}, "replacedIn": {"type": "string", "title": "Replacedin"}, "replacedBy": {"type": "string", "title": "Replacedby"}}, "type": "object", "required": ["status", "replacedIn", "replacedBy"], "title": "ClimatiqDataVersionInformationReplaced"}, "ClimatiqDataVersionInformationUpToDate": {"properties": {"status": {"type": "string", "enum": ["up_to_date"], "const": "up_to_date", "title": "Status"}}, "type": "object", "required": ["status"], "title": "ClimatiqDataVersionInformationUpToDate"}, "ClimatiqEmissionFactor-Input": {"properties": {"source": {"type": "string", "enum": ["climatiq"], "const": "climatiq", "title": "Source"}, "attributes": {"items": {"$ref": "#/components/schemas/QualifiedAttribute"}, "type": "array", "title": "Attributes"}, "data": {"$ref": "#/components/schemas/ClimatiqEmissionFactorDetails"}, "value": {"anyOf": [{"properties": {"value": {"type": "number", "title": "Value"}, "unit": {"anyOf": [{"properties": {"symbol": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Symbol", "description": "Unit symbol", "examples": ["m/s"]}, "name": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name", "description": "Long name of the unit", "examples": ["meter/second"]}, "dim": {"additionalProperties": {"type": "integer"}, "type": "object", "title": "Dim", "description": "The unit dimensionality, compatible with the `pint` python package", "examples": [{"[length]": 1, "[time]": -1}]}}, "type": "object", "required": ["symbol", "name", "dim"], "title": "Unit", "description": "A unit (physical, currency, ...), represented by a symbol, name, and dimensionality."}, {"type": "null"}], "title": "Unit"}}, "type": "object", "required": ["value"], "title": "Quantity", "description": "A quantity (physical, currency, ...), containing a value and (optionally) a unit."}, {"type": "null"}], "title": "Value", "description": "The emission factor. If not passed, the climatiq API is accessed to retrieve the factor."}}, "type": "object", "required": ["source", "attributes", "data"], "title": "ClimatiqEmissionFactor"}, "ClimatiqEmissionFactor-Output": {"properties": {"source": {"type": "string", "enum": ["climatiq"], "const": "climatiq", "title": "Source"}, "attributes": {"items": {"$ref": "#/components/schemas/QualifiedAttribute"}, "type": "array", "title": "Attributes"}, "data": {"$ref": "#/components/schemas/ClimatiqEmissionFactorDetails"}, "value": {"anyOf": [{"properties": {"value": {"type": "number", "title": "Value"}, "unit": {"anyOf": [{"properties": {"symbol": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Symbol", "description": "Unit symbol", "examples": ["m/s"]}, "name": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name", "description": "Long name of the unit", "examples": ["meter/second"]}, "dim": {"additionalProperties": {"type": "integer"}, "type": "object", "title": "Dim", "description": "The unit dimensionality, compatible with the `pint` python package", "examples": [{"[length]": 1, "[time]": -1}]}}, "type": "object", "required": ["symbol", "name", "dim"], "title": "Unit", "description": "A unit (physical, currency, ...), represented by a symbol, name, and dimensionality."}, {"type": "null"}], "title": "Unit"}}, "type": "object", "required": ["value"], "title": "Quantity", "description": "A quantity (physical, currency, ...), containing a value and (optionally) a unit."}, {"type": "null"}], "title": "Value", "description": "The emission factor. If not passed, the climatiq API is accessed to retrieve the factor."}}, "type": "object", "required": ["source", "attributes", "data"], "title": "ClimatiqEmissionFactor"}, "ClimatiqEmissionFactorDetails": {"properties": {"id": {"type": "string", "title": "Id"}, "activityId": {"type": "string", "title": "Activityid"}, "accessType": {"type": "string", "enum": ["private", "public"], "title": "Accesstype"}, "name": {"type": "string", "title": "Name"}, "category": {"type": "string", "title": "Category"}, "sector": {"type": "string", "title": "Sector"}, "source": {"type": "string", "title": "Source"}, "sourceLink": {"type": "string", "title": "Sourcelink"}, "uncertainty": {"anyOf": [{"type": "number"}, {"type": "null"}], "title": "Uncertainty"}, "year": {"type": "integer", "title": "Year"}, "yearReleased": {"type": "integer", "title": "Yearreleased"}, "region": {"type": "string", "title": "Region"}, "regionName": {"type": "string", "title": "Regionname"}, "description": {"type": "string", "title": "Description"}, "unit": {"type": "string", "title": "Unit"}, "unitType": {"type": "string", "title": "Unittype"}, "sourceLcaActivity": {"type": "string", "title": "Sourcelcaactivity"}, "supportedCalculationMethods": {"items": {"type": "string", "enum": ["ar4", "ar5", "ar6"]}, "type": "array", "title": "Supportedcalculationmethods"}, "factor": {"anyOf": [{"type": "number"}, {"type": "null"}], "title": "Factor"}, "factorCalculationMethod": {"anyOf": [{"type": "string", "enum": ["ar4", "ar5", "ar6"]}, {"type": "null"}], "title": "Factorcalculationmethod"}, "constituentGases": {"additionalProperties": {"anyOf": [{"type": "number"}, {"type": "null"}]}, "type": "object", "title": "Constituentgases"}, "dataVersionInformation": {"oneOf": [{"$ref": "#/components/schemas/ClimatiqDataVersionInformationUpToDate"}, {"$ref": "#/components/schemas/ClimatiqDataVersionInformationReplaced"}, {"$ref": "#/components/schemas/ClimatiqDataVersionInformationRemoved"}], "title": "Dataversioninformation", "discriminator": {"propertyName": "status", "mapping": {"removed": "#/components/schemas/ClimatiqDataVersionInformationRemoved", "replaced": "#/components/schemas/ClimatiqDataVersionInformationReplaced", "up_to_date": "#/components/schemas/ClimatiqDataVersionInformationUpToDate"}}}}, "type": "object", "required": ["id", "activityId", "accessType", "name", "category", "sector", "source", "sourceLink", "year", "yearReleased", "region", "regionName", "description", "unit", "unitType", "sourceLcaActivity", "supportedCalculationMethods", "constituentGases", "dataVersionInformation"], "title": "ClimatiqEmissionFactorDetails"}, "ClimatiqUnitType": {"properties": {"unitType": {"type": "string", "title": "Unittype", "examples": ["Weight", "DistancceOverTime"]}, "units": {"additionalProperties": {"items": {"type": "string"}, "type": "array"}, "type": "object", "title": "Units", "examples": [{"weight_unit": ["g", "kg", "t", "lb", "ton"]}, {"distance_unit": ["m", "km", "ft", "mi", "nmi"], "time_unit": ["ms", "s", "m", "h", "day", "year"]}]}}, "type": "object", "required": ["unitType", "units"], "title": "ClimatiqUnitType"}, "ComputeEmissionsRequestBody": {"properties": {"rules": {"items": {"oneOf": [{"$ref": "#/components/schemas/EventEmissionRule-Input"}, {"$ref": "#/components/schemas/E2OEmissionRule-Input"}], "discriminator": {"propertyName": "type", "mapping": {"E2OEmissionRule": "#/components/schemas/E2OEmissionRule-Input", "EventEmissionRule": "#/components/schemas/EventEmissionRule-Input"}}}, "type": "array", "title": "Rules"}}, "type": "object", "required": ["rules"], "title": "ComputeEmissionsRequestBody"}, "ComputeEmissionsResponse": {"properties": {"session": {"type": "string", "title": "Session"}, "route": {"type": "string", "title": "Route"}, "state": {"type": "string", "title": "State"}, "status": {"type": "integer", "title": "Status", "default": 200}, "msg": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Msg"}, "appState": {"anyOf": [{"$ref": "#/components/schemas/AppState-Output"}, {"type": "null"}]}, "emissions": {"anyOf": [{"$ref": "#/components/schemas/ProcessEmissions"}, {"type": "null"}]}}, "type": "object", "required": ["session", "route", "state"], "title": "ComputeEmissionsResponse"}, "DefaultOCEL": {"properties": {"key": {"type": "string", "title": "Key"}, "name": {"type": "string", "title": "Name"}, "version": {"type": "string", "title": "Version"}, "file": {"type": "string", "title": "File"}, "url": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Url"}, "preload": {"type": "boolean", "title": "Preload", "default": false}, "hide": {"type": "boolean", "title": "Hide", "default": false}}, "type": "object", "required": ["key", "name", "version", "file"], "title": "DefaultOCEL", "description": "Definition of a default OCEL on the server, for quick access. Supports pre-loading the OCEL on backend init."}, "DirectedGraphResponse": {"properties": {"session": {"type": "string", "title": "Session"}, "route": {"type": "string", "title": "Route"}, "state": {"type": "string", "title": "State"}, "status": {"type": "integer", "title": "Status", "default": 200}, "msg": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Msg"}, "appState": {"anyOf": [{"$ref": "#/components/schemas/AppState-Output"}, {"type": "null"}]}, "emissions": {"anyOf": [{"$ref": "#/components/schemas/ProcessEmissions"}, {"type": "null"}]}, "graph": {"additionalProperties": {"items": {"type": "string"}, "type": "array", "uniqueItems": true}, "type": "object", "title": "Graph"}}, "type": "object", "required": ["session", "route", "state", "graph"], "title": "DirectedGraphResponse"}, "E2OEmissionRule-Input": {"properties": {"index": {"type": "integer", "title": "Index"}, "name": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name"}, "activity": {"type": "string", "title": "Activity"}, "factor": {"oneOf": [{"$ref": "#/components/schemas/LocalEmissionFactor-Input"}, {"$ref": "#/components/schemas/ClimatiqEmissionFactor-Input"}], "title": "Factor", "discriminator": {"propertyName": "source", "mapping": {"climatiq": "#/components/schemas/ClimatiqEmissionFactor-Input", "local": "#/components/schemas/LocalEmissionFactor-Input"}}}, "ignoreUnit": {"type": "boolean", "title": "Ignoreunit", "description": "Disables validation of the result unit being a weight.", "default": false}, "type": {"type": "string", "enum": ["E2OEmissionRule"], "const": "E2OEmissionRule", "title": "Type"}, "objectType": {"type": "string", "title": "Objecttype"}, "qualifier": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Qualifier"}}, "type": "object", "required": ["index", "activity", "factor", "type", "objectType"], "title": "E2OEmissionRule"}, "E2OEmissionRule-Output": {"properties": {"index": {"type": "integer", "title": "Index"}, "name": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name"}, "activity": {"type": "string", "title": "Activity"}, "factor": {"oneOf": [{"$ref": "#/components/schemas/LocalEmissionFactor-Output"}, {"$ref": "#/components/schemas/ClimatiqEmissionFactor-Output"}], "title": "Factor", "discriminator": {"propertyName": "source", "mapping": {"climatiq": "#/components/schemas/ClimatiqEmissionFactor-Output", "local": "#/components/schemas/LocalEmissionFactor-Output"}}}, "type": {"type": "string", "enum": ["E2OEmissionRule"], "const": "E2OEmissionRule", "title": "Type"}, "objectType": {"type": "string", "title": "Objecttype"}, "qualifier": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Qualifier"}, "defaultName": {"type": "string", "title": "Defaultname", "readOnly": true}}, "type": "object", "required": ["index", "activity", "factor", "type", "objectType", "defaultName"], "title": "E2OEmissionRule"}, "EmissionsState": {"properties": {"hasImportedEmissions": {"type": "boolean", "title": "Hasimportedemissions", "default": false}, "hasRuleBasedEmissions": {"type": "boolean", "title": "Hasrulebasedemissions", "default": false}, "hasObjectEmissions": {"type": "boolean", "title": "Hasobjectemissions"}, "hasEmissions": {"type": "boolean", "title": "Hasemissions", "readOnly": true}}, "type": "object", "required": ["hasObjectEmissions", "hasEmissions"], "title": "EmissionsState"}, "EventAttributeDefinition": {"properties": {"target": {"type": "string", "enum": ["event"], "const": "event", "title": "Target"}, "name": {"type": "string", "title": "Name"}, "unit": {"anyOf": [{"properties": {"symbol": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Symbol", "description": "Unit symbol", "examples": ["m/s"]}, "name": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name", "description": "Long name of the unit", "examples": ["meter/second"]}, "dim": {"additionalProperties": {"type": "integer"}, "type": "object", "title": "Dim", "description": "The unit dimensionality, compatible with the `pint` python package", "examples": [{"[length]": 1, "[time]": -1}]}}, "type": "object", "required": ["symbol", "name", "dim"], "title": "Unit", "description": "A unit (physical, currency, ...), represented by a symbol, name, and dimensionality."}, {"type": "null"}], "title": "Unit"}, "activity": {"type": "string", "title": "Activity"}}, "type": "object", "required": ["target", "name", "activity"], "title": "EventAttributeDefinition"}, "EventEmissionRule-Input": {"properties": {"index": {"type": "integer", "title": "Index"}, "name": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name"}, "activity": {"type": "string", "title": "Activity"}, "factor": {"oneOf": [{"$ref": "#/components/schemas/LocalEmissionFactor-Input"}, {"$ref": "#/components/schemas/ClimatiqEmissionFactor-Input"}], "title": "Factor", "discriminator": {"propertyName": "source", "mapping": {"climatiq": "#/components/schemas/ClimatiqEmissionFactor-Input", "local": "#/components/schemas/LocalEmissionFactor-Input"}}}, "ignoreUnit": {"type": "boolean", "title": "Ignoreunit", "description": "Disables validation of the result unit being a weight.", "default": false}, "type": {"type": "string", "enum": ["EventEmissionRule"], "const": "EventEmissionRule", "title": "Type"}}, "type": "object", "required": ["index", "activity", "factor", "type"], "title": "EventEmissionRule"}, "EventEmissionRule-Output": {"properties": {"index": {"type": "integer", "title": "Index"}, "name": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name"}, "activity": {"type": "string", "title": "Activity"}, "factor": {"oneOf": [{"$ref": "#/components/schemas/LocalEmissionFactor-Output"}, {"$ref": "#/components/schemas/ClimatiqEmissionFactor-Output"}], "title": "Factor", "discriminator": {"propertyName": "source", "mapping": {"climatiq": "#/components/schemas/ClimatiqEmissionFactor-Output", "local": "#/components/schemas/LocalEmissionFactor-Output"}}}, "type": {"type": "string", "enum": ["EventEmissionRule"], "const": "EventEmissionRule", "title": "Type"}, "defaultName": {"type": "string", "title": "Defaultname", "readOnly": true}}, "type": "object", "required": ["index", "activity", "factor", "type", "defaultName"], "title": "EventEmissionRule"}, "GetAvailableAttributesRequest": {"properties": {"type": {"type": "string", "enum": ["EventEmissionRule", "E2OEmissionRule"], "title": "Type"}, "activity": {"type": "string", "title": "Activity"}, "objectType": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Objecttype"}, "qualifier": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Qualifier"}, "numericOnly": {"type": "boolean", "title": "Numericonly", "default": false}}, "type": "object", "required": ["type", "activity"], "title": "GetAvailableAttributesRequest"}, "GetAvailableAttributesResponse": {"properties": {"session": {"type": "string", "title": "Session"}, "route": {"type": "string", "title": "Route"}, "state": {"type": "string", "title": "State"}, "status": {"type": "integer", "title": "Status", "default": 200}, "msg": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Msg"}, "appState": {"anyOf": [{"$ref": "#/components/schemas/AppState-Output"}, {"type": "null"}]}, "emissions": {"anyOf": [{"$ref": "#/components/schemas/ProcessEmissions"}, {"type": "null"}]}, "availableEventAttributes": {"items": {"$ref": "#/components/schemas/EventAttributeDefinition"}, "type": "array", "title": "Availableeventattributes"}, "availableObjectAttributes": {"items": {"prefixItems": [{"type": "string"}, {"anyOf": [{"type": "string"}, {"type": "null"}]}, {"$ref": "#/components/schemas/ObjectAttributeDefinition"}], "type": "array", "maxItems": 3, "minItems": 3}, "type": "array", "title": "Availableobjectattributes"}}, "type": "object", "required": ["session", "route", "state", "availableEventAttributes", "availableObjectAttributes"], "title": "GetAvailableAttributesResponse"}, "HTTPValidationError": {"properties": {"detail": {"items": {"$ref": "#/components/schemas/ValidationError"}, "type": "array", "title": "Detail"}}, "type": "object", "title": "HTTPValidationError"}, "LocalEmissionFactor-Input": {"properties": {"source": {"type": "string", "enum": ["local"], "const": "local", "title": "Source"}, "attributes": {"items": {"$ref": "#/components/schemas/QualifiedAttribute"}, "type": "array", "title": "Attributes"}, "value": {"properties": {"value": {"type": "number", "title": "Value"}, "unit": {"anyOf": [{"properties": {"symbol": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Symbol", "description": "Unit symbol", "examples": ["m/s"]}, "name": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name", "description": "Long name of the unit", "examples": ["meter/second"]}, "dim": {"additionalProperties": {"type": "integer"}, "type": "object", "title": "Dim", "description": "The unit dimensionality, compatible with the `pint` python package", "examples": [{"[length]": 1, "[time]": -1}]}}, "type": "object", "required": ["symbol", "name", "dim"], "title": "Unit", "description": "A unit (physical, currency, ...), represented by a symbol, name, and dimensionality."}, {"type": "null"}], "title": "Unit"}}, "type": "object", "required": ["value"], "title": "Quantity", "description": "A quantity (physical, currency, ...), containing a value and (optionally) a unit."}}, "type": "object", "required": ["source", "attributes", "value"], "title": "LocalEmissionFactor"}, "LocalEmissionFactor-Output": {"properties": {"source": {"type": "string", "enum": ["local"], "const": "local", "title": "Source"}, "attributes": {"items": {"$ref": "#/components/schemas/QualifiedAttribute"}, "type": "array", "title": "Attributes"}, "value": {"properties": {"value": {"type": "number", "title": "Value"}, "unit": {"anyOf": [{"properties": {"symbol": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Symbol", "description": "Unit symbol", "examples": ["m/s"]}, "name": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name", "description": "Long name of the unit", "examples": ["meter/second"]}, "dim": {"additionalProperties": {"type": "integer"}, "type": "object", "title": "Dim", "description": "The unit dimensionality, compatible with the `pint` python package", "examples": [{"[length]": 1, "[time]": -1}]}}, "type": "object", "required": ["symbol", "name", "dim"], "title": "Unit", "description": "A unit (physical, currency, ...), represented by a symbol, name, and dimensionality."}, {"type": "null"}], "title": "Unit"}}, "type": "object", "required": ["value"], "title": "Quantity", "description": "A quantity (physical, currency, ...), containing a value and (optionally) a unit."}}, "type": "object", "required": ["source", "attributes", "value"], "title": "LocalEmissionFactor"}, "NumberStats": {"properties": {"empty": {"type": "boolean", "title": "Empty"}, "count": {"type": "integer", "title": "Count"}, "sum": {"type": "number", "title": "Sum"}, "mean": {"type": "number", "title": "Mean"}, "min": {"type": "number", "title": "Min"}, "median": {"type": "number", "title": "Median"}, "max": {"type": "number", "title": "Max"}, "nonzero": {"type": "number", "title": "Nonzero"}}, "type": "object", "required": ["empty", "count", "sum", "mean", "min", "median", "max", "nonzero"], "title": "NumberStats"}, "OCPN": {"properties": {"objectTypes": {"items": {"type": "string"}, "type": "array", "uniqueItems": true, "title": "Objecttypes"}, "dotString": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Dotstring"}, "structure": {"$ref": "#/components/schemas/OcpnStructure"}}, "type": "object", "required": ["objectTypes", "dotString", "structure"], "title": "OCPN"}, "ObjectAllocationConfig": {"properties": {"targetObjectTypes": {"items": {"type": "string"}, "type": "array", "uniqueItems": true, "title": "Targetobjecttypes"}, "rule": {"type": "string", "enum": ["AllTargets", "ParticipatingTargets", "ClosestTargets"], "title": "Rule"}, "graphMode": {"anyOf": [{"type": "string", "enum": ["full", "HU"]}, {"type": "null"}], "title": "Graphmode"}, "removeOtypeLoops": {"anyOf": [{"type": "boolean"}, {"type": "null"}], "title": "Removeotypeloops"}, "maxDistance": {"anyOf": [{"type": "integer"}, {"type": "boolean", "enum": [false], "const": false}, {"type": "null"}], "title": "Maxdistance"}}, "type": "object", "required": ["targetObjectTypes", "rule"], "title": "ObjectAllocationConfig"}, "ObjectAllocationRequestBody": {"properties": {"objectAllocationConfig": {"$ref": "#/components/schemas/ObjectAllocationConfig"}}, "type": "object", "required": ["objectAllocationConfig"], "title": "ObjectAllocationRequestBody"}, "ObjectAllocationResponse": {"properties": {"session": {"type": "string", "title": "Session"}, "route": {"type": "string", "title": "Route"}, "state": {"type": "string", "title": "State"}, "status": {"type": "integer", "title": "Status", "default": 200}, "msg": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Msg"}, "appState": {"anyOf": [{"$ref": "#/components/schemas/AppState-Output"}, {"type": "null"}]}, "emissions": {"anyOf": [{"$ref": "#/components/schemas/ProcessEmissions"}, {"type": "null"}]}, "objectAllocationConfig": {"$ref": "#/components/schemas/ObjectAllocationConfig"}, "objectEmissions": {"additionalProperties": {"type": "number"}, "type": "object", "title": "Objectemissions"}}, "type": "object", "required": ["session", "route", "state", "objectAllocationConfig", "objectEmissions"], "title": "ObjectAllocationResponse"}, "ObjectAttributeDefinition": {"properties": {"target": {"type": "string", "enum": ["object"], "const": "object", "title": "Target"}, "name": {"type": "string", "title": "Name"}, "unit": {"anyOf": [{"properties": {"symbol": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Symbol", "description": "Unit symbol", "examples": ["m/s"]}, "name": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name", "description": "Long name of the unit", "examples": ["meter/second"]}, "dim": {"additionalProperties": {"type": "integer"}, "type": "object", "title": "Dim", "description": "The unit dimensionality, compatible with the `pint` python package", "examples": [{"[length]": 1, "[time]": -1}]}}, "type": "object", "required": ["symbol", "name", "dim"], "title": "Unit", "description": "A unit (physical, currency, ...), represented by a symbol, name, and dimensionality."}, {"type": "null"}], "title": "Unit"}, "objectType": {"type": "string", "title": "Objecttype"}, "dynamic": {"type": "boolean", "title": "Dynamic"}}, "type": "object", "required": ["target", "name", "objectType", "dynamic"], "title": "ObjectAttributeDefinition"}, "ObjectTypeRequestBody": {"properties": {"objectType": {"type": "string", "title": "Objecttype"}}, "type": "object", "required": ["objectType"], "title": "ObjectTypeRequestBody"}, "OcelData": {"properties": {"meta": {"type": "object", "title": "Meta"}, "numEvents": {"type": "integer", "title": "Numevents"}, "numObjects": {"type": "integer", "title": "Numobjects"}, "activities": {"items": {"type": "string"}, "type": "array", "uniqueItems": true, "title": "Activities"}, "activityCounts": {"additionalProperties": {"type": "integer"}, "type": "object", "title": "Activitycounts"}, "objectTypes": {"items": {"type": "string"}, "type": "array", "uniqueItems": true, "title": "Objecttypes"}, "objectTypeCounts": {"additionalProperties": {"type": "integer"}, "type": "object", "title": "Objecttypecounts"}, "medianNumEventsPerObjectType": {"additionalProperties": {"type": "number"}, "type": "object", "title": "Mediannumeventsperobjecttype"}, "e2oCounts": {"additionalProperties": {"additionalProperties": {"type": "integer"}, "type": "object"}, "type": "object", "title": "E2Ocounts"}, "e2oQualifierCounts": {"additionalProperties": {"additionalProperties": {"additionalProperties": {"type": "integer"}, "type": "object"}, "type": "object"}, "type": "object", "title": "E2Oqualifiercounts"}, "attributes": {"items": {"type": "object"}, "type": "array", "title": "Attributes"}}, "type": "object", "required": ["meta", "numEvents", "numObjects", "activities", "activityCounts", "objectTypes", "objectTypeCounts", "medianNumEventsPerObjectType", "e2oCounts", "e2oQualifierCounts", "attributes"], "title": "OcelData"}, "OcelEvent": {"properties": {"id": {"type": "string", "title": "Id"}, "activity": {"type": "string", "title": "Activity"}, "timestamp": {"type": "string", "format": "date-time", "title": "Timestamp"}, "attr": {"type": "object", "title": "Attr"}}, "type": "object", "required": ["id", "activity", "timestamp", "attr"], "title": "OcelEvent"}, "OcelObject": {"properties": {"id": {"type": "string", "title": "Id"}, "type": {"type": "string", "title": "Type"}, "attr": {"type": "object", "title": "Attr"}}, "type": "object", "required": ["id", "type", "attr"], "title": "OcelObject"}, "OcelResponse": {"properties": {"session": {"type": "string", "title": "Session"}, "route": {"type": "string", "title": "Route"}, "state": {"type": "string", "title": "State"}, "status": {"type": "integer", "title": "Status", "default": 200}, "msg": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Msg"}, "appState": {"anyOf": [{"$ref": "#/components/schemas/AppState-Output"}, {"type": "null"}]}, "emissions": {"anyOf": [{"$ref": "#/components/schemas/ProcessEmissions"}, {"type": "null"}]}, "ocel": {"$ref": "#/components/schemas/OcelData"}}, "type": "object", "required": ["session", "route", "state", "ocel"], "title": "OcelResponse"}, "OcpnRequestBody": {"properties": {"objectTypes": {"items": {"type": "string"}, "type": "array", "uniqueItems": true, "title": "Objecttypes"}}, "type": "object", "required": ["objectTypes"], "title": "OcpnRequestBody"}, "OcpnResponse": {"properties": {"session": {"type": "string", "title": "Session"}, "route": {"type": "string", "title": "Route"}, "state": {"type": "string", "title": "State"}, "status": {"type": "integer", "title": "Status", "default": 200}, "msg": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Msg"}, "appState": {"anyOf": [{"$ref": "#/components/schemas/AppState-Output"}, {"type": "null"}]}, "emissions": {"anyOf": [{"$ref": "#/components/schemas/ProcessEmissions"}, {"type": "null"}]}, "ocpn": {"$ref": "#/components/schemas/OCPN"}}, "type": "object", "required": ["session", "route", "state", "ocpn"], "title": "OcpnResponse"}, "OcpnStructure": {"properties": {"activityTransitions": {"additionalProperties": {"type": "string"}, "type": "object", "title": "Activitytransitions"}, "sourcePlaces": {"additionalProperties": {"type": "string"}, "type": "object", "title": "Sourceplaces"}, "targetPlaces": {"additionalProperties": {"type": "string"}, "type": "object", "title": "Targetplaces"}, "silentTransitions": {"additionalProperties": {"items": {"type": "string"}, "type": "array"}, "type": "object", "title": "Silenttransitions"}, "places": {"additionalProperties": {"items": {"type": "string"}, "type": "array"}, "type": "object", "title": "Places"}, "arcs": {"items": {"$ref": "#/components/schemas/Arc"}, "type": "array", "title": "Arcs"}}, "type": "object", "required": ["activityTransitions", "sourcePlaces", "targetPlaces", "silentTransitions", "places", "arcs"], "title": "OcpnStructure"}, "ProcessEmissions": {"properties": {"unit": {"properties": {"symbol": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Symbol", "description": "Unit symbol", "examples": ["m/s"]}, "name": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name", "description": "Long name of the unit", "examples": ["meter/second"]}, "dim": {"additionalProperties": {"type": "integer"}, "type": "object", "title": "Dim", "description": "The unit dimensionality, compatible with the `pint` python package", "examples": [{"[length]": 1, "[time]": -1}]}}, "type": "object", "required": ["symbol", "name", "dim"], "title": "Unit", "description": "A unit (physical, currency, ...), represented by a symbol, name, and dimensionality."}, "apiState": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Apistate"}, "overallEmissions": {"type": "number", "title": "Overallemissions", "readOnly": true}, "overallImportedEmissions": {"type": "number", "title": "Overallimportedemissions", "readOnly": true}, "overallRuleBasedEmissions": {"type": "number", "title": "Overallrulebasedemissions", "readOnly": true}, "activityEmissions": {"additionalProperties": {"$ref": "#/components/schemas/NumberStats"}, "type": "object", "title": "Activityemissions", "readOnly": true}, "state": {"$ref": "#/components/schemas/EmissionsState", "readOnly": true}}, "type": "object", "required": ["unit", "overallEmissions", "overallImportedEmissions", "overallRuleBasedEmissions", "activityEmissions", "state"], "title": "ProcessEmissions"}, "QualifiedAttribute": {"properties": {"qualifier": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Qualifier"}, "attribute": {"oneOf": [{"$ref": "#/components/schemas/EventAttributeDefinition"}, {"$ref": "#/components/schemas/ObjectAttributeDefinition"}], "title": "Attribute", "discriminator": {"propertyName": "target", "mapping": {"event": "#/components/schemas/EventAttributeDefinition", "object": "#/components/schemas/ObjectAttributeDefinition"}}}}, "type": "object", "required": ["qualifier", "attribute"], "title": "QualifiedAttribute"}, "SampleEventsResponse": {"properties": {"session": {"type": "string", "title": "Session"}, "route": {"type": "string", "title": "Route"}, "state": {"type": "string", "title": "State"}, "status": {"type": "integer", "title": "Status", "default": 200}, "msg": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Msg"}, "appState": {"anyOf": [{"$ref": "#/components/schemas/AppState-Output"}, {"type": "null"}]}, "emissions": {"anyOf": [{"$ref": "#/components/schemas/ProcessEmissions"}, {"type": "null"}]}, "events": {"items": {"$ref": "#/components/schemas/OcelEvent"}, "type": "array", "title": "Events"}}, "type": "object", "required": ["session", "route", "state", "events"], "title": "SampleEventsResponse"}, "SampleObjectsResponse": {"properties": {"session": {"type": "string", "title": "Session"}, "route": {"type": "string", "title": "Route"}, "state": {"type": "string", "title": "State"}, "status": {"type": "integer", "title": "Status", "default": 200}, "msg": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Msg"}, "appState": {"anyOf": [{"$ref": "#/components/schemas/AppState-Output"}, {"type": "null"}]}, "emissions": {"anyOf": [{"$ref": "#/components/schemas/ProcessEmissions"}, {"type": "null"}]}, "objects": {"items": {"$ref": "#/components/schemas/OcelObject"}, "type": "array", "title": "Objects"}}, "type": "object", "required": ["session", "route", "state", "objects"], "title": "SampleObjectsResponse"}, "TaskResponse": {"properties": {"id": {"type": "string", "title": "Id"}, "route": {"type": "string", "title": "Route"}, "taskState": {"$ref": "#/components/schemas/TaskState"}, "percentage": {"anyOf": [{"type": "number"}, {"type": "null"}], "title": "Percentage"}, "msg": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Msg"}, "result": {"anyOf": [{"$ref": "#/components/schemas/BaseResponse"}, {"type": "null"}]}}, "type": "object", "required": ["id", "route", "taskState"], "title": "TaskResponse"}, "TaskResponse_ComputeEmissionsResponse_": {"properties": {"id": {"type": "string", "title": "Id"}, "route": {"type": "string", "title": "Route"}, "taskState": {"$ref": "#/components/schemas/TaskState"}, "percentage": {"anyOf": [{"type": "number"}, {"type": "null"}], "title": "Percentage"}, "msg": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Msg"}, "result": {"anyOf": [{"$ref": "#/components/schemas/ComputeEmissionsResponse"}, {"type": "null"}]}}, "type": "object", "required": ["id", "route", "taskState"], "title": "TaskResponse[ComputeEmissionsResponse]"}, "TaskState": {"type": "string", "enum": ["PENDING", "STARTED", "PROGRESS", "SUCCESS", "FAILURE", "RETRY"], "title": "TaskState"}, "TaskStatusResponse": {"properties": {"session": {"type": "string", "title": "Session"}, "route": {"type": "string", "title": "Route"}, "state": {"type": "string", "title": "State"}, "status": {"type": "integer", "title": "Status", "default": 200}, "msg": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Msg"}, "appState": {"anyOf": [{"$ref": "#/components/schemas/AppState-Output"}, {"type": "null"}]}, "emissions": {"anyOf": [{"$ref": "#/components/schemas/ProcessEmissions"}, {"type": "null"}]}, "task": {"$ref": "#/components/schemas/TaskResponse"}}, "type": "object", "required": ["session", "route", "state", "task"], "title": "TaskStatusResponse"}, "TaskStatusResponse_ComputeEmissionsResponse_": {"properties": {"session": {"type": "string", "title": "Session"}, "route": {"type": "string", "title": "Route"}, "state": {"type": "string", "title": "State"}, "status": {"type": "integer", "title": "Status", "default": 200}, "msg": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Msg"}, "appState": {"anyOf": [{"$ref": "#/components/schemas/AppState-Output"}, {"type": "null"}]}, "emissions": {"anyOf": [{"$ref": "#/components/schemas/ProcessEmissions"}, {"type": "null"}]}, "task": {"$ref": "#/components/schemas/TaskResponse_ComputeEmissionsResponse_"}}, "type": "object", "required": ["session", "route", "state", "task"], "title": "TaskStatusResponse[ComputeEmissionsResponse]"}, "UpdateAppStateRequestBody": {"properties": {"appState": {"$ref": "#/components/schemas/AppState-Input", "description": "User input to be saved in the server session"}}, "type": "object", "required": ["appState"], "title": "UpdateAppStateRequestBody"}, "UpdateAppStateResponse": {"properties": {"session": {"type": "string", "title": "Session"}, "route": {"type": "string", "title": "Route"}, "state": {"type": "string", "title": "State"}, "status": {"type": "integer", "title": "Status", "default": 200}, "msg": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Msg"}, "appState": {"anyOf": [{"$ref": "#/components/schemas/AppState-Output"}, {"type": "null"}]}, "emissions": {"anyOf": [{"$ref": "#/components/schemas/ProcessEmissions"}, {"type": "null"}]}}, "type": "object", "required": ["session", "route", "state"], "title": "UpdateAppStateResponse"}, "ValidateEmissionRuleRequest": {"properties": {"rule": {"oneOf": [{"$ref": "#/components/schemas/EventEmissionRule-Input"}, {"$ref": "#/components/schemas/E2OEmissionRule-Input"}], "title": "Rule", "discriminator": {"propertyName": "type", "mapping": {"E2OEmissionRule": "#/components/schemas/E2OEmissionRule-Input", "EventEmissionRule": "#/components/schemas/EventEmissionRule-Input"}}}}, "type": "object", "required": ["rule"], "title": "ValidateEmissionRuleRequest"}, "ValidateEmissionRuleResponse": {"properties": {"session": {"type": "string", "title": "Session"}, "route": {"type": "string", "title": "Route"}, "state": {"type": "string", "title": "State"}, "status": {"type": "integer", "title": "Status", "default": 200}, "msg": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Msg"}, "appState": {"anyOf": [{"$ref": "#/components/schemas/AppState-Output"}, {"type": "null"}]}, "emissions": {"anyOf": [{"$ref": "#/components/schemas/ProcessEmissions"}, {"type": "null"}]}, "rule": {"oneOf": [{"$ref": "#/components/schemas/EventEmissionRule-Output"}, {"$ref": "#/components/schemas/E2OEmissionRule-Output"}], "title": "Rule", "discriminator": {"propertyName": "type", "mapping": {"E2OEmissionRule": "#/components/schemas/E2OEmissionRule-Output", "EventEmissionRule": "#/components/schemas/EventEmissionRule-Output"}}}}, "type": "object", "required": ["session", "route", "state", "rule"], "title": "ValidateEmissionRuleResponse"}, "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"}, "WeightedDirectedGraphResponse": {"properties": {"session": {"type": "string", "title": "Session"}, "route": {"type": "string", "title": "Route"}, "state": {"type": "string", "title": "State"}, "status": {"type": "integer", "title": "Status", "default": 200}, "msg": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Msg"}, "appState": {"anyOf": [{"$ref": "#/components/schemas/AppState-Output"}, {"type": "null"}]}, "emissions": {"anyOf": [{"$ref": "#/components/schemas/ProcessEmissions"}, {"type": "null"}]}, "graph": {"additionalProperties": {"additionalProperties": {"type": "integer"}, "type": "object"}, "type": "object", "title": "Graph"}}, "type": "object", "required": ["session", "route", "state", "graph"], "title": "WeightedDirectedGraphResponse"}}}}