{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/gtm-api/json-schema/gtm-api-search-linkedin-account-smart-limits-request-schema.json",
  "title": "SearchLinkedinAccountSmartLimitsRequest",
  "description": "Request body of `search_linkedin_account_smart_limits`.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/gtm-api-linkedin-account-smart-limits-api-openapi.yml#/components/schemas/SearchLinkedinAccountSmartLimitsRequest",
  "type": "object",
  "properties": {
    "filter": {
      "type": "object",
      "properties": {
        "sid": {
          "type": "object",
          "properties": {
            "eq": {
              "type": "string"
            },
            "in": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          "additionalProperties": false
        },
        "linkedin_account_sid": {
          "type": "object",
          "properties": {
            "eq": {
              "type": "string"
            },
            "in": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          "additionalProperties": false
        },
        "limit_type": {
          "type": "object",
          "properties": {
            "eq": {
              "type": "string"
            },
            "ne": {
              "type": "string"
            },
            "in": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "nin": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          "additionalProperties": false
        },
        "daily_limit": {
          "type": "object",
          "properties": {
            "eq": {
              "type": "integer"
            },
            "ne": {
              "type": "integer"
            },
            "gte": {
              "type": "integer"
            },
            "lte": {
              "type": "integer"
            },
            "gt": {
              "type": "integer"
            },
            "lt": {
              "type": "integer"
            }
          },
          "additionalProperties": false
        },
        "smart_limit": {
          "type": "object",
          "properties": {
            "eq": {
              "type": "integer"
            },
            "ne": {
              "type": "integer"
            },
            "gte": {
              "type": "integer"
            },
            "lte": {
              "type": "integer"
            },
            "gt": {
              "type": "integer"
            },
            "lt": {
              "type": "integer"
            },
            "is_null": {
              "type": "boolean"
            }
          },
          "additionalProperties": false
        },
        "target_limit": {
          "type": "object",
          "properties": {
            "eq": {
              "type": "integer"
            },
            "ne": {
              "type": "integer"
            },
            "gte": {
              "type": "integer"
            },
            "lte": {
              "type": "integer"
            },
            "gt": {
              "type": "integer"
            },
            "lt": {
              "type": "integer"
            },
            "is_null": {
              "type": "boolean"
            }
          },
          "additionalProperties": false
        },
        "delay_in_seconds": {
          "type": "object",
          "properties": {
            "eq": {
              "type": "integer"
            },
            "ne": {
              "type": "integer"
            },
            "gte": {
              "type": "integer"
            },
            "lte": {
              "type": "integer"
            },
            "gt": {
              "type": "integer"
            },
            "lt": {
              "type": "integer"
            }
          },
          "additionalProperties": false
        },
        "learning_enabled": {
          "type": "object",
          "properties": {
            "eq": {
              "type": "boolean"
            }
          },
          "additionalProperties": false,
          "description": "false = the adaptive ceiling is pinned off for this row."
        },
        "learned_ceiling": {
          "type": "object",
          "properties": {
            "eq": {
              "type": "integer"
            },
            "ne": {
              "type": "integer"
            },
            "gte": {
              "type": "integer"
            },
            "lte": {
              "type": "integer"
            },
            "gt": {
              "type": "integer"
            },
            "lt": {
              "type": "integer"
            },
            "is_null": {
              "type": "boolean"
            }
          },
          "additionalProperties": false,
          "description": "The cap LinkedIn refusals taught this bucket; is_null:false = every row the learner has lowered."
        },
        "learned_ceiling_source": {
          "type": "object",
          "properties": {
            "eq": {
              "type": "string"
            },
            "ne": {
              "type": "string"
            },
            "in": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "nin": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "is_null": {
              "type": "boolean"
            }
          },
          "additionalProperties": false,
          "description": "backoff (a LinkedIn refusal lowered it) | probe (a clean streak raised it)."
        },
        "learned_ceiling_updated_at": {
          "type": "object",
          "properties": {
            "gte": {
              "type": "string"
            },
            "lte": {
              "type": "string"
            },
            "gt": {
              "type": "string"
            },
            "lt": {
              "type": "string"
            },
            "is_null": {
              "type": "boolean"
            }
          },
          "additionalProperties": false
        },
        "probe_not_before": {
          "type": "object",
          "properties": {
            "gte": {
              "type": "string"
            },
            "lte": {
              "type": "string"
            },
            "gt": {
              "type": "string"
            },
            "lt": {
              "type": "string"
            },
            "is_null": {
              "type": "boolean"
            }
          },
          "additionalProperties": false,
          "description": "When the learner may next try a higher ceiling."
        },
        "clean_saturation_streak": {
          "type": "object",
          "properties": {
            "eq": {
              "type": "integer"
            },
            "ne": {
              "type": "integer"
            },
            "gte": {
              "type": "integer"
            },
            "lte": {
              "type": "integer"
            },
            "gt": {
              "type": "integer"
            },
            "lt": {
              "type": "integer"
            }
          },
          "additionalProperties": false,
          "description": "Days in a row the bucket spent its whole budget without a LinkedIn refusal."
        },
        "done_today_count": {
          "type": "object",
          "properties": {
            "eq": {
              "type": "integer"
            },
            "ne": {
              "type": "integer"
            },
            "gte": {
              "type": "integer"
            },
            "lte": {
              "type": "integer"
            },
            "gt": {
              "type": "integer"
            },
            "lt": {
              "type": "integer"
            }
          },
          "additionalProperties": false,
          "description": "Live read of today's usage."
        },
        "last_reset_at": {
          "type": "object",
          "properties": {
            "gte": {
              "type": "string"
            },
            "lte": {
              "type": "string"
            },
            "gt": {
              "type": "string"
            },
            "lt": {
              "type": "string"
            }
          },
          "additionalProperties": false
        },
        "status": {
          "type": "object",
          "properties": {
            "eq": {
              "type": "string"
            },
            "ne": {
              "type": "string"
            },
            "in": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "nin": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          "additionalProperties": false,
          "description": "Primary state filter: active | held | linkedin_blocked (held = daily budget spent OR a live hold, the same thing)."
        },
        "hold_till": {
          "type": "object",
          "properties": {
            "gte": {
              "type": "string"
            },
            "lte": {
              "type": "string"
            },
            "gt": {
              "type": "string"
            },
            "lt": {
              "type": "string"
            },
            "is_null": {
              "type": "boolean"
            }
          },
          "additionalProperties": false,
          "description": "Platform-side pause clock."
        },
        "linkedin_quota_hit_till": {
          "type": "object",
          "properties": {
            "gte": {
              "type": "string"
            },
            "lte": {
              "type": "string"
            },
            "gt": {
              "type": "string"
            },
            "lt": {
              "type": "string"
            },
            "is_null": {
              "type": "boolean"
            }
          },
          "additionalProperties": false,
          "description": "LinkedIn-block clock."
        },
        "created_at": {
          "type": "object",
          "properties": {
            "gte": {
              "type": "string"
            },
            "lte": {
              "type": "string"
            },
            "gt": {
              "type": "string"
            },
            "lt": {
              "type": "string"
            }
          },
          "additionalProperties": false
        },
        "updated_at": {
          "type": "object",
          "properties": {
            "gte": {
              "type": "string"
            },
            "lte": {
              "type": "string"
            },
            "gt": {
              "type": "string"
            },
            "lt": {
              "type": "string"
            }
          },
          "additionalProperties": false
        }
      }
    },
    "include": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "linkedin_account",
          "linkedin_account_quota_hits"
        ]
      },
      "description": "Relations to eager-load (see entity Includes)."
    },
    "sort": {
      "type": "object",
      "properties": {
        "field": {
          "type": "string",
          "enum": [
            "created_at",
            "updated_at",
            "last_reset_at",
            "daily_limit",
            "smart_limit",
            "target_limit",
            "done_today_count",
            "status",
            "hold_till",
            "linkedin_quota_hit_till"
          ]
        },
        "direction": {
          "type": "string",
          "enum": [
            "asc",
            "desc"
          ],
          "description": "Default desc."
        }
      },
      "required": [
        "field"
      ]
    },
    "page_size": {
      "type": "integer",
      "minimum": 0,
      "maximum": 200,
      "description": "0..200, default 50. page_size=0 = count-only, page_size=1 = getFirst."
    },
    "cursor": {
      "type": [
        "string",
        "null"
      ],
      "description": "Opaque forward cursor from a previous response pagination.next_cursor."
    }
  }
}