{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/namirial/json-schema/namirial-license-get-response-schema.json",
  "title": "LicenseGetResponse",
  "description": "The response model for retrieving the current license status.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/namirial-license-api-openapi.yml#/components/schemas/LicenseGetResponse",
  "type": "object",
  "properties": {
    "Type": {
      "description": "The type of the license.",
      "type": "string"
    },
    "ExpirationDate": {
      "format": "date-time",
      "description": "The expiration date of the license.\nThe value null indicates that it does not expire.\nA datetime in the format RFC 3339, section 5.6, 'date-Time' (e.g. 2017-07-21T17:32:28Z).",
      "type": "string"
    },
    "Envelopes": {
      "$ref": "#/$defs/LicenseGetAmount",
      "description": "The license status for the number of envelopes."
    },
    "EnvelopeSenderUsers": {
      "$ref": "#/$defs/LicenseGetAmount",
      "description": "The license status for the number of senders.\nIf the license type is <code>Trial</code>, <code>EnvelopeSenderUsers</code> and <code>EnvelopeViewerUsers</code> have a combined limit."
    },
    "EnvelopeViewerUsers": {
      "$ref": "#/$defs/LicenseGetAmount",
      "description": "The license status for the number of users which are only able to access their received envelopes.\nIf the license type is <code>Trial</code>, <code>EnvelopeSenderUsers</code> and <code>EnvelopeViewerUsers</code> have a combined limit."
    }
  },
  "$defs": {
    "LicenseGetAmount": {
      "description": "The current state of the license.",
      "type": "object",
      "properties": {
        "Limit": {
          "format": "int32",
          "description": "The maximum number of licensable objects.\nThe value -1 means unlimited.",
          "type": "integer"
        },
        "Count": {
          "format": "int32",
          "description": "The amount of licensable objects in use.",
          "type": "integer"
        }
      }
    }
  }
}