{
  "openapi": "3.1.0",
  "info": {
    "title": "Phone Buzz Trading API",
    "description": "Staff platform foundation. Outbound integrations are not enabled.",
    "version": "0.1.0"
  },
  "paths": {
    "/v1/trading": {
      "get": {
        "tags": [
          "Trading"
        ],
        "summary": "Records",
        "operationId": "records_v1_trading_get",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "kind",
            "in": "query",
            "required": true,
            "schema": {
              "enum": [
                "stock",
                "offer",
                "wanted"
              ],
              "type": "string",
              "title": "Kind"
            }
          },
          {
            "name": "q",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 120,
              "default": "",
              "title": "Q"
            }
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "enum": [
                "all",
                "active",
                "draft",
                "withdrawn",
                "fulfilled",
                "expired"
              ],
              "type": "string",
              "default": "all",
              "title": "Status"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 0,
              "default": 0,
              "title": "Offset"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 100,
              "minimum": 1,
              "default": 25,
              "title": "Limit"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RecordPage"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Trading"
        ],
        "summary": "Create Record",
        "operationId": "create_record_v1_trading_post",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RecordIn-Input"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RecordOut"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/trading/{record_id}": {
      "get": {
        "tags": [
          "Trading"
        ],
        "summary": "Record",
        "operationId": "record_v1_trading__record_id__get",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "record_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Record Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RecordOut"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "patch": {
        "tags": [
          "Trading"
        ],
        "summary": "Edit Record",
        "operationId": "edit_record_v1_trading__record_id__patch",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "record_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Record Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RecordUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RecordOut"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/trading/{record_id}/matches": {
      "get": {
        "tags": [
          "Trading"
        ],
        "summary": "Matches",
        "operationId": "matches_v1_trading__record_id__matches_get",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "record_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Record Id"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 0,
              "default": 0,
              "title": "Offset"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 100,
              "minimum": 1,
              "default": 25,
              "title": "Limit"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MatchPage"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/offer-expiry": {
      "get": {
        "tags": [
          "Supplier offer expiry"
        ],
        "summary": "Listing",
        "operationId": "listing_v1_offer_expiry_get",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "window",
            "in": "query",
            "required": false,
            "schema": {
              "enum": [
                "expired",
                "day",
                "week",
                "later",
                "unscheduled"
              ],
              "type": "string",
              "default": "expired",
              "title": "Window"
            }
          },
          {
            "name": "q",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 160,
              "default": "",
              "title": "Q"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 0,
              "default": 0,
              "title": "Offset"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 50,
              "minimum": 1,
              "default": 20,
              "title": "Limit"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/phonebuzz__offer_expiry__Page"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/offer-expiry/{identity}": {
      "get": {
        "tags": [
          "Supplier offer expiry"
        ],
        "summary": "Detail",
        "operationId": "detail_v1_offer_expiry__identity__get",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "identity",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Identity"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/phonebuzz__offer_expiry__Detail"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/catalogue/products": {
      "get": {
        "tags": [
          "Catalogue"
        ],
        "summary": "Products",
        "operationId": "products_v1_catalogue_products_get",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 120,
              "default": "",
              "title": "Q"
            }
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "enum": [
                "active",
                "archived",
                "all"
              ],
              "type": "string",
              "default": "active",
              "title": "Status"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 0,
              "default": 0,
              "title": "Offset"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 100,
              "minimum": 1,
              "default": 25,
              "title": "Limit"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProductPage"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Catalogue"
        ],
        "summary": "Create Product",
        "operationId": "create_product_v1_catalogue_products_post",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ProductIn"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProductOut"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/catalogue/standards": {
      "get": {
        "tags": [
          "Catalogue"
        ],
        "summary": "Standards",
        "operationId": "standards_v1_catalogue_standards_get",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "kind",
            "in": "query",
            "required": true,
            "schema": {
              "enum": [
                "grade",
                "region"
              ],
              "type": "string",
              "title": "Kind"
            }
          },
          {
            "name": "q",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 80,
              "default": "",
              "title": "Q"
            }
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "enum": [
                "active",
                "archived",
                "all"
              ],
              "type": "string",
              "default": "active",
              "title": "Status"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 0,
              "default": 0,
              "title": "Offset"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 100,
              "minimum": 1,
              "default": 25,
              "title": "Limit"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StandardPage"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Catalogue"
        ],
        "summary": "Create Standard",
        "operationId": "create_standard_v1_catalogue_standards_post",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/StandardIn"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StandardOut"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/catalogue/products/{entry_id}": {
      "get": {
        "tags": [
          "Catalogue"
        ],
        "summary": "Product",
        "operationId": "product_v1_catalogue_products__entry_id__get",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "entry_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Entry Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProductOut"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "patch": {
        "tags": [
          "Catalogue"
        ],
        "summary": "Product Availability",
        "operationId": "product_availability_v1_catalogue_products__entry_id__patch",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "entry_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Entry Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AvailabilityIn"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProductOut"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/catalogue/standards/{entry_id}": {
      "get": {
        "tags": [
          "Catalogue"
        ],
        "summary": "Standard",
        "operationId": "standard_v1_catalogue_standards__entry_id__get",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "entry_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Entry Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StandardOut"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "patch": {
        "tags": [
          "Catalogue"
        ],
        "summary": "Standard Availability",
        "operationId": "standard_availability_v1_catalogue_standards__entry_id__patch",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "entry_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Entry Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AvailabilityIn"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StandardOut"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/inventory/devices": {
      "get": {
        "tags": [
          "Inventory"
        ],
        "summary": "Devices",
        "operationId": "devices_v1_inventory_devices_get",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "stock_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Stock Id"
            }
          },
          {
            "name": "q",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 15,
              "default": "",
              "title": "Q"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 0,
              "default": 0,
              "title": "Offset"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 100,
              "minimum": 1,
              "default": 25,
              "title": "Limit"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DevicePage"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Inventory"
        ],
        "summary": "Add Device",
        "operationId": "add_device_v1_inventory_devices_post",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DeviceIn"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeviceOut"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/inventory/devices/{device_id}/retire": {
      "post": {
        "tags": [
          "Inventory"
        ],
        "summary": "Retire Device",
        "operationId": "retire_device_v1_inventory_devices__device_id__retire_post",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "device_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Device Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RetireIn"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeviceOut"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/inventory/reservations": {
      "post": {
        "tags": [
          "Inventory"
        ],
        "summary": "Reserve",
        "operationId": "reserve_v1_inventory_reservations_post",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReserveIn"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReservationOut"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "get": {
        "tags": [
          "Inventory"
        ],
        "summary": "Reservations",
        "operationId": "reservations_v1_inventory_reservations_get",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "record_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Record Id"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 0,
              "default": 0,
              "title": "Offset"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 100,
              "minimum": 1,
              "default": 25,
              "title": "Limit"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReservationPage"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/inventory/reservations/{reservation_id}/action": {
      "post": {
        "tags": [
          "Inventory"
        ],
        "summary": "Reservation Action",
        "operationId": "reservation_action_v1_inventory_reservations__reservation_id__action_post",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "reservation_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Reservation Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReservationAction"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReservationOut"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/inventory/devices/{device_id}": {
      "get": {
        "tags": [
          "Device care"
        ],
        "summary": "Detail",
        "operationId": "detail_v1_inventory_devices__device_id__get",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "device_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Device Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeviceDetail"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/inventory/devices/{device_id}/history": {
      "get": {
        "tags": [
          "Device care"
        ],
        "summary": "History",
        "operationId": "history_v1_inventory_devices__device_id__history_get",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "device_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Device Id"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 0,
              "default": 0,
              "title": "Offset"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 100,
              "minimum": 1,
              "default": 25,
              "title": "Limit"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/phonebuzz__device_care__HistoryPage"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/inventory/devices/{device_id}/correct": {
      "post": {
        "tags": [
          "Device care"
        ],
        "summary": "Correct",
        "operationId": "correct_v1_inventory_devices__device_id__correct_post",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "device_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Device Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Correction"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeviceOut"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/inventory/devices/{device_id}/transfer": {
      "post": {
        "tags": [
          "Device care"
        ],
        "summary": "Transfer",
        "operationId": "transfer_v1_inventory_devices__device_id__transfer_post",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "device_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Device Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Transfer"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeviceOut"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/inventory/devices/{device_id}/return": {
      "post": {
        "tags": [
          "Device care"
        ],
        "summary": "Receive Return",
        "operationId": "receive_return_v1_inventory_devices__device_id__return_post",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "device_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Device Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReceiveReturn"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeviceOut"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/inventory/devices/{device_id}/inspect": {
      "post": {
        "tags": [
          "Device care"
        ],
        "summary": "Inspect Return",
        "operationId": "inspect_return_v1_inventory_devices__device_id__inspect_post",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "device_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Device Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Inspection"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeviceOut"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/attachments": {
      "get": {
        "tags": [
          "Private attachments"
        ],
        "summary": "Listing",
        "operationId": "listing_v1_attachments_get",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "entity_type",
            "in": "query",
            "required": true,
            "schema": {
              "enum": [
                "stock",
                "device",
                "reservation"
              ],
              "type": "string",
              "title": "Entity Type"
            }
          },
          {
            "name": "entity_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Entity Id"
            }
          },
          {
            "name": "archived",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "default": false,
              "title": "Archived"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 0,
              "default": 0,
              "title": "Offset"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 50,
              "minimum": 1,
              "default": 20,
              "title": "Limit"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AttachmentPage"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Private attachments"
        ],
        "summary": "Upload",
        "operationId": "upload_v1_attachments_post",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "entity_type",
            "in": "query",
            "required": true,
            "schema": {
              "enum": [
                "stock",
                "device",
                "reservation"
              ],
              "type": "string",
              "title": "Entity Type"
            }
          },
          {
            "name": "entity_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Entity Id"
            }
          },
          {
            "name": "x-file-name",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "title": "X-File-Name"
            }
          },
          {
            "name": "x-file-caption",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "default": "",
              "title": "X-File-Caption"
            }
          },
          {
            "name": "x-upload-key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "X-Upload-Key"
            }
          }
        ],
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AttachmentOut"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/attachments/{attachment_id}/content": {
      "get": {
        "tags": [
          "Private attachments"
        ],
        "summary": "Content",
        "operationId": "content_v1_attachments__attachment_id__content_get",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "attachment_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Attachment Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/attachments/{attachment_id}": {
      "patch": {
        "tags": [
          "Private attachments"
        ],
        "summary": "Archive",
        "operationId": "archive_v1_attachments__attachment_id__patch",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "attachment_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Attachment Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ArchiveIn"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AttachmentOut"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/imports/template": {
      "get": {
        "tags": [
          "Reviewed trading imports"
        ],
        "summary": "Template",
        "operationId": "template_v1_imports_template_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/v1/imports": {
      "get": {
        "tags": [
          "Reviewed trading imports"
        ],
        "summary": "Listing",
        "operationId": "listing_v1_imports_get",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 0,
              "default": 0,
              "title": "Offset"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 50,
              "minimum": 1,
              "default": 20,
              "title": "Limit"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BatchPage"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/imports/preview": {
      "post": {
        "tags": [
          "Reviewed trading imports"
        ],
        "summary": "Preview",
        "operationId": "preview_v1_imports_preview_post",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "kind",
            "in": "query",
            "required": true,
            "schema": {
              "enum": [
                "stock",
                "offer",
                "wanted"
              ],
              "type": "string",
              "title": "Kind"
            }
          },
          {
            "name": "company_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "format": "uuid"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Company Id"
            }
          },
          {
            "name": "x-file-name",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "title": "X-File-Name"
            }
          },
          {
            "name": "x-upload-key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "X-Upload-Key"
            }
          }
        ],
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BatchDetail"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/imports/{batch_id}": {
      "get": {
        "tags": [
          "Reviewed trading imports"
        ],
        "summary": "Detail",
        "operationId": "detail_v1_imports__batch_id__get",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "batch_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Batch Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BatchDetail"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/imports/{batch_id}/recheck": {
      "post": {
        "tags": [
          "Reviewed trading imports"
        ],
        "summary": "Recheck",
        "operationId": "recheck_v1_imports__batch_id__recheck_post",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "batch_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Batch Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VersionIn"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BatchDetail"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/imports/{batch_id}/cancel": {
      "post": {
        "tags": [
          "Reviewed trading imports"
        ],
        "summary": "Cancel",
        "operationId": "cancel_v1_imports__batch_id__cancel_post",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "batch_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Batch Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VersionIn"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BatchDetail"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/imports/{batch_id}/commit": {
      "post": {
        "tags": [
          "Reviewed trading imports"
        ],
        "summary": "Commit",
        "operationId": "commit_v1_imports__batch_id__commit_post",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "batch_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Batch Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CommitIn"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BatchDetail"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/warehouses": {
      "get": {
        "tags": [
          "Warehouse locations"
        ],
        "summary": "Listing",
        "operationId": "listing_v1_warehouses_get",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 120,
              "default": "",
              "title": "Q"
            }
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "enum": [
                "active",
                "archived",
                "all"
              ],
              "type": "string",
              "default": "active",
              "title": "Status"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 0,
              "default": 0,
              "title": "Offset"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 100,
              "minimum": 1,
              "default": 25,
              "title": "Limit"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WarehousePage"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Warehouse locations"
        ],
        "summary": "Create",
        "operationId": "create_v1_warehouses_post",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WarehouseIn"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WarehouseOut"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/warehouses/{location_id}": {
      "patch": {
        "tags": [
          "Warehouse locations"
        ],
        "summary": "Availability",
        "operationId": "availability_v1_warehouses__location_id__patch",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "location_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Location Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Availability"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WarehouseOut"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/warehouses/devices/{device_id}/movements": {
      "get": {
        "tags": [
          "Warehouse locations"
        ],
        "summary": "Movements",
        "operationId": "movements_v1_warehouses_devices__device_id__movements_get",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "device_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Device Id"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 0,
              "default": 0,
              "title": "Offset"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 100,
              "minimum": 1,
              "default": 20,
              "title": "Limit"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MovementPage"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/warehouses/{location_id}/devices": {
      "get": {
        "tags": [
          "Warehouse locations"
        ],
        "summary": "Located Devices",
        "operationId": "located_devices_v1_warehouses__location_id__devices_get",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "location_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Location Id"
            }
          },
          {
            "name": "state",
            "in": "query",
            "required": false,
            "schema": {
              "enum": [
                "on_hand",
                "incoming",
                "outgoing"
              ],
              "type": "string",
              "default": "on_hand",
              "title": "State"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 0,
              "default": 0,
              "title": "Offset"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 100,
              "minimum": 1,
              "default": 25,
              "title": "Limit"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LocationDevices"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/warehouses/devices/{device_id}/assign": {
      "post": {
        "tags": [
          "Warehouse locations"
        ],
        "summary": "Assign",
        "operationId": "assign_v1_warehouses_devices__device_id__assign_post",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "device_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Device Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Destination"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeviceOut"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/warehouses/devices/{device_id}/dispatch": {
      "post": {
        "tags": [
          "Warehouse locations"
        ],
        "summary": "Dispatch",
        "operationId": "dispatch_v1_warehouses_devices__device_id__dispatch_post",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "device_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Device Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Destination"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeviceOut"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/warehouses/devices/{device_id}/receive": {
      "post": {
        "tags": [
          "Warehouse locations"
        ],
        "summary": "Receive",
        "operationId": "receive_v1_warehouses_devices__device_id__receive_post",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "device_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Device Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/phonebuzz__warehouses__Receipt"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeviceOut"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/mail-attachments/{identity}": {
      "get": {
        "tags": [
          "Incoming email attachments"
        ],
        "summary": "Detail",
        "operationId": "detail_v1_mail_attachments__identity__get",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "identity",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Identity"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FileDetail"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/mail-attachments/{identity}/content": {
      "get": {
        "tags": [
          "Incoming email attachments"
        ],
        "summary": "Content",
        "operationId": "content_v1_mail_attachments__identity__content_get",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "identity",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Identity"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/mail-attachments/{identity}/review": {
      "post": {
        "tags": [
          "Incoming email attachments"
        ],
        "summary": "Review",
        "operationId": "review_v1_mail_attachments__identity__review_post",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "identity",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Identity"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/phonebuzz__mail_attachments__Confirm"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FileDetail"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/inbox/assignees": {
      "get": {
        "tags": [
          "Shared inbox"
        ],
        "summary": "Assignees",
        "operationId": "assignees_v1_inbox_assignees_get",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 120,
              "default": "",
              "title": "Q"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 0,
              "default": 0,
              "title": "Offset"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 100,
              "minimum": 1,
              "default": 25,
              "title": "Limit"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StaffPage"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/inbox": {
      "get": {
        "tags": [
          "Shared inbox"
        ],
        "summary": "Listing",
        "operationId": "listing_v1_inbox_get",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 200,
              "default": "",
              "title": "Q"
            }
          },
          {
            "name": "channel",
            "in": "query",
            "required": false,
            "schema": {
              "enum": [
                "all",
                "email",
                "whatsapp"
              ],
              "type": "string",
              "default": "all",
              "title": "Channel"
            }
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "enum": [
                "open",
                "closed",
                "all"
              ],
              "type": "string",
              "default": "open",
              "title": "Status"
            }
          },
          {
            "name": "assignment",
            "in": "query",
            "required": false,
            "schema": {
              "enum": [
                "all",
                "mine",
                "unassigned"
              ],
              "type": "string",
              "default": "all",
              "title": "Assignment"
            }
          },
          {
            "name": "company_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "format": "uuid"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Company Id"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 0,
              "default": 0,
              "title": "Offset"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 100,
              "minimum": 1,
              "default": 25,
              "title": "Limit"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/phonebuzz__inbox__Page"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Shared inbox"
        ],
        "summary": "Create",
        "operationId": "create_v1_inbox_post",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/phonebuzz__inbox__Create"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/phonebuzz__inbox__Detail"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/inbox/{identity}": {
      "get": {
        "tags": [
          "Shared inbox"
        ],
        "summary": "Detail",
        "operationId": "detail_v1_inbox__identity__get",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "identity",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Identity"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/phonebuzz__inbox__Detail"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "patch": {
        "tags": [
          "Shared inbox"
        ],
        "summary": "Metadata",
        "operationId": "metadata_v1_inbox__identity__patch",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "identity",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Identity"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Metadata"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/phonebuzz__inbox__Detail"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/inbox/{identity}/entries": {
      "get": {
        "tags": [
          "Shared inbox"
        ],
        "summary": "Entries",
        "operationId": "entries_v1_inbox__identity__entries_get",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "identity",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Identity"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 0,
              "default": 0,
              "title": "Offset"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 100,
              "minimum": 1,
              "default": 25,
              "title": "Limit"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EntryPage"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Shared inbox"
        ],
        "summary": "Add Entry",
        "operationId": "add_entry_v1_inbox__identity__entries_post",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "identity",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Identity"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EntryIn"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/phonebuzz__inbox__Detail"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/inbox/{identity}/draft": {
      "put": {
        "tags": [
          "Shared inbox"
        ],
        "summary": "Draft",
        "operationId": "draft_v1_inbox__identity__draft_put",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "identity",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Identity"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DraftIn"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/phonebuzz__inbox__Detail"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/whatsapp": {
      "get": {
        "tags": [
          "Incoming WhatsApp"
        ],
        "summary": "Status",
        "operationId": "status_v1_whatsapp_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Status"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/v1/whatsapp/control": {
      "post": {
        "tags": [
          "Incoming WhatsApp"
        ],
        "summary": "Control",
        "operationId": "control_v1_whatsapp_control_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/phonebuzz__whatsapp__Control"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Status"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/v1/whatsapp/messages": {
      "get": {
        "tags": [
          "Incoming WhatsApp"
        ],
        "summary": "Messages",
        "operationId": "messages_v1_whatsapp_messages_get",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 0,
              "default": 0,
              "title": "Offset"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 100,
              "minimum": 1,
              "default": 20,
              "title": "Limit"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/phonebuzz__whatsapp__MessagePage"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/webhooks/whatsapp": {
      "get": {
        "tags": [
          "Incoming WhatsApp"
        ],
        "summary": "Verify",
        "operationId": "verify_webhooks_whatsapp_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Incoming WhatsApp"
        ],
        "summary": "Webhook",
        "operationId": "webhook_webhooks_whatsapp_post",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        }
      }
    },
    "/v1/mailbox": {
      "get": {
        "tags": [
          "Incoming mailbox sync"
        ],
        "summary": "Status",
        "operationId": "status_v1_mailbox_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MailboxStatus"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/v1/mailbox/control": {
      "post": {
        "tags": [
          "Incoming mailbox sync"
        ],
        "summary": "Control",
        "operationId": "control_v1_mailbox_control_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/phonebuzz__mailbox_api__Control"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MailboxStatus"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/v1/mailbox/messages": {
      "get": {
        "tags": [
          "Incoming mailbox sync"
        ],
        "summary": "Messages",
        "operationId": "messages_v1_mailbox_messages_get",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "outcome",
            "in": "query",
            "required": false,
            "schema": {
              "enum": [
                "all",
                "imported",
                "skipped",
                "duplicate"
              ],
              "type": "string",
              "default": "all",
              "title": "Outcome"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 0,
              "default": 0,
              "title": "Offset"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 100,
              "minimum": 1,
              "default": 20,
              "title": "Limit"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/phonebuzz__mailbox_api__MessagePage"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/health": {
      "get": {
        "summary": "Health",
        "operationId": "health_health_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        }
      }
    },
    "/v1/auth/login": {
      "post": {
        "summary": "Login",
        "operationId": "login_v1_auth_login_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LoginIn"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/auth/me": {
      "get": {
        "summary": "Me",
        "operationId": "me_v1_auth_me_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UserOut"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/v1/auth/logout": {
      "post": {
        "summary": "Logout",
        "operationId": "logout_v1_auth_logout_post",
        "responses": {
          "204": {
            "description": "Successful Response"
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/v1/users": {
      "get": {
        "summary": "Users",
        "operationId": "users_v1_users_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/UserOut"
                  },
                  "type": "array",
                  "title": "Response Users V1 Users Get"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      },
      "post": {
        "summary": "Create User",
        "operationId": "create_user_v1_users_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UserIn"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UserOut"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/v1/companies": {
      "get": {
        "summary": "Companies",
        "operationId": "companies_v1_companies_get",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 160,
              "default": "",
              "title": "Q"
            }
          },
          {
            "name": "kind",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "enum": [
                    "customer",
                    "supplier",
                    "both"
                  ],
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Kind"
            }
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "enum": [
                "active",
                "archived"
              ],
              "type": "string",
              "default": "active",
              "title": "Status"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 100,
              "minimum": 1,
              "default": 50,
              "title": "Limit"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 0,
              "default": 0,
              "title": "Offset"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CompanyPage"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "post": {
        "summary": "Create Company",
        "operationId": "create_company_v1_companies_post",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CompanyIn"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CompanyOut"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/companies/{company_id}": {
      "get": {
        "summary": "Company",
        "operationId": "company_v1_companies__company_id__get",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "company_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Company Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CompanyOut"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "patch": {
        "summary": "Edit Company",
        "operationId": "edit_company_v1_companies__company_id__patch",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "company_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Company Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CompanyUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CompanyOut"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/audit": {
      "get": {
        "summary": "Events",
        "operationId": "events_v1_audit_get",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 100,
              "minimum": 1,
              "default": 50,
              "title": "Limit"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/AuditOut"
                  },
                  "title": "Response Events V1 Audit Get"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/dashboard": {
      "get": {
        "summary": "Dashboard",
        "operationId": "dashboard_v1_dashboard_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DashboardOut"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/v1/inbox/{identity}/trading-drafts": {
      "post": {
        "tags": [
          "Email trading review"
        ],
        "summary": "Create",
        "operationId": "create_v1_inbox__identity__trading_drafts_post",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "identity",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Identity"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/phonebuzz__email_trading__Review"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RecordOut"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/trading/{record_id}/email-source": {
      "get": {
        "tags": [
          "Email trading review"
        ],
        "summary": "Source",
        "operationId": "source_v1_trading__record_id__email_source_get",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "record_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Record Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/EmailSource"
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "title": "Response Source V1 Trading  Record Id  Email Source Get"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/inbox/{identity}/extraction": {
      "get": {
        "tags": [
          "AI email suggestions"
        ],
        "summary": "Get",
        "operationId": "get_v1_inbox__identity__extraction_get",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "identity",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Identity"
            }
          },
          {
            "name": "entry_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Entry Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "AI email suggestions"
        ],
        "summary": "Request",
        "operationId": "request_v1_inbox__identity__extraction_post",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "identity",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Identity"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Request"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/learning": {
      "get": {
        "tags": [
          "Learning review"
        ],
        "summary": "Listing",
        "operationId": "listing_v1_learning_get",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "state",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "enum": [
                    "pending",
                    "approved",
                    "holdout",
                    "rejected",
                    "retired"
                  ],
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "State"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 100,
              "minimum": 1,
              "default": 25,
              "title": "Limit"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 0,
              "default": 0,
              "title": "Offset"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/learning/{identity}/review": {
      "post": {
        "tags": [
          "Learning review"
        ],
        "summary": "Review",
        "operationId": "review_v1_learning__identity__review_post",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "identity",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Identity"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/phonebuzz__learning__Review"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/quotations": {
      "get": {
        "tags": [
          "Quotations and approvals"
        ],
        "summary": "Listing",
        "operationId": "listing_v1_quotations_get",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "state",
            "in": "query",
            "required": false,
            "schema": {
              "enum": [
                "all",
                "draft",
                "pending",
                "approved",
                "cancelled"
              ],
              "type": "string",
              "default": "all",
              "title": "State"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 0,
              "default": 0,
              "title": "Offset"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 100,
              "minimum": 1,
              "default": 20,
              "title": "Limit"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Quotations and approvals"
        ],
        "summary": "Create",
        "operationId": "create_v1_quotations_post",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/phonebuzz__quotations__Create"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/quotations/{identity}": {
      "get": {
        "tags": [
          "Quotations and approvals"
        ],
        "summary": "Detail",
        "operationId": "detail_v1_quotations__identity__get",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "identity",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Identity"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "patch": {
        "tags": [
          "Quotations and approvals"
        ],
        "summary": "Edit",
        "operationId": "edit_v1_quotations__identity__patch",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "identity",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Identity"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/phonebuzz__quotations__Edit"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/quotations/{identity}/action": {
      "post": {
        "tags": [
          "Quotations and approvals"
        ],
        "summary": "Action",
        "operationId": "action_v1_quotations__identity__action_post",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "identity",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Identity"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/phonebuzz__quotations__Action"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/quotations/{identity}/history": {
      "get": {
        "tags": [
          "Quotations and approvals"
        ],
        "summary": "Revisions",
        "operationId": "revisions_v1_quotations__identity__history_get",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "identity",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Identity"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 0,
              "default": 0,
              "title": "Offset"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 100,
              "minimum": 1,
              "default": 20,
              "title": "Limit"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/quotations/{identity}/pdf": {
      "get": {
        "tags": [
          "Quotations and approvals"
        ],
        "summary": "Pdf",
        "operationId": "pdf_v1_quotations__identity__pdf_get",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "identity",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Identity"
            }
          },
          {
            "name": "version",
            "in": "query",
            "required": true,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "title": "Version"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/followups": {
      "get": {
        "tags": [
          "Quotation follow-ups"
        ],
        "summary": "Listing",
        "operationId": "listing_v1_followups_get",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "enum": [
                "open",
                "overdue",
                "completed",
                "cancelled",
                "all"
              ],
              "type": "string",
              "default": "open",
              "title": "Status"
            }
          },
          {
            "name": "assignment",
            "in": "query",
            "required": false,
            "schema": {
              "enum": [
                "mine",
                "all"
              ],
              "type": "string",
              "default": "mine",
              "title": "Assignment"
            }
          },
          {
            "name": "quotation_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "format": "uuid"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Quotation Id"
            }
          },
          {
            "name": "q",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 160,
              "default": "",
              "title": "Q"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 0,
              "default": 0,
              "title": "Offset"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 100,
              "minimum": 1,
              "default": 20,
              "title": "Limit"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Quotation follow-ups"
        ],
        "summary": "Create",
        "operationId": "create_v1_followups_post",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/phonebuzz__followups__Create"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/followups/{identity}": {
      "get": {
        "tags": [
          "Quotation follow-ups"
        ],
        "summary": "Detail",
        "operationId": "detail_v1_followups__identity__get",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "identity",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Identity"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "patch": {
        "tags": [
          "Quotation follow-ups"
        ],
        "summary": "Edit",
        "operationId": "edit_v1_followups__identity__patch",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "identity",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Identity"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/phonebuzz__followups__Edit"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/followups/{identity}/action": {
      "post": {
        "tags": [
          "Quotation follow-ups"
        ],
        "summary": "Action",
        "operationId": "action_v1_followups__identity__action_post",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "identity",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Identity"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/phonebuzz__followups__Action"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/followups/{identity}/history": {
      "get": {
        "tags": [
          "Quotation follow-ups"
        ],
        "summary": "Revisions",
        "operationId": "revisions_v1_followups__identity__history_get",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "identity",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Identity"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 0,
              "default": 0,
              "title": "Offset"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 100,
              "minimum": 1,
              "default": 20,
              "title": "Limit"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/orders": {
      "get": {
        "tags": [
          "Customer acceptance and orders"
        ],
        "summary": "Listing",
        "operationId": "listing_v1_orders_get",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "state",
            "in": "query",
            "required": false,
            "schema": {
              "enum": [
                "all",
                "pending",
                "reserved",
                "allocated",
                "dispatched",
                "delivered",
                "returning",
                "returned",
                "expired",
                "cancelled"
              ],
              "type": "string",
              "default": "all",
              "title": "State"
            }
          },
          {
            "name": "quotation_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "format": "uuid"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Quotation Id"
            }
          },
          {
            "name": "q",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 160,
              "default": "",
              "title": "Q"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 0,
              "default": 0,
              "title": "Offset"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 100,
              "minimum": 1,
              "default": 20,
              "title": "Limit"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Customer acceptance and orders"
        ],
        "summary": "Create",
        "operationId": "create_v1_orders_post",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Acceptance"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/orders/{identity}": {
      "get": {
        "tags": [
          "Customer acceptance and orders"
        ],
        "summary": "Detail",
        "operationId": "detail_v1_orders__identity__get",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "identity",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Identity"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/orders/{identity}/confirm": {
      "post": {
        "tags": [
          "Customer acceptance and orders"
        ],
        "summary": "Confirm",
        "operationId": "confirm_v1_orders__identity__confirm_post",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "identity",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Identity"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/phonebuzz__orders__Confirm"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/orders/{identity}/cancel": {
      "post": {
        "tags": [
          "Customer acceptance and orders"
        ],
        "summary": "Cancel",
        "operationId": "cancel_v1_orders__identity__cancel_post",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "identity",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Identity"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cancel"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/orders/{identity}/history": {
      "get": {
        "tags": [
          "Customer acceptance and orders"
        ],
        "summary": "Revisions",
        "operationId": "revisions_v1_orders__identity__history_get",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "identity",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Identity"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 0,
              "default": 0,
              "title": "Offset"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 100,
              "minimum": 1,
              "default": 20,
              "title": "Limit"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/orders/{identity}/allocate": {
      "post": {
        "tags": [
          "Customer acceptance and orders"
        ],
        "summary": "Allocate Order",
        "operationId": "allocate_order_v1_orders__identity__allocate_post",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "identity",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Identity"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FulfilmentReview"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/orders/{identity}/dispatch": {
      "post": {
        "tags": [
          "Customer acceptance and orders"
        ],
        "summary": "Dispatch Order",
        "operationId": "dispatch_order_v1_orders__identity__dispatch_post",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "identity",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Identity"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Dispatch"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/orders/{identity}/deliver": {
      "post": {
        "tags": [
          "Customer acceptance and orders"
        ],
        "summary": "Deliver Order",
        "operationId": "deliver_order_v1_orders__identity__deliver_post",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "identity",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Identity"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Delivery"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/orders/{identity}/shipment-note": {
      "post": {
        "tags": [
          "Customer acceptance and orders"
        ],
        "summary": "Shipment Note",
        "operationId": "shipment_note_v1_orders__identity__shipment_note_post",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "identity",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Identity"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FulfilmentReview"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/orders/{identity}/returns": {
      "get": {
        "tags": [
          "Order returns"
        ],
        "summary": "Listing",
        "operationId": "listing_v1_orders__identity__returns_get",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "identity",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Identity"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 0,
              "default": 0,
              "title": "Offset"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 100,
              "minimum": 1,
              "default": 20,
              "title": "Limit"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Order returns"
        ],
        "summary": "Receive",
        "operationId": "receive_v1_orders__identity__returns_post",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "identity",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Identity"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/phonebuzz__order_returns__Receipt"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/billing": {
      "get": {
        "tags": [
          "Invoice drafts and manual payments"
        ],
        "summary": "Listing",
        "operationId": "listing_v1_billing_get",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "state",
            "in": "query",
            "required": false,
            "schema": {
              "enum": [
                "all",
                "draft",
                "issued",
                "void",
                "unpaid",
                "partial",
                "paid",
                "overdue",
                "needs_review"
              ],
              "type": "string",
              "default": "all",
              "title": "State"
            }
          },
          {
            "name": "order_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "format": "uuid"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Order Id"
            }
          },
          {
            "name": "q",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 160,
              "default": "",
              "title": "Q"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 0,
              "default": 0,
              "title": "Offset"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 100,
              "minimum": 1,
              "default": 20,
              "title": "Limit"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Invoice drafts and manual payments"
        ],
        "summary": "Create",
        "operationId": "create_v1_billing_post",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/phonebuzz__billing__Create"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/billing/{identity}": {
      "get": {
        "tags": [
          "Invoice drafts and manual payments"
        ],
        "summary": "Detail",
        "operationId": "detail_v1_billing__identity__get",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "identity",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Identity"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "patch": {
        "tags": [
          "Invoice drafts and manual payments"
        ],
        "summary": "Edit",
        "operationId": "edit_v1_billing__identity__patch",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "identity",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Identity"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/phonebuzz__billing__Edit"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/billing/{identity}/issue": {
      "post": {
        "tags": [
          "Invoice drafts and manual payments"
        ],
        "summary": "Issue",
        "operationId": "issue_v1_billing__identity__issue_post",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "identity",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Identity"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Issue"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/billing/{identity}/void": {
      "post": {
        "tags": [
          "Invoice drafts and manual payments"
        ],
        "summary": "Void",
        "operationId": "void_v1_billing__identity__void_post",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "identity",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Identity"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Reason"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/billing/{identity}/payments": {
      "get": {
        "tags": [
          "Invoice drafts and manual payments"
        ],
        "summary": "Payments",
        "operationId": "payments_v1_billing__identity__payments_get",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "identity",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Identity"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 0,
              "default": 0,
              "title": "Offset"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 100,
              "minimum": 1,
              "default": 20,
              "title": "Limit"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Invoice drafts and manual payments"
        ],
        "summary": "Receive",
        "operationId": "receive_v1_billing__identity__payments_post",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "identity",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Identity"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Payment"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/billing/{identity}/payments/{payment_id}/reverse": {
      "post": {
        "tags": [
          "Invoice drafts and manual payments"
        ],
        "summary": "Reverse",
        "operationId": "reverse_v1_billing__identity__payments__payment_id__reverse_post",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "identity",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Identity"
            }
          },
          {
            "name": "payment_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Payment Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Reason"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/billing/{identity}/history": {
      "get": {
        "tags": [
          "Invoice drafts and manual payments"
        ],
        "summary": "Revisions",
        "operationId": "revisions_v1_billing__identity__history_get",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "identity",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Identity"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 0,
              "default": 0,
              "title": "Offset"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 100,
              "minimum": 1,
              "default": 20,
              "title": "Limit"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/billing/{identity}/pdf": {
      "get": {
        "tags": [
          "Invoice drafts and manual payments"
        ],
        "summary": "Pdf",
        "operationId": "pdf_v1_billing__identity__pdf_get",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "identity",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Identity"
            }
          },
          {
            "name": "version",
            "in": "query",
            "required": true,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "title": "Version"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/operations": {
      "get": {
        "tags": [
          "operations"
        ],
        "summary": "Overview",
        "operationId": "overview_v1_operations_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperationsOut"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/v1/relationships": {
      "get": {
        "tags": [
          "Relationship workload"
        ],
        "summary": "Listing",
        "operationId": "listing_v1_relationships_get",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 160,
              "default": "",
              "title": "Q"
            }
          },
          {
            "name": "kind",
            "in": "query",
            "required": false,
            "schema": {
              "enum": [
                "all",
                "customer",
                "supplier",
                "both"
              ],
              "type": "string",
              "default": "all",
              "title": "Kind"
            }
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "enum": [
                "all",
                "active",
                "archived"
              ],
              "type": "string",
              "default": "active",
              "title": "Status"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 50,
              "minimum": 1,
              "default": 20,
              "title": "Limit"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 0,
              "default": 0,
              "title": "Offset"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RelationshipPage"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/relationships/{identity}": {
      "get": {
        "tags": [
          "Relationship workload"
        ],
        "summary": "Detail",
        "operationId": "detail_v1_relationships__identity__get",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "identity",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Identity"
            }
          },
          {
            "name": "category",
            "in": "query",
            "required": false,
            "schema": {
              "enum": [
                "conversations",
                "offers",
                "wanted",
                "quotations",
                "followups",
                "orders"
              ],
              "type": "string",
              "default": "conversations",
              "title": "Category"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 50,
              "minimum": 1,
              "default": 20,
              "title": "Limit"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 0,
              "default": 0,
              "title": "Offset"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RelationshipDetail"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/opportunities": {
      "get": {
        "tags": [
          "Opportunity shortlist"
        ],
        "summary": "Requests",
        "operationId": "requests_v1_opportunities_get",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 120,
              "default": "",
              "title": "Q"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 0,
              "default": 0,
              "title": "Offset"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 50,
              "minimum": 1,
              "default": 20,
              "title": "Limit"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RecordPage"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/opportunities/{identity}/ranked": {
      "get": {
        "tags": [
          "Opportunity shortlist"
        ],
        "summary": "Ranked",
        "operationId": "ranked_v1_opportunities__identity__ranked_get",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "identity",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Identity"
            }
          },
          {
            "name": "source",
            "in": "query",
            "required": false,
            "schema": {
              "enum": [
                "all",
                "stock",
                "offer"
              ],
              "type": "string",
              "default": "all",
              "title": "Source"
            }
          },
          {
            "name": "q",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 120,
              "default": "",
              "title": "Q"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 0,
              "default": 0,
              "title": "Offset"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 50,
              "minimum": 1,
              "default": 20,
              "title": "Limit"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RankedPage"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/opportunities/review": {
      "post": {
        "tags": [
          "Opportunity shortlist"
        ],
        "summary": "Review",
        "operationId": "review_v1_opportunities_review_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/phonebuzz__opportunities__Review"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Preparation"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/v1/assistant/status": {
      "get": {
        "tags": [
          "Staff assistant"
        ],
        "summary": "Status",
        "operationId": "status_v1_assistant_status_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/v1/assistant/interpret": {
      "post": {
        "tags": [
          "Staff assistant"
        ],
        "summary": "Interpret",
        "operationId": "interpret_v1_assistant_interpret_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Question"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Plan"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/v1/assistant/lookup": {
      "post": {
        "tags": [
          "Staff assistant"
        ],
        "summary": "Lookup",
        "operationId": "lookup_v1_assistant_lookup_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Lookup-Input"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Answer"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/v1/assistant/sources/{kind}/{record_id}": {
      "get": {
        "tags": [
          "Staff assistant"
        ],
        "summary": "Source",
        "operationId": "source_v1_assistant_sources__kind___record_id__get",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "kind",
            "in": "path",
            "required": true,
            "schema": {
              "enum": [
                "company",
                "trading",
                "knowledge"
              ],
              "type": "string",
              "title": "Kind"
            }
          },
          {
            "name": "record_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Record Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Source"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/company-history/{identity}": {
      "get": {
        "tags": [
          "Company history"
        ],
        "summary": "Listing",
        "operationId": "listing_v1_company_history__identity__get",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "identity",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Identity"
            }
          },
          {
            "name": "start",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "date",
              "title": "Start"
            }
          },
          {
            "name": "end",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "date",
              "title": "End"
            }
          },
          {
            "name": "kind",
            "in": "query",
            "required": false,
            "schema": {
              "enum": [
                "all",
                "quotation",
                "order"
              ],
              "type": "string",
              "default": "all",
              "title": "Kind"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 50,
              "minimum": 1,
              "default": 20,
              "title": "Limit"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 10000,
              "minimum": 0,
              "default": 0,
              "title": "Offset"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/phonebuzz__company_history__HistoryPage"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/company-history/{identity}/{kind}/{event_id}": {
      "get": {
        "tags": [
          "Company history"
        ],
        "summary": "Detail",
        "operationId": "detail_v1_company_history__identity___kind___event_id__get",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "identity",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Identity"
            }
          },
          {
            "name": "kind",
            "in": "path",
            "required": true,
            "schema": {
              "enum": [
                "quotation",
                "order"
              ],
              "type": "string",
              "title": "Kind"
            }
          },
          {
            "name": "event_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Event Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EventDetail"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/staff-access": {
      "get": {
        "tags": [
          "Staff access"
        ],
        "summary": "Listing",
        "operationId": "listing_v1_staff_access_get",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 160,
              "default": "",
              "title": "Q"
            }
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "enum": [
                "all",
                "active",
                "inactive"
              ],
              "type": "string",
              "default": "all",
              "title": "Status"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 0,
              "default": 0,
              "title": "Offset"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 50,
              "minimum": 1,
              "default": 20,
              "title": "Limit"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/phonebuzz__staff_access__Page"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/staff-access/{identity}": {
      "get": {
        "tags": [
          "Staff access"
        ],
        "summary": "Detail",
        "operationId": "detail_v1_staff_access__identity__get",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "identity",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Identity"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Account"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/staff-access/{identity}/action": {
      "post": {
        "tags": [
          "Staff access"
        ],
        "summary": "Change",
        "operationId": "change_v1_staff_access__identity__action_post",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "identity",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Identity"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/phonebuzz__staff_access__Change"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/phonebuzz__staff_access__Result"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/security": {
      "get": {
        "tags": [
          "Account security"
        ],
        "summary": "Status",
        "operationId": "status_v1_security_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/v1/security/setup": {
      "post": {
        "tags": [
          "Account security"
        ],
        "summary": "Setup",
        "operationId": "setup_v1_security_setup_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/phonebuzz__mfa__Review"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/v1/security/confirm": {
      "post": {
        "tags": [
          "Account security"
        ],
        "summary": "Confirm",
        "operationId": "confirm_v1_security_confirm_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/phonebuzz__mfa__Confirm"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/v1/security/backup-codes": {
      "post": {
        "tags": [
          "Account security"
        ],
        "summary": "Replace Codes",
        "operationId": "replace_codes_v1_security_backup_codes_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/phonebuzz__mfa__Review"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/v1/security/disable": {
      "post": {
        "tags": [
          "Account security"
        ],
        "summary": "Disable",
        "operationId": "disable_v1_security_disable_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/phonebuzz__mfa__Review"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/v1/security/password": {
      "post": {
        "tags": [
          "Account security"
        ],
        "summary": "Change Password",
        "operationId": "change_password_v1_security_password_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PasswordChange"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/v1/auth/recover": {
      "post": {
        "tags": [
          "Account recovery"
        ],
        "summary": "Recover",
        "operationId": "recover_v1_auth_recover_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/phonebuzz__mfa__Recover"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/security/activity": {
      "get": {
        "tags": [
          "Account security"
        ],
        "summary": "Activity",
        "operationId": "activity_v1_security_activity_get",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "before",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "format": "uuid"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Before"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 50,
              "minimum": 1,
              "default": 20,
              "title": "Limit"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/phonebuzz__security_activity__Page"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/security/sign-out-others": {
      "post": {
        "tags": [
          "Account security"
        ],
        "summary": "Sign Out Others",
        "operationId": "sign_out_others_v1_security_sign_out_others_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/phonebuzz__mfa__Review"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/v1/staff-invitations": {
      "get": {
        "tags": [
          "Staff invitations"
        ],
        "summary": "Listing",
        "operationId": "listing_v1_staff_invitations_get",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 0,
              "default": 0,
              "title": "Offset"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 50,
              "minimum": 1,
              "default": 20,
              "title": "Limit"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/phonebuzz__invitations__Page"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Staff invitations"
        ],
        "summary": "Create",
        "operationId": "create_v1_staff_invitations_post",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/phonebuzz__invitations__Create"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/phonebuzz__invitations__Result"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/staff-invitations/{identity}/action": {
      "post": {
        "tags": [
          "Staff invitations"
        ],
        "summary": "Change",
        "operationId": "change_v1_staff_invitations__identity__action_post",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "identity",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Identity"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/phonebuzz__invitations__Change"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/phonebuzz__invitations__Result"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/auth/accept-invitation": {
      "post": {
        "tags": [
          "Staff invitations"
        ],
        "summary": "Accept",
        "operationId": "accept_v1_auth_accept_invitation_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Accept"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/assistant-feedback": {
      "post": {
        "tags": [
          "Assistant feedback"
        ],
        "summary": "Submit",
        "operationId": "submit_v1_assistant_feedback_post",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Submit"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "get": {
        "tags": [
          "Assistant feedback"
        ],
        "summary": "Listing",
        "operationId": "listing_v1_assistant_feedback_get",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "state",
            "in": "query",
            "required": false,
            "schema": {
              "enum": [
                "pending",
                "approved",
                "holdout",
                "rejected",
                "retired"
              ],
              "type": "string",
              "default": "pending",
              "title": "State"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 10000,
              "minimum": 0,
              "default": 0,
              "title": "Offset"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/assistant-feedback/{identity}/review": {
      "post": {
        "tags": [
          "Assistant feedback"
        ],
        "summary": "Review",
        "operationId": "review_v1_assistant_feedback__identity__review_post",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "identity",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Identity"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/phonebuzz__assistant_feedback__Review"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/knowledge": {
      "get": {
        "tags": [
          "Knowledge library"
        ],
        "summary": "Listing",
        "operationId": "listing_v1_knowledge_get",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 120,
              "default": "",
              "title": "Q"
            }
          },
          {
            "name": "category",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "enum": [
                    "grading",
                    "warranty",
                    "trading",
                    "other"
                  ],
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Category"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 10000,
              "minimum": 0,
              "default": 0,
              "title": "Offset"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Knowledge library"
        ],
        "summary": "Create",
        "operationId": "create_v1_knowledge_post",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Draft"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/knowledge/revisions/{identity}": {
      "get": {
        "tags": [
          "Knowledge library"
        ],
        "summary": "Source",
        "operationId": "source_v1_knowledge_revisions__identity__get",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "identity",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Identity"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/knowledge/manage": {
      "get": {
        "tags": [
          "Knowledge library"
        ],
        "summary": "Management",
        "operationId": "management_v1_knowledge_manage_get",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 10000,
              "minimum": 0,
              "default": 0,
              "title": "Offset"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/knowledge/manage/{identity}": {
      "get": {
        "tags": [
          "Knowledge library"
        ],
        "summary": "Management Detail",
        "operationId": "management_detail_v1_knowledge_manage__identity__get",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "identity",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Identity"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 10000,
              "minimum": 0,
              "default": 0,
              "title": "Offset"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/knowledge/{identity}": {
      "patch": {
        "tags": [
          "Knowledge library"
        ],
        "summary": "Edit",
        "operationId": "edit_v1_knowledge__identity__patch",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "identity",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Identity"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/phonebuzz__knowledge__Edit"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/knowledge/{identity}/action": {
      "post": {
        "tags": [
          "Knowledge library"
        ],
        "summary": "Action",
        "operationId": "action_v1_knowledge__identity__action_post",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "identity",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Identity"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/phonebuzz__knowledge__Action"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/notifications": {
      "get": {
        "tags": [
          "Staff notifications"
        ],
        "summary": "Listing",
        "operationId": "listing_v1_notifications_get",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "state",
            "in": "query",
            "required": false,
            "schema": {
              "enum": [
                "all",
                "unread"
              ],
              "type": "string",
              "default": "all",
              "title": "State"
            }
          },
          {
            "name": "kind",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "enum": [
                    "inbox",
                    "followups",
                    "quotations",
                    "orders"
                  ],
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Kind"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 10000,
              "minimum": 0,
              "default": 0,
              "title": "Offset"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/notifications/{kind}/{identity}": {
      "get": {
        "tags": [
          "Staff notifications"
        ],
        "summary": "Source",
        "operationId": "source_v1_notifications__kind___identity__get",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "kind",
            "in": "path",
            "required": true,
            "schema": {
              "enum": [
                "inbox",
                "followups",
                "quotations",
                "orders"
              ],
              "type": "string",
              "title": "Kind"
            }
          },
          {
            "name": "identity",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Identity"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/notifications/{kind}/{identity}/read": {
      "post": {
        "tags": [
          "Staff notifications"
        ],
        "summary": "Mark",
        "operationId": "mark_v1_notifications__kind___identity__read_post",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "kind",
            "in": "path",
            "required": true,
            "schema": {
              "enum": [
                "inbox",
                "followups",
                "quotations",
                "orders"
              ],
              "type": "string",
              "title": "Kind"
            }
          },
          {
            "name": "identity",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Identity"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReadState"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/notifications/{kind}/{identity}/record": {
      "get": {
        "tags": [
          "Staff notifications"
        ],
        "summary": "Record",
        "operationId": "record_v1_notifications__kind___identity__record_get",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "kind",
            "in": "path",
            "required": true,
            "schema": {
              "enum": [
                "inbox",
                "followups",
                "quotations",
                "orders"
              ],
              "type": "string",
              "title": "Kind"
            }
          },
          {
            "name": "identity",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Identity"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/push": {
      "get": {
        "tags": [
          "Mobile push"
        ],
        "summary": "Status",
        "operationId": "status_v1_push_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/v1/push/devices": {
      "post": {
        "tags": [
          "Mobile push"
        ],
        "summary": "Register",
        "operationId": "register_v1_push_devices_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Registration"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/v1/push/devices/{identity}/disable": {
      "post": {
        "tags": [
          "Mobile push"
        ],
        "summary": "Disable",
        "operationId": "disable_v1_push_devices__identity__disable_post",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "identity",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Identity"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/push/deliveries/{identity}": {
      "get": {
        "tags": [
          "Mobile push"
        ],
        "summary": "Resolve",
        "operationId": "resolve_v1_push_deliveries__identity__get",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "identity",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Identity"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/system-health/incidents/{incident_id}/acknowledge": {
      "post": {
        "tags": [
          "System health"
        ],
        "summary": "Acknowledge",
        "operationId": "acknowledge_v1_system_health_incidents__incident_id__acknowledge_post",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "incident_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Incident Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Acknowledgement"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Incident"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/system-health": {
      "get": {
        "tags": [
          "System health"
        ],
        "summary": "Overview",
        "operationId": "overview_v1_system_health_get",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "incident_offset",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 300,
              "minimum": 0,
              "default": 0,
              "title": "Incident Offset"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/phonebuzz__system_health__Snapshot"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/inbox/{identity}/outbound": {
      "get": {
        "tags": [
          "Outbound email review"
        ],
        "summary": "Detail",
        "operationId": "detail_v1_inbox__identity__outbound_get",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "identity",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Identity"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Review-Output"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Outbound email review"
        ],
        "summary": "Command",
        "operationId": "command_v1_inbox__identity__outbound_post",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "identity",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Identity"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/phonebuzz__outbound_email__Command"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Review-Output"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/inbox/{identity}/outbound/history": {
      "get": {
        "tags": [
          "Outbound email review"
        ],
        "summary": "History",
        "operationId": "history_v1_inbox__identity__outbound_history_get",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "identity",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Identity"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 0,
              "default": 0,
              "title": "Offset"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 50,
              "minimum": 1,
              "default": 10,
              "title": "Limit"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/phonebuzz__outbound_email__HistoryPage"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/inbox/{identity}/outbound/simulations": {
      "get": {
        "tags": [
          "Email delivery simulation"
        ],
        "summary": "Ledger",
        "operationId": "ledger_v1_inbox__identity__outbound_simulations_get",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "identity",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Identity"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 0,
              "default": 0,
              "title": "Offset"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 50,
              "minimum": 1,
              "default": 10,
              "title": "Limit"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/phonebuzz__email_simulation__Ledger"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Email delivery simulation"
        ],
        "summary": "Command",
        "operationId": "command_v1_inbox__identity__outbound_simulations_post",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "identity",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Identity"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "oneOf": [
                  {
                    "$ref": "#/components/schemas/Start"
                  },
                  {
                    "$ref": "#/components/schemas/phonebuzz__email_simulation__Recover"
                  },
                  {
                    "$ref": "#/components/schemas/Resolve"
                  }
                ],
                "discriminator": {
                  "propertyName": "action",
                  "mapping": {
                    "start": "#/components/schemas/Start",
                    "recover": "#/components/schemas/phonebuzz__email_simulation__Recover",
                    "resolve": "#/components/schemas/Resolve"
                  }
                },
                "title": "Body"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Simulation"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/inbox/{identity}/outbound/attempts": {
      "get": {
        "tags": [
          "Outbound attempt history"
        ],
        "summary": "History",
        "operationId": "history_v1_inbox__identity__outbound_attempts_get",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "identity",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Identity"
            }
          },
          {
            "name": "attempt_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "format": "uuid"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Attempt Id"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 0,
              "default": 0,
              "title": "Offset"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 50,
              "minimum": 1,
              "default": 10,
              "title": "Limit"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/phonebuzz__email_attempts__Ledger"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Outbound attempt history"
        ],
        "summary": "Review",
        "operationId": "review_v1_inbox__identity__outbound_attempts_post",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "identity",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Identity"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/phonebuzz__email_attempts__Review"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Attempt"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/inbox/{identity}/outbound/dispatch": {
      "get": {
        "tags": [
          "Reviewed email dispatch"
        ],
        "summary": "Readiness",
        "operationId": "readiness_v1_inbox__identity__outbound_dispatch_get",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "identity",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Identity"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Readiness"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Reviewed email dispatch"
        ],
        "summary": "Dispatch",
        "operationId": "dispatch_v1_inbox__identity__outbound_dispatch_post",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "identity",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Identity"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/phonebuzz__email_dispatch__Command"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Attempt"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/inbox/{identity}/outbound/investigations": {
      "get": {
        "tags": [
          "Delivery investigations"
        ],
        "summary": "History",
        "operationId": "history_v1_inbox__identity__outbound_investigations_get",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "identity",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Identity"
            }
          },
          {
            "name": "attempt_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Attempt Id"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 0,
              "default": 0,
              "title": "Offset"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 50,
              "minimum": 1,
              "default": 10,
              "title": "Limit"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/phonebuzz__delivery_investigations__Ledger"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Delivery investigations"
        ],
        "summary": "Record",
        "operationId": "record_v1_inbox__identity__outbound_investigations_post",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "identity",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Identity"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/phonebuzz__delivery_investigations__Command"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/phonebuzz__delivery_investigations__Ledger"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/email-attention/owners": {
      "get": {
        "tags": [
          "Email attention"
        ],
        "summary": "Owners",
        "operationId": "owners_v1_email_attention_owners_get",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 120,
              "default": "",
              "title": "Q"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Owner"
                  },
                  "title": "Response Owners V1 Email Attention Owners Get"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/email-attention": {
      "get": {
        "tags": [
          "Email attention"
        ],
        "summary": "Attention",
        "operationId": "attention_v1_email_attention_get",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "kind",
            "in": "query",
            "required": false,
            "schema": {
              "enum": [
                "all",
                "reports",
                "investigating",
                "uncertain",
                "expired",
                "overdue"
              ],
              "type": "string",
              "default": "all",
              "title": "Kind"
            }
          },
          {
            "name": "assignment",
            "in": "query",
            "required": false,
            "schema": {
              "enum": [
                "all",
                "mine",
                "unassigned"
              ],
              "type": "string",
              "default": "all",
              "title": "Assignment"
            }
          },
          {
            "name": "owner",
            "in": "query",
            "required": false,
            "schema": {
              "enum": [
                "all",
                "mine",
                "unassigned",
                "unavailable"
              ],
              "type": "string",
              "default": "all",
              "title": "Owner"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 0,
              "default": 0,
              "title": "Offset"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 50,
              "minimum": 1,
              "default": 25,
              "title": "Limit"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/phonebuzz__email_attention__Page"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/inbox/{identity}/outbound/case-plan": {
      "get": {
        "tags": [
          "Email case responsibility"
        ],
        "summary": "History",
        "operationId": "history_v1_inbox__identity__outbound_case_plan_get",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "identity",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Identity"
            }
          },
          {
            "name": "attempt_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Attempt Id"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 0,
              "default": 0,
              "title": "Offset"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 50,
              "minimum": 1,
              "default": 10,
              "title": "Limit"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/phonebuzz__email_case_plans__Ledger"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Email case responsibility"
        ],
        "summary": "Record",
        "operationId": "record_v1_inbox__identity__outbound_case_plan_post",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "identity",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Identity"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/phonebuzz__email_case_plans__Command"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/phonebuzz__email_case_plans__Ledger"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Accept": {
        "properties": {
          "email": {
            "type": "string",
            "format": "email",
            "title": "Email"
          },
          "token": {
            "type": "string",
            "format": "password",
            "title": "Token",
            "writeOnly": true
          },
          "password": {
            "type": "string",
            "format": "password",
            "title": "Password",
            "writeOnly": true
          },
          "reviewed": {
            "type": "boolean",
            "title": "Reviewed"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "email",
          "token",
          "password",
          "reviewed"
        ],
        "title": "Accept"
      },
      "Acceptance": {
        "properties": {
          "quotation_id": {
            "type": "string",
            "format": "uuid",
            "title": "Quotation Id"
          },
          "quotation_version": {
            "type": "integer",
            "minimum": 1.0,
            "title": "Quotation Version"
          },
          "accepted_by": {
            "type": "string",
            "maxLength": 160,
            "minLength": 2,
            "title": "Accepted By"
          },
          "channel": {
            "type": "string",
            "enum": [
              "email",
              "whatsapp",
              "phone",
              "signed_document",
              "in_person"
            ],
            "title": "Channel"
          },
          "reference": {
            "type": "string",
            "maxLength": 300,
            "minLength": 3,
            "title": "Reference"
          },
          "evidence": {
            "type": "string",
            "maxLength": 3000,
            "minLength": 20,
            "title": "Evidence"
          },
          "accepted_at": {
            "type": "string",
            "format": "date-time",
            "title": "Accepted At"
          },
          "reviewed": {
            "type": "boolean",
            "title": "Reviewed"
          },
          "request_key": {
            "type": "string",
            "format": "uuid",
            "title": "Request Key"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "quotation_id",
          "quotation_version",
          "accepted_by",
          "channel",
          "reference",
          "evidence",
          "accepted_at",
          "reviewed",
          "request_key"
        ],
        "title": "Acceptance"
      },
      "Account": {
        "properties": {
          "id": {
            "type": "string",
            "title": "Id"
          },
          "name": {
            "type": "string",
            "title": "Name"
          },
          "email": {
            "type": "string",
            "title": "Email"
          },
          "role": {
            "type": "string",
            "enum": [
              "admin",
              "trader",
              "viewer"
            ],
            "title": "Role"
          },
          "active": {
            "type": "boolean",
            "title": "Active"
          },
          "created_at": {
            "type": "string",
            "title": "Created At"
          },
          "version": {
            "type": "integer",
            "title": "Version"
          },
          "active_sessions": {
            "type": "integer",
            "title": "Active Sessions"
          }
        },
        "type": "object",
        "required": [
          "id",
          "name",
          "email",
          "role",
          "active",
          "created_at",
          "version",
          "active_sessions"
        ],
        "title": "Account"
      },
      "Acknowledgement": {
        "properties": {
          "note": {
            "type": "string",
            "maxLength": 1000,
            "minLength": 10,
            "title": "Note"
          },
          "reviewed": {
            "type": "boolean",
            "title": "Reviewed"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "note",
          "reviewed"
        ],
        "title": "Acknowledgement"
      },
      "Answer": {
        "properties": {
          "as_of": {
            "type": "string",
            "title": "As Of"
          },
          "lookup": {
            "$ref": "#/components/schemas/Lookup-Output"
          },
          "summary": {
            "type": "string",
            "title": "Summary"
          },
          "total": {
            "type": "integer",
            "title": "Total"
          },
          "sources": {
            "items": {
              "$ref": "#/components/schemas/Source"
            },
            "type": "array",
            "title": "Sources"
          },
          "operations": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/OperationsOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "caveat": {
            "type": "string",
            "title": "Caveat"
          }
        },
        "type": "object",
        "required": [
          "as_of",
          "lookup",
          "summary",
          "total",
          "sources",
          "caveat"
        ],
        "title": "Answer"
      },
      "ArchiveIn": {
        "properties": {
          "version": {
            "type": "integer",
            "minimum": 1.0,
            "title": "Version"
          },
          "archived": {
            "type": "boolean",
            "title": "Archived"
          },
          "reason": {
            "type": "string",
            "maxLength": 300,
            "minLength": 4,
            "title": "Reason"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "version",
          "archived",
          "reason"
        ],
        "title": "ArchiveIn"
      },
      "AttachmentOut": {
        "properties": {
          "id": {
            "type": "string",
            "title": "Id"
          },
          "filename": {
            "type": "string",
            "title": "Filename"
          },
          "media_type": {
            "type": "string",
            "title": "Media Type"
          },
          "size": {
            "type": "integer",
            "title": "Size"
          },
          "caption": {
            "type": "string",
            "title": "Caption"
          },
          "uploader_name": {
            "type": "string",
            "title": "Uploader Name"
          },
          "created_at": {
            "type": "string",
            "title": "Created At"
          },
          "archived": {
            "type": "boolean",
            "title": "Archived"
          },
          "version": {
            "type": "integer",
            "title": "Version"
          }
        },
        "type": "object",
        "required": [
          "id",
          "filename",
          "media_type",
          "size",
          "caption",
          "uploader_name",
          "created_at",
          "archived",
          "version"
        ],
        "title": "AttachmentOut"
      },
      "AttachmentPage": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/AttachmentOut"
            },
            "type": "array",
            "title": "Items"
          },
          "total": {
            "type": "integer",
            "title": "Total"
          }
        },
        "type": "object",
        "required": [
          "items",
          "total"
        ],
        "title": "AttachmentPage"
      },
      "AttachmentSource": {
        "properties": {
          "id": {
            "type": "string",
            "title": "Id"
          },
          "filename": {
            "type": "string",
            "title": "Filename"
          },
          "sha256": {
            "type": "string",
            "title": "Sha256"
          },
          "source_entry_id": {
            "type": "string",
            "title": "Source Entry Id"
          }
        },
        "type": "object",
        "required": [
          "id",
          "filename",
          "sha256",
          "source_entry_id"
        ],
        "title": "AttachmentSource"
      },
      "Attempt": {
        "properties": {
          "id": {
            "type": "string",
            "title": "Id"
          },
          "approval_id": {
            "type": "string",
            "title": "Approval Id"
          },
          "approved_version": {
            "type": "integer",
            "title": "Approved Version"
          },
          "approver_name": {
            "type": "string",
            "title": "Approver Name"
          },
          "snapshot": {
            "$ref": "#/components/schemas/phonebuzz__outbound_email__Snapshot"
          },
          "state": {
            "type": "string",
            "enum": [
              "claimed",
              "handing_off",
              "completed",
              "uncertain",
              "blocked",
              "reviewed"
            ],
            "title": "State"
          },
          "outcome": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "accepted",
                  "rejected",
                  "not_submitted",
                  "uncertain"
                ]
              },
              {
                "type": "null"
              }
            ],
            "title": "Outcome"
          },
          "context_changed": {
            "type": "boolean",
            "title": "Context Changed"
          },
          "version": {
            "type": "integer",
            "title": "Version"
          },
          "claim_until": {
            "type": "integer",
            "title": "Claim Until"
          },
          "can_recover": {
            "type": "boolean",
            "title": "Can Recover"
          },
          "can_review": {
            "type": "boolean",
            "title": "Can Review"
          },
          "delivery_verified": {
            "type": "boolean",
            "const": false,
            "title": "Delivery Verified",
            "default": false
          },
          "created_at": {
            "type": "string",
            "title": "Created At"
          },
          "updated_at": {
            "type": "string",
            "title": "Updated At"
          },
          "events": {
            "items": {
              "$ref": "#/components/schemas/phonebuzz__email_attempts__Event"
            },
            "type": "array",
            "title": "Events"
          },
          "delivery_reports": {
            "$ref": "#/components/schemas/Evidence"
          }
        },
        "type": "object",
        "required": [
          "id",
          "approval_id",
          "approved_version",
          "approver_name",
          "snapshot",
          "state",
          "outcome",
          "context_changed",
          "version",
          "claim_until",
          "can_recover",
          "can_review",
          "created_at",
          "updated_at",
          "events",
          "delivery_reports"
        ],
        "title": "Attempt"
      },
      "AuditOut": {
        "properties": {
          "id": {
            "type": "string",
            "title": "Id"
          },
          "actor_name": {
            "type": "string",
            "title": "Actor Name"
          },
          "action": {
            "type": "string",
            "title": "Action"
          },
          "entity_id": {
            "type": "string",
            "title": "Entity Id"
          },
          "summary": {
            "type": "string",
            "title": "Summary"
          },
          "created_at": {
            "type": "string",
            "title": "Created At"
          }
        },
        "type": "object",
        "required": [
          "id",
          "actor_name",
          "action",
          "entity_id",
          "summary",
          "created_at"
        ],
        "title": "AuditOut"
      },
      "Availability": {
        "properties": {
          "version": {
            "type": "integer",
            "minimum": 1.0,
            "title": "Version"
          },
          "active": {
            "type": "boolean",
            "title": "Active"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "version",
          "active"
        ],
        "title": "Availability"
      },
      "AvailabilityIn": {
        "properties": {
          "active": {
            "type": "boolean",
            "title": "Active"
          },
          "version": {
            "type": "integer",
            "minimum": 1.0,
            "title": "Version"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "active",
          "version"
        ],
        "title": "AvailabilityIn"
      },
      "BatchDetail": {
        "properties": {
          "id": {
            "type": "string",
            "title": "Id"
          },
          "filename": {
            "type": "string",
            "title": "Filename"
          },
          "kind": {
            "type": "string",
            "enum": [
              "stock",
              "offer",
              "wanted"
            ],
            "title": "Kind"
          },
          "company_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Company Id"
          },
          "company_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Company Name"
          },
          "created_by": {
            "type": "string",
            "title": "Created By"
          },
          "creator_name": {
            "type": "string",
            "title": "Creator Name"
          },
          "created_at": {
            "type": "string",
            "title": "Created At"
          },
          "status": {
            "type": "string",
            "title": "Status"
          },
          "version": {
            "type": "integer",
            "title": "Version"
          },
          "expires_at": {
            "type": "integer",
            "title": "Expires At"
          },
          "committed_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Committed At"
          },
          "total": {
            "type": "integer",
            "title": "Total"
          },
          "invalid": {
            "type": "integer",
            "title": "Invalid"
          },
          "warnings": {
            "type": "integer",
            "title": "Warnings"
          },
          "rows": {
            "items": {
              "$ref": "#/components/schemas/ReviewRow"
            },
            "type": "array",
            "title": "Rows"
          },
          "record_ids": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Record Ids"
          }
        },
        "type": "object",
        "required": [
          "id",
          "filename",
          "kind",
          "company_id",
          "company_name",
          "created_by",
          "creator_name",
          "created_at",
          "status",
          "version",
          "expires_at",
          "committed_at",
          "total",
          "invalid",
          "warnings",
          "rows",
          "record_ids"
        ],
        "title": "BatchDetail"
      },
      "BatchPage": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/BatchSummary"
            },
            "type": "array",
            "title": "Items"
          },
          "total": {
            "type": "integer",
            "title": "Total"
          }
        },
        "type": "object",
        "required": [
          "items",
          "total"
        ],
        "title": "BatchPage"
      },
      "BatchSummary": {
        "properties": {
          "id": {
            "type": "string",
            "title": "Id"
          },
          "filename": {
            "type": "string",
            "title": "Filename"
          },
          "kind": {
            "type": "string",
            "enum": [
              "stock",
              "offer",
              "wanted"
            ],
            "title": "Kind"
          },
          "company_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Company Id"
          },
          "company_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Company Name"
          },
          "created_by": {
            "type": "string",
            "title": "Created By"
          },
          "creator_name": {
            "type": "string",
            "title": "Creator Name"
          },
          "created_at": {
            "type": "string",
            "title": "Created At"
          },
          "status": {
            "type": "string",
            "title": "Status"
          },
          "version": {
            "type": "integer",
            "title": "Version"
          },
          "expires_at": {
            "type": "integer",
            "title": "Expires At"
          },
          "committed_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Committed At"
          },
          "total": {
            "type": "integer",
            "title": "Total"
          },
          "invalid": {
            "type": "integer",
            "title": "Invalid"
          },
          "warnings": {
            "type": "integer",
            "title": "Warnings"
          }
        },
        "type": "object",
        "required": [
          "id",
          "filename",
          "kind",
          "company_id",
          "company_name",
          "created_by",
          "creator_name",
          "created_at",
          "status",
          "version",
          "expires_at",
          "committed_at",
          "total",
          "invalid",
          "warnings"
        ],
        "title": "BatchSummary"
      },
      "Cancel": {
        "properties": {
          "version": {
            "type": "integer",
            "minimum": 1.0,
            "title": "Version"
          },
          "reason": {
            "type": "string",
            "maxLength": 1000,
            "minLength": 3,
            "title": "Reason"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "version",
          "reason"
        ],
        "title": "Cancel"
      },
      "Candidate": {
        "properties": {
          "supply": {
            "$ref": "#/components/schemas/RecordOut"
          },
          "classification": {
            "type": "string",
            "enum": [
              "exact",
              "near"
            ],
            "title": "Classification"
          },
          "reasons": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Reasons"
          },
          "differences": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Differences"
          },
          "budget_headroom": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"
              },
              {
                "type": "null"
              }
            ],
            "title": "Budget Headroom"
          }
        },
        "type": "object",
        "required": [
          "supply",
          "classification",
          "reasons",
          "differences",
          "budget_headroom"
        ],
        "title": "Candidate"
      },
      "CommitIn": {
        "properties": {
          "version": {
            "type": "integer",
            "minimum": 1.0,
            "title": "Version"
          },
          "reviewed": {
            "type": "boolean",
            "title": "Reviewed"
          },
          "acknowledge_warnings": {
            "type": "boolean",
            "title": "Acknowledge Warnings",
            "default": false
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "version",
          "reviewed"
        ],
        "title": "CommitIn"
      },
      "CompanyIn": {
        "properties": {
          "name": {
            "type": "string",
            "maxLength": 160,
            "minLength": 2,
            "title": "Name"
          },
          "kind": {
            "type": "string",
            "enum": [
              "customer",
              "supplier",
              "both"
            ],
            "title": "Kind"
          },
          "contact_name": {
            "type": "string",
            "maxLength": 120,
            "title": "Contact Name",
            "default": ""
          },
          "email": {
            "type": "string",
            "maxLength": 254,
            "title": "Email",
            "default": ""
          },
          "phone": {
            "type": "string",
            "maxLength": 40,
            "title": "Phone",
            "default": ""
          },
          "country": {
            "type": "string",
            "maxLength": 80,
            "title": "Country",
            "default": ""
          },
          "categories": {
            "type": "string",
            "maxLength": 300,
            "title": "Categories",
            "default": ""
          },
          "notes": {
            "type": "string",
            "maxLength": 4000,
            "title": "Notes",
            "default": ""
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "name",
          "kind"
        ],
        "title": "CompanyIn"
      },
      "CompanyOut": {
        "properties": {
          "name": {
            "type": "string",
            "maxLength": 160,
            "minLength": 2,
            "title": "Name"
          },
          "kind": {
            "type": "string",
            "enum": [
              "customer",
              "supplier",
              "both"
            ],
            "title": "Kind"
          },
          "contact_name": {
            "type": "string",
            "maxLength": 120,
            "title": "Contact Name",
            "default": ""
          },
          "email": {
            "type": "string",
            "maxLength": 254,
            "title": "Email",
            "default": ""
          },
          "phone": {
            "type": "string",
            "maxLength": 40,
            "title": "Phone",
            "default": ""
          },
          "country": {
            "type": "string",
            "maxLength": 80,
            "title": "Country",
            "default": ""
          },
          "categories": {
            "type": "string",
            "maxLength": 300,
            "title": "Categories",
            "default": ""
          },
          "notes": {
            "type": "string",
            "maxLength": 4000,
            "title": "Notes",
            "default": ""
          },
          "id": {
            "type": "string",
            "title": "Id"
          },
          "status": {
            "type": "string",
            "enum": [
              "active",
              "archived"
            ],
            "title": "Status"
          },
          "created_at": {
            "type": "string",
            "title": "Created At"
          },
          "updated_at": {
            "type": "string",
            "title": "Updated At"
          },
          "version": {
            "type": "integer",
            "title": "Version"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "name",
          "kind",
          "id",
          "status",
          "created_at",
          "updated_at",
          "version"
        ],
        "title": "CompanyOut"
      },
      "CompanyPage": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/CompanyOut"
            },
            "type": "array",
            "title": "Items"
          },
          "total": {
            "type": "integer",
            "title": "Total"
          }
        },
        "type": "object",
        "required": [
          "items",
          "total"
        ],
        "title": "CompanyPage"
      },
      "CompanyUpdate": {
        "properties": {
          "name": {
            "type": "string",
            "maxLength": 160,
            "minLength": 2,
            "title": "Name"
          },
          "kind": {
            "type": "string",
            "enum": [
              "customer",
              "supplier",
              "both"
            ],
            "title": "Kind"
          },
          "contact_name": {
            "type": "string",
            "maxLength": 120,
            "title": "Contact Name",
            "default": ""
          },
          "email": {
            "type": "string",
            "maxLength": 254,
            "title": "Email",
            "default": ""
          },
          "phone": {
            "type": "string",
            "maxLength": 40,
            "title": "Phone",
            "default": ""
          },
          "country": {
            "type": "string",
            "maxLength": 80,
            "title": "Country",
            "default": ""
          },
          "categories": {
            "type": "string",
            "maxLength": 300,
            "title": "Categories",
            "default": ""
          },
          "notes": {
            "type": "string",
            "maxLength": 4000,
            "title": "Notes",
            "default": ""
          },
          "status": {
            "type": "string",
            "enum": [
              "active",
              "archived"
            ],
            "title": "Status",
            "default": "active"
          },
          "version": {
            "type": "integer",
            "minimum": 1.0,
            "title": "Version"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "name",
          "kind",
          "version"
        ],
        "title": "CompanyUpdate"
      },
      "Correction": {
        "properties": {
          "version": {
            "type": "integer",
            "minimum": 1.0,
            "title": "Version"
          },
          "reason": {
            "type": "string",
            "maxLength": 300,
            "minLength": 4,
            "title": "Reason"
          },
          "imei": {
            "type": "string",
            "title": "Imei"
          },
          "secondary_imei": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Secondary Imei"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "version",
          "reason",
          "imei"
        ],
        "title": "Correction"
      },
      "DashboardOut": {
        "properties": {
          "customers": {
            "type": "integer",
            "title": "Customers"
          },
          "suppliers": {
            "type": "integer",
            "title": "Suppliers"
          },
          "companies": {
            "type": "integer",
            "title": "Companies"
          },
          "staff": {
            "type": "integer",
            "title": "Staff"
          },
          "recent_activity": {
            "items": {
              "$ref": "#/components/schemas/AuditOut"
            },
            "type": "array",
            "title": "Recent Activity"
          }
        },
        "type": "object",
        "required": [
          "customers",
          "suppliers",
          "companies",
          "staff",
          "recent_activity"
        ],
        "title": "DashboardOut"
      },
      "Delivery": {
        "properties": {
          "version": {
            "type": "integer",
            "minimum": 1.0,
            "title": "Version"
          },
          "reviewed": {
            "type": "boolean",
            "title": "Reviewed"
          },
          "note": {
            "type": "string",
            "maxLength": 2000,
            "minLength": 10,
            "title": "Note"
          },
          "occurred_at": {
            "type": "string",
            "format": "date-time",
            "title": "Occurred At"
          },
          "received_by": {
            "type": "string",
            "maxLength": 160,
            "minLength": 2,
            "title": "Received By"
          },
          "reference": {
            "type": "string",
            "maxLength": 300,
            "minLength": 3,
            "title": "Reference"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "version",
          "reviewed",
          "note",
          "occurred_at",
          "received_by",
          "reference"
        ],
        "title": "Delivery"
      },
      "Destination": {
        "properties": {
          "version": {
            "type": "integer",
            "minimum": 1.0,
            "title": "Version"
          },
          "reason": {
            "type": "string",
            "maxLength": 300,
            "minLength": 4,
            "title": "Reason"
          },
          "destination_id": {
            "type": "string",
            "format": "uuid",
            "title": "Destination Id"
          },
          "destination_version": {
            "type": "integer",
            "minimum": 1.0,
            "title": "Destination Version"
          },
          "physically_confirmed": {
            "type": "boolean",
            "title": "Physically Confirmed"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "version",
          "reason",
          "destination_id",
          "destination_version",
          "physically_confirmed"
        ],
        "title": "Destination"
      },
      "DeviceDetail": {
        "properties": {
          "device": {
            "$ref": "#/components/schemas/DeviceOut"
          },
          "stock": {
            "$ref": "#/components/schemas/RecordOut"
          },
          "allocation": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ReservationOut"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "type": "object",
        "required": [
          "device",
          "stock",
          "allocation"
        ],
        "title": "DeviceDetail"
      },
      "DeviceIn": {
        "properties": {
          "stock_id": {
            "type": "string",
            "maxLength": 36,
            "minLength": 1,
            "title": "Stock Id"
          },
          "stock_version": {
            "type": "integer",
            "minimum": 1.0,
            "title": "Stock Version"
          },
          "imei": {
            "type": "string",
            "title": "Imei"
          },
          "secondary_imei": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Secondary Imei"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "stock_id",
          "stock_version",
          "imei"
        ],
        "title": "DeviceIn"
      },
      "DeviceOut": {
        "properties": {
          "customer_order_reference": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Customer Order Reference"
          },
          "quarantined": {
            "type": "boolean",
            "title": "Quarantined"
          },
          "location_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Location Id"
          },
          "location_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Location Name"
          },
          "id": {
            "type": "string",
            "title": "Id"
          },
          "stock_id": {
            "type": "string",
            "title": "Stock Id"
          },
          "imei": {
            "type": "string",
            "title": "Imei"
          },
          "secondary_imei": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Secondary Imei"
          },
          "status": {
            "type": "string",
            "enum": [
              "available",
              "reserved",
              "allocated",
              "retired",
              "quarantined",
              "in_transit"
            ],
            "title": "Status"
          },
          "reservation_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Reservation Id"
          },
          "retirement_reason": {
            "type": "string",
            "title": "Retirement Reason"
          },
          "version": {
            "type": "integer",
            "title": "Version"
          },
          "created_at": {
            "type": "string",
            "title": "Created At"
          }
        },
        "type": "object",
        "required": [
          "quarantined",
          "location_id",
          "location_name",
          "id",
          "stock_id",
          "imei",
          "secondary_imei",
          "status",
          "reservation_id",
          "retirement_reason",
          "version",
          "created_at"
        ],
        "title": "DeviceOut"
      },
      "DevicePage": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/DeviceOut"
            },
            "type": "array",
            "title": "Items"
          },
          "total": {
            "type": "integer",
            "title": "Total"
          },
          "counts": {
            "$ref": "#/components/schemas/InventoryCounts"
          }
        },
        "type": "object",
        "required": [
          "items",
          "total",
          "counts"
        ],
        "title": "DevicePage"
      },
      "Dispatch": {
        "properties": {
          "version": {
            "type": "integer",
            "minimum": 1.0,
            "title": "Version"
          },
          "reviewed": {
            "type": "boolean",
            "title": "Reviewed"
          },
          "note": {
            "type": "string",
            "maxLength": 2000,
            "minLength": 10,
            "title": "Note"
          },
          "occurred_at": {
            "type": "string",
            "format": "date-time",
            "title": "Occurred At"
          },
          "carrier": {
            "type": "string",
            "maxLength": 160,
            "minLength": 2,
            "title": "Carrier"
          },
          "reference": {
            "type": "string",
            "maxLength": 300,
            "minLength": 3,
            "title": "Reference"
          },
          "recipient": {
            "type": "string",
            "maxLength": 160,
            "minLength": 2,
            "title": "Recipient"
          },
          "address": {
            "type": "string",
            "maxLength": 1000,
            "minLength": 10,
            "title": "Address"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "version",
          "reviewed",
          "note",
          "occurred_at",
          "carrier",
          "reference",
          "recipient",
          "address"
        ],
        "title": "Dispatch"
      },
      "Draft": {
        "properties": {
          "title": {
            "type": "string",
            "maxLength": 160,
            "minLength": 3,
            "title": "Title"
          },
          "category": {
            "type": "string",
            "enum": [
              "grading",
              "warranty",
              "trading",
              "other"
            ],
            "title": "Category"
          },
          "body": {
            "type": "string",
            "maxLength": 8000,
            "minLength": 10,
            "title": "Body"
          },
          "source_reference": {
            "type": "string",
            "maxLength": 500,
            "minLength": 5,
            "title": "Source Reference"
          },
          "valid_from": {
            "type": "string",
            "format": "date",
            "title": "Valid From"
          },
          "valid_through": {
            "type": "string",
            "format": "date",
            "title": "Valid Through"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "title",
          "category",
          "body",
          "source_reference",
          "valid_from",
          "valid_through"
        ],
        "title": "Draft"
      },
      "DraftIn": {
        "properties": {
          "version": {
            "type": "integer",
            "minimum": 1.0,
            "title": "Version"
          },
          "body": {
            "type": "string",
            "maxLength": 16000,
            "title": "Body"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "version",
          "body"
        ],
        "title": "DraftIn"
      },
      "EmailSource": {
        "properties": {
          "channel": {
            "type": "string",
            "enum": [
              "email",
              "whatsapp"
            ],
            "title": "Channel",
            "default": "email"
          },
          "whatsapp_source": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/phonebuzz__whatsapp__SourceOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "attachment_source": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AttachmentSource"
              },
              {
                "type": "null"
              }
            ]
          },
          "conversation_id": {
            "type": "string",
            "title": "Conversation Id"
          },
          "entry_id": {
            "type": "string",
            "title": "Entry Id"
          },
          "line_number": {
            "type": "integer",
            "title": "Line Number"
          },
          "subject": {
            "type": "string",
            "title": "Subject"
          },
          "sender": {
            "type": "string",
            "title": "Sender"
          },
          "body": {
            "type": "string",
            "title": "Body"
          },
          "reviewer_name": {
            "type": "string",
            "title": "Reviewer Name"
          },
          "reviewed_at": {
            "type": "string",
            "title": "Reviewed At"
          },
          "reviewed_values": {
            "additionalProperties": true,
            "type": "object",
            "title": "Reviewed Values"
          }
        },
        "type": "object",
        "required": [
          "conversation_id",
          "entry_id",
          "line_number",
          "subject",
          "sender",
          "body",
          "reviewer_name",
          "reviewed_at",
          "reviewed_values"
        ],
        "title": "EmailSource"
      },
      "EntryIn": {
        "properties": {
          "version": {
            "type": "integer",
            "minimum": 1.0,
            "title": "Version"
          },
          "kind": {
            "type": "string",
            "enum": [
              "received",
              "note"
            ],
            "title": "Kind"
          },
          "body": {
            "type": "string",
            "maxLength": 16000,
            "minLength": 1,
            "title": "Body"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "version",
          "kind",
          "body"
        ],
        "title": "EntryIn"
      },
      "EntryOut": {
        "properties": {
          "whatsapp_source": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/phonebuzz__whatsapp__SourceOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "attachments": {
            "items": {
              "$ref": "#/components/schemas/FileOut"
            },
            "type": "array",
            "title": "Attachments"
          },
          "attachment_source": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AttachmentSource"
              },
              {
                "type": "null"
              }
            ]
          },
          "trading_links": {
            "items": {
              "$ref": "#/components/schemas/TradingLinkOut"
            },
            "type": "array",
            "title": "Trading Links"
          },
          "source": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/phonebuzz__mailbox_api__SourceOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "id": {
            "type": "string",
            "title": "Id"
          },
          "kind": {
            "type": "string",
            "enum": [
              "received",
              "note",
              "draft",
              "change"
            ],
            "title": "Kind"
          },
          "body": {
            "type": "string",
            "title": "Body"
          },
          "actor_name": {
            "type": "string",
            "title": "Actor Name"
          },
          "created_at": {
            "type": "string",
            "title": "Created At"
          }
        },
        "type": "object",
        "required": [
          "id",
          "kind",
          "body",
          "actor_name",
          "created_at"
        ],
        "title": "EntryOut"
      },
      "EntryPage": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/EntryOut"
            },
            "type": "array",
            "title": "Items"
          },
          "total": {
            "type": "integer",
            "title": "Total"
          }
        },
        "type": "object",
        "required": [
          "items",
          "total"
        ],
        "title": "EntryPage"
      },
      "EventDetail": {
        "properties": {
          "company_id": {
            "type": "string",
            "title": "Company Id"
          },
          "event": {
            "$ref": "#/components/schemas/phonebuzz__company_history__Event"
          },
          "customer_name": {
            "type": "string",
            "title": "Customer Name"
          },
          "quote_revision": {
            "type": "integer",
            "title": "Quote Revision"
          },
          "currency": {
            "type": "string",
            "title": "Currency"
          },
          "quoted_total": {
            "type": "string",
            "title": "Quoted Total"
          },
          "reason": {
            "type": "string",
            "title": "Reason"
          }
        },
        "type": "object",
        "required": [
          "company_id",
          "event",
          "customer_name",
          "quote_revision",
          "currency",
          "quoted_total",
          "reason"
        ],
        "title": "EventDetail"
      },
      "Evidence": {
        "properties": {
          "summary": {
            "type": "string",
            "enum": [
              "none",
              "failed",
              "delayed",
              "delivered",
              "relayed",
              "expanded",
              "conflicting"
            ],
            "title": "Summary"
          },
          "total": {
            "type": "integer",
            "title": "Total"
          },
          "items": {
            "items": {
              "$ref": "#/components/schemas/phonebuzz__delivery_reports__Report"
            },
            "type": "array",
            "title": "Items"
          },
          "verified": {
            "type": "boolean",
            "const": false,
            "title": "Verified",
            "default": false
          }
        },
        "type": "object",
        "required": [
          "summary",
          "total",
          "items"
        ],
        "title": "Evidence"
      },
      "FileDetail": {
        "properties": {
          "id": {
            "type": "string",
            "title": "Id"
          },
          "filename": {
            "type": "string",
            "title": "Filename"
          },
          "size": {
            "type": "integer",
            "title": "Size"
          },
          "sha256": {
            "type": "string",
            "title": "Sha256"
          },
          "media_type": {
            "type": "string",
            "title": "Media Type"
          },
          "state": {
            "type": "string",
            "enum": [
              "ready",
              "blocked"
            ],
            "title": "State"
          },
          "warning": {
            "type": "string",
            "title": "Warning"
          },
          "reviewed_entry_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Reviewed Entry Id"
          },
          "extracted_text": {
            "type": "string",
            "title": "Extracted Text"
          },
          "source_entry_id": {
            "type": "string",
            "title": "Source Entry Id"
          },
          "conversation_id": {
            "type": "string",
            "title": "Conversation Id"
          },
          "reviewed_by": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Reviewed By"
          },
          "reviewed_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Reviewed At"
          }
        },
        "type": "object",
        "required": [
          "id",
          "filename",
          "size",
          "sha256",
          "media_type",
          "state",
          "warning",
          "reviewed_entry_id",
          "extracted_text",
          "source_entry_id",
          "conversation_id",
          "reviewed_by",
          "reviewed_at"
        ],
        "title": "FileDetail"
      },
      "FileOut": {
        "properties": {
          "id": {
            "type": "string",
            "title": "Id"
          },
          "filename": {
            "type": "string",
            "title": "Filename"
          },
          "size": {
            "type": "integer",
            "title": "Size"
          },
          "sha256": {
            "type": "string",
            "title": "Sha256"
          },
          "media_type": {
            "type": "string",
            "title": "Media Type"
          },
          "state": {
            "type": "string",
            "enum": [
              "ready",
              "blocked"
            ],
            "title": "State"
          },
          "warning": {
            "type": "string",
            "title": "Warning"
          },
          "reviewed_entry_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Reviewed Entry Id"
          }
        },
        "type": "object",
        "required": [
          "id",
          "filename",
          "size",
          "sha256",
          "media_type",
          "state",
          "warning",
          "reviewed_entry_id"
        ],
        "title": "FileOut"
      },
      "FulfilmentReview": {
        "properties": {
          "version": {
            "type": "integer",
            "minimum": 1.0,
            "title": "Version"
          },
          "reviewed": {
            "type": "boolean",
            "title": "Reviewed"
          },
          "note": {
            "type": "string",
            "maxLength": 2000,
            "minLength": 10,
            "title": "Note"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "version",
          "reviewed",
          "note"
        ],
        "title": "FulfilmentReview"
      },
      "HTTPValidationError": {
        "properties": {
          "detail": {
            "items": {
              "$ref": "#/components/schemas/ValidationError"
            },
            "type": "array",
            "title": "Detail"
          }
        },
        "type": "object",
        "title": "HTTPValidationError"
      },
      "HistoryEvent": {
        "properties": {
          "id": {
            "type": "string",
            "title": "Id"
          },
          "kind": {
            "type": "string",
            "title": "Kind"
          },
          "reason": {
            "type": "string",
            "title": "Reason"
          },
          "before": {
            "$ref": "#/components/schemas/phonebuzz__device_care__Snapshot"
          },
          "after": {
            "$ref": "#/components/schemas/phonebuzz__device_care__Snapshot"
          },
          "actor_name": {
            "type": "string",
            "title": "Actor Name"
          },
          "created_at": {
            "type": "string",
            "title": "Created At"
          }
        },
        "type": "object",
        "required": [
          "id",
          "kind",
          "reason",
          "before",
          "after",
          "actor_name",
          "created_at"
        ],
        "title": "HistoryEvent"
      },
      "HistoryItem": {
        "properties": {
          "id": {
            "type": "string",
            "title": "Id"
          },
          "version": {
            "type": "integer",
            "title": "Version"
          },
          "action": {
            "type": "string",
            "title": "Action"
          },
          "actor_name": {
            "type": "string",
            "title": "Actor Name"
          },
          "created_at": {
            "type": "string",
            "title": "Created At"
          },
          "snapshot": {
            "$ref": "#/components/schemas/phonebuzz__outbound_email__Snapshot"
          },
          "state": {
            "type": "string",
            "title": "State"
          },
          "approver_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Approver Name"
          },
          "approved_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Approved At"
          }
        },
        "type": "object",
        "required": [
          "id",
          "version",
          "action",
          "actor_name",
          "created_at",
          "snapshot",
          "state",
          "approver_name",
          "approved_at"
        ],
        "title": "HistoryItem"
      },
      "Incident": {
        "properties": {
          "id": {
            "type": "string",
            "title": "Id"
          },
          "worker": {
            "type": "string",
            "enum": [
              "ai",
              "mailbox",
              "push"
            ],
            "title": "Worker"
          },
          "occurred_at": {
            "type": "integer",
            "title": "Occurred At"
          },
          "previous_code": {
            "type": "string",
            "title": "Previous Code"
          },
          "code": {
            "type": "string",
            "title": "Code"
          },
          "event": {
            "type": "string",
            "enum": [
              "opened",
              "changed",
              "recovered",
              "suspended"
            ],
            "title": "Event"
          },
          "acknowledged_at": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Acknowledged At"
          },
          "acknowledged_by": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Acknowledged By"
          },
          "reviewer_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Reviewer Name"
          },
          "review_note": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Review Note"
          }
        },
        "type": "object",
        "required": [
          "id",
          "worker",
          "occurred_at",
          "previous_code",
          "code",
          "event",
          "acknowledged_at",
          "acknowledged_by",
          "reviewer_name",
          "review_note"
        ],
        "title": "Incident"
      },
      "IncidentPage": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/Incident"
            },
            "type": "array",
            "title": "Items"
          },
          "total": {
            "type": "integer",
            "title": "Total"
          },
          "offset": {
            "type": "integer",
            "title": "Offset"
          },
          "limit": {
            "type": "integer",
            "title": "Limit"
          }
        },
        "type": "object",
        "required": [
          "items",
          "total",
          "offset",
          "limit"
        ],
        "title": "IncidentPage"
      },
      "Inspection": {
        "properties": {
          "version": {
            "type": "integer",
            "minimum": 1.0,
            "title": "Version"
          },
          "reason": {
            "type": "string",
            "maxLength": 300,
            "minLength": 4,
            "title": "Reason"
          },
          "outcome": {
            "type": "string",
            "enum": [
              "available",
              "retired"
            ],
            "title": "Outcome"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "version",
          "reason",
          "outcome"
        ],
        "title": "Inspection"
      },
      "InventoryCounts": {
        "properties": {
          "registered": {
            "type": "integer",
            "title": "Registered",
            "default": 0
          },
          "available": {
            "type": "integer",
            "title": "Available",
            "default": 0
          },
          "reserved": {
            "type": "integer",
            "title": "Reserved",
            "default": 0
          },
          "allocated": {
            "type": "integer",
            "title": "Allocated",
            "default": 0
          },
          "retired": {
            "type": "integer",
            "title": "Retired",
            "default": 0
          },
          "quarantined": {
            "type": "integer",
            "title": "Quarantined",
            "default": 0
          },
          "in_transit": {
            "type": "integer",
            "title": "In Transit",
            "default": 0
          }
        },
        "type": "object",
        "title": "InventoryCounts"
      },
      "InvitationOut": {
        "properties": {
          "id": {
            "type": "string",
            "title": "Id"
          },
          "email": {
            "type": "string",
            "title": "Email"
          },
          "name": {
            "type": "string",
            "title": "Name"
          },
          "role": {
            "type": "string",
            "enum": [
              "admin",
              "trader",
              "viewer"
            ],
            "title": "Role"
          },
          "state": {
            "type": "string",
            "enum": [
              "pending",
              "expired",
              "unavailable",
              "revoked",
              "accepted"
            ],
            "title": "State"
          },
          "expires_at": {
            "type": "integer",
            "title": "Expires At"
          },
          "version": {
            "type": "integer",
            "title": "Version"
          },
          "created_at": {
            "type": "string",
            "title": "Created At"
          },
          "updated_at": {
            "type": "string",
            "title": "Updated At"
          }
        },
        "type": "object",
        "required": [
          "id",
          "email",
          "name",
          "role",
          "state",
          "expires_at",
          "version",
          "created_at",
          "updated_at"
        ],
        "title": "InvitationOut"
      },
      "Issue": {
        "properties": {
          "version": {
            "type": "integer",
            "minimum": 1.0,
            "title": "Version"
          },
          "reviewed": {
            "type": "boolean",
            "title": "Reviewed"
          },
          "invoice_number": {
            "type": "string",
            "maxLength": 60,
            "minLength": 3,
            "pattern": "^[A-Z0-9][A-Z0-9/-]+$",
            "title": "Invoice Number"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "version",
          "reviewed",
          "invoice_number"
        ],
        "title": "Issue"
      },
      "Item": {
        "properties": {
          "attempt_id": {
            "type": "string",
            "title": "Attempt Id"
          },
          "conversation_id": {
            "type": "string",
            "title": "Conversation Id"
          },
          "conversation_version": {
            "type": "integer",
            "title": "Conversation Version"
          },
          "subject": {
            "type": "string",
            "title": "Subject"
          },
          "conversation_status": {
            "type": "string",
            "enum": [
              "open",
              "closed"
            ],
            "title": "Conversation Status"
          },
          "assignee_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Assignee Name"
          },
          "assignee_active": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Assignee Active"
          },
          "approved_version": {
            "type": "integer",
            "title": "Approved Version"
          },
          "state": {
            "type": "string",
            "enum": [
              "claimed",
              "handing_off",
              "completed",
              "uncertain",
              "blocked",
              "reviewed"
            ],
            "title": "State"
          },
          "outcome": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "accepted",
                  "rejected",
                  "not_submitted",
                  "uncertain"
                ]
              },
              {
                "type": "null"
              }
            ],
            "title": "Outcome"
          },
          "report_count": {
            "type": "integer",
            "title": "Report Count"
          },
          "investigation_status": {
            "type": "string",
            "enum": [
              "none",
              "needs_review",
              "investigating",
              "reviewed"
            ],
            "title": "Investigation Status"
          },
          "uncertain": {
            "type": "boolean",
            "title": "Uncertain"
          },
          "expired": {
            "type": "boolean",
            "title": "Expired"
          },
          "created_at": {
            "type": "string",
            "title": "Created At"
          },
          "case_owner_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Case Owner Id"
          },
          "case_owner_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Case Owner Name"
          },
          "case_owner_available": {
            "type": "boolean",
            "title": "Case Owner Available"
          },
          "due_at": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Due At"
          },
          "overdue": {
            "type": "boolean",
            "title": "Overdue"
          },
          "delivery_verified": {
            "type": "boolean",
            "const": false,
            "title": "Delivery Verified",
            "default": false
          }
        },
        "type": "object",
        "required": [
          "attempt_id",
          "conversation_id",
          "conversation_version",
          "subject",
          "conversation_status",
          "assignee_name",
          "assignee_active",
          "approved_version",
          "state",
          "outcome",
          "report_count",
          "investigation_status",
          "uncertain",
          "expired",
          "created_at",
          "case_owner_id",
          "case_owner_name",
          "case_owner_available",
          "due_at",
          "overdue"
        ],
        "title": "Item"
      },
      "LineIn": {
        "properties": {
          "source_id": {
            "type": "string",
            "format": "uuid",
            "title": "Source Id"
          },
          "source_version": {
            "type": "integer",
            "minimum": 1.0,
            "title": "Source Version"
          },
          "quantity": {
            "type": "integer",
            "maximum": 1000000.0,
            "minimum": 1.0,
            "title": "Quantity"
          },
          "unit_price": {
            "anyOf": [
              {
                "type": "number",
                "maximum": 9999999.99,
                "exclusiveMinimum": 0.0
              },
              {
                "type": "string",
                "pattern": "^(?!^[-+.]*$)[+-]?0*(?:\\d{0,7}|(?=[\\d.]{1,10}0*$)\\d{0,7}\\.\\d{0,2}0*$)"
              }
            ],
            "title": "Unit Price"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "source_id",
          "source_version",
          "quantity",
          "unit_price"
        ],
        "title": "LineIn"
      },
      "LinkedRecord": {
        "properties": {
          "id": {
            "type": "string",
            "title": "Id"
          },
          "title": {
            "type": "string",
            "title": "Title"
          },
          "state": {
            "type": "string",
            "title": "State"
          },
          "version": {
            "type": "integer",
            "title": "Version"
          },
          "updated_at": {
            "type": "string",
            "title": "Updated At"
          },
          "deadline": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Deadline"
          }
        },
        "type": "object",
        "required": [
          "id",
          "title",
          "state",
          "version",
          "updated_at",
          "deadline"
        ],
        "title": "LinkedRecord"
      },
      "LocationDevices": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/DeviceOut"
            },
            "type": "array",
            "title": "Items"
          },
          "total": {
            "type": "integer",
            "title": "Total"
          }
        },
        "type": "object",
        "required": [
          "items",
          "total"
        ],
        "title": "LocationDevices"
      },
      "LoginIn": {
        "properties": {
          "code": {
            "type": "string",
            "maxLength": 64,
            "title": "Code",
            "default": ""
          },
          "email": {
            "type": "string",
            "format": "email",
            "title": "Email"
          },
          "password": {
            "type": "string",
            "maxLength": 256,
            "minLength": 1,
            "title": "Password"
          }
        },
        "type": "object",
        "required": [
          "email",
          "password"
        ],
        "title": "LoginIn"
      },
      "Lookup-Input": {
        "properties": {
          "scope": {
            "type": "string",
            "enum": [
              "companies",
              "stock",
              "offers",
              "wanted",
              "operations",
              "history",
              "knowledge"
            ],
            "title": "Scope"
          },
          "query": {
            "type": "string",
            "maxLength": 120,
            "title": "Query",
            "default": ""
          },
          "offset": {
            "type": "integer",
            "maximum": 10000.0,
            "minimum": 0.0,
            "title": "Offset",
            "default": 0
          },
          "start": {
            "anyOf": [
              {
                "type": "string",
                "format": "date"
              },
              {
                "type": "null"
              }
            ],
            "title": "Start"
          },
          "end": {
            "anyOf": [
              {
                "type": "string",
                "format": "date"
              },
              {
                "type": "null"
              }
            ],
            "title": "End"
          },
          "filters": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/TradingFilters-Input"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "scope"
        ],
        "title": "Lookup"
      },
      "Lookup-Output": {
        "properties": {
          "scope": {
            "type": "string",
            "enum": [
              "companies",
              "stock",
              "offers",
              "wanted",
              "operations",
              "history",
              "knowledge"
            ],
            "title": "Scope"
          },
          "query": {
            "type": "string",
            "maxLength": 120,
            "title": "Query",
            "default": ""
          },
          "offset": {
            "type": "integer",
            "maximum": 10000.0,
            "minimum": 0.0,
            "title": "Offset",
            "default": 0
          },
          "start": {
            "anyOf": [
              {
                "type": "string",
                "format": "date"
              },
              {
                "type": "null"
              }
            ],
            "title": "Start"
          },
          "end": {
            "anyOf": [
              {
                "type": "string",
                "format": "date"
              },
              {
                "type": "null"
              }
            ],
            "title": "End"
          },
          "filters": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/TradingFilters-Output"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "scope"
        ],
        "title": "Lookup"
      },
      "MailboxStatus": {
        "properties": {
          "configured": {
            "type": "boolean",
            "title": "Configured"
          },
          "enabled": {
            "type": "boolean",
            "title": "Enabled"
          },
          "initialized": {
            "type": "boolean",
            "title": "Initialized"
          },
          "address": {
            "type": "string",
            "title": "Address"
          },
          "folder": {
            "type": "string",
            "title": "Folder"
          },
          "status": {
            "type": "string",
            "title": "Status"
          },
          "version": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Version"
          },
          "last_attempt_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Last Attempt At"
          },
          "last_success_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Last Success At"
          },
          "next_attempt": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Next Attempt"
          },
          "failures": {
            "type": "integer",
            "title": "Failures"
          },
          "imported": {
            "type": "integer",
            "title": "Imported"
          },
          "skipped": {
            "type": "integer",
            "title": "Skipped"
          },
          "duplicates": {
            "type": "integer",
            "title": "Duplicates"
          },
          "error": {
            "type": "string",
            "title": "Error"
          },
          "history_mode": {
            "type": "string",
            "title": "History Mode"
          }
        },
        "type": "object",
        "required": [
          "configured",
          "enabled",
          "initialized",
          "address",
          "folder",
          "status",
          "version",
          "last_attempt_at",
          "last_success_at",
          "next_attempt",
          "failures",
          "imported",
          "skipped",
          "duplicates",
          "error",
          "history_mode"
        ],
        "title": "MailboxStatus"
      },
      "MatchPage": {
        "properties": {
          "wanted": {
            "$ref": "#/components/schemas/RecordOut"
          },
          "items": {
            "items": {
              "$ref": "#/components/schemas/Candidate"
            },
            "type": "array",
            "title": "Items"
          },
          "total": {
            "type": "integer",
            "title": "Total"
          }
        },
        "type": "object",
        "required": [
          "wanted",
          "items",
          "total"
        ],
        "title": "MatchPage"
      },
      "MessageFormat": {
        "properties": {
          "format_version": {
            "type": "integer",
            "const": 1,
            "title": "Format Version",
            "default": 1
          },
          "message_id": {
            "type": "string",
            "title": "Message Id"
          },
          "date": {
            "type": "string",
            "title": "Date"
          },
          "thread": {
            "$ref": "#/components/schemas/ThreadContext"
          },
          "raw": {
            "type": "string",
            "title": "Raw"
          },
          "sha256": {
            "type": "string",
            "title": "Sha256"
          },
          "size": {
            "type": "integer",
            "title": "Size"
          }
        },
        "type": "object",
        "required": [
          "message_id",
          "date",
          "thread",
          "raw",
          "sha256",
          "size"
        ],
        "title": "MessageFormat"
      },
      "Metadata": {
        "properties": {
          "version": {
            "type": "integer",
            "minimum": 1.0,
            "title": "Version"
          },
          "company_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Company Id"
          },
          "assignee_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Assignee Id"
          },
          "status": {
            "type": "string",
            "enum": [
              "open",
              "closed"
            ],
            "title": "Status"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "version",
          "company_id",
          "assignee_id",
          "status"
        ],
        "title": "Metadata"
      },
      "Metric": {
        "properties": {
          "label": {
            "type": "string",
            "title": "Label"
          },
          "count": {
            "type": "integer",
            "minimum": 0.0,
            "title": "Count"
          }
        },
        "type": "object",
        "required": [
          "label",
          "count"
        ],
        "title": "Metric"
      },
      "MovementOut": {
        "properties": {
          "id": {
            "type": "string",
            "title": "Id"
          },
          "device_id": {
            "type": "string",
            "title": "Device Id"
          },
          "source_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Source Id"
          },
          "destination_id": {
            "type": "string",
            "title": "Destination Id"
          },
          "source_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Source Name"
          },
          "destination_name": {
            "type": "string",
            "title": "Destination Name"
          },
          "imei": {
            "type": "string",
            "title": "Imei"
          },
          "status": {
            "type": "string",
            "title": "Status"
          },
          "reason": {
            "type": "string",
            "title": "Reason"
          },
          "receipt_note": {
            "type": "string",
            "title": "Receipt Note"
          },
          "actor_name": {
            "type": "string",
            "title": "Actor Name"
          },
          "receiver_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Receiver Name"
          },
          "created_at": {
            "type": "string",
            "title": "Created At"
          },
          "received_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Received At"
          },
          "version": {
            "type": "integer",
            "title": "Version"
          }
        },
        "type": "object",
        "required": [
          "id",
          "device_id",
          "source_id",
          "destination_id",
          "source_name",
          "destination_name",
          "imei",
          "status",
          "reason",
          "receipt_note",
          "actor_name",
          "receiver_name",
          "created_at",
          "received_at",
          "version"
        ],
        "title": "MovementOut"
      },
      "MovementPage": {
        "properties": {
          "active": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/MovementOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "items": {
            "items": {
              "$ref": "#/components/schemas/MovementOut"
            },
            "type": "array",
            "title": "Items"
          },
          "total": {
            "type": "integer",
            "title": "Total"
          }
        },
        "type": "object",
        "required": [
          "active",
          "items",
          "total"
        ],
        "title": "MovementPage"
      },
      "OfferRow": {
        "properties": {
          "id": {
            "type": "string",
            "title": "Id"
          },
          "company_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Company Name"
          },
          "company_status": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Company Status"
          },
          "brand": {
            "type": "string",
            "title": "Brand"
          },
          "model": {
            "type": "string",
            "title": "Model"
          },
          "storage_gb": {
            "type": "integer",
            "title": "Storage Gb"
          },
          "grade": {
            "type": "string",
            "title": "Grade"
          },
          "region": {
            "type": "string",
            "title": "Region"
          },
          "quantity": {
            "type": "integer",
            "title": "Quantity"
          },
          "expires_at": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Expires At"
          },
          "status": {
            "type": "string",
            "title": "Status"
          },
          "version": {
            "type": "integer",
            "title": "Version"
          },
          "updated_at": {
            "type": "string",
            "title": "Updated At"
          }
        },
        "type": "object",
        "required": [
          "id",
          "company_name",
          "company_status",
          "brand",
          "model",
          "storage_gb",
          "grade",
          "region",
          "quantity",
          "expires_at",
          "status",
          "version",
          "updated_at"
        ],
        "title": "OfferRow"
      },
      "OperationsOut": {
        "properties": {
          "as_of": {
            "type": "string",
            "title": "As Of"
          },
          "counts": {
            "$ref": "#/components/schemas/WorkloadCounts"
          }
        },
        "type": "object",
        "required": [
          "as_of",
          "counts"
        ],
        "title": "OperationsOut"
      },
      "Owner": {
        "properties": {
          "id": {
            "type": "string",
            "title": "Id"
          },
          "name": {
            "type": "string",
            "title": "Name"
          }
        },
        "type": "object",
        "required": [
          "id",
          "name"
        ],
        "title": "Owner"
      },
      "PasswordChange": {
        "properties": {
          "password": {
            "type": "string",
            "format": "password",
            "title": "Password",
            "writeOnly": true
          },
          "code": {
            "type": "string",
            "maxLength": 64,
            "title": "Code",
            "default": ""
          },
          "version": {
            "type": "integer",
            "minimum": 1.0,
            "title": "Version"
          },
          "reviewed": {
            "type": "boolean",
            "title": "Reviewed"
          },
          "new_password": {
            "type": "string",
            "format": "password",
            "title": "New Password",
            "writeOnly": true
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "password",
          "version",
          "reviewed",
          "new_password"
        ],
        "title": "PasswordChange"
      },
      "Payment": {
        "properties": {
          "version": {
            "type": "integer",
            "minimum": 1.0,
            "title": "Version"
          },
          "reviewed": {
            "type": "boolean",
            "title": "Reviewed"
          },
          "amount": {
            "anyOf": [
              {
                "type": "number",
                "maximum": 999999999999.99,
                "exclusiveMinimum": 0.0
              },
              {
                "type": "string",
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$"
              }
            ],
            "title": "Amount"
          },
          "currency": {
            "type": "string",
            "enum": [
              "USD",
              "AED",
              "PKR"
            ],
            "title": "Currency"
          },
          "method": {
            "type": "string",
            "enum": [
              "bank_transfer",
              "cash",
              "card",
              "other"
            ],
            "title": "Method"
          },
          "reference": {
            "type": "string",
            "maxLength": 160,
            "minLength": 3,
            "title": "Reference"
          },
          "note": {
            "type": "string",
            "maxLength": 2000,
            "minLength": 10,
            "title": "Note"
          },
          "received_at": {
            "type": "string",
            "format": "date-time",
            "title": "Received At"
          },
          "request_key": {
            "type": "string",
            "format": "uuid",
            "title": "Request Key"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "version",
          "reviewed",
          "amount",
          "currency",
          "method",
          "reference",
          "note",
          "received_at",
          "request_key"
        ],
        "title": "Payment"
      },
      "Plan": {
        "properties": {
          "scope": {
            "type": "string",
            "enum": [
              "companies",
              "stock",
              "offers",
              "wanted",
              "operations",
              "history",
              "knowledge",
              "unsupported"
            ],
            "title": "Scope"
          },
          "query": {
            "type": "string",
            "maxLength": 120,
            "title": "Query"
          },
          "filters": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/TradingFilters-Output"
              },
              {
                "type": "null"
              }
            ]
          },
          "feedback_token": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Feedback Token"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "scope",
          "query"
        ],
        "title": "Plan"
      },
      "Preparation": {
        "properties": {
          "wanted": {
            "$ref": "#/components/schemas/RecordOut"
          },
          "supply": {
            "$ref": "#/components/schemas/RecordOut"
          },
          "customer": {
            "$ref": "#/components/schemas/ReviewCustomer"
          },
          "suggested_quantity": {
            "type": "integer",
            "title": "Suggested Quantity"
          },
          "valid_until": {
            "type": "string",
            "title": "Valid Until"
          },
          "differences": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Differences"
          },
          "cautions": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Cautions"
          }
        },
        "type": "object",
        "required": [
          "wanted",
          "supply",
          "customer",
          "suggested_quantity",
          "valid_until",
          "differences",
          "cautions"
        ],
        "title": "Preparation"
      },
      "ProductIn": {
        "properties": {
          "brand": {
            "type": "string",
            "maxLength": 80,
            "minLength": 1,
            "title": "Brand"
          },
          "model": {
            "type": "string",
            "maxLength": 120,
            "minLength": 1,
            "title": "Model"
          },
          "storage_gb": {
            "type": "integer",
            "maximum": 8192.0,
            "exclusiveMinimum": 0.0,
            "title": "Storage Gb"
          },
          "notes": {
            "type": "string",
            "maxLength": 2000,
            "title": "Notes",
            "default": ""
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "brand",
          "model",
          "storage_gb"
        ],
        "title": "ProductIn"
      },
      "ProductOut": {
        "properties": {
          "id": {
            "type": "string",
            "title": "Id"
          },
          "active": {
            "type": "boolean",
            "title": "Active"
          },
          "version": {
            "type": "integer",
            "title": "Version"
          },
          "created_at": {
            "type": "string",
            "title": "Created At"
          },
          "brand": {
            "type": "string",
            "maxLength": 80,
            "minLength": 1,
            "title": "Brand"
          },
          "model": {
            "type": "string",
            "maxLength": 120,
            "minLength": 1,
            "title": "Model"
          },
          "storage_gb": {
            "type": "integer",
            "maximum": 8192.0,
            "exclusiveMinimum": 0.0,
            "title": "Storage Gb"
          },
          "notes": {
            "type": "string",
            "maxLength": 2000,
            "title": "Notes",
            "default": ""
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "id",
          "active",
          "version",
          "created_at",
          "brand",
          "model",
          "storage_gb"
        ],
        "title": "ProductOut"
      },
      "ProductPage": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/ProductOut"
            },
            "type": "array",
            "title": "Items"
          },
          "total": {
            "type": "integer",
            "title": "Total"
          }
        },
        "type": "object",
        "required": [
          "items",
          "total"
        ],
        "title": "ProductPage"
      },
      "Question": {
        "properties": {
          "question": {
            "type": "string",
            "maxLength": 500,
            "minLength": 3,
            "title": "Question"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "question"
        ],
        "title": "Question"
      },
      "RankedCandidate": {
        "properties": {
          "supply": {
            "$ref": "#/components/schemas/RecordOut"
          },
          "classification": {
            "type": "string",
            "enum": [
              "exact",
              "near"
            ],
            "title": "Classification"
          },
          "reasons": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Reasons"
          },
          "differences": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Differences"
          },
          "budget_headroom": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"
              },
              {
                "type": "null"
              }
            ],
            "title": "Budget Headroom"
          },
          "rank": {
            "type": "integer",
            "title": "Rank"
          },
          "review_key": {
            "type": "string",
            "title": "Review Key"
          },
          "coverage_quantity": {
            "type": "integer",
            "title": "Coverage Quantity"
          },
          "evidence": {
            "type": "string",
            "enum": [
              "tracked_stock",
              "reported_stock",
              "supplier_offer"
            ],
            "title": "Evidence"
          },
          "ranking_reasons": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Ranking Reasons"
          },
          "cautions": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Cautions"
          }
        },
        "type": "object",
        "required": [
          "supply",
          "classification",
          "reasons",
          "differences",
          "budget_headroom",
          "rank",
          "review_key",
          "coverage_quantity",
          "evidence",
          "ranking_reasons",
          "cautions"
        ],
        "title": "RankedCandidate"
      },
      "RankedPage": {
        "properties": {
          "as_of": {
            "type": "string",
            "title": "As Of"
          },
          "policy": {
            "type": "string",
            "title": "Policy"
          },
          "wanted": {
            "$ref": "#/components/schemas/RecordOut"
          },
          "items": {
            "items": {
              "$ref": "#/components/schemas/RankedCandidate"
            },
            "type": "array",
            "title": "Items"
          },
          "total": {
            "type": "integer",
            "title": "Total"
          }
        },
        "type": "object",
        "required": [
          "as_of",
          "policy",
          "wanted",
          "items",
          "total"
        ],
        "title": "RankedPage"
      },
      "ReadState": {
        "properties": {
          "version": {
            "type": "integer",
            "minimum": 1.0,
            "title": "Version"
          },
          "read": {
            "type": "boolean",
            "title": "Read"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "version",
          "read"
        ],
        "title": "ReadState"
      },
      "Readiness": {
        "properties": {
          "enabled": {
            "type": "boolean",
            "title": "Enabled"
          },
          "ready": {
            "type": "boolean",
            "title": "Ready",
            "default": false
          },
          "network_checked": {
            "type": "boolean",
            "const": false,
            "title": "Network Checked",
            "default": false
          },
          "as_of": {
            "type": "integer",
            "title": "As Of"
          },
          "reasons": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Reasons"
          },
          "approved_version": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Approved Version"
          },
          "sha256": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Sha256"
          },
          "snapshot": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/phonebuzz__outbound_email__Snapshot"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "type": "object",
        "required": [
          "enabled",
          "as_of",
          "reasons"
        ],
        "title": "Readiness"
      },
      "Reason": {
        "properties": {
          "version": {
            "type": "integer",
            "minimum": 1.0,
            "title": "Version"
          },
          "reviewed": {
            "type": "boolean",
            "title": "Reviewed"
          },
          "reason": {
            "type": "string",
            "maxLength": 1000,
            "minLength": 10,
            "title": "Reason"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "version",
          "reviewed",
          "reason"
        ],
        "title": "Reason"
      },
      "ReceiveReturn": {
        "properties": {
          "version": {
            "type": "integer",
            "minimum": 1.0,
            "title": "Version"
          },
          "reason": {
            "type": "string",
            "maxLength": 300,
            "minLength": 4,
            "title": "Reason"
          },
          "reservation_id": {
            "type": "string",
            "maxLength": 36,
            "minLength": 1,
            "title": "Reservation Id"
          },
          "reservation_version": {
            "type": "integer",
            "minimum": 1.0,
            "title": "Reservation Version"
          },
          "received": {
            "type": "boolean",
            "const": true,
            "title": "Received"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "version",
          "reason",
          "reservation_id",
          "reservation_version",
          "received"
        ],
        "title": "ReceiveReturn"
      },
      "Record": {
        "properties": {
          "id": {
            "type": "string",
            "title": "Id"
          },
          "version": {
            "type": "integer",
            "title": "Version"
          },
          "state": {
            "type": "string",
            "enum": [
              "draft",
              "approved",
              "cancelled"
            ],
            "title": "State"
          },
          "snapshot": {
            "$ref": "#/components/schemas/phonebuzz__outbound_email__Snapshot"
          },
          "approved_by": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Approved By"
          },
          "approver_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Approver Name"
          },
          "approved_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Approved At"
          },
          "updated_at": {
            "type": "string",
            "title": "Updated At"
          },
          "approval_current": {
            "type": "boolean",
            "title": "Approval Current"
          },
          "review_required": {
            "type": "boolean",
            "title": "Review Required"
          },
          "reasons": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Reasons"
          },
          "can_approve": {
            "type": "boolean",
            "title": "Can Approve"
          }
        },
        "type": "object",
        "required": [
          "id",
          "version",
          "state",
          "snapshot",
          "approved_by",
          "approver_name",
          "approved_at",
          "updated_at",
          "approval_current",
          "review_required",
          "reasons",
          "can_approve"
        ],
        "title": "Record"
      },
      "RecordIn-Input": {
        "properties": {
          "product_id": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 36
              },
              {
                "type": "null"
              }
            ],
            "title": "Product Id"
          },
          "grade_id": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 36
              },
              {
                "type": "null"
              }
            ],
            "title": "Grade Id"
          },
          "region_id": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 36
              },
              {
                "type": "null"
              }
            ],
            "title": "Region Id"
          },
          "kind": {
            "type": "string",
            "enum": [
              "stock",
              "offer",
              "wanted"
            ],
            "title": "Kind"
          },
          "company_id": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 36
              },
              {
                "type": "null"
              }
            ],
            "title": "Company Id"
          },
          "brand": {
            "type": "string",
            "maxLength": 80,
            "minLength": 1,
            "title": "Brand"
          },
          "model": {
            "type": "string",
            "maxLength": 120,
            "minLength": 1,
            "title": "Model"
          },
          "storage_gb": {
            "type": "integer",
            "maximum": 8192.0,
            "exclusiveMinimum": 0.0,
            "title": "Storage Gb"
          },
          "grade": {
            "type": "string",
            "maxLength": 80,
            "minLength": 1,
            "title": "Grade"
          },
          "region": {
            "type": "string",
            "maxLength": 80,
            "minLength": 1,
            "title": "Region"
          },
          "lock_status": {
            "type": "string",
            "enum": [
              "unlocked",
              "locked",
              "unknown"
            ],
            "title": "Lock Status",
            "default": "unknown"
          },
          "color": {
            "type": "string",
            "maxLength": 80,
            "title": "Color",
            "default": ""
          },
          "quantity": {
            "type": "integer",
            "maximum": 1000000.0,
            "exclusiveMinimum": 0.0,
            "title": "Quantity"
          },
          "unit_price": {
            "anyOf": [
              {
                "type": "number",
                "maximum": 9999999.99,
                "exclusiveMinimum": 0.0
              },
              {
                "type": "string",
                "pattern": "^(?!^[-+.]*$)[+-]?0*(?:\\d{0,7}|(?=[\\d.]{1,10}0*$)\\d{0,7}\\.\\d{0,2}0*$)"
              },
              {
                "type": "null"
              }
            ],
            "title": "Unit Price"
          },
          "currency": {
            "type": "string",
            "enum": [
              "USD",
              "AED",
              "PKR"
            ],
            "title": "Currency",
            "default": "USD"
          },
          "expires_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Expires At"
          },
          "status": {
            "type": "string",
            "enum": [
              "draft",
              "active",
              "withdrawn",
              "fulfilled"
            ],
            "title": "Status",
            "default": "draft"
          },
          "notes": {
            "type": "string",
            "maxLength": 4000,
            "title": "Notes",
            "default": ""
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "kind",
          "brand",
          "model",
          "storage_gb",
          "grade",
          "region",
          "quantity"
        ],
        "title": "RecordIn"
      },
      "RecordIn-Output": {
        "properties": {
          "product_id": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 36
              },
              {
                "type": "null"
              }
            ],
            "title": "Product Id"
          },
          "grade_id": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 36
              },
              {
                "type": "null"
              }
            ],
            "title": "Grade Id"
          },
          "region_id": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 36
              },
              {
                "type": "null"
              }
            ],
            "title": "Region Id"
          },
          "kind": {
            "type": "string",
            "enum": [
              "stock",
              "offer",
              "wanted"
            ],
            "title": "Kind"
          },
          "company_id": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 36
              },
              {
                "type": "null"
              }
            ],
            "title": "Company Id"
          },
          "brand": {
            "type": "string",
            "maxLength": 80,
            "minLength": 1,
            "title": "Brand"
          },
          "model": {
            "type": "string",
            "maxLength": 120,
            "minLength": 1,
            "title": "Model"
          },
          "storage_gb": {
            "type": "integer",
            "maximum": 8192.0,
            "exclusiveMinimum": 0.0,
            "title": "Storage Gb"
          },
          "grade": {
            "type": "string",
            "maxLength": 80,
            "minLength": 1,
            "title": "Grade"
          },
          "region": {
            "type": "string",
            "maxLength": 80,
            "minLength": 1,
            "title": "Region"
          },
          "lock_status": {
            "type": "string",
            "enum": [
              "unlocked",
              "locked",
              "unknown"
            ],
            "title": "Lock Status",
            "default": "unknown"
          },
          "color": {
            "type": "string",
            "maxLength": 80,
            "title": "Color",
            "default": ""
          },
          "quantity": {
            "type": "integer",
            "maximum": 1000000.0,
            "exclusiveMinimum": 0.0,
            "title": "Quantity"
          },
          "unit_price": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^(?!^[-+.]*$)[+-]?0*(?:\\d{0,7}|(?=[\\d.]{1,10}0*$)\\d{0,7}\\.\\d{0,2}0*$)"
              },
              {
                "type": "null"
              }
            ],
            "title": "Unit Price"
          },
          "currency": {
            "type": "string",
            "enum": [
              "USD",
              "AED",
              "PKR"
            ],
            "title": "Currency",
            "default": "USD"
          },
          "expires_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Expires At"
          },
          "status": {
            "type": "string",
            "enum": [
              "draft",
              "active",
              "withdrawn",
              "fulfilled"
            ],
            "title": "Status",
            "default": "draft"
          },
          "notes": {
            "type": "string",
            "maxLength": 4000,
            "title": "Notes",
            "default": ""
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "kind",
          "brand",
          "model",
          "storage_gb",
          "grade",
          "region",
          "quantity"
        ],
        "title": "RecordIn"
      },
      "RecordOut": {
        "properties": {
          "product_id": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 36
              },
              {
                "type": "null"
              }
            ],
            "title": "Product Id"
          },
          "grade_id": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 36
              },
              {
                "type": "null"
              }
            ],
            "title": "Grade Id"
          },
          "region_id": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 36
              },
              {
                "type": "null"
              }
            ],
            "title": "Region Id"
          },
          "kind": {
            "type": "string",
            "enum": [
              "stock",
              "offer",
              "wanted"
            ],
            "title": "Kind"
          },
          "company_id": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 36
              },
              {
                "type": "null"
              }
            ],
            "title": "Company Id"
          },
          "brand": {
            "type": "string",
            "maxLength": 80,
            "minLength": 1,
            "title": "Brand"
          },
          "model": {
            "type": "string",
            "maxLength": 120,
            "minLength": 1,
            "title": "Model"
          },
          "storage_gb": {
            "type": "integer",
            "maximum": 8192.0,
            "exclusiveMinimum": 0.0,
            "title": "Storage Gb"
          },
          "grade": {
            "type": "string",
            "maxLength": 80,
            "minLength": 1,
            "title": "Grade"
          },
          "region": {
            "type": "string",
            "maxLength": 80,
            "minLength": 1,
            "title": "Region"
          },
          "lock_status": {
            "type": "string",
            "enum": [
              "unlocked",
              "locked",
              "unknown"
            ],
            "title": "Lock Status",
            "default": "unknown"
          },
          "color": {
            "type": "string",
            "maxLength": 80,
            "title": "Color",
            "default": ""
          },
          "quantity": {
            "type": "integer",
            "maximum": 1000000.0,
            "exclusiveMinimum": 0.0,
            "title": "Quantity"
          },
          "unit_price": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^(?!^[-+.]*$)[+-]?0*(?:\\d{0,7}|(?=[\\d.]{1,10}0*$)\\d{0,7}\\.\\d{0,2}0*$)"
              },
              {
                "type": "null"
              }
            ],
            "title": "Unit Price"
          },
          "currency": {
            "type": "string",
            "enum": [
              "USD",
              "AED",
              "PKR"
            ],
            "title": "Currency",
            "default": "USD"
          },
          "expires_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Expires At"
          },
          "status": {
            "type": "string",
            "enum": [
              "draft",
              "active",
              "withdrawn",
              "fulfilled"
            ],
            "title": "Status",
            "default": "draft"
          },
          "notes": {
            "type": "string",
            "maxLength": 4000,
            "title": "Notes",
            "default": ""
          },
          "inventory_tracked": {
            "type": "boolean",
            "title": "Inventory Tracked"
          },
          "inventory": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/InventoryCounts"
              },
              {
                "type": "null"
              }
            ]
          },
          "available_quantity": {
            "type": "integer",
            "title": "Available Quantity"
          },
          "id": {
            "type": "string",
            "title": "Id"
          },
          "company_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Company Name"
          },
          "effective_status": {
            "type": "string",
            "enum": [
              "draft",
              "active",
              "withdrawn",
              "fulfilled",
              "expired",
              "unavailable"
            ],
            "title": "Effective Status"
          },
          "created_at": {
            "type": "string",
            "title": "Created At"
          },
          "updated_at": {
            "type": "string",
            "title": "Updated At"
          },
          "version": {
            "type": "integer",
            "title": "Version"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "kind",
          "brand",
          "model",
          "storage_gb",
          "grade",
          "region",
          "quantity",
          "inventory_tracked",
          "available_quantity",
          "id",
          "company_name",
          "effective_status",
          "created_at",
          "updated_at",
          "version"
        ],
        "title": "RecordOut"
      },
      "RecordPage": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/RecordOut"
            },
            "type": "array",
            "title": "Items"
          },
          "total": {
            "type": "integer",
            "title": "Total"
          }
        },
        "type": "object",
        "required": [
          "items",
          "total"
        ],
        "title": "RecordPage"
      },
      "RecordUpdate": {
        "properties": {
          "product_id": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 36
              },
              {
                "type": "null"
              }
            ],
            "title": "Product Id"
          },
          "grade_id": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 36
              },
              {
                "type": "null"
              }
            ],
            "title": "Grade Id"
          },
          "region_id": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 36
              },
              {
                "type": "null"
              }
            ],
            "title": "Region Id"
          },
          "kind": {
            "type": "string",
            "enum": [
              "stock",
              "offer",
              "wanted"
            ],
            "title": "Kind"
          },
          "company_id": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 36
              },
              {
                "type": "null"
              }
            ],
            "title": "Company Id"
          },
          "brand": {
            "type": "string",
            "maxLength": 80,
            "minLength": 1,
            "title": "Brand"
          },
          "model": {
            "type": "string",
            "maxLength": 120,
            "minLength": 1,
            "title": "Model"
          },
          "storage_gb": {
            "type": "integer",
            "maximum": 8192.0,
            "exclusiveMinimum": 0.0,
            "title": "Storage Gb"
          },
          "grade": {
            "type": "string",
            "maxLength": 80,
            "minLength": 1,
            "title": "Grade"
          },
          "region": {
            "type": "string",
            "maxLength": 80,
            "minLength": 1,
            "title": "Region"
          },
          "lock_status": {
            "type": "string",
            "enum": [
              "unlocked",
              "locked",
              "unknown"
            ],
            "title": "Lock Status",
            "default": "unknown"
          },
          "color": {
            "type": "string",
            "maxLength": 80,
            "title": "Color",
            "default": ""
          },
          "quantity": {
            "type": "integer",
            "maximum": 1000000.0,
            "exclusiveMinimum": 0.0,
            "title": "Quantity"
          },
          "unit_price": {
            "anyOf": [
              {
                "type": "number",
                "maximum": 9999999.99,
                "exclusiveMinimum": 0.0
              },
              {
                "type": "string",
                "pattern": "^(?!^[-+.]*$)[+-]?0*(?:\\d{0,7}|(?=[\\d.]{1,10}0*$)\\d{0,7}\\.\\d{0,2}0*$)"
              },
              {
                "type": "null"
              }
            ],
            "title": "Unit Price"
          },
          "currency": {
            "type": "string",
            "enum": [
              "USD",
              "AED",
              "PKR"
            ],
            "title": "Currency",
            "default": "USD"
          },
          "expires_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Expires At"
          },
          "status": {
            "type": "string",
            "enum": [
              "draft",
              "active",
              "withdrawn",
              "fulfilled"
            ],
            "title": "Status",
            "default": "draft"
          },
          "notes": {
            "type": "string",
            "maxLength": 4000,
            "title": "Notes",
            "default": ""
          },
          "version": {
            "type": "integer",
            "minimum": 1.0,
            "title": "Version"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "kind",
          "brand",
          "model",
          "storage_gb",
          "grade",
          "region",
          "quantity",
          "version"
        ],
        "title": "RecordUpdate"
      },
      "Registration": {
        "properties": {
          "token": {
            "type": "string",
            "maxLength": 230,
            "pattern": "^(ExponentPushToken|ExpoPushToken)\\[[a-zA-Z0-9_-]{10,200}\\]$",
            "title": "Token"
          },
          "project_id": {
            "type": "string",
            "format": "uuid",
            "title": "Project Id"
          },
          "platform": {
            "type": "string",
            "enum": [
              "ios",
              "android"
            ],
            "title": "Platform"
          },
          "consent": {
            "type": "boolean",
            "title": "Consent"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "token",
          "project_id",
          "platform",
          "consent"
        ],
        "title": "Registration"
      },
      "Relationship": {
        "properties": {
          "id": {
            "type": "string",
            "title": "Id"
          },
          "name": {
            "type": "string",
            "title": "Name"
          },
          "kind": {
            "type": "string",
            "title": "Kind"
          },
          "status": {
            "type": "string",
            "title": "Status"
          },
          "country": {
            "type": "string",
            "title": "Country"
          },
          "counts": {
            "$ref": "#/components/schemas/phonebuzz__relationships__Counts"
          }
        },
        "type": "object",
        "required": [
          "id",
          "name",
          "kind",
          "status",
          "country",
          "counts"
        ],
        "title": "Relationship"
      },
      "RelationshipDetail": {
        "properties": {
          "as_of": {
            "type": "string",
            "title": "As Of"
          },
          "company": {
            "$ref": "#/components/schemas/Relationship"
          },
          "category": {
            "type": "string",
            "enum": [
              "conversations",
              "offers",
              "wanted",
              "quotations",
              "followups",
              "orders"
            ],
            "title": "Category"
          },
          "items": {
            "items": {
              "$ref": "#/components/schemas/LinkedRecord"
            },
            "type": "array",
            "title": "Items"
          },
          "total": {
            "type": "integer",
            "title": "Total"
          }
        },
        "type": "object",
        "required": [
          "as_of",
          "company",
          "category",
          "items",
          "total"
        ],
        "title": "RelationshipDetail"
      },
      "RelationshipPage": {
        "properties": {
          "as_of": {
            "type": "string",
            "title": "As Of"
          },
          "items": {
            "items": {
              "$ref": "#/components/schemas/Relationship"
            },
            "type": "array",
            "title": "Items"
          },
          "total": {
            "type": "integer",
            "title": "Total"
          }
        },
        "type": "object",
        "required": [
          "as_of",
          "items",
          "total"
        ],
        "title": "RelationshipPage"
      },
      "Request": {
        "properties": {
          "entry_id": {
            "type": "string",
            "format": "uuid",
            "title": "Entry Id"
          },
          "version": {
            "type": "integer",
            "minimum": 1.0,
            "title": "Version"
          },
          "provider": {
            "type": "string",
            "enum": [
              "openai",
              "ollama"
            ],
            "title": "Provider",
            "default": "openai"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "entry_id",
          "version"
        ],
        "title": "Request"
      },
      "ReservationAction": {
        "properties": {
          "version": {
            "type": "integer",
            "minimum": 1.0,
            "title": "Version"
          },
          "action": {
            "type": "string",
            "enum": [
              "release",
              "allocate"
            ],
            "title": "Action"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "version",
          "action"
        ],
        "title": "ReservationAction"
      },
      "ReservationOut": {
        "properties": {
          "id": {
            "type": "string",
            "title": "Id"
          },
          "stock_id": {
            "type": "string",
            "title": "Stock Id"
          },
          "wanted_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Wanted Id"
          },
          "order_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Order Id"
          },
          "customer_name": {
            "type": "string",
            "title": "Customer Name"
          },
          "product": {
            "type": "string",
            "title": "Product"
          },
          "status": {
            "type": "string",
            "enum": [
              "held",
              "expired",
              "released",
              "allocated",
              "partially_returned",
              "returned"
            ],
            "title": "Status"
          },
          "expires_at": {
            "type": "string",
            "title": "Expires At"
          },
          "device_ids": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Device Ids"
          },
          "imeis": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Imeis"
          },
          "unit_price": {
            "type": "string",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
            "title": "Unit Price"
          },
          "currency": {
            "type": "string",
            "title": "Currency"
          },
          "version": {
            "type": "integer",
            "title": "Version"
          },
          "created_at": {
            "type": "string",
            "title": "Created At"
          },
          "returned_device_ids": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Returned Device Ids"
          }
        },
        "type": "object",
        "required": [
          "id",
          "stock_id",
          "wanted_id",
          "order_id",
          "customer_name",
          "product",
          "status",
          "expires_at",
          "device_ids",
          "imeis",
          "unit_price",
          "currency",
          "version",
          "created_at",
          "returned_device_ids"
        ],
        "title": "ReservationOut"
      },
      "ReservationPage": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/ReservationOut"
            },
            "type": "array",
            "title": "Items"
          },
          "total": {
            "type": "integer",
            "title": "Total"
          }
        },
        "type": "object",
        "required": [
          "items",
          "total"
        ],
        "title": "ReservationPage"
      },
      "ReserveIn": {
        "properties": {
          "stock_id": {
            "type": "string",
            "maxLength": 36,
            "minLength": 1,
            "title": "Stock Id"
          },
          "wanted_id": {
            "type": "string",
            "maxLength": 36,
            "minLength": 1,
            "title": "Wanted Id"
          },
          "stock_version": {
            "type": "integer",
            "minimum": 1.0,
            "title": "Stock Version"
          },
          "wanted_version": {
            "type": "integer",
            "minimum": 1.0,
            "title": "Wanted Version"
          },
          "device_ids": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "maxItems": 100,
            "minItems": 1,
            "title": "Device Ids"
          },
          "hold_minutes": {
            "type": "integer",
            "maximum": 10080.0,
            "minimum": 5.0,
            "title": "Hold Minutes"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "stock_id",
          "wanted_id",
          "stock_version",
          "wanted_version",
          "device_ids",
          "hold_minutes"
        ],
        "title": "ReserveIn"
      },
      "Resolve": {
        "properties": {
          "request_key": {
            "type": "string",
            "format": "uuid",
            "title": "Request Key"
          },
          "reviewed": {
            "type": "boolean",
            "title": "Reviewed"
          },
          "version": {
            "type": "integer",
            "minimum": 1.0,
            "title": "Version"
          },
          "action": {
            "type": "string",
            "const": "resolve",
            "title": "Action"
          },
          "simulation_id": {
            "type": "string",
            "format": "uuid",
            "title": "Simulation Id"
          },
          "note": {
            "type": "string",
            "maxLength": 1000,
            "minLength": 10,
            "title": "Note"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "request_key",
          "reviewed",
          "version",
          "action",
          "simulation_id",
          "note"
        ],
        "title": "Resolve"
      },
      "RetireIn": {
        "properties": {
          "version": {
            "type": "integer",
            "minimum": 1.0,
            "title": "Version"
          },
          "reason": {
            "type": "string",
            "maxLength": 300,
            "minLength": 4,
            "title": "Reason"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "version",
          "reason"
        ],
        "title": "RetireIn"
      },
      "Review-Output": {
        "properties": {
          "sending_enabled": {
            "type": "boolean",
            "title": "Sending Enabled",
            "default": false
          },
          "delivery_status": {
            "type": "string",
            "enum": [
              "not_sent",
              "unverified"
            ],
            "title": "Delivery Status",
            "default": "not_sent"
          },
          "proposed_sender": {
            "type": "string",
            "title": "Proposed Sender"
          },
          "record": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Record"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "type": "object",
        "required": [
          "proposed_sender",
          "record"
        ],
        "title": "Review"
      },
      "ReviewCustomer": {
        "properties": {
          "id": {
            "type": "string",
            "title": "Id"
          },
          "name": {
            "type": "string",
            "title": "Name"
          },
          "version": {
            "type": "integer",
            "title": "Version"
          }
        },
        "type": "object",
        "required": [
          "id",
          "name",
          "version"
        ],
        "title": "ReviewCustomer"
      },
      "ReviewRow": {
        "properties": {
          "number": {
            "type": "integer",
            "title": "Number"
          },
          "input": {
            "additionalProperties": {
              "type": "string"
            },
            "type": "object",
            "title": "Input"
          },
          "record": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RecordIn-Output"
              },
              {
                "type": "null"
              }
            ]
          },
          "errors": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Errors"
          },
          "warnings": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Warnings"
          }
        },
        "type": "object",
        "required": [
          "number",
          "input",
          "record",
          "errors",
          "warnings"
        ],
        "title": "ReviewRow"
      },
      "ReviewedRecord": {
        "properties": {
          "product_id": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 36
              },
              {
                "type": "null"
              }
            ],
            "title": "Product Id"
          },
          "grade_id": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 36
              },
              {
                "type": "null"
              }
            ],
            "title": "Grade Id"
          },
          "region_id": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 36
              },
              {
                "type": "null"
              }
            ],
            "title": "Region Id"
          },
          "kind": {
            "type": "string",
            "enum": [
              "offer",
              "wanted"
            ],
            "title": "Kind"
          },
          "company_id": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 36
              },
              {
                "type": "null"
              }
            ],
            "title": "Company Id"
          },
          "brand": {
            "type": "string",
            "maxLength": 80,
            "minLength": 1,
            "title": "Brand"
          },
          "model": {
            "type": "string",
            "maxLength": 120,
            "minLength": 1,
            "title": "Model"
          },
          "storage_gb": {
            "type": "integer",
            "maximum": 8192.0,
            "exclusiveMinimum": 0.0,
            "title": "Storage Gb"
          },
          "grade": {
            "type": "string",
            "maxLength": 80,
            "minLength": 1,
            "title": "Grade"
          },
          "region": {
            "type": "string",
            "maxLength": 80,
            "minLength": 1,
            "title": "Region"
          },
          "lock_status": {
            "type": "string",
            "enum": [
              "unlocked",
              "locked",
              "unknown"
            ],
            "title": "Lock Status",
            "default": "unknown"
          },
          "color": {
            "type": "string",
            "maxLength": 80,
            "title": "Color",
            "default": ""
          },
          "quantity": {
            "type": "integer",
            "maximum": 1000000.0,
            "exclusiveMinimum": 0.0,
            "title": "Quantity"
          },
          "unit_price": {
            "anyOf": [
              {
                "type": "number",
                "maximum": 9999999.99,
                "exclusiveMinimum": 0.0
              },
              {
                "type": "string",
                "pattern": "^(?!^[-+.]*$)[+-]?0*(?:\\d{0,7}|(?=[\\d.]{1,10}0*$)\\d{0,7}\\.\\d{0,2}0*$)"
              },
              {
                "type": "null"
              }
            ],
            "title": "Unit Price"
          },
          "currency": {
            "type": "string",
            "enum": [
              "USD",
              "AED",
              "PKR"
            ],
            "title": "Currency",
            "default": "USD"
          },
          "expires_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Expires At"
          },
          "status": {
            "type": "string",
            "const": "draft",
            "title": "Status",
            "default": "draft"
          },
          "notes": {
            "type": "string",
            "maxLength": 4000,
            "title": "Notes",
            "default": ""
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "kind",
          "brand",
          "model",
          "storage_gb",
          "grade",
          "region",
          "quantity"
        ],
        "title": "ReviewedRecord"
      },
      "RoutePlan": {
        "properties": {
          "scope": {
            "type": "string",
            "enum": [
              "companies",
              "stock",
              "offers",
              "wanted",
              "operations",
              "history",
              "knowledge",
              "unsupported"
            ],
            "title": "Scope"
          },
          "query": {
            "type": "string",
            "maxLength": 120,
            "title": "Query"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "scope",
          "query"
        ],
        "title": "RoutePlan"
      },
      "Selection": {
        "properties": {
          "source_id": {
            "type": "string",
            "format": "uuid",
            "title": "Source Id"
          },
          "device_ids": {
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "type": "array",
            "maxItems": 100,
            "minItems": 1,
            "title": "Device Ids"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "source_id",
          "device_ids"
        ],
        "title": "Selection"
      },
      "Simulation": {
        "properties": {
          "id": {
            "type": "string",
            "title": "Id"
          },
          "approved_version": {
            "type": "integer",
            "title": "Approved Version"
          },
          "approval_id": {
            "type": "string",
            "title": "Approval Id"
          },
          "approver_name": {
            "type": "string",
            "title": "Approver Name"
          },
          "snapshot": {
            "$ref": "#/components/schemas/phonebuzz__outbound_email__Snapshot"
          },
          "scenario": {
            "type": "string",
            "enum": [
              "accept",
              "reject",
              "uncertain",
              "interrupt"
            ],
            "title": "Scenario"
          },
          "state": {
            "type": "string",
            "enum": [
              "claimed",
              "simulated_accepted",
              "simulated_rejected",
              "uncertain",
              "blocked",
              "resolved"
            ],
            "title": "State"
          },
          "version": {
            "type": "integer",
            "title": "Version"
          },
          "claim_until": {
            "type": "integer",
            "title": "Claim Until"
          },
          "recovery_available": {
            "type": "boolean",
            "title": "Recovery Available"
          },
          "created_at": {
            "type": "string",
            "title": "Created At"
          },
          "updated_at": {
            "type": "string",
            "title": "Updated At"
          },
          "events": {
            "items": {
              "$ref": "#/components/schemas/phonebuzz__email_simulation__Event"
            },
            "type": "array",
            "title": "Events"
          }
        },
        "type": "object",
        "required": [
          "id",
          "approved_version",
          "approval_id",
          "approver_name",
          "snapshot",
          "scenario",
          "state",
          "version",
          "claim_until",
          "recovery_available",
          "created_at",
          "updated_at",
          "events"
        ],
        "title": "Simulation"
      },
      "Source": {
        "properties": {
          "kind": {
            "type": "string",
            "enum": [
              "company",
              "trading",
              "knowledge"
            ],
            "title": "Kind"
          },
          "id": {
            "type": "string",
            "title": "Id"
          },
          "title": {
            "type": "string",
            "title": "Title"
          },
          "version": {
            "type": "integer",
            "title": "Version"
          },
          "facts": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Facts"
          }
        },
        "type": "object",
        "required": [
          "kind",
          "id",
          "title",
          "version",
          "facts"
        ],
        "title": "Source"
      },
      "StaffOut": {
        "properties": {
          "id": {
            "type": "string",
            "title": "Id"
          },
          "name": {
            "type": "string",
            "title": "Name"
          },
          "role": {
            "type": "string",
            "title": "Role"
          }
        },
        "type": "object",
        "required": [
          "id",
          "name",
          "role"
        ],
        "title": "StaffOut"
      },
      "StaffPage": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/StaffOut"
            },
            "type": "array",
            "title": "Items"
          },
          "total": {
            "type": "integer",
            "title": "Total"
          }
        },
        "type": "object",
        "required": [
          "items",
          "total"
        ],
        "title": "StaffPage"
      },
      "StandardIn": {
        "properties": {
          "kind": {
            "type": "string",
            "enum": [
              "grade",
              "region"
            ],
            "title": "Kind"
          },
          "name": {
            "type": "string",
            "maxLength": 80,
            "minLength": 1,
            "title": "Name"
          },
          "definition": {
            "type": "string",
            "maxLength": 2000,
            "minLength": 4,
            "title": "Definition"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "kind",
          "name",
          "definition"
        ],
        "title": "StandardIn"
      },
      "StandardOut": {
        "properties": {
          "id": {
            "type": "string",
            "title": "Id"
          },
          "active": {
            "type": "boolean",
            "title": "Active"
          },
          "version": {
            "type": "integer",
            "title": "Version"
          },
          "created_at": {
            "type": "string",
            "title": "Created At"
          },
          "kind": {
            "type": "string",
            "enum": [
              "grade",
              "region"
            ],
            "title": "Kind"
          },
          "name": {
            "type": "string",
            "maxLength": 80,
            "minLength": 1,
            "title": "Name"
          },
          "definition": {
            "type": "string",
            "maxLength": 2000,
            "minLength": 4,
            "title": "Definition"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "id",
          "active",
          "version",
          "created_at",
          "kind",
          "name",
          "definition"
        ],
        "title": "StandardOut"
      },
      "StandardPage": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/StandardOut"
            },
            "type": "array",
            "title": "Items"
          },
          "total": {
            "type": "integer",
            "title": "Total"
          }
        },
        "type": "object",
        "required": [
          "items",
          "total"
        ],
        "title": "StandardPage"
      },
      "Start": {
        "properties": {
          "request_key": {
            "type": "string",
            "format": "uuid",
            "title": "Request Key"
          },
          "reviewed": {
            "type": "boolean",
            "title": "Reviewed"
          },
          "version": {
            "type": "integer",
            "minimum": 1.0,
            "title": "Version"
          },
          "action": {
            "type": "string",
            "const": "start",
            "title": "Action"
          },
          "conversation_version": {
            "type": "integer",
            "minimum": 1.0,
            "title": "Conversation Version"
          },
          "scenario": {
            "type": "string",
            "enum": [
              "accept",
              "reject",
              "uncertain",
              "interrupt"
            ],
            "title": "Scenario"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "request_key",
          "reviewed",
          "version",
          "action",
          "conversation_version",
          "scenario"
        ],
        "title": "Start"
      },
      "Status": {
        "properties": {
          "state": {
            "type": "string",
            "title": "State"
          },
          "initialized": {
            "type": "boolean",
            "title": "Initialized"
          },
          "phone_id": {
            "type": "string",
            "title": "Phone Id"
          },
          "business_id": {
            "type": "string",
            "title": "Business Id"
          },
          "version": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Version"
          },
          "activated_at": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Activated At"
          },
          "last_received_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Last Received At"
          },
          "imported": {
            "type": "integer",
            "title": "Imported"
          },
          "unsupported": {
            "type": "integer",
            "title": "Unsupported"
          },
          "older": {
            "type": "integer",
            "title": "Older"
          },
          "duplicates": {
            "type": "integer",
            "title": "Duplicates"
          },
          "conflicts": {
            "type": "integer",
            "title": "Conflicts"
          }
        },
        "type": "object",
        "required": [
          "state",
          "initialized",
          "phone_id",
          "business_id",
          "version",
          "activated_at",
          "last_received_at",
          "imported",
          "unsupported",
          "older",
          "duplicates",
          "conflicts"
        ],
        "title": "Status"
      },
      "Submit": {
        "properties": {
          "question": {
            "type": "string",
            "maxLength": 500,
            "minLength": 3,
            "title": "Question"
          },
          "family": {
            "type": "string",
            "maxLength": 80,
            "minLength": 3,
            "title": "Family"
          },
          "corrected": {
            "$ref": "#/components/schemas/RoutePlan"
          },
          "rationale": {
            "type": "string",
            "maxLength": 500,
            "minLength": 4,
            "title": "Rationale"
          },
          "receipt": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 6000
              },
              {
                "type": "null"
              }
            ],
            "title": "Receipt"
          },
          "confirmed": {
            "type": "boolean",
            "title": "Confirmed"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "question",
          "family",
          "corrected",
          "rationale",
          "confirmed"
        ],
        "title": "Submit"
      },
      "Summary": {
        "properties": {
          "channel": {
            "type": "string",
            "enum": [
              "email",
              "whatsapp"
            ],
            "title": "Channel"
          },
          "correspondent_phone": {
            "type": "string",
            "title": "Correspondent Phone"
          },
          "id": {
            "type": "string",
            "title": "Id"
          },
          "subject": {
            "type": "string",
            "title": "Subject"
          },
          "correspondent_email": {
            "type": "string",
            "title": "Correspondent Email"
          },
          "company_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Company Id"
          },
          "company_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Company Name"
          },
          "company_status": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Company Status"
          },
          "assignee_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Assignee Id"
          },
          "assignee_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Assignee Name"
          },
          "assignee_active": {
            "type": "boolean",
            "title": "Assignee Active"
          },
          "status": {
            "type": "string",
            "enum": [
              "open",
              "closed"
            ],
            "title": "Status"
          },
          "has_draft": {
            "type": "boolean",
            "title": "Has Draft"
          },
          "version": {
            "type": "integer",
            "title": "Version"
          },
          "created_at": {
            "type": "string",
            "title": "Created At"
          },
          "updated_at": {
            "type": "string",
            "title": "Updated At"
          }
        },
        "type": "object",
        "required": [
          "channel",
          "correspondent_phone",
          "id",
          "subject",
          "correspondent_email",
          "company_id",
          "company_name",
          "company_status",
          "assignee_id",
          "assignee_name",
          "assignee_active",
          "status",
          "has_draft",
          "version",
          "created_at",
          "updated_at"
        ],
        "title": "Summary"
      },
      "ThreadContext": {
        "properties": {
          "source_entry_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Source Entry Id"
          },
          "parent": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Parent"
          },
          "references": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "References",
            "default": []
          },
          "mode": {
            "type": "string",
            "enum": [
              "linked",
              "partial",
              "unlinked"
            ],
            "title": "Mode",
            "default": "unlinked"
          },
          "warnings": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Warnings",
            "default": []
          }
        },
        "type": "object",
        "title": "ThreadContext"
      },
      "TradingFilters-Input": {
        "properties": {
          "storage_gb": {
            "anyOf": [
              {
                "type": "integer",
                "maximum": 8192.0,
                "exclusiveMinimum": 0.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Storage Gb"
          },
          "min_quantity": {
            "anyOf": [
              {
                "type": "integer",
                "maximum": 1000000.0,
                "exclusiveMinimum": 0.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Min Quantity"
          },
          "price_limit": {
            "anyOf": [
              {
                "type": "number",
                "maximum": 9999999.99,
                "exclusiveMinimum": 0.0
              },
              {
                "type": "string",
                "pattern": "^(?!^[-+.]*$)[+-]?0*(?:\\d{0,7}|(?=[\\d.]{1,10}0*$)\\d{0,7}\\.\\d{0,2}0*$)"
              },
              {
                "type": "null"
              }
            ],
            "title": "Price Limit"
          },
          "currency": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "USD",
                  "AED",
                  "PKR"
                ]
              },
              {
                "type": "null"
              }
            ],
            "title": "Currency"
          },
          "price_comparison": {
            "type": "string",
            "enum": [
              "at_most",
              "below"
            ],
            "title": "Price Comparison",
            "default": "at_most"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "title": "TradingFilters"
      },
      "TradingFilters-Output": {
        "properties": {
          "storage_gb": {
            "anyOf": [
              {
                "type": "integer",
                "maximum": 8192.0,
                "exclusiveMinimum": 0.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Storage Gb"
          },
          "min_quantity": {
            "anyOf": [
              {
                "type": "integer",
                "maximum": 1000000.0,
                "exclusiveMinimum": 0.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Min Quantity"
          },
          "price_limit": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^(?!^[-+.]*$)[+-]?0*(?:\\d{0,7}|(?=[\\d.]{1,10}0*$)\\d{0,7}\\.\\d{0,2}0*$)"
              },
              {
                "type": "null"
              }
            ],
            "title": "Price Limit"
          },
          "currency": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "USD",
                  "AED",
                  "PKR"
                ]
              },
              {
                "type": "null"
              }
            ],
            "title": "Currency"
          },
          "price_comparison": {
            "type": "string",
            "enum": [
              "at_most",
              "below"
            ],
            "title": "Price Comparison",
            "default": "at_most"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "title": "TradingFilters"
      },
      "TradingLinkOut": {
        "properties": {
          "record_id": {
            "type": "string",
            "title": "Record Id"
          },
          "line_number": {
            "type": "integer",
            "title": "Line Number"
          },
          "kind": {
            "type": "string",
            "title": "Kind"
          },
          "title": {
            "type": "string",
            "title": "Title"
          },
          "status": {
            "type": "string",
            "title": "Status"
          }
        },
        "type": "object",
        "required": [
          "record_id",
          "line_number",
          "kind",
          "title",
          "status"
        ],
        "title": "TradingLinkOut"
      },
      "Transfer": {
        "properties": {
          "version": {
            "type": "integer",
            "minimum": 1.0,
            "title": "Version"
          },
          "reason": {
            "type": "string",
            "maxLength": 300,
            "minLength": 4,
            "title": "Reason"
          },
          "destination_id": {
            "type": "string",
            "maxLength": 36,
            "minLength": 1,
            "title": "Destination Id"
          },
          "destination_version": {
            "type": "integer",
            "minimum": 1.0,
            "title": "Destination Version"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "version",
          "reason",
          "destination_id",
          "destination_version"
        ],
        "title": "Transfer"
      },
      "UserIn": {
        "properties": {
          "name": {
            "type": "string",
            "maxLength": 120,
            "minLength": 2,
            "title": "Name"
          },
          "email": {
            "type": "string",
            "format": "email",
            "title": "Email"
          },
          "password": {
            "type": "string",
            "maxLength": 256,
            "minLength": 12,
            "title": "Password"
          },
          "role": {
            "type": "string",
            "enum": [
              "admin",
              "trader",
              "viewer"
            ],
            "title": "Role",
            "default": "trader"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "name",
          "email",
          "password"
        ],
        "title": "UserIn"
      },
      "UserOut": {
        "properties": {
          "id": {
            "type": "string",
            "title": "Id"
          },
          "name": {
            "type": "string",
            "title": "Name"
          },
          "email": {
            "type": "string",
            "title": "Email"
          },
          "role": {
            "type": "string",
            "enum": [
              "admin",
              "trader",
              "viewer"
            ],
            "title": "Role"
          },
          "active": {
            "type": "boolean",
            "title": "Active"
          },
          "created_at": {
            "type": "string",
            "title": "Created At"
          }
        },
        "type": "object",
        "required": [
          "id",
          "name",
          "email",
          "role",
          "active",
          "created_at"
        ],
        "title": "UserOut"
      },
      "ValidationError": {
        "properties": {
          "loc": {
            "items": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "integer"
                }
              ]
            },
            "type": "array",
            "title": "Location"
          },
          "msg": {
            "type": "string",
            "title": "Message"
          },
          "type": {
            "type": "string",
            "title": "Error Type"
          },
          "input": {
            "title": "Input"
          },
          "ctx": {
            "type": "object",
            "title": "Context"
          }
        },
        "type": "object",
        "required": [
          "loc",
          "msg",
          "type"
        ],
        "title": "ValidationError"
      },
      "VersionIn": {
        "properties": {
          "version": {
            "type": "integer",
            "minimum": 1.0,
            "title": "Version"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "version"
        ],
        "title": "VersionIn"
      },
      "WarehouseIn": {
        "properties": {
          "code": {
            "type": "string",
            "maxLength": 24,
            "minLength": 2,
            "pattern": "^[A-Z0-9][A-Z0-9-]+$",
            "title": "Code"
          },
          "name": {
            "type": "string",
            "maxLength": 120,
            "minLength": 2,
            "title": "Name"
          },
          "address": {
            "type": "string",
            "maxLength": 300,
            "title": "Address",
            "default": ""
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "code",
          "name"
        ],
        "title": "WarehouseIn"
      },
      "WarehouseOut": {
        "properties": {
          "code": {
            "type": "string",
            "maxLength": 24,
            "minLength": 2,
            "pattern": "^[A-Z0-9][A-Z0-9-]+$",
            "title": "Code"
          },
          "name": {
            "type": "string",
            "maxLength": 120,
            "minLength": 2,
            "title": "Name"
          },
          "address": {
            "type": "string",
            "maxLength": 300,
            "title": "Address",
            "default": ""
          },
          "id": {
            "type": "string",
            "title": "Id"
          },
          "active": {
            "type": "boolean",
            "title": "Active"
          },
          "version": {
            "type": "integer",
            "title": "Version"
          },
          "on_hand": {
            "type": "integer",
            "title": "On Hand"
          },
          "incoming": {
            "type": "integer",
            "title": "Incoming"
          },
          "outgoing": {
            "type": "integer",
            "title": "Outgoing"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "code",
          "name",
          "id",
          "active",
          "version",
          "on_hand",
          "incoming",
          "outgoing"
        ],
        "title": "WarehouseOut"
      },
      "WarehousePage": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/WarehouseOut"
            },
            "type": "array",
            "title": "Items"
          },
          "total": {
            "type": "integer",
            "title": "Total"
          }
        },
        "type": "object",
        "required": [
          "items",
          "total"
        ],
        "title": "WarehousePage"
      },
      "WorkerObservation": {
        "properties": {
          "worker": {
            "type": "string",
            "enum": [
              "ai",
              "mailbox",
              "push"
            ],
            "title": "Worker"
          },
          "expected": {
            "type": "boolean",
            "title": "Expected"
          },
          "status": {
            "type": "string",
            "enum": [
              "not_expected",
              "never_seen",
              "clock_skew",
              "stale",
              "error",
              "running",
              "recent"
            ],
            "title": "Status"
          },
          "seen_at": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Seen At"
          },
          "completed_at": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Completed At"
          },
          "phase": {
            "type": "string",
            "enum": [
              "never",
              "running",
              "completed",
              "error"
            ],
            "title": "Phase"
          },
          "recorded_issue": {
            "type": "string",
            "title": "Recorded Issue"
          }
        },
        "type": "object",
        "required": [
          "worker",
          "expected",
          "status",
          "seen_at",
          "completed_at",
          "phase",
          "recorded_issue"
        ],
        "title": "WorkerObservation"
      },
      "WorkloadCounts": {
        "properties": {
          "open_inbox": {
            "type": "integer",
            "minimum": 0.0,
            "title": "Open Inbox"
          },
          "unassigned_inbox": {
            "type": "integer",
            "minimum": 0.0,
            "title": "Unassigned Inbox"
          },
          "my_inbox": {
            "type": "integer",
            "minimum": 0.0,
            "title": "My Inbox"
          },
          "overdue_followups": {
            "type": "integer",
            "minimum": 0.0,
            "title": "Overdue Followups"
          },
          "my_overdue_followups": {
            "type": "integer",
            "minimum": 0.0,
            "title": "My Overdue Followups"
          },
          "followups_due_24h": {
            "type": "integer",
            "minimum": 0.0,
            "title": "Followups Due 24H"
          },
          "pending_quotes": {
            "type": "integer",
            "minimum": 0.0,
            "title": "Pending Quotes"
          },
          "pending_orders": {
            "type": "integer",
            "minimum": 0.0,
            "title": "Pending Orders"
          },
          "expired_order_holds": {
            "type": "integer",
            "minimum": 0.0,
            "title": "Expired Order Holds"
          },
          "orders_awaiting_dispatch": {
            "type": "integer",
            "minimum": 0.0,
            "title": "Orders Awaiting Dispatch"
          },
          "orders_in_delivery": {
            "type": "integer",
            "minimum": 0.0,
            "title": "Orders In Delivery"
          },
          "quarantined_devices": {
            "type": "integer",
            "minimum": 0.0,
            "title": "Quarantined Devices"
          },
          "devices_in_transit": {
            "type": "integer",
            "minimum": 0.0,
            "title": "Devices In Transit"
          },
          "overdue_invoices": {
            "type": "integer",
            "minimum": 0.0,
            "title": "Overdue Invoices"
          },
          "billing_needs_review": {
            "type": "integer",
            "minimum": 0.0,
            "title": "Billing Needs Review"
          }
        },
        "type": "object",
        "required": [
          "open_inbox",
          "unassigned_inbox",
          "my_inbox",
          "overdue_followups",
          "my_overdue_followups",
          "followups_due_24h",
          "pending_quotes",
          "pending_orders",
          "expired_order_holds",
          "orders_awaiting_dispatch",
          "orders_in_delivery",
          "quarantined_devices",
          "devices_in_transit",
          "overdue_invoices",
          "billing_needs_review"
        ],
        "title": "WorkloadCounts"
      },
      "phonebuzz__assistant_feedback__Review": {
        "properties": {
          "version": {
            "type": "integer",
            "minimum": 1.0,
            "title": "Version"
          },
          "action": {
            "type": "string",
            "enum": [
              "approved",
              "holdout",
              "rejected",
              "retired"
            ],
            "title": "Action"
          },
          "corrected": {
            "$ref": "#/components/schemas/RoutePlan"
          },
          "confirmed": {
            "type": "boolean",
            "title": "Confirmed"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "version",
          "action",
          "corrected",
          "confirmed"
        ],
        "title": "Review"
      },
      "phonebuzz__billing__Create": {
        "properties": {
          "issuer_name": {
            "type": "string",
            "maxLength": 160,
            "title": "Issuer Name",
            "default": ""
          },
          "issuer_address": {
            "type": "string",
            "maxLength": 600,
            "title": "Issuer Address",
            "default": ""
          },
          "issuer_country": {
            "type": "string",
            "maxLength": 80,
            "title": "Issuer Country",
            "default": ""
          },
          "issuer_tax_id": {
            "type": "string",
            "maxLength": 80,
            "title": "Issuer Tax Id",
            "default": ""
          },
          "customer_address": {
            "type": "string",
            "maxLength": 600,
            "title": "Customer Address",
            "default": ""
          },
          "customer_tax_id": {
            "type": "string",
            "maxLength": 80,
            "title": "Customer Tax Id",
            "default": ""
          },
          "tax_name": {
            "type": "string",
            "maxLength": 80,
            "title": "Tax Name",
            "default": ""
          },
          "tax_rate": {
            "anyOf": [
              {
                "type": "number",
                "maximum": 100.0,
                "minimum": 0.0
              },
              {
                "type": "string",
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$"
              },
              {
                "type": "null"
              }
            ],
            "title": "Tax Rate"
          },
          "tax_note": {
            "type": "string",
            "maxLength": 600,
            "title": "Tax Note",
            "default": ""
          },
          "due_at": {
            "type": "string",
            "format": "date-time",
            "title": "Due At"
          },
          "note": {
            "type": "string",
            "maxLength": 2000,
            "title": "Note",
            "default": ""
          },
          "order_id": {
            "type": "string",
            "format": "uuid",
            "title": "Order Id"
          },
          "order_version": {
            "type": "integer",
            "minimum": 1.0,
            "title": "Order Version"
          },
          "request_key": {
            "type": "string",
            "format": "uuid",
            "title": "Request Key"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "due_at",
          "order_id",
          "order_version",
          "request_key"
        ],
        "title": "Create"
      },
      "phonebuzz__billing__Edit": {
        "properties": {
          "issuer_name": {
            "type": "string",
            "maxLength": 160,
            "title": "Issuer Name",
            "default": ""
          },
          "issuer_address": {
            "type": "string",
            "maxLength": 600,
            "title": "Issuer Address",
            "default": ""
          },
          "issuer_country": {
            "type": "string",
            "maxLength": 80,
            "title": "Issuer Country",
            "default": ""
          },
          "issuer_tax_id": {
            "type": "string",
            "maxLength": 80,
            "title": "Issuer Tax Id",
            "default": ""
          },
          "customer_address": {
            "type": "string",
            "maxLength": 600,
            "title": "Customer Address",
            "default": ""
          },
          "customer_tax_id": {
            "type": "string",
            "maxLength": 80,
            "title": "Customer Tax Id",
            "default": ""
          },
          "tax_name": {
            "type": "string",
            "maxLength": 80,
            "title": "Tax Name",
            "default": ""
          },
          "tax_rate": {
            "anyOf": [
              {
                "type": "number",
                "maximum": 100.0,
                "minimum": 0.0
              },
              {
                "type": "string",
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$"
              },
              {
                "type": "null"
              }
            ],
            "title": "Tax Rate"
          },
          "tax_note": {
            "type": "string",
            "maxLength": 600,
            "title": "Tax Note",
            "default": ""
          },
          "due_at": {
            "type": "string",
            "format": "date-time",
            "title": "Due At"
          },
          "note": {
            "type": "string",
            "maxLength": 2000,
            "title": "Note",
            "default": ""
          },
          "version": {
            "type": "integer",
            "minimum": 1.0,
            "title": "Version"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "due_at",
          "version"
        ],
        "title": "Edit"
      },
      "phonebuzz__company_history__Event": {
        "properties": {
          "id": {
            "type": "string",
            "title": "Id"
          },
          "kind": {
            "type": "string",
            "enum": [
              "quotation",
              "order"
            ],
            "title": "Kind"
          },
          "record_id": {
            "type": "string",
            "title": "Record Id"
          },
          "reference": {
            "type": "string",
            "title": "Reference"
          },
          "version": {
            "type": "integer",
            "title": "Version"
          },
          "action": {
            "type": "string",
            "title": "Action"
          },
          "state": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "State"
          },
          "actor_name": {
            "type": "string",
            "title": "Actor Name"
          },
          "recorded_at": {
            "type": "string",
            "title": "Recorded At"
          }
        },
        "type": "object",
        "required": [
          "id",
          "kind",
          "record_id",
          "reference",
          "version",
          "action",
          "state",
          "actor_name",
          "recorded_at"
        ],
        "title": "Event"
      },
      "phonebuzz__company_history__HistoryPage": {
        "properties": {
          "as_of": {
            "type": "string",
            "title": "As Of"
          },
          "company_id": {
            "type": "string",
            "title": "Company Id"
          },
          "company_name": {
            "type": "string",
            "title": "Company Name"
          },
          "company_status": {
            "type": "string",
            "title": "Company Status"
          },
          "start": {
            "type": "string",
            "title": "Start"
          },
          "end": {
            "type": "string",
            "title": "End"
          },
          "kind": {
            "type": "string",
            "title": "Kind"
          },
          "total": {
            "type": "integer",
            "title": "Total"
          },
          "quotation_count": {
            "type": "integer",
            "title": "Quotation Count"
          },
          "order_count": {
            "type": "integer",
            "title": "Order Count"
          },
          "items": {
            "items": {
              "$ref": "#/components/schemas/phonebuzz__company_history__Event"
            },
            "type": "array",
            "title": "Items"
          }
        },
        "type": "object",
        "required": [
          "as_of",
          "company_id",
          "company_name",
          "company_status",
          "start",
          "end",
          "kind",
          "total",
          "quotation_count",
          "order_count",
          "items"
        ],
        "title": "HistoryPage"
      },
      "phonebuzz__delivery_investigations__Command": {
        "properties": {
          "attempt_id": {
            "type": "string",
            "format": "uuid",
            "title": "Attempt Id"
          },
          "version": {
            "type": "integer",
            "minimum": 0.0,
            "title": "Version"
          },
          "evidence_token": {
            "type": "string",
            "pattern": "^[0-9a-f]{64}$",
            "title": "Evidence Token"
          },
          "status": {
            "type": "string",
            "enum": [
              "investigating",
              "reviewed"
            ],
            "title": "Status"
          },
          "note": {
            "type": "string",
            "maxLength": 2000,
            "minLength": 10,
            "title": "Note"
          },
          "confirmed": {
            "type": "boolean",
            "title": "Confirmed"
          },
          "request_key": {
            "type": "string",
            "format": "uuid",
            "title": "Request Key"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "attempt_id",
          "version",
          "evidence_token",
          "status",
          "note",
          "confirmed",
          "request_key"
        ],
        "title": "Command"
      },
      "phonebuzz__delivery_investigations__Entry": {
        "properties": {
          "id": {
            "type": "string",
            "title": "Id"
          },
          "version": {
            "type": "integer",
            "title": "Version"
          },
          "status": {
            "type": "string",
            "enum": [
              "investigating",
              "reviewed"
            ],
            "title": "Status"
          },
          "note": {
            "type": "string",
            "title": "Note"
          },
          "evidence_token": {
            "type": "string",
            "title": "Evidence Token"
          },
          "report_count": {
            "type": "integer",
            "title": "Report Count"
          },
          "actor_name": {
            "type": "string",
            "title": "Actor Name"
          },
          "created_at": {
            "type": "string",
            "title": "Created At"
          }
        },
        "type": "object",
        "required": [
          "id",
          "version",
          "status",
          "note",
          "evidence_token",
          "report_count",
          "actor_name",
          "created_at"
        ],
        "title": "Entry"
      },
      "phonebuzz__delivery_investigations__Ledger": {
        "properties": {
          "attempt_id": {
            "type": "string",
            "title": "Attempt Id"
          },
          "version": {
            "type": "integer",
            "title": "Version"
          },
          "status": {
            "type": "string",
            "enum": [
              "none",
              "needs_review",
              "investigating",
              "reviewed"
            ],
            "title": "Status"
          },
          "new_evidence": {
            "type": "boolean",
            "title": "New Evidence"
          },
          "evidence_token": {
            "type": "string",
            "title": "Evidence Token"
          },
          "report_count": {
            "type": "integer",
            "title": "Report Count"
          },
          "can_record": {
            "type": "boolean",
            "title": "Can Record"
          },
          "limit_reason": {
            "type": "string",
            "title": "Limit Reason"
          },
          "delivery_verified": {
            "type": "boolean",
            "const": false,
            "title": "Delivery Verified",
            "default": false
          },
          "items": {
            "items": {
              "$ref": "#/components/schemas/phonebuzz__delivery_investigations__Entry"
            },
            "type": "array",
            "title": "Items"
          },
          "reports": {
            "$ref": "#/components/schemas/Evidence"
          },
          "total": {
            "type": "integer",
            "title": "Total"
          }
        },
        "type": "object",
        "required": [
          "attempt_id",
          "version",
          "status",
          "new_evidence",
          "evidence_token",
          "report_count",
          "can_record",
          "limit_reason",
          "items",
          "reports",
          "total"
        ],
        "title": "Ledger"
      },
      "phonebuzz__delivery_reports__Report": {
        "properties": {
          "id": {
            "type": "string",
            "title": "Id"
          },
          "source_id": {
            "type": "string",
            "title": "Source Id"
          },
          "source_conversation_id": {
            "type": "string",
            "title": "Source Conversation Id"
          },
          "source_uid": {
            "type": "integer",
            "title": "Source Uid"
          },
          "source_hash": {
            "type": "string",
            "title": "Source Hash"
          },
          "source_sender": {
            "type": "string",
            "title": "Source Sender"
          },
          "source_subject": {
            "type": "string",
            "title": "Source Subject"
          },
          "mailbox_date": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Mailbox Date"
          },
          "received_at": {
            "type": "string",
            "title": "Received At"
          },
          "disposition": {
            "type": "string",
            "enum": [
              "linked",
              "unmatched",
              "unsupported"
            ],
            "title": "Disposition"
          },
          "attempt_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Attempt Id"
          },
          "action": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "failed",
                  "delayed",
                  "delivered",
                  "relayed",
                  "expanded"
                ]
              },
              {
                "type": "null"
              }
            ],
            "title": "Action"
          },
          "status": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Status"
          },
          "original_message_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Original Message Id"
          },
          "recipient": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Recipient"
          },
          "reporting_mta": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Reporting Mta"
          },
          "diagnostic": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Diagnostic"
          },
          "reason": {
            "type": "string",
            "title": "Reason"
          },
          "verified": {
            "type": "boolean",
            "const": false,
            "title": "Verified",
            "default": false
          }
        },
        "type": "object",
        "required": [
          "id",
          "source_id",
          "source_conversation_id",
          "source_uid",
          "source_hash",
          "source_sender",
          "source_subject",
          "mailbox_date",
          "received_at",
          "disposition",
          "attempt_id",
          "action",
          "status",
          "original_message_id",
          "recipient",
          "reporting_mta",
          "diagnostic",
          "reason"
        ],
        "title": "Report"
      },
      "phonebuzz__device_care__HistoryPage": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/HistoryEvent"
            },
            "type": "array",
            "title": "Items"
          },
          "total": {
            "type": "integer",
            "title": "Total"
          }
        },
        "type": "object",
        "required": [
          "items",
          "total"
        ],
        "title": "HistoryPage"
      },
      "phonebuzz__device_care__Snapshot": {
        "properties": {
          "lot_id": {
            "type": "string",
            "title": "Lot Id"
          },
          "product": {
            "type": "string",
            "title": "Product"
          },
          "specification": {
            "type": "string",
            "title": "Specification"
          },
          "imei": {
            "type": "string",
            "title": "Imei"
          },
          "secondary_imei": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Secondary Imei"
          },
          "status": {
            "type": "string",
            "title": "Status"
          }
        },
        "type": "object",
        "required": [
          "lot_id",
          "product",
          "specification",
          "imei",
          "secondary_imei",
          "status"
        ],
        "title": "Snapshot"
      },
      "phonebuzz__email_attempts__Event": {
        "properties": {
          "version": {
            "type": "integer",
            "title": "Version"
          },
          "state": {
            "type": "string",
            "enum": [
              "claimed",
              "handing_off",
              "completed",
              "uncertain",
              "blocked",
              "reviewed"
            ],
            "title": "State"
          },
          "actor_name": {
            "type": "string",
            "title": "Actor Name"
          },
          "note": {
            "type": "string",
            "title": "Note"
          },
          "created_at": {
            "type": "string",
            "title": "Created At"
          }
        },
        "type": "object",
        "required": [
          "version",
          "state",
          "actor_name",
          "note",
          "created_at"
        ],
        "title": "Event"
      },
      "phonebuzz__email_attempts__Ledger": {
        "properties": {
          "sending_enabled": {
            "type": "boolean",
            "title": "Sending Enabled",
            "default": false
          },
          "as_of": {
            "type": "integer",
            "title": "As Of"
          },
          "items": {
            "items": {
              "$ref": "#/components/schemas/Attempt"
            },
            "type": "array",
            "title": "Items"
          },
          "total": {
            "type": "integer",
            "title": "Total"
          }
        },
        "type": "object",
        "required": [
          "as_of",
          "items",
          "total"
        ],
        "title": "Ledger"
      },
      "phonebuzz__email_attempts__Review": {
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "recover",
              "review"
            ],
            "title": "Action"
          },
          "attempt_id": {
            "type": "string",
            "format": "uuid",
            "title": "Attempt Id"
          },
          "version": {
            "type": "integer",
            "minimum": 1.0,
            "title": "Version"
          },
          "request_key": {
            "type": "string",
            "format": "uuid",
            "title": "Request Key"
          },
          "workers_stopped": {
            "type": "boolean",
            "title": "Workers Stopped"
          },
          "reviewed": {
            "type": "boolean",
            "title": "Reviewed"
          },
          "note": {
            "type": "string",
            "maxLength": 1000,
            "minLength": 10,
            "title": "Note"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "action",
          "attempt_id",
          "version",
          "request_key",
          "workers_stopped",
          "reviewed",
          "note"
        ],
        "title": "Review"
      },
      "phonebuzz__email_attention__Page": {
        "properties": {
          "as_of": {
            "type": "integer",
            "title": "As Of"
          },
          "items": {
            "items": {
              "$ref": "#/components/schemas/Item"
            },
            "type": "array",
            "title": "Items"
          },
          "total": {
            "type": "integer",
            "title": "Total"
          }
        },
        "type": "object",
        "required": [
          "as_of",
          "items",
          "total"
        ],
        "title": "Page"
      },
      "phonebuzz__email_case_plans__Command": {
        "properties": {
          "attempt_id": {
            "type": "string",
            "format": "uuid",
            "title": "Attempt Id"
          },
          "version": {
            "type": "integer",
            "minimum": 0.0,
            "title": "Version"
          },
          "owner_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Owner Id"
          },
          "due_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Due At"
          },
          "note": {
            "type": "string",
            "maxLength": 1000,
            "minLength": 10,
            "title": "Note"
          },
          "request_key": {
            "type": "string",
            "format": "uuid",
            "title": "Request Key"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "attempt_id",
          "version",
          "owner_id",
          "due_at",
          "note",
          "request_key"
        ],
        "title": "Command"
      },
      "phonebuzz__email_case_plans__Entry": {
        "properties": {
          "version": {
            "type": "integer",
            "title": "Version"
          },
          "owner_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Owner Id"
          },
          "owner_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Owner Name"
          },
          "due_at": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Due At"
          },
          "note": {
            "type": "string",
            "title": "Note"
          },
          "actor_name": {
            "type": "string",
            "title": "Actor Name"
          },
          "created_at": {
            "type": "string",
            "title": "Created At"
          }
        },
        "type": "object",
        "required": [
          "version",
          "owner_id",
          "owner_name",
          "due_at",
          "note",
          "actor_name",
          "created_at"
        ],
        "title": "Entry"
      },
      "phonebuzz__email_case_plans__Ledger": {
        "properties": {
          "attempt_id": {
            "type": "string",
            "title": "Attempt Id"
          },
          "version": {
            "type": "integer",
            "title": "Version"
          },
          "owner_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Owner Id"
          },
          "owner_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Owner Name"
          },
          "owner_available": {
            "type": "boolean",
            "title": "Owner Available"
          },
          "due_at": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Due At"
          },
          "as_of": {
            "type": "integer",
            "title": "As Of"
          },
          "can_edit": {
            "type": "boolean",
            "title": "Can Edit"
          },
          "items": {
            "items": {
              "$ref": "#/components/schemas/phonebuzz__email_case_plans__Entry"
            },
            "type": "array",
            "title": "Items"
          },
          "total": {
            "type": "integer",
            "title": "Total"
          }
        },
        "type": "object",
        "required": [
          "attempt_id",
          "version",
          "owner_id",
          "owner_name",
          "owner_available",
          "due_at",
          "as_of",
          "can_edit",
          "items",
          "total"
        ],
        "title": "Ledger"
      },
      "phonebuzz__email_dispatch__Command": {
        "properties": {
          "approved_version": {
            "type": "integer",
            "minimum": 1.0,
            "title": "Approved Version"
          },
          "sha256": {
            "type": "string",
            "pattern": "^[0-9a-f]{64}$",
            "title": "Sha256"
          },
          "request_key": {
            "type": "string",
            "format": "uuid",
            "title": "Request Key"
          },
          "confirmed": {
            "type": "boolean",
            "title": "Confirmed"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "approved_version",
          "sha256",
          "request_key",
          "confirmed"
        ],
        "title": "Command"
      },
      "phonebuzz__email_simulation__Event": {
        "properties": {
          "version": {
            "type": "integer",
            "title": "Version"
          },
          "state": {
            "type": "string",
            "enum": [
              "claimed",
              "simulated_accepted",
              "simulated_rejected",
              "uncertain",
              "blocked",
              "resolved"
            ],
            "title": "State"
          },
          "actor_name": {
            "type": "string",
            "title": "Actor Name"
          },
          "note": {
            "type": "string",
            "title": "Note"
          },
          "created_at": {
            "type": "string",
            "title": "Created At"
          }
        },
        "type": "object",
        "required": [
          "version",
          "state",
          "actor_name",
          "note",
          "created_at"
        ],
        "title": "Event"
      },
      "phonebuzz__email_simulation__Ledger": {
        "properties": {
          "mode": {
            "type": "string",
            "const": "simulation",
            "title": "Mode",
            "default": "simulation"
          },
          "sending_enabled": {
            "type": "boolean",
            "const": false,
            "title": "Sending Enabled",
            "default": false
          },
          "delivery_status": {
            "type": "string",
            "const": "not_sent",
            "title": "Delivery Status",
            "default": "not_sent"
          },
          "as_of": {
            "type": "integer",
            "title": "As Of"
          },
          "can_start": {
            "type": "boolean",
            "title": "Can Start"
          },
          "blocked_reason": {
            "type": "string",
            "title": "Blocked Reason"
          },
          "items": {
            "items": {
              "$ref": "#/components/schemas/Simulation"
            },
            "type": "array",
            "title": "Items"
          },
          "total": {
            "type": "integer",
            "title": "Total"
          }
        },
        "type": "object",
        "required": [
          "as_of",
          "can_start",
          "blocked_reason",
          "items",
          "total"
        ],
        "title": "Ledger"
      },
      "phonebuzz__email_simulation__Recover": {
        "properties": {
          "request_key": {
            "type": "string",
            "format": "uuid",
            "title": "Request Key"
          },
          "reviewed": {
            "type": "boolean",
            "title": "Reviewed"
          },
          "version": {
            "type": "integer",
            "minimum": 1.0,
            "title": "Version"
          },
          "action": {
            "type": "string",
            "const": "recover",
            "title": "Action"
          },
          "simulation_id": {
            "type": "string",
            "format": "uuid",
            "title": "Simulation Id"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "request_key",
          "reviewed",
          "version",
          "action",
          "simulation_id"
        ],
        "title": "Recover"
      },
      "phonebuzz__email_trading__Review": {
        "properties": {
          "entry_id": {
            "type": "string",
            "format": "uuid",
            "title": "Entry Id"
          },
          "version": {
            "type": "integer",
            "minimum": 1.0,
            "title": "Version"
          },
          "line_number": {
            "type": "integer",
            "maximum": 100.0,
            "minimum": 1.0,
            "title": "Line Number"
          },
          "request_key": {
            "type": "string",
            "format": "uuid",
            "title": "Request Key"
          },
          "reviewed": {
            "type": "boolean",
            "const": true,
            "title": "Reviewed"
          },
          "record": {
            "$ref": "#/components/schemas/ReviewedRecord"
          },
          "extraction_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Extraction Id"
          },
          "extraction_item": {
            "anyOf": [
              {
                "type": "integer",
                "maximum": 9.0,
                "minimum": 0.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Extraction Item"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "entry_id",
          "version",
          "line_number",
          "request_key",
          "reviewed",
          "record"
        ],
        "title": "Review"
      },
      "phonebuzz__followups__Action": {
        "properties": {
          "version": {
            "type": "integer",
            "minimum": 1.0,
            "title": "Version"
          },
          "action": {
            "type": "string",
            "enum": [
              "complete",
              "cancel",
              "reopen"
            ],
            "title": "Action"
          },
          "reason": {
            "type": "string",
            "maxLength": 1000,
            "minLength": 3,
            "title": "Reason"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "version",
          "action",
          "reason"
        ],
        "title": "Action"
      },
      "phonebuzz__followups__Create": {
        "properties": {
          "title": {
            "type": "string",
            "maxLength": 160,
            "minLength": 3,
            "title": "Title"
          },
          "notes": {
            "type": "string",
            "maxLength": 2000,
            "title": "Notes",
            "default": ""
          },
          "owner_id": {
            "type": "string",
            "format": "uuid",
            "title": "Owner Id"
          },
          "due_at": {
            "type": "string",
            "format": "date-time",
            "title": "Due At"
          },
          "quotation_id": {
            "type": "string",
            "format": "uuid",
            "title": "Quotation Id"
          },
          "quotation_version": {
            "type": "integer",
            "minimum": 1.0,
            "title": "Quotation Version"
          },
          "request_key": {
            "type": "string",
            "format": "uuid",
            "title": "Request Key"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "title",
          "owner_id",
          "due_at",
          "quotation_id",
          "quotation_version",
          "request_key"
        ],
        "title": "Create"
      },
      "phonebuzz__followups__Edit": {
        "properties": {
          "title": {
            "type": "string",
            "maxLength": 160,
            "minLength": 3,
            "title": "Title"
          },
          "notes": {
            "type": "string",
            "maxLength": 2000,
            "title": "Notes",
            "default": ""
          },
          "owner_id": {
            "type": "string",
            "format": "uuid",
            "title": "Owner Id"
          },
          "due_at": {
            "type": "string",
            "format": "date-time",
            "title": "Due At"
          },
          "version": {
            "type": "integer",
            "minimum": 1.0,
            "title": "Version"
          },
          "reason": {
            "type": "string",
            "maxLength": 1000,
            "minLength": 3,
            "title": "Reason"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "title",
          "owner_id",
          "due_at",
          "version",
          "reason"
        ],
        "title": "Edit"
      },
      "phonebuzz__inbox__Create": {
        "properties": {
          "subject": {
            "type": "string",
            "maxLength": 200,
            "minLength": 1,
            "title": "Subject"
          },
          "correspondent_email": {
            "type": "string",
            "maxLength": 254,
            "format": "email",
            "title": "Correspondent Email"
          },
          "body": {
            "type": "string",
            "maxLength": 16000,
            "minLength": 1,
            "title": "Body"
          },
          "request_key": {
            "type": "string",
            "format": "uuid",
            "title": "Request Key"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "subject",
          "correspondent_email",
          "body",
          "request_key"
        ],
        "title": "Create"
      },
      "phonebuzz__inbox__Detail": {
        "properties": {
          "channel": {
            "type": "string",
            "enum": [
              "email",
              "whatsapp"
            ],
            "title": "Channel"
          },
          "correspondent_phone": {
            "type": "string",
            "title": "Correspondent Phone"
          },
          "id": {
            "type": "string",
            "title": "Id"
          },
          "subject": {
            "type": "string",
            "title": "Subject"
          },
          "correspondent_email": {
            "type": "string",
            "title": "Correspondent Email"
          },
          "company_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Company Id"
          },
          "company_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Company Name"
          },
          "company_status": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Company Status"
          },
          "assignee_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Assignee Id"
          },
          "assignee_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Assignee Name"
          },
          "assignee_active": {
            "type": "boolean",
            "title": "Assignee Active"
          },
          "status": {
            "type": "string",
            "enum": [
              "open",
              "closed"
            ],
            "title": "Status"
          },
          "has_draft": {
            "type": "boolean",
            "title": "Has Draft"
          },
          "version": {
            "type": "integer",
            "title": "Version"
          },
          "created_at": {
            "type": "string",
            "title": "Created At"
          },
          "updated_at": {
            "type": "string",
            "title": "Updated At"
          },
          "draft_body": {
            "type": "string",
            "title": "Draft Body"
          }
        },
        "type": "object",
        "required": [
          "channel",
          "correspondent_phone",
          "id",
          "subject",
          "correspondent_email",
          "company_id",
          "company_name",
          "company_status",
          "assignee_id",
          "assignee_name",
          "assignee_active",
          "status",
          "has_draft",
          "version",
          "created_at",
          "updated_at",
          "draft_body"
        ],
        "title": "Detail"
      },
      "phonebuzz__inbox__Page": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/Summary"
            },
            "type": "array",
            "title": "Items"
          },
          "total": {
            "type": "integer",
            "title": "Total"
          }
        },
        "type": "object",
        "required": [
          "items",
          "total"
        ],
        "title": "Page"
      },
      "phonebuzz__invitations__Change": {
        "properties": {
          "password": {
            "type": "string",
            "format": "password",
            "title": "Password",
            "writeOnly": true
          },
          "code": {
            "type": "string",
            "maxLength": 64,
            "title": "Code",
            "default": ""
          },
          "version": {
            "type": "integer",
            "minimum": 1.0,
            "title": "Version"
          },
          "reviewed": {
            "type": "boolean",
            "title": "Reviewed"
          },
          "invitation_version": {
            "type": "integer",
            "minimum": 1.0,
            "title": "Invitation Version"
          },
          "action": {
            "type": "string",
            "enum": [
              "revoke",
              "reissue"
            ],
            "title": "Action"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "password",
          "version",
          "reviewed",
          "invitation_version",
          "action"
        ],
        "title": "Change"
      },
      "phonebuzz__invitations__Create": {
        "properties": {
          "password": {
            "type": "string",
            "format": "password",
            "title": "Password",
            "writeOnly": true
          },
          "code": {
            "type": "string",
            "maxLength": 64,
            "title": "Code",
            "default": ""
          },
          "version": {
            "type": "integer",
            "minimum": 1.0,
            "title": "Version"
          },
          "reviewed": {
            "type": "boolean",
            "title": "Reviewed"
          },
          "email": {
            "type": "string",
            "format": "email",
            "title": "Email"
          },
          "name": {
            "type": "string",
            "maxLength": 120,
            "minLength": 2,
            "title": "Name"
          },
          "role": {
            "type": "string",
            "enum": [
              "admin",
              "trader",
              "viewer"
            ],
            "title": "Role"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "password",
          "version",
          "reviewed",
          "email",
          "name",
          "role"
        ],
        "title": "Create"
      },
      "phonebuzz__invitations__Page": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/InvitationOut"
            },
            "type": "array",
            "title": "Items"
          },
          "total": {
            "type": "integer",
            "title": "Total"
          }
        },
        "type": "object",
        "required": [
          "items",
          "total"
        ],
        "title": "Page"
      },
      "phonebuzz__invitations__Result": {
        "properties": {
          "invitation": {
            "$ref": "#/components/schemas/InvitationOut"
          },
          "token": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Token"
          }
        },
        "type": "object",
        "required": [
          "invitation"
        ],
        "title": "Result"
      },
      "phonebuzz__knowledge__Action": {
        "properties": {
          "version": {
            "type": "integer",
            "minimum": 1.0,
            "title": "Version"
          },
          "action": {
            "type": "string",
            "enum": [
              "publish",
              "withdraw"
            ],
            "title": "Action"
          },
          "reviewed": {
            "type": "boolean",
            "title": "Reviewed"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "version",
          "action",
          "reviewed"
        ],
        "title": "Action"
      },
      "phonebuzz__knowledge__Edit": {
        "properties": {
          "title": {
            "type": "string",
            "maxLength": 160,
            "minLength": 3,
            "title": "Title"
          },
          "category": {
            "type": "string",
            "enum": [
              "grading",
              "warranty",
              "trading",
              "other"
            ],
            "title": "Category"
          },
          "body": {
            "type": "string",
            "maxLength": 8000,
            "minLength": 10,
            "title": "Body"
          },
          "source_reference": {
            "type": "string",
            "maxLength": 500,
            "minLength": 5,
            "title": "Source Reference"
          },
          "valid_from": {
            "type": "string",
            "format": "date",
            "title": "Valid From"
          },
          "valid_through": {
            "type": "string",
            "format": "date",
            "title": "Valid Through"
          },
          "version": {
            "type": "integer",
            "minimum": 1.0,
            "title": "Version"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "title",
          "category",
          "body",
          "source_reference",
          "valid_from",
          "valid_through",
          "version"
        ],
        "title": "Edit"
      },
      "phonebuzz__learning__Review": {
        "properties": {
          "version": {
            "type": "integer",
            "minimum": 1.0,
            "title": "Version"
          },
          "action": {
            "type": "string",
            "enum": [
              "approved",
              "holdout",
              "rejected",
              "retired"
            ],
            "title": "Action"
          },
          "excerpt": {
            "type": "string",
            "maxLength": 1200,
            "title": "Excerpt"
          },
          "values": {
            "additionalProperties": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "type": "object",
            "title": "Values"
          },
          "reviewed": {
            "type": "boolean",
            "title": "Reviewed"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "version",
          "action",
          "excerpt",
          "values",
          "reviewed"
        ],
        "title": "Review"
      },
      "phonebuzz__mail_attachments__Confirm": {
        "properties": {
          "version": {
            "type": "integer",
            "minimum": 1.0,
            "title": "Version"
          },
          "reviewed": {
            "type": "boolean",
            "const": true,
            "title": "Reviewed"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "version",
          "reviewed"
        ],
        "title": "Confirm"
      },
      "phonebuzz__mailbox_api__Control": {
        "properties": {
          "version": {
            "type": "integer",
            "minimum": 1.0,
            "title": "Version"
          },
          "action": {
            "type": "string",
            "enum": [
              "sync",
              "pause",
              "resume"
            ],
            "title": "Action"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "version",
          "action"
        ],
        "title": "Control"
      },
      "phonebuzz__mailbox_api__MessageOut": {
        "properties": {
          "delivery_report": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/phonebuzz__delivery_reports__Report"
              },
              {
                "type": "null"
              }
            ]
          },
          "uid": {
            "type": "integer",
            "title": "Uid"
          },
          "message_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Message Id"
          },
          "mailbox_date": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Mailbox Date"
          },
          "warning": {
            "type": "string",
            "title": "Warning"
          },
          "attachment_names": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Attachment Names"
          },
          "id": {
            "type": "string",
            "title": "Id"
          },
          "sender": {
            "type": "string",
            "title": "Sender"
          },
          "subject": {
            "type": "string",
            "title": "Subject"
          },
          "outcome": {
            "type": "string",
            "title": "Outcome"
          },
          "conversation_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Conversation Id"
          },
          "created_at": {
            "type": "string",
            "title": "Created At"
          }
        },
        "type": "object",
        "required": [
          "uid",
          "message_id",
          "mailbox_date",
          "warning",
          "attachment_names",
          "id",
          "sender",
          "subject",
          "outcome",
          "conversation_id",
          "created_at"
        ],
        "title": "MessageOut"
      },
      "phonebuzz__mailbox_api__MessagePage": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/phonebuzz__mailbox_api__MessageOut"
            },
            "type": "array",
            "title": "Items"
          },
          "total": {
            "type": "integer",
            "title": "Total"
          }
        },
        "type": "object",
        "required": [
          "items",
          "total"
        ],
        "title": "MessagePage"
      },
      "phonebuzz__mailbox_api__SourceOut": {
        "properties": {
          "delivery_report": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/phonebuzz__delivery_reports__Report"
              },
              {
                "type": "null"
              }
            ]
          },
          "uid": {
            "type": "integer",
            "title": "Uid"
          },
          "message_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Message Id"
          },
          "mailbox_date": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Mailbox Date"
          },
          "warning": {
            "type": "string",
            "title": "Warning"
          },
          "attachment_names": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Attachment Names"
          }
        },
        "type": "object",
        "required": [
          "uid",
          "message_id",
          "mailbox_date",
          "warning",
          "attachment_names"
        ],
        "title": "SourceOut"
      },
      "phonebuzz__mfa__Confirm": {
        "properties": {
          "password": {
            "type": "string",
            "format": "password",
            "title": "Password",
            "writeOnly": true
          },
          "code": {
            "type": "string",
            "maxLength": 64,
            "title": "Code",
            "default": ""
          },
          "version": {
            "type": "integer",
            "minimum": 1.0,
            "title": "Version"
          },
          "reviewed": {
            "type": "boolean",
            "title": "Reviewed"
          },
          "setup_id": {
            "type": "string",
            "maxLength": 64,
            "minLength": 32,
            "title": "Setup Id"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "password",
          "version",
          "reviewed",
          "setup_id"
        ],
        "title": "Confirm"
      },
      "phonebuzz__mfa__Recover": {
        "properties": {
          "email": {
            "type": "string",
            "format": "email",
            "title": "Email"
          },
          "token": {
            "type": "string",
            "format": "password",
            "title": "Token",
            "writeOnly": true
          },
          "new_password": {
            "type": "string",
            "format": "password",
            "title": "New Password",
            "writeOnly": true
          },
          "code": {
            "type": "string",
            "maxLength": 64,
            "title": "Code",
            "default": ""
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "email",
          "token",
          "new_password"
        ],
        "title": "Recover"
      },
      "phonebuzz__mfa__Review": {
        "properties": {
          "password": {
            "type": "string",
            "format": "password",
            "title": "Password",
            "writeOnly": true
          },
          "code": {
            "type": "string",
            "maxLength": 64,
            "title": "Code",
            "default": ""
          },
          "version": {
            "type": "integer",
            "minimum": 1.0,
            "title": "Version"
          },
          "reviewed": {
            "type": "boolean",
            "title": "Reviewed"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "password",
          "version",
          "reviewed"
        ],
        "title": "Review"
      },
      "phonebuzz__offer_expiry__Counts": {
        "properties": {
          "expired": {
            "type": "integer",
            "title": "Expired"
          },
          "day": {
            "type": "integer",
            "title": "Day"
          },
          "week": {
            "type": "integer",
            "title": "Week"
          },
          "later": {
            "type": "integer",
            "title": "Later"
          },
          "unscheduled": {
            "type": "integer",
            "title": "Unscheduled"
          }
        },
        "type": "object",
        "required": [
          "expired",
          "day",
          "week",
          "later",
          "unscheduled"
        ],
        "title": "Counts"
      },
      "phonebuzz__offer_expiry__Detail": {
        "properties": {
          "as_of": {
            "type": "string",
            "title": "As Of"
          },
          "window": {
            "type": "string",
            "enum": [
              "expired",
              "day",
              "week",
              "later",
              "unscheduled",
              "inactive"
            ],
            "title": "Window"
          },
          "item": {
            "$ref": "#/components/schemas/OfferRow"
          },
          "notes": {
            "type": "string",
            "title": "Notes"
          },
          "unit_price": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Unit Price"
          },
          "currency": {
            "type": "string",
            "title": "Currency"
          },
          "color": {
            "type": "string",
            "title": "Color"
          },
          "lock_status": {
            "type": "string",
            "title": "Lock Status"
          }
        },
        "type": "object",
        "required": [
          "as_of",
          "window",
          "item",
          "notes",
          "unit_price",
          "currency",
          "color",
          "lock_status"
        ],
        "title": "Detail"
      },
      "phonebuzz__offer_expiry__Page": {
        "properties": {
          "as_of": {
            "type": "string",
            "title": "As Of"
          },
          "window": {
            "type": "string",
            "enum": [
              "expired",
              "day",
              "week",
              "later",
              "unscheduled"
            ],
            "title": "Window"
          },
          "counts": {
            "$ref": "#/components/schemas/phonebuzz__offer_expiry__Counts"
          },
          "total": {
            "type": "integer",
            "title": "Total"
          },
          "items": {
            "items": {
              "$ref": "#/components/schemas/OfferRow"
            },
            "type": "array",
            "title": "Items"
          }
        },
        "type": "object",
        "required": [
          "as_of",
          "window",
          "counts",
          "total",
          "items"
        ],
        "title": "Page"
      },
      "phonebuzz__opportunities__Review": {
        "properties": {
          "wanted_id": {
            "type": "string",
            "format": "uuid",
            "title": "Wanted Id"
          },
          "supply_id": {
            "type": "string",
            "format": "uuid",
            "title": "Supply Id"
          },
          "review_key": {
            "type": "string",
            "maxLength": 64,
            "minLength": 64,
            "pattern": "^[a-f0-9]+$",
            "title": "Review Key"
          },
          "reviewed": {
            "type": "boolean",
            "title": "Reviewed",
            "default": false
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "wanted_id",
          "supply_id",
          "review_key"
        ],
        "title": "Review"
      },
      "phonebuzz__order_returns__Receipt": {
        "properties": {
          "version": {
            "type": "integer",
            "minimum": 1.0,
            "title": "Version"
          },
          "reviewed": {
            "type": "boolean",
            "title": "Reviewed"
          },
          "note": {
            "type": "string",
            "maxLength": 2000,
            "minLength": 10,
            "title": "Note"
          },
          "warehouse_id": {
            "type": "string",
            "format": "uuid",
            "title": "Warehouse Id"
          },
          "warehouse_version": {
            "type": "integer",
            "minimum": 1.0,
            "title": "Warehouse Version"
          },
          "device_ids": {
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "type": "array",
            "maxItems": 100,
            "minItems": 1,
            "title": "Device Ids"
          },
          "occurred_at": {
            "type": "string",
            "format": "date-time",
            "title": "Occurred At"
          },
          "received_from": {
            "type": "string",
            "maxLength": 160,
            "minLength": 2,
            "title": "Received From"
          },
          "reference": {
            "type": "string",
            "maxLength": 300,
            "minLength": 3,
            "title": "Reference"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "version",
          "reviewed",
          "note",
          "warehouse_id",
          "warehouse_version",
          "device_ids",
          "occurred_at",
          "received_from",
          "reference"
        ],
        "title": "Receipt"
      },
      "phonebuzz__orders__Confirm": {
        "properties": {
          "version": {
            "type": "integer",
            "minimum": 1.0,
            "title": "Version"
          },
          "reviewed": {
            "type": "boolean",
            "title": "Reviewed"
          },
          "hold_minutes": {
            "type": "integer",
            "maximum": 10080.0,
            "minimum": 5.0,
            "title": "Hold Minutes"
          },
          "selections": {
            "items": {
              "$ref": "#/components/schemas/Selection"
            },
            "type": "array",
            "maxItems": 20,
            "minItems": 1,
            "title": "Selections"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "version",
          "reviewed",
          "hold_minutes",
          "selections"
        ],
        "title": "Confirm"
      },
      "phonebuzz__outbound_email__Command": {
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "prepare",
              "approve",
              "cancel"
            ],
            "title": "Action"
          },
          "conversation_version": {
            "type": "integer",
            "minimum": 1.0,
            "title": "Conversation Version"
          },
          "version": {
            "type": "integer",
            "minimum": 0.0,
            "title": "Version"
          },
          "request_key": {
            "type": "string",
            "format": "uuid",
            "title": "Request Key"
          },
          "reviewed": {
            "type": "boolean",
            "title": "Reviewed"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "action",
          "conversation_version",
          "version",
          "request_key",
          "reviewed"
        ],
        "title": "Command"
      },
      "phonebuzz__outbound_email__HistoryPage": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/HistoryItem"
            },
            "type": "array",
            "title": "Items"
          },
          "total": {
            "type": "integer",
            "title": "Total"
          }
        },
        "type": "object",
        "required": [
          "items",
          "total"
        ],
        "title": "HistoryPage"
      },
      "phonebuzz__outbound_email__Snapshot": {
        "properties": {
          "message_format": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/MessageFormat"
              },
              {
                "type": "null"
              }
            ]
          },
          "delivery_format": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/MessageFormat"
              },
              {
                "type": "null"
              }
            ]
          },
          "conversation_version": {
            "type": "integer",
            "title": "Conversation Version"
          },
          "sender": {
            "type": "string",
            "title": "Sender"
          },
          "recipient": {
            "type": "string",
            "title": "Recipient"
          },
          "subject": {
            "type": "string",
            "title": "Subject"
          },
          "body": {
            "type": "string",
            "title": "Body"
          },
          "draft_entry_id": {
            "type": "string",
            "title": "Draft Entry Id"
          },
          "editor_id": {
            "type": "string",
            "title": "Editor Id"
          },
          "editor_name": {
            "type": "string",
            "title": "Editor Name"
          },
          "editor_access_version": {
            "type": "integer",
            "title": "Editor Access Version"
          },
          "preparer_id": {
            "type": "string",
            "title": "Preparer Id"
          },
          "preparer_name": {
            "type": "string",
            "title": "Preparer Name"
          },
          "preparer_access_version": {
            "type": "integer",
            "title": "Preparer Access Version"
          }
        },
        "type": "object",
        "required": [
          "conversation_version",
          "sender",
          "recipient",
          "subject",
          "body",
          "draft_entry_id",
          "editor_id",
          "editor_name",
          "editor_access_version",
          "preparer_id",
          "preparer_name",
          "preparer_access_version"
        ],
        "title": "Snapshot"
      },
      "phonebuzz__outbound_preflight__Check": {
        "properties": {
          "key": {
            "type": "string",
            "enum": [
              "file",
              "schema",
              "host",
              "encryption",
              "sender",
              "credentials",
              "sender_match",
              "live_verification"
            ],
            "title": "Key"
          },
          "status": {
            "type": "string",
            "enum": [
              "pass",
              "fail",
              "unverified"
            ],
            "title": "Status"
          },
          "detail": {
            "type": "string",
            "title": "Detail"
          }
        },
        "type": "object",
        "required": [
          "key",
          "status",
          "detail"
        ],
        "title": "Check"
      },
      "phonebuzz__outbound_preflight__Report": {
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "not_configured",
              "invalid",
              "offline_checks_passed"
            ],
            "title": "Status"
          },
          "sending_enabled": {
            "type": "boolean",
            "const": false,
            "title": "Sending Enabled",
            "default": false
          },
          "network_checked": {
            "type": "boolean",
            "const": false,
            "title": "Network Checked",
            "default": false
          },
          "checks": {
            "items": {
              "$ref": "#/components/schemas/phonebuzz__outbound_preflight__Check"
            },
            "type": "array",
            "title": "Checks"
          }
        },
        "type": "object",
        "required": [
          "status",
          "checks"
        ],
        "title": "Report"
      },
      "phonebuzz__quotations__Action": {
        "properties": {
          "version": {
            "type": "integer",
            "minimum": 1.0,
            "title": "Version"
          },
          "action": {
            "type": "string",
            "enum": [
              "submit",
              "approve",
              "return",
              "cancel"
            ],
            "title": "Action"
          },
          "reviewed": {
            "type": "boolean",
            "title": "Reviewed",
            "default": false
          },
          "reason": {
            "type": "string",
            "maxLength": 300,
            "title": "Reason",
            "default": ""
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "version",
          "action"
        ],
        "title": "Action"
      },
      "phonebuzz__quotations__Create": {
        "properties": {
          "customer_id": {
            "type": "string",
            "format": "uuid",
            "title": "Customer Id"
          },
          "customer_version": {
            "type": "integer",
            "minimum": 1.0,
            "title": "Customer Version"
          },
          "currency": {
            "type": "string",
            "enum": [
              "USD",
              "AED",
              "PKR"
            ],
            "title": "Currency"
          },
          "valid_until": {
            "type": "string",
            "format": "date-time",
            "title": "Valid Until"
          },
          "terms": {
            "type": "string",
            "maxLength": 2000,
            "title": "Terms",
            "default": ""
          },
          "lines": {
            "items": {
              "$ref": "#/components/schemas/LineIn"
            },
            "type": "array",
            "maxItems": 20,
            "minItems": 1,
            "title": "Lines"
          },
          "request_key": {
            "type": "string",
            "format": "uuid",
            "title": "Request Key"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "customer_id",
          "customer_version",
          "currency",
          "valid_until",
          "lines",
          "request_key"
        ],
        "title": "Create"
      },
      "phonebuzz__quotations__Edit": {
        "properties": {
          "customer_id": {
            "type": "string",
            "format": "uuid",
            "title": "Customer Id"
          },
          "customer_version": {
            "type": "integer",
            "minimum": 1.0,
            "title": "Customer Version"
          },
          "currency": {
            "type": "string",
            "enum": [
              "USD",
              "AED",
              "PKR"
            ],
            "title": "Currency"
          },
          "valid_until": {
            "type": "string",
            "format": "date-time",
            "title": "Valid Until"
          },
          "terms": {
            "type": "string",
            "maxLength": 2000,
            "title": "Terms",
            "default": ""
          },
          "lines": {
            "items": {
              "$ref": "#/components/schemas/LineIn"
            },
            "type": "array",
            "maxItems": 20,
            "minItems": 1,
            "title": "Lines"
          },
          "version": {
            "type": "integer",
            "minimum": 1.0,
            "title": "Version"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "customer_id",
          "customer_version",
          "currency",
          "valid_until",
          "lines",
          "version"
        ],
        "title": "Edit"
      },
      "phonebuzz__relationships__Counts": {
        "properties": {
          "conversations": {
            "type": "integer",
            "minimum": 0.0,
            "title": "Conversations"
          },
          "offers": {
            "type": "integer",
            "minimum": 0.0,
            "title": "Offers"
          },
          "wanted": {
            "type": "integer",
            "minimum": 0.0,
            "title": "Wanted"
          },
          "quotations": {
            "type": "integer",
            "minimum": 0.0,
            "title": "Quotations"
          },
          "followups": {
            "type": "integer",
            "minimum": 0.0,
            "title": "Followups"
          },
          "orders": {
            "type": "integer",
            "minimum": 0.0,
            "title": "Orders"
          }
        },
        "type": "object",
        "required": [
          "conversations",
          "offers",
          "wanted",
          "quotations",
          "followups",
          "orders"
        ],
        "title": "Counts"
      },
      "phonebuzz__security_activity__Event": {
        "properties": {
          "id": {
            "type": "string",
            "title": "Id"
          },
          "action": {
            "type": "string",
            "title": "Action"
          },
          "label": {
            "type": "string",
            "title": "Label"
          },
          "created_at": {
            "type": "string",
            "title": "Created At"
          },
          "initiated_by": {
            "type": "string",
            "enum": [
              "you",
              "administrator",
              "server_operator"
            ],
            "title": "Initiated By"
          }
        },
        "type": "object",
        "required": [
          "id",
          "action",
          "label",
          "created_at",
          "initiated_by"
        ],
        "title": "Event"
      },
      "phonebuzz__security_activity__Page": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/phonebuzz__security_activity__Event"
            },
            "type": "array",
            "title": "Items"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Next Cursor"
          }
        },
        "type": "object",
        "required": [
          "items",
          "next_cursor"
        ],
        "title": "Page"
      },
      "phonebuzz__staff_access__Change": {
        "properties": {
          "version": {
            "type": "integer",
            "minimum": 1.0,
            "title": "Version"
          },
          "action": {
            "type": "string",
            "enum": [
              "deactivate",
              "reactivate",
              "revoke_sessions",
              "change_role"
            ],
            "title": "Action"
          },
          "role": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "admin",
                  "trader",
                  "viewer"
                ]
              },
              {
                "type": "null"
              }
            ],
            "title": "Role"
          },
          "reason": {
            "type": "string",
            "maxLength": 240,
            "minLength": 10,
            "title": "Reason"
          },
          "password": {
            "type": "string",
            "format": "password",
            "title": "Password",
            "writeOnly": true
          },
          "code": {
            "type": "string",
            "maxLength": 64,
            "title": "Code",
            "default": ""
          },
          "reviewed": {
            "type": "boolean",
            "title": "Reviewed"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "version",
          "action",
          "reason",
          "password",
          "reviewed"
        ],
        "title": "Change"
      },
      "phonebuzz__staff_access__Page": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/Account"
            },
            "type": "array",
            "title": "Items"
          },
          "total": {
            "type": "integer",
            "title": "Total"
          }
        },
        "type": "object",
        "required": [
          "items",
          "total"
        ],
        "title": "Page"
      },
      "phonebuzz__staff_access__Result": {
        "properties": {
          "account": {
            "$ref": "#/components/schemas/Account"
          },
          "revoked_sessions": {
            "type": "integer",
            "title": "Revoked Sessions"
          },
          "signed_out": {
            "type": "boolean",
            "title": "Signed Out"
          }
        },
        "type": "object",
        "required": [
          "account",
          "revoked_sessions",
          "signed_out"
        ],
        "title": "Result"
      },
      "phonebuzz__system_health__Check": {
        "properties": {
          "key": {
            "type": "string",
            "enum": [
              "mailbox",
              "ai",
              "whatsapp",
              "push"
            ],
            "title": "Key"
          },
          "title": {
            "type": "string",
            "title": "Title"
          },
          "status": {
            "type": "string",
            "enum": [
              "disabled",
              "setup_required",
              "paused",
              "attention",
              "observing"
            ],
            "title": "Status"
          },
          "detail": {
            "type": "string",
            "title": "Detail"
          },
          "metrics": {
            "items": {
              "$ref": "#/components/schemas/Metric"
            },
            "type": "array",
            "title": "Metrics"
          },
          "last_event_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Last Event At"
          }
        },
        "type": "object",
        "required": [
          "key",
          "title",
          "status",
          "detail",
          "metrics"
        ],
        "title": "Check"
      },
      "phonebuzz__system_health__Snapshot": {
        "properties": {
          "outbound_email": {
            "$ref": "#/components/schemas/phonebuzz__outbound_preflight__Report"
          },
          "as_of": {
            "type": "string",
            "title": "As Of"
          },
          "stale_after_seconds": {
            "type": "integer",
            "title": "Stale After Seconds"
          },
          "checks": {
            "items": {
              "$ref": "#/components/schemas/phonebuzz__system_health__Check"
            },
            "type": "array",
            "title": "Checks"
          },
          "workers": {
            "items": {
              "$ref": "#/components/schemas/WorkerObservation"
            },
            "type": "array",
            "title": "Workers"
          },
          "monitor_seen_at": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Monitor Seen At"
          },
          "incidents": {
            "$ref": "#/components/schemas/IncidentPage"
          }
        },
        "type": "object",
        "required": [
          "outbound_email",
          "as_of",
          "stale_after_seconds",
          "checks",
          "workers",
          "monitor_seen_at",
          "incidents"
        ],
        "title": "Snapshot"
      },
      "phonebuzz__warehouses__Receipt": {
        "properties": {
          "version": {
            "type": "integer",
            "minimum": 1.0,
            "title": "Version"
          },
          "reason": {
            "type": "string",
            "maxLength": 300,
            "minLength": 4,
            "title": "Reason"
          },
          "movement_id": {
            "type": "string",
            "format": "uuid",
            "title": "Movement Id"
          },
          "movement_version": {
            "type": "integer",
            "minimum": 1.0,
            "title": "Movement Version"
          },
          "outcome": {
            "type": "string",
            "enum": [
              "destination",
              "source"
            ],
            "title": "Outcome",
            "default": "destination"
          },
          "physically_confirmed": {
            "type": "boolean",
            "title": "Physically Confirmed"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "version",
          "reason",
          "movement_id",
          "movement_version",
          "physically_confirmed"
        ],
        "title": "Receipt"
      },
      "phonebuzz__whatsapp__Control": {
        "properties": {
          "version": {
            "type": "integer",
            "minimum": 1.0,
            "title": "Version"
          },
          "action": {
            "type": "string",
            "enum": [
              "pause",
              "resume"
            ],
            "title": "Action"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "version",
          "action"
        ],
        "title": "Control"
      },
      "phonebuzz__whatsapp__MessageOut": {
        "properties": {
          "remote_id": {
            "type": "string",
            "title": "Remote Id"
          },
          "sender": {
            "type": "string",
            "title": "Sender"
          },
          "sent_at": {
            "type": "integer",
            "title": "Sent At"
          },
          "message_type": {
            "type": "string",
            "title": "Message Type"
          },
          "outcome": {
            "type": "string",
            "title": "Outcome"
          },
          "warning": {
            "type": "string",
            "title": "Warning"
          },
          "context_id": {
            "type": "string",
            "title": "Context Id"
          },
          "id": {
            "type": "string",
            "title": "Id"
          },
          "conversation_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Conversation Id"
          },
          "created_at": {
            "type": "string",
            "title": "Created At"
          }
        },
        "type": "object",
        "required": [
          "remote_id",
          "sender",
          "sent_at",
          "message_type",
          "outcome",
          "warning",
          "context_id",
          "id",
          "conversation_id",
          "created_at"
        ],
        "title": "MessageOut"
      },
      "phonebuzz__whatsapp__MessagePage": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/phonebuzz__whatsapp__MessageOut"
            },
            "type": "array",
            "title": "Items"
          },
          "total": {
            "type": "integer",
            "title": "Total"
          }
        },
        "type": "object",
        "required": [
          "items",
          "total"
        ],
        "title": "MessagePage"
      },
      "phonebuzz__whatsapp__SourceOut": {
        "properties": {
          "remote_id": {
            "type": "string",
            "title": "Remote Id"
          },
          "sender": {
            "type": "string",
            "title": "Sender"
          },
          "sent_at": {
            "type": "integer",
            "title": "Sent At"
          },
          "message_type": {
            "type": "string",
            "title": "Message Type"
          },
          "outcome": {
            "type": "string",
            "title": "Outcome"
          },
          "warning": {
            "type": "string",
            "title": "Warning"
          },
          "context_id": {
            "type": "string",
            "title": "Context Id"
          }
        },
        "type": "object",
        "required": [
          "remote_id",
          "sender",
          "sent_at",
          "message_type",
          "outcome",
          "warning",
          "context_id"
        ],
        "title": "SourceOut"
      }
    },
    "securitySchemes": {
      "HTTPBearer": {
        "type": "http",
        "scheme": "bearer"
      }
    }
  }
}
