К содержимому

AuthSession ​

Тип: object additionalProperties: false

ПолеОбязательноеТипОписание и ограничения
modeДаstringenum: ["api_only","anonymous","saml"]
authenticatedДаboolean
read_accessДаboolean
write_accessДаbooleanМожно создавать задания и менять доступные вызывающему задания. Пользователи SAML без email не могут писать.
can_manage_allДаbooleanМожно управлять всеми заданиями, назначать и очищать владельцев. True для настроенных администраторов SAML, действительных Bearer-ключей и режима anonymous.
userДаobject / nulladditionalProperties: false
expires_atДаstring / nullformat: "date-time"

JSON Schema ​

json
{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "mode",
    "authenticated",
    "read_access",
    "write_access",
    "can_manage_all",
    "user",
    "expires_at"
  ],
  "properties": {
    "mode": {
      "type": "string",
      "enum": [
        "api_only",
        "anonymous",
        "saml"
      ]
    },
    "authenticated": {
      "type": "boolean"
    },
    "read_access": {
      "type": "boolean"
    },
    "write_access": {
      "type": "boolean",
      "description": "Can create schedules and modify those available to this caller. SAML users without an email cannot write."
    },
    "can_manage_all": {
      "type": "boolean",
      "description": "Can manage all schedules and assign or clear their owners. True for configured SAML admins, valid Bearer keys and anonymous mode."
    },
    "user": {
      "type": "object",
      "nullable": true,
      "additionalProperties": false,
      "required": [
        "subject",
        "display_name",
        "email"
      ],
      "properties": {
        "subject": {
          "type": "string"
        },
        "display_name": {
          "type": "string"
        },
        "email": {
          "type": "string",
          "nullable": true,
          "description": "Normalized email from the SAML identity, or null when unavailable."
        }
      }
    },
    "expires_at": {
      "type": "string",
      "format": "date-time",
      "nullable": true
    }
  }
}

Все схемы · HTTP API