{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/fieldwirelabs/json-schema/fieldwirelabs-account-form-template-full-schema.json",
  "title": "account_form_template_full",
  "description": "Entity that denotes a template from which forms can be built",
  "x-generated": "2026-12-01",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/fieldwirelabs-fieldwire-regional-api-openapi.yml#/components/schemas/account_form_template_full",
  "type": "object",
  "required": [
    "id",
    "creator_user_id",
    "last_editor_user_id",
    "account_id",
    "is_generated",
    "name",
    "kind",
    "version",
    "created_at",
    "device_created_at",
    "device_updated_at",
    "resolved_conflict",
    "updated_at",
    "form_type"
  ],
  "nullable": false,
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid",
      "nullable": false,
      "description": "ID of the entity"
    },
    "creator_user_id": {
      "type": "integer",
      "format": "int32",
      "nullable": false,
      "description": "ID of the user who created this entity"
    },
    "last_editor_user_id": {
      "type": "integer",
      "format": "int32",
      "nullable": false,
      "description": "ID of the user who most recently edited this entity"
    },
    "account_id": {
      "type": "integer",
      "format": "int32",
      "nullable": false,
      "description": "ID of the account this entity belongs to"
    },
    "is_generated": {
      "type": "boolean",
      "nullable": false,
      "description": "Whether this template is fully generated (in case cloning from another template)"
    },
    "checksum": {
      "type": [
        "string",
        "null"
      ],
      "description": "Checksum used for verifying whether all relevant information for an account form template is at hand"
    },
    "name": {
      "type": "string",
      "nullable": false,
      "description": "Name of the template"
    },
    "kind": {
      "type": "string",
      "enum": [
        "default",
        "time_range",
        "single_day"
      ],
      "nullable": false,
      "description": "Kind of the template"
    },
    "version": {
      "type": "integer",
      "format": "int32",
      "nullable": false,
      "description": "Version number of the Account Form Template. Publishing increases version. Starts at 0."
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "nullable": false,
      "description": "Time when the server created the entity"
    },
    "deleted_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time",
      "description": "Time the server deleted the entity"
    },
    "device_created_at": {
      "type": "string",
      "format": "date-time",
      "nullable": false,
      "description": "Time when the device created the entity"
    },
    "device_updated_at": {
      "type": "string",
      "format": "date-time",
      "nullable": false,
      "description": "Time when the device last updated the entity"
    },
    "resolved_conflict": {
      "type": [
        "boolean",
        "null"
      ],
      "description": "Specifies if PUT/PATCH request was rejected - do not store this field!"
    },
    "published_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time",
      "description": "Time when the Form Template is published"
    },
    "content_changed_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time",
      "description": "Time at which this entity was changed across any of its child entities (contents)"
    },
    "connected_form_templates_count": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time",
      "description": "The number of form templates connected to this account form template"
    },
    "updated_at": {
      "type": "string",
      "format": "date-time",
      "nullable": false,
      "description": "Time when the server last updated the entity"
    },
    "view_edit_permissions": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "assignee",
        "all_users",
        null
      ],
      "deprecated": true,
      "description": "View/edit permissions for the template, e.g. assignee, all_users. Consider using account_form_template_permissions instead."
    },
    "form_type": {
      "type": "string",
      "enum": [
        "default",
        "fillable_pdf"
      ],
      "nullable": false,
      "description": "The type of form either custom fieldwire (default) or a fillable_pdf"
    },
    "status_change_recipient_emails": {
      "type": [
        "array",
        "null"
      ],
      "description": "Receivers of email notification when form changes its status",
      "items": {
        "type": [
          "string",
          "null"
        ],
        "description": "Email of receiver"
      }
    },
    "account_form_template_form_statuses": {
      "type": [
        "array",
        "null"
      ],
      "description": "The form statuses associated with this AFT.",
      "items": {
        "type": "object",
        "description": "Entity that denotes the status of a given account form template.",
        "required": [
          "id",
          "creator_user_id",
          "last_editor_user_id",
          "account_form_template_id",
          "account_id",
          "is_editable",
          "name",
          "ordinal",
          "required_role_in",
          "required_role_out",
          "created_at",
          "device_created_at",
          "device_updated_at",
          "resolved_conflict",
          "updated_at"
        ],
        "nullable": false,
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "nullable": false,
            "description": "ID of the entity"
          },
          "creator_user_id": {
            "type": "integer",
            "format": "int32",
            "nullable": false,
            "description": "ID of the user who created this entity"
          },
          "last_editor_user_id": {
            "type": "integer",
            "format": "int32",
            "nullable": false,
            "description": "ID of the user who most recently edited this entity"
          },
          "owner_user_id": {
            "type": [
              "integer",
              "null"
            ],
            "format": "int32",
            "description": "ID of the user who owns this status"
          },
          "account_form_template_id": {
            "type": "string",
            "format": "uuid",
            "nullable": false,
            "description": "ID of the template this status belongs to"
          },
          "account_id": {
            "type": "integer",
            "format": "int32",
            "nullable": false,
            "description": "ID of the account this entity belongs to"
          },
          "is_editable": {
            "type": "boolean",
            "nullable": false,
            "description": "Flag to show if status is editable (must be true if ordinal is 1)"
          },
          "name": {
            "type": "string",
            "nullable": false,
            "description": "Name of the entity"
          },
          "ordinal": {
            "type": "integer",
            "format": "int32",
            "nullable": false,
            "description": "Specifies the ordering among siblings"
          },
          "required_role_in": {
            "type": "string",
            "enum": [
              "member",
              "follower",
              "admin"
            ],
            "nullable": false,
            "description": "User role required to move a `Form` into this status"
          },
          "required_role_out": {
            "type": "string",
            "enum": [
              "member",
              "follower",
              "admin"
            ],
            "nullable": false,
            "description": "User role required to move a `Form` out of this status"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "nullable": false,
            "description": "Time when the server created the entity"
          },
          "deleted_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "Time the server deleted the entity"
          },
          "device_created_at": {
            "type": "string",
            "format": "date-time",
            "nullable": false,
            "description": "Time when the device created the entity"
          },
          "device_updated_at": {
            "type": "string",
            "format": "date-time",
            "nullable": false,
            "description": "Time when the device last updated the entity"
          },
          "resolved_conflict": {
            "type": "boolean",
            "nullable": false,
            "description": "Specifies if PUT/PATCH request was rejected - do not store this field!"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "nullable": false,
            "description": "Time when the server last updated the entity"
          },
          "recipient_emails": {
            "type": [
              "array",
              "null"
            ],
            "description": "Receivers of email notification when form changed to this status",
            "items": {
              "type": [
                "string",
                "null"
              ],
              "description": "Email of receiver"
            }
          }
        },
        "additionalProperties": false
      }
    },
    "account_form_template_sections": {
      "type": [
        "array",
        "null"
      ],
      "description": "The template sections associated with this AFT.",
      "items": {
        "type": "object",
        "description": "Entity that denotes a template for a section inside a form (belongs to an `AccountFormTemplate`)",
        "required": [
          "id",
          "creator_user_id",
          "last_editor_user_id",
          "account_form_template_id",
          "account_id",
          "name",
          "ordinal",
          "created_at",
          "device_created_at",
          "device_updated_at",
          "resolved_conflict",
          "updated_at"
        ],
        "nullable": false,
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "nullable": false,
            "description": "ID of the entity"
          },
          "creator_user_id": {
            "type": "integer",
            "format": "int32",
            "nullable": false,
            "description": "ID of the user who created this entity"
          },
          "last_editor_user_id": {
            "type": "integer",
            "format": "int32",
            "nullable": false,
            "description": "ID of the user who most recently edited this entity"
          },
          "account_form_template_id": {
            "type": "string",
            "format": "uuid",
            "nullable": false,
            "description": "ID of the template this belongs to"
          },
          "account_id": {
            "type": "integer",
            "format": "int32",
            "nullable": false,
            "description": "ID of the account this entity belongs to"
          },
          "name": {
            "type": "string",
            "nullable": false,
            "description": "Name of the entity"
          },
          "ordinal": {
            "type": "integer",
            "format": "int32",
            "nullable": false,
            "description": "Specifies the ordering among siblings"
          },
          "description": {
            "type": [
              "string",
              "null"
            ],
            "description": "A short description of the entity"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "nullable": false,
            "description": "Time when the server created the entity"
          },
          "deleted_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "Time the server deleted the entity"
          },
          "device_created_at": {
            "type": "string",
            "format": "date-time",
            "nullable": false,
            "description": "Time when the device created the entity"
          },
          "device_updated_at": {
            "type": "string",
            "format": "date-time",
            "nullable": false,
            "description": "Time when the device last updated the entity"
          },
          "resolved_conflict": {
            "type": "boolean",
            "nullable": false,
            "description": "Specifies if PUT/PATCH request was rejected - do not store this field!"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "nullable": false,
            "description": "Time when the server last updated the entity"
          },
          "summary_expression": {
            "type": [
              "string",
              "null"
            ],
            "description": "Represents a type of summary expression for the section"
          },
          "account_form_template_section_records": {
            "type": "array",
            "items": {
              "type": "object",
              "description": "Entity that denotes a template for a record inside a section (belongs to an `AccountFormTemplateSection`)",
              "required": [
                "id",
                "creator_user_id",
                "last_editor_user_id",
                "account_form_template_section_id",
                "account_id",
                "max_values",
                "min_values",
                "ordinal",
                "created_at",
                "device_created_at",
                "device_updated_at",
                "resolved_conflict",
                "updated_at"
              ],
              "nullable": false,
              "properties": {
                "id": {
                  "type": "string",
                  "format": "uuid",
                  "nullable": false,
                  "description": "ID of the entity"
                },
                "creator_user_id": {
                  "type": "integer",
                  "format": "int32",
                  "nullable": false,
                  "description": "ID of the user who created this entity"
                },
                "last_editor_user_id": {
                  "type": "integer",
                  "format": "int32",
                  "nullable": false,
                  "description": "ID of the user who most recently edited this entity"
                },
                "account_form_template_section_id": {
                  "type": "string",
                  "format": "uuid",
                  "nullable": false,
                  "description": "ID of the section this belongs to"
                },
                "account_id": {
                  "type": "integer",
                  "format": "int32",
                  "nullable": false,
                  "description": "ID of the account this entity belongs to"
                },
                "name": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Name of the entity"
                },
                "max_values": {
                  "type": "integer",
                  "format": "int32",
                  "nullable": false,
                  "description": "Max number of values this record can have"
                },
                "min_values": {
                  "type": "integer",
                  "format": "int32",
                  "nullable": false,
                  "description": "Min number of values this record should have"
                },
                "ordinal": {
                  "type": "integer",
                  "format": "int32",
                  "nullable": false,
                  "description": "Specifies the ordering among siblings"
                },
                "created_at": {
                  "type": "string",
                  "format": "date-time",
                  "nullable": false,
                  "description": "Time when the server created the entity"
                },
                "deleted_at": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "date-time",
                  "description": "Time the server deleted the entity"
                },
                "device_created_at": {
                  "type": "string",
                  "format": "date-time",
                  "nullable": false,
                  "description": "Time when the device created the entity"
                },
                "device_updated_at": {
                  "type": "string",
                  "format": "date-time",
                  "nullable": false,
                  "description": "Time when the device last updated the entity"
                },
                "resolved_conflict": {
                  "type": "boolean",
                  "nullable": false,
                  "description": "Specifies if PUT/PATCH request was rejected - do not store this field!"
                },
                "updated_at": {
                  "type": "string",
                  "format": "date-time",
                  "nullable": false,
                  "description": "Time when the server last updated the entity"
                },
                "account_form_template_section_record_inputs": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "description": "Entity that denotes a template for an input inside a record (belongs to an `AccountFormTemplateSectionRecord`)",
                    "required": [
                      "id",
                      "creator_user_id",
                      "last_editor_user_id",
                      "account_form_template_section_record_id",
                      "account_id",
                      "kind",
                      "max_values",
                      "min_values",
                      "ordinal",
                      "created_at",
                      "device_created_at",
                      "device_updated_at",
                      "resolved_conflict",
                      "updated_at",
                      "default_entity_id"
                    ],
                    "nullable": false,
                    "properties": {
                      "id": {
                        "type": "string",
                        "format": "uuid",
                        "nullable": false,
                        "description": "ID of the entity"
                      },
                      "creator_user_id": {
                        "type": "integer",
                        "format": "int32",
                        "nullable": false,
                        "description": "ID of the user who created this entity"
                      },
                      "last_editor_user_id": {
                        "type": "integer",
                        "format": "int32",
                        "nullable": false,
                        "description": "ID of the user who most recently edited this entity"
                      },
                      "account_data_type_id": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "format": "uuid",
                        "description": "ID of the `AccountDataType` this input wants a value of (for kind `data_input`)"
                      },
                      "account_form_template_section_record_id": {
                        "type": "string",
                        "format": "uuid",
                        "nullable": false,
                        "description": "ID of the record this belongs to"
                      },
                      "account_id": {
                        "type": "integer",
                        "format": "int32",
                        "nullable": false,
                        "description": "ID of the account this entity belongs to"
                      },
                      "entity_type": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "description": "Type of entity this input wants a value of (for kind `entity_input`)"
                      },
                      "expression": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "description": "Expression to use to automatically compute the value using"
                      },
                      "kind": {
                        "type": "string",
                        "enum": [
                          "data_input",
                          "entity_input",
                          "sign_input",
                          "weather"
                        ],
                        "nullable": false,
                        "description": "Kind of the entity"
                      },
                      "max_values": {
                        "type": "integer",
                        "format": "int32",
                        "nullable": false,
                        "description": "Max number of values this input can have"
                      },
                      "min_values": {
                        "type": "integer",
                        "format": "int32",
                        "nullable": false,
                        "description": "Min number of values this input should have"
                      },
                      "ordinal": {
                        "type": "integer",
                        "format": "int32",
                        "nullable": false,
                        "description": "Specifies the ordering among siblings"
                      },
                      "created_at": {
                        "type": "string",
                        "format": "date-time",
                        "nullable": false,
                        "description": "Time when the server created the entity"
                      },
                      "deleted_at": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "format": "date-time",
                        "description": "Time the server deleted the entity"
                      },
                      "device_created_at": {
                        "type": "string",
                        "format": "date-time",
                        "nullable": false,
                        "description": "Time when the device created the entity"
                      },
                      "device_updated_at": {
                        "type": "string",
                        "format": "date-time",
                        "nullable": false,
                        "description": "Time when the device last updated the entity"
                      },
                      "resolved_conflict": {
                        "type": [
                          "boolean",
                          "null"
                        ],
                        "description": "Specifies if PUT/PATCH request was rejected - do not store this field!"
                      },
                      "updated_at": {
                        "type": "string",
                        "format": "date-time",
                        "nullable": false,
                        "description": "Time when the server last updated the entity"
                      },
                      "summary_expression": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "description": "Represents types of summary expressions where the record input is included"
                      },
                      "default_entity_id": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "format": "uuid",
                        "description": "ID of the entity use when creating a new form"
                      },
                      "account_data_type": {
                        "type": [
                          "object",
                          "null"
                        ],
                        "description": "Represents a kind of value.",
                        "required": [
                          "id",
                          "creator_user_id",
                          "last_editor_user_id",
                          "account_id",
                          "is_strict",
                          "name",
                          "kind",
                          "created_at",
                          "device_created_at",
                          "device_updated_at",
                          "resolved_conflict",
                          "updated_at"
                        ],
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "uuid",
                            "nullable": false,
                            "description": "ID of the entity"
                          },
                          "creator_user_id": {
                            "type": "integer",
                            "format": "int32",
                            "nullable": false,
                            "description": "ID of the user who created this entity"
                          },
                          "last_editor_user_id": {
                            "type": "integer",
                            "format": "int32",
                            "nullable": false,
                            "description": "ID of the user who most recently edited this entity"
                          },
                          "account_id": {
                            "type": "integer",
                            "format": "int32",
                            "nullable": false,
                            "description": "ID of the account this entity belongs to"
                          },
                          "default_bigint_value": {
                            "type": [
                              "integer",
                              "null"
                            ],
                            "format": "int64",
                            "description": "Default big integer value if the kind is bigint"
                          },
                          "default_boolean_value": {
                            "type": [
                              "boolean",
                              "null"
                            ],
                            "description": "Default boolean value if the kind is boolean"
                          },
                          "is_strict": {
                            "type": "boolean",
                            "nullable": false,
                            "description": "Whether this is strict which means only values from the pre-approved list can be used (denoted by `DataTypeValue`s)"
                          },
                          "default_string_value": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "Default string value if the kind is string (suitable for short form text)"
                          },
                          "name": {
                            "type": "string",
                            "nullable": false,
                            "description": "Name of the entity"
                          },
                          "placeholder": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "Placeholder name to use for this data type to be shown in the UI"
                          },
                          "default_date_value": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "format": "date",
                            "description": "Default date value if the kind is date"
                          },
                          "default_checkbox_value": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "enum": [
                              "empty",
                              "yes",
                              "no",
                              "not_applicable",
                              null
                            ],
                            "description": "Default checkbox value if the kind is checkbox"
                          },
                          "kind": {
                            "type": "string",
                            "enum": [
                              "bigint",
                              "string",
                              "text",
                              "boolean",
                              "decimal",
                              "date",
                              "datetime",
                              "checkbox"
                            ],
                            "nullable": false,
                            "description": "Kind of the entity"
                          },
                          "unit": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "enum": [
                              "temperature",
                              "currency",
                              "hours",
                              "length",
                              "area",
                              "volume",
                              "mass",
                              null
                            ],
                            "description": "The unit of the value this type carries"
                          },
                          "default_decimal_value": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "Default decimal value if the kind is decimal"
                          },
                          "default_text_value": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "Default text value if the kind is text (suitable for long form text)"
                          },
                          "content_changed_at": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "format": "date-time",
                            "description": "Time at which this entity was changed across any of its child entities (contents)"
                          },
                          "created_at": {
                            "type": "string",
                            "format": "date-time",
                            "nullable": false,
                            "description": "Time when the server created the entity"
                          },
                          "default_datetime_value": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "format": "date-time",
                            "description": "Default datetime value if the kind is datetime"
                          },
                          "deleted_at": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "format": "date-time",
                            "description": "Time the server deleted the entity"
                          },
                          "device_created_at": {
                            "type": "string",
                            "format": "date-time",
                            "nullable": false,
                            "description": "Time when the device created the entity"
                          },
                          "device_updated_at": {
                            "type": "string",
                            "format": "date-time",
                            "nullable": false,
                            "description": "Time when the device last updated the entity"
                          },
                          "hidden_at": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "format": "date-time",
                            "description": "Time when this type was marked as hidden (can be only done if this is marked as strict)"
                          },
                          "resolved_conflict": {
                            "type": "boolean",
                            "nullable": false,
                            "description": "Specifies if PUT/PATCH request was rejected - do not store this field!"
                          },
                          "updated_at": {
                            "type": "string",
                            "format": "date-time",
                            "nullable": false,
                            "description": "Time when the server last updated the entity"
                          },
                          "account_data_type_values": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "description": "Represents a value associated with an account data type",
                              "required": [
                                "id",
                                "creator_user_id",
                                "last_editor_user_id",
                                "account_data_type_id",
                                "account_id",
                                "created_at",
                                "device_created_at",
                                "device_updated_at",
                                "resolved_conflict",
                                "updated_at"
                              ],
                              "nullable": false,
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "format": "uuid",
                                  "nullable": false,
                                  "description": "ID of the entity"
                                },
                                "creator_user_id": {
                                  "type": "integer",
                                  "format": "int32",
                                  "nullable": false,
                                  "description": "ID of the user who created this entity"
                                },
                                "last_editor_user_id": {
                                  "type": "integer",
                                  "format": "int32",
                                  "nullable": false,
                                  "description": "ID of the user who most recently edited this entity"
                                },
                                "account_data_type_id": {
                                  "type": "string",
                                  "format": "uuid",
                                  "nullable": false,
                                  "description": "ID of the `AccountDataType` this value denotes"
                                },
                                "account_id": {
                                  "type": "integer",
                                  "format": "int32",
                                  "nullable": false,
                                  "description": "ID of the account this entity belongs to"
                                },
                                "bigint_value": {
                                  "type": [
                                    "integer",
                                    "null"
                                  ],
                                  "format": "int64",
                                  "description": "Big integer value if this belongs to a bigint `AccountDataType`"
                                },
                                "string_value": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "description": "String value if this belongs to a string `AccountDataType` (suitable for short form text)"
                                },
                                "date_value": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "format": "date",
                                  "description": "Date value if this belongs to a date `AccountDataType`"
                                },
                                "checkbox_value": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "enum": [
                                    "empty",
                                    "yes",
                                    "no",
                                    "not_applicable",
                                    null
                                  ],
                                  "description": "Checkbox value if this belongs to a checkbox `AccountDataType`"
                                },
                                "decimal_value": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "description": "Decimal value if this belongs to a decimal `AccountDataType`"
                                },
                                "text_value": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "description": "Text value if this belongs to a bigint `AccountDataType` (suitable for long form text)"
                                },
                                "created_at": {
                                  "type": "string",
                                  "format": "date-time",
                                  "nullable": false,
                                  "description": "Time when the server created the entity"
                                },
                                "datetime_value": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "format": "date-time",
                                  "description": "Date & time value if this belongs to a datetime `AccountDataType`"
                                },
                                "deleted_at": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "format": "date-time",
                                  "description": "Time the server deleted the entity"
                                },
                                "device_created_at": {
                                  "type": "string",
                                  "format": "date-time",
                                  "nullable": false,
                                  "description": "Time when the device created the entity"
                                },
                                "device_updated_at": {
                                  "type": "string",
                                  "format": "date-time",
                                  "nullable": false,
                                  "description": "Time when the device last updated the entity"
                                },
                                "hidden_at": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "format": "date-time",
                                  "description": "Time when this value was marked as hidden (can be only done if this belongs to a strict `AccountDataType`)"
                                },
                                "resolved_conflict": {
                                  "type": "boolean",
                                  "nullable": false,
                                  "description": "Specifies if PUT/PATCH request was rejected - do not store this field!"
                                },
                                "updated_at": {
                                  "type": "string",
                                  "format": "date-time",
                                  "nullable": false,
                                  "description": "Time when the server last updated the entity"
                                },
                                "ordinal": {
                                  "type": [
                                    "integer",
                                    "null"
                                  ],
                                  "format": "int32",
                                  "description": "Optional ordinal ID for the entity"
                                }
                              },
                              "additionalProperties": false
                            }
                          }
                        },
                        "additionalProperties": false
                      },
                      "default_entity": {
                        "oneOf": [
                          {
                            "$ref": "#/$defs/null_object"
                          },
                          {
                            "$ref": "#/$defs/account_attachment"
                          }
                        ]
                      }
                    },
                    "additionalProperties": false
                  }
                }
              },
              "additionalProperties": false
            }
          }
        },
        "additionalProperties": false
      }
    },
    "account_form_template_permissions": {
      "type": [
        "array",
        "null"
      ],
      "description": "The template permissions associated with this AFT.",
      "items": {
        "type": "object",
        "description": "Entity that denotes the permission of a given account form template.",
        "required": [
          "id",
          "creator_user_id",
          "last_editor_user_id",
          "account_form_template_id",
          "account_id",
          "role",
          "kind",
          "enabled",
          "created_at",
          "device_created_at",
          "device_updated_at",
          "resolved_conflict",
          "updated_at"
        ],
        "nullable": false,
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "nullable": false,
            "description": "ID of the entity"
          },
          "creator_user_id": {
            "type": "integer",
            "format": "int32",
            "nullable": false,
            "description": "ID of the user who created this entity"
          },
          "last_editor_user_id": {
            "type": "integer",
            "format": "int32",
            "nullable": false,
            "description": "ID of the user who most recently edited this entity"
          },
          "account_form_template_id": {
            "type": "string",
            "format": "uuid",
            "nullable": false,
            "description": "ID of the template this permission belongs to"
          },
          "account_id": {
            "type": "integer",
            "format": "int32",
            "nullable": false,
            "description": "ID of the account this entity belongs to"
          },
          "enabled": {
            "type": "boolean",
            "nullable": false,
            "description": "Whether or not this permission is enabled"
          },
          "role": {
            "type": "string",
            "enum": [
              "member",
              "follower",
              "admin"
            ],
            "nullable": false,
            "description": "User role for this permission"
          },
          "kind": {
            "type": "string",
            "enum": [
              "can_view_form",
              "can_edit_form",
              "can_create_form"
            ],
            "nullable": false,
            "description": "Kind of permission"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "nullable": false,
            "description": "Time when the server created the entity"
          },
          "deleted_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "Time the server deleted the entity"
          },
          "device_created_at": {
            "type": "string",
            "format": "date-time",
            "nullable": false,
            "description": "Time when the device created the entity"
          },
          "device_updated_at": {
            "type": "string",
            "format": "date-time",
            "nullable": false,
            "description": "Time when the device last updated the entity"
          },
          "resolved_conflict": {
            "type": "boolean",
            "nullable": false,
            "description": "Specifies if PUT/PATCH request was rejected - do not store this field!"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "nullable": false,
            "description": "Time when the server last updated the entity"
          }
        },
        "additionalProperties": false
      }
    }
  },
  "additionalProperties": false
}