{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/presscart-com/json-schema/presscart-com-team-schema.json",
  "title": "Team",
  "x-generated": "2026-11-21",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/presscart-com-openapi.json#/components/schemas/Team",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "name": {
      "type": "string"
    },
    "slug": {
      "type": "string"
    },
    "referral_code": {
      "type": [
        "string",
        "null"
      ]
    },
    "stripe_customer_id": {
      "type": [
        "string",
        "null"
      ]
    },
    "team_type_id": {
      "type": [
        "string",
        "null"
      ],
      "format": "uuid"
    },
    "hubspot_company_id": {
      "type": [
        "string",
        "null"
      ]
    },
    "pro_pricing_enabled": {
      "type": "boolean"
    },
    "has_completed_onboarding": {
      "type": "boolean"
    },
    "can_access_paid_media_list": {
      "type": "boolean"
    },
    "is_publisher": {
      "type": "boolean"
    },
    "daily_order_dispatch_enabled": {
      "type": "boolean"
    },
    "agreement_signed_at": {
      "anyOf": [
        {
          "type": [
            "string",
            "null"
          ]
        },
        {
          "type": "string"
        },
        {
          "nullable": true
        }
      ]
    },
    "agreement_document": {
      "type": [
        "string",
        "null"
      ]
    },
    "applied_at": {
      "anyOf": [
        {
          "type": [
            "string",
            "null"
          ]
        },
        {
          "type": "string"
        },
        {
          "nullable": true
        }
      ]
    },
    "website_url": {
      "type": [
        "string",
        "null"
      ],
      "format": "uri"
    },
    "publisher_pending_outlet_cap": {
      "type": [
        "integer",
        "null"
      ],
      "minimum": 0,
      "exclusiveMinimum": true
    },
    "outlet_ownership_proof_exempt": {
      "type": "boolean"
    },
    "publisher_prompt_dismissed_at": {
      "anyOf": [
        {
          "type": [
            "string",
            "null"
          ]
        },
        {
          "type": "string"
        },
        {
          "nullable": true
        }
      ]
    },
    "blocked_at": {
      "anyOf": [
        {
          "type": [
            "string",
            "null"
          ]
        },
        {
          "type": "string"
        },
        {
          "nullable": true
        }
      ]
    },
    "blocked_until": {
      "anyOf": [
        {
          "type": [
            "string",
            "null"
          ]
        },
        {
          "type": "string"
        },
        {
          "nullable": true
        }
      ]
    },
    "contact_email": {
      "type": [
        "string",
        "null"
      ],
      "format": "email"
    },
    "billing_email": {
      "type": [
        "string",
        "null"
      ],
      "format": "email"
    },
    "created_at": {
      "anyOf": [
        {
          "type": [
            "string",
            "null"
          ]
        },
        {
          "type": "string"
        },
        {
          "nullable": true
        }
      ]
    },
    "updated_at": {
      "anyOf": [
        {
          "type": [
            "string",
            "null"
          ]
        },
        {
          "type": "string"
        },
        {
          "nullable": true
        }
      ]
    },
    "deleted_at": {
      "anyOf": [
        {
          "type": [
            "string",
            "null"
          ]
        },
        {
          "type": "string"
        },
        {
          "nullable": true
        }
      ]
    }
  },
  "required": [
    "id",
    "name",
    "slug",
    "referral_code",
    "stripe_customer_id",
    "team_type_id",
    "hubspot_company_id",
    "pro_pricing_enabled",
    "has_completed_onboarding",
    "can_access_paid_media_list",
    "is_publisher",
    "daily_order_dispatch_enabled",
    "agreement_signed_at",
    "agreement_document",
    "applied_at",
    "website_url",
    "publisher_pending_outlet_cap",
    "outlet_ownership_proof_exempt",
    "publisher_prompt_dismissed_at",
    "blocked_at",
    "blocked_until",
    "contact_email",
    "billing_email",
    "created_at",
    "updated_at",
    "deleted_at"
  ]
}