{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/airsign-com-au/json-schema/airsign-com-au-session-summary-schema.json",
  "title": "SessionSummary",
  "description": "Returned by Create Session and Update Session.",
  "x-generated": "2026-11-23",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_original/airsign-com-au-api-docs-openapi.json#/components/schemas/SessionSummary",
  "type": "object",
  "properties": {
    "name": {
      "type": "string"
    },
    "sessionId": {
      "type": "string"
    },
    "status": {
      "type": "string",
      "description": "`draft` unless the session was sent immediately."
    },
    "selfSignOnly": {
      "type": "boolean"
    },
    "createdAt": {
      "type": "string"
    },
    "updatedAt": {
      "type": "string"
    },
    "files": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "fileId": {
            "type": [
              "string",
              "null"
            ]
          },
          "fileName": {
            "type": "string"
          },
          "zones": {
            "type": "array",
            "items": {
              "$ref": "#/$defs/Zone"
            }
          },
          "sessionId": {
            "type": "string"
          },
          "fieldCount": {
            "type": "integer",
            "description": "Number of fields placed on the file."
          }
        }
      }
    },
    "recipients": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/RecipientSummary"
      }
    },
    "draftUrl": {
      "type": "string",
      "format": "uri",
      "description": "Opens the draft in the AirSign editor for review. Present for drafts."
    },
    "sent": {
      "type": "boolean"
    },
    "passwordRecipients": {
      "type": "array",
      "description": "Recipients that need an access password (only when sent and a recipient has `requireAccessPassword`).",
      "items": {
        "$ref": "#/$defs/PasswordRecipient"
      }
    },
    "warnings": {
      "type": "array",
      "description": "E.g. a recipient left without a signature field.",
      "items": {
        "type": "string"
      }
    }
  },
  "$defs": {
    "PasswordRecipient": {
      "type": "object",
      "properties": {
        "recipientId": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "email": {
          "type": "string"
        }
      }
    },
    "RecipientSummary": {
      "type": "object",
      "properties": {
        "recipientId": {
          "type": "string"
        },
        "status": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "email": {
          "type": "string"
        },
        "signingOrder": {
          "type": "integer"
        }
      }
    },
    "Zone": {
      "type": "object",
      "description": "A placed field on a document page.",
      "properties": {
        "id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "type": {
          "type": "string"
        },
        "label": {
          "type": "string"
        },
        "page": {
          "type": "integer"
        },
        "recipientId": {
          "type": "string"
        },
        "x": {
          "type": "number"
        },
        "y": {
          "type": "number"
        },
        "w": {
          "type": "number"
        },
        "h": {
          "type": "number"
        }
      }
    }
  }
}