{
  "components": {
    "examples": {},
    "headers": {},
    "parameters": {},
    "requestBodies": {},
    "responses": {},
    "schemas": {
      "FileDownloadResponse": {
        "properties": {
          "url": {
            "type": "string"
          },
          "filename": {
            "type": "string"
          },
          "extension": {
            "type": "string"
          },
          "fileSize": {
            "type": "number",
            "format": "double"
          },
          "mimeType": {
            "type": "string"
          }
        },
        "required": [
          "url",
          "filename",
          "extension",
          "fileSize",
          "mimeType"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "Record_Permission.boolean_": {
        "properties": {
          "stop.annotation.create": {
            "type": "boolean"
          },
          "stop.annotation.modify": {
            "type": "boolean"
          },
          "production.create": {
            "type": "boolean"
          },
          "production.modify": {
            "type": "boolean"
          },
          "production.delete": {
            "type": "boolean"
          }
        },
        "type": "object",
        "description": "Construct a type with a set of properties K of type T"
      },
      "Record_string.Record_string.EffectiveMatrixEntry__": {
        "properties": {},
        "type": "object",
        "description": "Construct a type with a set of properties K of type T"
      },
      "EffectiveMatrix": {
        "$ref": "#/components/schemas/Record_string.Record_string.EffectiveMatrixEntry__"
      },
      "MatrixRole": {
        "type": "string",
        "enum": [
          "user",
          "admin",
          "superadmin"
        ]
      },
      "MatrixPatch": {
        "items": {
          "properties": {
            "allowed": {
              "type": "boolean"
            },
            "permission": {
              "type": "string"
            },
            "category": {
              "type": "string"
            },
            "role": {
              "$ref": "#/components/schemas/MatrixRole"
            }
          },
          "required": [
            "allowed",
            "permission",
            "category",
            "role"
          ],
          "type": "object"
        },
        "type": "array"
      },
      "IPermission": {
        "additionalProperties": false,
        "type": "object"
      },
      "PermissionParams": {
        "properties": {
          "sectionId": {
            "type": "string"
          },
          "endpoints": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "name": {
            "type": "string"
          }
        },
        "required": [
          "sectionId",
          "endpoints",
          "name"
        ],
        "type": "object"
      },
      "IRolePermission": {
        "additionalProperties": false,
        "type": "object"
      },
      "RolePermissionParams": {
        "properties": {
          "permissionId": {
            "type": "string"
          },
          "roleId": {
            "type": "string"
          }
        },
        "required": [
          "permissionId",
          "roleId"
        ],
        "type": "object"
      },
      "IRole": {
        "additionalProperties": false,
        "type": "object"
      },
      "RoleParams": {
        "properties": {
          "description": {
            "type": "string"
          },
          "name": {
            "type": "string"
          }
        },
        "required": [
          "name"
        ],
        "type": "object"
      },
      "ISection": {
        "additionalProperties": false,
        "type": "object"
      },
      "SectionParams": {
        "properties": {
          "name": {
            "type": "string"
          }
        },
        "required": [
          "name"
        ],
        "type": "object"
      },
      "IUser": {
        "additionalProperties": false,
        "type": "object"
      },
      "UserParams": {
        "properties": {
          "roleId": {
            "type": "string"
          },
          "email": {
            "type": "string"
          }
        },
        "required": [
          "email"
        ],
        "type": "object"
      },
      "MachineMetricOption": {
        "properties": {
          "description": {
            "type": "string",
            "nullable": true
          },
          "displayName": {
            "type": "string"
          },
          "metricPrimitive": {
            "type": "string"
          },
          "metricTypeName": {
            "type": "string"
          },
          "metricId": {
            "type": "number",
            "format": "double"
          }
        },
        "required": [
          "description",
          "displayName",
          "metricPrimitive",
          "metricTypeName",
          "metricId"
        ],
        "type": "object",
        "description": "One metric a machine exposes, shaped for the alert-creation form.\n\n`metricId` is what an alert's `upstream_metric_id` points at.\n`metricTypeName` is the catalogue's word for the quantity (`status`,\n`totals`, `current`); `displayName` is the per-machine human label, written\nin the company's language. Cadence twins share a display name — the metric\nprimitive tells them apart, and only exposed nodes reach the form anyway."
      },
      "MachineMetricsMap": {
        "description": "Metric options per machine, keyed by machine id.\n\nDeclared as an index signature rather than `Record<string, ...>` on purpose:\ntsoa collapses a Record to a bare `type: object` and the item schema\ndisappears from the OpenAPI document, so a generated frontend client would\nget an untyped blob. An index signature emits `additionalProperties`.",
        "properties": {},
        "type": "object",
        "additionalProperties": {
          "items": {
            "$ref": "#/components/schemas/MachineMetricOption"
          },
          "type": "array"
        }
      },
      "Record_string.any_": {
        "properties": {},
        "type": "object",
        "description": "Construct a type with a set of properties K of type T"
      },
      "AlertTypeDto": {
        "properties": {
          "id": {
            "type": "number",
            "format": "double"
          },
          "params_validation": {
            "$ref": "#/components/schemas/Record_string.any_"
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "detector": {
            "type": "string"
          },
          "name": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "params_validation",
          "detector",
          "name"
        ],
        "type": "object"
      },
      "ListAlertTypesResponse": {
        "properties": {
          "alert_types": {
            "items": {
              "$ref": "#/components/schemas/AlertTypeDto"
            },
            "type": "array"
          }
        },
        "required": [
          "alert_types"
        ],
        "type": "object"
      },
      "CreateAlertTypeRequest": {
        "properties": {
          "params_validation": {
            "$ref": "#/components/schemas/Record_string.any_"
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "detector": {
            "type": "string"
          },
          "name": {
            "type": "string"
          }
        },
        "required": [
          "params_validation",
          "detector",
          "name"
        ],
        "type": "object"
      },
      "UpdateAlertTypeRequest": {
        "properties": {
          "params_validation": {
            "$ref": "#/components/schemas/Record_string.any_"
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "detector": {
            "type": "string"
          },
          "name": {
            "type": "string"
          }
        },
        "required": [
          "params_validation",
          "detector",
          "name"
        ],
        "type": "object"
      },
      "MachineAlertDto": {
        "properties": {
          "id": {
            "type": "number",
            "format": "double"
          },
          "persona_ids": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "is_active": {
            "type": "boolean"
          },
          "resolve_template_id": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "open_template_id": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "notify_on_resolve": {
            "type": "boolean"
          },
          "notify_on_open": {
            "type": "boolean"
          },
          "reset_on_ineligible": {
            "type": "boolean"
          },
          "window_size": {
            "type": "number",
            "format": "double"
          },
          "emit_time_interval": {
            "type": "number",
            "format": "double"
          },
          "open_n": {
            "type": "number",
            "format": "double"
          },
          "open_m": {
            "type": "number",
            "format": "double"
          },
          "aggregation_function": {
            "type": "string",
            "enum": [
              "min",
              "max",
              "avg",
              "sum"
            ]
          },
          "params": {
            "$ref": "#/components/schemas/Record_string.any_"
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "input_description": {
            "type": "string",
            "nullable": true
          },
          "upstream_metric_id": {
            "type": "number",
            "format": "double"
          },
          "alert_type_id": {
            "type": "number",
            "format": "double"
          },
          "group_id": {
            "type": "string",
            "nullable": true
          }
        },
        "required": [
          "id",
          "params",
          "upstream_metric_id",
          "alert_type_id"
        ],
        "type": "object"
      },
      "GetMachineAlertsResponse": {
        "properties": {
          "alerts": {
            "items": {
              "$ref": "#/components/schemas/MachineAlertDto"
            },
            "type": "array"
          },
          "machine_id": {
            "type": "number",
            "format": "double"
          }
        },
        "required": [
          "alerts",
          "machine_id"
        ],
        "type": "object"
      },
      "AlertRefDto": {
        "properties": {
          "name": {
            "type": "string",
            "nullable": true
          },
          "id": {
            "type": "number",
            "format": "double"
          }
        },
        "required": [
          "id"
        ],
        "type": "object"
      },
      "PutMachineAlertsResponse": {
        "properties": {
          "warnings": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "deleted_alerts": {
            "items": {
              "$ref": "#/components/schemas/AlertRefDto"
            },
            "type": "array"
          },
          "updated_alerts": {
            "items": {
              "$ref": "#/components/schemas/AlertRefDto"
            },
            "type": "array"
          },
          "inserted_alerts": {
            "items": {
              "$ref": "#/components/schemas/AlertRefDto"
            },
            "type": "array"
          },
          "machine_id": {
            "type": "number",
            "format": "double"
          }
        },
        "required": [
          "warnings",
          "deleted_alerts",
          "updated_alerts",
          "inserted_alerts",
          "machine_id"
        ],
        "type": "object"
      },
      "PutAlert": {
        "properties": {
          "id": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "persona_ids": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "is_active": {
            "type": "boolean"
          },
          "resolve_template_id": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "open_template_id": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "notify_on_resolve": {
            "type": "boolean"
          },
          "notify_on_open": {
            "type": "boolean"
          },
          "reset_on_ineligible": {
            "type": "boolean"
          },
          "window_size": {
            "type": "number",
            "format": "double"
          },
          "emit_time_interval": {
            "type": "number",
            "format": "double"
          },
          "open_n": {
            "type": "number",
            "format": "double"
          },
          "open_m": {
            "type": "number",
            "format": "double"
          },
          "aggregation_function": {
            "type": "string",
            "enum": [
              "min",
              "max",
              "avg",
              "sum"
            ]
          },
          "params": {
            "$ref": "#/components/schemas/Record_string.any_"
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "input_description": {
            "type": "string",
            "nullable": true
          },
          "upstream_metric_id": {
            "type": "number",
            "format": "double"
          },
          "alert_type_id": {
            "type": "number",
            "format": "double"
          },
          "group_id": {
            "type": "string",
            "nullable": true
          }
        },
        "required": [
          "params",
          "upstream_metric_id",
          "alert_type_id"
        ],
        "type": "object",
        "description": "Full desired state. An omitted id inserts; an id updates that row."
      },
      "PutMachineAlertsRequest": {
        "properties": {
          "alerts": {
            "items": {
              "$ref": "#/components/schemas/PutAlert"
            },
            "type": "array"
          },
          "changed_by": {
            "type": "string"
          }
        },
        "required": [
          "alerts",
          "changed_by"
        ],
        "type": "object"
      },
      "AlertTotals": {
        "properties": {
          "personas": {
            "type": "number",
            "format": "double"
          },
          "machines": {
            "type": "number",
            "format": "double"
          }
        },
        "required": [
          "personas",
          "machines"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "AlertSource": {
        "type": "string",
        "enum": [
          "legacy",
          "v2"
        ]
      },
      "AlertLabelKind": {
        "type": "string",
        "enum": [
          "general_cause",
          "specific_cause",
          "equipment",
          "unclassified"
        ]
      },
      "AlertLabelDto": {
        "description": "One resolved stop-cause label, ready to render without a client-side lookup.\n\n`kind` travels with each label rather than once per trigger: an alert\nroutinely carries labels of several kinds at the same time.",
        "properties": {
          "kind": {
            "$ref": "#/components/schemas/AlertLabelKind"
          },
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          }
        },
        "required": [
          "kind",
          "id",
          "name"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "StopTimeTrigger": {
        "description": "The legacy stop trigger: a machine stopped for at least `durationMinutes`, optionally scoped to a set of stop-cause labels.",
        "properties": {
          "kind": {
            "type": "string",
            "enum": [
              "stop_time"
            ],
            "nullable": false
          },
          "comparator": {
            "type": "string",
            "enum": [
              "over"
            ],
            "nullable": false
          },
          "durationMinutes": {
            "type": "number",
            "format": "double"
          },
          "displayUnit": {
            "type": "string",
            "enum": [
              "min",
              "hr"
            ]
          },
          "labels": {
            "items": {
              "$ref": "#/components/schemas/AlertLabelDto"
            },
            "type": "array"
          }
        },
        "required": [
          "kind",
          "comparator",
          "durationMinutes",
          "displayUnit",
          "labels"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "MetricComparator": {
        "type": "string",
        "enum": [
          "gt",
          "gte",
          "lt",
          "lte",
          "eq",
          "neq"
        ]
      },
      "MetricThresholdTrigger": {
        "description": "v2's only trigger shape: a windowed aggregate crossing a fixed bound.\n`comparator` and `value` are null when the params don't carry a comparison\n(a different detector, or an incomplete threshold); the alert itself still gets listed.",
        "properties": {
          "kind": {
            "type": "string",
            "enum": [
              "metric_threshold"
            ],
            "nullable": false
          },
          "metricId": {
            "type": "number",
            "format": "double"
          },
          "metricName": {
            "type": "string"
          },
          "comparator": {
            "allOf": [
              {
                "$ref": "#/components/schemas/MetricComparator"
              }
            ],
            "nullable": true
          },
          "value": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "windowSeconds": {
            "type": "number",
            "format": "double"
          },
          "openM": {
            "type": "number",
            "format": "double",
            "description": "Open when `openM` of the last `openN` evaluations breach the threshold."
          },
          "openN": {
            "type": "number",
            "format": "double"
          }
        },
        "required": [
          "kind",
          "metricId",
          "metricName",
          "comparator",
          "value",
          "windowSeconds",
          "openM",
          "openN"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "AlertTrigger": {
        "anyOf": [
          {
            "$ref": "#/components/schemas/StopTimeTrigger"
          },
          {
            "$ref": "#/components/schemas/MetricThresholdTrigger"
          }
        ],
        "description": "What triggers an alert, discriminated by `kind`."
      },
      "MergedAlert": {
        "properties": {
          "source": {
            "$ref": "#/components/schemas/AlertSource"
          },
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "isActive": {
            "type": "boolean"
          },
          "priority": {
            "type": "number",
            "format": "double",
            "nullable": true,
            "description": "Legacy only; always null for v2."
          },
          "machineIds": {
            "items": {
              "type": "number",
              "format": "double"
            },
            "type": "array"
          },
          "personaIds": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "trigger": {
            "$ref": "#/components/schemas/AlertTrigger"
          }
        },
        "required": [
          "source",
          "id",
          "name",
          "isActive",
          "priority",
          "machineIds",
          "personaIds",
          "trigger"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "ListAlertsResponse": {
        "properties": {
          "totals": {
            "$ref": "#/components/schemas/AlertTotals"
          },
          "alerts": {
            "items": {
              "$ref": "#/components/schemas/MergedAlert"
            },
            "type": "array"
          }
        },
        "required": [
          "totals",
          "alerts"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "AlertParams": {
        "description": "A detector's own parameters, e.g. `{ operator, threshold }` for the threshold\ndetector. Left opaque here since draco's `alert_types.params_validation` JSON\nSchema is the only validator.\n\nAn index signature, not `Record<string, unknown>`: tsoa emits a Record with\nno `additionalProperties`, so its request validator rejects every key. Same\ntrap as `MachineMetricsMap`.",
        "properties": {},
        "type": "object",
        "additionalProperties": {}
      },
      "V2AlertMetricDto": {
        "properties": {
          "metricId": {
            "type": "number",
            "format": "double"
          },
          "machineId": {
            "type": "number",
            "format": "double"
          },
          "metricName": {
            "type": "string"
          },
          "rowId": {
            "type": "number",
            "format": "double"
          }
        },
        "required": [
          "metricId",
          "machineId",
          "metricName",
          "rowId"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "AggregationFunction": {
        "type": "string",
        "enum": [
          "min",
          "max",
          "avg",
          "sum",
          "last"
        ],
        "description": "The windowed aggregate an alert reads. `last` is the newest reading in the\nwindow: a cumulative shift-scoped metric already contains every earlier\nreading, so its average and sum say nothing about the current value."
      },
      "V2AlertDetail": {
        "properties": {
          "source": {
            "type": "string",
            "enum": [
              "v2"
            ],
            "nullable": false
          },
          "id": {
            "type": "string",
            "description": "The group id. Same value the merged list reports as `id`."
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "isActive": {
            "type": "boolean"
          },
          "alertType": {
            "type": "string"
          },
          "params": {
            "$ref": "#/components/schemas/AlertParams"
          },
          "personaIds": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "metrics": {
            "items": {
              "$ref": "#/components/schemas/V2AlertMetricDto"
            },
            "type": "array"
          },
          "aggregationFunction": {
            "$ref": "#/components/schemas/AggregationFunction"
          },
          "windowSize": {
            "type": "number",
            "format": "double"
          },
          "emitTimeInterval": {
            "type": "number",
            "format": "double"
          },
          "openM": {
            "type": "number",
            "format": "double"
          },
          "openN": {
            "type": "number",
            "format": "double"
          },
          "notifyOnOpen": {
            "type": "boolean"
          },
          "notifyOnResolve": {
            "type": "boolean"
          },
          "resetOnIneligible": {
            "type": "boolean"
          }
        },
        "required": [
          "source",
          "id",
          "name",
          "description",
          "isActive",
          "alertType",
          "params",
          "personaIds",
          "metrics",
          "aggregationFunction",
          "windowSize",
          "emitTimeInterval",
          "openM",
          "openN",
          "notifyOnOpen",
          "notifyOnResolve",
          "resetOnIneligible"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "AlertConditionDto": {
        "properties": {
          "id": {
            "type": "string"
          },
          "type": {
            "type": "number",
            "format": "double"
          },
          "stopLabelId": {
            "type": "string"
          },
          "labelName": {
            "type": "string",
            "nullable": true
          }
        },
        "required": [
          "id",
          "type",
          "stopLabelId",
          "labelName"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "LegacyAlertDetail": {
        "properties": {
          "source": {
            "type": "string",
            "enum": [
              "legacy"
            ],
            "nullable": false
          },
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "isActive": {
            "type": "boolean"
          },
          "priority": {
            "type": "number",
            "format": "double"
          },
          "threshold": {
            "type": "number",
            "format": "double"
          },
          "displayUnit": {
            "type": "string"
          },
          "reNotifyOnWorking": {
            "type": "boolean"
          },
          "conditions": {
            "items": {
              "$ref": "#/components/schemas/AlertConditionDto"
            },
            "type": "array"
          },
          "machineIds": {
            "items": {
              "type": "number",
              "format": "double"
            },
            "type": "array"
          },
          "personaIds": {
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "required": [
          "source",
          "id",
          "name",
          "isActive",
          "priority",
          "threshold",
          "displayUnit",
          "reNotifyOnWorking",
          "conditions",
          "machineIds",
          "personaIds"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "AlertDetail": {
        "anyOf": [
          {
            "$ref": "#/components/schemas/V2AlertDetail"
          },
          {
            "$ref": "#/components/schemas/LegacyAlertDetail"
          }
        ]
      },
      "CreateAlertRequest": {
        "description": "`changed_by` is never accepted here; it comes from the authenticated user,\nnot the request. `openTemplateId`/`resolveTemplateId` aren't exposed at this\nlayer yet, so omitting them lets draco use its own defaults.",
        "properties": {
          "name": {
            "type": "string"
          },
          "metricIds": {
            "items": {
              "type": "number",
              "format": "double"
            },
            "type": "array"
          },
          "alertType": {
            "type": "string"
          },
          "params": {
            "$ref": "#/components/schemas/AlertParams"
          },
          "personaIds": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "description": {
            "type": "string"
          },
          "isActive": {
            "type": "boolean"
          },
          "aggregationFunction": {
            "$ref": "#/components/schemas/AggregationFunction"
          },
          "windowSize": {
            "type": "number",
            "format": "double"
          },
          "emitTimeInterval": {
            "type": "number",
            "format": "double"
          },
          "openM": {
            "type": "number",
            "format": "double"
          },
          "openN": {
            "type": "number",
            "format": "double"
          },
          "notifyOnOpen": {
            "type": "boolean"
          },
          "notifyOnResolve": {
            "type": "boolean"
          },
          "resetOnIneligible": {
            "type": "boolean"
          }
        },
        "required": [
          "name",
          "metricIds",
          "alertType",
          "params"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "Partial_CreateAlertRequest_": {
        "properties": {
          "name": {
            "type": "string"
          },
          "metricIds": {
            "items": {
              "type": "number",
              "format": "double"
            },
            "type": "array"
          },
          "alertType": {
            "type": "string"
          },
          "params": {
            "$ref": "#/components/schemas/AlertParams"
          },
          "personaIds": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "description": {
            "type": "string"
          },
          "isActive": {
            "type": "boolean"
          },
          "aggregationFunction": {
            "$ref": "#/components/schemas/AggregationFunction"
          },
          "windowSize": {
            "type": "number",
            "format": "double"
          },
          "emitTimeInterval": {
            "type": "number",
            "format": "double"
          },
          "openM": {
            "type": "number",
            "format": "double"
          },
          "openN": {
            "type": "number",
            "format": "double"
          },
          "notifyOnOpen": {
            "type": "boolean"
          },
          "notifyOnResolve": {
            "type": "boolean"
          },
          "resetOnIneligible": {
            "type": "boolean"
          }
        },
        "type": "object",
        "description": "Make all properties in T optional"
      },
      "UpdateAlertRequest": {
        "$ref": "#/components/schemas/Partial_CreateAlertRequest_",
        "description": "Partial, group-wide update. Only fields actually present in the request\nbody are forwarded to draco; `metricIds`, `personaIds` and `params` replace\nthe existing set wholesale when present."
      },
      "AlertSettingValue": {
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "threshold": {
            "type": "number",
            "format": "double"
          },
          "isActive": {
            "type": "boolean"
          },
          "companyId": {
            "type": "number",
            "format": "double"
          }
        },
        "required": [
          "id",
          "name",
          "threshold",
          "isActive",
          "companyId"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "AlertMachineValue": {
        "properties": {
          "id": {
            "type": "string"
          },
          "machineId": {
            "type": "number",
            "format": "double"
          },
          "alertSettingId": {
            "type": "string"
          },
          "alertPersonas": {
            "items": {
              "properties": {
                "name": {
                  "type": "string"
                },
                "id": {
                  "type": "string"
                }
              },
              "required": [
                "name",
                "id"
              ],
              "type": "object"
            },
            "type": "array"
          }
        },
        "required": [
          "id",
          "machineId",
          "alertSettingId",
          "alertPersonas"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "TimeRange": {
        "properties": {
          "end": {
            "type": "string"
          },
          "start": {
            "type": "string"
          }
        },
        "required": [
          "end",
          "start"
        ],
        "type": "object"
      },
      "WeekdaysWithTimeRange": {
        "properties": {
          "sunday": {
            "$ref": "#/components/schemas/TimeRange"
          },
          "saturday": {
            "$ref": "#/components/schemas/TimeRange"
          },
          "friday": {
            "$ref": "#/components/schemas/TimeRange"
          },
          "thursday": {
            "$ref": "#/components/schemas/TimeRange"
          },
          "wednesday": {
            "$ref": "#/components/schemas/TimeRange"
          },
          "tuesday": {
            "$ref": "#/components/schemas/TimeRange"
          },
          "monday": {
            "$ref": "#/components/schemas/TimeRange"
          }
        },
        "type": "object"
      },
      "LanguageType": {
        "type": "string",
        "enum": [
          "spanish",
          "english"
        ]
      },
      "InsertAlertSettingParams": {
        "properties": {
          "name": {
            "type": "string"
          },
          "companyId": {
            "type": "number",
            "format": "double"
          },
          "threshold": {
            "type": "number",
            "format": "double"
          }
        },
        "required": [
          "name",
          "companyId",
          "threshold"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "PersonaRecipientValue": {
        "properties": {
          "id": {
            "type": "string"
          },
          "value": {
            "type": "string"
          },
          "isActive": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "number",
                "format": "double"
              }
            ]
          },
          "reference": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "value",
          "isActive"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "AlertPersonaValue": {
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "isActive": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "number",
                "format": "double"
              }
            ]
          },
          "sms": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PersonaRecipientValue"
              }
            ],
            "nullable": true
          },
          "whatsapp": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PersonaRecipientValue"
              }
            ],
            "nullable": true
          },
          "email": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PersonaRecipientValue"
              }
            ],
            "nullable": true
          },
          "push": {
            "items": {
              "$ref": "#/components/schemas/PersonaRecipientValue"
            },
            "type": "array"
          },
          "alertHours": {
            "$ref": "#/components/schemas/WeekdaysWithTimeRange"
          },
          "isUser": {
            "type": "boolean"
          },
          "alertIds": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "language": {
            "$ref": "#/components/schemas/LanguageType"
          }
        },
        "required": [
          "id",
          "name",
          "isActive",
          "sms",
          "whatsapp",
          "email",
          "push",
          "isUser",
          "language"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "InsertAlertPersonaParams": {
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "companyId": {
            "type": "number",
            "format": "double"
          },
          "identityId": {
            "type": "number",
            "format": "double"
          },
          "email": {
            "type": "string"
          },
          "whatsapp": {
            "type": "string"
          },
          "sms": {
            "type": "string"
          },
          "alertHours": {
            "$ref": "#/components/schemas/WeekdaysWithTimeRange"
          },
          "alertIds": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "language": {
            "$ref": "#/components/schemas/LanguageType"
          }
        },
        "required": [
          "name",
          "companyId"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "UpdateAlertPersonaParams": {
        "properties": {
          "id": {
            "type": "string"
          },
          "companyId": {
            "type": "number",
            "format": "double"
          },
          "name": {
            "type": "string"
          },
          "isActive": {
            "type": "number",
            "format": "double"
          },
          "sms": {
            "type": "string"
          },
          "email": {
            "type": "string"
          },
          "whatsapp": {
            "type": "string"
          },
          "isUser": {
            "type": "boolean"
          },
          "alertIds": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "alertHours": {
            "$ref": "#/components/schemas/WeekdaysWithTimeRange"
          },
          "language": {
            "$ref": "#/components/schemas/LanguageType"
          }
        },
        "required": [
          "id",
          "name",
          "language"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "Pick_UpdateAlertPersonaPushParams.Exclude_keyofUpdateAlertPersonaPushParams.userId__": {
        "properties": {
          "isActive": {
            "type": "boolean"
          },
          "companyId": {
            "type": "number",
            "format": "double"
          },
          "pushToken": {
            "type": "string"
          },
          "alertHours": {
            "$ref": "#/components/schemas/WeekdaysWithTimeRange"
          },
          "reference": {
            "type": "string"
          }
        },
        "required": [
          "isActive",
          "pushToken"
        ],
        "type": "object",
        "description": "From T, pick a set of properties whose keys are in the union K"
      },
      "Omit_UpdateAlertPersonaPushParams.userId_": {
        "$ref": "#/components/schemas/Pick_UpdateAlertPersonaPushParams.Exclude_keyofUpdateAlertPersonaPushParams.userId__",
        "description": "Construct a type with the properties of T except for those in type K."
      },
      "EnableAlertPersonaPushParams": {
        "properties": {
          "personaId": {
            "type": "string"
          },
          "isActive": {
            "type": "boolean"
          }
        },
        "required": [
          "personaId",
          "isActive"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "PushTokenDetails": {
        "properties": {
          "isActive": {
            "type": "boolean"
          },
          "pushToken": {
            "type": "string",
            "nullable": true
          }
        },
        "required": [
          "isActive",
          "pushToken"
        ],
        "type": "object"
      },
      "UpdateAlertSettingParams": {
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "companyId": {
            "type": "number",
            "format": "double"
          },
          "threshold": {
            "type": "number",
            "format": "double"
          }
        },
        "required": [
          "id",
          "name",
          "companyId",
          "threshold"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "UpdateAlertPersonaRecipientParams": {
        "properties": {
          "ids": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "isActive": {
            "type": "number",
            "format": "double"
          },
          "personaId": {
            "type": "string"
          }
        },
        "required": [
          "ids",
          "isActive",
          "personaId"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "UpdateAlertMachineParams": {
        "properties": {
          "alertMachineConfigId": {
            "type": "string",
            "nullable": true
          },
          "alertSettingId": {
            "type": "string"
          },
          "machineId": {
            "type": "number",
            "format": "double"
          },
          "threshold": {
            "type": "number",
            "format": "double"
          },
          "alertPersonaIds": {
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "required": [
          "alertMachineConfigId",
          "alertSettingId",
          "machineId",
          "threshold",
          "alertPersonaIds"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "StopTimeCondition": {
        "properties": {
          "type": {
            "type": "number",
            "format": "double"
          },
          "value": {
            "type": "number",
            "format": "double"
          },
          "unit": {
            "type": "number",
            "format": "double"
          }
        },
        "required": [
          "type",
          "value",
          "unit"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "AlertCondition": {
        "properties": {
          "id": {
            "type": "string"
          },
          "type": {
            "type": "number",
            "format": "double"
          },
          "stopLabelId": {
            "type": "string"
          },
          "stopTime": {
            "$ref": "#/components/schemas/StopTimeCondition"
          }
        },
        "required": [
          "type"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "InsertAlertSettingBody": {
        "properties": {
          "name": {
            "type": "string"
          },
          "priority": {
            "type": "number",
            "format": "double"
          },
          "conditions": {
            "items": {
              "$ref": "#/components/schemas/AlertCondition"
            },
            "type": "array"
          },
          "machineIds": {
            "items": {
              "type": "number",
              "format": "double"
            },
            "type": "array"
          },
          "alertPersonaIds": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "reNotifyOnWorking": {
            "type": "number",
            "format": "double"
          }
        },
        "required": [
          "name",
          "priority",
          "conditions",
          "machineIds",
          "alertPersonaIds",
          "reNotifyOnWorking"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "DeleteAlertSettingBody": {
        "properties": {
          "id": {
            "type": "string"
          }
        },
        "required": [
          "id"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "UpdateAlertSettingBody": {
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "conditions": {
            "items": {
              "$ref": "#/components/schemas/AlertCondition"
            },
            "type": "array"
          },
          "machineIds": {
            "items": {
              "type": "number",
              "format": "double"
            },
            "type": "array"
          },
          "alertPersonaIds": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "priority": {
            "type": "number",
            "format": "double"
          },
          "reNotifyOnWorking": {
            "type": "number",
            "format": "double"
          }
        },
        "required": [
          "id",
          "name",
          "conditions",
          "machineIds",
          "alertPersonaIds",
          "priority",
          "reNotifyOnWorking"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "StopAlertStatusEnum": {
        "enum": [
          "emailNotified",
          "smsNotified",
          "pushNotified",
          "new",
          "acknowledged",
          "closed"
        ],
        "type": "string"
      },
      "StopAlertPriorityEnum": {
        "enum": [
          "low",
          "medium",
          "high"
        ],
        "type": "string"
      },
      "StopAlertV3Status": {
        "properties": {
          "stopAlertId": {
            "type": "number",
            "format": "double"
          },
          "address": {
            "type": "string"
          },
          "addressType": {
            "type": "string"
          },
          "status": {
            "$ref": "#/components/schemas/StopAlertStatusEnum"
          },
          "deltaToPreviousStatusSeconds": {
            "type": "number",
            "format": "double"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time"
          },
          "userFullName": {
            "type": "string"
          }
        },
        "required": [
          "address",
          "addressType",
          "status",
          "deltaToPreviousStatusSeconds"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "StopAlertV3Value": {
        "properties": {
          "id": {
            "type": "number",
            "format": "double"
          },
          "alertSettingId": {
            "type": "string"
          },
          "AlertSetting": {
            "properties": {
              "name": {
                "type": "string"
              },
              "id": {
                "type": "string"
              }
            },
            "required": [
              "name",
              "id"
            ],
            "type": "object"
          },
          "companyId": {
            "type": "number",
            "format": "double"
          },
          "machineId": {
            "type": "number",
            "format": "double"
          },
          "Machine": {
            "properties": {
              "title": {
                "type": "string"
              },
              "id": {
                "type": "number",
                "format": "double"
              }
            },
            "required": [
              "title",
              "id"
            ],
            "type": "object"
          },
          "sentDate": {
            "type": "string",
            "format": "date-time"
          },
          "stoppedMinutes": {
            "type": "number",
            "format": "double"
          },
          "lastStatus": {
            "$ref": "#/components/schemas/StopAlertStatusEnum"
          },
          "priority": {
            "$ref": "#/components/schemas/StopAlertPriorityEnum"
          },
          "alertSettingVersionId": {
            "type": "number",
            "format": "double"
          },
          "stopStartTime": {
            "type": "string",
            "format": "date-time"
          },
          "statuses": {
            "items": {
              "$ref": "#/components/schemas/StopAlertV3Status"
            },
            "type": "array"
          },
          "acknowledgedDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "alertSettingId",
          "companyId",
          "machineId",
          "sentDate",
          "stoppedMinutes",
          "lastStatus",
          "priority",
          "alertSettingVersionId",
          "stopStartTime"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "MicrosoftEntraProviderResponse": {
        "properties": {
          "provider": {
            "type": "string",
            "nullable": true
          }
        },
        "required": [
          "provider"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "MicrosoftEntraConnectionStatus": {
        "description": "Whether a company signs in through Entra, and which tenant/provider it is routed to.\n`companyId` echoes the company that was asked about, not the one holding the row: a\nchild company is covered by its parent's connection, so those differ routinely.",
        "properties": {
          "companyId": {
            "type": "number",
            "format": "double"
          },
          "enabled": {
            "type": "boolean"
          },
          "tenantId": {
            "type": "string",
            "nullable": true
          },
          "providerName": {
            "type": "string",
            "nullable": true
          }
        },
        "required": [
          "companyId",
          "enabled",
          "tenantId",
          "providerName"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "MicrosoftEntraConnectionValue": {
        "properties": {
          "companyId": {
            "type": "number",
            "format": "double"
          },
          "tenantId": {
            "type": "string"
          },
          "providerName": {
            "type": "string"
          },
          "enabled": {
            "type": "boolean"
          }
        },
        "required": [
          "companyId",
          "tenantId",
          "providerName",
          "enabled"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "MicrosoftEntraConnectionInput": {
        "properties": {
          "tenantId": {
            "type": "string"
          },
          "enabled": {
            "type": "boolean"
          }
        },
        "required": [
          "tenantId",
          "enabled"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "StopAlertRecordValue": {
        "properties": {
          "messageAttributes": {
            "properties": {
              "machineIdsByStoppedMinutesJSON": {
                "properties": {
                  "stringValue": {
                    "type": "string"
                  }
                },
                "required": [
                  "stringValue"
                ],
                "type": "object"
              }
            },
            "required": [
              "machineIdsByStoppedMinutesJSON"
            ],
            "type": "object"
          }
        },
        "required": [
          "messageAttributes"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "ClassificationWithNamesValue": {
        "properties": {
          "generalCauseId": {
            "type": "string",
            "nullable": true
          },
          "specificCauseId": {
            "type": "string",
            "nullable": true
          },
          "componentId": {
            "type": "string",
            "nullable": true
          },
          "generalCauseName": {
            "type": "string",
            "nullable": true
          },
          "specificCauseName": {
            "type": "string",
            "nullable": true
          },
          "componentName": {
            "type": "string",
            "nullable": true
          }
        },
        "required": [
          "generalCauseId",
          "specificCauseId",
          "componentId",
          "generalCauseName",
          "specificCauseName",
          "componentName"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "AlertConditionType": {
        "enum": [
          0,
          1,
          2,
          3,
          4,
          6
        ],
        "type": "number"
      },
      "AlertConditionValue": {
        "properties": {
          "alertId": {
            "type": "string"
          },
          "type": {
            "$ref": "#/components/schemas/AlertConditionType"
          },
          "conditionId": {
            "type": "string"
          }
        },
        "required": [
          "alertId",
          "type",
          "conditionId"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "CompanyFeature": {
        "enum": [
          "realtimeV2",
          "energyPlots",
          "mobileRealtimeDefects"
        ],
        "type": "string"
      },
      "CompanyFeatureRow": {
        "properties": {
          "feature": {
            "$ref": "#/components/schemas/CompanyFeature"
          },
          "enabled": {
            "type": "boolean"
          }
        },
        "required": [
          "feature",
          "enabled"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "PatchCompanyFeaturesReq": {
        "properties": {
          "companyId": {
            "type": "number",
            "format": "double"
          },
          "features": {
            "items": {
              "$ref": "#/components/schemas/CompanyFeatureRow"
            },
            "type": "array"
          }
        },
        "required": [
          "companyId",
          "features"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "GetCompanyFeaturesRes": {
        "properties": {
          "companyId": {
            "type": "number",
            "format": "double"
          },
          "features": {
            "items": {
              "$ref": "#/components/schemas/CompanyFeatureRow"
            },
            "type": "array"
          }
        },
        "required": [
          "companyId",
          "features"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "MachineMappingRow": {
        "properties": {
          "machineMapId": {
            "type": "number",
            "format": "double"
          },
          "machineRef": {
            "type": "string"
          },
          "nodeId": {
            "type": "number",
            "format": "double"
          },
          "sensorId": {
            "anyOf": [
              {
                "type": "number",
                "format": "double"
              },
              {
                "type": "string"
              }
            ]
          },
          "aggregationFunction": {
            "type": "string"
          }
        },
        "required": [
          "machineRef",
          "nodeId",
          "sensorId",
          "aggregationFunction"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "DeleteMachineMappingRow": {
        "properties": {
          "machineMapId": {
            "type": "number",
            "format": "double"
          }
        },
        "required": [
          "machineMapId"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "MachineRow": {
        "properties": {
          "machineRef": {
            "type": "string"
          },
          "machineName": {
            "type": "string"
          }
        },
        "required": [
          "machineRef",
          "machineName"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "PatchMachineMappingReq": {
        "properties": {
          "companyId": {
            "type": "number",
            "format": "double"
          },
          "addedMappings": {
            "items": {
              "$ref": "#/components/schemas/MachineMappingRow"
            },
            "type": "array"
          },
          "deletedMappings": {
            "items": {
              "$ref": "#/components/schemas/DeleteMachineMappingRow"
            },
            "type": "array"
          },
          "addedMachines": {
            "items": {
              "$ref": "#/components/schemas/MachineRow"
            },
            "type": "array"
          },
          "deletedMachines": {
            "items": {
              "$ref": "#/components/schemas/MachineRow"
            },
            "type": "array"
          }
        },
        "required": [
          "companyId",
          "addedMappings",
          "deletedMappings",
          "addedMachines",
          "deletedMachines"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "MachineConfiguration": {
        "properties": {
          "customThresholdConfig": {
            "anyOf": [
              {
                "type": "number",
                "format": "double"
              },
              {
                "type": "string"
              }
            ],
            "nullable": true
          },
          "isActive": {
            "type": "boolean"
          },
          "minimumPercentageForThreshold": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "needsML": {
            "type": "boolean"
          },
          "order": {
            "type": "number",
            "format": "double"
          },
          "ref": {
            "type": "string"
          },
          "threshold": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "title": {
            "type": "string"
          }
        },
        "required": [
          "customThresholdConfig",
          "isActive",
          "minimumPercentageForThreshold",
          "needsML",
          "order",
          "ref",
          "threshold",
          "title"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "UpdateMachineConfigurationReq": {
        "properties": {
          "companyId": {
            "type": "number",
            "format": "double"
          },
          "updatedConfigs": {
            "items": {
              "$ref": "#/components/schemas/MachineConfiguration"
            },
            "type": "array"
          }
        },
        "required": [
          "companyId",
          "updatedConfigs"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "CountConfigDiffBody": {
        "properties": {
          "maskThreshold": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "maskChannel": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "type": {
            "type": "string",
            "nullable": true
          },
          "countingFactor": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "channel": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "nodeId": {
            "type": "number",
            "format": "double",
            "nullable": true
          }
        },
        "required": [
          "maskThreshold",
          "maskChannel",
          "type",
          "countingFactor",
          "channel",
          "nodeId"
        ],
        "type": "object"
      },
      "MachineCountSensorDiffBody": {
        "properties": {
          "configs": {
            "items": {
              "$ref": "#/components/schemas/CountConfigDiffBody"
            },
            "type": "array"
          },
          "isCountEnabled": {
            "type": "boolean",
            "nullable": true
          },
          "machineRef": {
            "type": "string"
          }
        },
        "required": [
          "configs",
          "isCountEnabled",
          "machineRef"
        ],
        "type": "object"
      },
      "MachineCountSensorDiffResponse": {
        "properties": {
          "errors": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "identical": {
            "items": {
              "$ref": "#/components/schemas/MachineCountSensorDiffBody"
            },
            "type": "array"
          },
          "updated": {
            "items": {
              "$ref": "#/components/schemas/MachineCountSensorDiffBody"
            },
            "type": "array"
          },
          "deleted": {
            "items": {
              "$ref": "#/components/schemas/MachineCountSensorDiffBody"
            },
            "type": "array"
          },
          "added": {
            "items": {
              "$ref": "#/components/schemas/MachineCountSensorDiffBody"
            },
            "type": "array"
          }
        },
        "required": [
          "errors",
          "identical",
          "updated",
          "deleted",
          "added"
        ],
        "type": "object"
      },
      "CountConfigContent": {
        "properties": {
          "maskThreshold": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "maskChannel": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "countingFactor": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "channel": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "node": {
            "type": "number",
            "format": "double",
            "nullable": true
          }
        },
        "required": [
          "countingFactor",
          "channel",
          "node"
        ],
        "type": "object"
      },
      "MachineCountSensorConfigContent": {
        "properties": {
          "countingUploading": {
            "type": "boolean"
          },
          "scrap": {
            "$ref": "#/components/schemas/CountConfigContent"
          },
          "defects": {
            "$ref": "#/components/schemas/CountConfigContent"
          },
          "correct": {
            "$ref": "#/components/schemas/CountConfigContent"
          },
          "total": {
            "$ref": "#/components/schemas/CountConfigContent"
          },
          "machineName": {
            "type": "string"
          },
          "company": {
            "type": "string"
          },
          "machineId": {
            "type": "string"
          }
        },
        "required": [
          "countingUploading",
          "scrap",
          "defects",
          "correct",
          "total",
          "machineName",
          "company",
          "machineId"
        ],
        "type": "object"
      },
      "ValidateMachineCountSensorReq": {
        "properties": {
          "content": {
            "items": {
              "$ref": "#/components/schemas/MachineCountSensorConfigContent"
            },
            "type": "array"
          },
          "companyId": {
            "type": "number",
            "format": "double"
          }
        },
        "required": [
          "content",
          "companyId"
        ],
        "type": "object"
      },
      "IsCountEnabledStatus": {
        "enum": [
          "identical",
          "updated"
        ],
        "type": "string"
      },
      "IsCountEnabledDifference": {
        "properties": {
          "status": {
            "$ref": "#/components/schemas/IsCountEnabledStatus"
          },
          "isCountEnabled": {
            "type": "boolean"
          },
          "companyName": {
            "type": "string"
          },
          "machineRef": {
            "type": "string"
          }
        },
        "required": [
          "status",
          "isCountEnabled",
          "companyName",
          "machineRef"
        ],
        "type": "object"
      },
      "GetIsCountEnabledDifferencesResponse": {
        "properties": {
          "errors": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "data": {
            "items": {
              "$ref": "#/components/schemas/IsCountEnabledDifference"
            },
            "type": "array"
          }
        },
        "required": [
          "errors",
          "data"
        ],
        "type": "object"
      },
      "MachineIsCountEnabledContent": {
        "properties": {
          "isCountEnabled": {
            "type": "boolean"
          },
          "ref": {
            "type": "string"
          }
        },
        "required": [
          "isCountEnabled",
          "ref"
        ],
        "type": "object"
      },
      "GetIsCountEnabledDifferencesRequest": {
        "properties": {
          "content": {
            "items": {
              "$ref": "#/components/schemas/MachineIsCountEnabledContent"
            },
            "type": "array"
          },
          "companyId": {
            "type": "number",
            "format": "double"
          }
        },
        "required": [
          "content",
          "companyId"
        ],
        "type": "object"
      },
      "UpdateIsCountEnabledRequest": {
        "properties": {
          "content": {
            "items": {
              "$ref": "#/components/schemas/MachineIsCountEnabledContent"
            },
            "type": "array"
          },
          "companyId": {
            "type": "number",
            "format": "double"
          }
        },
        "required": [
          "content",
          "companyId"
        ],
        "type": "object"
      },
      "MachineCountSensorBody": {
        "properties": {
          "configs": {
            "items": {
              "properties": {
                "maskThreshold": {
                  "type": "number",
                  "format": "double",
                  "nullable": true
                },
                "maskChannel": {
                  "type": "number",
                  "format": "double",
                  "nullable": true
                },
                "type": {
                  "type": "string",
                  "nullable": true
                },
                "countingFactor": {
                  "type": "number",
                  "format": "double",
                  "nullable": true
                },
                "channel": {
                  "type": "number",
                  "format": "double",
                  "nullable": true
                },
                "nodeId": {
                  "type": "number",
                  "format": "double",
                  "nullable": true
                }
              },
              "required": [
                "type",
                "countingFactor",
                "channel",
                "nodeId"
              ],
              "type": "object"
            },
            "type": "array"
          },
          "isCountEnabled": {
            "type": "boolean",
            "nullable": true
          },
          "machineRef": {
            "type": "string"
          }
        },
        "required": [
          "configs",
          "isCountEnabled",
          "machineRef"
        ],
        "type": "object"
      },
      "MachineCountSensorReq": {
        "properties": {
          "updated": {
            "items": {
              "$ref": "#/components/schemas/MachineCountSensorBody"
            },
            "type": "array"
          },
          "deleted": {
            "items": {
              "$ref": "#/components/schemas/MachineCountSensorBody"
            },
            "type": "array"
          },
          "added": {
            "items": {
              "$ref": "#/components/schemas/MachineCountSensorBody"
            },
            "type": "array"
          },
          "companyId": {
            "type": "number",
            "format": "double"
          }
        },
        "required": [
          "updated",
          "deleted",
          "added",
          "companyId"
        ],
        "type": "object"
      },
      "MachineProduct": {
        "enum": [
          "standard",
          "lite",
          "pro"
        ],
        "type": "string"
      },
      "MachineProductRow": {
        "properties": {
          "machineId": {
            "type": "number",
            "format": "double"
          },
          "product": {
            "$ref": "#/components/schemas/MachineProduct"
          }
        },
        "required": [
          "product"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "PatchMachineProductsReq": {
        "properties": {
          "companyId": {
            "type": "number",
            "format": "double"
          },
          "machineProducts": {
            "items": {
              "$ref": "#/components/schemas/MachineProductRow"
            },
            "type": "array"
          }
        },
        "required": [
          "companyId",
          "machineProducts"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "GetMachineProductsRes": {
        "properties": {
          "companyId": {
            "type": "number",
            "format": "double"
          },
          "machineProducts": {
            "items": {
              "$ref": "#/components/schemas/MachineProductRow"
            },
            "type": "array"
          }
        },
        "required": [
          "companyId",
          "machineProducts"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "ICompanyConfigUI": {
        "additionalProperties": false,
        "type": "object"
      },
      "CreateCompanyConfigUIParams": {
        "properties": {
          "config": {
            "additionalProperties": false,
            "type": "object"
          },
          "userId": {
            "type": "number",
            "format": "double"
          },
          "companyId": {
            "type": "number",
            "format": "double"
          }
        },
        "required": [
          "config",
          "userId",
          "companyId"
        ],
        "type": "object"
      },
      "UpsertCompanyConfigUIParams": {
        "allOf": [
          {
            "$ref": "#/components/schemas/CreateCompanyConfigUIParams"
          },
          {
            "properties": {
              "deletedAt": {
                "type": "number",
                "enum": [
                  null
                ],
                "nullable": true
              }
            },
            "type": "object"
          }
        ]
      },
      "Pick_CreateCompanyConfigUIParams.Exclude_keyofCreateCompanyConfigUIParams.userId__": {
        "properties": {
          "companyId": {
            "type": "number",
            "format": "double"
          },
          "config": {
            "additionalProperties": false,
            "type": "object"
          }
        },
        "required": [
          "companyId",
          "config"
        ],
        "type": "object",
        "description": "From T, pick a set of properties whose keys are in the union K"
      },
      "Omit_CreateCompanyConfigUIParams.userId_": {
        "$ref": "#/components/schemas/Pick_CreateCompanyConfigUIParams.Exclude_keyofCreateCompanyConfigUIParams.userId__",
        "description": "Construct a type with the properties of T except for those in type K."
      },
      "UpsertCompanyConfigUIAllUsersParams": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Omit_CreateCompanyConfigUIParams.userId_"
          },
          {
            "properties": {
              "deletedAt": {
                "type": "number",
                "enum": [
                  null
                ],
                "nullable": true
              }
            },
            "type": "object"
          }
        ]
      },
      "DeleteCompanyConfigUIParams": {
        "properties": {
          "userId": {
            "type": "number",
            "format": "double"
          },
          "companyId": {
            "type": "number",
            "format": "double"
          }
        },
        "required": [
          "userId",
          "companyId"
        ],
        "type": "object"
      },
      "FeatureFlagMachines": {
        "properties": {
          "enabled": {
            "type": "boolean"
          },
          "id": {
            "type": "number",
            "format": "double"
          }
        },
        "required": [
          "enabled",
          "id"
        ],
        "type": "object"
      },
      "FeatureFlagConfigsCS": {
        "properties": {
          "availability": {
            "properties": {
              "machines": {
                "items": {
                  "$ref": "#/components/schemas/FeatureFlagMachines"
                },
                "type": "array"
              },
              "enabled": {
                "type": "boolean"
              }
            },
            "required": [
              "machines",
              "enabled"
            ],
            "type": "object"
          },
          "countSensor": {
            "properties": {
              "machines": {
                "items": {
                  "$ref": "#/components/schemas/FeatureFlagMachines"
                },
                "type": "array"
              },
              "enabled": {
                "type": "boolean"
              }
            },
            "required": [
              "machines",
              "enabled"
            ],
            "type": "object"
          },
          "prodBasic": {
            "properties": {
              "machines": {
                "items": {
                  "$ref": "#/components/schemas/FeatureFlagMachines"
                },
                "type": "array"
              },
              "enabled": {
                "type": "boolean"
              }
            },
            "required": [
              "machines",
              "enabled"
            ],
            "type": "object"
          },
          "prodFull": {
            "properties": {
              "machines": {
                "items": {
                  "$ref": "#/components/schemas/FeatureFlagMachines"
                },
                "type": "array"
              },
              "enabled": {
                "type": "boolean"
              }
            },
            "required": [
              "machines",
              "enabled"
            ],
            "type": "object"
          },
          "prodLegacy": {
            "properties": {
              "machines": {
                "items": {
                  "$ref": "#/components/schemas/FeatureFlagMachines"
                },
                "type": "array"
              },
              "enabled": {
                "type": "boolean"
              }
            },
            "required": [
              "machines",
              "enabled"
            ],
            "type": "object"
          },
          "prodV1": {
            "properties": {
              "machines": {
                "items": {
                  "$ref": "#/components/schemas/FeatureFlagMachines"
                },
                "type": "array"
              },
              "enabled": {
                "type": "boolean"
              }
            },
            "required": [
              "machines",
              "enabled"
            ],
            "type": "object"
          },
          "reportSubscription": {
            "properties": {
              "machines": {
                "items": {
                  "$ref": "#/components/schemas/FeatureFlagMachines"
                },
                "type": "array"
              },
              "enabled": {
                "type": "boolean"
              }
            },
            "required": [
              "machines",
              "enabled"
            ],
            "type": "object"
          },
          "automaticNominalSpeeds": {
            "properties": {
              "machines": {
                "items": {
                  "$ref": "#/components/schemas/FeatureFlagMachines"
                },
                "type": "array"
              },
              "enabled": {
                "type": "boolean"
              }
            },
            "required": [
              "machines",
              "enabled"
            ],
            "type": "object"
          },
          "nominalSpeedCalculator": {
            "properties": {
              "machines": {
                "items": {
                  "$ref": "#/components/schemas/FeatureFlagMachines"
                },
                "type": "array"
              },
              "enabled": {
                "type": "boolean"
              }
            },
            "required": [
              "machines",
              "enabled"
            ],
            "type": "object"
          },
          "realtimeV2": {
            "properties": {
              "machines": {
                "items": {
                  "$ref": "#/components/schemas/FeatureFlagMachines"
                },
                "type": "array"
              },
              "enabled": {
                "type": "boolean"
              }
            },
            "required": [
              "machines",
              "enabled"
            ],
            "type": "object"
          },
          "realtimeV2Sku": {
            "properties": {
              "machines": {
                "items": {
                  "$ref": "#/components/schemas/FeatureFlagMachines"
                },
                "type": "array"
              },
              "enabled": {
                "type": "boolean"
              }
            },
            "required": [
              "machines",
              "enabled"
            ],
            "type": "object"
          },
          "mobileRealtimeDefects": {
            "properties": {
              "machines": {
                "items": {
                  "$ref": "#/components/schemas/FeatureFlagMachines"
                },
                "type": "array"
              },
              "enabled": {
                "type": "boolean"
              }
            },
            "required": [
              "machines",
              "enabled"
            ],
            "type": "object"
          },
          "exportReports": {
            "properties": {
              "machines": {
                "items": {
                  "$ref": "#/components/schemas/FeatureFlagMachines"
                },
                "type": "array"
              },
              "enabled": {
                "type": "boolean"
              }
            },
            "required": [
              "machines",
              "enabled"
            ],
            "type": "object"
          },
          "metricsTable": {
            "properties": {
              "machines": {
                "items": {
                  "$ref": "#/components/schemas/FeatureFlagMachines"
                },
                "type": "array"
              },
              "enabled": {
                "type": "boolean"
              }
            },
            "required": [
              "machines",
              "enabled"
            ],
            "type": "object"
          },
          "cycleMetrics": {
            "properties": {
              "machines": {
                "items": {
                  "$ref": "#/components/schemas/FeatureFlagMachines"
                },
                "type": "array"
              },
              "enabled": {
                "type": "boolean"
              }
            },
            "required": [
              "machines",
              "enabled"
            ],
            "type": "object"
          },
          "energyPlots": {
            "properties": {
              "machines": {
                "items": {
                  "$ref": "#/components/schemas/FeatureFlagMachines"
                },
                "type": "array"
              },
              "enabled": {
                "type": "boolean"
              }
            },
            "required": [
              "machines",
              "enabled"
            ],
            "type": "object"
          },
          "energyMetrics": {
            "properties": {
              "machines": {
                "items": {
                  "$ref": "#/components/schemas/FeatureFlagMachines"
                },
                "type": "array"
              },
              "enabled": {
                "type": "boolean"
              }
            },
            "required": [
              "machines",
              "enabled"
            ],
            "type": "object"
          },
          "productCountMetrics": {
            "properties": {
              "machines": {
                "items": {
                  "$ref": "#/components/schemas/FeatureFlagMachines"
                },
                "type": "array"
              },
              "enabled": {
                "type": "boolean"
              }
            },
            "required": [
              "machines",
              "enabled"
            ],
            "type": "object"
          },
          "vibrationMetrics": {
            "properties": {
              "machines": {
                "items": {
                  "$ref": "#/components/schemas/FeatureFlagMachines"
                },
                "type": "array"
              },
              "enabled": {
                "type": "boolean"
              }
            },
            "required": [
              "machines",
              "enabled"
            ],
            "type": "object"
          },
          "temperatureMetrics": {
            "properties": {
              "machines": {
                "items": {
                  "$ref": "#/components/schemas/FeatureFlagMachines"
                },
                "type": "array"
              },
              "enabled": {
                "type": "boolean"
              }
            },
            "required": [
              "machines",
              "enabled"
            ],
            "type": "object"
          },
          "pressureMetrics": {
            "properties": {
              "machines": {
                "items": {
                  "$ref": "#/components/schemas/FeatureFlagMachines"
                },
                "type": "array"
              },
              "enabled": {
                "type": "boolean"
              }
            },
            "required": [
              "machines",
              "enabled"
            ],
            "type": "object"
          },
          "video": {
            "properties": {
              "machines": {
                "items": {
                  "$ref": "#/components/schemas/FeatureFlagMachines"
                },
                "type": "array"
              },
              "enabled": {
                "type": "boolean"
              }
            },
            "required": [
              "machines",
              "enabled"
            ],
            "type": "object"
          },
          "tvModeV2": {
            "properties": {
              "machines": {
                "items": {
                  "$ref": "#/components/schemas/FeatureFlagMachines"
                },
                "type": "array"
              },
              "enabled": {
                "type": "boolean"
              }
            },
            "required": [
              "machines",
              "enabled"
            ],
            "type": "object"
          },
          "operatorsV2": {
            "properties": {
              "machines": {
                "items": {
                  "$ref": "#/components/schemas/FeatureFlagMachines"
                },
                "type": "array"
              },
              "enabled": {
                "type": "boolean"
              }
            },
            "required": [
              "machines",
              "enabled"
            ],
            "type": "object"
          },
          "isAccessSuspended": {
            "properties": {
              "machines": {
                "items": {
                  "$ref": "#/components/schemas/FeatureFlagMachines"
                },
                "type": "array"
              },
              "enabled": {
                "type": "boolean"
              }
            },
            "required": [
              "machines",
              "enabled"
            ],
            "type": "object"
          },
          "qualityIssueGroups": {
            "properties": {
              "machines": {
                "items": {
                  "$ref": "#/components/schemas/FeatureFlagMachines"
                },
                "type": "array"
              },
              "enabled": {
                "type": "boolean"
              }
            },
            "required": [
              "machines",
              "enabled"
            ],
            "type": "object"
          },
          "aiAnalytics": {
            "properties": {
              "machines": {
                "items": {
                  "$ref": "#/components/schemas/FeatureFlagMachines"
                },
                "type": "array"
              },
              "enabled": {
                "type": "boolean"
              }
            },
            "required": [
              "machines",
              "enabled"
            ],
            "type": "object"
          },
          "tvModeConfigurableDisplay": {
            "properties": {
              "machines": {
                "items": {
                  "$ref": "#/components/schemas/FeatureFlagMachines"
                },
                "type": "array"
              },
              "enabled": {
                "type": "boolean"
              }
            },
            "required": [
              "machines",
              "enabled"
            ],
            "type": "object"
          },
          "skuDetection": {
            "properties": {
              "machines": {
                "items": {
                  "$ref": "#/components/schemas/FeatureFlagMachines"
                },
                "type": "array"
              },
              "enabled": {
                "type": "boolean"
              }
            },
            "required": [
              "machines",
              "enabled"
            ],
            "type": "object"
          },
          "usePreviousSkuForProductionAdvancement": {
            "properties": {
              "machines": {
                "items": {
                  "$ref": "#/components/schemas/FeatureFlagMachines"
                },
                "type": "array"
              },
              "enabled": {
                "type": "boolean"
              }
            },
            "required": [
              "machines",
              "enabled"
            ],
            "type": "object"
          },
          "alertsV2": {
            "properties": {
              "machines": {
                "items": {
                  "$ref": "#/components/schemas/FeatureFlagMachines"
                },
                "type": "array"
              },
              "enabled": {
                "type": "boolean"
              }
            },
            "required": [
              "machines",
              "enabled"
            ],
            "type": "object"
          },
          "infraAlerts": {
            "properties": {
              "machines": {
                "items": {
                  "$ref": "#/components/schemas/FeatureFlagMachines"
                },
                "type": "array"
              },
              "enabled": {
                "type": "boolean"
              }
            },
            "required": [
              "machines",
              "enabled"
            ],
            "type": "object"
          }
        },
        "type": "object"
      },
      "MachineConfigUIViewTypeEnum": {
        "type": "string",
        "enum": [
          "tvKpi",
          "tvNonKpi",
          "desktopNonKpi",
          "tvSingleMachine",
          "tvTowerView2x2",
          "tvTowerView3x3",
          "tvTowerView6x3",
          "tvControlOperatorView"
        ]
      },
      "MachineConfigUIParameter": {
        "properties": {
          "value": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "number",
                "format": "double"
              }
            ]
          },
          "max": {
            "type": "number",
            "format": "double"
          },
          "min": {
            "type": "number",
            "format": "double"
          },
          "options": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "unit": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "number",
              "option"
            ]
          },
          "name": {
            "type": "string"
          }
        },
        "required": [
          "type",
          "name"
        ],
        "type": "object"
      },
      "EFeatureFlagComparison": {
        "enum": [
          "or",
          "and"
        ],
        "type": "string"
      },
      "EFeatureFlags": {
        "enum": [
          "availability",
          "countSensor",
          "prodBasic",
          "prodFull",
          "prodLegacy",
          "prodV1",
          "reportSubscription",
          "automaticNominalSpeeds",
          "nominalSpeedCalculator",
          "realtimeV2",
          "realtimeV2Sku",
          "mobileRealtimeDefects",
          "exportReports",
          "metricsTable",
          "cycleMetrics",
          "energyPlots",
          "energyMetrics",
          "productCountMetrics",
          "vibrationMetrics",
          "temperatureMetrics",
          "pressureMetrics",
          "video",
          "tvModeV2",
          "operatorsV2",
          "isAccessSuspended",
          "qualityIssueGroups",
          "aiAnalytics",
          "tvModeConfigurableDisplay",
          "skuDetection",
          "usePreviousSkuForProductionAdvancement",
          "alertsV2",
          "infraAlerts"
        ],
        "type": "string"
      },
      "MachineConfigUICatalogContent": {
        "properties": {
          "featureFlagRequired": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/EFeatureFlags"
                },
                "type": "array"
              },
              {
                "items": {
                  "items": {
                    "$ref": "#/components/schemas/EFeatureFlags"
                  },
                  "type": "array"
                },
                "type": "array"
              }
            ]
          },
          "comparison": {
            "$ref": "#/components/schemas/EFeatureFlagComparison"
          },
          "parameters": {
            "items": {
              "$ref": "#/components/schemas/MachineConfigUIParameter"
            },
            "type": "array"
          },
          "viewType": {
            "items": {
              "$ref": "#/components/schemas/MachineConfigUIViewTypeEnum"
            },
            "type": "array"
          },
          "machines": {
            "items": {
              "type": "number",
              "format": "double"
            },
            "type": "array"
          }
        },
        "required": [
          "comparison",
          "viewType"
        ],
        "type": "object"
      },
      "MachineConfigUICatalog": {
        "properties": {
          "uptime": {
            "$ref": "#/components/schemas/MachineConfigUICatalogContent"
          },
          "downtime": {
            "$ref": "#/components/schemas/MachineConfigUICatalogContent"
          },
          "stops": {
            "$ref": "#/components/schemas/MachineConfigUICatalogContent"
          },
          "accumulatedCount": {
            "$ref": "#/components/schemas/MachineConfigUICatalogContent"
          },
          "currentMinuteCount": {
            "$ref": "#/components/schemas/MachineConfigUICatalogContent"
          },
          "sensors_oee": {
            "$ref": "#/components/schemas/MachineConfigUICatalogContent"
          },
          "sensors_instantaneous_velocity": {
            "$ref": "#/components/schemas/MachineConfigUICatalogContent"
          },
          "sensors_avg_velocity": {
            "$ref": "#/components/schemas/MachineConfigUICatalogContent"
          },
          "sensors_aggregated_production": {
            "$ref": "#/components/schemas/MachineConfigUICatalogContent"
          },
          "hourByHourDefects": {
            "$ref": "#/components/schemas/MachineConfigUICatalogContent"
          },
          "hourByHourProducts": {
            "$ref": "#/components/schemas/MachineConfigUICatalogContent"
          },
          "skipHourlyProration": {
            "$ref": "#/components/schemas/MachineConfigUICatalogContent"
          },
          "hourByHourTargets": {
            "$ref": "#/components/schemas/MachineConfigUICatalogContent"
          },
          "hourByHourPerformance": {
            "$ref": "#/components/schemas/MachineConfigUICatalogContent"
          },
          "instantaneous_velocity": {
            "$ref": "#/components/schemas/MachineConfigUICatalogContent"
          },
          "avg_velocity": {
            "$ref": "#/components/schemas/MachineConfigUICatalogContent"
          },
          "total": {
            "$ref": "#/components/schemas/MachineConfigUICatalogContent"
          },
          "defects": {
            "$ref": "#/components/schemas/MachineConfigUICatalogContent"
          },
          "scrap": {
            "$ref": "#/components/schemas/MachineConfigUICatalogContent"
          },
          "correct": {
            "$ref": "#/components/schemas/MachineConfigUICatalogContent"
          },
          "idealProduction": {
            "$ref": "#/components/schemas/MachineConfigUICatalogContent"
          },
          "idealSpeedProduction": {
            "$ref": "#/components/schemas/MachineConfigUICatalogContent"
          },
          "availability": {
            "$ref": "#/components/schemas/MachineConfigUICatalogContent"
          },
          "annotation": {
            "$ref": "#/components/schemas/MachineConfigUICatalogContent"
          },
          "netAvailability": {
            "$ref": "#/components/schemas/MachineConfigUICatalogContent"
          },
          "targetAvailability": {
            "$ref": "#/components/schemas/MachineConfigUICatalogContent"
          },
          "previousAvailability": {
            "$ref": "#/components/schemas/MachineConfigUICatalogContent"
          },
          "currentAvailability": {
            "$ref": "#/components/schemas/MachineConfigUICatalogContent"
          },
          "plannedDowntime": {
            "$ref": "#/components/schemas/MachineConfigUICatalogContent"
          },
          "unplannedDowntime": {
            "$ref": "#/components/schemas/MachineConfigUICatalogContent"
          },
          "averageAvailabilityByWeekAfternoon": {
            "$ref": "#/components/schemas/MachineConfigUICatalogContent"
          },
          "averageAvailabilityByWeekDay": {
            "$ref": "#/components/schemas/MachineConfigUICatalogContent"
          },
          "averageAvailabilityByWeekMorning": {
            "$ref": "#/components/schemas/MachineConfigUICatalogContent"
          },
          "averageAvailabilityByWeekNight": {
            "$ref": "#/components/schemas/MachineConfigUICatalogContent"
          },
          "oee_quality": {
            "$ref": "#/components/schemas/MachineConfigUICatalogContent"
          },
          "oee_produced": {
            "$ref": "#/components/schemas/MachineConfigUICatalogContent"
          },
          "oee_effectiveness": {
            "$ref": "#/components/schemas/MachineConfigUICatalogContent"
          },
          "total_performance": {
            "$ref": "#/components/schemas/MachineConfigUICatalogContent"
          },
          "total_oee": {
            "$ref": "#/components/schemas/MachineConfigUICatalogContent"
          },
          "oee_oee": {
            "$ref": "#/components/schemas/MachineConfigUICatalogContent"
          },
          "netOee": {
            "$ref": "#/components/schemas/MachineConfigUICatalogContent"
          },
          "instantaneousCycleTime": {
            "$ref": "#/components/schemas/MachineConfigUICatalogContent"
          },
          "instantaneousCycleCount": {
            "$ref": "#/components/schemas/MachineConfigUICatalogContent"
          },
          "instantaneousCycleSpeed": {
            "$ref": "#/components/schemas/MachineConfigUICatalogContent"
          },
          "energy": {
            "$ref": "#/components/schemas/MachineConfigUICatalogContent"
          },
          "productCount": {
            "$ref": "#/components/schemas/MachineConfigUICatalogContent"
          },
          "vibrationDisplacementX": {
            "$ref": "#/components/schemas/MachineConfigUICatalogContent"
          },
          "vibrationDisplacementY": {
            "$ref": "#/components/schemas/MachineConfigUICatalogContent"
          },
          "vibrationDisplacementZ": {
            "$ref": "#/components/schemas/MachineConfigUICatalogContent"
          },
          "vibrationVelocityX": {
            "$ref": "#/components/schemas/MachineConfigUICatalogContent"
          },
          "vibrationVelocityY": {
            "$ref": "#/components/schemas/MachineConfigUICatalogContent"
          },
          "vibrationVelocityZ": {
            "$ref": "#/components/schemas/MachineConfigUICatalogContent"
          },
          "vibrationAccelerationX": {
            "$ref": "#/components/schemas/MachineConfigUICatalogContent"
          },
          "vibrationAccelerationY": {
            "$ref": "#/components/schemas/MachineConfigUICatalogContent"
          },
          "vibrationAccelerationZ": {
            "$ref": "#/components/schemas/MachineConfigUICatalogContent"
          },
          "temperature": {
            "$ref": "#/components/schemas/MachineConfigUICatalogContent"
          },
          "pressureLeftPresizeAdjustNut": {
            "$ref": "#/components/schemas/MachineConfigUICatalogContent"
          },
          "pressureRightPresizeAdjustNut": {
            "$ref": "#/components/schemas/MachineConfigUICatalogContent"
          },
          "operatorCorrect": {
            "$ref": "#/components/schemas/MachineConfigUICatalogContent"
          },
          "operatorUptime": {
            "$ref": "#/components/schemas/MachineConfigUICatalogContent"
          },
          "operatorDowntime": {
            "$ref": "#/components/schemas/MachineConfigUICatalogContent"
          },
          "operatorAvailability": {
            "$ref": "#/components/schemas/MachineConfigUICatalogContent"
          }
        },
        "type": "object"
      },
      "MachineConfigUIStandardEnum": {
        "type": "string",
        "enum": [
          "uptime",
          "downtime",
          "stops"
        ]
      },
      "MachineConfigUICountSensorEnum": {
        "type": "string",
        "enum": [
          "accumulatedCount",
          "currentMinuteCount",
          "sensors_oee",
          "sensors_instantaneous_velocity",
          "sensors_avg_velocity",
          "sensors_aggregated_production",
          "hourByHourDefects",
          "hourByHourProducts",
          "skipHourlyProration",
          "hourByHourTargets",
          "hourByHourPerformance"
        ]
      },
      "MachineConfigUIProductionBasicAndProdFullEnum": {
        "type": "string",
        "enum": [
          "currentMinuteCount",
          "instantaneous_velocity",
          "avg_velocity",
          "total",
          "defects",
          "scrap",
          "correct",
          "idealProduction",
          "idealSpeedProduction"
        ]
      },
      "MachineConfigUIAvailabilityEnum": {
        "type": "string",
        "enum": [
          "availability",
          "annotation",
          "netAvailability",
          "targetAvailability",
          "previousAvailability",
          "currentAvailability",
          "plannedDowntime",
          "unplannedDowntime",
          "averageAvailabilityByWeekAfternoon",
          "averageAvailabilityByWeekDay",
          "averageAvailabilityByWeekMorning",
          "averageAvailabilityByWeekNight"
        ]
      },
      "MachineConfigUIProductionsEnum": {
        "type": "string",
        "enum": [
          "oee_quality",
          "oee_produced",
          "oee_effectiveness",
          "total_performance",
          "total_oee",
          "oee_oee",
          "netOee"
        ]
      },
      "MachineConfigUICyclesEnum": {
        "type": "string",
        "enum": [
          "instantaneousCycleTime",
          "instantaneousCycleCount",
          "instantaneousCycleSpeed"
        ]
      },
      "MachineConfigUIEnergyEnum": {
        "type": "string",
        "enum": [
          "energy"
        ],
        "nullable": false
      },
      "MachineConfigUIProductCountEnum": {
        "type": "string",
        "enum": [
          "productCount"
        ],
        "nullable": false
      },
      "MachineConfigUIVibrationEnum": {
        "type": "string",
        "enum": [
          "vibrationDisplacementX",
          "vibrationDisplacementY",
          "vibrationDisplacementZ",
          "vibrationVelocityX",
          "vibrationVelocityY",
          "vibrationVelocityZ",
          "vibrationAccelerationX",
          "vibrationAccelerationY",
          "vibrationAccelerationZ"
        ]
      },
      "MachineConfigUITemperatureEnum": {
        "type": "string",
        "enum": [
          "temperature"
        ],
        "nullable": false
      },
      "MachineConfigUIPressureEnum": {
        "type": "string",
        "enum": [
          "pressureLeftPresizeAdjustNut",
          "pressureRightPresizeAdjustNut"
        ]
      },
      "MachineConfigUIOperatorEnum": {
        "type": "string",
        "enum": [
          "operatorCorrect",
          "operatorUptime",
          "operatorDowntime",
          "operatorAvailability"
        ]
      },
      "MachineConfigUIMetricEnum": {
        "anyOf": [
          {
            "$ref": "#/components/schemas/MachineConfigUIStandardEnum"
          },
          {
            "$ref": "#/components/schemas/MachineConfigUICountSensorEnum"
          },
          {
            "$ref": "#/components/schemas/MachineConfigUIProductionBasicAndProdFullEnum"
          },
          {
            "$ref": "#/components/schemas/MachineConfigUIAvailabilityEnum"
          },
          {
            "$ref": "#/components/schemas/MachineConfigUIProductionsEnum"
          },
          {
            "$ref": "#/components/schemas/MachineConfigUICyclesEnum"
          },
          {
            "$ref": "#/components/schemas/MachineConfigUIEnergyEnum"
          },
          {
            "$ref": "#/components/schemas/MachineConfigUIProductCountEnum"
          },
          {
            "$ref": "#/components/schemas/MachineConfigUIVibrationEnum"
          },
          {
            "$ref": "#/components/schemas/MachineConfigUITemperatureEnum"
          },
          {
            "$ref": "#/components/schemas/MachineConfigUIPressureEnum"
          },
          {
            "$ref": "#/components/schemas/MachineConfigUIOperatorEnum"
          }
        ]
      },
      "MachineConfigUIMetricContent": {
        "properties": {
          "featureFlagRequired": {
            "items": {
              "$ref": "#/components/schemas/EFeatureFlags"
            },
            "type": "array"
          },
          "parameters": {
            "items": {
              "$ref": "#/components/schemas/MachineConfigUIParameter"
            },
            "type": "array"
          },
          "order": {
            "type": "number",
            "format": "double"
          },
          "enabled": {
            "type": "boolean"
          },
          "metric": {
            "$ref": "#/components/schemas/MachineConfigUIMetricEnum"
          }
        },
        "required": [
          "order",
          "enabled",
          "metric"
        ],
        "type": "object"
      },
      "SPCConfig": {
        "properties": {
          "legacyMetrics": {
            "type": "boolean"
          },
          "legacyOEE": {
            "type": "boolean"
          },
          "OEE": {
            "type": "boolean"
          }
        },
        "required": [
          "legacyMetrics",
          "legacyOEE",
          "OEE"
        ],
        "type": "object"
      },
      "ConfigValue": {
        "anyOf": [
          {
            "properties": {},
            "additionalProperties": {
              "$ref": "#/components/schemas/ConfigValue"
            },
            "type": "object"
          },
          {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "boolean"
              },
              {
                "type": "number",
                "format": "double"
              }
            ],
            "nullable": true
          }
        ]
      },
      "IntegrationConfig": {
        "properties": {
          "dateFormat": {
            "type": "string"
          },
          "overrides": {
            "properties": {
              "workLogs": {
                "type": "boolean"
              },
              "targets": {
                "type": "boolean"
              },
              "speeds": {
                "type": "boolean"
              }
            },
            "required": [
              "workLogs",
              "targets",
              "speeds"
            ],
            "type": "object"
          },
          "localtime": {
            "type": "boolean"
          },
          "legacyOEE": {
            "type": "boolean"
          },
          "OEE": {
            "type": "boolean"
          }
        },
        "required": [
          "dateFormat",
          "overrides",
          "localtime",
          "legacyOEE",
          "OEE"
        ],
        "type": "object"
      },
      "ProductionConfig": {
        "properties": {
          "estimatedDeliveryTimeEnabled": {
            "type": "boolean"
          },
          "aceromexExclusiveFeatures": {
            "type": "boolean"
          },
          "scrapEnabled": {
            "type": "boolean"
          },
          "enabled": {
            "type": "boolean"
          }
        },
        "required": [
          "estimatedDeliveryTimeEnabled",
          "aceromexExclusiveFeatures",
          "scrapEnabled",
          "enabled"
        ],
        "type": "object"
      },
      "GridConfig": {
        "properties": {
          "columns": {
            "type": "number",
            "format": "double"
          },
          "rows": {
            "type": "number",
            "format": "double"
          }
        },
        "required": [
          "columns",
          "rows"
        ],
        "type": "object"
      },
      "ShiftSettings": {
        "properties": {
          "moveNightToNextDay": {
            "type": "boolean"
          },
          "allowEditionUpToDays": {
            "type": "number",
            "format": "double"
          }
        },
        "required": [
          "moveNightToNextDay",
          "allowEditionUpToDays"
        ],
        "type": "object"
      },
      "StopCauseDisplay": {
        "type": "string",
        "enum": [
          "none",
          "general",
          "generalAndSpecific",
          "specific"
        ]
      },
      "TvModeCardDisplayOptions": {
        "properties": {
          "stopCause": {
            "$ref": "#/components/schemas/StopCauseDisplay"
          },
          "showSkuDescription": {
            "type": "boolean"
          },
          "showSku": {
            "type": "boolean"
          },
          "showOperator": {
            "type": "boolean"
          }
        },
        "required": [
          "stopCause",
          "showSkuDescription",
          "showSku",
          "showOperator"
        ],
        "type": "object"
      },
      "TvModeStateToggleOptions": {
        "properties": {
          "showSpecificCause": {
            "type": "boolean"
          },
          "showGeneralCause": {
            "type": "boolean"
          },
          "showSkuDescription": {
            "type": "boolean"
          },
          "showSku": {
            "type": "boolean"
          },
          "showOperator": {
            "type": "boolean"
          }
        },
        "required": [
          "showSpecificCause",
          "showGeneralCause",
          "showSkuDescription",
          "showSku",
          "showOperator"
        ],
        "type": "object"
      },
      "TvModeGrid3x3DisplayOptions": {
        "properties": {
          "stopped": {
            "$ref": "#/components/schemas/TvModeStateToggleOptions"
          },
          "producing": {
            "$ref": "#/components/schemas/TvModeStateToggleOptions"
          }
        },
        "required": [
          "stopped",
          "producing"
        ],
        "type": "object"
      },
      "TvModeGrid6x3DisplayOptions": {
        "properties": {
          "stopped": {
            "type": "string",
            "enum": [
              "sku",
              "skuDescription",
              "generalCause",
              "specificCause"
            ]
          },
          "producing": {
            "type": "string",
            "enum": [
              "sku",
              "skuDescription",
              "operator"
            ]
          }
        },
        "required": [
          "stopped",
          "producing"
        ],
        "type": "object"
      },
      "ConfigResponse": {
        "properties": {
          "spc": {
            "$ref": "#/components/schemas/SPCConfig"
          },
          "logo": {
            "type": "string"
          },
          "work": {
            "properties": {
              "unitA": {
                "type": "number",
                "format": "double"
              }
            },
            "required": [
              "unitA"
            ],
            "type": "object"
          },
          "showDSO": {
            "type": "boolean"
          },
          "isEquity": {
            "type": "boolean"
          },
          "realtime": {
            "properties": {
              "showOeeMetrics": {
                "type": "boolean"
              },
              "realtimeNonKpi": {
                "properties": {},
                "additionalProperties": {
                  "$ref": "#/components/schemas/ConfigValue"
                },
                "type": "object"
              },
              "metrics": {
                "properties": {},
                "additionalProperties": {
                  "$ref": "#/components/schemas/ConfigValue"
                },
                "type": "object"
              }
            },
            "required": [
              "showOeeMetrics",
              "realtimeNonKpi",
              "metrics"
            ],
            "type": "object"
          },
          "integrations": {
            "$ref": "#/components/schemas/IntegrationConfig"
          },
          "production": {
            "$ref": "#/components/schemas/ProductionConfig"
          },
          "showVotings": {
            "type": "boolean"
          },
          "smsQuota": {
            "type": "number",
            "format": "double"
          },
          "background": {
            "type": "string"
          },
          "kpisTvMode": {
            "$ref": "#/components/schemas/GridConfig"
          },
          "legacyTvMode": {
            "$ref": "#/components/schemas/GridConfig"
          },
          "shiftSettings": {
            "$ref": "#/components/schemas/ShiftSettings"
          },
          "shiftTitles": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "showDividends": {
            "type": "boolean"
          },
          "smsQuotaStart": {
            "type": "string",
            "format": "date-time"
          },
          "backgroundColor": {
            "type": "string"
          },
          "showInnerTrading": {
            "type": "boolean"
          },
          "useSkuIdAsName": {
            "type": "boolean"
          },
          "disableEmptyAnnotationOnMobile": {
            "type": "boolean"
          },
          "lavados": {
            "properties": {
              "enabled": {
                "type": "boolean"
              }
            },
            "required": [
              "enabled"
            ],
            "type": "object"
          },
          "tvModeTimerSeconds": {
            "type": "number",
            "format": "double"
          },
          "tvModeStatusTimeDisplay": {
            "type": "string",
            "enum": [
              "elapsed",
              "changeTime",
              "both"
            ]
          },
          "tvModeDisplayOptions": {
            "properties": {
              "desktopNonKpi": {
                "$ref": "#/components/schemas/TvModeCardDisplayOptions"
              },
              "tvKpi": {
                "$ref": "#/components/schemas/TvModeCardDisplayOptions"
              },
              "tvControlOperatorView": {
                "$ref": "#/components/schemas/TvModeCardDisplayOptions"
              },
              "tvTowerView6x3": {
                "$ref": "#/components/schemas/TvModeGrid6x3DisplayOptions"
              },
              "tvTowerView3x3": {
                "$ref": "#/components/schemas/TvModeGrid3x3DisplayOptions"
              },
              "tvTowerView2x2": {
                "$ref": "#/components/schemas/TvModeCardDisplayOptions"
              },
              "tvSingleMachine": {
                "$ref": "#/components/schemas/TvModeCardDisplayOptions"
              }
            },
            "type": "object"
          },
          "tvModeHideOutOfShiftMachines": {
            "type": "boolean"
          }
        },
        "required": [
          "spc",
          "logo",
          "work",
          "showDSO",
          "isEquity",
          "integrations",
          "production",
          "showVotings",
          "smsQuota",
          "background",
          "kpisTvMode",
          "legacyTvMode",
          "shiftSettings",
          "showDividends",
          "smsQuotaStart",
          "backgroundColor",
          "showInnerTrading",
          "useSkuIdAsName",
          "disableEmptyAnnotationOnMobile",
          "lavados"
        ],
        "type": "object",
        "additionalProperties": {}
      },
      "UserConfigResponse": {
        "allOf": [
          {
            "properties": {
              "machineMetricConfig": {
                "properties": {},
                "additionalProperties": {
                  "properties": {},
                  "additionalProperties": {
                    "items": {
                      "$ref": "#/components/schemas/MachineConfigUIMetricContent"
                    },
                    "type": "array"
                  },
                  "type": "object"
                },
                "type": "object"
              },
              "machineMetricCatalog": {
                "$ref": "#/components/schemas/MachineConfigUICatalog"
              },
              "featureFlags": {
                "$ref": "#/components/schemas/FeatureFlagConfigsCS"
              }
            },
            "required": [
              "machineMetricConfig",
              "machineMetricCatalog",
              "featureFlags"
            ],
            "type": "object"
          },
          {
            "$ref": "#/components/schemas/ConfigResponse"
          }
        ]
      },
      "ProductionAdvancementType": {
        "enum": [
          "total",
          "correct",
          "defects",
          "scrap"
        ],
        "type": "string"
      },
      "ReturnType_typeofschema.parse_": {
        "properties": {
          "defaultProductionAdvancementType": {
            "$ref": "#/components/schemas/ProductionAdvancementType"
          },
          "equipmentNameEn": {
            "type": "string"
          },
          "equipmentNameEs": {
            "type": "string"
          },
          "stopDaysInTablet": {
            "type": "number",
            "format": "double"
          },
          "showOnlySkusWithNominalSpeed": {
            "type": "boolean"
          },
          "enableCalendarInProductionAdvancementForm": {
            "type": "boolean"
          },
          "showDefectsCatalogueDesktop": {
            "type": "boolean"
          },
          "showDefectsCatalogue": {
            "type": "boolean"
          },
          "productionLogTableFreeRangeView": {
            "type": "boolean"
          },
          "productionLogTableHourByHourView": {
            "type": "boolean"
          },
          "showNominalSpeedInProductionAdvancementsDesktop": {
            "type": "boolean"
          },
          "showNominalSpeedInProductionAdvancements": {
            "type": "boolean"
          },
          "showRawMaterialsInProductionAdvancements": {
            "type": "boolean"
          },
          "showReleaseDateInWorkOrders": {
            "type": "boolean"
          },
          "showActualDeliveryDateInWorkOrders": {
            "type": "boolean"
          },
          "showOperatorsInProductionAdvancementsDesktop": {
            "type": "boolean"
          },
          "showOperatorsInProductionAdvancements": {
            "type": "boolean"
          },
          "workOrderForProductionAdvancementDesktop": {
            "type": "boolean"
          },
          "workOrderForProductionAdvancement": {
            "type": "boolean"
          }
        },
        "type": "object",
        "description": "Obtain the return type of a function type"
      },
      "Configurations": {
        "$ref": "#/components/schemas/ReturnType_typeofschema.parse_"
      },
      "CustomFieldType": {
        "enum": [
          "text",
          "text_area",
          "number",
          "date",
          "checkbox",
          "single_select",
          "multi_select",
          "file",
          "image"
        ],
        "type": "string"
      },
      "CustomFieldRes": {
        "properties": {
          "id": {
            "type": "string"
          },
          "type": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "$ref": "#/components/schemas/CustomFieldType"
              }
            ]
          },
          "name": {
            "type": "string"
          },
          "companyId": {
            "type": "number",
            "format": "double"
          },
          "config": {},
          "default": {
            "nullable": true
          }
        },
        "required": [
          "id",
          "type",
          "name",
          "companyId",
          "config",
          "default"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "CustomFieldsByEntityRes": {
        "properties": {},
        "type": "object",
        "additionalProperties": {
          "properties": {},
          "additionalProperties": {
            "$ref": "#/components/schemas/CustomFieldRes"
          },
          "type": "object"
        }
      },
      "CustomFieldEntity": {
        "enum": [
          "production_advancements",
          "work_orders"
        ],
        "type": "string"
      },
      "CustomFieldParams": {
        "properties": {
          "id": {
            "type": "string"
          },
          "companyId": {
            "type": "number",
            "format": "double"
          },
          "name": {
            "type": "string"
          },
          "type": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "$ref": "#/components/schemas/CustomFieldType"
              }
            ]
          },
          "config": {},
          "default": {
            "nullable": true
          },
          "entity": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "$ref": "#/components/schemas/CustomFieldEntity"
              }
            ]
          }
        },
        "required": [
          "name",
          "type",
          "config",
          "default"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "CustomFieldUpdateParams": {
        "properties": {
          "id": {
            "type": "string"
          },
          "companyId": {
            "type": "number",
            "format": "double"
          },
          "name": {
            "type": "string"
          },
          "config": {},
          "default": {
            "nullable": true
          }
        },
        "required": [
          "name",
          "config",
          "default"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "AssociateCustomFieldParams": {
        "properties": {
          "id": {
            "type": "string"
          },
          "entity": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "$ref": "#/components/schemas/CustomFieldEntity"
              }
            ]
          }
        },
        "required": [
          "id",
          "entity"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "DisassociateCustomFieldParams": {
        "properties": {
          "id": {
            "type": "string"
          },
          "entity": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "$ref": "#/components/schemas/CustomFieldEntity"
              }
            ]
          }
        },
        "required": [
          "id",
          "entity"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "CycleMetrics": {
        "properties": {
          "cycleSpeed": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "cycleTime": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "cycleCount": {
            "type": "number",
            "format": "double",
            "nullable": true
          }
        },
        "required": [
          "cycleSpeed",
          "cycleTime",
          "cycleCount"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "InstantaneousCycleMetrics": {
        "properties": {
          "cycleSpeed": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "cycleTime": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "cycleCount": {
            "type": "number",
            "format": "double",
            "nullable": true
          }
        },
        "required": [
          "cycleSpeed",
          "cycleTime",
          "cycleCount"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "FeatureFlagsCSParams": {
        "properties": {
          "configs": {
            "$ref": "#/components/schemas/FeatureFlagConfigsCS"
          },
          "companyId": {
            "type": "number",
            "format": "double"
          }
        },
        "required": [
          "configs",
          "companyId"
        ],
        "type": "object"
      },
      "PutFeatureFlagsParams": {
        "$ref": "#/components/schemas/FeatureFlagsCSParams"
      },
      "Record_number.MachineGoals_": {
        "properties": {},
        "type": "object",
        "description": "Construct a type with a set of properties K of type T"
      },
      "IGoal": {
        "additionalProperties": false,
        "type": "object"
      },
      "GoalType": {
        "enum": [
          "availability",
          "oee",
          "netOee",
          "netAvailability"
        ],
        "type": "string"
      },
      "IIdentity": {
        "additionalProperties": false,
        "type": "object"
      },
      "GetOperatorsRes": {
        "properties": {
          "updatedAt": {
            "type": "string",
            "format": "date-time"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "imageUrl": {
            "type": "string",
            "nullable": true
          },
          "imageS3Key": {
            "type": "string",
            "nullable": true
          },
          "allMachines": {
            "type": "boolean"
          },
          "addedBy": {
            "type": "number",
            "format": "double"
          },
          "companyId": {
            "type": "number",
            "format": "double"
          },
          "cognitoUsername": {
            "type": "string"
          },
          "role": {
            "type": "string"
          },
          "password": {
            "type": "string"
          },
          "lastName": {
            "type": "string"
          },
          "firstName": {
            "type": "string"
          },
          "email": {
            "type": "string"
          },
          "id": {
            "type": "number",
            "format": "double"
          }
        },
        "required": [
          "updatedAt",
          "createdAt",
          "allMachines",
          "addedBy",
          "companyId",
          "cognitoUsername",
          "role",
          "lastName",
          "firstName",
          "email",
          "id"
        ],
        "type": "object"
      },
      "Paginated_GetOperatorsRes_": {
        "properties": {
          "totalItems": {
            "type": "number",
            "format": "double"
          },
          "currentPage": {
            "type": "number",
            "format": "double"
          },
          "totalPages": {
            "type": "number",
            "format": "double"
          },
          "data": {
            "items": {
              "$ref": "#/components/schemas/GetOperatorsRes"
            },
            "type": "array"
          }
        },
        "required": [
          "totalItems",
          "currentPage",
          "totalPages",
          "data"
        ],
        "type": "object"
      },
      "FuzzySearchFilter": {
        "properties": {
          "search": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "FirstNameFilters": {
        "$ref": "#/components/schemas/FuzzySearchFilter"
      },
      "LastNameFilters": {
        "$ref": "#/components/schemas/FuzzySearchFilter"
      },
      "Partial__firstName-FirstNameFilters--lastName-LastNameFilters--page-number--pageSize-number--__": {
        "properties": {
          "firstName": {
            "$ref": "#/components/schemas/FirstNameFilters"
          },
          "lastName": {
            "$ref": "#/components/schemas/LastNameFilters"
          },
          "page": {
            "type": "number",
            "format": "double"
          },
          "pageSize": {
            "type": "number",
            "format": "double"
          }
        },
        "type": "object",
        "description": "Make all properties in T optional"
      },
      "GetBaseOperatorsParams": {
        "$ref": "#/components/schemas/Partial__firstName-FirstNameFilters--lastName-LastNameFilters--page-number--pageSize-number--__"
      },
      "UserAuthStatus": {
        "type": "string",
        "enum": [
          "SSO_INVITED",
          "ENTRA_LINKED",
          "NATIVE",
          "DUAL"
        ]
      },
      "IdentityDto": {
        "properties": {
          "authStatus": {
            "$ref": "#/components/schemas/UserAuthStatus",
            "description": "Pulsar authentication state: SSO_INVITED / ENTRA_LINKED / NATIVE / DUAL."
          },
          "userStatus": {
            "type": "string",
            "description": "Cognito-shaped account status, unchanged: CONFIRMED / NOT_CONFIRMED."
          },
          "role": {
            "type": "string"
          },
          "lastName": {
            "type": "string"
          },
          "firstName": {
            "type": "string"
          },
          "email": {
            "type": "string"
          },
          "id": {
            "type": "number",
            "format": "double"
          }
        },
        "required": [
          "authStatus",
          "userStatus",
          "role",
          "id"
        ],
        "type": "object"
      },
      "CreateOperatorParams": {
        "properties": {
          "addedBy": {
            "type": "number",
            "format": "double"
          },
          "companyId": {
            "type": "number",
            "format": "double"
          },
          "role": {
            "type": "string"
          },
          "lastName": {
            "type": "string"
          },
          "firstName": {
            "type": "string"
          },
          "email": {
            "type": "string"
          }
        },
        "required": [
          "lastName",
          "firstName"
        ],
        "type": "object"
      },
      "Partial_CreateOperatorParams_": {
        "properties": {
          "email": {
            "type": "string"
          },
          "firstName": {
            "type": "string"
          },
          "lastName": {
            "type": "string"
          },
          "role": {
            "type": "string"
          },
          "companyId": {
            "type": "number",
            "format": "double"
          },
          "addedBy": {
            "type": "number",
            "format": "double"
          }
        },
        "type": "object",
        "description": "Make all properties in T optional"
      },
      "CompanyType": {
        "enum": [
          "company",
          "corporation"
        ],
        "type": "string"
      },
      "ICompanyInfo": {
        "properties": {
          "name": {
            "type": "string"
          },
          "displayName": {
            "type": "string"
          },
          "id": {
            "type": "number",
            "format": "double"
          },
          "timezone": {
            "type": "string"
          },
          "type": {
            "$ref": "#/components/schemas/CompanyType"
          }
        },
        "required": [
          "name",
          "displayName",
          "id",
          "timezone",
          "type"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "SkuDto": {
        "properties": {
          "id": {
            "type": "string"
          },
          "company": {
            "properties": {
              "name": {
                "type": "string"
              },
              "id": {
                "type": "number",
                "format": "double"
              }
            },
            "required": [
              "name",
              "id"
            ],
            "type": "object"
          },
          "sku": {
            "type": "string"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "unit": {
            "type": "string",
            "nullable": true
          },
          "archived": {
            "type": "boolean"
          },
          "changedBy": {
            "type": "string"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time"
          },
          "deletedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        },
        "required": [
          "id",
          "company",
          "sku",
          "name",
          "description",
          "unit",
          "archived",
          "changedBy",
          "createdAt",
          "updatedAt",
          "deletedAt"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "CreateSkuDto": {
        "properties": {
          "sku": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "unit": {
            "type": "string"
          },
          "archived": {
            "type": "boolean"
          }
        },
        "required": [
          "sku"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "CustomFieldsParams": {
        "properties": {
          "custom": {
            "properties": {},
            "additionalProperties": {},
            "type": "object"
          }
        },
        "type": "object",
        "additionalProperties": false
      },
      "AddSkuToSplitProductionBasicParams": {
        "allOf": [
          {
            "properties": {
              "end": {
                "type": "string",
                "format": "date-time"
              },
              "start": {
                "type": "string",
                "format": "date-time"
              },
              "quantity": {
                "type": "number",
                "format": "double"
              },
              "sku": {
                "type": "string"
              },
              "skuId": {
                "type": "string"
              },
              "simpleWorkOrderName": {
                "type": "string"
              },
              "simpleWorkOrderId": {
                "type": "string"
              }
            },
            "type": "object"
          },
          {
            "$ref": "#/components/schemas/CustomFieldsParams"
          }
        ]
      },
      "ChangeProductionAdvancementSkuParams": {
        "properties": {
          "sku": {
            "type": "string"
          },
          "skuId": {
            "type": "string"
          },
          "timestamp": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "timestamp"
        ],
        "type": "object"
      },
      "MachineNotificationContextResponse": {
        "properties": {
          "company_id": {
            "type": "number",
            "format": "double"
          },
          "plant_name": {
            "type": "string",
            "nullable": true
          },
          "machine_name": {
            "type": "string",
            "nullable": true
          },
          "machine_id": {
            "type": "number",
            "format": "double"
          }
        },
        "required": [
          "company_id",
          "plant_name",
          "machine_name",
          "machine_id"
        ],
        "type": "object",
        "description": "`machine_name` is null when the machine has no title, and `plant_name` is\nnull when the machine's company has no parent company."
      },
      "KpiMetrics": {
        "properties": {
          "averageSpeed": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "stops": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "downtime": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "uptime": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "total": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "defects": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "correct": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "produced": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "minutesLostByLowQuality": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "minutesLostByLowSpeed": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "netAvailability": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "netOee": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "oee": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "totalOee": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "totalPerformance": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "performance": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "effectiveness": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "quality": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "availability": {
            "type": "number",
            "format": "double",
            "nullable": true
          }
        },
        "required": [
          "averageSpeed",
          "stops",
          "downtime",
          "uptime",
          "total",
          "defects",
          "correct",
          "produced",
          "minutesLostByLowQuality",
          "minutesLostByLowSpeed",
          "netAvailability",
          "netOee",
          "oee",
          "totalOee",
          "totalPerformance",
          "performance",
          "effectiveness",
          "quality",
          "availability"
        ],
        "type": "object"
      },
      "ProductionMetrics": {
        "properties": {
          "idealSpeedProduction": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "idealProduction": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "averageCycleSpeed": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "cycleSpeed": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "cycleCount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "actualSpeed": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "averageSpeed": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "stops": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "downtime": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "uptime": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "defects": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "correct": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "produced": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "total": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "minutesLostByLowQuality": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "minutesLostByLowSpeed": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "netAvailability": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "netOee": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "oee": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "totalOee": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "totalPerformance": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "performance": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "effectiveness": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "quality": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "availability": {
            "type": "number",
            "format": "double",
            "nullable": true
          }
        },
        "required": [
          "idealSpeedProduction",
          "idealProduction",
          "averageCycleSpeed",
          "cycleSpeed",
          "cycleCount",
          "averageSpeed",
          "stops",
          "downtime",
          "uptime",
          "defects",
          "correct",
          "produced",
          "total",
          "minutesLostByLowQuality",
          "minutesLostByLowSpeed",
          "netAvailability",
          "netOee",
          "oee",
          "totalOee",
          "totalPerformance",
          "performance",
          "effectiveness",
          "quality",
          "availability"
        ],
        "type": "object"
      },
      "MetricValue": {
        "properties": {
          "unit": {
            "type": "string"
          },
          "value": {
            "type": "number",
            "format": "double"
          },
          "metric": {
            "type": "string"
          }
        },
        "required": [
          "unit",
          "value",
          "metric"
        ],
        "type": "object"
      },
      "WaterfallRes": {
        "properties": {
          "stopClassifications": {
            "items": {
              "$ref": "#/components/schemas/MetricValue"
            },
            "type": "array"
          },
          "stopProgrammed": {
            "items": {
              "$ref": "#/components/schemas/MetricValue"
            },
            "type": "array"
          },
          "kpis": {
            "items": {
              "$ref": "#/components/schemas/MetricValue"
            },
            "type": "array"
          },
          "isValid": {
            "type": "boolean"
          },
          "machineId": {
            "type": "number",
            "format": "double"
          }
        },
        "required": [
          "stopClassifications",
          "stopProgrammed",
          "kpis",
          "isValid",
          "machineId"
        ],
        "type": "object"
      },
      "DateRange": {
        "properties": {
          "end": {
            "type": "string",
            "format": "date-time"
          },
          "start": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "end",
          "start"
        ],
        "type": "object"
      },
      "WaterfallReq": {
        "properties": {
          "where": {
            "properties": {
              "dateRanges": {
                "items": {
                  "$ref": "#/components/schemas/DateRange"
                },
                "type": "array"
              },
              "machineId": {
                "type": "number",
                "format": "double"
              }
            },
            "required": [
              "dateRanges",
              "machineId"
            ],
            "type": "object"
          }
        },
        "required": [
          "where"
        ],
        "type": "object"
      },
      "MachineConfigUIViewTypeMap": {
        "properties": {
          "tvKpi": {
            "items": {
              "$ref": "#/components/schemas/MachineConfigUIMetricContent"
            },
            "type": "array"
          },
          "tvNonKpi": {
            "items": {
              "$ref": "#/components/schemas/MachineConfigUIMetricContent"
            },
            "type": "array"
          },
          "desktopNonKpi": {
            "items": {
              "$ref": "#/components/schemas/MachineConfigUIMetricContent"
            },
            "type": "array"
          },
          "tvSingleMachine": {
            "items": {
              "$ref": "#/components/schemas/MachineConfigUIMetricContent"
            },
            "type": "array"
          },
          "tvTowerView2x2": {
            "items": {
              "$ref": "#/components/schemas/MachineConfigUIMetricContent"
            },
            "type": "array"
          },
          "tvTowerView3x3": {
            "items": {
              "$ref": "#/components/schemas/MachineConfigUIMetricContent"
            },
            "type": "array"
          },
          "tvTowerView6x3": {
            "items": {
              "$ref": "#/components/schemas/MachineConfigUIMetricContent"
            },
            "type": "array"
          },
          "tvControlOperatorView": {
            "items": {
              "$ref": "#/components/schemas/MachineConfigUIMetricContent"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "MachineConfigUIUpdateParams": {
        "allOf": [
          {
            "$ref": "#/components/schemas/MachineConfigUIViewTypeMap"
          },
          {
            "properties": {
              "machineIds": {
                "items": {
                  "type": "number",
                  "format": "double"
                },
                "type": "array"
              }
            },
            "type": "object"
          }
        ]
      },
      "MachineMetricsConfigUIParams": {
        "properties": {},
        "additionalProperties": {
          "$ref": "#/components/schemas/MachineConfigUIViewTypeMap"
        },
        "type": "object"
      },
      "CountTimeSeriesInSecondsRes": {
        "properties": {
          "scrap": {
            "items": {
              "properties": {
                "time": {
                  "type": "string"
                },
                "timestamp": {
                  "type": "number",
                  "format": "double"
                },
                "y": {
                  "type": "number",
                  "format": "double"
                },
                "x": {
                  "type": "number",
                  "format": "double"
                }
              },
              "required": [
                "time",
                "timestamp",
                "y",
                "x"
              ],
              "type": "object"
            },
            "type": "array"
          },
          "defects": {
            "items": {
              "properties": {
                "time": {
                  "type": "string"
                },
                "timestamp": {
                  "type": "number",
                  "format": "double"
                },
                "y": {
                  "type": "number",
                  "format": "double"
                },
                "x": {
                  "type": "number",
                  "format": "double"
                }
              },
              "required": [
                "time",
                "timestamp",
                "y",
                "x"
              ],
              "type": "object"
            },
            "type": "array"
          },
          "correct": {
            "items": {
              "properties": {
                "time": {
                  "type": "string"
                },
                "timestamp": {
                  "type": "number",
                  "format": "double"
                },
                "y": {
                  "type": "number",
                  "format": "double"
                },
                "x": {
                  "type": "number",
                  "format": "double"
                }
              },
              "required": [
                "time",
                "timestamp",
                "y",
                "x"
              ],
              "type": "object"
            },
            "type": "array"
          },
          "total": {
            "items": {
              "properties": {
                "time": {
                  "type": "string"
                },
                "timestamp": {
                  "type": "number",
                  "format": "double"
                },
                "y": {
                  "type": "number",
                  "format": "double"
                },
                "x": {
                  "type": "number",
                  "format": "double"
                }
              },
              "required": [
                "time",
                "timestamp",
                "y",
                "x"
              ],
              "type": "object"
            },
            "type": "array"
          },
          "end": {
            "type": "string"
          },
          "start": {
            "type": "string"
          }
        },
        "required": [
          "scrap",
          "defects",
          "correct",
          "total",
          "end",
          "start"
        ],
        "type": "object"
      },
      "Status": {
        "enum": [
          "N",
          "S",
          "W"
        ],
        "type": "string"
      },
      "MachineStatusValue": {
        "properties": {
          "status": {
            "$ref": "#/components/schemas/Status"
          },
          "label": {
            "$ref": "#/components/schemas/Status"
          },
          "end": {
            "type": "string",
            "format": "date-time"
          },
          "start": {
            "type": "string",
            "format": "date-time"
          },
          "machineId": {
            "type": "number",
            "format": "double"
          }
        },
        "required": [
          "status",
          "label",
          "end",
          "start",
          "machineId"
        ],
        "type": "object"
      },
      "CurrentStatusResponse": {
        "allOf": [
          {
            "$ref": "#/components/schemas/MachineStatusValue"
          },
          {
            "properties": {
              "title": {
                "type": "string"
              },
              "isCountEnabled": {
                "type": "boolean"
              },
              "isOutOfShift": {
                "type": "boolean"
              },
              "hasShift": {
                "type": "boolean"
              },
              "hasAlert": {
                "type": "boolean"
              }
            },
            "type": "object"
          }
        ]
      },
      "NodeAmpsPerMinuteDto": {
        "properties": {
          "value": {
            "type": "number",
            "format": "double"
          },
          "timestamp": {
            "type": "string"
          }
        },
        "required": [
          "value",
          "timestamp"
        ],
        "type": "object"
      },
      "GetNodeAmpsPerMinuteResponse": {
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/NodeAmpsPerMinuteDto"
            },
            "type": "array"
          }
        },
        "required": [
          "data"
        ],
        "type": "object"
      },
      "MetricType": {
        "enum": [
          "availability",
          "corrects",
          "current",
          "cycle_count",
          "cycle_speed",
          "cycle_time",
          "total",
          "correct",
          "defects",
          "energy",
          "identity",
          "speed",
          "status",
          "temperature",
          "totals",
          "product_count",
          "vibration_displacement_x",
          "vibration_displacement_y",
          "vibration_displacement_z",
          "vibration_velocity_x",
          "vibration_velocity_y",
          "vibration_velocity_z",
          "vibration_acceleration_x",
          "vibration_acceleration_y",
          "vibration_acceleration_z",
          "pressure_left_presize_adjust_nut",
          "pressure_right_presize_adjust_nut"
        ],
        "type": "string"
      },
      "AggregationType": {
        "enum": [
          "average",
          "count",
          "max",
          "min",
          "sum"
        ],
        "type": "string"
      },
      "NodePowerEventDto": {
        "properties": {
          "reason": {
            "type": "string",
            "nullable": true
          },
          "name": {
            "type": "string"
          },
          "timestamp": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "timestamp"
        ],
        "type": "object"
      },
      "NodeEventsGroup": {
        "properties": {
          "events": {
            "items": {
              "$ref": "#/components/schemas/NodePowerEventDto"
            },
            "type": "array"
          },
          "nodeId": {
            "type": "number",
            "format": "double"
          }
        },
        "required": [
          "events",
          "nodeId"
        ],
        "type": "object"
      },
      "GetNodePowerEventsResponse": {
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/NodeEventsGroup"
            },
            "type": "array"
          }
        },
        "required": [
          "data"
        ],
        "type": "object"
      },
      "NodeStatusTimelineDto": {
        "properties": {
          "mqtt": {
            "items": {
              "type": "number",
              "format": "double",
              "nullable": true
            },
            "type": "array"
          },
          "wifi": {
            "items": {
              "type": "number",
              "format": "double",
              "nullable": true
            },
            "type": "array"
          },
          "intervalSeconds": {
            "type": "number",
            "format": "double"
          },
          "start": {
            "type": "string"
          },
          "nodeId": {
            "type": "number",
            "format": "double"
          }
        },
        "required": [
          "mqtt",
          "wifi",
          "intervalSeconds",
          "start",
          "nodeId"
        ],
        "type": "object"
      },
      "GetNodeStatusResponse": {
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/NodeStatusTimelineDto"
            },
            "type": "array"
          }
        },
        "required": [
          "data"
        ],
        "type": "object"
      },
      "MachineSortedByMetricsResponse": {
        "properties": {
          "sortedMachines": {
            "items": {
              "properties": {
                "sortingValue": {
                  "type": "number",
                  "format": "double",
                  "nullable": true
                },
                "id": {
                  "type": "number",
                  "format": "double"
                }
              },
              "required": [
                "sortingValue",
                "id"
              ],
              "type": "object"
            },
            "type": "array"
          },
          "machinesIds": {
            "items": {
              "type": "number",
              "format": "double"
            },
            "type": "array"
          }
        },
        "required": [
          "sortedMachines",
          "machinesIds"
        ],
        "type": "object"
      },
      "IMachine": {
        "additionalProperties": false,
        "type": "object"
      },
      "MachineMetricType": {
        "enum": [
          "speed",
          "oee",
          "quality",
          "uptime",
          "downtime",
          "availability",
          "performance",
          "correct",
          "defects",
          "total"
        ],
        "type": "string"
      },
      "MachineMetric": {
        "properties": {
          "metric": {
            "$ref": "#/components/schemas/MachineMetricType"
          },
          "value": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "timestamp": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "metric",
          "value",
          "timestamp"
        ],
        "type": "object"
      },
      "IntervalType": {
        "enum": [
          "shift",
          "daily",
          "weekly",
          "monthly"
        ],
        "type": "string"
      },
      "MachineAvailability": {
        "properties": {
          "status": {
            "$ref": "#/components/schemas/Status"
          },
          "timestamp": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "status",
          "timestamp"
        ],
        "type": "object"
      },
      "MachineMetrics": {
        "properties": {
          "annotation": {
            "type": "number",
            "format": "double"
          },
          "previousAvailability": {
            "type": "number",
            "format": "double"
          },
          "currentAvailability": {
            "type": "number",
            "format": "double"
          },
          "targetAvailability": {
            "type": "number",
            "format": "double"
          },
          "averageAvailabilityByDays": {
            "type": "number",
            "format": "double"
          },
          "averageAvailabilityByWeekDay": {
            "type": "number",
            "format": "double"
          },
          "averageAvailabilityByWeekNight": {
            "type": "number",
            "format": "double"
          },
          "averageAvailabilityByWeekAfternoon": {
            "type": "number",
            "format": "double"
          },
          "averageAvailabilityByWeekMorning": {
            "type": "number",
            "format": "double"
          },
          "companyId": {
            "type": "number",
            "format": "double"
          },
          "machineName": {
            "type": "string"
          },
          "machineId": {
            "type": "number",
            "format": "double"
          }
        },
        "required": [
          "annotation",
          "previousAvailability",
          "currentAvailability",
          "targetAvailability",
          "averageAvailabilityByWeekDay",
          "averageAvailabilityByWeekNight",
          "averageAvailabilityByWeekAfternoon",
          "averageAvailabilityByWeekMorning",
          "companyId",
          "machineName",
          "machineId"
        ],
        "type": "object"
      },
      "GetMachinesRes": {
        "properties": {
          "updatedAt": {
            "type": "string",
            "format": "date-time"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "name": {
            "type": "string"
          },
          "id": {
            "type": "string"
          }
        },
        "required": [
          "updatedAt",
          "createdAt",
          "name",
          "id"
        ],
        "type": "object"
      },
      "Paginated_GetMachinesRes_": {
        "properties": {
          "totalItems": {
            "type": "number",
            "format": "double"
          },
          "currentPage": {
            "type": "number",
            "format": "double"
          },
          "totalPages": {
            "type": "number",
            "format": "double"
          },
          "data": {
            "items": {
              "$ref": "#/components/schemas/GetMachinesRes"
            },
            "type": "array"
          }
        },
        "required": [
          "totalItems",
          "currentPage",
          "totalPages",
          "data"
        ],
        "type": "object"
      },
      "WorkingReport": {
        "properties": {
          "availabilityIndicator": {
            "type": "number",
            "format": "double"
          },
          "workingMinutes": {
            "type": "number",
            "format": "double"
          },
          "shiftMinutes": {
            "type": "number",
            "format": "double"
          }
        },
        "required": [
          "availabilityIndicator",
          "workingMinutes",
          "shiftMinutes"
        ],
        "type": "object"
      },
      "MachineWorkingReport": {
        "properties": {
          "availableTime": {
            "type": "number",
            "format": "double"
          },
          "availabilityIndicator": {
            "type": "number",
            "format": "double"
          },
          "workingMinutes": {
            "type": "number",
            "format": "double"
          },
          "shiftMinutes": {
            "type": "number",
            "format": "double"
          },
          "machineTitle": {
            "type": "string"
          },
          "machineId": {
            "type": "number",
            "format": "double"
          }
        },
        "required": [
          "availableTime",
          "availabilityIndicator",
          "workingMinutes",
          "shiftMinutes",
          "machineTitle",
          "machineId"
        ],
        "type": "object"
      },
      "GetMachinesWorkingReportRes": {
        "properties": {
          "machines": {
            "items": {
              "$ref": "#/components/schemas/MachineWorkingReport"
            },
            "type": "array"
          },
          "compare": {
            "$ref": "#/components/schemas/WorkingReport"
          },
          "current": {
            "$ref": "#/components/schemas/WorkingReport"
          }
        },
        "required": [
          "machines"
        ],
        "type": "object"
      },
      "PredefinedTimeRangeType": {
        "type": "string",
        "enum": [
          "TODAY",
          "YESTERDAY",
          "WEEK",
          "LAST_TWO_ENDED_WEEKS"
        ]
      },
      "MachineTargetAvailabilityItem": {
        "properties": {
          "targetAvailability": {
            "type": "number",
            "format": "double"
          },
          "id": {
            "type": "number",
            "format": "double"
          }
        },
        "required": [
          "targetAvailability",
          "id"
        ],
        "type": "object"
      },
      "MachineExternalNameItem": {
        "properties": {
          "externalName": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "id": {
            "type": "number",
            "format": "double"
          }
        },
        "required": [
          "externalName"
        ],
        "type": "object"
      },
      "RecalculateReq": {
        "properties": {
          "end": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "number",
                "format": "double"
              }
            ]
          },
          "start": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "number",
                "format": "double"
              }
            ]
          },
          "id": {
            "type": "number",
            "format": "double"
          }
        },
        "required": [
          "end",
          "start",
          "id"
        ],
        "type": "object"
      },
      "RecalculateCountReq": {
        "properties": {
          "end": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "number",
                "format": "double"
              }
            ]
          },
          "start": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "number",
                "format": "double"
              }
            ]
          },
          "id": {
            "type": "number",
            "format": "double"
          }
        },
        "required": [
          "end",
          "start",
          "id"
        ],
        "type": "object"
      },
      "ProductionAdvancementType.Correct": {
        "enum": [
          "correct"
        ],
        "type": "string"
      },
      "ProductionAdvancementType.Total": {
        "enum": [
          "total"
        ],
        "type": "string"
      },
      "UpdateDefaultProductionAdvancementTypeReq": {
        "properties": {
          "defaultProductionAdvancementType": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ProductionAdvancementType.Correct"
              },
              {
                "$ref": "#/components/schemas/ProductionAdvancementType.Total"
              }
            ]
          }
        },
        "required": [
          "defaultProductionAdvancementType"
        ],
        "type": "object"
      },
      "MetricsResponseRow": {
        "properties": {
          "identifier": {
            "type": "string"
          },
          "attributes": {
            "properties": {},
            "additionalProperties": {
              "anyOf": [
                {
                  "type": "number",
                  "format": "double"
                },
                {
                  "type": "string"
                }
              ],
              "nullable": true
            },
            "type": "object"
          }
        },
        "required": [
          "identifier",
          "attributes"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "MetricsResponse": {
        "properties": {
          "totalItems": {
            "type": "number",
            "format": "double"
          },
          "currentPage": {
            "type": "number",
            "format": "double"
          },
          "totalPages": {
            "type": "number",
            "format": "double"
          },
          "data": {
            "items": {
              "$ref": "#/components/schemas/MetricsResponseRow"
            },
            "type": "array"
          }
        },
        "required": [
          "totalItems",
          "currentPage",
          "totalPages",
          "data"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "DateRangeCriteria": {
        "properties": {
          "to": {
            "type": "string",
            "format": "date-time"
          },
          "from": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "to",
          "from"
        ],
        "type": "object"
      },
      "MetricKeyAttribute": {
        "enum": [
          "sku_id",
          "machine_id",
          "operator_id",
          "shift_id",
          "shift_title",
          "quality_issue_id",
          "quality_issue_group_id",
          "range_from",
          "range_to"
        ],
        "type": "string"
      },
      "MetricValueAttribute": {
        "enum": [
          "total_time",
          "uptime",
          "downtime",
          "no_data_time",
          "planned_downtime",
          "unplanned_downtime",
          "time_lost_by_low_speed",
          "time_lost_by_low_quality",
          "availability",
          "net_availability",
          "total",
          "correct",
          "defects",
          "average_speed",
          "performance",
          "total_performance",
          "quality",
          "oee",
          "net_oee",
          "oee_minutes"
        ],
        "type": "string"
      },
      "FilterAttribute": {
        "anyOf": [
          {
            "$ref": "#/components/schemas/MetricKeyAttribute"
          },
          {
            "$ref": "#/components/schemas/MetricValueAttribute"
          }
        ]
      },
      "FilterValue": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "number",
            "format": "double"
          },
          {
            "type": "boolean"
          },
          {
            "items": {
              "type": "number",
              "format": "double"
            },
            "type": "array"
          },
          {
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        ]
      },
      "FilterOperator": {
        "description": "Generic filtering primitives shared by metrics-style query modules.\n`attribute` is left as a string so each module can constrain it to its own attribute enum.",
        "enum": [
          "eq",
          "neq",
          "gt",
          "gte",
          "lt",
          "lte",
          "in",
          "nin"
        ],
        "type": "string"
      },
      "FilterCondition": {
        "properties": {
          "operator": {
            "$ref": "#/components/schemas/FilterOperator"
          },
          "value": {
            "$ref": "#/components/schemas/FilterValue"
          },
          "attribute": {
            "$ref": "#/components/schemas/FilterAttribute"
          }
        },
        "required": [
          "operator",
          "value",
          "attribute"
        ],
        "type": "object"
      },
      "FilterCriteria": {
        "properties": {
          "conditions": {
            "items": {
              "$ref": "#/components/schemas/FilterCondition"
            },
            "type": "array"
          },
          "date_range": {
            "$ref": "#/components/schemas/DateRangeCriteria"
          }
        },
        "required": [
          "conditions",
          "date_range"
        ],
        "type": "object"
      },
      "GroupByPeriod": {
        "description": "Generic, table-agnostic attribute concepts shared by metrics-style query modules\n(e.g. `metrics` over PartitionShiftMetrics and `stop-metrics` over StopMetrics).\n\nTable-specific dimension/measure enums live in each module; only the pieces that are\nidentical across every metrics query (time bucketing period, the range/shift-title keys,\nsorting direction) live here.",
        "enum": [
          "shift",
          "day",
          "week",
          "month",
          "quarter",
          "year"
        ],
        "type": "string"
      },
      "GroupByCriteria": {
        "properties": {
          "period": {
            "$ref": "#/components/schemas/GroupByPeriod"
          },
          "attributes": {
            "items": {
              "$ref": "#/components/schemas/MetricKeyAttribute"
            },
            "type": "array"
          }
        },
        "required": [
          "attributes"
        ],
        "type": "object"
      },
      "SortingDirection": {
        "enum": [
          "asc",
          "desc"
        ],
        "type": "string"
      },
      "SortingAttribute": {
        "anyOf": [
          {
            "$ref": "#/components/schemas/MetricKeyAttribute"
          },
          {
            "$ref": "#/components/schemas/MetricValueAttribute"
          }
        ]
      },
      "SortingCriteria": {
        "items": {
          "properties": {
            "attribute": {
              "$ref": "#/components/schemas/SortingAttribute"
            },
            "direction": {
              "$ref": "#/components/schemas/SortingDirection"
            }
          },
          "required": [
            "attribute",
            "direction"
          ],
          "type": "object"
        },
        "type": "array"
      },
      "PaginationParams": {
        "properties": {
          "pageSize": {
            "type": "number",
            "format": "double"
          },
          "page": {
            "type": "number",
            "format": "double"
          }
        },
        "required": [
          "pageSize",
          "page"
        ],
        "type": "object"
      },
      "Pick_GetMetricsParams.Exclude_keyofGetMetricsParams.isNightShiftMovedToNextDay-or-deProrateNoDataTime__": {
        "properties": {
          "filter": {
            "$ref": "#/components/schemas/FilterCriteria"
          },
          "group_by": {
            "$ref": "#/components/schemas/GroupByCriteria"
          },
          "sorting": {
            "$ref": "#/components/schemas/SortingCriteria"
          },
          "pagination": {
            "$ref": "#/components/schemas/PaginationParams"
          }
        },
        "required": [
          "filter",
          "group_by",
          "sorting",
          "pagination"
        ],
        "type": "object",
        "description": "From T, pick a set of properties whose keys are in the union K"
      },
      "MetricsRequest": {
        "properties": {
          "filter": {
            "$ref": "#/components/schemas/FilterCriteria"
          },
          "group_by": {
            "$ref": "#/components/schemas/GroupByCriteria"
          },
          "sorting": {
            "$ref": "#/components/schemas/SortingCriteria"
          },
          "pagination": {
            "$ref": "#/components/schemas/PaginationParams"
          }
        },
        "required": [
          "filter",
          "group_by",
          "sorting",
          "pagination"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "MetricsSeriePoint": {
        "description": "Generic widget-series transformation shared by metrics-style widget services.\nOperates on plain string attribute/metric keys; the table-specific mapping from a\ngrouping dimension to its human-readable descriptor attribute is supplied via `keyValueMap`.",
        "properties": {
          "x": {
            "anyOf": [
              {
                "type": "number",
                "format": "double"
              },
              {
                "type": "string"
              }
            ]
          },
          "y": {
            "anyOf": [
              {
                "type": "number",
                "format": "double"
              },
              {
                "type": "string"
              }
            ]
          }
        },
        "required": [
          "x",
          "y"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "MetricsSerie": {
        "properties": {
          "name": {
            "type": "string"
          },
          "key": {
            "type": "string"
          },
          "label": {
            "type": "string"
          },
          "axis": {
            "type": "string"
          },
          "points": {
            "items": {
              "$ref": "#/components/schemas/MetricsSeriePoint"
            },
            "type": "array"
          }
        },
        "required": [
          "name",
          "key",
          "label",
          "axis",
          "points"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "MetricsWidgetResponse": {
        "properties": {
          "series": {
            "items": {
              "$ref": "#/components/schemas/MetricsSerie"
            },
            "type": "array"
          }
        },
        "required": [
          "series"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "GroupByAttribute": {
        "enum": [
          "sku",
          "machine",
          "operator",
          "shift",
          "quality_issue",
          "quality_issue_group"
        ],
        "type": "string"
      },
      "MetricsDateRange": {
        "properties": {
          "to": {
            "type": "string",
            "description": "e.g. `2026-07-31` (inclusive: resolves to 23:59:59.999) or `2026-07-31T14:00:00Z`"
          },
          "from": {
            "type": "string",
            "description": "e.g. `2026-07-01` or `2026-07-01T06:00:00Z`"
          }
        },
        "required": [
          "to",
          "from"
        ],
        "type": "object",
        "description": "An absolute date range. Deliberately *not* named `DateRange`: several unrelated modules export\na type by that name and TSOA resolves refs by name alone, so the generated contract would\nsilently take another module's shape (that collision is what made absolute ranges unusable).\n\nBounds are ISO 8601 dates (`YYYY-MM-DD`) or date-times, read as UTC when they carry no offset.\nA date-only bound covers the whole day, so `to` is inclusive."
      },
      "MetricsWidgetRequest": {
        "properties": {
          "filter_by": {
            "properties": {
              "quality_issue_group_ids": {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              "quality_issue_groups": {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              "quality_issue_ids": {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              "quality_issues": {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              "shifts": {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              "sku_ids": {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              "skus": {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              "operator_ids": {
                "items": {
                  "type": "number",
                  "format": "double"
                },
                "type": "array"
              },
              "operators": {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              "machine_ids": {
                "items": {
                  "type": "number",
                  "format": "double"
                },
                "type": "array"
              },
              "machines": {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              "date_range": {
                "anyOf": [
                  {
                    "$ref": "#/components/schemas/MetricsDateRange"
                  },
                  {
                    "type": "string"
                  }
                ],
                "description": "Either an absolute range — `{ from, to }`, or the same range as a single\n`2026-07-01~2026-07-31` string — or a relative expression: `past7days`, `last 2 days`,\n`this 1 week`, `next 1 month`."
              }
            },
            "required": [
              "date_range"
            ],
            "type": "object"
          },
          "order_by": {
            "$ref": "#/components/schemas/SortingCriteria"
          },
          "aggregation_period": {
            "$ref": "#/components/schemas/GroupByPeriod"
          },
          "x_axis": {
            "items": {
              "$ref": "#/components/schemas/GroupByAttribute"
            },
            "type": "array",
            "description": "Which `group_by` dimensions form the x axis. When it names a proper subset of `group_by` and no\n`aggregation_period` is given, the remaining dimensions each become a serie on a shared `y`\naxis — the shape a stacked bar needs. Absent, empty, or naming all of `group_by`: no effect."
          },
          "group_by": {
            "items": {
              "$ref": "#/components/schemas/GroupByAttribute"
            },
            "type": "array"
          },
          "metrics": {
            "items": {
              "$ref": "#/components/schemas/MetricValueAttribute"
            },
            "type": "array"
          }
        },
        "required": [
          "filter_by",
          "metrics"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "DateGroup": {
        "type": "string",
        "enum": [
          "today",
          "yesterday",
          "thisWeek",
          "thisMonth",
          "older"
        ]
      },
      "RelatedDateRange": {
        "properties": {
          "start": {
            "type": "string"
          },
          "end": {
            "type": "string"
          },
          "shiftId": {
            "type": "number",
            "format": "double"
          }
        },
        "required": [
          "start"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "NotificationResponse": {
        "properties": {
          "id": {
            "type": "string"
          },
          "title": {
            "properties": {},
            "additionalProperties": {
              "type": "string"
            },
            "type": "object"
          },
          "description": {
            "properties": {},
            "additionalProperties": {
              "type": "string"
            },
            "type": "object",
            "nullable": true
          },
          "alertedAt": {
            "type": "string"
          },
          "machineId": {
            "type": "number",
            "format": "double"
          },
          "severity": {
            "type": "string"
          },
          "isRead": {
            "type": "boolean"
          },
          "recipientId": {
            "type": "string"
          },
          "dateGroup": {
            "$ref": "#/components/schemas/DateGroup"
          },
          "relatedDateRange": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RelatedDateRange"
              }
            ],
            "nullable": true
          }
        },
        "required": [
          "id",
          "title",
          "description",
          "alertedAt",
          "machineId",
          "severity",
          "isRead",
          "recipientId",
          "dateGroup",
          "relatedDateRange"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "NotificationsListResponse": {
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/NotificationResponse"
            },
            "type": "array"
          },
          "totalItems": {
            "type": "number",
            "format": "double"
          },
          "summary": {
            "properties": {},
            "additionalProperties": {
              "type": "number",
              "format": "double"
            },
            "type": "object"
          }
        },
        "required": [
          "data",
          "totalItems",
          "summary"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "MarkReadRequest": {
        "properties": {
          "notificationIds": {
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "required": [
          "notificationIds"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "PlanStatus": {
        "enum": [
          "past",
          "active",
          "future"
        ],
        "type": "string"
      },
      "OperatorPlanSummaryResponse": {
        "properties": {
          "id": {
            "type": "string"
          },
          "fileId": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "since": {
            "type": "string"
          },
          "until": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "$ref": "#/components/schemas/PlanStatus"
          },
          "operatorCount": {
            "type": "number",
            "format": "double"
          },
          "machineCount": {
            "type": "number",
            "format": "double"
          }
        },
        "required": [
          "id",
          "fileId",
          "title",
          "since",
          "until",
          "status",
          "operatorCount",
          "machineCount"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "FrequencyUnit": {
        "type": "string",
        "enum": [
          "day",
          "week"
        ]
      },
      "Frequency": {
        "properties": {
          "unit": {
            "$ref": "#/components/schemas/FrequencyUnit"
          },
          "days": {
            "items": {
              "type": "number",
              "format": "double"
            },
            "type": "array"
          },
          "shifts": {
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "required": [
          "unit",
          "days",
          "shifts"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "ScheduleInPlanRequest": {
        "properties": {
          "operatorId": {
            "type": "number",
            "format": "double"
          },
          "machineId": {
            "type": "number",
            "format": "double"
          },
          "frequency": {
            "$ref": "#/components/schemas/Frequency"
          }
        },
        "required": [
          "operatorId",
          "machineId",
          "frequency"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "CreateOperatorPlanRequest": {
        "properties": {
          "title": {
            "type": "string"
          },
          "since": {
            "type": "string"
          },
          "until": {
            "type": "string",
            "nullable": true
          },
          "schedules": {
            "items": {
              "$ref": "#/components/schemas/ScheduleInPlanRequest"
            },
            "type": "array"
          },
          "fileId": {
            "type": "string"
          }
        },
        "required": [
          "title",
          "since",
          "until",
          "schedules",
          "fileId"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "ReplaceOperatorPlanSummaryResponse": {
        "properties": {
          "id": {
            "type": "string"
          },
          "fileId": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "since": {
            "type": "string"
          },
          "until": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "$ref": "#/components/schemas/PlanStatus"
          },
          "operatorCount": {
            "type": "number",
            "format": "double"
          },
          "machineCount": {
            "type": "number",
            "format": "double"
          },
          "replacedPlanIds": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "deletedPlanIds": {
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "required": [
          "id",
          "fileId",
          "title",
          "since",
          "until",
          "status",
          "operatorCount",
          "machineCount",
          "replacedPlanIds",
          "deletedPlanIds"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "UpdateOperatorPlanRequest": {
        "properties": {
          "until": {
            "type": "string",
            "nullable": true
          }
        },
        "required": [
          "until"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "OperatorPlansSummaryResponse": {
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/OperatorPlanSummaryResponse"
            },
            "type": "array"
          },
          "totalItems": {
            "type": "number",
            "format": "double"
          }
        },
        "required": [
          "data",
          "totalItems"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "ScheduleInPlanResponse": {
        "properties": {
          "id": {
            "type": "string"
          },
          "operatorId": {
            "type": "number",
            "format": "double"
          },
          "machineId": {
            "type": "number",
            "format": "double"
          },
          "frequency": {
            "$ref": "#/components/schemas/Frequency"
          }
        },
        "required": [
          "id",
          "operatorId",
          "machineId",
          "frequency"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "OperatorPlanDetailResponse": {
        "properties": {
          "id": {
            "type": "string"
          },
          "fileId": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "since": {
            "type": "string"
          },
          "until": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "$ref": "#/components/schemas/PlanStatus"
          },
          "operatorCount": {
            "type": "number",
            "format": "double"
          },
          "machineCount": {
            "type": "number",
            "format": "double"
          },
          "schedules": {
            "items": {
              "$ref": "#/components/schemas/ScheduleInPlanResponse"
            },
            "type": "array"
          }
        },
        "required": [
          "id",
          "fileId",
          "title",
          "since",
          "until",
          "status",
          "operatorCount",
          "machineCount",
          "schedules"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "OperatorTimelineDto": {
        "properties": {
          "updatedAt": {
            "type": "string",
            "format": "date-time"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "end": {
            "type": "string",
            "format": "date-time"
          },
          "start": {
            "type": "string",
            "format": "date-time"
          },
          "operator": {
            "properties": {
              "lastName": {
                "type": "string",
                "nullable": true
              },
              "firstName": {
                "type": "string"
              },
              "id": {
                "type": "number",
                "format": "double"
              }
            },
            "required": [
              "lastName",
              "firstName",
              "id"
            ],
            "type": "object"
          },
          "machine": {
            "properties": {
              "title": {
                "type": "string"
              },
              "id": {
                "type": "number",
                "format": "double"
              }
            },
            "required": [
              "title",
              "id"
            ],
            "type": "object"
          },
          "shift": {
            "properties": {
              "endTime": {
                "type": "string"
              },
              "startTime": {
                "type": "string"
              },
              "title": {
                "type": "string"
              },
              "id": {
                "type": "number",
                "format": "double"
              }
            },
            "required": [
              "endTime",
              "startTime",
              "title",
              "id"
            ],
            "type": "object"
          },
          "companyId": {
            "type": "number",
            "format": "double"
          },
          "id": {
            "type": "string"
          }
        },
        "required": [
          "updatedAt",
          "createdAt",
          "end",
          "start",
          "operator",
          "machine",
          "shift",
          "companyId",
          "id"
        ],
        "type": "object"
      },
      "GetOperatorTimelinesResponse": {
        "properties": {
          "totalItems": {
            "type": "number",
            "format": "double"
          },
          "data": {
            "items": {
              "$ref": "#/components/schemas/OperatorTimelineDto"
            },
            "type": "array"
          }
        },
        "required": [
          "totalItems",
          "data"
        ],
        "type": "object"
      },
      "ShiftTitle": {
        "enum": [
          "Morning",
          "Afternoon",
          "Night",
          "Day"
        ],
        "type": "string"
      },
      "ShiftFilters": {
        "properties": {
          "exclude": {
            "items": {
              "$ref": "#/components/schemas/ShiftTitle"
            },
            "type": "array"
          },
          "include": {
            "items": {
              "$ref": "#/components/schemas/ShiftTitle"
            },
            "type": "array"
          },
          "search": {
            "type": "string"
          }
        },
        "type": "object",
        "additionalProperties": false
      },
      "MachineFilters": {
        "properties": {
          "exclude": {
            "items": {
              "type": "number",
              "format": "double"
            },
            "type": "array"
          },
          "include": {
            "items": {
              "type": "number",
              "format": "double"
            },
            "type": "array"
          },
          "search": {
            "type": "string"
          }
        },
        "type": "object",
        "additionalProperties": false
      },
      "OperatorTimelineStatus": {
        "enum": [
          "all",
          "assigned",
          "unassigned"
        ],
        "type": "string"
      },
      "Partial__after-Date--before-Date--between-DateRange--equal-Date--__": {
        "properties": {
          "after": {
            "type": "string",
            "format": "date-time"
          },
          "before": {
            "type": "string",
            "format": "date-time"
          },
          "between": {
            "$ref": "#/components/schemas/DateRange"
          },
          "equal": {
            "type": "string",
            "format": "date-time"
          }
        },
        "type": "object",
        "description": "Make all properties in T optional"
      },
      "DateFilters": {
        "$ref": "#/components/schemas/Partial__after-Date--before-Date--between-DateRange--equal-Date--__"
      },
      "OperatorTimelineKeyAttribute": {
        "enum": [
          "machine_id",
          "machine_title",
          "operator_id",
          "operator_full_name",
          "shift_id",
          "shift_title",
          "start",
          "end"
        ],
        "type": "string"
      },
      "OperatorTimelineSorting": {
        "items": {
          "properties": {
            "attribute": {
              "$ref": "#/components/schemas/OperatorTimelineKeyAttribute"
            },
            "direction": {
              "$ref": "#/components/schemas/SortingDirection"
            }
          },
          "required": [
            "attribute",
            "direction"
          ],
          "type": "object"
        },
        "type": "array"
      },
      "Partial__shift-ShiftFilters--machine-MachineFilters--operator-MachineFilters--status-OperatorTimelineStatus--start-DateFilters--end-DateFilters--sorting-OperatorTimelineSorting--companyId-number--page-number--pageSize-number--__": {
        "properties": {
          "shift": {
            "$ref": "#/components/schemas/ShiftFilters"
          },
          "machine": {
            "$ref": "#/components/schemas/MachineFilters"
          },
          "operator": {
            "$ref": "#/components/schemas/MachineFilters"
          },
          "status": {
            "$ref": "#/components/schemas/OperatorTimelineStatus"
          },
          "start": {
            "$ref": "#/components/schemas/DateFilters"
          },
          "end": {
            "$ref": "#/components/schemas/DateFilters"
          },
          "sorting": {
            "$ref": "#/components/schemas/OperatorTimelineSorting"
          },
          "companyId": {
            "type": "number",
            "format": "double"
          },
          "page": {
            "type": "number",
            "format": "double"
          },
          "pageSize": {
            "type": "number",
            "format": "double"
          }
        },
        "type": "object",
        "description": "Make all properties in T optional"
      },
      "GetOperatorTimelinesRequest": {
        "$ref": "#/components/schemas/Partial__shift-ShiftFilters--machine-MachineFilters--operator-MachineFilters--status-OperatorTimelineStatus--start-DateFilters--end-DateFilters--sorting-OperatorTimelineSorting--companyId-number--page-number--pageSize-number--__"
      },
      "IOperatorTimeline": {
        "additionalProperties": false,
        "type": "object"
      },
      "Uuid": {
        "type": "string",
        "example": "52907745-7672-470e-a803-a2f8feb52944",
        "format": "uuid",
        "description": "Stringified UUID.\nSee [RFC 4112](https://tools.ietf.org/html/rfc4122)",
        "pattern": "[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{12}"
      },
      "UpdateOperatorRequest": {
        "properties": {
          "operatorId": {
            "type": "number",
            "format": "double"
          }
        },
        "required": [
          "operatorId"
        ],
        "type": "object"
      },
      "SplitOperatorTimelineRequest": {
        "properties": {
          "operatorId": {
            "type": "number",
            "format": "double"
          },
          "end": {
            "type": "string",
            "format": "date-time"
          },
          "start": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "operatorId",
          "end",
          "start"
        ],
        "type": "object"
      },
      "RawMaterialValue": {
        "properties": {
          "productionAdvancementId": {
            "type": "string"
          },
          "companyId": {
            "type": "number",
            "format": "double"
          },
          "name": {
            "type": "string"
          },
          "id": {
            "type": "string"
          }
        },
        "required": [
          "companyId",
          "name",
          "id"
        ],
        "type": "object"
      },
      "ProductionAdvancementSummary": {
        "properties": {
          "shift": {
            "properties": {
              "endTime": {
                "type": "string"
              },
              "startTime": {
                "type": "string"
              },
              "title": {
                "type": "string"
              },
              "id": {
                "type": "number",
                "format": "double"
              }
            },
            "required": [
              "endTime",
              "startTime",
              "title",
              "id"
            ],
            "type": "object"
          },
          "countEdited": {
            "type": "boolean"
          },
          "countingFactor": {
            "type": "number",
            "format": "double"
          },
          "rawMaterials": {
            "items": {
              "$ref": "#/components/schemas/RawMaterialValue"
            },
            "type": "array"
          },
          "qualityIssueId": {
            "type": "string",
            "nullable": true
          },
          "defectReason": {
            "type": "string",
            "nullable": true
          },
          "idealSpeedByHour": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "skuUnit": {
            "type": "string",
            "nullable": true
          },
          "skuName": {
            "type": "string",
            "nullable": true
          },
          "skuDescription": {
            "type": "string",
            "nullable": true
          },
          "sku": {
            "type": "string",
            "nullable": true
          },
          "skuId": {
            "type": "string",
            "nullable": true
          },
          "work": {
            "type": "string",
            "nullable": true
          },
          "workOrderStatus": {
            "type": "string",
            "nullable": true
          },
          "workOrderId": {
            "type": "string",
            "nullable": true
          },
          "operatorLastName": {
            "type": "string",
            "nullable": true
          },
          "operatorFullName": {
            "type": "string",
            "nullable": true
          },
          "operatorFirstName": {
            "type": "string",
            "nullable": true
          },
          "machineName": {
            "type": "string",
            "nullable": true
          },
          "deletedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "simpleWorkOrderId": {
            "type": "string",
            "nullable": true
          },
          "workOrderAndSkuId": {
            "type": "string"
          },
          "operatorId": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "machineId": {
            "type": "number",
            "format": "double"
          },
          "isAutomated": {
            "type": "boolean"
          },
          "isReviewed": {
            "type": "boolean"
          },
          "live": {
            "type": "boolean"
          },
          "end": {
            "type": "string",
            "format": "date-time"
          },
          "start": {
            "type": "string",
            "format": "date-time"
          },
          "nominalSpeed": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "count": {
            "type": "number",
            "format": "double"
          },
          "sensorCount": {
            "type": "number",
            "format": "double"
          },
          "type": {
            "$ref": "#/components/schemas/ProductionAdvancementType"
          },
          "id": {
            "type": "string"
          }
        },
        "required": [
          "simpleWorkOrderId",
          "workOrderAndSkuId",
          "machineId",
          "isAutomated",
          "isReviewed",
          "live",
          "end",
          "start",
          "count",
          "sensorCount",
          "type",
          "id"
        ],
        "type": "object"
      },
      "ProductionAdvancementFilters": {
        "properties": {
          "rawMaterials": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "filterProductionAdvancementsWithCountZero": {
            "type": "boolean"
          },
          "onlyCurrentShifts": {
            "type": "boolean"
          },
          "workOrderId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              }
            ]
          },
          "isReviewed": {
            "items": {
              "type": "boolean"
            },
            "type": "array"
          },
          "type": {
            "items": {
              "$ref": "#/components/schemas/ProductionAdvancementType"
            },
            "type": "array"
          },
          "shifts": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "end": {
            "type": "string",
            "format": "date-time"
          },
          "start": {
            "type": "string",
            "format": "date-time"
          },
          "operatorId": {
            "anyOf": [
              {
                "type": "number",
                "format": "double"
              },
              {
                "items": {
                  "type": "number",
                  "format": "double"
                },
                "type": "array"
              }
            ]
          },
          "simpleWorkOrderId": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "skuId": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "machineId": {
            "items": {
              "type": "number",
              "format": "double"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "Operator": {
        "properties": {
          "lastName": {
            "type": "string"
          },
          "firstName": {
            "type": "string"
          },
          "id": {
            "type": "string"
          }
        },
        "required": [
          "lastName",
          "firstName",
          "id"
        ],
        "type": "object"
      },
      "Machine": {
        "properties": {
          "ref": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "id": {
            "type": "number",
            "format": "double"
          }
        },
        "required": [
          "ref",
          "name",
          "id"
        ],
        "type": "object"
      },
      "Sku": {
        "properties": {
          "deletedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "unit": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "sku": {
            "type": "string"
          },
          "id": {
            "type": "string"
          }
        },
        "required": [
          "deletedAt",
          "updatedAt",
          "createdAt",
          "unit",
          "description",
          "name",
          "sku",
          "id"
        ],
        "type": "object"
      },
      "Shift": {
        "properties": {
          "endTime": {
            "type": "string"
          },
          "startTime": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "id": {
            "type": "number",
            "format": "double"
          }
        },
        "required": [
          "endTime",
          "startTime",
          "title",
          "id"
        ],
        "type": "object"
      },
      "SimpleWorkOrder": {
        "properties": {
          "name": {
            "type": "string"
          },
          "id": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "id"
        ],
        "type": "object"
      },
      "ProductionAdvancementRes": {
        "properties": {
          "simpleWorkOrder": {
            "$ref": "#/components/schemas/SimpleWorkOrder"
          },
          "qualityIssueId": {
            "type": "string",
            "nullable": true
          },
          "shift": {
            "$ref": "#/components/schemas/Shift"
          },
          "sku": {
            "$ref": "#/components/schemas/Sku"
          },
          "machine": {
            "$ref": "#/components/schemas/Machine"
          },
          "operator": {
            "$ref": "#/components/schemas/Operator"
          },
          "deletedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "isManuallyEdited": {
            "type": "boolean"
          },
          "isAutomated": {
            "type": "boolean"
          },
          "isReviewed": {
            "type": "boolean"
          },
          "live": {
            "type": "boolean"
          },
          "end": {
            "type": "string",
            "format": "date-time"
          },
          "start": {
            "type": "string",
            "format": "date-time"
          },
          "nominalSpeed": {
            "type": "number",
            "format": "double"
          },
          "countingFactor": {
            "type": "number",
            "format": "double"
          },
          "count": {
            "type": "number",
            "format": "double"
          },
          "sensorCount": {
            "type": "number",
            "format": "double"
          },
          "type": {
            "$ref": "#/components/schemas/ProductionAdvancementType"
          },
          "id": {
            "type": "string"
          }
        },
        "required": [
          "simpleWorkOrder",
          "qualityIssueId",
          "shift",
          "sku",
          "machine",
          "operator",
          "deletedAt",
          "updatedAt",
          "createdAt",
          "isManuallyEdited",
          "isAutomated",
          "isReviewed",
          "live",
          "end",
          "start",
          "nominalSpeed",
          "countingFactor",
          "count",
          "sensorCount",
          "type",
          "id"
        ],
        "type": "object"
      },
      "GetProductionAdvancementsRes": {
        "properties": {
          "currentPage": {
            "type": "number",
            "format": "double"
          },
          "totalPages": {
            "type": "number",
            "format": "double"
          },
          "totalItems": {
            "type": "number",
            "format": "double"
          },
          "data": {
            "items": {
              "$ref": "#/components/schemas/ProductionAdvancementRes"
            },
            "type": "array"
          }
        },
        "required": [
          "currentPage",
          "totalPages",
          "totalItems",
          "data"
        ],
        "type": "object"
      },
      "IncludeAndExcludeFilters_string_": {
        "properties": {
          "exclude": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "include": {
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "SkuFilters": {
        "allOf": [
          {
            "$ref": "#/components/schemas/IncludeAndExcludeFilters_string_"
          },
          {
            "$ref": "#/components/schemas/FuzzySearchFilter"
          }
        ]
      },
      "Partial__greaterThan-number--greaterThanOrEqual-number--lessThan-number--lessThanOrEqual-number--equal-number--notEqual-number--__": {
        "properties": {
          "greaterThan": {
            "type": "number",
            "format": "double"
          },
          "greaterThanOrEqual": {
            "type": "number",
            "format": "double"
          },
          "lessThan": {
            "type": "number",
            "format": "double"
          },
          "lessThanOrEqual": {
            "type": "number",
            "format": "double"
          },
          "equal": {
            "type": "number",
            "format": "double"
          },
          "notEqual": {
            "type": "number",
            "format": "double"
          }
        },
        "type": "object",
        "description": "Make all properties in T optional"
      },
      "ComparisonFilters": {
        "$ref": "#/components/schemas/Partial__greaterThan-number--greaterThanOrEqual-number--lessThan-number--lessThanOrEqual-number--equal-number--notEqual-number--__"
      },
      "NominalSpeedFilters": {
        "$ref": "#/components/schemas/ComparisonFilters"
      },
      "QuantityFilters": {
        "$ref": "#/components/schemas/ComparisonFilters"
      },
      "IncludeAndExcludeFilters_ProductionAdvancementType_": {
        "properties": {
          "exclude": {
            "items": {
              "$ref": "#/components/schemas/ProductionAdvancementType"
            },
            "type": "array"
          },
          "include": {
            "items": {
              "$ref": "#/components/schemas/ProductionAdvancementType"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "TypeFilters": {
        "allOf": [
          {
            "$ref": "#/components/schemas/IncludeAndExcludeFilters_ProductionAdvancementType_"
          },
          {
            "$ref": "#/components/schemas/FuzzySearchFilter"
          }
        ]
      },
      "IncludeAndExcludeFilters_boolean_": {
        "properties": {
          "exclude": {
            "items": {
              "type": "boolean"
            },
            "type": "array"
          },
          "include": {
            "items": {
              "type": "boolean"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "ReviewedFilters": {
        "$ref": "#/components/schemas/IncludeAndExcludeFilters_boolean_"
      },
      "StartDateFilters": {
        "$ref": "#/components/schemas/DateFilters"
      },
      "EndDateFilters": {
        "$ref": "#/components/schemas/DateFilters"
      },
      "Partial__machine-MachineFilters--sku-SkuFilters--nominalSpeed-NominalSpeedFilters--quantity-QuantityFilters--type-TypeFilters--reviewed-ReviewedFilters--start-StartDateFilters--end-EndDateFilters--shift-ShiftFilters--companyId-number--page-number--pageSize-number--__": {
        "properties": {
          "machine": {
            "$ref": "#/components/schemas/MachineFilters"
          },
          "sku": {
            "$ref": "#/components/schemas/SkuFilters"
          },
          "nominalSpeed": {
            "$ref": "#/components/schemas/NominalSpeedFilters"
          },
          "quantity": {
            "$ref": "#/components/schemas/QuantityFilters"
          },
          "type": {
            "$ref": "#/components/schemas/TypeFilters"
          },
          "reviewed": {
            "$ref": "#/components/schemas/ReviewedFilters"
          },
          "start": {
            "$ref": "#/components/schemas/StartDateFilters"
          },
          "end": {
            "$ref": "#/components/schemas/EndDateFilters"
          },
          "shift": {
            "$ref": "#/components/schemas/ShiftFilters"
          },
          "companyId": {
            "type": "number",
            "format": "double"
          },
          "page": {
            "type": "number",
            "format": "double"
          },
          "pageSize": {
            "type": "number",
            "format": "double"
          }
        },
        "type": "object",
        "description": "Make all properties in T optional"
      },
      "GetProductionAdvancementFilters": {
        "$ref": "#/components/schemas/Partial__machine-MachineFilters--sku-SkuFilters--nominalSpeed-NominalSpeedFilters--quantity-QuantityFilters--type-TypeFilters--reviewed-ReviewedFilters--start-StartDateFilters--end-EndDateFilters--shift-ShiftFilters--companyId-number--page-number--pageSize-number--__"
      },
      "ProductionOrderOperatorRow": {
        "properties": {
          "operator": {
            "properties": {
              "lastName": {
                "type": "string",
                "nullable": true
              },
              "firstName": {
                "type": "string"
              },
              "id": {
                "type": "number",
                "format": "double"
              }
            },
            "required": [
              "lastName",
              "firstName",
              "id"
            ],
            "type": "object",
            "nullable": true
          },
          "productionOrder": {
            "properties": {
              "name": {
                "type": "string"
              },
              "id": {
                "type": "string"
              }
            },
            "required": [
              "name",
              "id"
            ],
            "type": "object",
            "nullable": true
          },
          "sku": {
            "properties": {
              "unit": {
                "type": "string"
              },
              "sku": {
                "type": "string"
              },
              "id": {
                "type": "string"
              }
            },
            "required": [
              "unit",
              "sku",
              "id"
            ],
            "type": "object",
            "nullable": true
          },
          "machine": {
            "properties": {
              "name": {
                "type": "string"
              },
              "id": {
                "type": "number",
                "format": "double"
              }
            },
            "required": [
              "name",
              "id"
            ],
            "type": "object"
          },
          "end": {
            "type": "string",
            "format": "date-time"
          },
          "start": {
            "type": "string",
            "format": "date-time"
          },
          "count": {
            "type": "number",
            "format": "double"
          },
          "id": {
            "type": "string"
          }
        },
        "required": [
          "operator",
          "productionOrder",
          "sku",
          "machine",
          "end",
          "start",
          "count",
          "id"
        ],
        "type": "object"
      },
      "GetProductionOrderOperatorTableRes": {
        "properties": {
          "totalItems": {
            "type": "number",
            "format": "double"
          },
          "data": {
            "items": {
              "$ref": "#/components/schemas/ProductionOrderOperatorRow"
            },
            "type": "array"
          }
        },
        "required": [
          "totalItems",
          "data"
        ],
        "type": "object"
      },
      "IncludeAndExcludeFilters_number_": {
        "properties": {
          "exclude": {
            "items": {
              "type": "number",
              "format": "double"
            },
            "type": "array"
          },
          "include": {
            "items": {
              "type": "number",
              "format": "double"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "OperatorFilters": {
        "$ref": "#/components/schemas/IncludeAndExcludeFilters_number_"
      },
      "Partial__machine-MachineFilters--operator-OperatorFilters--start-DateFilters--end-DateFilters--companyId-number--page-number--pageSize-number--__": {
        "properties": {
          "machine": {
            "$ref": "#/components/schemas/MachineFilters"
          },
          "operator": {
            "$ref": "#/components/schemas/OperatorFilters"
          },
          "start": {
            "$ref": "#/components/schemas/DateFilters"
          },
          "end": {
            "$ref": "#/components/schemas/DateFilters"
          },
          "companyId": {
            "type": "number",
            "format": "double"
          },
          "page": {
            "type": "number",
            "format": "double"
          },
          "pageSize": {
            "type": "number",
            "format": "double"
          }
        },
        "type": "object",
        "description": "Make all properties in T optional"
      },
      "GetProductionOrderOperatorTableFilters": {
        "$ref": "#/components/schemas/Partial__machine-MachineFilters--operator-OperatorFilters--start-DateFilters--end-DateFilters--companyId-number--page-number--pageSize-number--__"
      },
      "IProductionAdvancement": {
        "additionalProperties": false,
        "type": "object"
      },
      "IntervalWithQuantity": {
        "properties": {
          "hasSensor": {
            "type": "boolean"
          },
          "quantity": {
            "type": "number",
            "format": "double"
          },
          "skuId": {
            "type": "string"
          },
          "end": {
            "type": "string",
            "format": "date-time"
          },
          "start": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "quantity",
          "skuId",
          "end",
          "start"
        ],
        "type": "object"
      },
      "SuggestionsIntervalWithSku": {
        "properties": {
          "type": {
            "$ref": "#/components/schemas/ProductionAdvancementType"
          },
          "skuId": {
            "type": "string"
          },
          "end": {
            "anyOf": [
              {
                "type": "number",
                "format": "double"
              },
              {
                "type": "string",
                "format": "date-time"
              }
            ]
          },
          "start": {
            "anyOf": [
              {
                "type": "number",
                "format": "double"
              },
              {
                "type": "string",
                "format": "date-time"
              }
            ]
          }
        },
        "required": [
          "end",
          "start"
        ],
        "type": "object"
      },
      "PostProductionAdvancementRawMaterialsParams": {
        "properties": {
          "companyId": {
            "type": "number",
            "format": "double"
          },
          "name": {
            "type": "string"
          },
          "id": {
            "type": "string"
          }
        },
        "required": [
          "name"
        ],
        "type": "object"
      },
      "PostProductionAdvancementParams": {
        "allOf": [
          {
            "properties": {
              "isManuallyEdited": {
                "type": "boolean"
              },
              "isAutomated": {
                "type": "boolean"
              },
              "completeWorkOrder": {
                "type": "boolean"
              },
              "rawMaterials": {
                "items": {
                  "$ref": "#/components/schemas/PostProductionAdvancementRawMaterialsParams"
                },
                "type": "array"
              },
              "simpleWorkOrderName": {
                "type": "string"
              },
              "simpleWorkOrderId": {
                "type": "string",
                "nullable": true
              },
              "workOrderIdOfRawMaterial": {
                "type": "string",
                "nullable": true
              },
              "workOrderId": {
                "type": "string"
              },
              "sku": {
                "type": "string"
              },
              "skuId": {
                "type": "string"
              },
              "qualityIssueId": {
                "type": "string",
                "nullable": true
              },
              "workOrderAndSkuId": {
                "type": "string"
              },
              "isReviewed": {
                "type": "boolean"
              },
              "live": {
                "type": "boolean"
              },
              "countingFactor": {
                "type": "number",
                "format": "double"
              },
              "nominalSpeed": {
                "type": "number",
                "format": "double"
              },
              "count": {
                "type": "number",
                "format": "double"
              },
              "sensorCount": {
                "type": "number",
                "format": "double"
              },
              "type": {
                "$ref": "#/components/schemas/ProductionAdvancementType"
              },
              "end": {
                "type": "string",
                "format": "date-time"
              },
              "start": {
                "type": "string",
                "format": "date-time"
              },
              "operatorLastName": {
                "type": "string"
              },
              "operatorFirstName": {
                "type": "string"
              },
              "operatorId": {
                "type": "number",
                "format": "double"
              },
              "machineId": {
                "type": "number",
                "format": "double"
              },
              "id": {
                "type": "string"
              }
            },
            "required": [
              "nominalSpeed",
              "count",
              "type",
              "end",
              "start",
              "machineId"
            ],
            "type": "object"
          },
          {
            "$ref": "#/components/schemas/CustomFieldsParams"
          }
        ]
      },
      "AddEntityToSplitParams": {
        "properties": {
          "start": {
            "type": "string",
            "format": "date-time"
          },
          "operatorLastName": {
            "type": "string"
          },
          "operatorFirstName": {
            "type": "string"
          },
          "operatorId": {
            "type": "number",
            "format": "double"
          },
          "rawMaterial": {
            "type": "string"
          },
          "nominalSpeed": {
            "type": "number",
            "format": "double"
          },
          "simpleWorkOrderId": {
            "type": "string"
          },
          "simpleWorkOrderName": {
            "type": "string"
          },
          "workOrderId": {
            "type": "string"
          },
          "sku": {
            "type": "string"
          },
          "skuId": {
            "type": "string"
          }
        },
        "required": [
          "start"
        ],
        "type": "object"
      },
      "AddOperatorToSplitProductionBasicParams": {
        "properties": {
          "start": {
            "type": "string",
            "format": "date-time"
          },
          "simpleWorkOrderId": {
            "type": "string"
          },
          "operatorId": {
            "type": "number",
            "format": "double"
          }
        },
        "required": [
          "operatorId"
        ],
        "type": "object"
      },
      "AddDefectsToSplitProductionBasicParams": {
        "allOf": [
          {
            "properties": {
              "quantity": {
                "type": "number",
                "format": "double"
              },
              "qualityIssueId": {
                "type": "string",
                "nullable": true
              },
              "simpleWorkOrderName": {
                "type": "string"
              },
              "simpleWorkOrderId": {
                "type": "string"
              },
              "sku": {
                "type": "string"
              },
              "skuId": {
                "type": "string"
              }
            },
            "required": [
              "quantity"
            ],
            "type": "object"
          },
          {
            "$ref": "#/components/schemas/CustomFieldsParams"
          }
        ]
      },
      "BulkCreateProductionAdvancementParams": {
        "allOf": [
          {
            "properties": {
              "operatorId": {
                "type": "number",
                "format": "double"
              },
              "workOrderAndSkuId": {
                "type": "string"
              },
              "simpleWorkOrderId": {
                "type": "string",
                "nullable": true
              },
              "machineId": {
                "type": "number",
                "format": "double"
              },
              "qualityIssueId": {
                "type": "string"
              },
              "quality": {
                "type": "string"
              },
              "countingFactor": {
                "type": "number",
                "format": "double"
              },
              "count": {
                "type": "number",
                "format": "double"
              },
              "type": {
                "$ref": "#/components/schemas/ProductionAdvancementType"
              },
              "nominalSpeed": {
                "type": "number",
                "format": "double"
              },
              "end": {
                "type": "string",
                "format": "date-time"
              },
              "start": {
                "type": "string",
                "format": "date-time"
              },
              "operator": {
                "type": "string"
              },
              "machine": {
                "type": "string"
              },
              "sku": {
                "type": "string"
              },
              "workOrder": {
                "type": "string"
              },
              "id": {
                "type": "string"
              }
            },
            "required": [
              "count",
              "type",
              "nominalSpeed",
              "end",
              "start",
              "operator",
              "machine",
              "sku",
              "workOrder"
            ],
            "type": "object"
          },
          {
            "$ref": "#/components/schemas/CustomFieldsParams"
          }
        ]
      },
      "BulkCreateBasicProductionAdvancementParams": {
        "allOf": [
          {
            "properties": {
              "workOrderAndSkuId": {
                "type": "string"
              },
              "simpleWorkOrderId": {
                "type": "string",
                "nullable": true
              },
              "operatorId": {
                "type": "number",
                "format": "double"
              },
              "machineId": {
                "type": "number",
                "format": "double"
              },
              "countingFactor": {
                "type": "number",
                "format": "double"
              },
              "count": {
                "type": "number",
                "format": "double"
              },
              "type": {
                "$ref": "#/components/schemas/ProductionAdvancementType"
              },
              "nominalSpeed": {
                "type": "number",
                "format": "double"
              },
              "end": {
                "type": "string",
                "format": "date-time"
              },
              "start": {
                "type": "string",
                "format": "date-time"
              },
              "operator": {
                "type": "string"
              },
              "machine": {
                "type": "string"
              },
              "workOrder": {
                "type": "string"
              },
              "sku": {
                "type": "string"
              },
              "id": {
                "type": "string"
              }
            },
            "required": [
              "count",
              "type",
              "nominalSpeed",
              "end",
              "start",
              "machine",
              "sku"
            ],
            "type": "object"
          },
          {
            "$ref": "#/components/schemas/CustomFieldsParams"
          }
        ]
      },
      "Partial_PutProductionAdvancementParams_": {
        "properties": {
          "type": {
            "$ref": "#/components/schemas/ProductionAdvancementType"
          },
          "custom": {
            "properties": {},
            "additionalProperties": {},
            "type": "object"
          },
          "id": {
            "type": "string"
          },
          "machineId": {
            "type": "number",
            "format": "double"
          },
          "start": {
            "type": "string",
            "format": "date-time"
          },
          "end": {
            "type": "string",
            "format": "date-time"
          },
          "sku": {
            "type": "string"
          },
          "nominalSpeed": {
            "type": "number",
            "format": "double"
          },
          "operatorId": {
            "type": "number",
            "format": "double"
          },
          "operatorFirstName": {
            "type": "string"
          },
          "operatorLastName": {
            "type": "string"
          },
          "sensorCount": {
            "type": "number",
            "format": "double"
          },
          "count": {
            "type": "number",
            "format": "double"
          },
          "live": {
            "type": "boolean"
          },
          "isReviewed": {
            "type": "boolean"
          },
          "workOrderAndSkuId": {
            "type": "string"
          },
          "qualityIssueId": {
            "type": "string",
            "nullable": true
          },
          "skuId": {
            "type": "string"
          },
          "workOrderId": {
            "type": "string"
          },
          "workOrderIdOfRawMaterial": {
            "type": "string",
            "nullable": true
          },
          "simpleWorkOrderId": {
            "type": "string",
            "nullable": true
          },
          "simpleWorkOrderName": {
            "type": "string"
          },
          "rawMaterials": {
            "items": {
              "$ref": "#/components/schemas/PostProductionAdvancementRawMaterialsParams"
            },
            "type": "array"
          },
          "completeWorkOrder": {
            "type": "boolean"
          },
          "isAutomated": {
            "type": "boolean"
          },
          "isManuallyEdited": {
            "type": "boolean"
          }
        },
        "type": "object",
        "description": "Make all properties in T optional"
      },
      "Partial_Omit_ProductionAdvancement.countingFactor__": {
        "properties": {
          "type": {
            "$ref": "#/components/schemas/ProductionAdvancementType"
          },
          "custom": {
            "properties": {},
            "additionalProperties": {},
            "type": "object"
          },
          "id": {
            "type": "string"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time"
          },
          "machineId": {
            "type": "number",
            "format": "double"
          },
          "start": {
            "type": "string",
            "format": "date-time"
          },
          "end": {
            "type": "string",
            "format": "date-time"
          },
          "nominalSpeed": {
            "type": "number",
            "format": "double"
          },
          "operatorId": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "sensorCount": {
            "type": "number",
            "format": "double"
          },
          "count": {
            "type": "number",
            "format": "double"
          },
          "live": {
            "type": "boolean"
          },
          "isReviewed": {
            "type": "boolean"
          },
          "workOrderAndSkuId": {
            "type": "string"
          },
          "simpleWorkOrderId": {
            "type": "string",
            "nullable": true
          },
          "isAutomated": {
            "type": "boolean"
          },
          "isManuallyEdited": {
            "type": "boolean"
          },
          "deletedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        },
        "type": "object",
        "description": "Make all properties in T optional"
      },
      "PatchProductionAdvancementParams": {
        "$ref": "#/components/schemas/Partial_Omit_ProductionAdvancement.countingFactor__"
      },
      "ProductionAdvancementPatchParams": {
        "items": {
          "properties": {},
          "additionalProperties": {
            "$ref": "#/components/schemas/PatchProductionAdvancementParams"
          },
          "type": "object"
        },
        "type": "array"
      },
      "DeleteProductionAdvancementFilters": {
        "properties": {
          "id": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "isReviewed": {
            "items": {
              "type": "boolean"
            },
            "type": "array"
          },
          "type": {
            "items": {
              "$ref": "#/components/schemas/ProductionAdvancementType"
            },
            "type": "array"
          },
          "end": {
            "type": "string",
            "format": "date-time"
          },
          "start": {
            "type": "string",
            "format": "date-time"
          },
          "operatorId": {
            "type": "number",
            "format": "double"
          },
          "simpleWorkOrderId": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "skuId": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "machineId": {
            "items": {
              "type": "number",
              "format": "double"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "Pick_QualityIssueGroupValue.Exclude_keyofQualityIssueGroupValue.companyId__": {
        "properties": {
          "description": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time"
          },
          "deletedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "title": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "createdAt",
          "updatedAt",
          "deletedAt",
          "title"
        ],
        "type": "object",
        "description": "From T, pick a set of properties whose keys are in the union K"
      },
      "Omit_QualityIssueGroupValue.companyId_": {
        "$ref": "#/components/schemas/Pick_QualityIssueGroupValue.Exclude_keyofQualityIssueGroupValue.companyId__",
        "description": "Construct a type with the properties of T except for those in type K."
      },
      "QualityIssueGroupResponse": {
        "$ref": "#/components/schemas/Omit_QualityIssueGroupValue.companyId_"
      },
      "PostQualityIssueGroupParams": {
        "properties": {
          "description": {
            "type": "string"
          },
          "title": {
            "type": "string"
          }
        },
        "required": [
          "title"
        ],
        "type": "object"
      },
      "Partial_PostQualityIssueGroupParams_": {
        "properties": {
          "title": {
            "type": "string"
          },
          "description": {
            "type": "string"
          }
        },
        "type": "object",
        "description": "Make all properties in T optional"
      },
      "MoveQualityIssueToGroupBody": {
        "properties": {
          "qualityIssueGroupId": {
            "type": "string"
          }
        },
        "required": [
          "qualityIssueGroupId"
        ],
        "type": "object"
      },
      "NominalSpeedDto": {
        "properties": {
          "id": {
            "type": "string"
          },
          "machine": {
            "properties": {
              "name": {
                "type": "string"
              },
              "id": {
                "type": "number",
                "format": "double"
              }
            },
            "required": [
              "name",
              "id"
            ],
            "type": "object"
          },
          "sku": {
            "properties": {
              "unit": {
                "type": "string"
              },
              "description": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "id": {
                "type": "string"
              }
            },
            "required": [
              "unit",
              "description",
              "name",
              "id"
            ],
            "type": "object"
          },
          "nominalSpeed": {
            "type": "number",
            "format": "double"
          },
          "countingFactor": {
            "type": "number",
            "format": "double"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time"
          },
          "deletedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        },
        "required": [
          "id",
          "machine",
          "sku",
          "nominalSpeed",
          "countingFactor",
          "createdAt",
          "updatedAt",
          "deletedAt"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "GetNominalSpeedsByFiltersResponse": {
        "properties": {
          "totalCount": {
            "type": "number",
            "format": "double"
          },
          "totalPages": {
            "type": "number",
            "format": "double"
          },
          "currentPage": {
            "type": "number",
            "format": "double"
          },
          "nominalSpeeds": {
            "items": {
              "$ref": "#/components/schemas/NominalSpeedDto"
            },
            "type": "array"
          }
        },
        "required": [
          "totalCount",
          "totalPages",
          "currentPage",
          "nominalSpeeds"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "GetNominalSpeedsByFiltersRequest": {
        "properties": {
          "page": {
            "type": "number",
            "format": "double"
          },
          "limit": {
            "type": "number",
            "format": "double"
          },
          "machines": {
            "$ref": "#/components/schemas/MachineFilters"
          },
          "skus": {
            "$ref": "#/components/schemas/SkuFilters"
          },
          "nominalSpeed": {
            "$ref": "#/components/schemas/ComparisonFilters"
          }
        },
        "type": "object",
        "additionalProperties": false
      },
      "MachineIdOrName": {
        "properties": {
          "id": {
            "type": "number",
            "format": "double"
          },
          "name": {
            "type": "string"
          }
        },
        "type": "object",
        "additionalProperties": false
      },
      "SkuIdOrName": {
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          }
        },
        "type": "object",
        "additionalProperties": false
      },
      "Partial_CreateNominalSpeedDto_": {
        "properties": {
          "nominalSpeed": {
            "type": "number",
            "format": "double"
          },
          "countingFactor": {
            "type": "number",
            "format": "double"
          },
          "machine": {
            "$ref": "#/components/schemas/MachineIdOrName"
          },
          "sku": {
            "$ref": "#/components/schemas/SkuIdOrName"
          }
        },
        "type": "object",
        "description": "Make all properties in T optional"
      },
      "CreateNominalSpeedDto": {
        "properties": {
          "nominalSpeed": {
            "type": "number",
            "format": "double"
          },
          "countingFactor": {
            "type": "number",
            "format": "double"
          },
          "machine": {
            "$ref": "#/components/schemas/MachineIdOrName"
          },
          "sku": {
            "$ref": "#/components/schemas/SkuIdOrName"
          }
        },
        "required": [
          "nominalSpeed",
          "countingFactor",
          "machine",
          "sku"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "OperatorDto": {
        "properties": {
          "id": {
            "type": "number",
            "format": "double"
          },
          "company": {
            "properties": {
              "name": {
                "type": "string"
              },
              "id": {
                "type": "number",
                "format": "double"
              }
            },
            "required": [
              "name",
              "id"
            ],
            "type": "object"
          },
          "firstName": {
            "type": "string"
          },
          "lastName": {
            "type": "string",
            "nullable": true
          }
        },
        "required": [
          "id",
          "company",
          "firstName",
          "lastName"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "GetOperatorsByFiltersResponse": {
        "properties": {
          "totalCount": {
            "type": "number",
            "format": "double"
          },
          "totalPages": {
            "type": "number",
            "format": "double"
          },
          "currentPage": {
            "type": "number",
            "format": "double"
          },
          "operators": {
            "items": {
              "$ref": "#/components/schemas/OperatorDto"
            },
            "type": "array"
          }
        },
        "required": [
          "totalCount",
          "totalPages",
          "currentPage",
          "operators"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "GetOperatorsByFiltersRequest": {
        "properties": {
          "page": {
            "type": "number",
            "format": "double"
          },
          "limit": {
            "type": "number",
            "format": "double"
          },
          "firstName": {
            "$ref": "#/components/schemas/FuzzySearchFilter"
          },
          "lastName": {
            "$ref": "#/components/schemas/FuzzySearchFilter"
          }
        },
        "type": "object",
        "additionalProperties": false
      },
      "Partial_CreateOperatorDto_": {
        "properties": {
          "firstName": {
            "type": "string"
          },
          "lastName": {
            "type": "string"
          }
        },
        "type": "object",
        "description": "Make all properties in T optional"
      },
      "CreateOperatorDto": {
        "properties": {
          "firstName": {
            "type": "string"
          },
          "lastName": {
            "type": "string"
          }
        },
        "required": [
          "firstName"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "MachineDto": {
        "properties": {
          "id": {
            "type": "number",
            "format": "double"
          },
          "name": {
            "type": "string"
          },
          "externalName": {
            "type": "string",
            "nullable": true
          },
          "isActive": {
            "type": "boolean"
          },
          "isCountEnabled": {
            "type": "boolean"
          }
        },
        "required": [
          "id",
          "name",
          "externalName",
          "isActive",
          "isCountEnabled"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "GetSkusByFiltersResponse": {
        "properties": {
          "totalCount": {
            "type": "number",
            "format": "double"
          },
          "totalPages": {
            "type": "number",
            "format": "double"
          },
          "currentPage": {
            "type": "number",
            "format": "double"
          },
          "skus": {
            "items": {
              "$ref": "#/components/schemas/SkuDto"
            },
            "type": "array"
          }
        },
        "required": [
          "totalCount",
          "totalPages",
          "currentPage",
          "skus"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "GetSkusByFiltersRequest": {
        "properties": {
          "page": {
            "type": "number",
            "format": "double"
          },
          "limit": {
            "type": "number",
            "format": "double"
          },
          "skus": {
            "$ref": "#/components/schemas/SkuFilters"
          },
          "names": {
            "$ref": "#/components/schemas/FuzzySearchFilter"
          },
          "description": {
            "$ref": "#/components/schemas/FuzzySearchFilter"
          },
          "unit": {
            "$ref": "#/components/schemas/FuzzySearchFilter"
          }
        },
        "type": "object",
        "additionalProperties": false
      },
      "Partial_CreateSkuDto_": {
        "properties": {
          "sku": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "unit": {
            "type": "string"
          },
          "archived": {
            "type": "boolean"
          }
        },
        "type": "object",
        "description": "Make all properties in T optional"
      },
      "WorkOrderStatus": {
        "enum": [
          "Backlog",
          "Scheduled",
          "InProgress",
          "Cancelled",
          "Completed",
          "Reviewed"
        ],
        "type": "string"
      },
      "ProductionAdvancementDto": {
        "properties": {
          "id": {
            "type": "string"
          },
          "type": {
            "$ref": "#/components/schemas/ProductionAdvancementType"
          },
          "sensorCount": {
            "type": "number",
            "format": "double"
          },
          "count": {
            "type": "number",
            "format": "double"
          },
          "nominalSpeed": {
            "type": "number",
            "format": "double"
          },
          "countingFactor": {
            "type": "number",
            "format": "double"
          },
          "start": {
            "type": "string",
            "format": "date-time"
          },
          "end": {
            "type": "string",
            "format": "date-time"
          },
          "isReviewed": {
            "type": "boolean"
          },
          "isAutomated": {
            "type": "boolean"
          },
          "machineId": {
            "type": "number",
            "format": "double"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time"
          },
          "deletedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "live": {
            "type": "boolean"
          },
          "machine": {
            "properties": {
              "isCountEnabled": {
                "type": "boolean"
              },
              "externalName": {
                "type": "string",
                "nullable": true
              },
              "name": {
                "type": "string"
              },
              "id": {
                "type": "number",
                "format": "double"
              }
            },
            "required": [
              "isCountEnabled",
              "externalName",
              "name",
              "id"
            ],
            "type": "object"
          },
          "shift": {
            "properties": {
              "isConsidered": {
                "type": "boolean"
              },
              "end": {
                "type": "string",
                "format": "date-time"
              },
              "start": {
                "type": "string",
                "format": "date-time"
              },
              "name": {
                "type": "string"
              },
              "id": {
                "type": "number",
                "format": "double"
              }
            },
            "required": [
              "isConsidered",
              "end",
              "start",
              "name",
              "id"
            ],
            "type": "object"
          },
          "company": {
            "properties": {
              "timezone": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "id": {
                "type": "number",
                "format": "double"
              }
            },
            "required": [
              "timezone",
              "name",
              "id"
            ],
            "type": "object"
          },
          "operator": {
            "properties": {
              "email": {
                "type": "string",
                "nullable": true
              },
              "lastName": {
                "type": "string",
                "nullable": true
              },
              "firstName": {
                "type": "string",
                "nullable": true
              },
              "id": {
                "type": "number",
                "format": "double"
              }
            },
            "required": [
              "email",
              "lastName",
              "firstName",
              "id"
            ],
            "type": "object"
          },
          "sku": {
            "properties": {
              "unit": {
                "type": "string"
              },
              "description": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "id": {
                "type": "string"
              }
            },
            "required": [
              "unit",
              "description",
              "name",
              "id"
            ],
            "type": "object"
          },
          "workOrder": {
            "properties": {
              "status": {
                "$ref": "#/components/schemas/WorkOrderStatus"
              },
              "description": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "id": {
                "type": "string"
              }
            },
            "required": [
              "status",
              "description",
              "name",
              "id"
            ],
            "type": "object"
          },
          "simpleWorkOrder": {
            "properties": {
              "name": {
                "type": "string"
              },
              "id": {
                "type": "string"
              }
            },
            "required": [
              "name",
              "id"
            ],
            "type": "object"
          }
        },
        "required": [
          "id",
          "type",
          "sensorCount",
          "count",
          "nominalSpeed",
          "countingFactor",
          "start",
          "end",
          "isReviewed",
          "isAutomated",
          "machineId",
          "createdAt",
          "updatedAt",
          "deletedAt",
          "live",
          "machine",
          "shift",
          "company",
          "operator",
          "sku",
          "workOrder",
          "simpleWorkOrder"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "GetProductionAdvancementsByFiltersResponse": {
        "properties": {
          "totalCount": {
            "type": "number",
            "format": "double"
          },
          "totalPages": {
            "type": "number",
            "format": "double"
          },
          "currentPage": {
            "type": "number",
            "format": "double"
          },
          "productionLogs": {
            "items": {
              "$ref": "#/components/schemas/ProductionAdvancementDto"
            },
            "type": "array"
          }
        },
        "required": [
          "totalCount",
          "totalPages",
          "currentPage",
          "productionLogs"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "GetProductionAdvancementsByFiltersRequest": {
        "properties": {
          "page": {
            "type": "number",
            "format": "double"
          },
          "limit": {
            "type": "number",
            "format": "double"
          },
          "machines": {
            "$ref": "#/components/schemas/MachineFilters"
          },
          "skus": {
            "$ref": "#/components/schemas/SkuFilters"
          },
          "nominalSpeed": {
            "$ref": "#/components/schemas/ComparisonFilters"
          },
          "quantity": {
            "$ref": "#/components/schemas/ComparisonFilters"
          },
          "type": {
            "$ref": "#/components/schemas/IncludeAndExcludeFilters_ProductionAdvancementType_"
          },
          "reviewed": {
            "type": "boolean"
          },
          "startDate": {
            "$ref": "#/components/schemas/DateFilters"
          },
          "endDate": {
            "$ref": "#/components/schemas/DateFilters"
          }
        },
        "type": "object",
        "additionalProperties": false
      },
      "Partial_CreateProductionAdvancementDto_": {
        "properties": {
          "type": {
            "$ref": "#/components/schemas/ProductionAdvancementType"
          },
          "count": {
            "type": "number",
            "format": "double"
          },
          "nominalSpeed": {
            "type": "number",
            "format": "double"
          },
          "start": {
            "type": "string",
            "format": "date-time"
          },
          "end": {
            "type": "string",
            "format": "date-time"
          },
          "machine": {
            "$ref": "#/components/schemas/MachineIdOrName"
          },
          "sku": {
            "$ref": "#/components/schemas/SkuIdOrName"
          },
          "operator": {
            "properties": {
              "lastName": {
                "type": "string"
              },
              "firstName": {
                "type": "string"
              }
            },
            "required": [
              "lastName",
              "firstName"
            ],
            "type": "object"
          },
          "workOrder": {
            "type": "string"
          }
        },
        "type": "object",
        "description": "Make all properties in T optional"
      },
      "CreateProductionAdvancementDto": {
        "properties": {
          "type": {
            "$ref": "#/components/schemas/ProductionAdvancementType"
          },
          "count": {
            "type": "number",
            "format": "double"
          },
          "nominalSpeed": {
            "type": "number",
            "format": "double"
          },
          "start": {
            "type": "string",
            "format": "date-time"
          },
          "end": {
            "type": "string",
            "format": "date-time"
          },
          "machine": {
            "$ref": "#/components/schemas/MachineIdOrName"
          },
          "sku": {
            "$ref": "#/components/schemas/SkuIdOrName"
          },
          "operator": {
            "properties": {
              "lastName": {
                "type": "string"
              },
              "firstName": {
                "type": "string"
              }
            },
            "required": [
              "lastName",
              "firstName"
            ],
            "type": "object"
          },
          "workOrder": {
            "type": "string"
          }
        },
        "required": [
          "type",
          "count",
          "nominalSpeed",
          "start",
          "end",
          "machine",
          "sku"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "ReturnType_typeofserializeShift_": {
        "properties": {
          "title": {
            "type": "string"
          },
          "end_time": {
            "type": "string",
            "format": "date-time"
          },
          "start_time": {
            "type": "string",
            "format": "date-time"
          },
          "shiftScheduleId": {
            "type": "number",
            "format": "double"
          },
          "machineId": {
            "type": "number",
            "format": "double"
          },
          "companyId": {
            "type": "number",
            "format": "double"
          },
          "id": {
            "type": "number",
            "format": "double"
          }
        },
        "required": [
          "title",
          "end_time",
          "start_time",
          "shiftScheduleId",
          "machineId",
          "companyId",
          "id"
        ],
        "type": "object",
        "description": "Obtain the return type of a function type"
      },
      "StopDto": {
        "properties": {
          "classification": {
            "properties": {
              "description": {
                "type": "string",
                "nullable": true
              },
              "generalCause": {
                "properties": {
                  "name": {
                    "type": "string",
                    "nullable": true
                  },
                  "id": {
                    "type": "string",
                    "nullable": true
                  }
                },
                "required": [
                  "name",
                  "id"
                ],
                "type": "object"
              },
              "specificCause": {
                "properties": {
                  "name": {
                    "type": "string",
                    "nullable": true
                  },
                  "id": {
                    "type": "string",
                    "nullable": true
                  }
                },
                "required": [
                  "name",
                  "id"
                ],
                "type": "object"
              },
              "component": {
                "properties": {
                  "name": {
                    "type": "string",
                    "nullable": true
                  },
                  "id": {
                    "type": "string",
                    "nullable": true
                  }
                },
                "required": [
                  "name",
                  "id"
                ],
                "type": "object"
              },
              "updatedAt": {
                "type": "string",
                "format": "date-time"
              },
              "createdAt": {
                "type": "string",
                "format": "date-time"
              },
              "id": {
                "type": "number",
                "format": "double"
              }
            },
            "required": [
              "description",
              "generalCause",
              "specificCause",
              "component",
              "updatedAt",
              "createdAt",
              "id"
            ],
            "type": "object"
          },
          "company": {
            "properties": {
              "name": {
                "type": "string"
              },
              "id": {
                "type": "number",
                "format": "double"
              }
            },
            "required": [
              "name",
              "id"
            ],
            "type": "object"
          },
          "machine": {
            "properties": {
              "name": {
                "type": "string"
              },
              "id": {
                "type": "number",
                "format": "double"
              }
            },
            "required": [
              "name",
              "id"
            ],
            "type": "object"
          },
          "shift": {
            "properties": {
              "isActive": {
                "type": "boolean"
              },
              "endTime": {
                "type": "string",
                "format": "date-time"
              },
              "startTime": {
                "type": "string",
                "format": "date-time"
              },
              "name": {
                "type": "string"
              },
              "id": {
                "type": "number",
                "format": "double"
              }
            },
            "required": [
              "isActive",
              "endTime",
              "startTime",
              "name",
              "id"
            ],
            "type": "object"
          },
          "stop": {
            "properties": {
              "durationInMinutes": {
                "type": "number",
                "format": "double"
              },
              "deletedAt": {
                "type": "string",
                "format": "date-time",
                "nullable": true
              },
              "updatedAt": {
                "type": "string",
                "format": "date-time"
              },
              "createdAt": {
                "type": "string",
                "format": "date-time"
              },
              "isManual": {
                "type": "boolean"
              },
              "isIncludedInStops": {
                "type": "boolean"
              },
              "isIncludedInAvailability": {
                "type": "boolean"
              },
              "isProgrammed": {
                "type": "boolean"
              },
              "endTime": {
                "type": "string",
                "format": "date-time"
              },
              "startTime": {
                "type": "string",
                "format": "date-time"
              },
              "name": {
                "type": "string"
              },
              "id": {
                "type": "number",
                "format": "double"
              }
            },
            "required": [
              "durationInMinutes",
              "deletedAt",
              "updatedAt",
              "createdAt",
              "isManual",
              "isIncludedInStops",
              "isIncludedInAvailability",
              "isProgrammed",
              "endTime",
              "startTime",
              "name",
              "id"
            ],
            "type": "object"
          }
        },
        "required": [
          "classification",
          "company",
          "machine",
          "shift",
          "stop"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "GetStopReportByFiltersResponse": {
        "properties": {
          "totalCount": {
            "type": "number",
            "format": "double"
          },
          "totalPages": {
            "type": "number",
            "format": "double"
          },
          "currentPage": {
            "type": "number",
            "format": "double"
          },
          "stops": {
            "items": {
              "$ref": "#/components/schemas/StopDto"
            },
            "type": "array"
          }
        },
        "required": [
          "totalCount",
          "totalPages",
          "currentPage",
          "stops"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "ComparisonFiltersWithIncludeAndExclude": {
        "properties": {
          "greaterThan": {
            "type": "number",
            "format": "double"
          },
          "greaterThanOrEqual": {
            "type": "number",
            "format": "double"
          },
          "lessThan": {
            "type": "number",
            "format": "double"
          },
          "lessThanOrEqual": {
            "type": "number",
            "format": "double"
          },
          "equal": {
            "type": "number",
            "format": "double"
          },
          "notEqual": {
            "type": "number",
            "format": "double"
          },
          "include": {
            "items": {
              "type": "number",
              "format": "double"
            },
            "type": "array"
          },
          "exclude": {
            "items": {
              "type": "number",
              "format": "double"
            },
            "type": "array"
          }
        },
        "type": "object",
        "additionalProperties": false
      },
      "GetStopReportByFiltersRequest": {
        "properties": {
          "page": {
            "type": "number",
            "format": "double"
          },
          "limit": {
            "type": "number",
            "format": "double"
          },
          "machines": {
            "$ref": "#/components/schemas/MachineFilters"
          },
          "stopId": {
            "$ref": "#/components/schemas/ComparisonFiltersWithIncludeAndExclude"
          },
          "startDate": {
            "$ref": "#/components/schemas/DateFilters"
          },
          "endDate": {
            "$ref": "#/components/schemas/DateFilters"
          }
        },
        "type": "object",
        "additionalProperties": false
      },
      "MetricDto": {
        "properties": {
          "company": {
            "properties": {
              "name": {
                "type": "string"
              },
              "id": {
                "type": "number",
                "format": "double"
              }
            },
            "required": [
              "name",
              "id"
            ],
            "type": "object"
          },
          "machine": {
            "properties": {
              "nodeId": {
                "type": "number",
                "format": "double"
              },
              "name": {
                "type": "string"
              },
              "id": {
                "type": "number",
                "format": "double"
              }
            },
            "required": [
              "nodeId",
              "name",
              "id"
            ],
            "type": "object"
          },
          "shift": {
            "properties": {
              "isActive": {
                "type": "boolean"
              },
              "endTime": {
                "type": "string",
                "format": "date-time"
              },
              "startTime": {
                "type": "string",
                "format": "date-time"
              },
              "name": {
                "type": "string"
              },
              "id": {
                "type": "number",
                "format": "double"
              }
            },
            "required": [
              "isActive",
              "endTime",
              "startTime",
              "name",
              "id"
            ],
            "type": "object"
          },
          "shiftIndicators": {
            "properties": {
              "unavailableTime": {
                "type": "number",
                "format": "double"
              },
              "otherStopsTime": {
                "type": "number",
                "format": "double"
              },
              "programmedDowntime": {
                "type": "number",
                "format": "double"
              },
              "nonProgrammedDowntime": {
                "type": "number",
                "format": "double"
              },
              "noDataTime": {
                "type": "number",
                "format": "double"
              },
              "netAvailability": {
                "type": "number",
                "format": "double"
              },
              "lateStartTime": {
                "type": "number",
                "format": "double"
              },
              "earlyStopTime": {
                "type": "number",
                "format": "double"
              },
              "availableTime": {
                "type": "number",
                "format": "double"
              },
              "availability": {
                "type": "number",
                "format": "double"
              },
              "annotatedDowntime": {
                "type": "number",
                "format": "double"
              },
              "indicatorId": {
                "type": "number",
                "format": "double"
              }
            },
            "required": [
              "unavailableTime",
              "otherStopsTime",
              "programmedDowntime",
              "nonProgrammedDowntime",
              "noDataTime",
              "netAvailability",
              "lateStartTime",
              "earlyStopTime",
              "availableTime",
              "availability",
              "annotatedDowntime",
              "indicatorId"
            ],
            "type": "object"
          },
          "productionMetrics": {
            "properties": {
              "averageCycleSpeed": {
                "type": "number",
                "format": "double",
                "nullable": true
              },
              "cycleSpeed": {
                "type": "number",
                "format": "double",
                "nullable": true
              },
              "cycleCount": {
                "type": "number",
                "format": "double",
                "nullable": true
              },
              "actualSpeed": {
                "type": "number",
                "format": "double",
                "nullable": true
              },
              "averageSpeed": {
                "type": "number",
                "format": "double",
                "nullable": true
              },
              "defects": {
                "type": "number",
                "format": "double",
                "nullable": true
              },
              "correct": {
                "type": "number",
                "format": "double",
                "nullable": true
              },
              "total": {
                "type": "number",
                "format": "double",
                "nullable": true
              },
              "minutesLostByLowSpeed": {
                "type": "number",
                "format": "double",
                "nullable": true
              },
              "minutesLostByLowQuality": {
                "type": "number",
                "format": "double",
                "nullable": true
              },
              "effectiveness": {
                "type": "number",
                "format": "double",
                "nullable": true
              },
              "quality": {
                "type": "number",
                "format": "double",
                "nullable": true
              },
              "netOee": {
                "type": "number",
                "format": "double",
                "nullable": true
              },
              "oee": {
                "type": "number",
                "format": "double",
                "nullable": true
              },
              "netAvailability": {
                "type": "number",
                "format": "double",
                "nullable": true
              },
              "availability": {
                "type": "number",
                "format": "double",
                "nullable": true
              }
            },
            "required": [
              "averageCycleSpeed",
              "cycleSpeed",
              "cycleCount",
              "actualSpeed",
              "averageSpeed",
              "defects",
              "correct",
              "total",
              "minutesLostByLowSpeed",
              "minutesLostByLowQuality",
              "effectiveness",
              "quality",
              "netOee",
              "oee",
              "netAvailability",
              "availability"
            ],
            "type": "object"
          }
        },
        "required": [
          "company",
          "machine",
          "shift",
          "shiftIndicators",
          "productionMetrics"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "GetMetricReportByFiltersResponse": {
        "properties": {
          "totalCount": {
            "type": "number",
            "format": "double"
          },
          "totalPages": {
            "type": "number",
            "format": "double"
          },
          "currentPage": {
            "type": "number",
            "format": "double"
          },
          "metrics": {
            "items": {
              "$ref": "#/components/schemas/MetricDto"
            },
            "type": "array"
          }
        },
        "required": [
          "totalCount",
          "totalPages",
          "currentPage",
          "metrics"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "GetMetricReportByFiltersRequest": {
        "properties": {
          "page": {
            "type": "number",
            "format": "double"
          },
          "limit": {
            "type": "number",
            "format": "double"
          },
          "machines": {
            "$ref": "#/components/schemas/MachineFilters"
          },
          "startDate": {
            "$ref": "#/components/schemas/DateFilters"
          },
          "endDate": {
            "$ref": "#/components/schemas/DateFilters"
          }
        },
        "type": "object",
        "additionalProperties": false
      },
      "CreateRawMaterialParams": {
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          }
        },
        "required": [
          "name"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "ToolItem": {
        "properties": {
          "amount": {
            "type": "number",
            "format": "double"
          },
          "name": {
            "type": "string"
          }
        },
        "required": [
          "amount",
          "name"
        ],
        "type": "object"
      },
      "ToolRequestValue": {
        "properties": {
          "updatedAt": {
            "type": "string",
            "format": "date-time"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "fulfilled": {
            "type": "boolean"
          },
          "tools": {
            "items": {
              "$ref": "#/components/schemas/ToolItem"
            },
            "type": "array"
          },
          "packageNumber": {
            "type": "string"
          },
          "workNumber": {
            "type": "string"
          },
          "employeeNumber": {
            "type": "string"
          },
          "operatorId": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "machineId": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "shiftId": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "id": {
            "type": "string"
          }
        },
        "required": [
          "fulfilled",
          "tools",
          "packageNumber",
          "workNumber",
          "employeeNumber",
          "id"
        ],
        "type": "object"
      },
      "CreateToolRequestParams": {
        "properties": {
          "others": {
            "items": {
              "$ref": "#/components/schemas/ToolItem"
            },
            "type": "array"
          },
          "tools": {
            "items": {
              "$ref": "#/components/schemas/ToolItem"
            },
            "type": "array"
          },
          "packageNumber": {
            "type": "string"
          },
          "workNumber": {
            "type": "string"
          },
          "employeeNumber": {
            "type": "string"
          },
          "operatorId": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "machineId": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "shiftId": {
            "type": "number",
            "format": "double",
            "nullable": true
          }
        },
        "required": [
          "packageNumber",
          "workNumber",
          "employeeNumber"
        ],
        "type": "object"
      },
      "Paginated_ToolRequestValue_": {
        "properties": {
          "totalItems": {
            "type": "number",
            "format": "double"
          },
          "currentPage": {
            "type": "number",
            "format": "double"
          },
          "totalPages": {
            "type": "number",
            "format": "double"
          },
          "data": {
            "items": {
              "$ref": "#/components/schemas/ToolRequestValue"
            },
            "type": "array"
          }
        },
        "required": [
          "totalItems",
          "currentPage",
          "totalPages",
          "data"
        ],
        "type": "object"
      },
      "IRealtimeSummary": {
        "properties": {},
        "type": "object",
        "additionalProperties": {
          "properties": {
            "machines": {
              "items": {
                "properties": {
                  "machineName": {
                    "type": "string"
                  },
                  "machineId": {
                    "type": "number",
                    "format": "double"
                  }
                },
                "required": [
                  "machineName",
                  "machineId"
                ],
                "type": "object"
              },
              "type": "array"
            },
            "count": {
              "type": "number",
              "format": "double"
            }
          },
          "required": [
            "machines",
            "count"
          ],
          "type": "object"
        }
      },
      "IPaginationDetails": {
        "properties": {
          "total": {
            "type": "number",
            "format": "double"
          }
        },
        "required": [
          "total"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "State": {
        "enum": [
          "STOPED_WITH_ALERTS",
          "STOPED",
          "WORKING",
          "NO_DATA",
          "NO_SHIFT",
          "OUT_OF_SHIFT"
        ],
        "type": "string"
      },
      "ShiftValue": {
        "properties": {
          "title": {
            "type": "string"
          },
          "start": {
            "type": "string",
            "format": "date-time"
          },
          "end": {
            "type": "string",
            "format": "date-time"
          },
          "id": {
            "type": "number",
            "format": "double"
          }
        },
        "required": [
          "title",
          "start",
          "end",
          "id"
        ],
        "type": "object"
      },
      "StopClassificationRecord": {
        "properties": {
          "updatedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "isProgrammed": {
            "type": "number",
            "format": "double"
          },
          "componentId": {
            "type": "string",
            "nullable": true
          },
          "componentName": {
            "type": "string"
          },
          "machineId": {
            "type": "number",
            "format": "double"
          },
          "startTime": {
            "type": "string",
            "format": "date-time"
          },
          "specificCause": {
            "type": "string"
          },
          "generalCause": {
            "type": "string"
          },
          "specificCauseId": {
            "type": "string",
            "nullable": true
          },
          "generalCauseId": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "id": {
            "type": "number",
            "format": "double",
            "nullable": true
          }
        },
        "required": [
          "updatedAt",
          "isProgrammed",
          "componentId",
          "componentName",
          "machineId",
          "startTime",
          "specificCause",
          "generalCause",
          "specificCauseId",
          "generalCauseId",
          "description",
          "id"
        ],
        "type": "object"
      },
      "Pick_StopRecord.Exclude_keyofStopRecord.startTime-or-endTime__": {
        "properties": {
          "stopId": {
            "type": "string"
          },
          "programmed": {
            "type": "string"
          },
          "generalCauseName": {
            "type": "string",
            "nullable": true
          },
          "specificCauseName": {
            "type": "string",
            "nullable": true
          },
          "equipmentName": {
            "type": "string",
            "nullable": true
          },
          "numberOfAlerts": {
            "type": "number",
            "format": "double"
          },
          "hadAlert": {
            "type": "boolean"
          },
          "classification": {
            "allOf": [
              {
                "$ref": "#/components/schemas/StopClassificationRecord"
              }
            ],
            "nullable": true
          }
        },
        "required": [
          "stopId",
          "programmed",
          "generalCauseName",
          "specificCauseName",
          "equipmentName",
          "numberOfAlerts",
          "hadAlert",
          "classification"
        ],
        "type": "object",
        "description": "From T, pick a set of properties whose keys are in the union K"
      },
      "Omit_StopRecord.startTime-or-endTime_": {
        "$ref": "#/components/schemas/Pick_StopRecord.Exclude_keyofStopRecord.startTime-or-endTime__",
        "description": "Construct a type with the properties of T except for those in type K."
      },
      "StopValue": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Omit_StopRecord.startTime-or-endTime_"
          },
          {
            "properties": {
              "end": {
                "type": "string",
                "format": "date-time"
              },
              "start": {
                "type": "string",
                "format": "date-time"
              }
            },
            "required": [
              "end",
              "start"
            ],
            "type": "object"
          }
        ]
      },
      "Record_string._from-Date--to-Date--count-number__": {
        "properties": {},
        "type": "object",
        "description": "Construct a type with a set of properties K of type T"
      },
      "CountByRange": {
        "$ref": "#/components/schemas/Record_string._from-Date--to-Date--count-number__"
      },
      "HourlyPerformance": {
        "properties": {},
        "type": "object",
        "additionalProperties": {
          "properties": {
            "performance": {
              "type": "number",
              "format": "double",
              "nullable": true
            },
            "to": {
              "type": "string",
              "format": "date-time"
            },
            "from": {
              "type": "string",
              "format": "date-time"
            }
          },
          "required": [
            "performance",
            "to",
            "from"
          ],
          "type": "object"
        }
      },
      "OEECountSensorMetrics": {
        "properties": {
          "pressureRightPresizeAdjustNut": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "pressureLeftPresizeAdjustNut": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "temperature": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "vibrationAccelerationZ": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "vibrationAccelerationY": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "vibrationAccelerationX": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "vibrationVelocityZ": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "vibrationVelocityY": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "vibrationVelocityX": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "vibrationDisplacementZ": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "vibrationDisplacementY": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "vibrationDisplacementX": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "productCount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "energy": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "instantaneousCycleTime": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "instantaneousCycleSpeed": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "instantaneousCycleCount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "hourByHourPerformance": {
            "$ref": "#/components/schemas/HourlyPerformance"
          },
          "hourByHourTargets": {
            "$ref": "#/components/schemas/CountByRange"
          },
          "hourByHourProducts": {
            "$ref": "#/components/schemas/CountByRange"
          },
          "hourByHourDefects": {
            "$ref": "#/components/schemas/CountByRange"
          },
          "scrap": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "total": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "defects": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "correct": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "avg_velocity": {
            "type": "number",
            "format": "double"
          },
          "instantaneous_velocity": {
            "type": "number",
            "format": "double"
          },
          "sensors_aggregated_production": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "sensors_avg_velocity": {
            "type": "number",
            "format": "double"
          },
          "sensors_instantaneous_velocity": {
            "type": "number",
            "format": "double"
          },
          "sensors_oee": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "currentMinuteCount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "accumulatedCount": {
            "type": "number",
            "format": "double",
            "nullable": true
          }
        },
        "required": [
          "sensors_aggregated_production",
          "sensors_avg_velocity",
          "sensors_instantaneous_velocity",
          "sensors_oee",
          "currentMinuteCount",
          "accumulatedCount"
        ],
        "type": "object"
      },
      "OEEMetrics": {
        "allOf": [
          {
            "properties": {
              "idealSpeedProduction": {
                "type": "number",
                "format": "double",
                "nullable": true
              },
              "idealProduction": {
                "type": "number",
                "format": "double",
                "nullable": true
              },
              "plannedDowntime": {
                "type": "number",
                "format": "double",
                "nullable": true
              },
              "unplannedDowntime": {
                "type": "number",
                "format": "double",
                "nullable": true
              },
              "updatedAt": {
                "type": "string",
                "format": "date-time",
                "nullable": true
              },
              "stops": {
                "type": "number",
                "format": "double",
                "nullable": true
              },
              "downtime": {
                "type": "number",
                "format": "double",
                "nullable": true
              },
              "uptime": {
                "type": "number",
                "format": "double",
                "nullable": true
              },
              "defects": {
                "type": "number",
                "format": "double",
                "nullable": true
              },
              "produced": {
                "type": "number",
                "format": "double",
                "nullable": true
              },
              "netOee": {
                "type": "number",
                "format": "double",
                "nullable": true
              },
              "oee": {
                "type": "number",
                "format": "double",
                "nullable": true
              },
              "total_oee": {
                "type": "number",
                "format": "double",
                "nullable": true
              },
              "total_performance": {
                "type": "number",
                "format": "double",
                "nullable": true
              },
              "effectiveness": {
                "type": "number",
                "format": "double",
                "nullable": true
              },
              "quality": {
                "type": "number",
                "format": "double",
                "nullable": true
              },
              "netAvailability": {
                "type": "number",
                "format": "double",
                "nullable": true
              },
              "annotation": {
                "type": "number",
                "format": "double",
                "nullable": true
              },
              "availability": {
                "type": "number",
                "format": "double",
                "nullable": true
              }
            },
            "required": [
              "idealSpeedProduction",
              "idealProduction",
              "plannedDowntime",
              "unplannedDowntime",
              "updatedAt",
              "stops",
              "downtime",
              "uptime",
              "defects",
              "produced",
              "netOee",
              "oee",
              "total_oee",
              "total_performance",
              "effectiveness",
              "quality",
              "netAvailability",
              "annotation",
              "availability"
            ],
            "type": "object"
          },
          {
            "$ref": "#/components/schemas/OEECountSensorMetrics"
          }
        ]
      },
      "SkuValue": {
        "properties": {
          "end": {
            "type": "string",
            "format": "date-time"
          },
          "start": {
            "type": "string",
            "format": "date-time"
          },
          "unit": {
            "type": "string"
          },
          "countingFactor": {
            "type": "number",
            "format": "double"
          },
          "description": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "sku": {
            "type": "string"
          },
          "id": {
            "type": "string"
          }
        },
        "required": [
          "end",
          "start",
          "unit",
          "countingFactor",
          "name",
          "sku",
          "id"
        ],
        "type": "object"
      },
      "ERealtimeProductionAdvancementEvent": {
        "enum": [
          "INITIAL",
          "SKU_CHANGED",
          "OPERATOR_CHANGED",
          "RAW_MATERIAL_CHANGED",
          "SIMPLE_WORK_ORDER_CHANGED"
        ],
        "type": "string"
      },
      "RealtimeProductionAdvancementWorkOrderEvent": {
        "properties": {
          "name": {
            "type": "string"
          },
          "id": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "id"
        ],
        "type": "object"
      },
      "RealtimeProductionAdvancementSimpleWorkOrderEvent": {
        "properties": {
          "name": {
            "type": "string"
          },
          "id": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "id"
        ],
        "type": "object"
      },
      "RealtimeProductionAdvancementSkuEvent": {
        "properties": {
          "description": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "sku": {
            "type": "string"
          },
          "id": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "sku",
          "id"
        ],
        "type": "object"
      },
      "RealtimeProductionAdvancementOperatorEvent": {
        "properties": {
          "imageUrl": {
            "type": "string",
            "nullable": true
          },
          "lastName": {
            "type": "string"
          },
          "firstName": {
            "type": "string"
          },
          "id": {
            "type": "number",
            "format": "double"
          }
        },
        "required": [
          "lastName",
          "firstName",
          "id"
        ],
        "type": "object"
      },
      "RealtimeProductionAdvancementRawMaterialEvent": {
        "properties": {
          "name": {
            "type": "string"
          },
          "id": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "id"
        ],
        "type": "object"
      },
      "RealtimeProductionAdvancementEventType": {
        "properties": {
          "new": {
            "properties": {
              "rawMaterial": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/RealtimeProductionAdvancementRawMaterialEvent"
                  }
                ],
                "nullable": true
              },
              "operator": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/RealtimeProductionAdvancementOperatorEvent"
                  }
                ],
                "nullable": true
              },
              "sku": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/RealtimeProductionAdvancementSkuEvent"
                  }
                ],
                "nullable": true
              },
              "simpleWorkOrder": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/RealtimeProductionAdvancementSimpleWorkOrderEvent"
                  }
                ],
                "nullable": true
              },
              "workOrder": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/RealtimeProductionAdvancementWorkOrderEvent"
                  }
                ],
                "nullable": true
              },
              "isAutomated": {
                "type": "boolean",
                "nullable": true
              },
              "simpleWorkOrderId": {
                "type": "string",
                "nullable": true
              },
              "workOrderId": {
                "type": "string",
                "nullable": true
              },
              "nominalSpeed": {
                "type": "number",
                "format": "double",
                "nullable": true
              },
              "start": {
                "type": "string",
                "format": "date-time"
              },
              "id": {
                "type": "string"
              }
            },
            "required": [
              "rawMaterial",
              "operator",
              "sku",
              "simpleWorkOrder",
              "workOrder",
              "isAutomated",
              "simpleWorkOrderId",
              "workOrderId",
              "nominalSpeed",
              "start",
              "id"
            ],
            "type": "object",
            "nullable": true
          },
          "previous": {
            "properties": {
              "rawMaterial": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/RealtimeProductionAdvancementRawMaterialEvent"
                  }
                ],
                "nullable": true
              },
              "operator": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/RealtimeProductionAdvancementOperatorEvent"
                  }
                ],
                "nullable": true
              },
              "sku": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/RealtimeProductionAdvancementSkuEvent"
                  }
                ],
                "nullable": true
              },
              "simpleWorkOrder": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/RealtimeProductionAdvancementSimpleWorkOrderEvent"
                  }
                ],
                "nullable": true
              },
              "workOrder": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/RealtimeProductionAdvancementWorkOrderEvent"
                  }
                ],
                "nullable": true
              },
              "isAutomated": {
                "type": "boolean",
                "nullable": true
              },
              "simpleWorkOrderId": {
                "type": "string",
                "nullable": true
              },
              "workOrderId": {
                "type": "string",
                "nullable": true
              },
              "nominalSpeed": {
                "type": "number",
                "format": "double",
                "nullable": true
              },
              "start": {
                "type": "string",
                "format": "date-time"
              },
              "id": {
                "type": "string"
              }
            },
            "required": [
              "rawMaterial",
              "operator",
              "sku",
              "simpleWorkOrder",
              "workOrder",
              "isAutomated",
              "simpleWorkOrderId",
              "workOrderId",
              "nominalSpeed",
              "start",
              "id"
            ],
            "type": "object",
            "nullable": true
          },
          "status": {
            "$ref": "#/components/schemas/ERealtimeProductionAdvancementEvent"
          },
          "eventDate": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "new",
          "previous",
          "status",
          "eventDate"
        ],
        "type": "object"
      },
      "Record_string.number_": {
        "properties": {},
        "type": "object",
        "description": "Construct a type with a set of properties K of type T"
      },
      "Record_string.(CountByType-or-LegacyCountByType)_": {
        "properties": {},
        "type": "object",
        "description": "Construct a type with a set of properties K of type T"
      },
      "RealtimeDetail": {
        "properties": {
          "nominalSpeed": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "productionBySku": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Record_string.(CountByType-or-LegacyCountByType)_"
              }
            ],
            "nullable": true
          },
          "productionPerMinute": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Record_string.number_"
              }
            ],
            "nullable": true
          }
        },
        "required": [
          "nominalSpeed",
          "productionBySku",
          "productionPerMinute"
        ],
        "type": "object"
      },
      "RealtimeRes": {
        "allOf": [
          {
            "properties": {
              "lastSimpleWorkOrderId": {
                "type": "string",
                "nullable": true
              },
              "hasPA": {
                "type": "boolean"
              },
              "events": {
                "items": {
                  "$ref": "#/components/schemas/RealtimeProductionAdvancementEventType"
                },
                "type": "array"
              },
              "skus": {
                "items": {
                  "$ref": "#/components/schemas/SkuValue"
                },
                "type": "array"
              },
              "hasOverlaps": {
                "type": "boolean"
              },
              "hasAlert": {
                "type": "boolean"
              },
              "metrics": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/OEEMetrics"
                  }
                ],
                "nullable": true
              },
              "annotation": {
                "type": "number",
                "format": "double"
              },
              "previousAvailability": {
                "type": "number",
                "format": "double"
              },
              "targetAvailability": {
                "type": "number",
                "format": "double"
              },
              "availability": {
                "type": "number",
                "format": "double"
              },
              "shiftMinutes": {
                "type": "number",
                "format": "double"
              },
              "notProducingMinutes": {
                "type": "number",
                "format": "double"
              },
              "producingMinutes": {
                "type": "number",
                "format": "double"
              },
              "remainingMinutes": {
                "type": "number",
                "format": "double"
              },
              "unavailableMinutes": {
                "type": "number",
                "format": "double"
              },
              "working": {
                "items": {
                  "$ref": "#/components/schemas/DateRange"
                },
                "type": "array"
              },
              "noData": {
                "items": {
                  "$ref": "#/components/schemas/DateRange"
                },
                "type": "array"
              },
              "stops": {
                "items": {
                  "$ref": "#/components/schemas/StopValue"
                },
                "type": "array"
              },
              "previousShift": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/ShiftValue"
                  }
                ],
                "nullable": true
              },
              "nextShift": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/ShiftValue"
                  }
                ],
                "nullable": true
              },
              "shift": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/ShiftValue"
                  }
                ],
                "nullable": true
              },
              "state": {
                "$ref": "#/components/schemas/State"
              },
              "timezone": {
                "type": "string"
              },
              "machineOrder": {
                "type": "number",
                "format": "double"
              },
              "machineName": {
                "type": "string"
              },
              "isCountEnabled": {
                "type": "boolean"
              },
              "machineId": {
                "type": "number",
                "format": "double"
              }
            },
            "required": [
              "lastSimpleWorkOrderId",
              "hasPA",
              "events",
              "skus",
              "hasOverlaps",
              "hasAlert",
              "metrics",
              "annotation",
              "previousAvailability",
              "targetAvailability",
              "availability",
              "shiftMinutes",
              "notProducingMinutes",
              "producingMinutes",
              "remainingMinutes",
              "unavailableMinutes",
              "working",
              "noData",
              "stops",
              "previousShift",
              "nextShift",
              "shift",
              "state",
              "timezone",
              "machineOrder",
              "machineName",
              "isCountEnabled",
              "machineId"
            ],
            "type": "object"
          },
          {
            "$ref": "#/components/schemas/RealtimeDetail"
          }
        ]
      },
      "MultiMachineRealtimeRes": {
        "properties": {
          "machines": {
            "items": {
              "$ref": "#/components/schemas/RealtimeRes"
            },
            "type": "array"
          },
          "paginationDetails": {
            "$ref": "#/components/schemas/IPaginationDetails"
          },
          "summary": {
            "$ref": "#/components/schemas/IRealtimeSummary"
          }
        },
        "required": [
          "machines",
          "paginationDetails",
          "summary"
        ],
        "type": "object"
      },
      "RealtimeComponents": {
        "enum": [
          "hourByHourDefects",
          "hourByHourProducts",
          "hourByHourTargets",
          "hourByHourPerformance"
        ],
        "type": "string"
      },
      "PaginatedLegacy_RealtimeRes_": {
        "properties": {
          "totalItems": {
            "type": "number",
            "format": "double"
          },
          "data": {
            "items": {
              "$ref": "#/components/schemas/RealtimeRes"
            },
            "type": "array"
          }
        },
        "required": [
          "totalItems",
          "data"
        ],
        "type": "object"
      },
      "OperatorRealtimeRes": {
        "properties": {
          "shift": {
            "type": "string",
            "nullable": true
          },
          "availability": {
            "type": "number",
            "format": "double"
          },
          "downtime": {
            "type": "number",
            "format": "double"
          },
          "uptime": {
            "type": "number",
            "format": "double"
          },
          "production": {
            "type": "number",
            "format": "double"
          },
          "machineName": {
            "type": "string"
          },
          "machineId": {
            "type": "number",
            "format": "double"
          },
          "sku": {
            "type": "string",
            "nullable": true
          },
          "skuId": {
            "type": "string",
            "nullable": true
          },
          "operatorName": {
            "type": "string",
            "nullable": true
          },
          "operatorId": {
            "type": "number",
            "format": "double",
            "nullable": true
          }
        },
        "required": [
          "shift",
          "availability",
          "downtime",
          "uptime",
          "production",
          "machineName",
          "machineId",
          "sku",
          "skuId",
          "operatorName",
          "operatorId"
        ],
        "type": "object",
        "description": "A single row of the Tower Control Operator View (tvControlOperatorView): the production of an\noperator on a machine during the current shift."
      },
      "PaginatedLegacy_OperatorRealtimeRes_": {
        "properties": {
          "totalItems": {
            "type": "number",
            "format": "double"
          },
          "data": {
            "items": {
              "$ref": "#/components/schemas/OperatorRealtimeRes"
            },
            "type": "array"
          }
        },
        "required": [
          "totalItems",
          "data"
        ],
        "type": "object"
      },
      "SortDirection": {
        "enum": [
          "asc",
          "desc"
        ],
        "type": "string"
      },
      "Record_number.(number-or-null)-Array_": {
        "properties": {},
        "type": "object",
        "description": "Construct a type with a set of properties K of type T"
      },
      "DailyHourlyProductionResponse": {
        "description": "Types for the daily hourly production endpoint",
        "properties": {
          "date": {
            "type": "string"
          },
          "machines": {
            "$ref": "#/components/schemas/Record_number.(number-or-null)-Array_"
          }
        },
        "required": [
          "date",
          "machines"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "SkuInfo": {
        "properties": {
          "id": {
            "type": "string",
            "nullable": true
          },
          "sku": {
            "type": "string",
            "nullable": true
          },
          "name": {
            "type": "string",
            "nullable": true
          }
        },
        "required": [
          "id",
          "sku",
          "name"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "MachineSkuHourlyProduction": {
        "properties": {
          "machineId": {
            "type": "number",
            "format": "double"
          },
          "sku": {
            "$ref": "#/components/schemas/SkuInfo"
          },
          "hourlyProduction": {
            "items": {
              "type": "number",
              "format": "double",
              "nullable": true
            },
            "type": "array"
          }
        },
        "required": [
          "machineId",
          "sku",
          "hourlyProduction"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "DailyHourlyProductionBySkuResponse": {
        "properties": {
          "date": {
            "type": "string"
          },
          "data": {
            "items": {
              "$ref": "#/components/schemas/MachineSkuHourlyProduction"
            },
            "type": "array"
          }
        },
        "required": [
          "date",
          "data"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "MachineSkuIntervalProduction": {
        "properties": {
          "machineId": {
            "type": "number",
            "format": "double"
          },
          "sku": {
            "$ref": "#/components/schemas/SkuInfo"
          },
          "intervals": {
            "items": {
              "type": "number",
              "format": "double",
              "nullable": true
            },
            "type": "array"
          }
        },
        "required": [
          "machineId",
          "sku",
          "intervals"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "DailyIntervalProductionResponse": {
        "properties": {
          "date": {
            "type": "string"
          },
          "data": {
            "items": {
              "$ref": "#/components/schemas/MachineSkuIntervalProduction"
            },
            "type": "array"
          }
        },
        "required": [
          "date",
          "data"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "DashboardFilterRes": {
        "properties": {
          "id": {
            "type": "string"
          },
          "dashboardId": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "type": {
            "type": "string"
          },
          "order": {
            "type": "number",
            "format": "double"
          }
        },
        "required": [
          "id",
          "dashboardId",
          "name",
          "type",
          "order"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "DashboardRes": {
        "properties": {
          "id": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "lang": {
            "type": "string"
          },
          "externalId": {
            "type": "string"
          },
          "order": {
            "type": "number",
            "format": "double"
          },
          "preview": {
            "type": "string",
            "nullable": true
          },
          "filters": {
            "items": {
              "$ref": "#/components/schemas/DashboardFilterRes"
            },
            "type": "array"
          }
        },
        "required": [
          "id",
          "title",
          "lang",
          "externalId",
          "order",
          "preview"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "DashboardBySectionRes": {
        "properties": {
          "id": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "order": {
            "type": "number",
            "format": "double"
          },
          "lang": {
            "type": "string"
          },
          "dashboards": {
            "items": {
              "$ref": "#/components/schemas/DashboardRes"
            },
            "type": "array"
          }
        },
        "required": [
          "id",
          "title",
          "order",
          "lang",
          "dashboards"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "Language": {
        "enum": [
          "en",
          "es"
        ],
        "type": "string"
      },
      "SubscriptionLogRes": {
        "properties": {
          "id": {
            "type": "string"
          },
          "subscriptionId": {
            "type": "string"
          },
          "executeAt": {
            "type": "string",
            "format": "date-time"
          },
          "executedAt": {
            "type": "string",
            "format": "date-time"
          },
          "status": {
            "type": "string"
          },
          "detail": {
            "type": "string"
          },
          "shiftTitle": {
            "type": "string",
            "nullable": true
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time"
          },
          "deletedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        },
        "required": [
          "id",
          "subscriptionId",
          "executeAt",
          "executedAt",
          "status",
          "detail",
          "shiftTitle",
          "createdAt",
          "updatedAt",
          "deletedAt"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "SubscriptionRecipientRes": {
        "properties": {
          "id": {
            "type": "string"
          },
          "personaId": {
            "type": "string"
          },
          "email": {
            "type": "string"
          },
          "name": {
            "type": "string"
          }
        },
        "type": "object",
        "additionalProperties": false
      },
      "SubscriptionFrequencyUnit": {
        "enum": [
          "day",
          "week",
          "month"
        ],
        "type": "string"
      },
      "SubscriptionFrequencyRes": {
        "properties": {
          "unit": {
            "$ref": "#/components/schemas/SubscriptionFrequencyUnit"
          },
          "amount": {
            "type": "number",
            "format": "double"
          },
          "days": {
            "type": "string"
          },
          "time": {
            "type": "string"
          },
          "shifts": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "timezone": {
            "type": "string"
          },
          "since": {
            "type": "string",
            "format": "date-time"
          },
          "until": {
            "type": "string",
            "format": "date-time"
          },
          "description": {
            "type": "string"
          }
        },
        "required": [
          "unit",
          "amount",
          "timezone"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "SubscriptionDashboardFilterRes": {
        "properties": {
          "id": {
            "type": "string"
          },
          "dashboardFilterId": {
            "type": "string"
          },
          "value": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "additionalProperties": false,
                "type": "object"
              }
            ]
          },
          "name": {
            "type": "string"
          },
          "type": {
            "type": "string"
          }
        },
        "required": [
          "dashboardFilterId",
          "value"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "SubscriptionDashboardFilterParams": {
        "properties": {
          "id": {
            "type": "string"
          },
          "dashboardFilterId": {
            "type": "string"
          },
          "value": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "additionalProperties": false,
                "type": "object"
              }
            ]
          }
        },
        "required": [
          "dashboardFilterId",
          "value"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "SubscriptionDashboardRes": {
        "properties": {
          "id": {
            "type": "string"
          },
          "order": {
            "type": "number",
            "format": "double"
          },
          "dashboardId": {
            "type": "string"
          },
          "filters": {
            "items": {
              "$ref": "#/components/schemas/SubscriptionDashboardFilterRes"
            },
            "type": "array"
          },
          "title": {
            "type": "string"
          }
        },
        "required": [
          "order",
          "dashboardId",
          "filters"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "SubscriptionRecipientParams": {
        "properties": {
          "id": {
            "type": "string"
          },
          "personaId": {
            "type": "string"
          },
          "email": {
            "type": "string"
          }
        },
        "type": "object",
        "additionalProperties": false
      },
      "SubscriptionFrequencyParams": {
        "properties": {
          "unit": {
            "$ref": "#/components/schemas/SubscriptionFrequencyUnit"
          },
          "amount": {
            "type": "number",
            "format": "double"
          },
          "days": {
            "type": "string"
          },
          "time": {
            "type": "string"
          },
          "shifts": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "timezone": {
            "type": "string"
          },
          "since": {
            "type": "string",
            "format": "date-time"
          },
          "until": {
            "type": "string",
            "format": "date-time"
          },
          "description": {
            "type": "string"
          }
        },
        "required": [
          "unit",
          "amount",
          "timezone"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "SubscriptionDashboardParams": {
        "properties": {
          "id": {
            "type": "string"
          },
          "order": {
            "type": "number",
            "format": "double"
          },
          "dashboardId": {
            "type": "string"
          },
          "filters": {
            "items": {
              "$ref": "#/components/schemas/SubscriptionDashboardFilterParams"
            },
            "type": "array"
          }
        },
        "required": [
          "order",
          "dashboardId",
          "filters"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "SubscriptionRes": {
        "properties": {
          "id": {
            "type": "string"
          },
          "companyId": {
            "type": "number",
            "format": "double"
          },
          "userId": {
            "type": "number",
            "format": "double"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "lang": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Language"
              },
              {
                "type": "string"
              }
            ]
          },
          "recipients": {
            "items": {
              "$ref": "#/components/schemas/SubscriptionRecipientRes"
            },
            "type": "array"
          },
          "frequency": {
            "$ref": "#/components/schemas/SubscriptionFrequencyRes"
          },
          "dashboards": {
            "items": {
              "$ref": "#/components/schemas/SubscriptionDashboardRes"
            },
            "type": "array"
          },
          "createdBy": {
            "properties": {
              "at": {
                "type": "string",
                "format": "date-time"
              },
              "lastName": {
                "type": "string"
              },
              "firstName": {
                "type": "string"
              },
              "email": {
                "type": "string"
              },
              "id": {
                "type": "number",
                "format": "double"
              }
            },
            "required": [
              "at",
              "lastName",
              "firstName",
              "email",
              "id"
            ],
            "type": "object"
          },
          "updatedBy": {
            "properties": {
              "at": {
                "type": "string",
                "format": "date-time"
              },
              "lastName": {
                "type": "string"
              },
              "firstName": {
                "type": "string"
              },
              "email": {
                "type": "string"
              },
              "id": {
                "type": "number",
                "format": "double"
              }
            },
            "required": [
              "at",
              "lastName",
              "firstName",
              "email",
              "id"
            ],
            "type": "object"
          }
        },
        "required": [
          "name",
          "description",
          "recipients",
          "frequency",
          "dashboards"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "SubscriptionParams": {
        "properties": {
          "id": {
            "type": "string"
          },
          "companyId": {
            "type": "number",
            "format": "double"
          },
          "userId": {
            "type": "number",
            "format": "double"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "lang": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Language"
              },
              {
                "type": "string"
              }
            ]
          },
          "recipients": {
            "items": {
              "$ref": "#/components/schemas/SubscriptionRecipientParams"
            },
            "type": "array"
          },
          "frequency": {
            "$ref": "#/components/schemas/SubscriptionFrequencyParams"
          },
          "dashboards": {
            "items": {
              "$ref": "#/components/schemas/SubscriptionDashboardParams"
            },
            "type": "array"
          }
        },
        "required": [
          "name",
          "description",
          "recipients",
          "frequency",
          "dashboards"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "SubscriptionDashboardOrderParams": {
        "properties": {
          "id": {
            "type": "string"
          },
          "order": {
            "type": "number",
            "format": "double"
          }
        },
        "required": [
          "id",
          "order"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "SubscriptionDashboardsOrderParams": {
        "properties": {
          "id": {
            "type": "string"
          },
          "companyId": {
            "type": "number",
            "format": "double"
          },
          "userId": {
            "type": "number",
            "format": "double"
          },
          "dashboards": {
            "items": {
              "$ref": "#/components/schemas/SubscriptionDashboardOrderParams"
            },
            "type": "array"
          }
        },
        "required": [
          "dashboards"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "SendSubscriptionParams": {
        "properties": {
          "id": {
            "type": "string"
          },
          "companyId": {
            "type": "number",
            "format": "double"
          },
          "userId": {
            "type": "number",
            "format": "double"
          },
          "recipients": {
            "items": {
              "$ref": "#/components/schemas/SubscriptionRecipientParams"
            },
            "type": "array"
          }
        },
        "required": [
          "recipients"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "ShiftListMinViewDtoWithHasWorkSteps": {
        "properties": {
          "hasWorkSteps": {
            "type": "boolean"
          },
          "nominalSpeed": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "targetQuantity": {
            "type": "number",
            "format": "double"
          },
          "operatorId": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "isConsidered": {
            "type": "boolean"
          },
          "end": {
            "type": "string",
            "format": "date-time"
          },
          "start": {
            "type": "string",
            "format": "date-time"
          },
          "title": {
            "type": "string"
          },
          "machineId": {
            "type": "number",
            "format": "double"
          },
          "id": {
            "type": "number",
            "format": "double"
          }
        },
        "required": [
          "hasWorkSteps",
          "nominalSpeed",
          "targetQuantity",
          "operatorId",
          "isConsidered",
          "end",
          "start",
          "title",
          "machineId",
          "id"
        ],
        "type": "object"
      },
      "GetShiftsRes": {
        "properties": {
          "updatedAt": {
            "type": "string",
            "format": "date-time"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "end": {
            "type": "string",
            "format": "date-time"
          },
          "start": {
            "type": "string",
            "format": "date-time"
          },
          "name": {
            "type": "string"
          },
          "machineId": {
            "type": "number",
            "format": "double"
          },
          "id": {
            "type": "number",
            "format": "double"
          }
        },
        "required": [
          "updatedAt",
          "createdAt",
          "end",
          "start",
          "name",
          "machineId",
          "id"
        ],
        "type": "object"
      },
      "Paginated_GetShiftsRes_": {
        "properties": {
          "totalItems": {
            "type": "number",
            "format": "double"
          },
          "currentPage": {
            "type": "number",
            "format": "double"
          },
          "totalPages": {
            "type": "number",
            "format": "double"
          },
          "data": {
            "items": {
              "$ref": "#/components/schemas/GetShiftsRes"
            },
            "type": "array"
          }
        },
        "required": [
          "totalItems",
          "currentPage",
          "totalPages",
          "data"
        ],
        "type": "object"
      },
      "ShiftListMinViewDto": {
        "properties": {
          "nominalSpeed": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "targetQuantity": {
            "type": "number",
            "format": "double"
          },
          "operatorId": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "isConsidered": {
            "type": "boolean"
          },
          "end": {
            "type": "string",
            "format": "date-time"
          },
          "start": {
            "type": "string",
            "format": "date-time"
          },
          "title": {
            "type": "string"
          },
          "companyId": {
            "type": "number",
            "format": "double"
          },
          "machineId": {
            "type": "number",
            "format": "double"
          },
          "id": {
            "type": "number",
            "format": "double"
          }
        },
        "required": [
          "nominalSpeed",
          "targetQuantity",
          "operatorId",
          "isConsidered",
          "end",
          "start",
          "title",
          "companyId",
          "machineId",
          "id"
        ],
        "type": "object"
      },
      "UpdateShiftParams": {
        "properties": {
          "nominalSpeed": {
            "type": "number",
            "format": "double"
          },
          "targetQuantity": {
            "type": "number",
            "format": "double"
          },
          "operatorId": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "end": {
            "type": "string",
            "format": "date-time"
          },
          "start": {
            "type": "string",
            "format": "date-time"
          },
          "title": {
            "type": "string"
          }
        },
        "required": [
          "end",
          "start"
        ],
        "type": "object"
      },
      "DeleteShiftParams": {
        "properties": {
          "weekdays": {
            "items": {
              "type": "number",
              "format": "double"
            },
            "type": "array"
          },
          "machineIds": {
            "items": {
              "type": "number",
              "format": "double"
            },
            "type": "array"
          },
          "end": {
            "type": "string",
            "format": "date-time"
          },
          "start": {
            "type": "string",
            "format": "date-time"
          },
          "titles": {
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "required": [
          "machineIds",
          "end",
          "start"
        ],
        "type": "object"
      },
      "IShift": {
        "additionalProperties": false,
        "type": "object"
      },
      "CreateShiftsParams": {
        "properties": {
          "targetQuantity": {
            "type": "number",
            "format": "double"
          },
          "operatorId": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "machineIds": {
            "items": {
              "type": "number",
              "format": "double"
            },
            "type": "array"
          },
          "durationInSeconds": {
            "type": "number",
            "format": "double"
          },
          "timezone": {
            "type": "string"
          },
          "weekdays": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "end": {
            "type": "string",
            "format": "date-time"
          },
          "start": {
            "type": "string",
            "format": "date-time"
          },
          "title": {
            "type": "string"
          }
        },
        "required": [
          "machineIds",
          "durationInSeconds",
          "timezone",
          "weekdays",
          "end",
          "start",
          "title"
        ],
        "type": "object"
      },
      "ShiftEligibilityInterval": {
        "properties": {
          "end": {
            "type": "number",
            "format": "double"
          },
          "start": {
            "type": "number",
            "format": "double"
          }
        },
        "required": [
          "end",
          "start"
        ],
        "type": "object"
      },
      "ShiftEligibilityResponse": {
        "properties": {
          "intervals": {
            "items": {
              "$ref": "#/components/schemas/ShiftEligibilityInterval"
            },
            "type": "array"
          },
          "to": {
            "type": "number",
            "format": "double"
          },
          "from": {
            "type": "number",
            "format": "double"
          },
          "machine_id": {
            "type": "number",
            "format": "double"
          }
        },
        "required": [
          "intervals",
          "to",
          "from",
          "machine_id"
        ],
        "type": "object"
      },
      "Identity": {
        "properties": {
          "id": {
            "$ref": "#/components/schemas/Uuid"
          }
        },
        "required": [
          "id"
        ],
        "type": "object"
      },
      "Timestamps": {
        "properties": {
          "deletedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          }
        },
        "type": "object"
      },
      "Row": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Identity"
          },
          {
            "$ref": "#/components/schemas/Timestamps"
          }
        ]
      },
      "ShortTag": {
        "properties": {
          "tagValue": {
            "type": "string"
          },
          "tagKey": {
            "type": "string"
          },
          "id": {
            "$ref": "#/components/schemas/Uuid"
          }
        },
        "required": [
          "tagValue",
          "tagKey",
          "id"
        ],
        "type": "object"
      },
      "EagerTag": {
        "properties": {
          "tags": {
            "items": {
              "$ref": "#/components/schemas/ShortTag"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "StopCatalogValue": {
        "properties": {
          "programmedDowntimeMinutes": {
            "type": "number",
            "format": "double"
          },
          "isProgrammed": {
            "type": "boolean"
          },
          "isActive": {
            "type": "boolean"
          },
          "order": {
            "type": "number",
            "format": "double"
          },
          "name": {
            "type": "string"
          }
        },
        "required": [
          "isActive",
          "order",
          "name"
        ],
        "type": "object"
      },
      "StopCatalogRow": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Row"
          },
          {
            "$ref": "#/components/schemas/EagerTag"
          },
          {
            "$ref": "#/components/schemas/StopCatalogValue"
          }
        ]
      },
      "StopCatalogName": {
        "enum": [
          "general-causes",
          "specific-causes",
          "components"
        ],
        "type": "string"
      },
      "StopCatalogEager": {
        "type": "string",
        "enum": [
          "tags"
        ],
        "nullable": false
      },
      "StopReportValue": {
        "properties": {
          "minutes": {
            "type": "number",
            "format": "double"
          },
          "tags": {
            "properties": {},
            "additionalProperties": {
              "type": "number",
              "format": "double"
            },
            "type": "object"
          },
          "name": {
            "type": "string"
          },
          "id": {
            "type": "string"
          }
        },
        "required": [
          "minutes",
          "name",
          "id"
        ],
        "type": "object"
      },
      "ParetoReportValue": {
        "allOf": [
          {
            "$ref": "#/components/schemas/StopReportValue"
          },
          {
            "properties": {
              "percentage": {
                "type": "number",
                "format": "double"
              }
            },
            "required": [
              "percentage"
            ],
            "type": "object"
          }
        ]
      },
      "ParetoReport": {
        "items": {
          "$ref": "#/components/schemas/ParetoReportValue"
        },
        "type": "array"
      },
      "ParetoGroupType": {
        "enum": [
          "Machine",
          "GeneralCause",
          "SpecificCause",
          "Component"
        ],
        "type": "string"
      },
      "ListStopReportRequestBody": {
        "properties": {
          "where": {
            "properties": {
              "tagIds": {
                "items": {
                  "$ref": "#/components/schemas/Uuid"
                },
                "type": "array"
              },
              "componentIds": {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              "specificCauseIds": {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              "generalCauseIds": {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              "machineIds": {
                "items": {
                  "type": "number",
                  "format": "double"
                },
                "type": "array"
              },
              "shiftTitles": {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              "endTime": {
                "type": "string"
              },
              "startTime": {
                "type": "string"
              }
            },
            "required": [
              "endTime",
              "startTime"
            ],
            "type": "object"
          },
          "groupBy": {
            "$ref": "#/components/schemas/ParetoGroupType"
          },
          "splitByTag": {
            "type": "string"
          }
        },
        "required": [
          "where",
          "groupBy"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "StopSpecificCauseSettingsDTO": {
        "properties": {
          "id": {
            "$ref": "#/components/schemas/Uuid"
          },
          "isProgrammed": {
            "type": "boolean"
          },
          "programmedDowntimeMinutes": {
            "type": "number",
            "format": "double",
            "nullable": true
          }
        },
        "required": [
          "id",
          "isProgrammed",
          "programmedDowntimeMinutes"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "UpdateStopSpecificCauseSettingsRequest": {
        "properties": {
          "isProgrammed": {
            "type": "boolean"
          },
          "programmedDowntimeMinutes": {
            "type": "number",
            "format": "double",
            "nullable": true
          }
        },
        "type": "object",
        "additionalProperties": false
      },
      "MachineIdAndStartTime": {
        "properties": {
          "startTime": {
            "type": "number",
            "format": "double"
          },
          "machineId": {
            "type": "number",
            "format": "double"
          }
        },
        "required": [
          "startTime",
          "machineId"
        ],
        "type": "object"
      },
      "StopsClassificationsReq": {
        "properties": {
          "machines": {
            "items": {
              "$ref": "#/components/schemas/MachineIdAndStartTime"
            },
            "type": "array"
          },
          "generalCauseId": {
            "type": "string"
          },
          "specificCauseId": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "componentId": {
            "type": "string"
          },
          "isProgrammed": {
            "type": "boolean"
          },
          "isActive": {
            "type": "boolean"
          }
        },
        "required": [
          "machines"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "ShiftObjectValue": {
        "properties": {
          "isConsidered": {
            "type": "boolean"
          },
          "name": {
            "type": "string"
          },
          "endTime": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "number",
                "format": "double"
              }
            ]
          },
          "startTime": {
            "type": "string",
            "format": "date-time"
          },
          "id": {
            "type": "number",
            "format": "double"
          }
        },
        "required": [
          "isConsidered",
          "name",
          "endTime",
          "startTime",
          "id"
        ],
        "type": "object"
      },
      "CompanyObjectValue": {
        "properties": {
          "timezone": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "id": {
            "type": "number",
            "format": "double"
          }
        },
        "required": [
          "timezone",
          "name",
          "id"
        ],
        "type": "object"
      },
      "MachineObjectValue": {
        "properties": {
          "isActive": {
            "type": "boolean"
          },
          "name": {
            "type": "string"
          },
          "id": {
            "type": "number",
            "format": "double"
          }
        },
        "required": [
          "isActive",
          "name",
          "id"
        ],
        "type": "object"
      },
      "Partial_Nullable__id-string--name-string--___": {
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          }
        },
        "type": "object",
        "description": "Make all properties in T optional"
      },
      "GeneralCauseObjectValue": {
        "$ref": "#/components/schemas/Partial_Nullable__id-string--name-string--___"
      },
      "SpecificCauseObjectValue": {
        "$ref": "#/components/schemas/Partial_Nullable__id-string--name-string--___"
      },
      "ComponentObjectValue": {
        "$ref": "#/components/schemas/Partial_Nullable__id-string--name-string--___"
      },
      "Partial_Nullable__id-number--generalCause-GeneralCauseObjectValue--specificCause-SpecificCauseObjectValue--component-ComponentObjectValue--description-string--hasBeenAutomated-boolean--isActive-boolean--createdAt-Date--updatedAt-Date--___": {
        "properties": {
          "id": {
            "type": "number",
            "format": "double"
          },
          "generalCause": {
            "$ref": "#/components/schemas/GeneralCauseObjectValue"
          },
          "specificCause": {
            "$ref": "#/components/schemas/SpecificCauseObjectValue"
          },
          "component": {
            "$ref": "#/components/schemas/ComponentObjectValue"
          },
          "description": {
            "type": "string"
          },
          "hasBeenAutomated": {
            "type": "boolean"
          },
          "isActive": {
            "type": "boolean"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time"
          }
        },
        "type": "object",
        "description": "Make all properties in T optional"
      },
      "ClassificationObjectValue": {
        "$ref": "#/components/schemas/Partial_Nullable__id-number--generalCause-GeneralCauseObjectValue--specificCause-SpecificCauseObjectValue--component-ComponentObjectValue--description-string--hasBeenAutomated-boolean--isActive-boolean--createdAt-Date--updatedAt-Date--___"
      },
      "Partial_Nullable__id-number--firstName-string--lastName-string--___": {
        "properties": {
          "id": {
            "type": "number",
            "format": "double"
          },
          "firstName": {
            "type": "string"
          },
          "lastName": {
            "type": "string"
          }
        },
        "type": "object",
        "description": "Make all properties in T optional"
      },
      "OperatorObjectValue": {
        "$ref": "#/components/schemas/Partial_Nullable__id-number--firstName-string--lastName-string--___"
      },
      "GetStopsRes": {
        "properties": {
          "updatedAt": {
            "type": "string",
            "format": "date-time"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "operator": {
            "$ref": "#/components/schemas/OperatorObjectValue"
          },
          "classification": {
            "$ref": "#/components/schemas/ClassificationObjectValue"
          },
          "machine": {
            "$ref": "#/components/schemas/MachineObjectValue"
          },
          "company": {
            "$ref": "#/components/schemas/CompanyObjectValue"
          },
          "shift": {
            "$ref": "#/components/schemas/ShiftObjectValue"
          },
          "endTime": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "startTime": {
            "type": "string",
            "format": "date-time"
          },
          "id": {
            "type": "number",
            "format": "double"
          }
        },
        "required": [
          "updatedAt",
          "createdAt",
          "operator",
          "classification",
          "machine",
          "company",
          "shift",
          "endTime",
          "startTime",
          "id"
        ],
        "type": "object"
      },
      "Paginated_GetStopsRes_": {
        "properties": {
          "totalItems": {
            "type": "number",
            "format": "double"
          },
          "currentPage": {
            "type": "number",
            "format": "double"
          },
          "totalPages": {
            "type": "number",
            "format": "double"
          },
          "data": {
            "items": {
              "$ref": "#/components/schemas/GetStopsRes"
            },
            "type": "array"
          }
        },
        "required": [
          "totalItems",
          "currentPage",
          "totalPages",
          "data"
        ],
        "type": "object"
      },
      "Partial__from-number--to-number--__": {
        "properties": {
          "from": {
            "type": "number",
            "format": "double"
          },
          "to": {
            "type": "number",
            "format": "double"
          }
        },
        "type": "object",
        "description": "Make all properties in T optional"
      },
      "DateRangeFilters": {
        "$ref": "#/components/schemas/Partial__from-number--to-number--__"
      },
      "DurationFilters": {
        "$ref": "#/components/schemas/ComparisonFilters"
      },
      "StopType": {
        "enum": [
          "closed",
          "open",
          "all"
        ],
        "type": "string"
      },
      "IncludeFilters_StopType_": {
        "properties": {
          "include": {
            "items": {
              "$ref": "#/components/schemas/StopType"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "StopTypeFilters": {
        "$ref": "#/components/schemas/IncludeFilters_StopType_"
      },
      "ShiftType": {
        "enum": [
          "day",
          "morning",
          "afternoon",
          "night"
        ],
        "type": "string"
      },
      "IncludeAndExcludeFilters_ShiftType_": {
        "properties": {
          "exclude": {
            "items": {
              "$ref": "#/components/schemas/ShiftType"
            },
            "type": "array"
          },
          "include": {
            "items": {
              "$ref": "#/components/schemas/ShiftType"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "ShiftTypeFilters": {
        "$ref": "#/components/schemas/IncludeAndExcludeFilters_ShiftType_"
      },
      "GeneralCauseFilters": {
        "allOf": [
          {
            "$ref": "#/components/schemas/IncludeAndExcludeFilters_string_"
          },
          {
            "$ref": "#/components/schemas/FuzzySearchFilter"
          },
          {
            "properties": {
              "unclassified": {
                "type": "boolean"
              }
            },
            "type": "object"
          }
        ]
      },
      "SpecificCauseFilters": {
        "allOf": [
          {
            "$ref": "#/components/schemas/IncludeAndExcludeFilters_string_"
          },
          {
            "$ref": "#/components/schemas/FuzzySearchFilter"
          },
          {
            "properties": {
              "unclassified": {
                "type": "boolean"
              }
            },
            "type": "object"
          }
        ]
      },
      "Partial__dateRange-DateRangeFilters--machine-MachineFilters--duration-DurationFilters--stop-StopTypeFilters--shift-ShiftTypeFilters--generalCause-GeneralCauseFilters--specificCause-SpecificCauseFilters--page-number--pageSize-number--orderBy-machine-or-day-or-startTime-or-endTime-or-duration-or-shift--orderType-ASC-or-DESC--__": {
        "properties": {
          "dateRange": {
            "$ref": "#/components/schemas/DateRangeFilters"
          },
          "machine": {
            "$ref": "#/components/schemas/MachineFilters"
          },
          "duration": {
            "$ref": "#/components/schemas/DurationFilters"
          },
          "stop": {
            "$ref": "#/components/schemas/StopTypeFilters"
          },
          "shift": {
            "$ref": "#/components/schemas/ShiftTypeFilters"
          },
          "generalCause": {
            "$ref": "#/components/schemas/GeneralCauseFilters"
          },
          "specificCause": {
            "$ref": "#/components/schemas/SpecificCauseFilters"
          },
          "page": {
            "type": "number",
            "format": "double"
          },
          "pageSize": {
            "type": "number",
            "format": "double"
          },
          "orderBy": {
            "type": "string",
            "enum": [
              "machine",
              "day",
              "startTime",
              "endTime",
              "duration",
              "shift"
            ]
          },
          "orderType": {
            "type": "string",
            "enum": [
              "ASC",
              "DESC"
            ]
          }
        },
        "type": "object",
        "description": "Make all properties in T optional"
      },
      "GetBaseStopsParams": {
        "$ref": "#/components/schemas/Partial__dateRange-DateRangeFilters--machine-MachineFilters--duration-DurationFilters--stop-StopTypeFilters--shift-ShiftTypeFilters--generalCause-GeneralCauseFilters--specificCause-SpecificCauseFilters--page-number--pageSize-number--orderBy-machine-or-day-or-startTime-or-endTime-or-duration-or-shift--orderType-ASC-or-DESC--__"
      },
      "UserMetricsReq": {
        "properties": {
          "target": {
            "type": "string"
          },
          "count": {
            "type": "number",
            "format": "double"
          },
          "metric": {
            "type": "string"
          }
        },
        "required": [
          "count",
          "metric"
        ],
        "type": "object"
      },
      "ReportName": {
        "enum": [
          "stops",
          "stopsStandardized",
          "stopsWithProductionTimes",
          "availability",
          "availabilityPerSku",
          "classifiedMinutes",
          "classifiedMinutesByMonth",
          "noData",
          "noDataMonthly",
          "machines",
          "generalCauses",
          "specificCauses",
          "components",
          "oeeCompaniesAvailability",
          "workLog",
          "productionAdvancements"
        ],
        "type": "string"
      },
      "ReportFormat": {
        "enum": [
          "csv",
          "tsv",
          "json"
        ],
        "type": "string"
      },
      "GetMetricsReportRes": {
        "properties": {
          "energy": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "uptime": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "unplannedDowntime": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "total": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "stops": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "quality": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "plannedDowntime": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "performance": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "oee": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "netOee": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "netAvailability": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "downtime": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "defects": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "correct": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "averageSpeed": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "noData": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "availability": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "actualSpeed": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "shiftDuration": {
            "type": "number",
            "format": "double"
          },
          "shiftEndDate": {
            "type": "string",
            "format": "date-time"
          },
          "shiftStartDate": {
            "type": "string",
            "format": "date-time"
          },
          "shiftStatus": {
            "type": "boolean"
          },
          "shiftName": {
            "type": "string"
          },
          "machineName": {
            "type": "string"
          },
          "machineNodeId": {
            "type": "string"
          },
          "machineId": {
            "type": "string"
          },
          "companyName": {
            "type": "string"
          }
        },
        "required": [
          "shiftDuration",
          "shiftEndDate",
          "shiftStartDate",
          "shiftStatus",
          "shiftName",
          "machineName",
          "machineNodeId",
          "machineId",
          "companyName"
        ],
        "type": "object"
      },
      "Paginated_GetMetricsReportRes_": {
        "properties": {
          "totalItems": {
            "type": "number",
            "format": "double"
          },
          "currentPage": {
            "type": "number",
            "format": "double"
          },
          "totalPages": {
            "type": "number",
            "format": "double"
          },
          "data": {
            "items": {
              "$ref": "#/components/schemas/GetMetricsReportRes"
            },
            "type": "array"
          }
        },
        "required": [
          "totalItems",
          "currentPage",
          "totalPages",
          "data"
        ],
        "type": "object"
      },
      "ShiftMetric": {
        "enum": [
          "availability",
          "averageSpeed",
          "correct",
          "defects",
          "downtime",
          "netAvailability",
          "netOee",
          "oee",
          "performance",
          "plannedDowntime",
          "quality",
          "stops",
          "total",
          "unplannedDowntime",
          "uptime",
          "energy"
        ],
        "type": "string"
      },
      "IncludeAndExcludeFilters_ShiftMetric_": {
        "properties": {
          "exclude": {
            "items": {
              "$ref": "#/components/schemas/ShiftMetric"
            },
            "type": "array"
          },
          "include": {
            "items": {
              "$ref": "#/components/schemas/ShiftMetric"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "MetricFilters": {
        "allOf": [
          {
            "$ref": "#/components/schemas/FuzzySearchFilter"
          },
          {
            "$ref": "#/components/schemas/IncludeAndExcludeFilters_ShiftMetric_"
          }
        ]
      },
      "DateFilter": {
        "properties": {
          "between": {
            "$ref": "#/components/schemas/DateRange"
          },
          "notEqual": {
            "type": "string"
          },
          "equal": {
            "type": "string"
          },
          "lessThanOrEqual": {
            "type": "string"
          },
          "greaterThanOrEqual": {
            "type": "string"
          },
          "lessThan": {
            "type": "string"
          },
          "greaterThan": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "StartFilters": {
        "$ref": "#/components/schemas/DateFilter"
      },
      "EndFilters": {
        "$ref": "#/components/schemas/DateFilter"
      },
      "Partial__machines-MachineFilters--metrics-MetricFilters--start-StartFilters--end-EndFilters--page-number--pageSize-number--__": {
        "properties": {
          "machines": {
            "$ref": "#/components/schemas/MachineFilters"
          },
          "metrics": {
            "$ref": "#/components/schemas/MetricFilters"
          },
          "start": {
            "$ref": "#/components/schemas/StartFilters"
          },
          "end": {
            "$ref": "#/components/schemas/EndFilters"
          },
          "page": {
            "type": "number",
            "format": "double"
          },
          "pageSize": {
            "type": "number",
            "format": "double"
          }
        },
        "type": "object",
        "description": "Make all properties in T optional"
      },
      "GetBaseMetricsReportParams": {
        "$ref": "#/components/schemas/Partial__machines-MachineFilters--metrics-MetricFilters--start-StartFilters--end-EndFilters--page-number--pageSize-number--__"
      },
      "ISimpleWorkOrder": {
        "additionalProperties": false,
        "type": "object"
      },
      "SearchSimpleWorkOrderRes": {
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "name"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "Paginated_SearchSimpleWorkOrderRes_": {
        "properties": {
          "totalItems": {
            "type": "number",
            "format": "double"
          },
          "data": {
            "items": {
              "$ref": "#/components/schemas/SearchSimpleWorkOrderRes"
            },
            "type": "array"
          }
        },
        "required": [
          "totalItems",
          "data"
        ],
        "type": "object"
      },
      "TaggableSubject": {
        "enum": [
          "Machines",
          "Shifts",
          "StopGeneralCauses",
          "StopSpecificCauses",
          "Components",
          "Stops"
        ],
        "type": "string"
      },
      "TagValue": {
        "properties": {
          "sort": {
            "type": "number",
            "format": "double"
          },
          "color": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "isDefault": {
            "type": "boolean"
          },
          "tagValue": {
            "type": "string"
          },
          "tagKey": {
            "type": "string"
          },
          "subject": {
            "$ref": "#/components/schemas/TaggableSubject"
          },
          "companyId": {
            "type": "number",
            "format": "double"
          }
        },
        "required": [
          "sort",
          "color",
          "description",
          "isDefault",
          "tagValue",
          "tagKey",
          "subject",
          "companyId"
        ],
        "type": "object"
      },
      "TagDTO": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Identity"
          },
          {
            "$ref": "#/components/schemas/TagValue"
          }
        ]
      },
      "Pick_TagDTO.Exclude_keyofTagDTO.tagValue__": {
        "properties": {
          "description": {
            "type": "string"
          },
          "companyId": {
            "type": "number",
            "format": "double"
          },
          "sort": {
            "type": "number",
            "format": "double"
          },
          "id": {
            "$ref": "#/components/schemas/Uuid"
          },
          "subject": {
            "$ref": "#/components/schemas/TaggableSubject"
          },
          "tagKey": {
            "type": "string"
          },
          "isDefault": {
            "type": "boolean"
          },
          "color": {
            "type": "string"
          }
        },
        "required": [
          "description",
          "companyId",
          "sort",
          "id",
          "subject",
          "tagKey",
          "isDefault",
          "color"
        ],
        "type": "object",
        "description": "From T, pick a set of properties whose keys are in the union K"
      },
      "Omit_TagDTO.tagValue_": {
        "$ref": "#/components/schemas/Pick_TagDTO.Exclude_keyofTagDTO.tagValue__",
        "description": "Construct a type with the properties of T except for those in type K."
      },
      "TagKeyDTO": {
        "$ref": "#/components/schemas/Omit_TagDTO.tagValue_"
      },
      "SubjectKey": {
        "anyOf": [
          {
            "type": "number",
            "format": "double"
          },
          {
            "$ref": "#/components/schemas/Uuid"
          }
        ]
      },
      "TaggerDTO": {
        "properties": {
          "tagValue": {
            "type": "string"
          },
          "tagKey": {
            "type": "string"
          },
          "subjectId": {
            "$ref": "#/components/schemas/SubjectKey"
          },
          "subject": {
            "$ref": "#/components/schemas/TaggableSubject"
          }
        },
        "required": [
          "tagValue",
          "tagKey",
          "subjectId",
          "subject"
        ],
        "type": "object"
      },
      "WorkProgressStatus": {
        "enum": [
          "InProgress",
          "Completed"
        ],
        "type": "string"
      },
      "WorkProgress": {
        "properties": {
          "noDataMinutes": {
            "type": "number",
            "format": "double"
          },
          "stopMinutes": {
            "type": "number",
            "format": "double"
          },
          "workingMinutes": {
            "type": "number",
            "format": "double"
          },
          "quality": {
            "type": "number",
            "format": "double"
          },
          "availability": {
            "type": "number",
            "format": "double"
          },
          "performance": {
            "type": "number",
            "format": "double"
          },
          "defects": {
            "type": "number",
            "format": "double"
          },
          "produced": {
            "type": "number",
            "format": "double"
          },
          "quantityC": {
            "type": "number",
            "format": "double"
          },
          "quantityB": {
            "type": "number",
            "format": "double"
          },
          "quantityA": {
            "type": "number",
            "format": "double"
          },
          "targetQuantity": {
            "type": "number",
            "format": "double"
          },
          "status": {
            "$ref": "#/components/schemas/WorkProgressStatus"
          },
          "unit": {
            "type": "string"
          },
          "sku": {
            "type": "string"
          },
          "skuId": {
            "type": "string"
          },
          "work": {
            "type": "string"
          },
          "team": {
            "type": "string"
          },
          "operatorId": {
            "type": "number",
            "format": "double"
          },
          "end": {
            "type": "string",
            "format": "date-time"
          },
          "start": {
            "type": "string",
            "format": "date-time"
          },
          "machineName": {
            "type": "string"
          },
          "machineId": {
            "type": "number",
            "format": "double"
          },
          "companyId": {
            "type": "number",
            "format": "double"
          },
          "id": {
            "type": "string"
          }
        },
        "required": [
          "quality",
          "availability",
          "performance",
          "defects",
          "produced",
          "targetQuantity",
          "status",
          "unit",
          "skuId",
          "work",
          "team",
          "end",
          "start",
          "machineName",
          "machineId",
          "companyId",
          "id"
        ],
        "type": "object"
      },
      "WorkSchedule": {
        "properties": {
          "targetQuantity": {
            "type": "number",
            "format": "double"
          },
          "status": {
            "type": "string"
          },
          "unit": {
            "type": "string"
          },
          "skuId": {
            "type": "string"
          },
          "sku": {
            "type": "string"
          },
          "work": {
            "type": "string"
          },
          "team": {
            "type": "string"
          },
          "operatorId": {
            "type": "number",
            "format": "double"
          },
          "end": {
            "type": "string",
            "format": "date-time"
          },
          "start": {
            "type": "string",
            "format": "date-time"
          },
          "machineName": {
            "type": "string"
          },
          "machineId": {
            "type": "number",
            "format": "double"
          },
          "companyId": {
            "type": "number",
            "format": "double"
          },
          "id": {
            "type": "string"
          }
        },
        "required": [
          "status",
          "machineName",
          "machineId",
          "id"
        ],
        "type": "object"
      },
      "Pick_WorkSchedule.Exclude_keyofWorkSchedule.id-or-status-or-machineName__": {
        "properties": {
          "companyId": {
            "type": "number",
            "format": "double"
          },
          "machineId": {
            "type": "number",
            "format": "double"
          },
          "start": {
            "type": "string",
            "format": "date-time"
          },
          "end": {
            "type": "string",
            "format": "date-time"
          },
          "sku": {
            "type": "string"
          },
          "operatorId": {
            "type": "number",
            "format": "double"
          },
          "skuId": {
            "type": "string"
          },
          "unit": {
            "type": "string"
          },
          "team": {
            "type": "string"
          },
          "work": {
            "type": "string"
          },
          "targetQuantity": {
            "type": "number",
            "format": "double"
          }
        },
        "required": [
          "machineId"
        ],
        "type": "object",
        "description": "From T, pick a set of properties whose keys are in the union K"
      },
      "Omit_WorkSchedule.id-or-status-or-machineName_": {
        "$ref": "#/components/schemas/Pick_WorkSchedule.Exclude_keyofWorkSchedule.id-or-status-or-machineName__",
        "description": "Construct a type with the properties of T except for those in type K."
      },
      "Status.Scheduled": {
        "enum": [
          "Scheduled"
        ],
        "type": "string"
      },
      "UpsertWorkScheduleParams": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Omit_WorkSchedule.id-or-status-or-machineName_"
          },
          {
            "properties": {
              "id": {
                "type": "string"
              },
              "idealSpeedByHour": {
                "type": "number",
                "format": "double"
              },
              "status": {
                "$ref": "#/components/schemas/Status.Scheduled"
              }
            },
            "type": "object"
          }
        ]
      },
      "Pick_WorkParams.Exclude_keyofWorkParams.machineId-or-start__": {
        "properties": {
          "companyId": {
            "type": "number",
            "format": "double"
          },
          "defects": {
            "type": "number",
            "format": "double"
          },
          "status": {
            "type": "string"
          },
          "end": {
            "type": "string",
            "format": "date-time"
          },
          "sku": {
            "type": "string"
          },
          "operatorId": {
            "type": "number",
            "format": "double"
          },
          "skuId": {
            "type": "string"
          },
          "unit": {
            "type": "string"
          },
          "team": {
            "type": "string"
          },
          "work": {
            "type": "string"
          },
          "targetQuantity": {
            "type": "number",
            "format": "double"
          },
          "idealSpeedByHour": {
            "type": "number",
            "format": "double"
          },
          "produced": {
            "type": "number",
            "format": "double"
          },
          "source": {
            "type": "string"
          },
          "quantityA": {
            "type": "number",
            "format": "double"
          },
          "quantityB": {
            "type": "number",
            "format": "double"
          },
          "quantityC": {
            "type": "number",
            "format": "double"
          }
        },
        "type": "object",
        "description": "From T, pick a set of properties whose keys are in the union K"
      },
      "Omit_WorkParams.machineId-or-start_": {
        "$ref": "#/components/schemas/Pick_WorkParams.Exclude_keyofWorkParams.machineId-or-start__",
        "description": "Construct a type with the properties of T except for those in type K."
      },
      "UpdateWorkProgressParams": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Omit_WorkParams.machineId-or-start_"
          },
          {
            "properties": {
              "start": {
                "type": "string",
                "format": "date-time"
              },
              "machineId": {
                "type": "number",
                "format": "double"
              }
            },
            "type": "object"
          }
        ]
      },
      "Model": {
        "additionalProperties": false,
        "type": "object"
      },
      "IWorkLog": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Row"
          },
          {
            "properties": {
              "source": {
                "type": "string"
              },
              "defects": {
                "type": "number",
                "format": "double"
              },
              "produced": {
                "type": "number",
                "format": "double"
              },
              "idealSpeedByHour": {
                "type": "number",
                "format": "double"
              },
              "quantityC": {
                "type": "number",
                "format": "double"
              },
              "quantityB": {
                "type": "number",
                "format": "double"
              },
              "quantityA": {
                "type": "number",
                "format": "double"
              },
              "targetQuantity": {
                "type": "number",
                "format": "double"
              },
              "status": {
                "type": "string"
              },
              "unit": {
                "type": "string"
              },
              "skuId": {
                "type": "string",
                "nullable": true
              },
              "work": {
                "type": "string"
              },
              "team": {
                "type": "string"
              },
              "operatorId": {
                "type": "number",
                "format": "double"
              },
              "end": {
                "type": "string",
                "format": "date-time"
              },
              "start": {
                "type": "string",
                "format": "date-time"
              },
              "machineId": {
                "type": "number",
                "format": "double"
              },
              "companyId": {
                "type": "number",
                "format": "double"
              }
            },
            "required": [
              "source",
              "status",
              "unit",
              "skuId",
              "work",
              "team",
              "end",
              "start",
              "machineId",
              "companyId"
            ],
            "type": "object"
          }
        ]
      },
      "IWorkLogModel": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Model"
          },
          {
            "$ref": "#/components/schemas/IWorkLog"
          }
        ]
      },
      "WorkParams": {
        "properties": {
          "quantityC": {
            "type": "number",
            "format": "double"
          },
          "quantityB": {
            "type": "number",
            "format": "double"
          },
          "quantityA": {
            "type": "number",
            "format": "double"
          },
          "source": {
            "type": "string"
          },
          "defects": {
            "type": "number",
            "format": "double"
          },
          "produced": {
            "type": "number",
            "format": "double"
          },
          "idealSpeedByHour": {
            "type": "number",
            "format": "double"
          },
          "targetQuantity": {
            "type": "number",
            "format": "double"
          },
          "status": {
            "type": "string"
          },
          "unit": {
            "type": "string"
          },
          "sku": {
            "type": "string"
          },
          "skuId": {
            "type": "string"
          },
          "work": {
            "type": "string"
          },
          "team": {
            "type": "string"
          },
          "operatorId": {
            "type": "number",
            "format": "double"
          },
          "end": {
            "type": "string",
            "format": "date-time"
          },
          "start": {
            "type": "string",
            "format": "date-time"
          },
          "machineId": {
            "type": "number",
            "format": "double"
          },
          "companyId": {
            "type": "number",
            "format": "double"
          }
        },
        "required": [
          "start",
          "machineId"
        ],
        "type": "object"
      },
      "CreateWorkParams": {
        "$ref": "#/components/schemas/WorkParams"
      },
      "GetSkusRes": {
        "properties": {
          "Machines": {
            "items": {
              "properties": {
                "MachineAndSku": {
                  "properties": {
                    "countingFactor": {
                      "type": "number",
                      "format": "double",
                      "nullable": true
                    },
                    "idealSpeedByHour": {
                      "type": "number",
                      "format": "double",
                      "nullable": true
                    }
                  },
                  "required": [
                    "countingFactor",
                    "idealSpeedByHour"
                  ],
                  "type": "object"
                },
                "title": {
                  "type": "string",
                  "nullable": true
                },
                "id": {
                  "type": "number",
                  "format": "double",
                  "nullable": true
                }
              },
              "required": [
                "MachineAndSku",
                "title",
                "id"
              ],
              "type": "object"
            },
            "type": "array"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "archived": {
            "type": "boolean"
          },
          "unit": {
            "type": "string"
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "name": {
            "type": "string"
          },
          "sku": {
            "type": "string"
          },
          "id": {
            "type": "string"
          }
        },
        "required": [
          "updatedAt",
          "createdAt",
          "archived",
          "unit",
          "description",
          "name",
          "sku",
          "id"
        ],
        "type": "object"
      },
      "Paginated_GetSkusRes_": {
        "properties": {
          "totalItems": {
            "type": "number",
            "format": "double"
          },
          "currentPage": {
            "type": "number",
            "format": "double"
          },
          "totalPages": {
            "type": "number",
            "format": "double"
          },
          "data": {
            "items": {
              "$ref": "#/components/schemas/GetSkusRes"
            },
            "type": "array"
          }
        },
        "required": [
          "totalItems",
          "currentPage",
          "totalPages",
          "data"
        ],
        "type": "object"
      },
      "NameFilters": {
        "$ref": "#/components/schemas/FuzzySearchFilter"
      },
      "Partial__hasNominalSpeed-boolean--__": {
        "properties": {
          "hasNominalSpeed": {
            "type": "boolean"
          }
        },
        "type": "object",
        "description": "Make all properties in T optional"
      },
      "Partial__include-string-Array--__": {
        "properties": {
          "include": {
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "type": "object",
        "description": "Make all properties in T optional"
      },
      "Partial__name-NameFilters--sku-SkuFilters-and-Partial__hasNominalSpeed-boolean--__--page-number--pageSize-number--machines-Partial__include-string-Array--__--workOrders-Partial__include-string-Array--__--__": {
        "properties": {
          "name": {
            "$ref": "#/components/schemas/NameFilters"
          },
          "sku": {
            "allOf": [
              {
                "$ref": "#/components/schemas/SkuFilters"
              },
              {
                "$ref": "#/components/schemas/Partial__hasNominalSpeed-boolean--__"
              }
            ]
          },
          "page": {
            "type": "number",
            "format": "double"
          },
          "pageSize": {
            "type": "number",
            "format": "double"
          },
          "machines": {
            "$ref": "#/components/schemas/Partial__include-string-Array--__"
          },
          "workOrders": {
            "$ref": "#/components/schemas/Partial__include-string-Array--__"
          }
        },
        "type": "object",
        "description": "Make all properties in T optional"
      },
      "GetBaseSkusParams": {
        "$ref": "#/components/schemas/Partial__name-NameFilters--sku-SkuFilters-and-Partial__hasNominalSpeed-boolean--__--page-number--pageSize-number--machines-Partial__include-string-Array--__--workOrders-Partial__include-string-Array--__--__"
      },
      "ISku": {
        "additionalProperties": false,
        "type": "object"
      },
      "CreateSkusParams": {
        "properties": {
          "archived": {
            "type": "boolean"
          },
          "unit": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "sku": {
            "type": "string"
          },
          "companyId": {
            "type": "number",
            "format": "double"
          },
          "id": {
            "$ref": "#/components/schemas/Uuid"
          }
        },
        "type": "object"
      },
      "UpdateSkuParams": {
        "properties": {
          "unit": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "sku": {
            "type": "string"
          },
          "companyId": {
            "type": "number",
            "format": "double"
          },
          "id": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "IMachineAndSku": {
        "additionalProperties": false,
        "type": "object"
      },
      "GetNominalSpeedsRes": {
        "properties": {
          "goals": {
            "properties": {
              "productionTarget": {
                "properties": {
                  "value": {
                    "type": "number",
                    "format": "double"
                  },
                  "id": {
                    "type": "number",
                    "format": "double"
                  }
                },
                "required": [
                  "value",
                  "id"
                ],
                "type": "object",
                "nullable": true
              }
            },
            "required": [
              "productionTarget"
            ],
            "type": "object"
          },
          "idealSpeedByHour": {
            "type": "number",
            "format": "double"
          },
          "fixed": {
            "type": "boolean"
          },
          "countingFactor": {
            "type": "number",
            "format": "double"
          },
          "sku": {
            "properties": {
              "description": {
                "type": "string",
                "nullable": true
              },
              "unit": {
                "type": "string",
                "nullable": true
              },
              "name": {
                "type": "string",
                "nullable": true
              },
              "sku": {
                "type": "string"
              },
              "id": {
                "type": "string"
              }
            },
            "required": [
              "description",
              "unit",
              "name",
              "sku",
              "id"
            ],
            "type": "object"
          },
          "machine": {
            "properties": {
              "name": {
                "type": "string"
              },
              "isCountEnabled": {
                "type": "boolean"
              },
              "id": {
                "type": "number",
                "format": "double"
              }
            },
            "required": [
              "name",
              "isCountEnabled",
              "id"
            ],
            "type": "object"
          },
          "id": {
            "type": "string"
          }
        },
        "required": [
          "goals",
          "idealSpeedByHour",
          "fixed",
          "countingFactor",
          "sku",
          "machine",
          "id"
        ],
        "type": "object"
      },
      "Paginated_GetNominalSpeedsRes_": {
        "properties": {
          "totalItems": {
            "type": "number",
            "format": "double"
          },
          "currentPage": {
            "type": "number",
            "format": "double"
          },
          "totalPages": {
            "type": "number",
            "format": "double"
          },
          "data": {
            "items": {
              "$ref": "#/components/schemas/GetNominalSpeedsRes"
            },
            "type": "array"
          }
        },
        "required": [
          "totalItems",
          "currentPage",
          "totalPages",
          "data"
        ],
        "type": "object"
      },
      "Partial__skus-SkuFilters--machines-MachineFilters--page-number--pageSize-number--__": {
        "properties": {
          "skus": {
            "$ref": "#/components/schemas/SkuFilters"
          },
          "machines": {
            "$ref": "#/components/schemas/MachineFilters"
          },
          "page": {
            "type": "number",
            "format": "double"
          },
          "pageSize": {
            "type": "number",
            "format": "double"
          }
        },
        "type": "object",
        "description": "Make all properties in T optional"
      },
      "GetBaseNominalSpeedsParams": {
        "$ref": "#/components/schemas/Partial__skus-SkuFilters--machines-MachineFilters--page-number--pageSize-number--__"
      },
      "UpdateMachineAndSkuGoals": {
        "properties": {
          "productionTarget": {
            "type": "number",
            "format": "double",
            "nullable": true
          }
        },
        "type": "object"
      },
      "CreateMachineAndSkuParams": {
        "properties": {
          "goals": {
            "$ref": "#/components/schemas/UpdateMachineAndSkuGoals"
          },
          "countingFactor": {
            "type": "number",
            "format": "double"
          },
          "fixed": {
            "type": "boolean"
          },
          "idealSpeedByHour": {
            "type": "number",
            "format": "double"
          },
          "skuId": {
            "type": "string"
          },
          "machineId": {
            "type": "number",
            "format": "double"
          },
          "id": {
            "$ref": "#/components/schemas/Uuid"
          }
        },
        "required": [
          "machineId"
        ],
        "type": "object"
      },
      "CreateMachineAndSkuInBulkParams": {
        "properties": {
          "countingFactor": {
            "anyOf": [
              {
                "type": "number",
                "format": "double"
              },
              {
                "type": "string"
              }
            ]
          },
          "speed": {
            "anyOf": [
              {
                "type": "number",
                "format": "double"
              },
              {
                "type": "string"
              }
            ]
          },
          "sku": {
            "type": "string"
          },
          "machine": {
            "type": "string"
          }
        },
        "required": [
          "speed",
          "sku",
          "machine"
        ],
        "type": "object"
      },
      "CreateMachineAndSpeedInBulkParams": {
        "properties": {
          "countingFactor": {
            "anyOf": [
              {
                "type": "number",
                "format": "double"
              },
              {
                "type": "string"
              }
            ]
          },
          "speed": {
            "anyOf": [
              {
                "type": "number",
                "format": "double"
              },
              {
                "type": "string"
              }
            ]
          },
          "skuId": {
            "type": "string"
          },
          "machineId": {
            "type": "number",
            "format": "double"
          }
        },
        "required": [
          "speed",
          "skuId",
          "machineId"
        ],
        "type": "object"
      },
      "CreateMachineAndSpeedInBulkWithGoalsParams": {
        "allOf": [
          {
            "$ref": "#/components/schemas/CreateMachineAndSpeedInBulkParams"
          },
          {
            "properties": {
              "goals": {
                "$ref": "#/components/schemas/UpdateMachineAndSkuGoals"
              }
            },
            "type": "object"
          }
        ]
      },
      "CreateNominalSpeedInBulkForSkuParams": {
        "properties": {
          "skuInfo": {
            "$ref": "#/components/schemas/CreateSkusParams"
          },
          "skuId": {
            "type": "string"
          },
          "nominalSpeedByMachine": {
            "items": {
              "properties": {
                "speed": {
                  "anyOf": [
                    {
                      "type": "number",
                      "format": "double"
                    },
                    {
                      "type": "string"
                    }
                  ]
                },
                "machineId": {
                  "type": "number",
                  "format": "double"
                }
              },
              "required": [
                "speed",
                "machineId"
              ],
              "type": "object"
            },
            "type": "array"
          }
        },
        "required": [
          "nominalSpeedByMachine"
        ],
        "type": "object"
      },
      "UpdateNominalSpeedInBulkForSkuParams": {
        "properties": {
          "skuInfo": {
            "$ref": "#/components/schemas/UpdateSkuParams"
          },
          "skuId": {
            "type": "string"
          },
          "nominalSpeedByMachine": {
            "items": {
              "properties": {
                "speed": {
                  "anyOf": [
                    {
                      "type": "number",
                      "format": "double"
                    },
                    {
                      "type": "string"
                    }
                  ]
                },
                "machineId": {
                  "type": "number",
                  "format": "double"
                }
              },
              "required": [
                "speed",
                "machineId"
              ],
              "type": "object"
            },
            "type": "array"
          }
        },
        "required": [
          "nominalSpeedByMachine"
        ],
        "type": "object"
      },
      "Partial_CreateMachineAndSkuParams_": {
        "properties": {
          "id": {
            "$ref": "#/components/schemas/Uuid"
          },
          "machineId": {
            "type": "number",
            "format": "double"
          },
          "skuId": {
            "type": "string"
          },
          "idealSpeedByHour": {
            "type": "number",
            "format": "double"
          },
          "fixed": {
            "type": "boolean"
          },
          "countingFactor": {
            "type": "number",
            "format": "double"
          },
          "goals": {
            "$ref": "#/components/schemas/UpdateMachineAndSkuGoals"
          }
        },
        "type": "object",
        "description": "Make all properties in T optional"
      },
      "IWorkflowActionType": {
        "additionalProperties": false,
        "type": "object"
      },
      "GetWorkflowActionTypeRes": {
        "properties": {
          "updatedAt": {
            "type": "string",
            "format": "date-time"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "name": {
            "type": "string"
          },
          "id": {
            "type": "string"
          }
        },
        "required": [
          "updatedAt",
          "createdAt",
          "description",
          "name",
          "id"
        ],
        "type": "object"
      },
      "Paginated_GetWorkflowActionTypeRes_": {
        "properties": {
          "totalItems": {
            "type": "number",
            "format": "double"
          },
          "currentPage": {
            "type": "number",
            "format": "double"
          },
          "totalPages": {
            "type": "number",
            "format": "double"
          },
          "data": {
            "items": {
              "$ref": "#/components/schemas/GetWorkflowActionTypeRes"
            },
            "type": "array"
          }
        },
        "required": [
          "totalItems",
          "currentPage",
          "totalPages",
          "data"
        ],
        "type": "object"
      },
      "DescriptionFilters": {
        "$ref": "#/components/schemas/FuzzySearchFilter"
      },
      "Partial__name-NameFilters--description-DescriptionFilters--page-number--pageSize-number--__": {
        "properties": {
          "name": {
            "$ref": "#/components/schemas/NameFilters"
          },
          "description": {
            "$ref": "#/components/schemas/DescriptionFilters"
          },
          "page": {
            "type": "number",
            "format": "double"
          },
          "pageSize": {
            "type": "number",
            "format": "double"
          }
        },
        "type": "object",
        "description": "Make all properties in T optional"
      },
      "GetBaseWorkflowActionTypeParams": {
        "$ref": "#/components/schemas/Partial__name-NameFilters--description-DescriptionFilters--page-number--pageSize-number--__"
      },
      "BaseWorkflowActionTypeParams": {
        "properties": {
          "description": {
            "type": "string",
            "nullable": true
          },
          "name": {
            "type": "string"
          }
        },
        "required": [
          "description",
          "name"
        ],
        "type": "object"
      },
      "Partial_BaseWorkflowActionTypeParams_": {
        "properties": {
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string",
            "nullable": true
          }
        },
        "type": "object",
        "description": "Make all properties in T optional"
      },
      "IWorkflowType": {
        "additionalProperties": false,
        "type": "object"
      },
      "GetWorkflowTypeRes": {
        "properties": {
          "updatedAt": {
            "type": "string",
            "format": "date-time"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "name": {
            "type": "string"
          },
          "id": {
            "type": "string"
          }
        },
        "required": [
          "updatedAt",
          "createdAt",
          "description",
          "name",
          "id"
        ],
        "type": "object"
      },
      "Paginated_GetWorkflowTypeRes_": {
        "properties": {
          "totalItems": {
            "type": "number",
            "format": "double"
          },
          "currentPage": {
            "type": "number",
            "format": "double"
          },
          "totalPages": {
            "type": "number",
            "format": "double"
          },
          "data": {
            "items": {
              "$ref": "#/components/schemas/GetWorkflowTypeRes"
            },
            "type": "array"
          }
        },
        "required": [
          "totalItems",
          "currentPage",
          "totalPages",
          "data"
        ],
        "type": "object"
      },
      "GetBaseWorkflowTypeParams": {
        "$ref": "#/components/schemas/Partial__name-NameFilters--description-DescriptionFilters--page-number--pageSize-number--__"
      },
      "BaseWorkflowTypeParams": {
        "properties": {
          "description": {
            "type": "string",
            "nullable": true
          },
          "name": {
            "type": "string"
          }
        },
        "required": [
          "description",
          "name"
        ],
        "type": "object"
      },
      "Partial_BaseWorkflowTypeParams_": {
        "properties": {
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string",
            "nullable": true
          }
        },
        "type": "object",
        "description": "Make all properties in T optional"
      },
      "IWorkflow": {
        "additionalProperties": false,
        "type": "object"
      },
      "GetWorkflowRes": {
        "properties": {
          "updatedAt": {
            "type": "string",
            "format": "date-time"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "schedule": {
            "type": "string",
            "nullable": true
          },
          "workflowType": {
            "properties": {
              "name": {
                "type": "string"
              },
              "id": {
                "type": "number",
                "format": "double"
              }
            },
            "required": [
              "name",
              "id"
            ],
            "type": "object"
          },
          "name": {
            "type": "string"
          },
          "id": {
            "type": "string"
          }
        },
        "required": [
          "updatedAt",
          "createdAt",
          "schedule",
          "workflowType",
          "name",
          "id"
        ],
        "type": "object"
      },
      "Paginated_GetWorkflowRes_": {
        "properties": {
          "totalItems": {
            "type": "number",
            "format": "double"
          },
          "currentPage": {
            "type": "number",
            "format": "double"
          },
          "totalPages": {
            "type": "number",
            "format": "double"
          },
          "data": {
            "items": {
              "$ref": "#/components/schemas/GetWorkflowRes"
            },
            "type": "array"
          }
        },
        "required": [
          "totalItems",
          "currentPage",
          "totalPages",
          "data"
        ],
        "type": "object"
      },
      "WorkflowTypeFilters": {
        "allOf": [
          {
            "$ref": "#/components/schemas/IncludeAndExcludeFilters_number_"
          },
          {
            "$ref": "#/components/schemas/FuzzySearchFilter"
          }
        ]
      },
      "WorkflowStatus": {
        "enum": [
          "active",
          "inactive"
        ],
        "type": "string"
      },
      "IncludeAndExcludeFilters_WorkflowStatus_": {
        "properties": {
          "exclude": {
            "items": {
              "$ref": "#/components/schemas/WorkflowStatus"
            },
            "type": "array"
          },
          "include": {
            "items": {
              "$ref": "#/components/schemas/WorkflowStatus"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "StatusFilters": {
        "allOf": [
          {
            "$ref": "#/components/schemas/IncludeAndExcludeFilters_WorkflowStatus_"
          },
          {
            "$ref": "#/components/schemas/FuzzySearchFilter"
          }
        ]
      },
      "ScheduleFilters": {
        "$ref": "#/components/schemas/IncludeAndExcludeFilters_boolean_"
      },
      "Partial__name-NameFilters--workflowType-WorkflowTypeFilters--status-StatusFilters--schedule-ScheduleFilters--page-number--pageSize-number--__": {
        "properties": {
          "name": {
            "$ref": "#/components/schemas/NameFilters"
          },
          "workflowType": {
            "$ref": "#/components/schemas/WorkflowTypeFilters"
          },
          "status": {
            "$ref": "#/components/schemas/StatusFilters"
          },
          "schedule": {
            "$ref": "#/components/schemas/ScheduleFilters"
          },
          "page": {
            "type": "number",
            "format": "double"
          },
          "pageSize": {
            "type": "number",
            "format": "double"
          }
        },
        "type": "object",
        "description": "Make all properties in T optional"
      },
      "GetBaseWorkflowParams": {
        "$ref": "#/components/schemas/Partial__name-NameFilters--workflowType-WorkflowTypeFilters--status-StatusFilters--schedule-ScheduleFilters--page-number--pageSize-number--__"
      },
      "BaseWorkflowParams": {
        "properties": {
          "schedule": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "$ref": "#/components/schemas/WorkflowStatus"
          },
          "workflowTypeId": {
            "type": "number",
            "format": "double"
          },
          "name": {
            "type": "string"
          }
        },
        "required": [
          "schedule",
          "status",
          "workflowTypeId",
          "name"
        ],
        "type": "object"
      },
      "Partial_BaseWorkflowParams_": {
        "properties": {
          "name": {
            "type": "string"
          },
          "workflowTypeId": {
            "type": "number",
            "format": "double"
          },
          "status": {
            "$ref": "#/components/schemas/WorkflowStatus"
          },
          "schedule": {
            "type": "string",
            "nullable": true
          }
        },
        "type": "object",
        "description": "Make all properties in T optional"
      },
      "GetExportWorkOrdersRes": {
        "properties": {
          "totalItems": {
            "type": "number",
            "format": "double"
          },
          "denormalized": {
            "properties": {
              "workOrders": {
                "properties": {
                  "rows": {
                    "items": {
                      "items": {},
                      "type": "array"
                    },
                    "type": "array"
                  },
                  "cols": {
                    "items": {
                      "type": "string"
                    },
                    "type": "array"
                  }
                },
                "required": [
                  "rows",
                  "cols"
                ],
                "type": "object"
              }
            },
            "required": [
              "workOrders"
            ],
            "type": "object"
          },
          "normalized": {
            "properties": {
              "workOrdersWithMachine": {
                "properties": {
                  "rows": {
                    "items": {
                      "items": {},
                      "type": "array"
                    },
                    "type": "array"
                  },
                  "cols": {
                    "items": {
                      "type": "string"
                    },
                    "type": "array"
                  }
                },
                "required": [
                  "rows",
                  "cols"
                ],
                "type": "object"
              },
              "workOrdersWithSku": {
                "properties": {
                  "rows": {
                    "items": {
                      "items": {},
                      "type": "array"
                    },
                    "type": "array"
                  },
                  "cols": {
                    "items": {
                      "type": "string"
                    },
                    "type": "array"
                  }
                },
                "required": [
                  "rows",
                  "cols"
                ],
                "type": "object"
              }
            },
            "required": [
              "workOrdersWithMachine",
              "workOrdersWithSku"
            ],
            "type": "object"
          }
        },
        "required": [
          "totalItems"
        ],
        "type": "object"
      },
      "ProgressItem": {
        "properties": {
          "pending": {
            "type": "number",
            "format": "double"
          },
          "target": {
            "type": "number",
            "format": "double"
          },
          "defects": {
            "type": "number",
            "format": "double"
          },
          "correct": {
            "type": "number",
            "format": "double"
          },
          "name": {
            "type": "string"
          },
          "sku": {
            "type": "string"
          }
        },
        "required": [
          "pending",
          "target",
          "defects",
          "correct",
          "name",
          "sku"
        ],
        "type": "object"
      },
      "GetProgressRes": {
        "properties": {
          "progress": {
            "items": {
              "$ref": "#/components/schemas/ProgressItem"
            },
            "type": "array"
          },
          "status": {
            "$ref": "#/components/schemas/WorkOrderStatus"
          },
          "code": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "id": {
            "type": "string"
          }
        },
        "required": [
          "progress",
          "status",
          "code",
          "name",
          "id"
        ],
        "type": "object"
      },
      "SearchWorkOrderRes": {
        "properties": {
          "id": {
            "type": "string"
          },
          "code": {
            "type": "string"
          },
          "name": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "code",
          "name"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "PaginatedLegacy_SearchWorkOrderRes_": {
        "properties": {
          "totalItems": {
            "type": "number",
            "format": "double"
          },
          "data": {
            "items": {
              "$ref": "#/components/schemas/SearchWorkOrderRes"
            },
            "type": "array"
          }
        },
        "required": [
          "totalItems",
          "data"
        ],
        "type": "object"
      },
      "IWorkOrderAndSkuTarget": {
        "additionalProperties": false,
        "type": "object"
      },
      "IWorkOrderAndMachine": {
        "additionalProperties": false,
        "type": "object"
      },
      "IWorkOrderAndRawMaterial": {
        "additionalProperties": false,
        "type": "object"
      },
      "IWorkOrderValue": {
        "properties": {
          "id": {
            "type": "string"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time"
          },
          "deletedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "companyId": {
            "type": "number",
            "format": "double"
          },
          "start": {
            "type": "string",
            "format": "date-time"
          },
          "end": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "code": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "status": {
            "$ref": "#/components/schemas/WorkOrderStatus"
          },
          "source": {
            "type": "string"
          },
          "produced": {
            "type": "number",
            "format": "double"
          },
          "fixedStatus": {
            "type": "boolean"
          },
          "estimatedDeliveryTime": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "priority": {
            "type": "number",
            "format": "double"
          },
          "WorkOrderAndSkus": {
            "items": {
              "$ref": "#/components/schemas/IWorkOrderAndSkuTarget"
            },
            "type": "array"
          },
          "WorkOrderAndMachines": {
            "items": {
              "$ref": "#/components/schemas/IWorkOrderAndMachine"
            },
            "type": "array"
          },
          "WorkOrderAndRawMaterials": {
            "items": {
              "$ref": "#/components/schemas/IWorkOrderAndRawMaterial"
            },
            "type": "array"
          }
        },
        "required": [
          "id",
          "companyId",
          "code",
          "name",
          "status",
          "source",
          "estimatedDeliveryTime"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "Partial_RawMaterialValue_": {
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "companyId": {
            "type": "number",
            "format": "double"
          },
          "productionAdvancementId": {
            "type": "string"
          }
        },
        "type": "object",
        "description": "Make all properties in T optional"
      },
      "WorkOrderResponse": {
        "allOf": [
          {
            "$ref": "#/components/schemas/IWorkOrderValue"
          },
          {
            "properties": {
              "rawMaterials": {
                "items": {
                  "$ref": "#/components/schemas/Partial_RawMaterialValue_"
                },
                "type": "array"
              }
            },
            "required": [
              "rawMaterials"
            ],
            "type": "object"
          }
        ]
      },
      "GetTargetRes": {
        "properties": {
          "sku": {
            "properties": {
              "updatedAt": {
                "type": "string",
                "format": "date-time"
              },
              "produced": {
                "type": "number",
                "format": "double"
              },
              "target": {
                "type": "number",
                "format": "double"
              },
              "quantity": {
                "type": "number",
                "format": "double"
              },
              "unit": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "sku": {
                "type": "string"
              },
              "id": {
                "type": "string"
              }
            },
            "required": [
              "quantity",
              "unit",
              "name",
              "sku",
              "id"
            ],
            "type": "object"
          },
          "workOrderId": {
            "type": "string"
          },
          "id": {
            "type": "string"
          }
        },
        "required": [
          "sku",
          "workOrderId",
          "id"
        ],
        "type": "object"
      },
      "GetMachineRes": {
        "properties": {
          "machine": {
            "properties": {
              "title": {
                "type": "string"
              },
              "ref": {
                "type": "string"
              },
              "id": {
                "type": "number",
                "format": "double"
              }
            },
            "required": [
              "title",
              "ref",
              "id"
            ],
            "type": "object"
          },
          "workOrderId": {
            "type": "string"
          },
          "id": {
            "type": "string"
          }
        },
        "required": [
          "machine",
          "workOrderId",
          "id"
        ],
        "type": "object"
      },
      "GetWorkOrderRes": {
        "properties": {
          "machines": {
            "items": {
              "$ref": "#/components/schemas/GetMachineRes"
            },
            "type": "array"
          },
          "targets": {
            "items": {
              "$ref": "#/components/schemas/GetTargetRes"
            },
            "type": "array"
          },
          "defects": {
            "type": "number",
            "format": "double"
          },
          "produced": {
            "type": "number",
            "format": "double"
          },
          "estimatedDeliveryTime": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "status": {
            "$ref": "#/components/schemas/WorkOrderStatus"
          },
          "code": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "id": {
            "type": "string"
          }
        },
        "required": [
          "estimatedDeliveryTime",
          "status",
          "code",
          "name",
          "id"
        ],
        "type": "object"
      },
      "Target": {
        "properties": {
          "id": {
            "type": "string"
          },
          "workOrderId": {
            "type": "string"
          },
          "sku": {
            "properties": {
              "progress": {
                "type": "number",
                "format": "double"
              },
              "correct": {
                "type": "number",
                "format": "double"
              },
              "updatedAt": {
                "type": "string",
                "format": "date-time",
                "nullable": true
              },
              "unit": {
                "type": "string"
              },
              "description": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "sku": {
                "type": "string"
              },
              "id": {
                "type": "string"
              },
              "target": {
                "type": "number",
                "format": "double"
              }
            },
            "type": "object"
          }
        },
        "type": "object",
        "additionalProperties": false
      },
      "GetWorkOrdersRes": {
        "properties": {
          "id": {
            "type": "string"
          },
          "code": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "status": {
            "$ref": "#/components/schemas/WorkOrderStatus"
          },
          "deliveryDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "priority": {
            "type": "number",
            "format": "double"
          },
          "machines": {
            "items": {
              "$ref": "#/components/schemas/Machine"
            },
            "type": "array"
          },
          "targets": {
            "items": {
              "$ref": "#/components/schemas/Target"
            },
            "type": "array"
          },
          "rawMaterials": {
            "items": {
              "$ref": "#/components/schemas/Partial_RawMaterialValue_"
            },
            "type": "array"
          },
          "start": {
            "type": "string",
            "format": "date-time"
          },
          "end": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "id",
          "code",
          "name",
          "status",
          "deliveryDate",
          "priority"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "WorkOrderFilters": {
        "allOf": [
          {
            "$ref": "#/components/schemas/IncludeAndExcludeFilters_string_"
          },
          {
            "$ref": "#/components/schemas/FuzzySearchFilter"
          }
        ]
      },
      "SkuTargetFilters": {
        "$ref": "#/components/schemas/ComparisonFilters"
      },
      "IncludeAndExcludeFilters_WorkOrderStatus_": {
        "properties": {
          "exclude": {
            "items": {
              "$ref": "#/components/schemas/WorkOrderStatus"
            },
            "type": "array"
          },
          "include": {
            "items": {
              "$ref": "#/components/schemas/WorkOrderStatus"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "WorkOrderStatusFilters": {
        "allOf": [
          {
            "$ref": "#/components/schemas/IncludeAndExcludeFilters_WorkOrderStatus_"
          },
          {
            "$ref": "#/components/schemas/FuzzySearchFilter"
          }
        ]
      },
      "ProgressFilters": {
        "$ref": "#/components/schemas/ComparisonFilters"
      },
      "PriorityFilters": {
        "$ref": "#/components/schemas/ComparisonFilters"
      },
      "DeliveryDateFilters": {
        "$ref": "#/components/schemas/DateFilters"
      },
      "GetWorkOrderRawMaterialsFilters": {
        "properties": {
          "id": {
            "type": "string"
          }
        },
        "required": [
          "id"
        ],
        "type": "object"
      },
      "CreatedAtFilters": {
        "$ref": "#/components/schemas/DateFilters"
      },
      "Partial__workOrder-WorkOrderFilters--description-DescriptionFilters--machine-MachineFilters--sku-SkuFilters--skuTarget-SkuTargetFilters--workOrderStatus-WorkOrderStatusFilters--progress-ProgressFilters--priority-PriorityFilters--deliveryDate-DeliveryDateFilters--rawMaterials-GetWorkOrderRawMaterialsFilters-Array--createdAt-CreatedAtFilters--companyId-number--page-number--pageSize-number--__": {
        "properties": {
          "workOrder": {
            "$ref": "#/components/schemas/WorkOrderFilters"
          },
          "description": {
            "$ref": "#/components/schemas/DescriptionFilters"
          },
          "machine": {
            "$ref": "#/components/schemas/MachineFilters"
          },
          "sku": {
            "$ref": "#/components/schemas/SkuFilters"
          },
          "skuTarget": {
            "$ref": "#/components/schemas/SkuTargetFilters"
          },
          "workOrderStatus": {
            "$ref": "#/components/schemas/WorkOrderStatusFilters"
          },
          "progress": {
            "$ref": "#/components/schemas/ProgressFilters"
          },
          "priority": {
            "$ref": "#/components/schemas/PriorityFilters"
          },
          "deliveryDate": {
            "$ref": "#/components/schemas/DeliveryDateFilters"
          },
          "rawMaterials": {
            "items": {
              "$ref": "#/components/schemas/GetWorkOrderRawMaterialsFilters"
            },
            "type": "array"
          },
          "createdAt": {
            "$ref": "#/components/schemas/CreatedAtFilters"
          },
          "companyId": {
            "type": "number",
            "format": "double"
          },
          "page": {
            "type": "number",
            "format": "double"
          },
          "pageSize": {
            "type": "number",
            "format": "double"
          }
        },
        "type": "object",
        "description": "Make all properties in T optional"
      },
      "GetWorkOrderFilters": {
        "$ref": "#/components/schemas/Partial__workOrder-WorkOrderFilters--description-DescriptionFilters--machine-MachineFilters--sku-SkuFilters--skuTarget-SkuTargetFilters--workOrderStatus-WorkOrderStatusFilters--progress-ProgressFilters--priority-PriorityFilters--deliveryDate-DeliveryDateFilters--rawMaterials-GetWorkOrderRawMaterialsFilters-Array--createdAt-CreatedAtFilters--companyId-number--page-number--pageSize-number--__"
      },
      "BulkCreateWorkOrderTargetsParams": {
        "properties": {
          "companyId": {
            "type": "number",
            "format": "double"
          },
          "source": {
            "type": "string"
          },
          "workOrders": {
            "items": {
              "allOf": [
                {
                  "properties": {
                    "skus": {
                      "items": {
                        "properties": {
                          "quantity": {
                            "type": "number",
                            "format": "double"
                          },
                          "id": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "quantity",
                          "id"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "status": {
                      "$ref": "#/components/schemas/WorkOrderStatus"
                    },
                    "priority": {
                      "type": "number",
                      "format": "double"
                    },
                    "code": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "skus",
                    "status",
                    "code",
                    "name"
                  ],
                  "type": "object"
                },
                {
                  "$ref": "#/components/schemas/CustomFieldsParams"
                }
              ]
            },
            "type": "array"
          },
          "newSkus": {
            "items": {
              "properties": {
                "id": {
                  "type": "string"
                },
                "unit": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                },
                "sku": {
                  "type": "string"
                }
              },
              "required": [
                "id",
                "unit",
                "name",
                "sku"
              ],
              "type": "object"
            },
            "type": "array"
          }
        },
        "required": [
          "workOrders",
          "newSkus"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "WorkOrdersWithSkuRow": {
        "properties": {
          "skuQuantity": {
            "type": "number",
            "format": "double"
          },
          "skuSku": {
            "type": "string"
          },
          "workOrderName": {
            "type": "string",
            "nullable": true
          },
          "workOrderCode": {
            "type": "string"
          },
          "row": {
            "type": "number",
            "format": "double"
          }
        },
        "required": [
          "skuQuantity",
          "skuSku",
          "workOrderName",
          "workOrderCode",
          "row"
        ],
        "type": "object"
      },
      "WorkOrdersWithMachineRow": {
        "properties": {
          "machineTitle": {
            "type": "string"
          },
          "workOrderCode": {
            "type": "string"
          },
          "row": {
            "type": "number",
            "format": "double"
          }
        },
        "required": [
          "machineTitle",
          "workOrderCode",
          "row"
        ],
        "type": "object"
      },
      "WorkOrdersWithRawMaterial": {
        "properties": {
          "rawMaterialName": {
            "type": "string"
          },
          "workOrderCode": {
            "type": "string"
          },
          "row": {
            "type": "number",
            "format": "double"
          }
        },
        "required": [
          "rawMaterialName",
          "workOrderCode",
          "row"
        ],
        "type": "object"
      },
      "ImportWorkOrderParams": {
        "properties": {
          "workOrdersWithSku": {
            "items": {
              "$ref": "#/components/schemas/WorkOrdersWithSkuRow"
            },
            "type": "array"
          },
          "workOrdersWithMachine": {
            "items": {
              "$ref": "#/components/schemas/WorkOrdersWithMachineRow"
            },
            "type": "array"
          },
          "workOrdersWithRawMaterial": {
            "items": {
              "$ref": "#/components/schemas/WorkOrdersWithRawMaterial"
            },
            "type": "array"
          }
        },
        "type": "object",
        "additionalProperties": false
      },
      "IWorkOrder": {
        "additionalProperties": false,
        "type": "object"
      },
      "CreateWorkOrderParams": {
        "allOf": [
          {
            "properties": {
              "priority": {
                "type": "number",
                "format": "double"
              },
              "fixedStatus": {
                "type": "boolean"
              },
              "estimatedDeliveryTime": {
                "type": "string",
                "format": "date-time",
                "nullable": true
              },
              "source": {
                "type": "string"
              },
              "status": {
                "$ref": "#/components/schemas/WorkOrderStatus"
              },
              "name": {
                "type": "string"
              },
              "code": {
                "type": "string"
              },
              "end": {
                "type": "string",
                "format": "date-time",
                "nullable": true
              },
              "start": {
                "type": "string",
                "format": "date-time",
                "nullable": true
              },
              "companyId": {
                "type": "number",
                "format": "double"
              },
              "id": {
                "type": "string"
              }
            },
            "type": "object"
          },
          {
            "$ref": "#/components/schemas/CustomFieldsParams"
          }
        ]
      },
      "UpdateProductionFullWorkOrderRawMaterialsParams": {
        "properties": {
          "name": {
            "type": "string"
          },
          "id": {
            "type": "string"
          }
        },
        "required": [
          "name"
        ],
        "type": "object"
      },
      "CreateWorkOrderProductionFullParams": {
        "allOf": [
          {
            "properties": {
              "rawMaterials": {
                "items": {
                  "$ref": "#/components/schemas/UpdateProductionFullWorkOrderRawMaterialsParams"
                },
                "type": "array"
              },
              "machines": {
                "items": {
                  "properties": {
                    "machineId": {
                      "type": "number",
                      "format": "double"
                    }
                  },
                  "required": [
                    "machineId"
                  ],
                  "type": "object"
                },
                "type": "array"
              },
              "targets": {
                "items": {
                  "properties": {
                    "targetQuantity": {
                      "type": "number",
                      "format": "double"
                    },
                    "skuId": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "targetQuantity",
                    "skuId"
                  ],
                  "type": "object"
                },
                "type": "array"
              },
              "workOrder": {
                "properties": {
                  "estimatedDeliveryTime": {
                    "type": "string",
                    "format": "date-time",
                    "nullable": true
                  },
                  "priority": {
                    "type": "number",
                    "format": "double"
                  },
                  "fixedStatus": {
                    "type": "boolean"
                  },
                  "source": {
                    "type": "string"
                  },
                  "status": {
                    "$ref": "#/components/schemas/WorkOrderStatus"
                  },
                  "name": {
                    "type": "string"
                  },
                  "code": {
                    "type": "string"
                  },
                  "end": {
                    "type": "string",
                    "format": "date-time",
                    "nullable": true
                  },
                  "start": {
                    "type": "string",
                    "format": "date-time",
                    "nullable": true
                  },
                  "companyId": {
                    "type": "number",
                    "format": "double"
                  },
                  "id": {
                    "type": "string"
                  }
                },
                "required": [
                  "estimatedDeliveryTime",
                  "priority",
                  "source",
                  "status",
                  "name",
                  "code"
                ],
                "type": "object"
              }
            },
            "required": [
              "machines",
              "targets",
              "workOrder"
            ],
            "type": "object"
          },
          {
            "$ref": "#/components/schemas/CustomFieldsParams"
          }
        ]
      },
      "Partial_CreateWorkOrderParams_": {
        "properties": {
          "id": {
            "type": "string"
          },
          "companyId": {
            "type": "number",
            "format": "double"
          },
          "start": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "end": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "code": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "status": {
            "$ref": "#/components/schemas/WorkOrderStatus"
          },
          "source": {
            "type": "string"
          },
          "estimatedDeliveryTime": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "fixedStatus": {
            "type": "boolean"
          },
          "priority": {
            "type": "number",
            "format": "double"
          },
          "custom": {
            "properties": {},
            "additionalProperties": {},
            "type": "object"
          }
        },
        "type": "object",
        "description": "Make all properties in T optional"
      },
      "Partial__start-Date-or-null--end-Date-or-null--code-string--name-string--status-WorkOrderStatus--fixedStatus-boolean--priority-number--estimatedDeliveryTime-Date-or-null--__": {
        "properties": {
          "start": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "end": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "code": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "status": {
            "$ref": "#/components/schemas/WorkOrderStatus"
          },
          "fixedStatus": {
            "type": "boolean"
          },
          "priority": {
            "type": "number",
            "format": "double"
          },
          "estimatedDeliveryTime": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        },
        "type": "object",
        "description": "Make all properties in T optional"
      },
      "UpdateProductionFullWorkOrderParams": {
        "allOf": [
          {
            "properties": {
              "rawMaterials": {
                "items": {
                  "$ref": "#/components/schemas/UpdateProductionFullWorkOrderRawMaterialsParams"
                },
                "type": "array"
              },
              "skus": {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              "machines": {
                "items": {
                  "type": "number",
                  "format": "double"
                },
                "type": "array"
              },
              "workOrder": {
                "$ref": "#/components/schemas/Partial__start-Date-or-null--end-Date-or-null--code-string--name-string--status-WorkOrderStatus--fixedStatus-boolean--priority-number--estimatedDeliveryTime-Date-or-null--__"
              }
            },
            "required": [
              "skus",
              "machines",
              "workOrder"
            ],
            "type": "object"
          },
          {
            "$ref": "#/components/schemas/CustomFieldsParams"
          }
        ]
      },
      "GetTargetsRes": {
        "properties": {
          "targets": {
            "items": {
              "properties": {
                "sku": {
                  "properties": {
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "progress": {
                      "type": "number",
                      "format": "double"
                    },
                    "correct": {
                      "type": "number",
                      "format": "double"
                    },
                    "target": {
                      "type": "number",
                      "format": "double"
                    },
                    "unit": {
                      "type": "string"
                    },
                    "description": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "sku": {
                      "type": "string"
                    },
                    "id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "updatedAt",
                    "createdAt",
                    "progress",
                    "correct",
                    "target",
                    "unit",
                    "description",
                    "name",
                    "sku",
                    "id"
                  ],
                  "type": "object"
                },
                "id": {
                  "type": "string"
                }
              },
              "required": [
                "sku",
                "id"
              ],
              "type": "object"
            },
            "type": "array"
          },
          "workOrderId": {
            "type": "string"
          }
        },
        "required": [
          "targets",
          "workOrderId"
        ],
        "type": "object"
      },
      "CreateWorkOrderWithManyTargetsRawMaterialsParams": {
        "properties": {
          "name": {
            "type": "string"
          },
          "id": {
            "type": "string"
          }
        },
        "required": [
          "name"
        ],
        "type": "object"
      },
      "CreateWorkOrderWithManyTargetsParams": {
        "properties": {
          "source": {
            "type": "string"
          },
          "companyId": {
            "type": "number",
            "format": "double"
          },
          "rawMaterials": {
            "items": {
              "$ref": "#/components/schemas/CreateWorkOrderWithManyTargetsRawMaterialsParams"
            },
            "type": "array"
          },
          "machines": {
            "items": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "number",
                  "format": "double"
                }
              ]
            },
            "type": "array"
          },
          "skus": {
            "items": {
              "properties": {
                "quantity": {
                  "type": "number",
                  "format": "double",
                  "nullable": true
                },
                "id": {
                  "type": "string"
                }
              },
              "required": [
                "quantity",
                "id"
              ],
              "type": "object"
            },
            "type": "array"
          },
          "workOrder": {
            "properties": {
              "status": {
                "$ref": "#/components/schemas/WorkOrderStatus"
              },
              "name": {
                "type": "string"
              },
              "code": {
                "type": "string"
              }
            },
            "required": [
              "status",
              "name",
              "code"
            ],
            "type": "object"
          },
          "id": {
            "type": "string"
          }
        },
        "required": [
          "machines",
          "skus",
          "workOrder"
        ],
        "type": "object"
      },
      "AddTargetToWorkOrderParams": {
        "properties": {
          "targetQuantity": {
            "type": "number",
            "format": "double"
          },
          "skuId": {
            "type": "string"
          }
        },
        "required": [
          "targetQuantity",
          "skuId"
        ],
        "type": "object"
      },
      "UpdateWorkOrderAndSkuTargetRawMaterialParams": {
        "properties": {
          "name": {
            "type": "string"
          },
          "id": {
            "type": "string",
            "nullable": true
          }
        },
        "required": [
          "name",
          "id"
        ],
        "type": "object"
      },
      "UpdateWorkOrderAndSkuTargetParams": {
        "properties": {
          "machines": {
            "items": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "number",
                  "format": "double"
                }
              ]
            },
            "type": "array"
          },
          "rawMaterials": {
            "items": {
              "$ref": "#/components/schemas/UpdateWorkOrderAndSkuTargetRawMaterialParams"
            },
            "type": "array"
          },
          "skus": {
            "items": {
              "properties": {
                "quantity": {
                  "type": "number",
                  "format": "double"
                },
                "id": {
                  "type": "string"
                }
              },
              "required": [
                "quantity",
                "id"
              ],
              "type": "object"
            },
            "type": "array"
          },
          "workOrder": {
            "properties": {
              "companyId": {
                "type": "number",
                "format": "double"
              },
              "status": {
                "$ref": "#/components/schemas/WorkOrderStatus"
              },
              "name": {
                "type": "string"
              },
              "code": {
                "type": "string"
              },
              "id": {
                "type": "string"
              }
            },
            "required": [
              "status",
              "name",
              "code",
              "id"
            ],
            "type": "object"
          }
        },
        "required": [
          "machines",
          "skus",
          "workOrder"
        ],
        "type": "object"
      },
      "UpdateTargetParams": {
        "properties": {
          "targetQuantity": {
            "type": "number",
            "format": "double"
          }
        },
        "required": [
          "targetQuantity"
        ],
        "type": "object"
      },
      "DeleteWorkOrderTargetsParams": {
        "properties": {
          "workOrderIds": {
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "required": [
          "workOrderIds"
        ],
        "type": "object"
      },
      "WorkOrderAndMachinePriority": {
        "enum": [
          "lowest",
          "low",
          "medium",
          "high",
          "highest"
        ],
        "type": "string"
      },
      "CreateWorkOrderAndMachineParams": {
        "properties": {
          "end": {
            "type": "string",
            "format": "date-time"
          },
          "priority": {
            "$ref": "#/components/schemas/WorkOrderAndMachinePriority"
          },
          "machineId": {
            "type": "number",
            "format": "double"
          },
          "workOrderId": {
            "type": "string"
          },
          "id": {
            "type": "string"
          }
        },
        "required": [
          "end",
          "priority",
          "machineId",
          "workOrderId"
        ],
        "type": "object"
      },
      "Partial_CreateWorkOrderAndMachineParams_": {
        "properties": {
          "id": {
            "type": "string"
          },
          "workOrderId": {
            "type": "string"
          },
          "machineId": {
            "type": "number",
            "format": "double"
          },
          "priority": {
            "$ref": "#/components/schemas/WorkOrderAndMachinePriority"
          },
          "end": {
            "type": "string",
            "format": "date-time"
          }
        },
        "type": "object",
        "description": "Make all properties in T optional"
      },
      "IWorkStep": {
        "additionalProperties": false,
        "type": "object"
      },
      "WorkStepSummary": {
        "allOf": [
          {
            "$ref": "#/components/schemas/IWorkStep"
          },
          {
            "properties": {
              "rawMaterials": {
                "items": {
                  "$ref": "#/components/schemas/RawMaterialValue"
                },
                "type": "array"
              },
              "defectReason": {
                "type": "string",
                "nullable": true
              },
              "idealSpeedByHour": {
                "type": "number",
                "format": "double",
                "nullable": true
              },
              "skuUnit": {
                "type": "string",
                "nullable": true
              },
              "skuName": {
                "type": "string",
                "nullable": true
              },
              "skuDescription": {
                "type": "string",
                "nullable": true
              },
              "sku": {
                "type": "string",
                "nullable": true
              },
              "skuId": {
                "type": "string",
                "nullable": true
              },
              "work": {
                "type": "string",
                "nullable": true
              },
              "workOrderStatus": {
                "type": "string",
                "nullable": true
              },
              "workOrderId": {
                "type": "string",
                "nullable": true
              },
              "operatorLastName": {
                "type": "string",
                "nullable": true
              },
              "operatorFullName": {
                "type": "string",
                "nullable": true
              },
              "operatorFirstName": {
                "type": "string",
                "nullable": true
              },
              "machineName": {
                "type": "string",
                "nullable": true
              }
            },
            "type": "object"
          }
        ]
      },
      "PostWorkStepParams": {
        "properties": {
          "isAutomated": {
            "type": "boolean"
          },
          "idealSpeedByHour": {
            "type": "number",
            "format": "double"
          },
          "completeWorkOrder": {
            "type": "boolean"
          },
          "rawMaterials": {
            "items": {
              "$ref": "#/components/schemas/Partial_RawMaterialValue_"
            },
            "type": "array"
          },
          "workingMinutes": {
            "type": "number",
            "format": "double"
          },
          "workOrder": {
            "type": "string"
          },
          "workOrderId": {
            "type": "string"
          },
          "sku": {
            "type": "string"
          },
          "skuId": {
            "type": "string"
          },
          "qualityIssueId": {
            "type": "string",
            "nullable": true
          },
          "workOrderAndSkuId": {
            "type": "string"
          },
          "scrap": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "defects": {
            "type": "number",
            "format": "double"
          },
          "produced": {
            "type": "number",
            "format": "double"
          },
          "end": {
            "type": "string",
            "format": "date-time"
          },
          "start": {
            "type": "string",
            "format": "date-time"
          },
          "operatorId": {
            "type": "number",
            "format": "double"
          },
          "machineId": {
            "type": "number",
            "format": "double"
          },
          "id": {
            "type": "string"
          }
        },
        "required": [
          "end",
          "machineId"
        ],
        "type": "object"
      },
      "BulkCreateWorkStepParams": {
        "properties": {
          "id": {
            "type": "string"
          },
          "operatorId": {
            "type": "number",
            "format": "double"
          },
          "workOrderAndSkuId": {
            "type": "string"
          },
          "machineId": {
            "type": "number",
            "format": "double"
          },
          "qualityIssueId": {
            "type": "string"
          },
          "quality": {
            "type": "string"
          },
          "defects": {
            "type": "number",
            "format": "double"
          },
          "produced": {
            "type": "number",
            "format": "double"
          },
          "end": {
            "type": "string",
            "format": "date-time"
          },
          "start": {
            "type": "string",
            "format": "date-time"
          },
          "operator": {
            "type": "string"
          },
          "machine": {
            "type": "string"
          },
          "sku": {
            "type": "string"
          },
          "workOrder": {
            "type": "string"
          }
        },
        "required": [
          "defects",
          "produced",
          "end",
          "operator",
          "machine",
          "sku",
          "workOrder"
        ],
        "type": "object"
      },
      "Partial_PostWorkStepParams_": {
        "properties": {
          "id": {
            "type": "string"
          },
          "machineId": {
            "type": "number",
            "format": "double"
          },
          "operatorId": {
            "type": "number",
            "format": "double"
          },
          "start": {
            "type": "string",
            "format": "date-time"
          },
          "end": {
            "type": "string",
            "format": "date-time"
          },
          "produced": {
            "type": "number",
            "format": "double"
          },
          "defects": {
            "type": "number",
            "format": "double"
          },
          "scrap": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "workOrderAndSkuId": {
            "type": "string"
          },
          "qualityIssueId": {
            "type": "string",
            "nullable": true
          },
          "skuId": {
            "type": "string"
          },
          "sku": {
            "type": "string"
          },
          "workOrderId": {
            "type": "string"
          },
          "workOrder": {
            "type": "string"
          },
          "workingMinutes": {
            "type": "number",
            "format": "double"
          },
          "rawMaterials": {
            "items": {
              "$ref": "#/components/schemas/Partial_RawMaterialValue_"
            },
            "type": "array"
          },
          "completeWorkOrder": {
            "type": "boolean"
          },
          "idealSpeedByHour": {
            "type": "number",
            "format": "double"
          },
          "isAutomated": {
            "type": "boolean"
          }
        },
        "type": "object",
        "description": "Make all properties in T optional"
      },
      "IQualityIssue": {
        "additionalProperties": false,
        "type": "object"
      },
      "PostQualityIssueParams": {
        "properties": {
          "qualityIssueGroupId": {
            "type": "string"
          },
          "order": {
            "type": "number",
            "format": "double"
          },
          "description": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "id": {
            "type": "string"
          }
        },
        "required": [
          "title"
        ],
        "type": "object"
      },
      "CreateQualityIssueParams": {
        "properties": {
          "qualityIssueGroupId": {
            "type": "string"
          },
          "order": {
            "type": "number",
            "format": "double"
          },
          "description": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "id": {
            "type": "string"
          }
        },
        "required": [
          "title"
        ],
        "type": "object"
      },
      "Partial_PostQualityIssueParams_": {
        "properties": {
          "id": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "order": {
            "type": "number",
            "format": "double"
          },
          "qualityIssueGroupId": {
            "type": "string"
          }
        },
        "type": "object",
        "description": "Make all properties in T optional"
      },
      "StopMetricsResponseRow": {
        "properties": {
          "identifier": {
            "type": "string"
          },
          "attributes": {
            "properties": {},
            "additionalProperties": {
              "anyOf": [
                {
                  "type": "number",
                  "format": "double"
                },
                {
                  "type": "string"
                }
              ],
              "nullable": true
            },
            "type": "object"
          }
        },
        "required": [
          "identifier",
          "attributes"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "StopMetricsResponse": {
        "properties": {
          "totalItems": {
            "type": "number",
            "format": "double"
          },
          "currentPage": {
            "type": "number",
            "format": "double"
          },
          "totalPages": {
            "type": "number",
            "format": "double"
          },
          "data": {
            "items": {
              "$ref": "#/components/schemas/StopMetricsResponseRow"
            },
            "type": "array"
          }
        },
        "required": [
          "totalItems",
          "currentPage",
          "totalPages",
          "data"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "StopMetricsDateRangeCriteria": {
        "properties": {
          "to": {
            "type": "string",
            "format": "date-time"
          },
          "from": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "to",
          "from"
        ],
        "type": "object"
      },
      "StopMetricKeyAttribute": {
        "description": "Dimensions a stops-analytics query can group/filter by.",
        "enum": [
          "machine_id",
          "operator_id",
          "general_cause_id",
          "specific_cause_id",
          "component_id",
          "shift_id",
          "shift_title",
          "range_from",
          "range_to",
          "planning",
          "classification"
        ],
        "type": "string"
      },
      "StopMetricValueAttribute": {
        "description": "Measures (aggregations) a stops-analytics query can compute.",
        "enum": [
          "stop_count",
          "downtime",
          "mean_stop_time",
          "classified_count",
          "classified_downtime",
          "classification_rate",
          "planned_downtime",
          "planned_stop_count",
          "downtime_allowance",
          "exceeded_allowance",
          "avg_downtime_allowance",
          "avg_classification_delay"
        ],
        "type": "string"
      },
      "StopMetricsFilterAttribute": {
        "anyOf": [
          {
            "$ref": "#/components/schemas/StopMetricKeyAttribute"
          },
          {
            "$ref": "#/components/schemas/StopMetricValueAttribute"
          }
        ]
      },
      "StopMetricsFilterValue": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "number",
            "format": "double"
          },
          {
            "type": "boolean"
          },
          {
            "items": {
              "type": "number",
              "format": "double"
            },
            "type": "array"
          },
          {
            "items": {
              "type": "string",
              "nullable": true
            },
            "type": "array"
          }
        ]
      },
      "StopMetricsFilterCondition": {
        "properties": {
          "operator": {
            "$ref": "#/components/schemas/FilterOperator"
          },
          "value": {
            "$ref": "#/components/schemas/StopMetricsFilterValue"
          },
          "attribute": {
            "$ref": "#/components/schemas/StopMetricsFilterAttribute"
          }
        },
        "required": [
          "operator",
          "value",
          "attribute"
        ],
        "type": "object"
      },
      "StopMetricsFilterCriteria": {
        "properties": {
          "conditions": {
            "items": {
              "$ref": "#/components/schemas/StopMetricsFilterCondition"
            },
            "type": "array"
          },
          "date_range": {
            "$ref": "#/components/schemas/StopMetricsDateRangeCriteria"
          }
        },
        "required": [
          "conditions",
          "date_range"
        ],
        "type": "object"
      },
      "StopMetricsGroupByCriteria": {
        "properties": {
          "period": {
            "$ref": "#/components/schemas/GroupByPeriod"
          },
          "attributes": {
            "items": {
              "$ref": "#/components/schemas/StopMetricKeyAttribute"
            },
            "type": "array"
          }
        },
        "required": [
          "attributes"
        ],
        "type": "object"
      },
      "StopMetricsSortingAttribute": {
        "anyOf": [
          {
            "$ref": "#/components/schemas/StopMetricKeyAttribute"
          },
          {
            "$ref": "#/components/schemas/StopMetricValueAttribute"
          }
        ]
      },
      "StopMetricsSortingCriteria": {
        "items": {
          "properties": {
            "attribute": {
              "$ref": "#/components/schemas/StopMetricsSortingAttribute"
            },
            "direction": {
              "$ref": "#/components/schemas/SortingDirection"
            }
          },
          "required": [
            "attribute",
            "direction"
          ],
          "type": "object"
        },
        "type": "array"
      },
      "Pick_GetStopMetricsParams.Exclude_keyofGetStopMetricsParams.isNightShiftMovedToNextDay-or-deriveSpecificCauseDimensions__": {
        "properties": {
          "filter": {
            "$ref": "#/components/schemas/StopMetricsFilterCriteria"
          },
          "group_by": {
            "$ref": "#/components/schemas/StopMetricsGroupByCriteria"
          },
          "sorting": {
            "$ref": "#/components/schemas/StopMetricsSortingCriteria"
          },
          "pagination": {
            "$ref": "#/components/schemas/PaginationParams"
          }
        },
        "required": [
          "filter",
          "group_by",
          "sorting",
          "pagination"
        ],
        "type": "object",
        "description": "From T, pick a set of properties whose keys are in the union K"
      },
      "StopMetricsRequest": {
        "properties": {
          "filter": {
            "$ref": "#/components/schemas/StopMetricsFilterCriteria"
          },
          "group_by": {
            "$ref": "#/components/schemas/StopMetricsGroupByCriteria"
          },
          "sorting": {
            "$ref": "#/components/schemas/StopMetricsSortingCriteria"
          },
          "pagination": {
            "$ref": "#/components/schemas/PaginationParams"
          }
        },
        "required": [
          "filter",
          "group_by",
          "sorting",
          "pagination"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "StopMetricsWidgetResponse": {
        "properties": {
          "series": {
            "items": {
              "$ref": "#/components/schemas/MetricsSerie"
            },
            "type": "array"
          }
        },
        "required": [
          "series"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "StopsGroupByAttribute": {
        "description": "User-friendly grouping dimensions accepted by the widget endpoint.",
        "enum": [
          "machine",
          "operator",
          "general_cause",
          "specific_cause",
          "component",
          "shift",
          "planning",
          "classification"
        ],
        "type": "string"
      },
      "StopMetricsDateRange": {
        "properties": {
          "to": {
            "type": "string",
            "description": "e.g. `2026-07-31` (inclusive: resolves to 23:59:59.999) or `2026-07-31T14:00:00Z`"
          },
          "from": {
            "type": "string",
            "description": "e.g. `2026-07-01` or `2026-07-01T06:00:00Z`"
          }
        },
        "required": [
          "to",
          "from"
        ],
        "type": "object",
        "description": "Absolute date range. Deliberately *not* named `DateRange`\nISO 8601 dates, read as UTC when they carry no offset.\nA date-only bound covers the whole day, so `to` is inclusive."
      },
      "StopPlanningFilter": {
        "description": "Restricts the result to planned or unplanned stops. `ALL` (and omitting the field) emits no\npredicate. Values other than `ALL` mirror `StopPlanning`, whose members are the SQL values.",
        "enum": [
          "planned",
          "unplanned",
          "all"
        ],
        "type": "string"
      },
      "StopClassificationFilter": {
        "description": "Restricts the result by how the stop was classified. `ALL` (and omitting the field) emits no\npredicate. Values other than `ALL` mirror `StopClassification`, whose members are the SQL values.\n\nNote `MANUAL` means *classified by a person*: a stop nobody classified is `UNCLASSIFIED`, so\n`AUTOMATED` and `MANUAL` do not add up to the unfiltered total — all three values do.",
        "enum": [
          "automated",
          "manual",
          "unclassified",
          "all"
        ],
        "type": "string"
      },
      "StopMetricsWidgetRequest": {
        "properties": {
          "filter_by": {
            "properties": {
              "classification": {
                "$ref": "#/components/schemas/StopClassificationFilter",
                "description": "Automated, manually classified, unclassified, or (default) all stops."
              },
              "planning": {
                "$ref": "#/components/schemas/StopPlanningFilter",
                "description": "Planned, unplanned, or (default) all stops."
              },
              "shifts": {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              "component_ids": {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              "components": {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              "specific_cause_ids": {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              "specific_causes": {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              "general_cause_ids": {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              "general_causes": {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              "operator_ids": {
                "items": {
                  "type": "number",
                  "format": "double"
                },
                "type": "array"
              },
              "operators": {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              "machine_ids": {
                "items": {
                  "type": "number",
                  "format": "double"
                },
                "type": "array"
              },
              "machines": {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              "date_range": {
                "anyOf": [
                  {
                    "$ref": "#/components/schemas/StopMetricsDateRange"
                  },
                  {
                    "type": "string"
                  }
                ],
                "description": "Either an absolute range — `{ from, to }`, or the same range as a single\n`2026-07-01~2026-07-31` string — or a relative expression: `past7days`, `last 2 days`,\n`this 1 week`, `next 1 month`."
              }
            },
            "required": [
              "date_range"
            ],
            "type": "object"
          },
          "order_by": {
            "$ref": "#/components/schemas/StopMetricsSortingCriteria"
          },
          "aggregation_period": {
            "$ref": "#/components/schemas/GroupByPeriod"
          },
          "x_axis": {
            "items": {
              "$ref": "#/components/schemas/StopsGroupByAttribute"
            },
            "type": "array",
            "description": "Which `group_by` dimensions form the x axis. When it names a proper subset of `group_by` and no\n`aggregation_period` is given, the remaining dimensions each become a serie on a shared `y`\naxis — the shape a stacked bar needs. Absent, empty, or naming all of `group_by`: no effect."
          },
          "group_by": {
            "items": {
              "$ref": "#/components/schemas/StopsGroupByAttribute"
            },
            "type": "array"
          },
          "metrics": {
            "items": {
              "$ref": "#/components/schemas/StopMetricValueAttribute"
            },
            "type": "array"
          }
        },
        "required": [
          "filter_by",
          "metrics"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "IWebhookSubscription": {
        "additionalProperties": false,
        "type": "object"
      },
      "WebhookSubscriptionEventType": {
        "enum": [
          "MachineStopClassificationCreated",
          "MachineStopClassificationUpdated",
          "MachineStopClassificationDeleted",
          "Ping"
        ],
        "type": "string"
      },
      "CreateWebhookSubscriptionBase": {
        "properties": {
          "name": {
            "type": "string"
          },
          "url": {
            "type": "string"
          },
          "eventType": {
            "$ref": "#/components/schemas/WebhookSubscriptionEventType"
          }
        },
        "required": [
          "name",
          "url",
          "eventType"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "LocalizedString": {
        "properties": {
          "en": {
            "type": "string"
          },
          "es": {
            "type": "string"
          }
        },
        "required": [
          "en",
          "es"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "WidgetJson": {
        "properties": {},
        "type": "object",
        "additionalProperties": {}
      },
      "WidgetResponse": {
        "properties": {
          "id": {
            "type": "string"
          },
          "title": {
            "$ref": "#/components/schemas/LocalizedString"
          },
          "description": {
            "$ref": "#/components/schemas/LocalizedString"
          },
          "spec": {
            "$ref": "#/components/schemas/WidgetJson"
          },
          "isSystem": {
            "type": "boolean"
          },
          "isFavorited": {
            "type": "boolean"
          },
          "featureRequirements": {
            "type": "string",
            "nullable": true
          },
          "labels": {
            "type": "string",
            "nullable": true
          },
          "createdAt": {
            "type": "string"
          },
          "updatedAt": {
            "type": "string"
          },
          "deletedAt": {
            "type": "string",
            "nullable": true
          },
          "thumbnailUrl": {
            "type": "string",
            "nullable": true
          },
          "compressedThumbnailUrl": {
            "type": "string",
            "nullable": true
          }
        },
        "required": [
          "id",
          "title",
          "description",
          "spec",
          "isSystem",
          "isFavorited",
          "featureRequirements",
          "labels",
          "createdAt",
          "updatedAt",
          "deletedAt",
          "thumbnailUrl",
          "compressedThumbnailUrl"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "PromoteWidgetRequest": {
        "properties": {
          "sourceCompanyId": {
            "type": "number",
            "format": "double"
          },
          "widgetId": {
            "type": "string"
          }
        },
        "required": [
          "sourceCompanyId",
          "widgetId"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "Partial_LocalizedString_": {
        "properties": {
          "en": {
            "type": "string"
          },
          "es": {
            "type": "string"
          }
        },
        "type": "object",
        "description": "Make all properties in T optional"
      },
      "PartialLocalizedString": {
        "$ref": "#/components/schemas/Partial_LocalizedString_"
      },
      "WidgetChatBufferJson": {
        "anyOf": [
          {
            "$ref": "#/components/schemas/WidgetJson"
          },
          {
            "items": {
              "$ref": "#/components/schemas/WidgetJson"
            },
            "type": "array"
          }
        ]
      },
      "UpdateWidgetRequest": {
        "properties": {
          "title": {
            "$ref": "#/components/schemas/PartialLocalizedString"
          },
          "description": {
            "$ref": "#/components/schemas/PartialLocalizedString"
          },
          "spec": {
            "$ref": "#/components/schemas/WidgetJson"
          },
          "featureRequirements": {
            "type": "string",
            "nullable": true
          },
          "labels": {
            "type": "string",
            "nullable": true
          },
          "chatBuffer": {
            "allOf": [
              {
                "$ref": "#/components/schemas/WidgetChatBufferJson"
              }
            ],
            "nullable": true
          }
        },
        "type": "object",
        "additionalProperties": false
      },
      "WidgetInstanceResponse": {
        "properties": {
          "id": {
            "type": "string"
          },
          "widgetId": {
            "type": "string"
          },
          "dashboardId": {
            "type": "string"
          },
          "specOverride": {
            "allOf": [
              {
                "$ref": "#/components/schemas/WidgetJson"
              }
            ],
            "nullable": true
          },
          "visualConfig": {
            "allOf": [
              {
                "$ref": "#/components/schemas/WidgetJson"
              }
            ],
            "nullable": true
          },
          "widget": {
            "$ref": "#/components/schemas/WidgetResponse"
          },
          "createdAt": {
            "type": "string"
          },
          "updatedAt": {
            "type": "string"
          },
          "deletedAt": {
            "type": "string",
            "nullable": true
          }
        },
        "required": [
          "id",
          "widgetId",
          "dashboardId",
          "specOverride",
          "visualConfig",
          "widget",
          "createdAt",
          "updatedAt",
          "deletedAt"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "WidgetDashboardResponse": {
        "properties": {
          "id": {
            "type": "string"
          },
          "title": {
            "$ref": "#/components/schemas/LocalizedString"
          },
          "description": {
            "$ref": "#/components/schemas/LocalizedString"
          },
          "spec": {
            "$ref": "#/components/schemas/WidgetJson"
          },
          "isSystem": {
            "type": "boolean"
          },
          "isFavorited": {
            "type": "boolean"
          },
          "instances": {
            "items": {
              "$ref": "#/components/schemas/WidgetInstanceResponse"
            },
            "type": "array"
          },
          "createdAt": {
            "type": "string"
          },
          "updatedAt": {
            "type": "string"
          },
          "deletedAt": {
            "type": "string",
            "nullable": true
          },
          "archivedAt": {
            "type": "string",
            "nullable": true
          },
          "thumbnailUrl": {
            "type": "string",
            "nullable": true
          },
          "compressedThumbnailUrl": {
            "type": "string",
            "nullable": true
          }
        },
        "required": [
          "id",
          "title",
          "description",
          "spec",
          "isSystem",
          "isFavorited",
          "instances",
          "createdAt",
          "updatedAt",
          "deletedAt",
          "archivedAt",
          "thumbnailUrl",
          "compressedThumbnailUrl"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "PromoteWidgetDashboardRequest": {
        "properties": {
          "sourceCompanyId": {
            "type": "number",
            "format": "double"
          },
          "dashboardId": {
            "type": "string"
          }
        },
        "required": [
          "sourceCompanyId",
          "dashboardId"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "UpdateWidgetDashboardRequest": {
        "properties": {
          "title": {
            "$ref": "#/components/schemas/PartialLocalizedString"
          },
          "description": {
            "$ref": "#/components/schemas/PartialLocalizedString"
          },
          "spec": {
            "$ref": "#/components/schemas/WidgetJson"
          }
        },
        "type": "object",
        "additionalProperties": false
      },
      "AddWidgetToDashboardRequest": {
        "properties": {
          "specOverride": {
            "allOf": [
              {
                "$ref": "#/components/schemas/WidgetJson"
              }
            ],
            "nullable": true
          },
          "visualConfig": {
            "allOf": [
              {
                "$ref": "#/components/schemas/WidgetJson"
              }
            ],
            "nullable": true
          }
        },
        "type": "object",
        "additionalProperties": false
      },
      "UpdateWidgetInstanceRequest": {
        "properties": {
          "specOverride": {
            "allOf": [
              {
                "$ref": "#/components/schemas/WidgetJson"
              }
            ],
            "nullable": true
          },
          "visualConfig": {
            "allOf": [
              {
                "$ref": "#/components/schemas/WidgetJson"
              }
            ],
            "nullable": true
          }
        },
        "type": "object",
        "additionalProperties": false
      },
      "CreateWidgetDashboardRequest": {
        "properties": {
          "title": {
            "$ref": "#/components/schemas/LocalizedString"
          },
          "description": {
            "$ref": "#/components/schemas/LocalizedString"
          },
          "spec": {
            "$ref": "#/components/schemas/WidgetJson"
          }
        },
        "required": [
          "title",
          "description",
          "spec"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "WidgetDashboardsListResponse": {
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/WidgetDashboardResponse"
            },
            "type": "array"
          },
          "totalItems": {
            "type": "number",
            "format": "double"
          }
        },
        "required": [
          "data",
          "totalItems"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "WidgetSource": {
        "enum": [
          "all",
          "company",
          "system",
          "favorites"
        ],
        "type": "string"
      },
      "DeleteArchivedDashboardsResponse": {
        "properties": {
          "deletedCount": {
            "type": "number",
            "format": "double"
          }
        },
        "required": [
          "deletedCount"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "WidgetDetailResponse": {
        "properties": {
          "id": {
            "type": "string"
          },
          "title": {
            "$ref": "#/components/schemas/LocalizedString"
          },
          "description": {
            "$ref": "#/components/schemas/LocalizedString"
          },
          "spec": {
            "$ref": "#/components/schemas/WidgetJson"
          },
          "isSystem": {
            "type": "boolean"
          },
          "isFavorited": {
            "type": "boolean"
          },
          "featureRequirements": {
            "type": "string",
            "nullable": true
          },
          "labels": {
            "type": "string",
            "nullable": true
          },
          "createdAt": {
            "type": "string"
          },
          "updatedAt": {
            "type": "string"
          },
          "deletedAt": {
            "type": "string",
            "nullable": true
          },
          "thumbnailUrl": {
            "type": "string",
            "nullable": true
          },
          "compressedThumbnailUrl": {
            "type": "string",
            "nullable": true
          },
          "chatBuffer": {
            "allOf": [
              {
                "$ref": "#/components/schemas/WidgetChatBufferJson"
              }
            ],
            "nullable": true
          }
        },
        "required": [
          "id",
          "title",
          "description",
          "spec",
          "isSystem",
          "isFavorited",
          "featureRequirements",
          "labels",
          "createdAt",
          "updatedAt",
          "deletedAt",
          "thumbnailUrl",
          "compressedThumbnailUrl",
          "chatBuffer"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "CreateWidgetRequest": {
        "properties": {
          "title": {
            "$ref": "#/components/schemas/LocalizedString"
          },
          "description": {
            "$ref": "#/components/schemas/LocalizedString"
          },
          "spec": {
            "$ref": "#/components/schemas/WidgetJson"
          },
          "featureRequirements": {
            "type": "string",
            "nullable": true
          },
          "labels": {
            "type": "string",
            "nullable": true
          },
          "chatBuffer": {
            "allOf": [
              {
                "$ref": "#/components/schemas/WidgetChatBufferJson"
              }
            ],
            "nullable": true
          }
        },
        "required": [
          "title",
          "description",
          "spec"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "WidgetsListResponse": {
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/WidgetResponse"
            },
            "type": "array"
          },
          "totalItems": {
            "type": "number",
            "format": "double"
          }
        },
        "required": [
          "data",
          "totalItems"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "ExportRecipient": {
        "properties": {
          "personaId": {
            "type": "string"
          },
          "email": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "RequestExportParams": {
        "properties": {
          "lang": {
            "$ref": "#/components/schemas/Language"
          },
          "recipients": {
            "items": {
              "$ref": "#/components/schemas/ExportRecipient"
            },
            "type": "array"
          },
          "machinesGroupId": {
            "type": "string"
          },
          "machineIds": {
            "items": {
              "type": "number",
              "format": "double"
            },
            "type": "array"
          },
          "end": {
            "type": "string",
            "format": "date-time"
          },
          "start": {
            "type": "string",
            "format": "date-time"
          },
          "reportName": {
            "$ref": "#/components/schemas/ReportName"
          }
        },
        "required": [
          "lang",
          "recipients",
          "machinesGroupId",
          "machineIds",
          "end",
          "start",
          "reportName"
        ],
        "type": "object"
      }
    },
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT"
      }
    }
  },
  "info": {
    "title": "pulsar-backend",
    "version": "2.0.0",
    "description": "WebApp API and workers\n\n# Authentication\n\n<!-- ReDoc-Inject: <security-definitions> -->",
    "license": {
      "name": "UNLICENSED"
    },
    "contact": {}
  },
  "openapi": "3.0.0",
  "paths": {
    "/custom-field-values/upload": {
      "post": {
        "operationId": "UploadFile",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "tags": [
          "CustomFields"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "file": {
                    "type": "string",
                    "format": "binary"
                  }
                },
                "required": [
                  "file"
                ]
              }
            }
          }
        }
      }
    },
    "/custom-field-values/download/{filename}": {
      "get": {
        "operationId": "DownloadFile",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FileDownloadResponse"
                }
              }
            }
          }
        },
        "tags": [
          "CustomFields"
        ],
        "security": [
          {
            "bearerAuth": [
              "user",
              "superuser",
              "admin",
              "superadmin",
              "readonly"
            ]
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "filename",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/v3/companies/my-permissions": {
      "get": {
        "operationId": "GetMyPermissions",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Record_Permission.boolean_"
                }
              }
            }
          }
        },
        "tags": [
          "CompanyRolePermissions"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": []
      }
    },
    "/v3/companies/role-permissions": {
      "get": {
        "operationId": "GetMatrix",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EffectiveMatrix"
                }
              }
            }
          }
        },
        "tags": [
          "CompanyRolePermissions"
        ],
        "security": [
          {
            "bearerAuth": [
              "superadmin",
              "superuser"
            ]
          }
        ],
        "parameters": []
      },
      "put": {
        "operationId": "UpsertMatrix",
        "responses": {
          "204": {
            "description": "No content"
          }
        },
        "tags": [
          "CompanyRolePermissions"
        ],
        "security": [
          {
            "bearerAuth": [
              "superadmin",
              "superuser"
            ]
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MatrixPatch"
              }
            }
          }
        }
      }
    },
    "/v3/companies/role-permissions/{role}/{category}/{permission}": {
      "delete": {
        "operationId": "ResetCell",
        "responses": {
          "204": {
            "description": "No content"
          }
        },
        "tags": [
          "CompanyRolePermissions"
        ],
        "security": [
          {
            "bearerAuth": [
              "superadmin",
              "superuser"
            ]
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "role",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/MatrixRole"
            }
          },
          {
            "in": "path",
            "name": "category",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "permission",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/permissions": {
      "get": {
        "operationId": "GetPermissions",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/IPermission"
                  },
                  "type": "array"
                }
              }
            }
          }
        },
        "tags": [
          "Permissions"
        ],
        "security": [
          {
            "bearerAuth": [
              "superuser"
            ]
          }
        ],
        "parameters": []
      },
      "post": {
        "operationId": "CreatePermission",
        "responses": {
          "204": {
            "description": "No content"
          }
        },
        "tags": [
          "Permissions"
        ],
        "security": [
          {
            "bearerAuth": [
              "superuser"
            ]
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PermissionParams"
              }
            }
          }
        }
      }
    },
    "/permissions/{name}": {
      "get": {
        "operationId": "GetPermissionByName",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/IPermission"
                    }
                  ],
                  "nullable": true
                }
              }
            }
          }
        },
        "tags": [
          "Permissions"
        ],
        "security": [
          {
            "bearerAuth": [
              "superuser"
            ]
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/permissions/{id}": {
      "put": {
        "operationId": "UpdatePermission",
        "responses": {
          "204": {
            "description": "No content"
          }
        },
        "tags": [
          "Permissions"
        ],
        "security": [
          {
            "bearerAuth": [
              "superuser"
            ]
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PermissionParams"
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "DestroyPermission",
        "responses": {
          "204": {
            "description": "No content"
          }
        },
        "tags": [
          "Permissions"
        ],
        "security": [
          {
            "bearerAuth": [
              "superuser"
            ]
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/role-permissions": {
      "get": {
        "operationId": "GetRolePermissions",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/IRolePermission"
                  },
                  "type": "array"
                }
              }
            }
          }
        },
        "tags": [
          "RolePermissions"
        ],
        "security": [
          {
            "bearerAuth": [
              "superuser"
            ]
          }
        ],
        "parameters": []
      },
      "post": {
        "operationId": "CreateRolePermission",
        "responses": {
          "204": {
            "description": "No content"
          }
        },
        "tags": [
          "RolePermissions"
        ],
        "security": [
          {
            "bearerAuth": [
              "superuser"
            ]
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RolePermissionParams"
              }
            }
          }
        }
      }
    },
    "/role-permissions/{name}": {
      "get": {
        "operationId": "GetPermissionsByRoleName",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/IPermission"
                  },
                  "type": "array"
                }
              }
            }
          }
        },
        "tags": [
          "RolePermissions"
        ],
        "security": [
          {
            "bearerAuth": [
              "superuser"
            ]
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/role-permissions/{id}": {
      "put": {
        "operationId": "UpdateRolePermission",
        "responses": {
          "204": {
            "description": "No content"
          }
        },
        "tags": [
          "RolePermissions"
        ],
        "security": [
          {
            "bearerAuth": [
              "superuser"
            ]
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RolePermissionParams"
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "DestroyRolePermission",
        "responses": {
          "204": {
            "description": "No content"
          }
        },
        "tags": [
          "RolePermissions"
        ],
        "security": [
          {
            "bearerAuth": [
              "superuser"
            ]
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/roles": {
      "get": {
        "operationId": "GetRoles",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/IRole"
                  },
                  "type": "array"
                }
              }
            }
          }
        },
        "tags": [
          "Roles"
        ],
        "security": [
          {
            "bearerAuth": [
              "superuser"
            ]
          }
        ],
        "parameters": []
      },
      "post": {
        "operationId": "CreateRole",
        "responses": {
          "204": {
            "description": "No content"
          }
        },
        "tags": [
          "Roles"
        ],
        "security": [
          {
            "bearerAuth": [
              "superuser"
            ]
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RoleParams"
              }
            }
          }
        }
      }
    },
    "/roles/{name}": {
      "get": {
        "operationId": "GetRoleByName",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/IRole"
                    }
                  ],
                  "nullable": true
                }
              }
            }
          }
        },
        "tags": [
          "Roles"
        ],
        "security": [
          {
            "bearerAuth": [
              "superuser"
            ]
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/roles/{id}": {
      "put": {
        "operationId": "UpdateRole",
        "responses": {
          "204": {
            "description": "No content"
          }
        },
        "tags": [
          "Roles"
        ],
        "security": [
          {
            "bearerAuth": [
              "superuser"
            ]
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RoleParams"
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "DestroyRole",
        "responses": {
          "204": {
            "description": "No content"
          }
        },
        "tags": [
          "Roles"
        ],
        "security": [
          {
            "bearerAuth": [
              "superuser"
            ]
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/sections": {
      "get": {
        "operationId": "GetSections",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/ISection"
                  },
                  "type": "array"
                }
              }
            }
          }
        },
        "tags": [
          "Sections"
        ],
        "security": [
          {
            "bearerAuth": [
              "superuser"
            ]
          }
        ],
        "parameters": []
      },
      "post": {
        "operationId": "CreateSection",
        "responses": {
          "204": {
            "description": "No content"
          }
        },
        "tags": [
          "Sections"
        ],
        "security": [
          {
            "bearerAuth": [
              "superuser"
            ]
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SectionParams"
              }
            }
          }
        }
      }
    },
    "/sections/{name}": {
      "get": {
        "operationId": "GetSectionByName",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/ISection"
                    }
                  ],
                  "nullable": true
                }
              }
            }
          }
        },
        "tags": [
          "Sections"
        ],
        "security": [
          {
            "bearerAuth": [
              "superuser"
            ]
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/sections/{id}": {
      "put": {
        "operationId": "UpdateSection",
        "responses": {
          "204": {
            "description": "No content"
          }
        },
        "tags": [
          "Sections"
        ],
        "security": [
          {
            "bearerAuth": [
              "superuser"
            ]
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SectionParams"
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "DestroySection",
        "responses": {
          "204": {
            "description": "No content"
          }
        },
        "tags": [
          "Sections"
        ],
        "security": [
          {
            "bearerAuth": [
              "superuser"
            ]
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/users": {
      "get": {
        "operationId": "GetUsers",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/IUser"
                  },
                  "type": "array"
                }
              }
            }
          }
        },
        "tags": [
          "Users"
        ],
        "security": [
          {
            "bearerAuth": [
              "superuser"
            ]
          }
        ],
        "parameters": []
      },
      "post": {
        "operationId": "CreateUser",
        "responses": {
          "204": {
            "description": "No content"
          }
        },
        "tags": [
          "Users"
        ],
        "security": [
          {
            "bearerAuth": [
              "superuser"
            ]
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UserParams"
              }
            }
          }
        }
      }
    },
    "/users/{email}": {
      "get": {
        "operationId": "GetUserByEmail",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/IUser"
                    }
                  ],
                  "nullable": true
                }
              }
            }
          }
        },
        "tags": [
          "Users"
        ],
        "security": [
          {
            "bearerAuth": [
              "superuser"
            ]
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "email",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/users/{email}/permissions": {
      "get": {
        "operationId": "GetPermissionsByEmail",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/IPermission"
                  },
                  "type": "array"
                }
              }
            }
          }
        },
        "tags": [
          "Users"
        ],
        "security": [
          {
            "bearerAuth": [
              "superuser"
            ]
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "email",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/users/{id}": {
      "put": {
        "operationId": "UpdateUser",
        "responses": {
          "204": {
            "description": "No content"
          }
        },
        "tags": [
          "Users"
        ],
        "security": [
          {
            "bearerAuth": [
              "superuser"
            ]
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UserParams"
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "DestroyUser",
        "responses": {
          "204": {
            "description": "No content"
          }
        },
        "tags": [
          "Users"
        ],
        "security": [
          {
            "bearerAuth": [
              "superuser"
            ]
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/v1/alerts-config/metrics": {
      "get": {
        "operationId": "ListMachineMetrics",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MachineMetricsMap"
                }
              }
            }
          }
        },
        "description": "The metrics each machine exposes, for picking an alert's `upstream_metric_id`.\n\nOmit `machineIds` to get every machine in the caller's company. Every\nrequested machine gets a key, empty when it has no metrics configured.",
        "tags": [
          "AlertsConfig"
        ],
        "security": [
          {
            "bearerAuth": [
              "user",
              "superuser",
              "admin",
              "superadmin",
              "readonly"
            ]
          }
        ],
        "parameters": [
          {
            "in": "query",
            "name": "machineIds",
            "required": false,
            "schema": {
              "type": "array",
              "items": {
                "type": "number",
                "format": "double"
              }
            }
          }
        ]
      }
    },
    "/v1/alerts-config/alert-types": {
      "get": {
        "operationId": "ListAlertTypes",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ListAlertTypesResponse"
                }
              }
            }
          }
        },
        "tags": [
          "AlertsConfig"
        ],
        "security": [
          {
            "bearerAuth": [
              "superadmin",
              "superuser"
            ]
          }
        ],
        "parameters": []
      },
      "post": {
        "operationId": "CreateAlertType",
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AlertTypeDto"
                }
              }
            }
          }
        },
        "tags": [
          "AlertsConfig"
        ],
        "security": [
          {
            "bearerAuth": [
              "superadmin",
              "superuser"
            ]
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateAlertTypeRequest"
              }
            }
          }
        }
      }
    },
    "/v1/alerts-config/alert-types/{alertTypeId}": {
      "get": {
        "operationId": "GetAlertType",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AlertTypeDto"
                }
              }
            }
          }
        },
        "tags": [
          "AlertsConfig"
        ],
        "security": [
          {
            "bearerAuth": [
              "superadmin",
              "superuser"
            ]
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "alertTypeId",
            "required": true,
            "schema": {
              "format": "double",
              "type": "number"
            }
          }
        ]
      },
      "put": {
        "operationId": "UpdateAlertType",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AlertTypeDto"
                }
              }
            }
          }
        },
        "tags": [
          "AlertsConfig"
        ],
        "security": [
          {
            "bearerAuth": [
              "superadmin",
              "superuser"
            ]
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "alertTypeId",
            "required": true,
            "schema": {
              "format": "double",
              "type": "number"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateAlertTypeRequest"
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "DeleteAlertType",
        "responses": {
          "204": {
            "description": "No Content"
          }
        },
        "tags": [
          "AlertsConfig"
        ],
        "security": [
          {
            "bearerAuth": [
              "superadmin",
              "superuser"
            ]
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "alertTypeId",
            "required": true,
            "schema": {
              "format": "double",
              "type": "number"
            }
          }
        ]
      }
    },
    "/v1/alerts-config/machines/{machineId}/alerts": {
      "get": {
        "operationId": "GetMachineAlerts",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetMachineAlertsResponse"
                }
              }
            }
          }
        },
        "tags": [
          "AlertsConfig"
        ],
        "security": [
          {
            "bearerAuth": [
              "user",
              "superuser",
              "admin",
              "superadmin",
              "readonly"
            ]
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "machineId",
            "required": true,
            "schema": {
              "format": "double",
              "type": "number"
            }
          }
        ]
      },
      "put": {
        "operationId": "PutMachineAlerts",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PutMachineAlertsResponse"
                }
              }
            }
          }
        },
        "tags": [
          "AlertsConfig"
        ],
        "security": [
          {
            "bearerAuth": [
              "admin",
              "superadmin",
              "superuser"
            ]
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "machineId",
            "required": true,
            "schema": {
              "format": "double",
              "type": "number"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PutMachineAlertsRequest"
              }
            }
          }
        }
      }
    },
    "/v1/alerts": {
      "get": {
        "operationId": "ListAlerts",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ListAlertsResponse"
                }
              }
            }
          }
        },
        "description": "The company's whole merged alert list, sorted by name. No pagination or filters.",
        "tags": [
          "Alerts"
        ],
        "security": [
          {
            "bearerAuth": [
              "user",
              "superuser",
              "admin",
              "superadmin",
              "readonly"
            ]
          }
        ],
        "parameters": []
      },
      "post": {
        "operationId": "CreateAlertGroup",
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/V2AlertDetail"
                }
              }
            }
          }
        },
        "description": "Create a v2 alert group spanning one or more machines; answers in the detail shape.",
        "tags": [
          "Alerts"
        ],
        "security": [
          {
            "bearerAuth": [
              "admin",
              "superadmin",
              "superuser"
            ]
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateAlertRequest"
              }
            }
          }
        }
      }
    },
    "/v1/alerts/{source}/{id}": {
      "get": {
        "operationId": "GetAlertDetail",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AlertDetail"
                }
              }
            }
          }
        },
        "description": "One alert's full detail, dispatched on `source` ('legacy' or 'v2').",
        "tags": [
          "Alerts"
        ],
        "security": [
          {
            "bearerAuth": [
              "user",
              "superuser",
              "admin",
              "superadmin",
              "readonly"
            ]
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "source",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/v1/alerts/{id}": {
      "patch": {
        "operationId": "UpdateAlertGroup",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/V2AlertDetail"
                }
              }
            }
          }
        },
        "description": "Partial, group-wide update. `metricIds`, `personaIds` and `params`\nreplace the existing set wholesale when present. Answers in the same\ndetail shape the detail read returns.",
        "tags": [
          "Alerts"
        ],
        "security": [
          {
            "bearerAuth": [
              "admin",
              "superadmin",
              "superuser"
            ]
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateAlertRequest"
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "DeleteAlertGroup",
        "responses": {
          "204": {
            "description": "No Content"
          }
        },
        "description": "Hard-delete every row in a v2 alert group.",
        "tags": [
          "Alerts"
        ],
        "security": [
          {
            "bearerAuth": [
              "admin",
              "superadmin",
              "superuser"
            ]
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/v2/alert-settings/all": {
      "get": {
        "operationId": "ListAlertSettingController",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "data": {
                      "items": {
                        "$ref": "#/components/schemas/AlertSettingValue"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "data"
                  ],
                  "type": "object"
                }
              }
            }
          }
        },
        "tags": [
          "AlertSettingsV2"
        ],
        "security": [
          {
            "bearerAuth": [
              "user",
              "superuser",
              "admin",
              "superadmin",
              "readonly"
            ]
          }
        ],
        "parameters": []
      }
    },
    "/v2/alert-settings/alertMachine/all": {
      "get": {
        "operationId": "ListAlertMachinesController",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "data": {
                      "items": {
                        "$ref": "#/components/schemas/AlertMachineValue"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "data"
                  ],
                  "type": "object"
                }
              }
            }
          }
        },
        "tags": [
          "AlertSettingsV2"
        ],
        "security": [
          {
            "bearerAuth": [
              "user",
              "superuser",
              "admin",
              "superadmin",
              "readonly"
            ]
          }
        ],
        "parameters": []
      }
    },
    "/v2/alert-settings/persona/new": {
      "put": {
        "operationId": "Insert",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "tags": [
          "AlertSettingsV2"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "language": {
                    "$ref": "#/components/schemas/LanguageType"
                  },
                  "alertHours": {
                    "$ref": "#/components/schemas/WeekdaysWithTimeRange"
                  },
                  "whatsapp": {
                    "type": "string"
                  },
                  "whatsappGroup": {
                    "type": "string"
                  },
                  "sms": {
                    "type": "string"
                  },
                  "recipientType": {
                    "type": "string"
                  },
                  "name": {
                    "type": "string"
                  },
                  "isUser": {
                    "type": "boolean"
                  },
                  "email": {
                    "type": "string"
                  },
                  "alertIds": {
                    "items": {
                      "type": "string"
                    },
                    "type": "array"
                  }
                },
                "required": [
                  "language",
                  "name",
                  "email",
                  "alertIds"
                ],
                "type": "object"
              }
            }
          }
        }
      }
    },
    "/v2/alert-settings/persona/all": {
      "get": {
        "operationId": "ListAll",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "tags": [
          "AlertSettingsV2"
        ],
        "security": [
          {
            "bearerAuth": [
              "user",
              "superuser",
              "admin",
              "superadmin",
              "readonly"
            ]
          }
        ],
        "parameters": []
      }
    },
    "/v2/alert-settings/new": {
      "put": {
        "operationId": "InsertAlertSettingController",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/AlertSettingValue"
                    }
                  },
                  "required": [
                    "data"
                  ],
                  "type": "object"
                }
              }
            }
          }
        },
        "tags": [
          "AlertSettingsV2"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/InsertAlertSettingParams"
              }
            }
          }
        }
      }
    },
    "/v2/alert-settings/superuser/persona/new": {
      "put": {
        "operationId": "InsertAlertPersonaBySuperUserController",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/AlertPersonaValue"
                    }
                  },
                  "required": [
                    "data"
                  ],
                  "type": "object"
                }
              }
            }
          }
        },
        "tags": [
          "AlertSettingsV2"
        ],
        "security": [
          {
            "bearerAuth": [
              "superuser"
            ]
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/InsertAlertPersonaParams"
              }
            }
          }
        }
      }
    },
    "/v2/alert-settings/delete/{id}": {
      "delete": {
        "operationId": "DeleteAlertSettingController",
        "responses": {
          "204": {
            "description": "No content"
          }
        },
        "tags": [
          "AlertSettingsV2"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/v2/alert-settings/delete/persona/{id}": {
      "delete": {
        "operationId": "DeleteAlertPersonaController",
        "responses": {
          "204": {
            "description": "No content"
          }
        },
        "tags": [
          "AlertSettingsV2"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/v2/alert-settings/update/alertPersona": {
      "patch": {
        "operationId": "UpdateAlertPersona",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "tags": [
          "AlertSettingsV2"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateAlertPersonaParams"
              }
            }
          }
        }
      }
    },
    "/v2/alert-settings/update/alertPersona/push": {
      "patch": {
        "operationId": "UpdateAlertPersonaPush",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "tags": [
          "AlertSettingsV2"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Omit_UpdateAlertPersonaPushParams.userId_"
              }
            }
          }
        }
      }
    },
    "/v2/alert-settings/update/alertPersona/push/enable": {
      "patch": {
        "operationId": "UpdateAlertPersonaPushEnable",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "tags": [
          "AlertSettingsV2"
        ],
        "security": [
          {
            "bearerAuth": [
              "admin",
              "superadmin",
              "superuser"
            ]
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EnableAlertPersonaPushParams"
              }
            }
          }
        }
      }
    },
    "/v2/alert-settings/alertPersona/push/{reference}": {
      "get": {
        "operationId": "GetAlertPersonaPushByReference",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PushTokenDetails"
                }
              }
            }
          }
        },
        "tags": [
          "AlertSettingsV2"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "reference",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/v2/alert-settings/update": {
      "patch": {
        "operationId": "UpdateAlertSettingController",
        "responses": {
          "204": {
            "description": "No content"
          }
        },
        "tags": [
          "AlertSettingsV2"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateAlertSettingParams"
              }
            }
          }
        }
      }
    },
    "/v2/alert-settings/update/alertRecipient": {
      "patch": {
        "operationId": "UpdateAlertPersonaRecipientController",
        "responses": {
          "204": {
            "description": "No content"
          }
        },
        "tags": [
          "AlertSettingsV2"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateAlertPersonaRecipientParams"
              }
            }
          }
        }
      }
    },
    "/v2/alert-settings/update/alertMachine": {
      "patch": {
        "operationId": "UpdateAlertMachineController",
        "responses": {
          "204": {
            "description": "No content"
          }
        },
        "tags": [
          "AlertSettingsV2"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateAlertMachineParams"
              }
            }
          }
        }
      }
    },
    "/v3/alert-settings": {
      "get": {
        "operationId": "ListAllAlertSetting",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "data": {
                      "items": {},
                      "type": "array"
                    }
                  },
                  "required": [
                    "data"
                  ],
                  "type": "object"
                }
              }
            }
          }
        },
        "tags": [
          "AlertSettingsV3"
        ],
        "security": [
          {
            "bearerAuth": [
              "user",
              "superuser",
              "admin",
              "superadmin",
              "readonly"
            ]
          }
        ],
        "parameters": []
      },
      "put": {
        "operationId": "Insert",
        "responses": {
          "204": {
            "description": "No content"
          }
        },
        "tags": [
          "AlertSettingsV3"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/InsertAlertSettingBody"
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "Delete",
        "responses": {
          "204": {
            "description": "No content"
          }
        },
        "tags": [
          "AlertSettingsV3"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DeleteAlertSettingBody"
              }
            }
          }
        }
      },
      "patch": {
        "operationId": "Update",
        "responses": {
          "204": {
            "description": "No content"
          }
        },
        "tags": [
          "AlertSettingsV3"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateAlertSettingBody"
              }
            }
          }
        }
      }
    },
    "/v2/stop-alerts": {
      "get": {
        "operationId": "Latest",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "data": {
                      "items": {
                        "$ref": "#/components/schemas/StopAlertV3Value"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "data"
                  ],
                  "type": "object"
                }
              }
            }
          }
        },
        "tags": [
          "stop-alert"
        ],
        "security": [
          {
            "bearerAuth": [
              "user",
              "superuser",
              "admin",
              "superadmin",
              "readonly"
            ]
          }
        ],
        "parameters": []
      }
    },
    "/v2/stop-alerts/{id}/update-status": {
      "patch": {
        "operationId": "UpdateStatus",
        "responses": {
          "204": {
            "description": "No content"
          }
        },
        "tags": [
          "stop-alert"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "double",
              "type": "number"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "status": {
                    "$ref": "#/components/schemas/StopAlertStatusEnum"
                  }
                },
                "required": [
                  "status"
                ],
                "type": "object"
              }
            }
          }
        }
      }
    },
    "/auth/microsoft-entra/provider": {
      "get": {
        "operationId": "GetProvider",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MicrosoftEntraProviderResponse"
                }
              }
            }
          }
        },
        "tags": [
          "Authentication"
        ],
        "security": [],
        "parameters": [
          {
            "in": "query",
            "name": "email",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/auth/microsoft-entra/connections/{companyId}": {
      "get": {
        "operationId": "GetConnectionStatus",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MicrosoftEntraConnectionStatus"
                }
              }
            }
          }
        },
        "tags": [
          "Authentication"
        ],
        "security": [
          {
            "bearerAuth": [
              "admin",
              "superadmin",
              "superuser"
            ]
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "companyId",
            "required": true,
            "schema": {
              "format": "double",
              "type": "number"
            }
          }
        ]
      },
      "put": {
        "operationId": "UpsertConnection",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MicrosoftEntraConnectionValue"
                }
              }
            }
          }
        },
        "tags": [
          "Authentication"
        ],
        "security": [
          {
            "bearerAuth": [
              "superuser"
            ]
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "companyId",
            "required": true,
            "schema": {
              "format": "double",
              "type": "number"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MicrosoftEntraConnectionInput"
              }
            }
          }
        }
      }
    },
    "/backoffice/alerts/trigger-alert": {
      "post": {
        "operationId": "TriggerAlert",
        "responses": {
          "204": {
            "description": "No content"
          }
        },
        "tags": [
          "Backoffice"
        ],
        "security": [
          {
            "bearerAuth": [
              "superuser"
            ]
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "items": {
                  "$ref": "#/components/schemas/StopAlertRecordValue"
                },
                "type": "array"
              }
            }
          }
        }
      }
    },
    "/backoffice/alerts/trigger-notification": {
      "post": {
        "operationId": "TriggerNotification",
        "responses": {
          "204": {
            "description": "No content"
          }
        },
        "tags": [
          "Backoffice"
        ],
        "security": [
          {
            "bearerAuth": [
              "superuser"
            ]
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "items": {
                  "properties": {
                    "plantName": {
                      "type": "string"
                    },
                    "stopMinutes": {
                      "type": "number",
                      "format": "double"
                    },
                    "conditions": {
                      "items": {
                        "$ref": "#/components/schemas/AlertConditionValue"
                      },
                      "type": "array"
                    },
                    "stopClassification": {
                      "$ref": "#/components/schemas/ClassificationWithNamesValue"
                    },
                    "threshold": {
                      "type": "number",
                      "format": "double"
                    },
                    "formattedStart": {
                      "type": "string"
                    },
                    "machineName": {
                      "type": "string"
                    },
                    "companyId": {
                      "type": "number",
                      "format": "double"
                    },
                    "alertId": {
                      "type": "string"
                    },
                    "machineId": {
                      "type": "number",
                      "format": "double"
                    },
                    "stopId": {
                      "type": "number",
                      "format": "double"
                    },
                    "templateId": {
                      "type": "number",
                      "format": "double"
                    },
                    "contactIds": {
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "plantName",
                    "stopMinutes",
                    "conditions",
                    "stopClassification",
                    "threshold",
                    "formattedStart",
                    "machineName",
                    "companyId",
                    "alertId",
                    "machineId",
                    "stopId",
                    "templateId",
                    "contactIds"
                  ],
                  "type": "object"
                },
                "type": "array"
              }
            }
          }
        }
      }
    },
    "/backoffice/features": {
      "patch": {
        "operationId": "PatchFeatures",
        "responses": {
          "204": {
            "description": "No content"
          }
        },
        "description": "Set features for a company",
        "tags": [
          "Backoffice"
        ],
        "security": [
          {
            "bearerAuth": [
              "superuser"
            ]
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PatchCompanyFeaturesReq"
              }
            }
          }
        }
      },
      "get": {
        "operationId": "GetCompanyFeatures",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetCompanyFeaturesRes"
                }
              }
            }
          }
        },
        "description": "Get features for a company",
        "tags": [
          "Backoffice"
        ],
        "security": [
          {
            "bearerAuth": [
              "superuser"
            ]
          }
        ],
        "parameters": [
          {
            "in": "query",
            "name": "companyId",
            "required": true,
            "schema": {
              "format": "double",
              "type": "number"
            }
          }
        ]
      }
    },
    "/backoffice/machines/mapping": {
      "patch": {
        "operationId": "PatchMachineMapping",
        "responses": {
          "204": {
            "description": "No content"
          }
        },
        "description": "Create machines in bulk",
        "tags": [
          "Backoffice"
        ],
        "security": [
          {
            "bearerAuth": [
              "superuser"
            ]
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PatchMachineMappingReq"
              }
            }
          }
        }
      }
    },
    "/backoffice/machines/config": {
      "patch": {
        "operationId": "UpdateMachineConfiguration",
        "responses": {
          "204": {
            "description": "No content"
          }
        },
        "description": "Update machine configurations in bulk",
        "tags": [
          "Backoffice"
        ],
        "security": [
          {
            "bearerAuth": [
              "superuser"
            ]
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateMachineConfigurationReq"
              }
            }
          }
        }
      }
    },
    "/backoffice/machines/count-sensors/validate": {
      "post": {
        "operationId": "ValidateCountSensorConfig",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MachineCountSensorDiffResponse"
                }
              }
            }
          }
        },
        "tags": [
          "Backoffice"
        ],
        "security": [
          {
            "bearerAuth": [
              "superuser"
            ]
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ValidateMachineCountSensorReq"
              }
            }
          }
        }
      }
    },
    "/backoffice/machines/is-count-enabled/validate": {
      "post": {
        "operationId": "GetIsCountEnabledDifferences",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetIsCountEnabledDifferencesResponse"
                }
              }
            }
          }
        },
        "tags": [
          "Backoffice"
        ],
        "security": [
          {
            "bearerAuth": [
              "superuser"
            ]
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetIsCountEnabledDifferencesRequest"
              }
            }
          }
        }
      }
    },
    "/backoffice/machines/is-count-enabled": {
      "put": {
        "operationId": "UpdateIsCountEnabled",
        "responses": {
          "204": {
            "description": "No content"
          }
        },
        "tags": [
          "Backoffice"
        ],
        "security": [
          {
            "bearerAuth": [
              "superuser"
            ]
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateIsCountEnabledRequest"
              }
            }
          }
        }
      }
    },
    "/backoffice/machines/count-sensors": {
      "patch": {
        "operationId": "UpdateCountSensorConfig",
        "responses": {
          "204": {
            "description": "No content"
          }
        },
        "tags": [
          "Backoffice"
        ],
        "security": [
          {
            "bearerAuth": [
              "superuser"
            ]
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MachineCountSensorReq"
              }
            }
          }
        }
      }
    },
    "/backoffice/products": {
      "patch": {
        "operationId": "PatchMachineProducts",
        "responses": {
          "204": {
            "description": "No content"
          }
        },
        "description": "Set machine products for a company",
        "tags": [
          "Backoffice"
        ],
        "security": [
          {
            "bearerAuth": [
              "superuser"
            ]
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PatchMachineProductsReq"
              }
            }
          }
        }
      },
      "get": {
        "operationId": "GetMachineProducts",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetMachineProductsRes"
                }
              }
            }
          }
        },
        "description": "Get machine products for a company",
        "tags": [
          "Backoffice"
        ],
        "security": [
          {
            "bearerAuth": [
              "superuser"
            ]
          }
        ],
        "parameters": [
          {
            "in": "query",
            "name": "companyId",
            "required": true,
            "schema": {
              "format": "double",
              "type": "number"
            }
          }
        ]
      }
    },
    "/backoffice/users/name": {
      "patch": {
        "operationId": "UpdateUserName",
        "responses": {
          "204": {
            "description": "No content"
          }
        },
        "description": "Update user name",
        "tags": [
          "Backoffice"
        ],
        "security": [
          {
            "bearerAuth": [
              "superuser"
            ]
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "companyId": {
                    "type": "number",
                    "format": "double"
                  },
                  "email": {
                    "type": "string"
                  },
                  "lastName": {
                    "type": "string"
                  },
                  "firstName": {
                    "type": "string"
                  }
                },
                "required": [
                  "companyId",
                  "email",
                  "lastName",
                  "firstName"
                ],
                "type": "object"
              }
            }
          }
        }
      }
    },
    "/config": {
      "get": {
        "operationId": "ListAllAlertSetting",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "data": {
                      "additionalProperties": false,
                      "type": "object"
                    }
                  },
                  "required": [
                    "data"
                  ],
                  "type": "object"
                }
              }
            }
          }
        },
        "tags": [
          "Config"
        ],
        "security": [
          {
            "bearerAuth": [
              "user",
              "superuser",
              "admin",
              "superadmin",
              "readonly"
            ]
          }
        ],
        "parameters": []
      },
      "post": {
        "operationId": "CreateConfig",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ICompanyConfigUI"
                }
              }
            }
          }
        },
        "tags": [
          "Config"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateCompanyConfigUIParams"
              }
            }
          }
        }
      },
      "put": {
        "operationId": "UpsertConfig",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ICompanyConfigUI"
                }
              }
            }
          }
        },
        "tags": [
          "Config"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpsertCompanyConfigUIParams"
              }
            }
          }
        }
      },
      "patch": {
        "operationId": "PatchConfig",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ICompanyConfigUI"
                }
              }
            }
          }
        },
        "tags": [
          "Config"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpsertCompanyConfigUIParams"
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "DeleteConfig",
        "responses": {
          "204": {
            "description": "No content"
          }
        },
        "tags": [
          "Config"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DeleteCompanyConfigUIParams"
              }
            }
          }
        }
      }
    },
    "/config/all": {
      "patch": {
        "operationId": "PatchConfigAllUsers",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/ICompanyConfigUI"
                    }
                  ],
                  "nullable": true
                }
              }
            }
          }
        },
        "tags": [
          "Config"
        ],
        "security": [
          {
            "bearerAuth": [
              "superadmin",
              "superuser"
            ]
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpsertCompanyConfigUIAllUsersParams"
              }
            }
          }
        }
      }
    },
    "/config/user": {
      "get": {
        "operationId": "GetConfig",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UserConfigResponse"
                }
              }
            }
          }
        },
        "tags": [
          "Config"
        ],
        "security": [
          {
            "bearerAuth": [
              "user",
              "superuser",
              "admin",
              "superadmin",
              "readonly"
            ]
          }
        ],
        "parameters": []
      }
    },
    "/config/default": {
      "get": {
        "operationId": "GetDefaultConfig",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UserConfigResponse"
                }
              }
            }
          }
        },
        "tags": [
          "Config"
        ],
        "security": [
          {
            "bearerAuth": [
              "user",
              "superuser",
              "admin",
              "superadmin",
              "readonly"
            ]
          }
        ],
        "parameters": []
      },
      "post": {
        "operationId": "SetDefaultConfig",
        "responses": {
          "204": {
            "description": "No content"
          }
        },
        "tags": [
          "Config"
        ],
        "security": [
          {
            "bearerAuth": [
              "superadmin",
              "superuser"
            ]
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpsertCompanyConfigUIParams"
              }
            }
          }
        }
      }
    },
    "/config/shift-settings": {
      "patch": {
        "operationId": "PatchShiftSettings",
        "responses": {
          "204": {
            "description": "No content"
          }
        },
        "tags": [
          "Config"
        ],
        "security": [
          {
            "bearerAuth": [
              "admin",
              "superadmin",
              "superuser"
            ]
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "moveNightToNextDay": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "moveNightToNextDay"
                ],
                "type": "object"
              }
            }
          }
        }
      }
    },
    "/configuration": {
      "get": {
        "operationId": "GetConfiguration",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Configurations"
                }
              }
            }
          }
        },
        "tags": [
          "Production"
        ],
        "security": [
          {
            "bearerAuth": [
              "user",
              "superuser",
              "admin",
              "superadmin",
              "readonly"
            ]
          }
        ],
        "parameters": []
      },
      "patch": {
        "operationId": "UpdateConfiguration",
        "responses": {
          "204": {
            "description": "No content"
          }
        },
        "tags": [
          "Production"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Configurations"
              }
            }
          }
        }
      }
    },
    "/custom-fields": {
      "get": {
        "operationId": "GetAll",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomFieldsByEntityRes"
                }
              }
            }
          }
        },
        "description": "Get the all the fields divided by entity",
        "tags": [
          "CustomFields"
        ],
        "security": [
          {
            "bearerAuth": [
              "user",
              "superuser",
              "admin",
              "superadmin",
              "readonly"
            ]
          }
        ],
        "parameters": []
      },
      "post": {
        "operationId": "Create",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomFieldRes"
                }
              }
            }
          }
        },
        "description": "Create a custom field and optionally assign it to an entity",
        "tags": [
          "CustomFields"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CustomFieldParams"
              }
            }
          }
        }
      }
    },
    "/custom-fields/{entity}": {
      "get": {
        "operationId": "GetForEntity",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomFieldsByEntityRes"
                }
              }
            }
          }
        },
        "description": "Get the fields for a given entity",
        "tags": [
          "CustomFields"
        ],
        "security": [
          {
            "bearerAuth": [
              "user",
              "superuser",
              "admin",
              "superadmin",
              "readonly"
            ]
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "entity",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/CustomFieldEntity"
            }
          }
        ]
      }
    },
    "/custom-fields/{fieldId}": {
      "patch": {
        "operationId": "Update",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomFieldRes"
                }
              }
            }
          }
        },
        "description": "Update a custom field",
        "tags": [
          "CustomFields"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "fieldId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CustomFieldUpdateParams"
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "Delete",
        "responses": {
          "204": {
            "description": "No content"
          }
        },
        "description": "Delete a custom field",
        "tags": [
          "CustomFields"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "fieldId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/custom-fields/associate": {
      "post": {
        "operationId": "Associate",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomFieldsByEntityRes"
                }
              }
            }
          }
        },
        "description": "Associate a custom field to an entity",
        "tags": [
          "CustomFields"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AssociateCustomFieldParams"
              }
            }
          }
        }
      }
    },
    "/custom-fields/disassociate": {
      "post": {
        "operationId": "Disassociate",
        "responses": {
          "204": {
            "description": "No content"
          }
        },
        "description": "Disassociate a custom field to an entity",
        "tags": [
          "CustomFields"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DisassociateCustomFieldParams"
              }
            }
          }
        }
      }
    },
    "/cycles/shift/{shiftId}": {
      "get": {
        "operationId": "GetCycleMetricsPerShift",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CycleMetrics"
                }
              }
            }
          }
        },
        "tags": [
          "Cycles"
        ],
        "security": [
          {
            "bearerAuth": [
              "user",
              "superuser",
              "admin",
              "superadmin",
              "readonly"
            ]
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "shiftId",
            "required": true,
            "schema": {
              "format": "double",
              "type": "number"
            }
          }
        ]
      }
    },
    "/cycles/instantaneous": {
      "get": {
        "operationId": "GetInstantaneousCycleMetrics",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InstantaneousCycleMetrics"
                }
              }
            }
          }
        },
        "tags": [
          "Cycles"
        ],
        "security": [
          {
            "bearerAuth": [
              "user",
              "superuser",
              "admin",
              "superadmin",
              "readonly"
            ]
          }
        ],
        "parameters": [
          {
            "in": "query",
            "name": "machineId",
            "required": true,
            "schema": {
              "format": "double",
              "type": "number"
            }
          },
          {
            "in": "query",
            "name": "start",
            "required": true,
            "schema": {
              "format": "date-time",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "end",
            "required": true,
            "schema": {
              "format": "date-time",
              "type": "string"
            }
          }
        ]
      }
    },
    "/feature-flags/admin": {
      "get": {
        "operationId": "GetFeatureFlags",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FeatureFlagConfigsCS"
                }
              }
            }
          }
        },
        "tags": [
          "FeatureFlags"
        ],
        "security": [
          {
            "bearerAuth": [
              "superuser"
            ]
          }
        ],
        "parameters": [
          {
            "in": "query",
            "name": "companyId",
            "required": true,
            "schema": {
              "format": "double",
              "type": "number"
            }
          }
        ]
      },
      "put": {
        "operationId": "PatchFeatureFlag",
        "responses": {
          "204": {
            "description": "No content"
          }
        },
        "tags": [
          "FeatureFlags"
        ],
        "security": [
          {
            "bearerAuth": [
              "superuser"
            ]
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PutFeatureFlagsParams"
              }
            }
          }
        }
      }
    },
    "/goals/active": {
      "get": {
        "operationId": "ListActive",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Record_number.MachineGoals_"
                }
              }
            }
          }
        },
        "tags": [
          "Goals"
        ],
        "security": [
          {
            "bearerAuth": [
              "user",
              "superuser",
              "admin",
              "superadmin",
              "readonly"
            ]
          }
        ],
        "parameters": []
      }
    },
    "/goals": {
      "get": {
        "operationId": "List",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "properties": {
                      "goal": {
                        "allOf": [
                          {
                            "$ref": "#/components/schemas/IGoal"
                          }
                        ],
                        "nullable": true
                      },
                      "title": {
                        "type": "string"
                      },
                      "id": {
                        "type": "number",
                        "format": "double"
                      }
                    },
                    "required": [
                      "goal",
                      "title",
                      "id"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                }
              }
            }
          }
        },
        "tags": [
          "Goals"
        ],
        "security": [
          {
            "bearerAuth": [
              "user",
              "superuser",
              "admin",
              "superadmin",
              "readonly"
            ]
          }
        ],
        "parameters": [
          {
            "in": "query",
            "name": "type",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/GoalType"
            }
          }
        ]
      },
      "post": {
        "operationId": "CreateMany",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/IGoal"
                  },
                  "type": "array"
                }
              }
            }
          }
        },
        "tags": [
          "Goals"
        ],
        "security": [
          {
            "bearerAuth": [
              "user",
              "superuser",
              "admin",
              "superadmin",
              "readonly"
            ]
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "value": {
                    "type": "number",
                    "format": "double"
                  },
                  "type": {
                    "$ref": "#/components/schemas/GoalType"
                  },
                  "machineIds": {
                    "items": {
                      "type": "number",
                      "format": "double"
                    },
                    "type": "array"
                  }
                },
                "required": [
                  "value",
                  "type",
                  "machineIds"
                ],
                "type": "object"
              }
            }
          }
        }
      }
    },
    "/identities/admins": {
      "get": {
        "operationId": "GetAdmins",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/IIdentity"
                  },
                  "type": "array"
                }
              }
            }
          }
        },
        "tags": [
          "Identity"
        ],
        "security": [
          {
            "bearerAuth": [
              "superadmin",
              "superuser"
            ]
          }
        ],
        "parameters": []
      }
    },
    "/identities/operators": {
      "get": {
        "operationId": "GetOperators",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/IIdentity"
                  },
                  "type": "array"
                }
              }
            }
          }
        },
        "tags": [
          "Identity"
        ],
        "security": [
          {
            "bearerAuth": [
              "user",
              "superuser",
              "admin",
              "superadmin",
              "readonly"
            ]
          }
        ],
        "parameters": []
      },
      "post": {
        "operationId": "CreateOperator",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/IIdentity"
                  },
                  "type": "array"
                }
              }
            }
          }
        },
        "tags": [
          "Identity"
        ],
        "security": [
          {
            "bearerAuth": [
              "admin",
              "superadmin",
              "superuser"
            ]
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "items": {
                  "$ref": "#/components/schemas/CreateOperatorParams"
                },
                "type": "array"
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "DeleteOperatorsInBulk",
        "responses": {
          "204": {
            "description": "No content"
          }
        },
        "tags": [
          "Identity"
        ],
        "security": [
          {
            "bearerAuth": [
              "admin",
              "superadmin",
              "superuser"
            ]
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "ids": {
                    "items": {
                      "type": "number",
                      "format": "double"
                    },
                    "type": "array"
                  }
                },
                "required": [
                  "ids"
                ],
                "type": "object"
              }
            }
          }
        }
      }
    },
    "/identities/operators/filters": {
      "post": {
        "operationId": "GetOperatorsWithPagination",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Paginated_GetOperatorsRes_"
                }
              }
            }
          }
        },
        "tags": [
          "Identity"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetBaseOperatorsParams"
              }
            }
          }
        }
      }
    },
    "/identities/users": {
      "get": {
        "operationId": "GetUsers",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/IdentityDto"
                  },
                  "type": "array"
                }
              }
            }
          }
        },
        "tags": [
          "Identity"
        ],
        "security": [
          {
            "bearerAuth": [
              "superadmin",
              "superuser"
            ]
          }
        ],
        "parameters": [
          {
            "in": "query",
            "name": "isCorporation",
            "required": false,
            "schema": {
              "default": false,
              "type": "boolean"
            }
          }
        ]
      }
    },
    "/identities/operators/{id}": {
      "patch": {
        "operationId": "UpdateOperator",
        "responses": {
          "204": {
            "description": "No content"
          }
        },
        "tags": [
          "Identity"
        ],
        "security": [
          {
            "bearerAuth": [
              "admin",
              "superadmin",
              "superuser"
            ]
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "double",
              "type": "number"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Partial_CreateOperatorParams_"
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "DeleteOperator",
        "responses": {
          "204": {
            "description": "No content"
          }
        },
        "tags": [
          "Identity"
        ],
        "security": [
          {
            "bearerAuth": [
              "admin",
              "superadmin",
              "superuser"
            ]
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "double",
              "type": "number"
            }
          }
        ]
      }
    },
    "/identities/operators/{id}/image": {
      "post": {
        "operationId": "UploadOperatorImage",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "imageUrl": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "imageUrl"
                  ],
                  "type": "object"
                }
              }
            }
          }
        },
        "tags": [
          "Identity"
        ],
        "security": [
          {
            "bearerAuth": [
              "admin",
              "superadmin",
              "superuser"
            ]
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "double",
              "type": "number"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "file": {
                    "type": "string",
                    "format": "binary"
                  }
                },
                "required": [
                  "file"
                ]
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "DeleteOperatorImage",
        "responses": {
          "204": {
            "description": "No content"
          }
        },
        "tags": [
          "Identity"
        ],
        "security": [
          {
            "bearerAuth": [
              "admin",
              "superadmin",
              "superuser"
            ]
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "double",
              "type": "number"
            }
          }
        ]
      },
      "get": {
        "operationId": "GetOperatorImage",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "imageUrl": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "imageUrl"
                  ],
                  "type": "object"
                }
              }
            }
          }
        },
        "tags": [
          "Identity"
        ],
        "security": [
          {
            "bearerAuth": [
              "user",
              "superuser",
              "admin",
              "superadmin",
              "readonly"
            ]
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "double",
              "type": "number"
            }
          }
        ]
      }
    },
    "/identities/companies": {
      "get": {
        "operationId": "GetCompanies",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/ICompanyInfo"
                  },
                  "type": "array"
                }
              }
            }
          }
        },
        "tags": [
          "Identity"
        ],
        "security": [
          {
            "bearerAuth": [
              "user",
              "superuser",
              "admin",
              "superadmin",
              "readonly"
            ]
          }
        ],
        "parameters": []
      }
    },
    "/identities/corporations": {
      "get": {
        "operationId": "GetCorporationCompanies",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/ICompanyInfo"
                  },
                  "type": "array"
                }
              }
            }
          }
        },
        "tags": [
          "Identity"
        ],
        "security": [
          {
            "bearerAuth": [
              "superadmin",
              "superuser"
            ]
          }
        ],
        "parameters": []
      }
    },
    "/identities/corporations/{corporationId}/assign-plants": {
      "patch": {
        "operationId": "AssignPlants",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [
          "Identity"
        ],
        "security": [
          {
            "bearerAuth": [
              "superadmin",
              "superuser"
            ]
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "corporationId",
            "required": true,
            "schema": {
              "format": "double",
              "type": "number"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "companyIds": {
                    "items": {
                      "type": "number",
                      "format": "double"
                    },
                    "type": "array"
                  }
                },
                "required": [
                  "companyIds"
                ],
                "type": "object"
              }
            }
          }
        }
      }
    },
    "/identities/corporations/unassign-plants": {
      "patch": {
        "operationId": "UnAssignPlants",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [
          "Identity"
        ],
        "security": [
          {
            "bearerAuth": [
              "superadmin",
              "superuser"
            ]
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "companyIds": {
                    "items": {
                      "type": "number",
                      "format": "double"
                    },
                    "type": "array"
                  }
                },
                "required": [
                  "companyIds"
                ],
                "type": "object"
              }
            }
          }
        }
      }
    },
    "/identities/companies/{companyId}/users/{userId}": {
      "put": {
        "operationId": "AddUserToCompany",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [
          "Identity"
        ],
        "security": [
          {
            "bearerAuth": [
              "superadmin",
              "superuser"
            ]
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "companyId",
            "required": true,
            "schema": {
              "format": "double",
              "type": "number"
            }
          },
          {
            "in": "path",
            "name": "userId",
            "required": true,
            "schema": {
              "format": "double",
              "type": "number"
            }
          }
        ]
      },
      "delete": {
        "operationId": "RemoveUserFromCompany",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [
          "Identity"
        ],
        "security": [
          {
            "bearerAuth": [
              "superadmin",
              "superuser"
            ]
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "companyId",
            "required": true,
            "schema": {
              "format": "double",
              "type": "number"
            }
          },
          {
            "in": "path",
            "name": "userId",
            "required": true,
            "schema": {
              "format": "double",
              "type": "number"
            }
          }
        ]
      }
    },
    "/v1/internal/skus": {
      "post": {
        "operationId": "CreateMultipleSkus",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/SkuDto"
                  },
                  "type": "array"
                }
              }
            }
          }
        },
        "tags": [
          "Internal"
        ],
        "security": [
          {
            "bearerAuth": [
              "bot"
            ]
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "items": {
                  "$ref": "#/components/schemas/CreateSkuDto"
                },
                "type": "array"
              }
            }
          }
        }
      }
    },
    "/v1/internal/realtime/{machineId}/sku": {
      "post": {
        "operationId": "AddSkuToCurrentShift",
        "responses": {
          "204": {
            "description": "No content"
          }
        },
        "tags": [
          "Internal"
        ],
        "security": [
          {
            "bearerAuth": [
              "bot"
            ]
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "machineId",
            "required": true,
            "schema": {
              "format": "double",
              "type": "number"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AddSkuToSplitProductionBasicParams"
              }
            }
          }
        }
      },
      "put": {
        "operationId": "ChangeProductionAdvancementSku",
        "responses": {
          "204": {
            "description": "No content"
          }
        },
        "tags": [
          "Internal"
        ],
        "security": [
          {
            "bearerAuth": [
              "bot"
            ]
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "machineId",
            "required": true,
            "schema": {
              "format": "double",
              "type": "number"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ChangeProductionAdvancementSkuParams"
              }
            }
          }
        }
      }
    },
    "/v1/internal/machines/{machineId}/notification-context": {
      "get": {
        "operationId": "GetNotificationContext",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MachineNotificationContextResponse"
                }
              }
            }
          }
        },
        "tags": [
          "Internal"
        ],
        "security": [
          {
            "bearerAuth": [
              "bot"
            ]
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "machineId",
            "required": true,
            "schema": {
              "format": "double",
              "type": "number"
            }
          }
        ]
      }
    },
    "/kpi/oee/{shiftId}": {
      "get": {
        "operationId": "GetOEE",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/KpiMetrics"
                }
              }
            }
          }
        },
        "tags": [
          "metrics"
        ],
        "security": [
          {
            "bearerAuth": [
              "user",
              "superuser",
              "admin",
              "superadmin",
              "readonly"
            ]
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "shiftId",
            "required": true,
            "schema": {
              "format": "double",
              "type": "number"
            }
          }
        ]
      }
    },
    "/kpi/production/{shiftId}": {
      "get": {
        "operationId": "GetProductionOEE",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProductionMetrics"
                }
              }
            }
          }
        },
        "tags": [
          "metrics"
        ],
        "security": [
          {
            "bearerAuth": [
              "user",
              "superuser",
              "admin",
              "superadmin",
              "readonly"
            ]
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "shiftId",
            "required": true,
            "schema": {
              "format": "double",
              "type": "number"
            }
          }
        ]
      }
    },
    "/kpi/waterfall": {
      "post": {
        "operationId": "BuildWaterfallGraph",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WaterfallRes"
                }
              }
            }
          }
        },
        "description": "Waterfall report\n/kpi/waterfall\n\nReplaces: /machine/:id/downtime-metrics:",
        "tags": [
          "metrics",
          "metrics"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WaterfallReq"
              }
            }
          }
        }
      }
    },
    "/machines/config-ui": {
      "patch": {
        "operationId": "UpdateMachinesConfigUI",
        "responses": {
          "204": {
            "description": "No content"
          }
        },
        "tags": [
          "Machines Config UI"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MachineConfigUIUpdateParams"
              }
            }
          }
        }
      }
    },
    "/machines/config-ui/default": {
      "patch": {
        "operationId": "UpdateMachinesConfigUIDefault",
        "responses": {
          "204": {
            "description": "No content"
          }
        },
        "tags": [
          "Machines Config UI"
        ],
        "security": [
          {
            "bearerAuth": [
              "superadmin",
              "superuser"
            ]
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MachineConfigUIUpdateParams"
              }
            }
          }
        }
      }
    },
    "/machines/metrics/config-ui": {
      "patch": {
        "operationId": "UpdateMachineMetricssConfigUI",
        "responses": {
          "204": {
            "description": "No content"
          }
        },
        "tags": [
          "Machines Config UI"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MachineMetricsConfigUIParams"
              }
            }
          }
        }
      }
    },
    "/machines/metrics/config-ui/all": {
      "patch": {
        "operationId": "UpdateMachinesConfigUIAll",
        "responses": {
          "204": {
            "description": "No content"
          }
        },
        "tags": [
          "Machines Config UI"
        ],
        "security": [
          {
            "bearerAuth": [
              "superadmin",
              "superuser"
            ]
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MachineMetricsConfigUIParams"
              }
            }
          }
        }
      }
    },
    "/machines/metrics/config-ui/default": {
      "patch": {
        "operationId": "UpdateMachineMetricssConfigUIDefault",
        "responses": {
          "204": {
            "description": "No content"
          }
        },
        "tags": [
          "Machines Config UI"
        ],
        "security": [
          {
            "bearerAuth": [
              "superadmin",
              "superuser"
            ]
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MachineMetricsConfigUIParams"
              }
            }
          }
        }
      }
    },
    "/machines/{machineId}/config-ui": {
      "patch": {
        "operationId": "UpdateMachineConfigUI",
        "responses": {
          "204": {
            "description": "No content"
          }
        },
        "tags": [
          "Machines Config UI"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "machineId",
            "required": true,
            "schema": {
              "format": "double",
              "type": "number"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MachineConfigUIUpdateParams"
              }
            }
          }
        }
      }
    },
    "/machines/{viewType}/{machineId}/config-ui": {
      "get": {
        "operationId": "GetMachineConfigUI",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/MachineConfigUIMetricEnum"
                  },
                  "type": "array"
                }
              }
            }
          }
        },
        "tags": [
          "Machines Config UI"
        ],
        "security": [
          {
            "bearerAuth": [
              "user",
              "superuser",
              "admin",
              "superadmin",
              "readonly"
            ]
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "viewType",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/MachineConfigUIViewTypeEnum"
            }
          },
          {
            "in": "path",
            "name": "machineId",
            "required": true,
            "schema": {
              "format": "double",
              "type": "number"
            }
          }
        ]
      }
    },
    "/machine-count/latest-counts-in-seconds": {
      "get": {
        "operationId": "GetLatestCountsInSeconds",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CountTimeSeriesInSecondsRes"
                }
              }
            }
          }
        },
        "description": "Get count for last 5 mins, in seconds",
        "tags": [
          "MachineCount"
        ],
        "security": [
          {
            "bearerAuth": [
              "user",
              "superuser",
              "admin",
              "superadmin",
              "readonly"
            ]
          }
        ],
        "parameters": [
          {
            "in": "query",
            "name": "machineId",
            "required": true,
            "schema": {
              "format": "double",
              "type": "number"
            }
          }
        ]
      }
    },
    "/machines/status": {
      "get": {
        "operationId": "GetCurrentStatus",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/CurrentStatusResponse"
                  },
                  "type": "array"
                }
              }
            }
          }
        },
        "description": "Get current machine status\n\nTODO: deprecated, use realtime endpoint instead",
        "tags": [
          "Machine Status"
        ],
        "security": [
          {
            "bearerAuth": [
              "user",
              "superuser",
              "admin",
              "superadmin",
              "readonly"
            ]
          }
        ],
        "parameters": [
          {
            "in": "query",
            "name": "id",
            "required": true,
            "schema": {
              "type": "array",
              "items": {
                "type": "number",
                "format": "double"
              }
            }
          }
        ]
      }
    },
    "/machines/node-amps": {
      "get": {
        "operationId": "GetNodeAmpsPerMinute",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetNodeAmpsPerMinuteResponse"
                }
              }
            }
          }
        },
        "tags": [
          "Machine Status"
        ],
        "security": [
          {
            "bearerAuth": [
              "user",
              "superuser",
              "admin",
              "superadmin",
              "readonly"
            ]
          }
        ],
        "parameters": [
          {
            "in": "query",
            "name": "machineId",
            "required": true,
            "schema": {
              "format": "double",
              "type": "number"
            }
          },
          {
            "in": "query",
            "name": "start",
            "required": true,
            "schema": {
              "format": "date-time",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "end",
            "required": true,
            "schema": {
              "format": "date-time",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "metricType",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/MetricType"
            }
          },
          {
            "in": "query",
            "name": "aggregationType",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/AggregationType"
            }
          }
        ]
      }
    },
    "/machines/node-system-events": {
      "get": {
        "operationId": "GetNodePowerEvents",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetNodePowerEventsResponse"
                }
              }
            }
          }
        },
        "description": "Get node power events (Powered On / Powered Off) for a machine's node(s)\nover a date range (defaults to the last 7 days).",
        "tags": [
          "Machine Status"
        ],
        "security": [
          {
            "bearerAuth": [
              "user",
              "superuser",
              "admin",
              "superadmin",
              "readonly"
            ]
          }
        ],
        "parameters": [
          {
            "in": "query",
            "name": "machineId",
            "required": true,
            "schema": {
              "format": "double",
              "type": "number"
            }
          },
          {
            "in": "query",
            "name": "start",
            "required": false,
            "schema": {
              "format": "date-time",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "end",
            "required": false,
            "schema": {
              "format": "date-time",
              "type": "string"
            }
          }
        ]
      }
    },
    "/machines/node-system-status-logs": {
      "get": {
        "operationId": "GetNodeSystemStatusLogs",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetNodeStatusResponse"
                }
              }
            }
          }
        },
        "description": "Get the per-minute MQTT/WiFi status timeline for a machine's node(s)\nover a date range (defaults to the last 7 days).",
        "tags": [
          "Machine Status"
        ],
        "security": [
          {
            "bearerAuth": [
              "user",
              "superuser",
              "admin",
              "superadmin",
              "readonly"
            ]
          }
        ],
        "parameters": [
          {
            "in": "query",
            "name": "machineId",
            "required": true,
            "schema": {
              "format": "double",
              "type": "number"
            }
          },
          {
            "in": "query",
            "name": "start",
            "required": false,
            "schema": {
              "format": "date-time",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "end",
            "required": false,
            "schema": {
              "format": "date-time",
              "type": "string"
            }
          }
        ]
      }
    },
    "/machines/list": {
      "get": {
        "operationId": "GetMachinesMetrics",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MachineSortedByMetricsResponse"
                }
              }
            }
          }
        },
        "description": "Get list of machines and sort them by metrics\n\nTODO: this endpoint is called for the realtime page to sort and filter machines\nbased on metrics. To calculate the result, all the metrics are calculated and then sorted.\nThis is not ideal, as the metrics are also calculated for the realtime endpoint. Could\nwe move sorting to the front-end? It has all the data and could be done more efficiently.",
        "tags": [
          "Machine Status"
        ],
        "security": [
          {
            "bearerAuth": [
              "user",
              "superuser",
              "admin",
              "superadmin",
              "readonly"
            ]
          }
        ],
        "parameters": [
          {
            "in": "query",
            "name": "sortBy",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "type",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "machineId",
            "required": true,
            "schema": {
              "type": "array",
              "items": {
                "type": "number",
                "format": "double"
              }
            }
          },
          {
            "in": "query",
            "name": "start",
            "required": false,
            "schema": {
              "format": "date-time",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "end",
            "required": false,
            "schema": {
              "format": "date-time",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "shift",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/machines": {
      "get": {
        "operationId": "GetMachines",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/IMachine"
                  },
                  "type": "array"
                }
              }
            }
          }
        },
        "description": "Get list of machines by company id.",
        "tags": [
          "Machines"
        ],
        "security": [
          {
            "bearerAuth": [
              "user",
              "superuser",
              "admin",
              "superadmin",
              "readonly"
            ]
          }
        ],
        "parameters": []
      }
    },
    "/machines/{machineId}/metrics/{metricType}": {
      "get": {
        "operationId": "GetMachineMetrics",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/MachineMetric"
                  },
                  "type": "array"
                }
              }
            }
          }
        },
        "tags": [
          "Machines"
        ],
        "security": [
          {
            "bearerAuth": [
              "user",
              "superuser",
              "admin",
              "superadmin",
              "readonly"
            ]
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "machineId",
            "required": true,
            "schema": {
              "format": "double",
              "type": "number"
            }
          },
          {
            "in": "path",
            "name": "metricType",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/MachineMetricType"
            }
          },
          {
            "in": "query",
            "name": "interval",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/IntervalType"
            }
          },
          {
            "in": "query",
            "name": "start",
            "required": true,
            "schema": {
              "format": "date-time",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "end",
            "required": true,
            "schema": {
              "format": "date-time",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "aggregation",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/AggregationType"
            }
          }
        ]
      }
    },
    "/machines/{machineId}/availability": {
      "get": {
        "operationId": "GetMachineAvailability",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/MachineAvailability"
                  },
                  "type": "array"
                }
              }
            }
          }
        },
        "tags": [
          "Machines"
        ],
        "security": [
          {
            "bearerAuth": [
              "user",
              "superuser",
              "admin",
              "superadmin",
              "readonly"
            ]
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "machineId",
            "required": true,
            "schema": {
              "format": "double",
              "type": "number"
            }
          },
          {
            "in": "query",
            "name": "start",
            "required": true,
            "schema": {
              "format": "date-time",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "end",
            "required": true,
            "schema": {
              "format": "date-time",
              "type": "string"
            }
          }
        ]
      }
    },
    "/machines/historical": {
      "get": {
        "operationId": "GetHistoricalData",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "items": {},
                  "type": "array"
                }
              }
            }
          }
        },
        "tags": [
          "Machines"
        ],
        "security": [
          {
            "bearerAuth": [
              "user",
              "superuser",
              "admin",
              "superadmin",
              "readonly"
            ]
          }
        ],
        "parameters": [
          {
            "in": "query",
            "name": "machineId",
            "required": true,
            "schema": {
              "type": "array",
              "items": {
                "type": "number",
                "format": "double"
              }
            }
          },
          {
            "in": "query",
            "name": "includeOee",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          }
        ]
      }
    },
    "/machines/metrics": {
      "get": {
        "operationId": "GetMetrics",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/MachineMetrics"
                  },
                  "type": "array"
                }
              }
            }
          }
        },
        "tags": [
          "Metrics",
          "Machines"
        ],
        "security": [
          {
            "bearerAuth": [
              "user",
              "superuser",
              "admin",
              "superadmin",
              "readonly"
            ]
          }
        ],
        "parameters": [
          {
            "in": "query",
            "name": "machineId",
            "required": true,
            "schema": {
              "type": "array",
              "items": {
                "type": "number",
                "format": "double"
              }
            }
          },
          {
            "in": "query",
            "name": "days",
            "required": false,
            "schema": {
              "format": "double",
              "type": "number"
            }
          }
        ]
      }
    },
    "/machines/all": {
      "get": {
        "operationId": "GetMachinesWithPagination",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Paginated_GetMachinesRes_"
                }
              }
            }
          }
        },
        "tags": [
          "Machines"
        ],
        "security": [
          {
            "bearerAuth": [
              "user",
              "superuser",
              "admin",
              "superadmin",
              "readonly"
            ]
          }
        ],
        "parameters": [
          {
            "in": "query",
            "name": "page",
            "required": false,
            "schema": {
              "format": "double",
              "type": "number"
            }
          },
          {
            "in": "query",
            "name": "pageSize",
            "required": false,
            "schema": {
              "format": "double",
              "type": "number"
            }
          }
        ]
      }
    },
    "/machines/availability": {
      "get": {
        "operationId": "GetAvailability",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/GetMachinesWorkingReportRes"
                    }
                  },
                  "required": [
                    "data"
                  ],
                  "type": "object"
                }
              }
            }
          }
        },
        "tags": [
          "Machines"
        ],
        "security": [
          {
            "bearerAuth": [
              "user",
              "superuser",
              "admin",
              "superadmin",
              "readonly"
            ]
          }
        ],
        "parameters": [
          {
            "in": "query",
            "name": "machineIds",
            "required": true,
            "schema": {
              "type": "array",
              "items": {
                "type": "number",
                "format": "double"
              }
            }
          },
          {
            "in": "query",
            "name": "range",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/PredefinedTimeRangeType"
            }
          }
        ]
      }
    },
    "/machines/target-availability": {
      "patch": {
        "operationId": "SetTargetAvailability",
        "responses": {
          "204": {
            "description": "No content"
          }
        },
        "tags": [
          "Machines"
        ],
        "security": [
          {
            "bearerAuth": [
              "admin",
              "superadmin",
              "superuser"
            ]
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "items": {
                  "$ref": "#/components/schemas/MachineTargetAvailabilityItem"
                },
                "type": "array"
              }
            }
          }
        }
      }
    },
    "/machines/external-name": {
      "patch": {
        "operationId": "SetExternalName",
        "responses": {
          "204": {
            "description": "No content"
          }
        },
        "tags": [
          "Machines"
        ],
        "security": [
          {
            "bearerAuth": [
              "admin",
              "superadmin",
              "superuser"
            ]
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "items": {
                  "$ref": "#/components/schemas/MachineExternalNameItem"
                },
                "type": "array"
              }
            }
          }
        }
      }
    },
    "/machines/recalculate": {
      "post": {
        "operationId": "Recalculate",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "type": "boolean"
                }
              }
            }
          }
        },
        "tags": [
          "Machines"
        ],
        "security": [
          {
            "bearerAuth": [
              "admin",
              "superadmin",
              "superuser"
            ]
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RecalculateReq"
              }
            }
          }
        }
      }
    },
    "/machines/recalculate-count": {
      "post": {
        "operationId": "RecalculateCount",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "type": "boolean"
                }
              }
            }
          }
        },
        "tags": [
          "Machines"
        ],
        "security": [
          {
            "bearerAuth": [
              "admin",
              "superadmin",
              "superuser"
            ]
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RecalculateCountReq"
              }
            }
          }
        }
      }
    },
    "/machines/{machineId}/default-production-advancement-type": {
      "patch": {
        "operationId": "UpdateDefaultProductionAdvancementType",
        "responses": {
          "204": {
            "description": "No content"
          }
        },
        "tags": [
          "Machines"
        ],
        "security": [
          {
            "bearerAuth": [
              "admin",
              "superadmin",
              "superuser"
            ]
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "machineId",
            "required": true,
            "schema": {
              "format": "double",
              "type": "number"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateDefaultProductionAdvancementTypeReq"
              }
            }
          }
        }
      }
    },
    "/metabase": {
      "get": {
        "operationId": "GetConfig",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "type": "object"
                }
              }
            }
          }
        },
        "tags": [
          "Metabase"
        ],
        "security": [],
        "parameters": []
      }
    },
    "/metabase/dashboard/url": {
      "get": {
        "operationId": "GetDashboardUrl",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "type": "object"
                }
              }
            }
          }
        },
        "tags": [
          "Metabase"
        ],
        "security": [
          {
            "bearerAuth": [
              "user",
              "superuser",
              "admin",
              "superadmin",
              "readonly"
            ]
          }
        ],
        "parameters": [
          {
            "in": "query",
            "name": "dashboard",
            "required": true,
            "schema": {
              "format": "double",
              "type": "number"
            }
          }
        ]
      }
    },
    "/metabase/auth": {
      "get": {
        "operationId": "Auth",
        "responses": {
          "204": {
            "description": "No content"
          }
        },
        "tags": [
          "Metabase"
        ],
        "security": [],
        "parameters": [
          {
            "in": "query",
            "name": "token",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "return_to",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/metrics": {
      "post": {
        "operationId": "GetMetrics",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetricsResponse"
                }
              }
            }
          }
        },
        "description": "Get metrics grouped, sorted and filtered",
        "tags": [
          "metrics"
        ],
        "security": [
          {
            "bearerAuth": [
              "user",
              "superuser",
              "admin",
              "superadmin",
              "readonly"
            ]
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MetricsRequest"
              }
            }
          }
        }
      }
    },
    "/widget/metrics": {
      "post": {
        "operationId": "GetMetrics",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetricsWidgetResponse"
                }
              }
            }
          }
        },
        "description": "Get metrics grouped, sorted and filtered, presented to be consumed by a widget",
        "tags": [
          "metrics"
        ],
        "security": [
          {
            "bearerAuth": [
              "user",
              "superuser",
              "admin",
              "superadmin",
              "readonly"
            ]
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MetricsWidgetRequest"
              }
            }
          }
        }
      }
    },
    "/notifications": {
      "get": {
        "operationId": "GetNotifications",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotificationsListResponse"
                }
              }
            }
          }
        },
        "tags": [
          "Notification"
        ],
        "security": [
          {
            "bearerAuth": [
              "user",
              "superuser",
              "admin",
              "superadmin",
              "readonly"
            ]
          }
        ],
        "parameters": [
          {
            "in": "query",
            "name": "page",
            "required": false,
            "schema": {
              "format": "double",
              "type": "number"
            }
          },
          {
            "in": "query",
            "name": "pageSize",
            "required": false,
            "schema": {
              "format": "double",
              "type": "number"
            }
          },
          {
            "in": "query",
            "name": "status",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "since",
            "required": false,
            "schema": {
              "format": "date-time",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "machineIds",
            "required": false,
            "schema": {
              "type": "array",
              "items": {
                "type": "number",
                "format": "double"
              }
            }
          },
          {
            "in": "query",
            "name": "recipientIds",
            "required": false,
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          }
        ]
      }
    },
    "/notifications/markRead": {
      "patch": {
        "operationId": "MarkAsRead",
        "responses": {
          "204": {
            "description": "No content"
          }
        },
        "tags": [
          "Notification"
        ],
        "security": [
          {
            "bearerAuth": [
              "user",
              "superuser",
              "admin",
              "superadmin",
              "readonly"
            ]
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MarkReadRequest"
              }
            }
          }
        }
      }
    },
    "/notifications/markAllRead": {
      "patch": {
        "operationId": "MarkAllAsRead",
        "responses": {
          "204": {
            "description": "No content"
          }
        },
        "tags": [
          "Notification"
        ],
        "security": [
          {
            "bearerAuth": [
              "user",
              "superuser",
              "admin",
              "superadmin",
              "readonly"
            ]
          }
        ],
        "parameters": []
      }
    },
    "/operator-plan": {
      "post": {
        "operationId": "Create",
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperatorPlanSummaryResponse"
                }
              }
            }
          }
        },
        "description": "Create a new operator plan with schedules",
        "tags": [
          "OperatorPlan"
        ],
        "security": [
          {
            "bearerAuth": [
              "user",
              "superuser",
              "admin",
              "superadmin",
              "readonly"
            ]
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateOperatorPlanRequest"
              }
            }
          }
        }
      },
      "get": {
        "operationId": "GetAll",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperatorPlansSummaryResponse"
                }
              }
            }
          }
        },
        "description": "Get all operator plans",
        "tags": [
          "OperatorPlan"
        ],
        "security": [
          {
            "bearerAuth": [
              "user",
              "superuser",
              "admin",
              "superadmin",
              "readonly"
            ]
          }
        ],
        "parameters": [
          {
            "in": "query",
            "name": "page",
            "required": false,
            "schema": {
              "format": "double",
              "type": "number"
            }
          },
          {
            "in": "query",
            "name": "pageSize",
            "required": false,
            "schema": {
              "format": "double",
              "type": "number"
            }
          }
        ]
      }
    },
    "/operator-plan/replace": {
      "post": {
        "operationId": "Replace",
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReplaceOperatorPlanSummaryResponse"
                }
              }
            }
          }
        },
        "description": "Create a new operator plan with schedules, ending currently active plans that overlap, and deleting future plans that overlap",
        "tags": [
          "OperatorPlan"
        ],
        "security": [
          {
            "bearerAuth": [
              "user",
              "superuser",
              "admin",
              "superadmin",
              "readonly"
            ]
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateOperatorPlanRequest"
              }
            }
          }
        }
      }
    },
    "/operator-plan/file/{fileId}": {
      "post": {
        "operationId": "UploadFile",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "description": "Upload an operator plan file using the provided ID",
        "tags": [
          "OperatorPlan"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "fileId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "file": {
                    "type": "string",
                    "format": "binary"
                  }
                },
                "required": [
                  "file"
                ]
              }
            }
          }
        }
      }
    },
    "/operator-plan/file/{id}": {
      "get": {
        "operationId": "DownloadFile",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "description": "Download an operator plan file by plan ID",
        "tags": [
          "OperatorPlan"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/operator-plan/{id}": {
      "put": {
        "operationId": "Update",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperatorPlanSummaryResponse"
                }
              }
            }
          }
        },
        "description": "Update an existing operator plan (only end date can be updated for Active plans)",
        "tags": [
          "OperatorPlan"
        ],
        "security": [
          {
            "bearerAuth": [
              "user",
              "superuser",
              "admin",
              "superadmin",
              "readonly"
            ]
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateOperatorPlanRequest"
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "Delete",
        "responses": {
          "204": {
            "description": "No content"
          }
        },
        "description": "Delete an operator plan (only Future plans can be deleted)",
        "tags": [
          "OperatorPlan"
        ],
        "security": [
          {
            "bearerAuth": [
              "user",
              "superuser",
              "admin",
              "superadmin",
              "readonly"
            ]
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ]
      },
      "get": {
        "operationId": "GetById",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperatorPlanDetailResponse"
                }
              }
            }
          }
        },
        "description": "Get a single operator plan by ID with all schedules",
        "tags": [
          "OperatorPlan"
        ],
        "security": [
          {
            "bearerAuth": [
              "user",
              "superuser",
              "admin",
              "superadmin",
              "readonly"
            ]
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/operator-timeline/filters": {
      "post": {
        "operationId": "GetAll",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetOperatorTimelinesResponse"
                }
              }
            }
          }
        },
        "description": "Get operator timelines",
        "tags": [
          "OperatorTimeline"
        ],
        "security": [
          {
            "bearerAuth": [
              "user",
              "superuser",
              "admin",
              "superadmin",
              "readonly"
            ]
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetOperatorTimelinesRequest"
              }
            }
          }
        }
      }
    },
    "/operator-timeline/{id}": {
      "patch": {
        "operationId": "UpdateOperator",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/IOperatorTimeline"
                    }
                  ],
                  "nullable": true
                }
              }
            }
          }
        },
        "description": "Update operator",
        "tags": [
          "OperatorTimeline"
        ],
        "security": [
          {
            "bearerAuth": [
              "user",
              "superuser",
              "admin",
              "superadmin",
              "readonly"
            ]
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {}
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateOperatorRequest"
              }
            }
          }
        }
      }
    },
    "/operator-timeline/{id}/split": {
      "post": {
        "operationId": "SplitOperatorTimeline",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/IOperatorTimeline"
                  },
                  "type": "array"
                }
              }
            }
          }
        },
        "tags": [
          "OperatorTimeline"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Uuid"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "items": {
                  "$ref": "#/components/schemas/SplitOperatorTimelineRequest"
                },
                "type": "array"
              }
            }
          }
        }
      }
    },
    "/production-advancements/filters": {
      "post": {
        "operationId": "GetProductionAdvancements",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/ProductionAdvancementSummary"
                  },
                  "type": "array"
                }
              }
            }
          }
        },
        "tags": [
          "V2",
          "ProductionAdvancements"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ProductionAdvancementFilters"
              }
            }
          }
        }
      }
    },
    "/production-advancements/advanced-filters": {
      "post": {
        "operationId": "GetProductionAdvancementsWithAdvancedFilters",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetProductionAdvancementsRes"
                }
              }
            }
          }
        },
        "tags": [
          "V3",
          "ProductionAdvancements"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetProductionAdvancementFilters"
              }
            }
          }
        }
      }
    },
    "/production-advancements/operator-table": {
      "post": {
        "operationId": "GetProductionOrderOperatorTable",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetProductionOrderOperatorTableRes"
                }
              }
            }
          }
        },
        "tags": [
          "V3",
          "ProductionAdvancements"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetProductionOrderOperatorTableFilters"
              }
            }
          }
        }
      }
    },
    "/production-advancements/{id}": {
      "get": {
        "operationId": "GetProductionAdvancementById",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/IProductionAdvancement"
                    }
                  ],
                  "nullable": true
                }
              }
            }
          }
        },
        "tags": [
          "ProductionAdvancements"
        ],
        "security": [
          {
            "bearerAuth": [
              "user",
              "superuser",
              "admin",
              "superadmin",
              "readonly"
            ]
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ]
      },
      "put": {
        "operationId": "UpdateProductionAdvancement",
        "responses": {
          "204": {
            "description": "No content"
          }
        },
        "tags": [
          "ProductionAdvancements"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Partial_PutProductionAdvancementParams_"
              }
            }
          }
        }
      },
      "patch": {
        "operationId": "PatchProductionAdvancement",
        "responses": {
          "204": {
            "description": "No content"
          }
        },
        "tags": [
          "ProductionAdvancements"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PatchProductionAdvancementParams"
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "DeleteProductionAdvancement",
        "responses": {
          "204": {
            "description": "No content"
          }
        },
        "tags": [
          "ProductionAdvancements"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/production-advancements/{machineId}/quantity/suggestions": {
      "post": {
        "operationId": "GetQuantitySuggestions",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/IntervalWithQuantity"
                  },
                  "type": "array"
                }
              }
            }
          }
        },
        "tags": [
          "ProductionAdvancements"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "machineId",
            "required": true,
            "schema": {
              "format": "double",
              "type": "number"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "items": {
                  "$ref": "#/components/schemas/SuggestionsIntervalWithSku"
                },
                "type": "array"
              }
            }
          }
        }
      }
    },
    "/production-advancements/{machineId}/timeframe/suggestions": {
      "post": {
        "operationId": "GetTimeframeSuggestions",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DateRange"
                }
              }
            }
          }
        },
        "tags": [
          "ProductionAdvancements"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "machineId",
            "required": true,
            "schema": {
              "format": "double",
              "type": "number"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ProductionAdvancementType"
              }
            }
          }
        }
      }
    },
    "/production-advancements": {
      "post": {
        "operationId": "CreateProductionAdvancement",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/IProductionAdvancement"
                    }
                  ],
                  "nullable": true
                }
              }
            }
          }
        },
        "tags": [
          "ProductionAdvancements"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PostProductionAdvancementParams"
              }
            }
          }
        }
      },
      "patch": {
        "operationId": "UpdateProductionAdvancements",
        "responses": {
          "204": {
            "description": "No content"
          }
        },
        "tags": [
          "ProductionAdvancements"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ProductionAdvancementPatchParams"
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "DeleteProductionAdvancements",
        "responses": {
          "204": {
            "description": "No content"
          }
        },
        "tags": [
          "ProductionAdvancements"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DeleteProductionAdvancementFilters"
              }
            }
          }
        }
      }
    },
    "/production-advancements/{id}/split": {
      "post": {
        "operationId": "SplitProductionAdvancement",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/IProductionAdvancement"
                  },
                  "type": "array"
                }
              }
            }
          }
        },
        "tags": [
          "ProductionAdvancements"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "items": {
                  "$ref": "#/components/schemas/PostProductionAdvancementParams"
                },
                "type": "array"
              }
            }
          }
        }
      }
    },
    "/production-advancements/{shiftId}/entity/production-full": {
      "post": {
        "operationId": "AddEntityToSplitProductionFull",
        "responses": {
          "204": {
            "description": "No content"
          }
        },
        "tags": [
          "ProductionAdvancements"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "shiftId",
            "required": true,
            "schema": {
              "format": "double",
              "type": "number"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AddEntityToSplitParams"
              }
            }
          }
        }
      }
    },
    "/production-advancements/{shiftId}/entity": {
      "post": {
        "operationId": "AddEntityToSplit",
        "responses": {
          "204": {
            "description": "No content"
          }
        },
        "tags": [
          "ProductionAdvancements"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "shiftId",
            "required": true,
            "schema": {
              "format": "double",
              "type": "number"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AddEntityToSplitParams"
              }
            }
          }
        }
      }
    },
    "/production-advancements/{shiftId}/operator": {
      "post": {
        "operationId": "AddOperatorToSplit",
        "responses": {
          "204": {
            "description": "No content"
          }
        },
        "tags": [
          "ProductionAdvancements"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "shiftId",
            "required": true,
            "schema": {
              "format": "double",
              "type": "number"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AddOperatorToSplitProductionBasicParams"
              }
            }
          }
        }
      }
    },
    "/production-advancements/{shiftId}/sku": {
      "post": {
        "operationId": "AddSkuToSplit",
        "responses": {
          "204": {
            "description": "No content"
          }
        },
        "tags": [
          "ProductionAdvancements"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "shiftId",
            "required": true,
            "schema": {
              "format": "double",
              "type": "number"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AddSkuToSplitProductionBasicParams"
              }
            }
          }
        }
      }
    },
    "/production-advancements/{shiftId}/defects": {
      "post": {
        "operationId": "AddDefectsToSplit",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IProductionAdvancement"
                }
              }
            }
          }
        },
        "tags": [
          "ProductionAdvancements"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "shiftId",
            "required": true,
            "schema": {
              "format": "double",
              "type": "number"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AddDefectsToSplitProductionBasicParams"
              }
            }
          }
        }
      }
    },
    "/production-advancements/bulk": {
      "post": {
        "operationId": "CreateProductionAdvancements",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/IProductionAdvancement"
                  },
                  "type": "array"
                }
              }
            }
          }
        },
        "tags": [
          "ProductionAdvancements"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "items": {
                  "$ref": "#/components/schemas/BulkCreateProductionAdvancementParams"
                },
                "type": "array"
              }
            }
          }
        }
      }
    },
    "/production-advancements/basic/bulk": {
      "post": {
        "operationId": "CreateBasicProductionAdvancementsInBulk",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/IProductionAdvancement"
                  },
                  "type": "array"
                }
              }
            }
          }
        },
        "tags": [
          "ProductionAdvancements"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "items": {
                  "$ref": "#/components/schemas/BulkCreateBasicProductionAdvancementParams"
                },
                "type": "array"
              }
            }
          }
        }
      }
    },
    "/production-advancements/working-minutes/{machineId}": {
      "get": {
        "operationId": "GetWorkingMinutes",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "type": "number",
                  "format": "double"
                }
              }
            }
          }
        },
        "tags": [
          "ProductionAdvancements"
        ],
        "security": [
          {
            "bearerAuth": [
              "user",
              "superuser",
              "admin",
              "superadmin",
              "readonly"
            ]
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "machineId",
            "required": true,
            "schema": {
              "format": "double",
              "type": "number"
            }
          },
          {
            "in": "query",
            "name": "start",
            "required": true,
            "schema": {
              "format": "date-time",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "end",
            "required": true,
            "schema": {
              "format": "date-time",
              "type": "string"
            }
          }
        ]
      }
    },
    "/quality-issue-groups": {
      "get": {
        "operationId": "GetQualityIssueGroups",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/QualityIssueGroupResponse"
                  },
                  "type": "array"
                }
              }
            }
          }
        },
        "tags": [
          "QualityIssueGroups"
        ],
        "security": [
          {
            "bearerAuth": [
              "user",
              "superuser",
              "admin",
              "superadmin",
              "readonly"
            ]
          }
        ],
        "parameters": []
      },
      "post": {
        "operationId": "CreateQualityIssueGroup",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QualityIssueGroupResponse"
                }
              }
            }
          }
        },
        "tags": [
          "QualityIssueGroups"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PostQualityIssueGroupParams"
              }
            }
          }
        }
      }
    },
    "/quality-issue-groups/{id}": {
      "put": {
        "operationId": "UpdateQualityIssueGroup",
        "responses": {
          "204": {
            "description": "No content"
          }
        },
        "tags": [
          "QualityIssueGroups"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Partial_PostQualityIssueGroupParams_"
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "DeleteQualityIssueGroup",
        "responses": {
          "204": {
            "description": "No content"
          }
        },
        "tags": [
          "QualityIssueGroups"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/quality-issues/{id}/group": {
      "put": {
        "operationId": "MoveQualityIssueToGroup",
        "responses": {
          "204": {
            "description": "No content"
          }
        },
        "tags": [
          "QualityIssues"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MoveQualityIssueToGroupBody"
              }
            }
          }
        }
      }
    },
    "/v1/public/nominal-speeds/{id}": {
      "get": {
        "operationId": "GetNominalSpeedById",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/NominalSpeedDto"
                    }
                  ],
                  "nullable": true
                }
              }
            }
          }
        },
        "tags": [
          "Public"
        ],
        "security": [
          {
            "bearerAuth": [
              "superuser"
            ]
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Uuid"
            }
          }
        ]
      },
      "patch": {
        "operationId": "UpdateNominalSpeed",
        "responses": {
          "204": {
            "description": "No content"
          }
        },
        "tags": [
          "Public"
        ],
        "security": [
          {
            "bearerAuth": [
              "superuser"
            ]
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Uuid"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Partial_CreateNominalSpeedDto_"
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "DeleteNominalSpeedById",
        "responses": {
          "204": {
            "description": "No content"
          }
        },
        "tags": [
          "Public"
        ],
        "security": [
          {
            "bearerAuth": [
              "superuser"
            ]
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Uuid"
            }
          }
        ]
      }
    },
    "/v1/public/nominal-speeds/filters": {
      "post": {
        "operationId": "GetNominalSpeedsFilters",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetNominalSpeedsByFiltersResponse"
                }
              }
            }
          }
        },
        "tags": [
          "Public"
        ],
        "security": [
          {
            "bearerAuth": [
              "superuser"
            ]
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetNominalSpeedsByFiltersRequest"
              }
            }
          }
        }
      }
    },
    "/v1/public/nominal-speeds": {
      "post": {
        "operationId": "CreateMultipleNominalSpeeds",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/NominalSpeedDto"
                  },
                  "type": "array"
                }
              }
            }
          }
        },
        "tags": [
          "Public"
        ],
        "security": [
          {
            "bearerAuth": [
              "superuser"
            ]
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "items": {
                  "$ref": "#/components/schemas/CreateNominalSpeedDto"
                },
                "type": "array"
              }
            }
          }
        }
      }
    },
    "/v1/public/operators/{id}": {
      "get": {
        "operationId": "GetOperatorById",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/OperatorDto"
                    }
                  ],
                  "nullable": true
                }
              }
            }
          }
        },
        "tags": [
          "Public"
        ],
        "security": [
          {
            "bearerAuth": [
              "superuser"
            ]
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "double",
              "type": "number"
            }
          }
        ]
      },
      "patch": {
        "operationId": "UpdateOperator",
        "responses": {
          "204": {
            "description": "No content"
          }
        },
        "tags": [
          "Public"
        ],
        "security": [
          {
            "bearerAuth": [
              "superuser"
            ]
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "double",
              "type": "number"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Partial_CreateOperatorDto_"
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "DeleteOperatorById",
        "responses": {
          "204": {
            "description": "No content"
          }
        },
        "tags": [
          "Public"
        ],
        "security": [
          {
            "bearerAuth": [
              "superuser"
            ]
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "double",
              "type": "number"
            }
          }
        ]
      }
    },
    "/v1/public/operators/filters": {
      "post": {
        "operationId": "GetOperatorsFilters",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetOperatorsByFiltersResponse"
                }
              }
            }
          }
        },
        "tags": [
          "Public"
        ],
        "security": [
          {
            "bearerAuth": [
              "superuser"
            ]
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetOperatorsByFiltersRequest"
              }
            }
          }
        }
      }
    },
    "/v1/public/operators": {
      "post": {
        "operationId": "CreateMultipleOperators",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/OperatorDto"
                  },
                  "type": "array"
                }
              }
            }
          }
        },
        "tags": [
          "Public"
        ],
        "security": [
          {
            "bearerAuth": [
              "superuser"
            ]
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "items": {
                  "$ref": "#/components/schemas/CreateOperatorDto"
                },
                "type": "array"
              }
            }
          }
        }
      }
    },
    "/v1/public/machines": {
      "get": {
        "operationId": "GetMachines",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/MachineDto"
                  },
                  "type": "array"
                }
              }
            }
          }
        },
        "tags": [
          "Public"
        ],
        "security": [
          {
            "bearerAuth": [
              "superuser"
            ]
          }
        ],
        "parameters": []
      }
    },
    "/v1/public/skus/{id}": {
      "get": {
        "operationId": "GetSkuById",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/SkuDto"
                    }
                  ],
                  "nullable": true
                }
              }
            }
          }
        },
        "tags": [
          "Public"
        ],
        "security": [
          {
            "bearerAuth": [
              "superuser"
            ]
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Uuid"
            }
          }
        ]
      },
      "patch": {
        "operationId": "UpdateSku",
        "responses": {
          "204": {
            "description": "No content"
          }
        },
        "tags": [
          "Public"
        ],
        "security": [
          {
            "bearerAuth": [
              "superuser"
            ]
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Uuid"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Partial_CreateSkuDto_"
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "DeleteSkuById",
        "responses": {
          "204": {
            "description": "No content"
          }
        },
        "tags": [
          "Public"
        ],
        "security": [
          {
            "bearerAuth": [
              "superuser"
            ]
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Uuid"
            }
          }
        ]
      }
    },
    "/v1/public/skus/filters": {
      "post": {
        "operationId": "GetSkusFilters",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetSkusByFiltersResponse"
                }
              }
            }
          }
        },
        "tags": [
          "Public"
        ],
        "security": [
          {
            "bearerAuth": [
              "superuser"
            ]
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetSkusByFiltersRequest"
              }
            }
          }
        }
      }
    },
    "/v1/public/skus": {
      "post": {
        "operationId": "CreateMultipleSkus",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/SkuDto"
                  },
                  "type": "array"
                }
              }
            }
          }
        },
        "tags": [
          "Public"
        ],
        "security": [
          {
            "bearerAuth": [
              "superuser"
            ]
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "items": {
                  "$ref": "#/components/schemas/CreateSkuDto"
                },
                "type": "array"
              }
            }
          }
        }
      }
    },
    "/v1/public/production-advancements/{id}": {
      "get": {
        "operationId": "GetProductionAdvancementById",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/ProductionAdvancementDto"
                    }
                  ],
                  "nullable": true
                }
              }
            }
          }
        },
        "tags": [
          "Public"
        ],
        "security": [
          {
            "bearerAuth": [
              "superuser"
            ]
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Uuid"
            }
          }
        ]
      },
      "patch": {
        "operationId": "UpdateProductionAdvancement",
        "responses": {
          "204": {
            "description": "No content"
          }
        },
        "tags": [
          "Public"
        ],
        "security": [
          {
            "bearerAuth": [
              "superuser"
            ]
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Uuid"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Partial_CreateProductionAdvancementDto_"
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "DeleteProductionAdvancementById",
        "responses": {
          "204": {
            "description": "No content"
          }
        },
        "tags": [
          "Public"
        ],
        "security": [
          {
            "bearerAuth": [
              "superuser"
            ]
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Uuid"
            }
          }
        ]
      }
    },
    "/v1/public/production-advancements/filters": {
      "post": {
        "operationId": "GetProductionAdvancementsFilters",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetProductionAdvancementsByFiltersResponse"
                }
              }
            }
          }
        },
        "tags": [
          "Public"
        ],
        "security": [
          {
            "bearerAuth": [
              "superuser"
            ]
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetProductionAdvancementsByFiltersRequest"
              }
            }
          }
        }
      }
    },
    "/v1/public/production-advancements": {
      "post": {
        "operationId": "CreateMultipleProductionAdvancements",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/ProductionAdvancementDto"
                  },
                  "type": "array"
                }
              }
            }
          }
        },
        "tags": [
          "Public"
        ],
        "security": [
          {
            "bearerAuth": [
              "superuser"
            ]
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "items": {
                  "$ref": "#/components/schemas/CreateProductionAdvancementDto"
                },
                "type": "array"
              }
            }
          }
        }
      }
    },
    "/v1/public/realtime/{machineId}/sku": {
      "post": {
        "operationId": "AddSkuToCurrentShift",
        "responses": {
          "204": {
            "description": "No content"
          }
        },
        "tags": [
          "Public"
        ],
        "security": [
          {
            "bearerAuth": [
              "superuser"
            ]
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "machineId",
            "required": true,
            "schema": {
              "format": "double",
              "type": "number"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AddSkuToSplitProductionBasicParams"
              }
            }
          }
        }
      }
    },
    "/v1/public/realtime/{machineId}/operator": {
      "post": {
        "operationId": "AddOperatorToCurrentShift",
        "responses": {
          "204": {
            "description": "No content"
          }
        },
        "tags": [
          "Public"
        ],
        "security": [
          {
            "bearerAuth": [
              "superuser"
            ]
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "machineId",
            "required": true,
            "schema": {
              "format": "double",
              "type": "number"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AddOperatorToSplitProductionBasicParams"
              }
            }
          }
        }
      }
    },
    "/v1/public/shifts/capture-window": {
      "get": {
        "operationId": "GetShiftsCaptureWindow",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/ReturnType_typeofserializeShift_"
                  },
                  "type": "array"
                }
              }
            }
          }
        },
        "tags": [
          "Public"
        ],
        "security": [
          {
            "bearerAuth": [
              "superuser"
            ]
          }
        ],
        "parameters": [
          {
            "in": "query",
            "name": "machineId",
            "required": true,
            "schema": {
              "type": "array",
              "items": {
                "type": "number",
                "format": "double"
              }
            }
          },
          {
            "in": "query",
            "name": "nDays",
            "required": false,
            "schema": {
              "default": 14,
              "format": "double",
              "type": "number"
            }
          }
        ]
      }
    },
    "/v1/public/reports/stops": {
      "post": {
        "operationId": "GetStopReport",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetStopReportByFiltersResponse"
                }
              }
            }
          }
        },
        "tags": [
          "Public"
        ],
        "security": [
          {
            "bearerAuth": [
              "superuser"
            ]
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetStopReportByFiltersRequest"
              }
            }
          }
        }
      }
    },
    "/v1/public/reports/metrics": {
      "post": {
        "operationId": "GetMetricReport",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetMetricReportByFiltersResponse"
                }
              }
            }
          }
        },
        "tags": [
          "Public"
        ],
        "security": [
          {
            "bearerAuth": [
              "superuser"
            ]
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetMetricReportByFiltersRequest"
              }
            }
          }
        }
      }
    },
    "/qos/ping": {
      "get": {
        "operationId": "Ping",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "description": "Simple Health check for the API",
        "tags": [
          "QOS"
        ],
        "security": [],
        "parameters": []
      }
    },
    "/qos/echo": {
      "get": {
        "operationId": "Echo",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "description": "Helps to understand the basics about @Query params",
        "tags": [
          "QOS"
        ],
        "security": [],
        "parameters": [
          {
            "in": "query",
            "name": "s",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/qos/error/{statusCode}": {
      "get": {
        "operationId": "TestError",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": ""
          },
          "500": {
            "description": ""
          }
        },
        "description": "Helps to understand the basics about error handling",
        "tags": [
          "QOS"
        ],
        "security": [],
        "parameters": [
          {
            "in": "path",
            "name": "statusCode",
            "required": true,
            "schema": {
              "type": "number",
              "enum": [
                400,
                500,
                666
              ]
            }
          }
        ]
      }
    },
    "/qos/isHttps": {
      "get": {
        "operationId": "IsHttps",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "type": "boolean"
                }
              }
            }
          },
          "426": {
            "description": "HTTPS Required"
          }
        },
        "description": "Ensure that we use https. This could be done in a middleware.\nFor now, it's an example of error handling.",
        "tags": [
          "QOS"
        ],
        "security": [],
        "parameters": []
      }
    },
    "/qos/private": {
      "get": {
        "operationId": "Private",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IUser"
                }
              }
            }
          }
        },
        "description": "Helps to understand and validate the basics about private endpoints",
        "tags": [
          "QOS"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": []
      }
    },
    "/qos/private/role/admin": {
      "get": {
        "operationId": "PrivateRoleAdmin",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "description": "Helps to understand and validate the basics about private endpoints with roles",
        "tags": [
          "QOS"
        ],
        "security": [
          {
            "bearerAuth": [
              "admin",
              "superadmin",
              "superuser"
            ]
          }
        ],
        "parameters": []
      }
    },
    "/raw-materials": {
      "get": {
        "operationId": "GetRawMaterials",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/RawMaterialValue"
                  },
                  "type": "array"
                }
              }
            }
          }
        },
        "tags": [
          "RawMaterials"
        ],
        "security": [
          {
            "bearerAuth": [
              "user",
              "superuser",
              "admin",
              "superadmin",
              "readonly"
            ]
          }
        ],
        "parameters": []
      },
      "post": {
        "operationId": "CreateRawMaterials",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RawMaterialValue"
                }
              }
            }
          }
        },
        "tags": [
          "RawMaterials"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateRawMaterialParams"
              }
            }
          }
        }
      }
    },
    "/raw-materials/{id}": {
      "get": {
        "operationId": "GetRawMaterial",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RawMaterialValue"
                }
              }
            }
          }
        },
        "tags": [
          "RawMaterials"
        ],
        "security": [
          {
            "bearerAuth": [
              "user",
              "superuser",
              "admin",
              "superadmin",
              "readonly"
            ]
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ]
      },
      "put": {
        "operationId": "UpdateRawMaterials",
        "responses": {
          "204": {
            "description": "No content"
          }
        },
        "tags": [
          "RawMaterials"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RawMaterialValue"
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "DeleteRawMaterials",
        "responses": {
          "204": {
            "description": "No content"
          }
        },
        "tags": [
          "RawMaterials"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/raw-materials/tool-requests": {
      "post": {
        "operationId": "Create",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToolRequestValue"
                }
              }
            }
          }
        },
        "tags": [
          "ToolRequests"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateToolRequestParams"
              }
            }
          }
        }
      }
    },
    "/raw-materials/tool-requests/list": {
      "get": {
        "operationId": "List",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Paginated_ToolRequestValue_"
                }
              }
            }
          }
        },
        "tags": [
          "ToolRequests"
        ],
        "security": [
          {
            "bearerAuth": [
              "user",
              "superuser",
              "admin",
              "superadmin",
              "readonly"
            ]
          }
        ],
        "parameters": [
          {
            "in": "query",
            "name": "fulfilled",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "in": "query",
            "name": "from",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "to",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "page",
            "required": false,
            "schema": {
              "format": "double",
              "type": "number"
            }
          },
          {
            "in": "query",
            "name": "pageSize",
            "required": false,
            "schema": {
              "format": "double",
              "type": "number"
            }
          }
        ]
      }
    },
    "/raw-materials/tool-requests/{id}/fulfill": {
      "patch": {
        "operationId": "Fulfill",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToolRequestValue"
                }
              }
            }
          }
        },
        "tags": [
          "ToolRequests"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/machines/realtime": {
      "get": {
        "operationId": "GetRealtimeForMultipleMachines",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/MultiMachineRealtimeRes"
                    },
                    {
                      "items": {
                        "$ref": "#/components/schemas/RealtimeRes"
                      },
                      "type": "array"
                    }
                  ]
                }
              }
            }
          }
        },
        "description": "Get Realtime information by machineIds.\nRequest components=hourByHourPerformance for hourly performance percentages in metrics.\nEach bucket contains from, to, and performance (null when it cannot be calculated).",
        "tags": [
          "realtime",
          "realtime"
        ],
        "security": [
          {
            "bearerAuth": [
              "user",
              "superuser",
              "admin",
              "superadmin",
              "readonly"
            ]
          }
        ],
        "parameters": [
          {
            "in": "query",
            "name": "machineId",
            "required": true,
            "schema": {
              "type": "array",
              "items": {
                "type": "number",
                "format": "double"
              }
            }
          },
          {
            "in": "query",
            "name": "start",
            "required": false,
            "schema": {
              "format": "date-time",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "end",
            "required": false,
            "schema": {
              "format": "date-time",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "shift",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "sortBy",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "direction",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "filterStatus",
            "required": false,
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "format": "double",
              "type": "number"
            }
          },
          {
            "in": "query",
            "name": "offset",
            "required": false,
            "schema": {
              "format": "double",
              "type": "number"
            }
          },
          {
            "in": "query",
            "name": "v2",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "in": "query",
            "name": "components",
            "required": false,
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/RealtimeComponents"
              }
            }
          }
        ]
      }
    },
    "/machines/realtime/v2": {
      "get": {
        "operationId": "GetRealtimeForMultipleMachinesV2",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaginatedLegacy_RealtimeRes_"
                }
              }
            }
          }
        },
        "description": "Get Realtime information by machineIds.",
        "tags": [
          "realtime",
          "realtime"
        ],
        "security": [
          {
            "bearerAuth": [
              "user",
              "superuser",
              "admin",
              "superadmin",
              "readonly"
            ]
          }
        ],
        "parameters": [
          {
            "in": "query",
            "name": "start",
            "required": false,
            "schema": {
              "format": "date-time",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "end",
            "required": false,
            "schema": {
              "format": "date-time",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "shift",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "page",
            "required": false,
            "schema": {
              "format": "double",
              "type": "number"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "format": "double",
              "type": "number"
            }
          },
          {
            "in": "query",
            "name": "sortBy",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "sortOrder",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "machineIds",
            "required": false,
            "schema": {
              "type": "array",
              "items": {
                "type": "number",
                "format": "double"
              }
            }
          },
          {
            "in": "query",
            "name": "status",
            "required": false,
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          {
            "in": "query",
            "name": "machineName",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/machines/realtime/operators": {
      "get": {
        "operationId": "GetRealtimeForOperators",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaginatedLegacy_OperatorRealtimeRes_"
                }
              }
            }
          }
        },
        "description": "Get the production of each operator for the current shift (Tower Control Operator View).\nReturns one row per operator per machine for the specified machines. Machines are sorted by\nname (asc by default), expanded into operator rows, and paginated before metrics are computed,\nso only the machines represented by the current operator page are fetched. Within each machine,\noperators are sorted by name asc. Each row includes the latest SKU associated with that operator's\nproduction as `skuId` and `sku`.",
        "tags": [
          "realtime",
          "realtime"
        ],
        "security": [
          {
            "bearerAuth": [
              "user",
              "superuser",
              "admin",
              "superadmin",
              "readonly"
            ]
          }
        ],
        "parameters": [
          {
            "in": "query",
            "name": "machineId",
            "required": true,
            "schema": {
              "type": "array",
              "items": {
                "type": "number",
                "format": "double"
              }
            }
          },
          {
            "in": "query",
            "name": "direction",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/SortDirection"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "format": "double",
              "type": "number"
            }
          },
          {
            "in": "query",
            "name": "offset",
            "required": false,
            "schema": {
              "format": "double",
              "type": "number"
            }
          }
        ]
      }
    },
    "/machines/realtime/detail/{machineId}": {
      "get": {
        "operationId": "GetRealtimeDetailForMachine",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RealtimeRes"
                }
              }
            }
          }
        },
        "description": "Get Realtime information by machineIds.",
        "tags": [
          "realtime",
          "realtime"
        ],
        "security": [
          {
            "bearerAuth": [
              "user",
              "superuser",
              "admin",
              "superadmin",
              "readonly"
            ]
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "machineId",
            "required": true,
            "schema": {
              "format": "double",
              "type": "number"
            }
          },
          {
            "in": "query",
            "name": "shiftTitle",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "shiftDay",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/machines/realtime/daily-hourly-production": {
      "get": {
        "operationId": "GetDailyHourlyProduction",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/DailyHourlyProductionResponse"
                    },
                    {
                      "$ref": "#/components/schemas/DailyHourlyProductionBySkuResponse"
                    }
                  ]
                }
              }
            }
          }
        },
        "description": "Get hourly production data for machines of the user's company for a specific day.\nReturns a map of machine IDs to arrays of 24 hourly production counts.",
        "tags": [
          "realtime",
          "realtime"
        ],
        "security": [
          {
            "bearerAuth": [
              "user",
              "superuser",
              "admin",
              "superadmin",
              "readonly"
            ]
          }
        ],
        "parameters": [
          {
            "description": "Optional date in YYYY-MM-DD format. Defaults to today.",
            "in": "query",
            "name": "date",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Optional comma-separated list of machine IDs to filter.",
            "in": "query",
            "name": "machineIds",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "groupBySku",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "in": "query",
            "name": "skuIds",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/machines/realtime/daily-production-by-interval": {
      "get": {
        "operationId": "GetDailyProductionByInterval",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DailyIntervalProductionResponse"
                }
              }
            }
          }
        },
        "description": "Get production data aggregated into configurable minute intervals for a specific day.\nValues are ordered from 00:00 in the user's timezone. Intervals must be positive whole\nminutes up to one day (for example 15, 30, or 60).",
        "tags": [
          "realtime",
          "realtime"
        ],
        "security": [
          {
            "bearerAuth": [
              "user",
              "superuser",
              "admin",
              "superadmin",
              "readonly"
            ]
          }
        ],
        "parameters": [
          {
            "description": "Number of minutes in each production bucket.",
            "in": "query",
            "name": "intervalMinutes",
            "required": true,
            "schema": {
              "format": "double",
              "type": "number"
            }
          },
          {
            "description": "Optional date in YYYY-MM-DD format. Defaults to today.",
            "in": "query",
            "name": "date",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Optional comma-separated list of machine IDs to filter.",
            "in": "query",
            "name": "machineIds",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/subscriptions/dashboards/grouped": {
      "get": {
        "operationId": "DashboardBySecion",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/DashboardBySectionRes"
                  },
                  "type": "array"
                }
              }
            }
          }
        },
        "description": "Get the dashboards divided by section",
        "tags": [
          "ReportSubscription"
        ],
        "security": [
          {
            "bearerAuth": [
              "user",
              "superuser",
              "admin",
              "superadmin",
              "readonly"
            ]
          }
        ],
        "parameters": [
          {
            "in": "query",
            "name": "lang",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/Language"
            }
          }
        ]
      }
    },
    "/subscriptions/dashboards": {
      "get": {
        "operationId": "Dashboards",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/DashboardRes"
                  },
                  "type": "array"
                }
              }
            }
          }
        },
        "description": "Get the dashboards and it's filters",
        "tags": [
          "ReportSubscription"
        ],
        "security": [
          {
            "bearerAuth": [
              "user",
              "superuser",
              "admin",
              "superadmin",
              "readonly"
            ]
          }
        ],
        "parameters": [
          {
            "in": "query",
            "name": "lang",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/Language"
            }
          }
        ]
      }
    },
    "/subscriptions/{subscriptionId}/logs/{id}/download": {
      "get": {
        "operationId": "Download",
        "responses": {
          "302": {
            "description": "Redirect",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "description": "Download the file generated for a log",
        "tags": [
          "ReportSubscriptionLog"
        ],
        "security": [
          {
            "bearerAuth": [
              "user",
              "superuser",
              "admin",
              "superadmin",
              "readonly"
            ]
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "subscriptionId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/subscriptions/{subscriptionId}/logs": {
      "get": {
        "operationId": "List",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/SubscriptionLogRes"
                  },
                  "type": "array"
                }
              }
            }
          }
        },
        "description": "Logs for a subscription",
        "tags": [
          "ReportSubscriptionLog"
        ],
        "security": [
          {
            "bearerAuth": [
              "user",
              "superuser",
              "admin",
              "superadmin",
              "readonly"
            ]
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "subscriptionId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/subscriptions/{subscriptionId}/logs/{id}/cancel": {
      "post": {
        "operationId": "Cancel",
        "responses": {
          "202": {
            "description": ""
          }
        },
        "description": "Cancel a specific subscription log",
        "tags": [
          "ReportSubscriptionLog"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/subscriptions": {
      "get": {
        "operationId": "Subscriptions",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/SubscriptionRes"
                  },
                  "type": "array"
                }
              }
            }
          }
        },
        "description": "Get the current subscriptions",
        "tags": [
          "ReportSubscription"
        ],
        "security": [
          {
            "bearerAuth": [
              "user",
              "superuser",
              "admin",
              "superadmin",
              "readonly"
            ]
          }
        ],
        "parameters": [
          {
            "in": "query",
            "name": "lang",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/Language"
            }
          }
        ]
      },
      "post": {
        "operationId": "Create",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SubscriptionRes"
                }
              }
            }
          }
        },
        "description": "Create a new subscription",
        "tags": [
          "ReportSubscription"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "in": "query",
            "name": "lang",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/Language"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SubscriptionParams"
              }
            }
          }
        }
      }
    },
    "/subscriptions/{id}": {
      "get": {
        "operationId": "Subscription",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SubscriptionRes"
                }
              }
            }
          }
        },
        "description": "Get a single subscription by id",
        "tags": [
          "ReportSubscription"
        ],
        "security": [
          {
            "bearerAuth": [
              "user",
              "superuser",
              "admin",
              "superadmin",
              "readonly"
            ]
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "lang",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/Language"
            }
          }
        ]
      },
      "patch": {
        "operationId": "Update",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SubscriptionRes"
                }
              }
            }
          }
        },
        "description": "Update a subscription",
        "tags": [
          "ReportSubscription"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "lang",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/Language"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SubscriptionParams"
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "Delete",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SubscriptionRes"
                }
              }
            }
          }
        },
        "description": "Delete a subscription",
        "tags": [
          "ReportSubscription"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "lang",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/Language"
            }
          }
        ]
      }
    },
    "/subscriptions/{id}/order": {
      "patch": {
        "operationId": "UpdateOrder",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SubscriptionRes"
                }
              }
            }
          }
        },
        "description": "Update subscription dashboards order",
        "tags": [
          "ReportSubscription"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "lang",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/Language"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SubscriptionDashboardsOrderParams"
              }
            }
          }
        }
      }
    },
    "/subscriptions/{id}/send": {
      "post": {
        "operationId": "Send",
        "responses": {
          "204": {
            "description": "No content"
          }
        },
        "description": "Send a subscription report ad-hoc",
        "tags": [
          "ReportSubscription"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "lang",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/Language"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SendSubscriptionParams"
              }
            }
          }
        }
      }
    },
    "/data/availability-report": {
      "get": {
        "operationId": "GetAvailabilityReport",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "data": {
                      "items": {
                        "additionalProperties": false,
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "data"
                  ],
                  "type": "object"
                }
              }
            }
          }
        },
        "tags": [
          "Reports"
        ],
        "deprecated": true,
        "security": [
          {
            "bearerAuth": [
              "user",
              "superuser",
              "admin",
              "superadmin",
              "readonly"
            ]
          }
        ],
        "parameters": [
          {
            "in": "query",
            "name": "startTime",
            "required": true,
            "schema": {
              "format": "double",
              "type": "number"
            }
          },
          {
            "in": "query",
            "name": "endTime",
            "required": true,
            "schema": {
              "format": "double",
              "type": "number"
            }
          },
          {
            "in": "query",
            "name": "machineIds",
            "required": true,
            "schema": {
              "type": "array",
              "items": {
                "type": "number",
                "format": "double"
              }
            }
          }
        ]
      }
    },
    "/data/availability-per-sku-report": {
      "get": {
        "operationId": "GetAvailabilityPerSkuReport",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "data": {
                      "items": {
                        "additionalProperties": false,
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "data"
                  ],
                  "type": "object"
                }
              }
            }
          }
        },
        "tags": [
          "Reports"
        ],
        "security": [
          {
            "bearerAuth": [
              "user",
              "superuser",
              "admin",
              "superadmin",
              "readonly"
            ]
          }
        ],
        "parameters": [
          {
            "in": "query",
            "name": "startTime",
            "required": true,
            "schema": {
              "format": "double",
              "type": "number"
            }
          },
          {
            "in": "query",
            "name": "endTime",
            "required": true,
            "schema": {
              "format": "double",
              "type": "number"
            }
          },
          {
            "in": "query",
            "name": "machineIds",
            "required": true,
            "schema": {
              "type": "array",
              "items": {
                "type": "number",
                "format": "double"
              }
            }
          }
        ]
      }
    },
    "/shifts": {
      "get": {
        "operationId": "GetShifts",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/ShiftListMinViewDtoWithHasWorkSteps"
                  },
                  "type": "array"
                }
              }
            }
          }
        },
        "tags": [
          "Shift"
        ],
        "security": [
          {
            "bearerAuth": [
              "user",
              "superuser",
              "admin",
              "superadmin",
              "readonly"
            ]
          }
        ],
        "parameters": [
          {
            "in": "query",
            "name": "start",
            "required": true,
            "schema": {
              "format": "date-time",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "end",
            "required": true,
            "schema": {
              "format": "date-time",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "machineId",
            "required": false,
            "schema": {
              "type": "array",
              "items": {
                "type": "number",
                "format": "double"
              }
            }
          }
        ]
      },
      "delete": {
        "operationId": "DeleteShift",
        "responses": {
          "204": {
            "description": "No content"
          }
        },
        "description": "Delete shifts.",
        "tags": [
          "Shift"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [],
        "requestBody": {
          "description": "The shift information of the shifts that will be deleted.",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DeleteShiftParams"
              }
            }
          }
        }
      },
      "post": {
        "operationId": "CreateShifts",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/IShift"
                  },
                  "type": "array"
                }
              }
            }
          }
        },
        "description": "Create shifts.",
        "tags": [
          "Shift"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [],
        "requestBody": {
          "description": "The shift information to create shifts in bulk.",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateShiftsParams"
              }
            }
          }
        }
      }
    },
    "/shifts/all": {
      "get": {
        "operationId": "GetShiftsWithPagination",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Paginated_GetShiftsRes_"
                }
              }
            }
          }
        },
        "tags": [
          "Shift"
        ],
        "security": [
          {
            "bearerAuth": [
              "user",
              "superuser",
              "admin",
              "superadmin",
              "readonly"
            ]
          }
        ],
        "parameters": [
          {
            "in": "query",
            "name": "start",
            "required": true,
            "schema": {
              "format": "date-time",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "end",
            "required": true,
            "schema": {
              "format": "date-time",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "machineId",
            "required": false,
            "schema": {
              "type": "array",
              "items": {
                "type": "number",
                "format": "double"
              }
            }
          },
          {
            "in": "query",
            "name": "page",
            "required": false,
            "schema": {
              "format": "double",
              "type": "number"
            }
          },
          {
            "in": "query",
            "name": "pageSize",
            "required": false,
            "schema": {
              "format": "double",
              "type": "number"
            }
          }
        ]
      }
    },
    "/shifts/historical": {
      "get": {
        "operationId": "GetHistoricalShifts",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/ShiftListMinViewDto"
                  },
                  "type": "array"
                }
              }
            }
          }
        },
        "tags": [
          "Shift"
        ],
        "security": [
          {
            "bearerAuth": [
              "user",
              "superuser",
              "admin",
              "superadmin",
              "readonly"
            ]
          }
        ],
        "parameters": [
          {
            "in": "query",
            "name": "start",
            "required": true,
            "schema": {
              "format": "date-time",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "end",
            "required": true,
            "schema": {
              "format": "date-time",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "machineId",
            "required": false,
            "schema": {
              "type": "array",
              "items": {
                "type": "number",
                "format": "double"
              }
            }
          }
        ]
      }
    },
    "/shifts/{shiftId}": {
      "patch": {
        "operationId": "UpdateShift",
        "responses": {
          "204": {
            "description": "No content"
          }
        },
        "description": "Update shift.",
        "tags": [
          "Shift"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "description": "The shift id.",
            "in": "path",
            "name": "shiftId",
            "required": true,
            "schema": {
              "format": "double",
              "type": "number"
            }
          }
        ],
        "requestBody": {
          "description": "The shift information that will be updated.",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateShiftParams"
              }
            }
          }
        }
      }
    },
    "/shifts/titles": {
      "get": {
        "operationId": "GetShiftTitles",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "type": "string"
                  },
                  "type": "array"
                }
              }
            }
          }
        },
        "description": "Get shift titles by company id.",
        "tags": [
          "Shift"
        ],
        "security": [
          {
            "bearerAuth": [
              "user",
              "superuser",
              "admin",
              "superadmin",
              "readonly"
            ]
          }
        ],
        "parameters": []
      }
    },
    "/v1/shifts/eligibility": {
      "get": {
        "operationId": "GetEligibility",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ShiftEligibilityResponse"
                }
              }
            }
          }
        },
        "tags": [
          "Shift"
        ],
        "security": [],
        "parameters": [
          {
            "in": "query",
            "name": "machine_id",
            "required": true,
            "schema": {
              "format": "double",
              "type": "number"
            }
          },
          {
            "in": "query",
            "name": "from",
            "required": true,
            "schema": {
              "format": "double",
              "type": "number"
            }
          },
          {
            "in": "query",
            "name": "to",
            "required": true,
            "schema": {
              "format": "double",
              "type": "number"
            }
          }
        ]
      }
    },
    "/stop-settings/{catalog}": {
      "get": {
        "operationId": "GetCatalog",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/StopCatalogRow"
                  },
                  "type": "array"
                }
              }
            }
          }
        },
        "description": "Return StopSpecificCauses",
        "tags": [
          "StopsSettings"
        ],
        "security": [
          {
            "bearerAuth": [
              "user",
              "superuser",
              "admin",
              "superadmin",
              "readonly"
            ]
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "catalog",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/StopCatalogName"
            }
          },
          {
            "in": "query",
            "name": "eager",
            "required": false,
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/StopCatalogEager"
              }
            }
          }
        ]
      }
    },
    "/v2/stops/pareto": {
      "post": {
        "operationId": "BuildParetoReport",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ParetoReport"
                }
              }
            }
          }
        },
        "description": "Pareto report",
        "tags": [
          "OEE",
          "Stops"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ListStopReportRequestBody"
              }
            }
          }
        }
      }
    },
    "/v3/stops/specific-causes/{causeId}/programmed-settings": {
      "put": {
        "operationId": "UpdateSpecificCauseSettings",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StopSpecificCauseSettingsDTO"
                }
              }
            }
          }
        },
        "description": "Update programmed downtime settings for a specific cause.",
        "tags": [
          "Stops"
        ],
        "security": [
          {
            "bearerAuth": [
              "admin",
              "superadmin",
              "superuser"
            ]
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "causeId",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Uuid"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateStopSpecificCauseSettingsRequest"
              }
            }
          }
        }
      }
    },
    "/v3/stops/classifications": {
      "put": {
        "operationId": "UpdateStopsClassifications",
        "responses": {
          "204": {
            "description": "No content"
          }
        },
        "description": "Update stops classifications.",
        "tags": [
          "Classifications",
          "Stops"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/StopsClassificationsReq"
              }
            }
          }
        }
      }
    },
    "/v3/stops/filters": {
      "post": {
        "operationId": "GetStopsWithPagination",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Paginated_GetStopsRes_"
                }
              }
            }
          }
        },
        "tags": [
          "Stops"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetBaseStopsParams"
              }
            }
          }
        }
      }
    },
    "/user-metrics": {
      "post": {
        "operationId": "PostUserMetric",
        "responses": {
          "204": {
            "description": "No content"
          }
        },
        "description": "User Metrics\nPOST /user-metrics",
        "tags": [
          "UserMetrics"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "items": {
                  "$ref": "#/components/schemas/UserMetricsReq"
                },
                "type": "array"
              }
            }
          }
        }
      }
    },
    "/reports/{reportName}.{format}": {
      "get": {
        "operationId": "GetReport",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "data": {
                      "items": {
                        "additionalProperties": false,
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "data"
                  ],
                  "type": "object"
                }
              }
            }
          }
        },
        "tags": [
          "Reports"
        ],
        "security": [
          {
            "bearerAuth": [
              "user",
              "superuser",
              "admin",
              "superadmin",
              "readonly"
            ]
          },
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "reportName",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/ReportName"
            }
          },
          {
            "in": "path",
            "name": "format",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/ReportFormat"
            }
          },
          {
            "in": "query",
            "name": "start",
            "required": true,
            "schema": {
              "format": "date-time",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "end",
            "required": true,
            "schema": {
              "format": "date-time",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "machineIds",
            "required": true,
            "schema": {
              "type": "array",
              "items": {
                "type": "number",
                "format": "double"
              }
            }
          },
          {
            "in": "query",
            "name": "machinesGroupId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/reports/metrics": {
      "post": {
        "operationId": "GetMetricsReportWithPagination",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Paginated_GetMetricsReportRes_"
                }
              }
            }
          }
        },
        "tags": [
          "Reports"
        ],
        "security": [
          {
            "bearerAuth": [
              "superuser"
            ]
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetBaseMetricsReportParams"
              }
            }
          }
        }
      }
    },
    "/simple-work-orders": {
      "get": {
        "operationId": "GetSimpleWorkOrders",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "totalItems": {
                      "type": "number",
                      "format": "double"
                    },
                    "data": {
                      "items": {
                        "$ref": "#/components/schemas/ISimpleWorkOrder"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "totalItems",
                    "data"
                  ],
                  "type": "object"
                }
              }
            }
          }
        },
        "tags": [
          "SimpleWorkOrders"
        ],
        "security": [
          {
            "bearerAuth": [
              "user",
              "superuser",
              "admin",
              "superadmin",
              "readonly"
            ]
          }
        ],
        "parameters": [
          {
            "in": "query",
            "name": "page",
            "required": false,
            "schema": {
              "default": 1,
              "format": "double",
              "type": "number"
            }
          },
          {
            "in": "query",
            "name": "pageSize",
            "required": false,
            "schema": {
              "default": 1000,
              "format": "double",
              "type": "number"
            }
          }
        ]
      },
      "post": {
        "operationId": "CreateSimpleWorkOrder",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ISimpleWorkOrder"
                }
              }
            }
          }
        },
        "tags": [
          "SimpleWorkOrders"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "name": {
                    "type": "string"
                  }
                },
                "required": [
                  "name"
                ],
                "type": "object"
              }
            }
          }
        }
      }
    },
    "/simple-work-orders/search": {
      "get": {
        "operationId": "SearchSimpleWorkOrdersByName",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Paginated_SearchSimpleWorkOrderRes_"
                }
              }
            }
          }
        },
        "tags": [
          "SimpleWorkOrders"
        ],
        "security": [
          {
            "bearerAuth": [
              "user",
              "superuser",
              "admin",
              "superadmin",
              "readonly"
            ]
          }
        ],
        "parameters": [
          {
            "in": "query",
            "name": "name",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "page",
            "required": false,
            "schema": {
              "format": "double",
              "type": "number"
            }
          },
          {
            "in": "query",
            "name": "pageSize",
            "required": false,
            "schema": {
              "format": "double",
              "type": "number"
            }
          }
        ]
      }
    },
    "/simple-work-orders/{id}": {
      "get": {
        "operationId": "GetSimpleWorkOrderById",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ISimpleWorkOrder"
                }
              }
            }
          }
        },
        "tags": [
          "SimpleWorkOrders"
        ],
        "security": [
          {
            "bearerAuth": [
              "user",
              "superuser",
              "admin",
              "superadmin",
              "readonly"
            ]
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ]
      },
      "put": {
        "operationId": "UpdateSimpleWorkOrder",
        "responses": {
          "204": {
            "description": "No content"
          }
        },
        "tags": [
          "SimpleWorkOrders"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "name": {
                    "type": "string"
                  }
                },
                "required": [
                  "name"
                ],
                "type": "object"
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "DeleteSimpleWorkOrder",
        "responses": {
          "204": {
            "description": "No content"
          }
        },
        "tags": [
          "SimpleWorkOrders"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/tags": {
      "get": {
        "operationId": "GetTags",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/TagDTO"
                  },
                  "type": "array"
                }
              }
            }
          }
        },
        "description": "Retrieves all the tags of the company of the user.",
        "tags": [
          "Tags"
        ],
        "security": [
          {
            "bearerAuth": [
              "user",
              "superuser",
              "admin",
              "superadmin",
              "readonly"
            ]
          }
        ],
        "parameters": [
          {
            "in": "query",
            "name": "subject",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/TaggableSubject"
            }
          },
          {
            "in": "query",
            "name": "tagKey",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/tags/{tagId}": {
      "get": {
        "operationId": "GetTag",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TagDTO"
                }
              }
            }
          }
        },
        "description": "Retrieves all the tags of the company of the user.",
        "tags": [
          "Tags"
        ],
        "security": [
          {
            "bearerAuth": [
              "user",
              "superuser",
              "admin",
              "superadmin",
              "readonly"
            ]
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "tagId",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Uuid"
            }
          }
        ]
      }
    },
    "/tags/key": {
      "post": {
        "operationId": "SaveTagKey",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TagDTO"
                }
              }
            }
          }
        },
        "description": "Save a TagKey definition",
        "tags": [
          "Tags"
        ],
        "security": [
          {
            "bearerAuth": [
              "admin",
              "superadmin",
              "superuser"
            ]
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TagKeyDTO"
              }
            }
          }
        }
      }
    },
    "/tags/value": {
      "post": {
        "operationId": "SaveTagValue",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TagDTO"
                }
              }
            }
          }
        },
        "description": "Retrieves all the tags of the company of the user.",
        "tags": [
          "Tags"
        ],
        "security": [
          {
            "bearerAuth": [
              "admin",
              "superadmin",
              "superuser"
            ]
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TagDTO"
              }
            }
          }
        }
      }
    },
    "/tags/tagger": {
      "post": {
        "operationId": "AddTagger",
        "responses": {
          "204": {
            "description": "No content"
          }
        },
        "description": "Tagger is the association between tag and subject.",
        "summary": "Add tag into subject",
        "tags": [
          "Tags"
        ],
        "security": [
          {
            "bearerAuth": [
              "admin",
              "superadmin",
              "superuser"
            ]
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TaggerDTO"
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "DeleteTagger",
        "responses": {
          "204": {
            "description": "No content"
          }
        },
        "description": "Tagger is the association between tag and subject.",
        "summary": "Remove tag from subject",
        "tags": [
          "Tags"
        ],
        "security": [
          {
            "bearerAuth": [
              "admin",
              "superadmin",
              "superuser"
            ]
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TaggerDTO"
              }
            }
          }
        }
      }
    },
    "/work": {
      "get": {
        "operationId": "GetWork",
        "responses": {
          "200": {
            "description": "The work progress information.",
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/WorkProgress"
                  },
                  "type": "array"
                }
              }
            }
          }
        },
        "description": "Retrieves information of work progress.",
        "tags": [
          "Work"
        ],
        "security": [
          {
            "bearerAuth": [
              "user",
              "superuser",
              "admin",
              "superadmin",
              "readonly"
            ]
          }
        ],
        "parameters": [
          {
            "description": "The work name.",
            "in": "query",
            "name": "work",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The work progress status.",
            "in": "query",
            "name": "status",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/WorkProgressStatus"
            }
          },
          {
            "description": "The start date.",
            "in": "query",
            "name": "start",
            "required": false,
            "schema": {
              "format": "date-time",
              "type": "string"
            }
          },
          {
            "description": "The end date.",
            "in": "query",
            "name": "end",
            "required": false,
            "schema": {
              "format": "date-time",
              "type": "string"
            }
          },
          {
            "description": "The machine id.",
            "in": "query",
            "name": "machineId",
            "required": false,
            "schema": {
              "type": "array",
              "items": {
                "type": "number",
                "format": "double"
              }
            }
          },
          {
            "description": "Specify if the status minutes should be returned.",
            "in": "query",
            "name": "getStatusMinutes",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          }
        ]
      },
      "post": {
        "operationId": "CreateWork",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IWorkLogModel"
                }
              }
            }
          }
        },
        "description": "Create work.",
        "tags": [
          "Work"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [],
        "requestBody": {
          "description": "The create work params.",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateWorkParams"
              }
            }
          }
        }
      }
    },
    "/work/schedule": {
      "get": {
        "operationId": "GetWorkSchedule",
        "responses": {
          "200": {
            "description": "The work schedule information.",
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/WorkSchedule"
                  },
                  "type": "array"
                }
              }
            }
          }
        },
        "description": "Retrieves information of work schedule.",
        "tags": [
          "Work"
        ],
        "security": [
          {
            "bearerAuth": [
              "user",
              "superuser",
              "admin",
              "superadmin",
              "readonly"
            ]
          }
        ],
        "parameters": [
          {
            "description": "The start date.",
            "in": "query",
            "name": "start",
            "required": false,
            "schema": {
              "format": "date-time",
              "type": "string"
            }
          },
          {
            "description": "The end date.",
            "in": "query",
            "name": "end",
            "required": false,
            "schema": {
              "format": "date-time",
              "type": "string"
            }
          },
          {
            "description": "The machine id.",
            "in": "query",
            "name": "machineId",
            "required": false,
            "schema": {
              "type": "array",
              "items": {
                "type": "number",
                "format": "double"
              }
            }
          }
        ]
      },
      "put": {
        "operationId": "UpsertWorkSchedule",
        "responses": {
          "204": {
            "description": "No content"
          }
        },
        "description": "Upsert work schedule.",
        "tags": [
          "Work"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [],
        "requestBody": {
          "description": "The array of work schedule information.",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "items": {
                  "$ref": "#/components/schemas/UpsertWorkScheduleParams"
                },
                "type": "array"
              }
            }
          }
        }
      }
    },
    "/work/{workId}/status": {
      "patch": {
        "operationId": "UpdateWorkStatus",
        "responses": {
          "204": {
            "description": "No content"
          }
        },
        "description": "Update work order status.",
        "tags": [
          "Work"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "description": "The work order id.",
            "in": "path",
            "name": "workId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "description": "The work progress status.",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "status": {
                    "$ref": "#/components/schemas/WorkProgressStatus"
                  }
                },
                "required": [
                  "status"
                ],
                "type": "object"
              }
            }
          }
        }
      }
    },
    "/work/{workId}/progress": {
      "patch": {
        "operationId": "UpdateWorkProgress",
        "responses": {
          "204": {
            "description": "No content"
          }
        },
        "description": "Update work progress.",
        "tags": [
          "Work"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "description": "The work order id.",
            "in": "path",
            "name": "workId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "description": "The work progress.",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateWorkProgressParams"
              }
            }
          }
        }
      }
    },
    "/work/{workId}": {
      "patch": {
        "operationId": "UpdateEndOfWork",
        "responses": {
          "204": {
            "description": "No content"
          }
        },
        "description": "Update end of work.",
        "tags": [
          "Work"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "description": "The work order id.",
            "in": "path",
            "name": "workId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "description": "The update work params.",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "end": {
                    "type": "string",
                    "format": "date-time"
                  }
                },
                "required": [
                  "end"
                ],
                "type": "object"
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "DeleteWork",
        "responses": {
          "204": {
            "description": "No content"
          }
        },
        "description": "Delete work.",
        "tags": [
          "Work"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "description": "The work order id.",
            "in": "path",
            "name": "workId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/skus": {
      "get": {
        "operationId": "GetSkus",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/SkuValue"
                  },
                  "type": "array"
                }
              }
            }
          }
        },
        "tags": [
          "Skus"
        ],
        "security": [
          {
            "bearerAuth": [
              "user",
              "superuser",
              "admin",
              "superadmin",
              "readonly"
            ]
          }
        ],
        "parameters": [
          {
            "in": "query",
            "name": "sku",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "name",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "machineId",
            "required": false,
            "schema": {
              "format": "double",
              "type": "number"
            }
          }
        ]
      },
      "delete": {
        "operationId": "DeleteSkusInBulk",
        "responses": {
          "204": {
            "description": "No content"
          }
        },
        "tags": [
          "Skus"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "ids": {
                    "items": {
                      "type": "string"
                    },
                    "type": "array"
                  }
                },
                "required": [
                  "ids"
                ],
                "type": "object"
              }
            }
          }
        }
      }
    },
    "/skus/all": {
      "get": {
        "operationId": "GetAllSkus",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/SkuValue"
                  },
                  "type": "array"
                }
              }
            }
          }
        },
        "tags": [
          "Skus"
        ],
        "security": [
          {
            "bearerAuth": [
              "user",
              "superuser",
              "admin",
              "superadmin",
              "readonly"
            ]
          }
        ],
        "parameters": [
          {
            "in": "query",
            "name": "sku",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "name",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/skus/filters": {
      "post": {
        "operationId": "GetSkusWithPagination",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Paginated_GetSkusRes_"
                }
              }
            }
          }
        },
        "tags": [
          "Skus"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetBaseSkusParams"
              }
            }
          }
        }
      }
    },
    "/skus/{skuId}": {
      "get": {
        "operationId": "GetSku",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/ISku"
                    },
                    {
                      "items": {
                        "$ref": "#/components/schemas/ISku"
                      },
                      "type": "array"
                    }
                  ],
                  "nullable": true
                }
              }
            }
          }
        },
        "tags": [
          "Skus"
        ],
        "security": [
          {
            "bearerAuth": [
              "user",
              "superuser",
              "admin",
              "superadmin",
              "readonly"
            ]
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "skuId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ]
      },
      "patch": {
        "operationId": "EditSku",
        "responses": {
          "204": {
            "description": "No content"
          }
        },
        "tags": [
          "Skus"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "skuId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateSkuParams"
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "ArchiveSku",
        "responses": {
          "204": {
            "description": "No content"
          }
        },
        "tags": [
          "Skus"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "skuId",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Uuid"
            }
          }
        ]
      }
    },
    "/skus/bulk": {
      "post": {
        "operationId": "CreateSkus",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/ISku"
                  },
                  "type": "array"
                }
              }
            }
          }
        },
        "tags": [
          "Skus"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "items": {
                  "$ref": "#/components/schemas/CreateSkusParams"
                },
                "type": "array"
              }
            }
          }
        }
      }
    },
    "/speed": {
      "get": {
        "operationId": "GetNominalSpeed",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/IMachineAndSku"
                  },
                  "type": "array"
                }
              }
            }
          }
        },
        "tags": [
          "Speed"
        ],
        "security": [
          {
            "bearerAuth": [
              "user",
              "superuser",
              "admin",
              "superadmin",
              "readonly"
            ]
          }
        ],
        "parameters": [
          {
            "in": "query",
            "name": "machineId",
            "required": false,
            "schema": {
              "format": "double",
              "type": "number"
            }
          },
          {
            "in": "query",
            "name": "skuId",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ]
      },
      "post": {
        "operationId": "CreateNominalSpeed",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IMachineAndSku"
                }
              }
            }
          }
        },
        "tags": [
          "Speed"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateMachineAndSkuParams"
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "DeleteNominalSpeedsInBulk",
        "responses": {
          "204": {
            "description": "No content"
          }
        },
        "tags": [
          "Speed"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "ids": {
                    "items": {
                      "type": "string"
                    },
                    "type": "array"
                  }
                },
                "required": [
                  "ids"
                ],
                "type": "object"
              }
            }
          }
        }
      }
    },
    "/speed/filters": {
      "post": {
        "operationId": "GetNominalSpeedWithPagination",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Paginated_GetNominalSpeedsRes_"
                }
              }
            }
          }
        },
        "tags": [
          "Speed"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetBaseNominalSpeedsParams"
              }
            }
          }
        }
      }
    },
    "/speed/bulk": {
      "post": {
        "operationId": "CreateNominalSpeedInBulk",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/IMachineAndSku"
                  },
                  "type": "array"
                }
              }
            }
          }
        },
        "tags": [
          "Speed"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "items": {
                  "$ref": "#/components/schemas/CreateMachineAndSkuInBulkParams"
                },
                "type": "array"
              }
            }
          }
        }
      }
    },
    "/speed/bulk/machines": {
      "post": {
        "operationId": "CreateNominalSpeedWithMultipleMachines",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/IMachineAndSku"
                  },
                  "type": "array"
                }
              }
            }
          }
        },
        "tags": [
          "Speed"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "items": {
                  "$ref": "#/components/schemas/CreateMachineAndSpeedInBulkWithGoalsParams"
                },
                "type": "array"
              }
            }
          }
        }
      }
    },
    "/speed/bulk/sku": {
      "post": {
        "operationId": "CreateNominalSpeedInBulkForSku",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/IMachineAndSku"
                  },
                  "type": "array"
                }
              }
            }
          }
        },
        "tags": [
          "Speed"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateNominalSpeedInBulkForSkuParams"
              }
            }
          }
        }
      },
      "patch": {
        "operationId": "UpdateNominalSpeedInBulkForSku",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/IMachineAndSku"
                  },
                  "type": "array"
                }
              }
            }
          }
        },
        "tags": [
          "Speed"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateNominalSpeedInBulkForSkuParams"
              }
            }
          }
        }
      }
    },
    "/speed/{speedId}": {
      "patch": {
        "operationId": "UpdateNominalSpeed",
        "responses": {
          "204": {
            "description": "No content"
          }
        },
        "tags": [
          "Speed"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "speedId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Partial_CreateMachineAndSkuParams_"
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "DeleteNominalSpeed",
        "responses": {
          "204": {
            "description": "No content"
          }
        },
        "tags": [
          "Speed"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "speedId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/workflow-action-types/{id}": {
      "get": {
        "operationId": "GetById",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/IWorkflowActionType"
                    }
                  ],
                  "nullable": true
                }
              }
            }
          }
        },
        "tags": [
          "WorkflowActionTypes"
        ],
        "security": [
          {
            "bearerAuth": [
              "user",
              "superuser",
              "admin",
              "superadmin",
              "readonly"
            ]
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "double",
              "type": "number"
            }
          }
        ]
      },
      "patch": {
        "operationId": "UpdateWorkflowActionType",
        "responses": {
          "204": {
            "description": "No content"
          }
        },
        "tags": [
          "WorkflowActionTypes"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "double",
              "type": "number"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Partial_BaseWorkflowActionTypeParams_"
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "DeleteWorkflowActionType",
        "responses": {
          "204": {
            "description": "No content"
          }
        },
        "tags": [
          "WorkflowActionTypes"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "double",
              "type": "number"
            }
          }
        ]
      }
    },
    "/workflow-action-types/filters": {
      "post": {
        "operationId": "GetAll",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Paginated_GetWorkflowActionTypeRes_"
                }
              }
            }
          }
        },
        "tags": [
          "WorkflowActionTypes"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetBaseWorkflowActionTypeParams"
              }
            }
          }
        }
      }
    },
    "/workflow-action-types": {
      "post": {
        "operationId": "CreateWorkflowActionType",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IWorkflowActionType"
                }
              }
            }
          }
        },
        "tags": [
          "WorkflowActionTypes"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BaseWorkflowActionTypeParams"
              }
            }
          }
        }
      }
    },
    "/workflow-types/{id}": {
      "get": {
        "operationId": "GetById",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/IWorkflowType"
                    }
                  ],
                  "nullable": true
                }
              }
            }
          }
        },
        "tags": [
          "WorkflowTypes"
        ],
        "security": [
          {
            "bearerAuth": [
              "user",
              "superuser",
              "admin",
              "superadmin",
              "readonly"
            ]
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "double",
              "type": "number"
            }
          }
        ]
      },
      "patch": {
        "operationId": "UpdateWorkflowType",
        "responses": {
          "204": {
            "description": "No content"
          }
        },
        "tags": [
          "WorkflowTypes"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "double",
              "type": "number"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Partial_BaseWorkflowTypeParams_"
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "DeleteWorkflowType",
        "responses": {
          "204": {
            "description": "No content"
          }
        },
        "tags": [
          "WorkflowTypes"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "double",
              "type": "number"
            }
          }
        ]
      }
    },
    "/workflow-types/filters": {
      "post": {
        "operationId": "GetAll",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Paginated_GetWorkflowTypeRes_"
                }
              }
            }
          }
        },
        "tags": [
          "WorkflowTypes"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetBaseWorkflowTypeParams"
              }
            }
          }
        }
      }
    },
    "/workflow-types": {
      "post": {
        "operationId": "CreateWorkflowType",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IWorkflowType"
                }
              }
            }
          }
        },
        "tags": [
          "WorkflowTypes"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BaseWorkflowTypeParams"
              }
            }
          }
        }
      }
    },
    "/workflows/{id}": {
      "get": {
        "operationId": "GetById",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/IWorkflow"
                    }
                  ],
                  "nullable": true
                }
              }
            }
          }
        },
        "tags": [
          "Workflows"
        ],
        "security": [
          {
            "bearerAuth": [
              "user",
              "superuser",
              "admin",
              "superadmin",
              "readonly"
            ]
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "double",
              "type": "number"
            }
          }
        ]
      },
      "patch": {
        "operationId": "UpdateWorkflow",
        "responses": {
          "204": {
            "description": "No content"
          }
        },
        "tags": [
          "Workflows"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "double",
              "type": "number"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Partial_BaseWorkflowParams_"
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "DeleteWorkflow",
        "responses": {
          "204": {
            "description": "No content"
          }
        },
        "tags": [
          "Workflows"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "double",
              "type": "number"
            }
          }
        ]
      }
    },
    "/workflows/filters": {
      "post": {
        "operationId": "GetAll",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Paginated_GetWorkflowRes_"
                }
              }
            }
          }
        },
        "tags": [
          "Workflows"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetBaseWorkflowParams"
              }
            }
          }
        }
      }
    },
    "/workflows": {
      "post": {
        "operationId": "CreateWorkflow",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IWorkflow"
                }
              }
            }
          }
        },
        "tags": [
          "Workflows"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BaseWorkflowParams"
              }
            }
          }
        }
      }
    },
    "/work-orders/export": {
      "get": {
        "operationId": "GetWorkOrdersForExport",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetExportWorkOrdersRes"
                }
              }
            }
          }
        },
        "description": "Get same data as getWorkOrders, but formated to create a CSV on the frontend.",
        "tags": [
          "WorkOrders"
        ],
        "security": [
          {
            "bearerAuth": [
              "user",
              "superuser",
              "admin",
              "superadmin",
              "readonly"
            ]
          }
        ],
        "parameters": [
          {
            "in": "query",
            "name": "page",
            "required": false,
            "schema": {
              "default": 1,
              "format": "double",
              "type": "number"
            }
          },
          {
            "in": "query",
            "name": "pageSize",
            "required": false,
            "schema": {
              "default": 1000,
              "format": "double",
              "type": "number"
            }
          },
          {
            "description": "- if true, returns data in 'denormalized' param, otherwise in 'normalized' param.",
            "in": "query",
            "name": "denormalized",
            "required": false,
            "schema": {
              "default": false,
              "type": "boolean"
            }
          }
        ]
      }
    },
    "/work-orders/progress/{id}": {
      "get": {
        "operationId": "GetWorkOrderProgress",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetProgressRes"
                }
              }
            }
          }
        },
        "tags": [
          "WorkOrders"
        ],
        "security": [
          {
            "bearerAuth": [
              "user",
              "superuser",
              "admin",
              "superadmin",
              "readonly"
            ]
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/work-orders/search": {
      "get": {
        "operationId": "SearchWorkOrdersByCode",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaginatedLegacy_SearchWorkOrderRes_"
                }
              }
            }
          }
        },
        "tags": [
          "WorkOrders"
        ],
        "security": [
          {
            "bearerAuth": [
              "user",
              "superuser",
              "admin",
              "superadmin",
              "readonly"
            ]
          }
        ],
        "parameters": [
          {
            "in": "query",
            "name": "code",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "page",
            "required": false,
            "schema": {
              "format": "double",
              "type": "number"
            }
          },
          {
            "in": "query",
            "name": "pageSize",
            "required": false,
            "schema": {
              "format": "double",
              "type": "number"
            }
          }
        ]
      }
    },
    "/work-orders/{id}": {
      "get": {
        "operationId": "GetWorkOrderById",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/WorkOrderResponse"
                    }
                  ],
                  "nullable": true
                }
              }
            }
          }
        },
        "tags": [
          "WorkOrders"
        ],
        "security": [
          {
            "bearerAuth": [
              "user",
              "superuser",
              "admin",
              "superadmin",
              "readonly"
            ]
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ]
      },
      "put": {
        "operationId": "UpdateWorkOrder",
        "responses": {
          "204": {
            "description": "No content"
          }
        },
        "tags": [
          "WorkOrders"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Partial_CreateWorkOrderParams_"
              }
            }
          }
        }
      },
      "patch": {
        "operationId": "PatchWorkOrder",
        "responses": {
          "204": {
            "description": "No content"
          }
        },
        "tags": [
          "WorkOrders"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Partial_CreateWorkOrderParams_"
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "DeleteWorkOrder",
        "responses": {
          "204": {
            "description": "No content"
          }
        },
        "tags": [
          "WorkOrders"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/work-orders": {
      "get": {
        "operationId": "GetWorkOrders",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "items": {
                        "$ref": "#/components/schemas/GetWorkOrderRes"
                      },
                      "type": "array"
                    },
                    {
                      "properties": {
                        "totalItems": {
                          "type": "number",
                          "format": "double"
                        },
                        "data": {
                          "items": {
                            "$ref": "#/components/schemas/GetWorkOrderRes"
                          },
                          "type": "array"
                        }
                      },
                      "required": [
                        "totalItems",
                        "data"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            }
          }
        },
        "description": "Get Work-Orders,\nWill return max of 1000 records if pagination is not used.,\nSupports two views summary (code, name, id), detail (also includes produced qty skus and machines).",
        "summary": "get work-orders.",
        "tags": [
          "WorkOrders"
        ],
        "security": [
          {
            "bearerAuth": [
              "user",
              "superuser",
              "admin",
              "superadmin",
              "readonly"
            ]
          }
        ],
        "parameters": [
          {
            "description": "- work-order id array",
            "in": "query",
            "name": "id",
            "required": false,
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          {
            "description": "- work-order code array, when its length is 1 filter will use substring and is case sensitive, when length >1 will use IN operator.",
            "in": "query",
            "name": "code",
            "required": false,
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          {
            "description": "- work-order name array, when its length is 1 filter will use substring and is case sensitive, when length >1 will use IN operator.",
            "in": "query",
            "name": "name",
            "required": false,
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          {
            "description": "- work-order status array",
            "in": "query",
            "name": "status",
            "required": false,
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkOrderStatus"
              }
            }
          },
          {
            "description": "- start date",
            "in": "query",
            "name": "start",
            "required": false,
            "schema": {
              "format": "date-time",
              "type": "string"
            }
          },
          {
            "description": "- end date",
            "in": "query",
            "name": "end",
            "required": false,
            "schema": {
              "format": "date-time",
              "type": "string"
            }
          },
          {
            "description": "- work-order priority array",
            "in": "query",
            "name": "priorities",
            "required": false,
            "schema": {
              "type": "array",
              "items": {
                "type": "number",
                "format": "double"
              }
            }
          },
          {
            "description": "- page number, starts at 0.",
            "in": "query",
            "name": "page",
            "required": false,
            "schema": {
              "default": 1,
              "format": "double",
              "type": "number"
            }
          },
          {
            "description": "- page size, default is 1000.",
            "in": "query",
            "name": "pageSize",
            "required": false,
            "schema": {
              "default": 1000,
              "format": "double",
              "type": "number"
            }
          },
          {
            "description": "- machine id array",
            "in": "query",
            "name": "machines",
            "required": false,
            "schema": {
              "type": "array",
              "items": {
                "type": "number",
                "format": "double"
              }
            }
          },
          {
            "description": "- enum: summary or detail",
            "in": "query",
            "name": "view",
            "required": false,
            "schema": {
              "default": "detail",
              "type": "string",
              "enum": [
                "summary",
                "detail",
                "detailWithTotalItems",
                "summaryWithTotalItems"
              ]
            }
          },
          {
            "description": "- boolean, if true will include work-orders without machines.",
            "in": "query",
            "name": "includeNoMachine",
            "required": false,
            "schema": {
              "default": false,
              "type": "boolean"
            }
          }
        ]
      },
      "post": {
        "operationId": "CreateWorkOrder",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IWorkOrder"
                }
              }
            }
          }
        },
        "tags": [
          "WorkOrders"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateWorkOrderParams"
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "DeleteWorkOrdersInBulk",
        "responses": {
          "204": {
            "description": "No content"
          }
        },
        "tags": [
          "WorkOrders"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "ids": {
                    "items": {
                      "type": "string"
                    },
                    "type": "array"
                  }
                },
                "required": [
                  "ids"
                ],
                "type": "object"
              }
            }
          }
        }
      }
    },
    "/work-orders/{id}/raw-materials": {
      "get": {
        "operationId": "GetWorkOrderRawMaterials",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/RawMaterialValue"
                  },
                  "type": "array"
                }
              }
            }
          }
        },
        "tags": [
          "WorkOrders"
        ],
        "security": [
          {
            "bearerAuth": [
              "user",
              "superuser",
              "admin",
              "superadmin",
              "readonly"
            ]
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/work-orders/filters": {
      "post": {
        "operationId": "GetWorkOrdersWithFilters",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "totalItems": {
                      "type": "number",
                      "format": "double"
                    },
                    "data": {
                      "items": {
                        "$ref": "#/components/schemas/GetWorkOrdersRes"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "totalItems",
                    "data"
                  ],
                  "type": "object"
                }
              }
            }
          }
        },
        "tags": [
          "V2",
          "WorkOrders"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetWorkOrderFilters"
              }
            }
          }
        }
      }
    },
    "/work-orders/bulk": {
      "post": {
        "operationId": "CreateWorkOrders",
        "responses": {
          "204": {
            "description": "No content"
          }
        },
        "tags": [
          "WorkOrders"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BulkCreateWorkOrderTargetsParams"
              }
            }
          }
        }
      }
    },
    "/work-orders/import": {
      "post": {
        "operationId": "BulkImportWorkOrders",
        "responses": {
          "204": {
            "description": "No content"
          }
        },
        "tags": [
          "WorkOrders"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ImportWorkOrderParams"
              }
            }
          }
        }
      }
    },
    "/work-orders/production-full": {
      "post": {
        "operationId": "CreateWorkOrderFullProduction",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IWorkOrder"
                }
              }
            }
          }
        },
        "tags": [
          "WorkOrders"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateWorkOrderProductionFullParams"
              }
            }
          }
        }
      }
    },
    "/work-orders/{id}/production-full": {
      "patch": {
        "operationId": "UpdateProductionFullWorkOrder",
        "responses": {
          "204": {
            "description": "No content"
          }
        },
        "tags": [
          "WorkOrders"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateProductionFullWorkOrderParams"
              }
            }
          }
        }
      }
    },
    "/work-order-target": {
      "get": {
        "operationId": "GetWorkOrderAndSkuTarget",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/GetTargetRes"
                  },
                  "type": "array"
                }
              }
            }
          }
        },
        "tags": [
          "WorkOrderTarget"
        ],
        "security": [
          {
            "bearerAuth": [
              "user",
              "superuser",
              "admin",
              "superadmin",
              "readonly"
            ]
          }
        ],
        "parameters": [
          {
            "in": "query",
            "name": "workOrderId",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "skuId",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ]
      },
      "post": {
        "operationId": "CreateWorkOrderAndSkuTarget",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/IWorkOrderAndSkuTarget"
                  },
                  "type": "array"
                }
              }
            }
          }
        },
        "tags": [
          "WorkOrderTarget"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateWorkOrderWithManyTargetsParams"
              }
            }
          }
        }
      },
      "put": {
        "operationId": "UpdateWorkOrderAndSkuTarget",
        "responses": {
          "204": {
            "description": "No content"
          }
        },
        "tags": [
          "WorkOrderTarget"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateWorkOrderAndSkuTargetParams"
              }
            }
          }
        }
      }
    },
    "/work-order-target/{workOrderId}": {
      "get": {
        "operationId": "GetWorkOrderAndSkuTargets",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetTargetsRes"
                }
              }
            }
          }
        },
        "tags": [
          "WorkOrderTarget"
        ],
        "security": [
          {
            "bearerAuth": [
              "user",
              "superuser",
              "admin",
              "superadmin",
              "readonly"
            ]
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "workOrderId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ]
      },
      "post": {
        "operationId": "AddTargetToWorkOrder",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IWorkOrderAndSkuTarget"
                }
              }
            }
          }
        },
        "tags": [
          "WorkOrderTarget"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "workOrderId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AddTargetToWorkOrderParams"
              }
            }
          }
        }
      }
    },
    "/work-order-target/{workOrderId}/{skuId}": {
      "patch": {
        "operationId": "UpdateTarget",
        "responses": {
          "204": {
            "description": "No content"
          }
        },
        "tags": [
          "WorkOrderTarget"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "workOrderId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "skuId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateTargetParams"
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "DeleteTarget",
        "responses": {
          "204": {
            "description": "No content"
          }
        },
        "tags": [
          "WorkOrderTarget"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "workOrderId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "skuId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/work-order-target/work-order/{workOrderId}": {
      "delete": {
        "operationId": "DeleteWorkOrderTarget",
        "responses": {
          "204": {
            "description": "No content"
          }
        },
        "tags": [
          "WorkOrderTarget"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "workOrderId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/work-order-target/work-order-bulk": {
      "delete": {
        "operationId": "DeleteWorkOrderTargets",
        "responses": {
          "204": {
            "description": "No content"
          }
        },
        "tags": [
          "WorkOrderTarget"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DeleteWorkOrderTargetsParams"
              }
            }
          }
        }
      }
    },
    "/work-order-and-machine": {
      "get": {
        "operationId": "GetWorkOrderAndMachine",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/IWorkOrderAndMachine"
                  },
                  "type": "array"
                }
              }
            }
          }
        },
        "tags": [
          "WorkOrderAndMachine"
        ],
        "security": [
          {
            "bearerAuth": [
              "user",
              "superuser",
              "admin",
              "superadmin",
              "readonly"
            ]
          }
        ],
        "parameters": [
          {
            "in": "query",
            "name": "workOrderId",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "machineId",
            "required": false,
            "schema": {
              "format": "double",
              "type": "number"
            }
          },
          {
            "in": "query",
            "name": "priority",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/WorkOrderAndMachinePriority"
            }
          },
          {
            "in": "query",
            "name": "start",
            "required": false,
            "schema": {
              "format": "date-time",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "end",
            "required": false,
            "schema": {
              "format": "date-time",
              "type": "string"
            }
          }
        ]
      },
      "post": {
        "operationId": "CreateWorkOrderAndMachine",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IWorkOrderAndMachine"
                }
              }
            }
          }
        },
        "tags": [
          "WorkOrderAndMachine"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateWorkOrderAndMachineParams"
              }
            }
          }
        }
      }
    },
    "/work-order-and-machine/{id}": {
      "patch": {
        "operationId": "UpdateWorkOrderAndMachine",
        "responses": {
          "204": {
            "description": "No content"
          }
        },
        "tags": [
          "WorkOrderAndMachine"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Partial_CreateWorkOrderAndMachineParams_"
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "DeleteWorkOrderAndMachine",
        "responses": {
          "204": {
            "description": "No content"
          }
        },
        "tags": [
          "WorkOrderAndMachine"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/work-steps": {
      "get": {
        "operationId": "GetWorkSteps",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/WorkStepSummary"
                  },
                  "type": "array"
                }
              }
            }
          }
        },
        "tags": [
          "WorkSteps"
        ],
        "security": [
          {
            "bearerAuth": [
              "user",
              "superuser",
              "admin",
              "superadmin",
              "readonly"
            ]
          }
        ],
        "parameters": [
          {
            "in": "query",
            "name": "machineId",
            "required": false,
            "schema": {
              "type": "array",
              "items": {
                "type": "number",
                "format": "double"
              }
            }
          },
          {
            "in": "query",
            "name": "operatorId",
            "required": false,
            "schema": {
              "format": "double",
              "type": "number"
            }
          },
          {
            "in": "query",
            "name": "start",
            "required": false,
            "schema": {
              "format": "date-time",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "end",
            "required": false,
            "schema": {
              "format": "date-time",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "onlyCurrentShifts",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          }
        ]
      },
      "post": {
        "operationId": "CreateWorkStep",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IWorkStep"
                }
              }
            }
          }
        },
        "tags": [
          "WorkSteps"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PostWorkStepParams"
              }
            }
          }
        }
      }
    },
    "/work-steps/{id}": {
      "get": {
        "operationId": "GetWorkStepById",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/IWorkStep"
                    }
                  ],
                  "nullable": true
                }
              }
            }
          }
        },
        "tags": [
          "WorkSteps"
        ],
        "security": [
          {
            "bearerAuth": [
              "user",
              "superuser",
              "admin",
              "superadmin",
              "readonly"
            ]
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ]
      },
      "put": {
        "operationId": "UpdateWorkStep",
        "responses": {
          "204": {
            "description": "No content"
          }
        },
        "tags": [
          "WorkSteps"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Partial_PostWorkStepParams_"
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "DeleteWorkStep",
        "responses": {
          "204": {
            "description": "No content"
          }
        },
        "tags": [
          "WorkSteps"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/work-steps/bulk": {
      "post": {
        "operationId": "CreateWorkSteps",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/IWorkStep"
                  },
                  "type": "array"
                }
              }
            }
          }
        },
        "tags": [
          "WorkSteps"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "items": {
                  "$ref": "#/components/schemas/BulkCreateWorkStepParams"
                },
                "type": "array"
              }
            }
          }
        }
      }
    },
    "/work-steps/working-minutes/{machineId}": {
      "get": {
        "operationId": "GetWorkingMinutes",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "type": "number",
                  "format": "double"
                }
              }
            }
          }
        },
        "tags": [
          "WorkSteps"
        ],
        "security": [
          {
            "bearerAuth": [
              "user",
              "superuser",
              "admin",
              "superadmin",
              "readonly"
            ]
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "machineId",
            "required": true,
            "schema": {
              "format": "double",
              "type": "number"
            }
          },
          {
            "in": "query",
            "name": "start",
            "required": true,
            "schema": {
              "format": "date-time",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "end",
            "required": true,
            "schema": {
              "format": "date-time",
              "type": "string"
            }
          }
        ]
      }
    },
    "/quality-issues": {
      "get": {
        "operationId": "GetQualityIssues",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/IQualityIssue"
                  },
                  "type": "array"
                }
              }
            }
          }
        },
        "tags": [
          "QualityIssues"
        ],
        "security": [
          {
            "bearerAuth": [
              "user",
              "superuser",
              "admin",
              "superadmin",
              "readonly"
            ]
          }
        ],
        "parameters": [
          {
            "in": "query",
            "name": "workStepId",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "title",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ]
      },
      "post": {
        "operationId": "CreateQualityIssue",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IQualityIssue"
                }
              }
            }
          }
        },
        "tags": [
          "QualityIssues"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PostQualityIssueParams"
              }
            }
          }
        }
      }
    },
    "/quality-issues/{id}": {
      "get": {
        "operationId": "GetQualityIssueById",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/IQualityIssue"
                    }
                  ],
                  "nullable": true
                }
              }
            }
          }
        },
        "tags": [
          "QualityIssues"
        ],
        "security": [
          {
            "bearerAuth": [
              "user",
              "superuser",
              "admin",
              "superadmin",
              "readonly"
            ]
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ]
      },
      "put": {
        "operationId": "UpdateQualityIssue",
        "responses": {
          "204": {
            "description": "No content"
          }
        },
        "tags": [
          "QualityIssues"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Partial_PostQualityIssueParams_"
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "DeleteQualityIssue",
        "responses": {
          "204": {
            "description": "No content"
          }
        },
        "tags": [
          "QualityIssues"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/quality-issues/bulk": {
      "post": {
        "operationId": "CreateQualityIssues",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/IQualityIssue"
                  },
                  "type": "array"
                }
              }
            }
          }
        },
        "tags": [
          "QualityIssues"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "items": {
                  "$ref": "#/components/schemas/CreateQualityIssueParams"
                },
                "type": "array"
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "DeleteQualityIssues",
        "responses": {
          "204": {
            "description": "No content"
          }
        },
        "tags": [
          "QualityIssues"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "in": "query",
            "name": "id",
            "required": true,
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          }
        ]
      }
    },
    "/stop-metrics": {
      "post": {
        "operationId": "GetStopMetrics",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StopMetricsResponse"
                }
              }
            }
          }
        },
        "description": "Get stop metrics grouped, sorted and filtered",
        "tags": [
          "stop-metrics"
        ],
        "security": [
          {
            "bearerAuth": [
              "user",
              "superuser",
              "admin",
              "superadmin",
              "readonly"
            ]
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/StopMetricsRequest"
              }
            }
          }
        }
      }
    },
    "/widget/stop-metrics": {
      "post": {
        "operationId": "GetStopMetrics",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StopMetricsWidgetResponse"
                }
              }
            }
          }
        },
        "description": "Get stop metrics grouped, sorted and filtered, presented to be consumed by a widget",
        "tags": [
          "stop-metrics"
        ],
        "security": [
          {
            "bearerAuth": [
              "user",
              "superuser",
              "admin",
              "superadmin",
              "readonly"
            ]
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/StopMetricsWidgetRequest"
              }
            }
          }
        }
      }
    },
    "/webhook-subscriptions": {
      "post": {
        "operationId": "CreateWebhookSubscription",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IWebhookSubscription"
                }
              }
            }
          }
        },
        "tags": [
          "WebhookSubscriptions"
        ],
        "security": [
          {
            "bearerAuth": [
              "admin",
              "superadmin",
              "superuser"
            ]
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateWebhookSubscriptionBase"
              }
            }
          }
        }
      },
      "get": {
        "operationId": "GetWebhookSubscriptions",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/IWebhookSubscription"
                  },
                  "type": "array"
                }
              }
            }
          }
        },
        "tags": [
          "WebhookSubscriptions"
        ],
        "security": [
          {
            "bearerAuth": [
              "admin",
              "superadmin",
              "superuser"
            ]
          }
        ],
        "parameters": []
      }
    },
    "/webhook-subscriptions/secret": {
      "get": {
        "operationId": "GetWebhookSubscriptionSecret",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "tags": [
          "WebhookSubscriptions"
        ],
        "security": [
          {
            "bearerAuth": [
              "admin",
              "superadmin",
              "superuser"
            ]
          }
        ],
        "parameters": []
      }
    },
    "/webhook-subscriptions/ping": {
      "post": {
        "operationId": "Ping",
        "responses": {
          "204": {
            "description": "No content"
          }
        },
        "tags": [
          "WebhookSubscriptions"
        ],
        "security": [
          {
            "bearerAuth": [
              "admin",
              "superadmin",
              "superuser"
            ]
          }
        ],
        "parameters": []
      }
    },
    "/widgets/system/promote": {
      "post": {
        "operationId": "Promote",
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WidgetResponse"
                }
              }
            }
          }
        },
        "tags": [
          "System Widgets"
        ],
        "security": [
          {
            "bearerAuth": [
              "superadmin",
              "superuser"
            ]
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PromoteWidgetRequest"
              }
            }
          }
        }
      }
    },
    "/widgets/system/{id}": {
      "put": {
        "operationId": "Update",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WidgetResponse"
                }
              }
            }
          }
        },
        "tags": [
          "System Widgets"
        ],
        "security": [
          {
            "bearerAuth": [
              "superadmin",
              "superuser"
            ]
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateWidgetRequest"
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "Retire",
        "responses": {
          "204": {
            "description": "No content"
          }
        },
        "tags": [
          "System Widgets"
        ],
        "security": [
          {
            "bearerAuth": [
              "superadmin",
              "superuser"
            ]
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/widgets/system/{id}/thumbnail": {
      "post": {
        "operationId": "UploadThumbnail",
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "imageUrl": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "imageUrl"
                  ],
                  "type": "object"
                }
              }
            }
          }
        },
        "tags": [
          "System Widgets"
        ],
        "security": [
          {
            "bearerAuth": [
              "superadmin",
              "superuser"
            ]
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "file": {
                    "type": "string",
                    "format": "binary"
                  }
                },
                "required": [
                  "file"
                ]
              }
            }
          }
        }
      }
    },
    "/widgets/dashboards/system/promote": {
      "post": {
        "operationId": "Promote",
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WidgetDashboardResponse"
                }
              }
            }
          }
        },
        "tags": [
          "System WidgetDashboards"
        ],
        "security": [
          {
            "bearerAuth": [
              "superadmin",
              "superuser"
            ]
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PromoteWidgetDashboardRequest"
              }
            }
          }
        }
      }
    },
    "/widgets/dashboards/system/{id}": {
      "put": {
        "operationId": "Update",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WidgetDashboardResponse"
                }
              }
            }
          }
        },
        "tags": [
          "System WidgetDashboards"
        ],
        "security": [
          {
            "bearerAuth": [
              "superadmin",
              "superuser"
            ]
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateWidgetDashboardRequest"
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "Delete",
        "responses": {
          "204": {
            "description": "No content"
          }
        },
        "tags": [
          "System WidgetDashboards"
        ],
        "security": [
          {
            "bearerAuth": [
              "superadmin",
              "superuser"
            ]
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/widgets/dashboards/system/{id}/thumbnail": {
      "post": {
        "operationId": "UploadThumbnail",
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "imageUrl": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "imageUrl"
                  ],
                  "type": "object"
                }
              }
            }
          }
        },
        "tags": [
          "System WidgetDashboards"
        ],
        "security": [
          {
            "bearerAuth": [
              "superadmin",
              "superuser"
            ]
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "file": {
                    "type": "string",
                    "format": "binary"
                  }
                },
                "required": [
                  "file"
                ]
              }
            }
          }
        }
      }
    },
    "/widgets/dashboards/system/{id}/unconvert": {
      "patch": {
        "operationId": "Unconvert",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WidgetDashboardResponse"
                }
              }
            }
          }
        },
        "tags": [
          "System WidgetDashboards"
        ],
        "security": [
          {
            "bearerAuth": [
              "superadmin",
              "superuser"
            ]
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/widgets/dashboards/system/{dashboardId}/widgets/{widgetId}": {
      "post": {
        "operationId": "AddWidget",
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WidgetInstanceResponse"
                }
              }
            }
          }
        },
        "tags": [
          "System WidgetDashboards"
        ],
        "security": [
          {
            "bearerAuth": [
              "superadmin",
              "superuser"
            ]
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "dashboardId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "widgetId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AddWidgetToDashboardRequest"
              }
            }
          }
        }
      }
    },
    "/widgets/dashboards/system/{dashboardId}/widget-instances/{instanceId}": {
      "put": {
        "operationId": "UpdateWidgetInstance",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WidgetInstanceResponse"
                }
              }
            }
          }
        },
        "tags": [
          "System WidgetDashboards"
        ],
        "security": [
          {
            "bearerAuth": [
              "superadmin",
              "superuser"
            ]
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "dashboardId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "instanceId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateWidgetInstanceRequest"
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "RemoveWidget",
        "responses": {
          "204": {
            "description": "No content"
          }
        },
        "tags": [
          "System WidgetDashboards"
        ],
        "security": [
          {
            "bearerAuth": [
              "superadmin",
              "superuser"
            ]
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "dashboardId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "instanceId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/widgets/dashboards": {
      "post": {
        "operationId": "Create",
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WidgetDashboardResponse"
                }
              }
            }
          }
        },
        "tags": [
          "WidgetDashboards"
        ],
        "security": [
          {
            "bearerAuth": [
              "user",
              "superuser",
              "admin",
              "superadmin",
              "readonly"
            ]
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateWidgetDashboardRequest"
              }
            }
          }
        }
      },
      "get": {
        "operationId": "GetAll",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WidgetDashboardsListResponse"
                }
              }
            }
          }
        },
        "tags": [
          "WidgetDashboards"
        ],
        "security": [
          {
            "bearerAuth": [
              "user",
              "superuser",
              "admin",
              "superadmin",
              "readonly"
            ]
          }
        ],
        "parameters": [
          {
            "in": "query",
            "name": "page",
            "required": false,
            "schema": {
              "format": "double",
              "type": "number"
            }
          },
          {
            "in": "query",
            "name": "pageSize",
            "required": false,
            "schema": {
              "format": "double",
              "type": "number"
            }
          },
          {
            "in": "query",
            "name": "source",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/WidgetSource"
            }
          }
        ]
      }
    },
    "/widgets/dashboards/archived": {
      "get": {
        "operationId": "GetArchived",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WidgetDashboardsListResponse"
                }
              }
            }
          }
        },
        "tags": [
          "WidgetDashboards"
        ],
        "security": [
          {
            "bearerAuth": [
              "user",
              "superuser",
              "admin",
              "superadmin",
              "readonly"
            ]
          }
        ],
        "parameters": [
          {
            "in": "query",
            "name": "page",
            "required": false,
            "schema": {
              "format": "double",
              "type": "number"
            }
          },
          {
            "in": "query",
            "name": "pageSize",
            "required": false,
            "schema": {
              "format": "double",
              "type": "number"
            }
          }
        ]
      }
    },
    "/widgets/dashboards/{id}": {
      "get": {
        "operationId": "GetById",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WidgetDashboardResponse"
                }
              }
            }
          }
        },
        "tags": [
          "WidgetDashboards"
        ],
        "security": [
          {
            "bearerAuth": [
              "user",
              "superuser",
              "admin",
              "superadmin",
              "readonly"
            ]
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ]
      },
      "put": {
        "operationId": "Update",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WidgetDashboardResponse"
                }
              }
            }
          }
        },
        "tags": [
          "WidgetDashboards"
        ],
        "security": [
          {
            "bearerAuth": [
              "user",
              "superuser",
              "admin",
              "superadmin",
              "readonly"
            ]
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateWidgetDashboardRequest"
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "Delete",
        "responses": {
          "204": {
            "description": "No content"
          }
        },
        "tags": [
          "WidgetDashboards"
        ],
        "security": [
          {
            "bearerAuth": [
              "user",
              "superuser",
              "admin",
              "superadmin",
              "readonly"
            ]
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/widgets/dashboards/{id}/thumbnail": {
      "post": {
        "operationId": "UploadThumbnail",
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "imageUrl": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "imageUrl"
                  ],
                  "type": "object"
                }
              }
            }
          }
        },
        "tags": [
          "WidgetDashboards"
        ],
        "security": [
          {
            "bearerAuth": [
              "user",
              "superuser",
              "admin",
              "superadmin",
              "readonly"
            ]
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "file": {
                    "type": "string",
                    "format": "binary"
                  }
                },
                "required": [
                  "file"
                ]
              }
            }
          }
        }
      }
    },
    "/widgets/dashboards/archived/all": {
      "delete": {
        "operationId": "DeleteAllArchived",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeleteArchivedDashboardsResponse"
                }
              }
            }
          }
        },
        "tags": [
          "WidgetDashboards"
        ],
        "security": [
          {
            "bearerAuth": [
              "superadmin",
              "superuser"
            ]
          }
        ],
        "parameters": []
      }
    },
    "/widgets/dashboards/{id}/archive": {
      "patch": {
        "operationId": "Archive",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WidgetDashboardResponse"
                }
              }
            }
          }
        },
        "tags": [
          "WidgetDashboards"
        ],
        "security": [
          {
            "bearerAuth": [
              "user",
              "superuser",
              "admin",
              "superadmin",
              "readonly"
            ]
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/widgets/dashboards/{id}/unarchive": {
      "patch": {
        "operationId": "Unarchive",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WidgetDashboardResponse"
                }
              }
            }
          }
        },
        "tags": [
          "WidgetDashboards"
        ],
        "security": [
          {
            "bearerAuth": [
              "user",
              "superuser",
              "admin",
              "superadmin",
              "readonly"
            ]
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/widgets/dashboards/{id}/clone": {
      "post": {
        "operationId": "Clone",
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WidgetDashboardResponse"
                }
              }
            }
          }
        },
        "tags": [
          "WidgetDashboards"
        ],
        "security": [
          {
            "bearerAuth": [
              "user",
              "superuser",
              "admin",
              "superadmin",
              "readonly"
            ]
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/widgets/dashboards/{id}/favorite": {
      "post": {
        "operationId": "MarkFavorite",
        "responses": {
          "204": {
            "description": "No content"
          }
        },
        "tags": [
          "WidgetDashboards"
        ],
        "security": [
          {
            "bearerAuth": [
              "superadmin",
              "superuser"
            ]
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ]
      },
      "delete": {
        "operationId": "UnmarkFavorite",
        "responses": {
          "204": {
            "description": "No content"
          }
        },
        "tags": [
          "WidgetDashboards"
        ],
        "security": [
          {
            "bearerAuth": [
              "superadmin",
              "superuser"
            ]
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/widgets/dashboards/{dashboardId}/widgets/{widgetId}": {
      "post": {
        "operationId": "AddWidget",
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WidgetInstanceResponse"
                }
              }
            }
          }
        },
        "tags": [
          "WidgetDashboards"
        ],
        "security": [
          {
            "bearerAuth": [
              "user",
              "superuser",
              "admin",
              "superadmin",
              "readonly"
            ]
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "dashboardId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "widgetId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AddWidgetToDashboardRequest"
              }
            }
          }
        }
      }
    },
    "/widgets/dashboards/{dashboardId}/widget-instances/{instanceId}": {
      "put": {
        "operationId": "UpdateWidgetInstance",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WidgetInstanceResponse"
                }
              }
            }
          }
        },
        "tags": [
          "WidgetDashboards"
        ],
        "security": [
          {
            "bearerAuth": [
              "user",
              "superuser",
              "admin",
              "superadmin",
              "readonly"
            ]
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "dashboardId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "instanceId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateWidgetInstanceRequest"
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "RemoveWidget",
        "responses": {
          "204": {
            "description": "No content"
          }
        },
        "tags": [
          "WidgetDashboards"
        ],
        "security": [
          {
            "bearerAuth": [
              "user",
              "superuser",
              "admin",
              "superadmin",
              "readonly"
            ]
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "dashboardId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "instanceId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/widgets": {
      "post": {
        "operationId": "Create",
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WidgetDetailResponse"
                }
              }
            }
          }
        },
        "tags": [
          "Widgets"
        ],
        "security": [
          {
            "bearerAuth": [
              "user",
              "superuser",
              "admin",
              "superadmin",
              "readonly"
            ]
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateWidgetRequest"
              }
            }
          }
        }
      },
      "get": {
        "operationId": "GetAll",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WidgetsListResponse"
                }
              }
            }
          }
        },
        "tags": [
          "Widgets"
        ],
        "security": [
          {
            "bearerAuth": [
              "user",
              "superuser",
              "admin",
              "superadmin",
              "readonly"
            ]
          }
        ],
        "parameters": [
          {
            "in": "query",
            "name": "page",
            "required": false,
            "schema": {
              "format": "double",
              "type": "number"
            }
          },
          {
            "in": "query",
            "name": "pageSize",
            "required": false,
            "schema": {
              "format": "double",
              "type": "number"
            }
          },
          {
            "in": "query",
            "name": "source",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/WidgetSource"
            }
          }
        ]
      }
    },
    "/widgets/{id}": {
      "get": {
        "operationId": "GetById",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WidgetDetailResponse"
                }
              }
            }
          }
        },
        "tags": [
          "Widgets"
        ],
        "security": [
          {
            "bearerAuth": [
              "user",
              "superuser",
              "admin",
              "superadmin",
              "readonly"
            ]
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ]
      },
      "put": {
        "operationId": "Update",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WidgetDetailResponse"
                }
              }
            }
          }
        },
        "tags": [
          "Widgets"
        ],
        "security": [
          {
            "bearerAuth": [
              "user",
              "superuser",
              "admin",
              "superadmin",
              "readonly"
            ]
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateWidgetRequest"
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "Delete",
        "responses": {
          "204": {
            "description": "No content"
          }
        },
        "tags": [
          "Widgets"
        ],
        "security": [
          {
            "bearerAuth": [
              "user",
              "superuser",
              "admin",
              "superadmin",
              "readonly"
            ]
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/widgets/{id}/thumbnail": {
      "post": {
        "operationId": "UploadThumbnail",
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "imageUrl": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "imageUrl"
                  ],
                  "type": "object"
                }
              }
            }
          }
        },
        "tags": [
          "Widgets"
        ],
        "security": [
          {
            "bearerAuth": [
              "user",
              "superuser",
              "admin",
              "superadmin",
              "readonly"
            ]
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "file": {
                    "type": "string",
                    "format": "binary"
                  }
                },
                "required": [
                  "file"
                ]
              }
            }
          }
        }
      }
    },
    "/widgets/{id}/favorite": {
      "post": {
        "operationId": "MarkFavorite",
        "responses": {
          "204": {
            "description": "No content"
          }
        },
        "tags": [
          "Widgets"
        ],
        "security": [
          {
            "bearerAuth": [
              "superadmin",
              "superuser"
            ]
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ]
      },
      "delete": {
        "operationId": "UnmarkFavorite",
        "responses": {
          "204": {
            "description": "No content"
          }
        },
        "tags": [
          "Widgets"
        ],
        "security": [
          {
            "bearerAuth": [
              "superadmin",
              "superuser"
            ]
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/export": {
      "post": {
        "operationId": "RequestExport",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "exportId": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "exportId"
                  ],
                  "type": "object"
                }
              }
            }
          }
        },
        "tags": [
          "Reports"
        ],
        "security": [
          {
            "bearerAuth": [
              "user",
              "superuser",
              "admin",
              "superadmin",
              "readonly"
            ]
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RequestExportParams"
              }
            }
          }
        }
      }
    },
    "/export/{reportId}": {
      "get": {
        "operationId": "GetExport",
        "responses": {
          "302": {
            "description": "Redirect",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "tags": [
          "Reports"
        ],
        "security": [
          {
            "bearerAuth": [
              "user",
              "superuser",
              "admin",
              "superadmin",
              "readonly"
            ]
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "reportId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    }
  },
  "servers": [
    {
      "url": "/"
    }
  ]
}