{
  "basePath": "/",
  "consumes": [
    "application/json"
  ],
  "definitions": {
    "AbsenceImport": {
      "properties": {
        "items": {
          "items": {
            "$ref": "#/definitions/AbsenceImportItem"
          },
          "type": "array"
        },
        "source": {
          "default": "api",
          "enum": [
            "api",
            "onec"
          ],
          "title": "Source",
          "type": "string"
        }
      },
      "required": [
        "items"
      ],
      "type": "object"
    },
    "AbsenceImportItem": {
      "properties": {
        "date_from": {
          "format": "date",
          "title": "Date from",
          "type": "string"
        },
        "date_to": {
          "format": "date",
          "title": "Date to",
          "type": "string"
        },
        "external_id": {
          "maxLength": 100,
          "minLength": 1,
          "title": "External id",
          "type": "string"
        },
        "kind": {
          "enum": [
            "vacation",
            "sick",
            "day_off",
            "trip",
            "unpaid",
            "parental",
            "other"
          ],
          "title": "Kind",
          "type": "string"
        },
        "note": {
          "default": "",
          "maxLength": 255,
          "title": "Note",
          "type": "string"
        },
        "pay_mode": {
          "default": "",
          "enum": [
            "",
            "paid",
            "unpaid",
            "time_off"
          ],
          "title": "Pay mode",
          "type": "string"
        },
        "status": {
          "default": "approved",
          "enum": [
            "requested",
            "approved",
            "rejected"
          ],
          "title": "Status",
          "type": "string"
        },
        "user": {
          "title": "User",
          "type": "integer"
        }
      },
      "required": [
        "external_id",
        "user",
        "kind",
        "date_from",
        "date_to"
      ],
      "type": "object"
    },
    "BatchResult": {
      "properties": {
        "code": {
          "title": "Code",
          "type": "string"
        },
        "id": {
          "title": "Id",
          "type": "integer",
          "x-nullable": true
        },
        "index": {
          "title": "Index",
          "type": "integer"
        },
        "message": {
          "title": "Message",
          "type": "string"
        },
        "status": {
          "enum": [
            "created",
            "updated",
            "unchanged",
            "not_found",
            "error"
          ],
          "title": "Status",
          "type": "string"
        }
      },
      "required": [
        "index",
        "id",
        "status",
        "code",
        "message"
      ],
      "type": "object"
    },
    "BotButton": {
      "properties": {
        "id": {
          "maxLength": 128,
          "minLength": 1,
          "title": "Id",
          "type": "string"
        },
        "text": {
          "maxLength": 80,
          "minLength": 1,
          "title": "Text",
          "type": "string"
        }
      },
      "required": [
        "id",
        "text"
      ],
      "type": "object"
    },
    "BotMessage": {
      "properties": {
        "buttons": {
          "default": [],
          "items": {
            "$ref": "#/definitions/BotButton"
          },
          "readOnly": true,
          "type": "array"
        },
        "buttons_version": {
          "format": "uuid",
          "readOnly": true,
          "title": "Buttons version",
          "type": "string",
          "x-nullable": true
        },
        "chat_id": {
          "readOnly": true,
          "title": "Chat id",
          "type": "integer"
        },
        "created_at": {
          "format": "date-time",
          "readOnly": true,
          "title": "Created at",
          "type": "string"
        },
        "edited_at": {
          "format": "date-time",
          "readOnly": true,
          "title": "Edited at",
          "type": "string",
          "x-nullable": true
        },
        "id": {
          "readOnly": true,
          "title": "Id",
          "type": "integer"
        },
        "kind": {
          "enum": [
            "text",
            "system",
            "file",
            "voice",
            "video_note",
            "sticker",
            "gif",
            "poll",
            "assistant",
            "meeting_summary"
          ],
          "readOnly": true,
          "title": "Kind",
          "type": "string"
        },
        "reply_to_id": {
          "readOnly": true,
          "title": "Reply to id",
          "type": "integer",
          "x-nullable": true
        },
        "sender_id": {
          "readOnly": true,
          "title": "Sender id",
          "type": "integer",
          "x-nullable": true
        },
        "text": {
          "default": "",
          "minLength": 1,
          "readOnly": true,
          "title": "Text",
          "type": "string"
        },
        "thread_root_id": {
          "readOnly": true,
          "title": "Thread root id",
          "type": "integer",
          "x-nullable": true
        }
      },
      "type": "object"
    },
    "BotMessageEdit": {
      "example": {
        "buttons": [
          {
            "id": "confirm",
            "text": "Подтвердить"
          }
        ]
      },
      "properties": {
        "buttons": {
          "description": "Заменяет кнопки. Пустой список удаляет кнопки.",
          "items": {
            "$ref": "#/definitions/BotButton"
          },
          "type": "array"
        },
        "text": {
          "maxLength": 16000,
          "minLength": 1,
          "title": "Text",
          "type": "string"
        }
      },
      "type": "object"
    },
    "BotMessagePage": {
      "properties": {
        "next_before": {
          "title": "Next before",
          "type": "integer",
          "x-nullable": true
        },
        "results": {
          "items": {
            "$ref": "#/definitions/BotMessage"
          },
          "type": "array"
        }
      },
      "required": [
        "results",
        "next_before"
      ],
      "type": "object"
    },
    "BotMessageSend": {
      "example": {
        "buttons": [
          {
            "id": "confirm",
            "text": "Подтвердить"
          }
        ],
        "client_message_id": "00000000-0000-4000-8000-000000000001",
        "text": "Подтвердить заявку?"
      },
      "properties": {
        "buttons": {
          "description": "Заменяет кнопки. Пустой список удаляет кнопки.",
          "items": {
            "$ref": "#/definitions/BotButton"
          },
          "type": "array"
        },
        "client_message_id": {
          "format": "uuid",
          "title": "Client message id",
          "type": "string"
        },
        "text": {
          "maxLength": 16000,
          "minLength": 1,
          "title": "Text",
          "type": "string"
        }
      },
      "required": [
        "text",
        "client_message_id"
      ],
      "type": "object"
    },
    "CustomFieldValue": {
      "properties": {
        "color": {
          "description": "#HEX",
          "minLength": 1,
          "title": "Color",
          "type": "string"
        },
        "id": {
          "readOnly": true,
          "title": "ID",
          "type": "integer"
        },
        "value": {
          "maxLength": 256,
          "minLength": 1,
          "title": "Value",
          "type": "string"
        }
      },
      "type": "object"
    },
    "PayrollEntryImport": {
      "properties": {
        "items": {
          "items": {
            "$ref": "#/definitions/PayrollEntryImportItem"
          },
          "type": "array"
        },
        "month": {
          "maximum": 12,
          "minimum": 1,
          "title": "Month",
          "type": "integer"
        },
        "year": {
          "maximum": 2100,
          "minimum": 2000,
          "title": "Year",
          "type": "integer"
        }
      },
      "required": [
        "year",
        "month",
        "items"
      ],
      "type": "object"
    },
    "PayrollEntryImportItem": {
      "properties": {
        "amount": {
          "format": "decimal",
          "title": "Amount",
          "type": "string"
        },
        "comment": {
          "default": "",
          "maxLength": 512,
          "title": "Comment",
          "type": "string"
        },
        "external_id": {
          "maxLength": 100,
          "minLength": 1,
          "title": "External id",
          "type": "string"
        },
        "type": {
          "enum": [
            "bonus",
            "deduction",
            "vacation",
            "sick",
            "sick_benefit",
            "holiday_work",
            "overtime"
          ],
          "title": "Type",
          "type": "string"
        },
        "user": {
          "title": "User",
          "type": "integer"
        }
      },
      "required": [
        "external_id",
        "user",
        "type",
        "amount"
      ],
      "type": "object"
    },
    "PayrollImportResult": {
      "properties": {
        "created": {
          "title": "Created",
          "type": "integer"
        },
        "updated": {
          "title": "Updated",
          "type": "integer"
        }
      },
      "required": [
        "created",
        "updated"
      ],
      "type": "object"
    },
    "ProductionCalendar": {
      "properties": {
        "holidays": {
          "items": {
            "format": "date",
            "type": "string"
          },
          "type": "array"
        },
        "norm_hours": {
          "items": {
            "$ref": "#/definitions/ProductionCalendarMonth"
          },
          "type": "array"
        },
        "shortened": {
          "items": {
            "format": "date",
            "type": "string"
          },
          "type": "array"
        },
        "work_days": {
          "items": {
            "format": "date",
            "type": "string"
          },
          "type": "array"
        },
        "year": {
          "title": "Year",
          "type": "integer"
        }
      },
      "required": [
        "year",
        "work_days",
        "holidays",
        "shortened",
        "norm_hours"
      ],
      "type": "object"
    },
    "ProductionCalendarMonth": {
      "properties": {
        "hours": {
          "format": "decimal",
          "title": "Hours",
          "type": "string",
          "x-nullable": true
        },
        "month": {
          "title": "Month",
          "type": "integer"
        }
      },
      "required": [
        "month",
        "hours"
      ],
      "type": "object"
    },
    "ProductionCalendarWrite": {
      "properties": {
        "holidays": {
          "default": [],
          "items": {
            "format": "date",
            "type": "string"
          },
          "type": "array"
        },
        "shortened": {
          "default": [],
          "items": {
            "format": "date",
            "type": "string"
          },
          "type": "array"
        },
        "source": {
          "default": "",
          "maxLength": 64,
          "minLength": 1,
          "title": "Source",
          "type": "string"
        },
        "work_days": {
          "default": [],
          "items": {
            "format": "date",
            "type": "string"
          },
          "type": "array"
        },
        "year": {
          "maximum": 2100,
          "minimum": 2000,
          "title": "Year",
          "type": "integer"
        }
      },
      "required": [
        "year"
      ],
      "type": "object"
    },
    "PublicAbsence": {
      "properties": {
        "date_from": {
          "format": "date",
          "readOnly": true,
          "title": "С",
          "type": "string"
        },
        "date_to": {
          "format": "date",
          "readOnly": true,
          "title": "По",
          "type": "string"
        },
        "external_id": {
          "minLength": 1,
          "readOnly": true,
          "title": "Внешний идентификатор",
          "type": "string"
        },
        "id": {
          "readOnly": true,
          "title": "ID",
          "type": "integer"
        },
        "kind": {
          "enum": [
            "vacation",
            "sick",
            "day_off",
            "trip",
            "unpaid",
            "parental",
            "other"
          ],
          "readOnly": true,
          "title": "Тип",
          "type": "string"
        },
        "member_external_id": {
          "readOnly": true,
          "title": "Member external id",
          "type": "string",
          "x-nullable": true
        },
        "note": {
          "minLength": 1,
          "readOnly": true,
          "title": "Примечание",
          "type": "string"
        },
        "source": {
          "enum": [
            "manual",
            "api",
            "onec"
          ],
          "readOnly": true,
          "title": "Источник",
          "type": "string"
        },
        "status": {
          "enum": [
            "requested",
            "approved",
            "rejected"
          ],
          "readOnly": true,
          "title": "Статус",
          "type": "string"
        },
        "user": {
          "readOnly": true,
          "title": "Сотрудник",
          "type": "integer"
        }
      },
      "type": "object"
    },
    "PublicAbsenceBatchItem": {
      "properties": {
        "absences": {
          "items": {
            "$ref": "#/definitions/PublicAbsenceEntry"
          },
          "type": "array"
        },
        "member_external_id": {
          "maxLength": 255,
          "minLength": 1,
          "title": "Member external id",
          "type": "string"
        },
        "user": {
          "minimum": 1,
          "title": "User",
          "type": "integer"
        },
        "window": {
          "$ref": "#/definitions/PublicAbsenceWindow"
        }
      },
      "required": [
        "window",
        "absences"
      ],
      "type": "object"
    },
    "PublicAbsenceBatchRequest": {
      "properties": {
        "items": {
          "items": {
            "$ref": "#/definitions/PublicAbsenceBatchItem"
          },
          "type": "array"
        },
        "source": {
          "maxLength": 64,
          "minLength": 1,
          "title": "Source",
          "type": "string"
        }
      },
      "required": [
        "source",
        "items"
      ],
      "type": "object"
    },
    "PublicAbsenceEntry": {
      "properties": {
        "comment": {
          "default": "",
          "maxLength": 255,
          "title": "Comment",
          "type": "string"
        },
        "date_from": {
          "format": "date",
          "title": "Date from",
          "type": "string"
        },
        "date_to": {
          "format": "date",
          "title": "Date to",
          "type": "string"
        },
        "external_id": {
          "maxLength": 100,
          "minLength": 1,
          "title": "External id",
          "type": "string"
        },
        "kind": {
          "enum": [
            "vacation",
            "sick",
            "day_off",
            "trip",
            "unpaid",
            "parental",
            "other"
          ],
          "title": "Kind",
          "type": "string"
        }
      },
      "required": [
        "external_id",
        "kind",
        "date_from",
        "date_to"
      ],
      "type": "object"
    },
    "PublicAbsenceWindow": {
      "properties": {
        "date_from": {
          "format": "date",
          "title": "Date from",
          "type": "string"
        },
        "date_to": {
          "format": "date",
          "title": "Date to",
          "type": "string"
        }
      },
      "required": [
        "date_from",
        "date_to"
      ],
      "type": "object"
    },
    "PublicAccountBatchItem": {
      "properties": {
        "account_number": {
          "default": "",
          "maxLength": 34,
          "title": "Account number",
          "type": "string"
        },
        "account_type": {
          "default": "bank_account",
          "enum": [
            "bank_account",
            "bank_card",
            "cash",
            "e_money",
            "acquiring"
          ],
          "title": "Account type",
          "type": "string"
        },
        "bik": {
          "default": "",
          "maxLength": 16,
          "title": "Bik",
          "type": "string"
        },
        "corr_account": {
          "default": "",
          "maxLength": 34,
          "title": "Corr account",
          "type": "string"
        },
        "currency": {
          "default": "rub",
          "enum": [
            "rub",
            "eur",
            "usd",
            "cny",
            "kzt",
            "byn",
            "try",
            "amd",
            "azn",
            "gel",
            "rsd",
            "inr",
            "brl",
            "kgs",
            "tjs",
            "hkd"
          ],
          "title": "Currency",
          "type": "string"
        },
        "external_id": {
          "maxLength": 255,
          "minLength": 1,
          "title": "External id",
          "type": "string"
        },
        "is_archived": {
          "default": false,
          "title": "Is archived",
          "type": "boolean"
        },
        "name": {
          "maxLength": 100,
          "minLength": 1,
          "title": "Name",
          "type": "string"
        }
      },
      "required": [
        "external_id",
        "name"
      ],
      "type": "object"
    },
    "PublicAccountBatchRequest": {
      "properties": {
        "items": {
          "items": {
            "$ref": "#/definitions/PublicAccountBatchItem"
          },
          "type": "array"
        },
        "source": {
          "maxLength": 64,
          "minLength": 1,
          "title": "Source",
          "type": "string"
        }
      },
      "required": [
        "source",
        "items"
      ],
      "type": "object"
    },
    "PublicApiError": {
      "properties": {
        "error": {
          "properties": {
            "code": {
              "type": "string"
            },
            "details": {
              "additionalProperties": {},
              "type": "object"
            },
            "message": {
              "type": "string"
            }
          },
          "required": [
            "code",
            "message"
          ],
          "type": "object"
        }
      },
      "required": [
        "error"
      ],
      "type": "object"
    },
    "PublicAuthenticationError": {
      "properties": {
        "code": {
          "type": "string"
        },
        "detail": {
          "type": "string"
        },
        "error": {
          "properties": {
            "code": {
              "type": "string"
            },
            "details": {
              "additionalProperties": {},
              "type": "object"
            },
            "message": {
              "type": "string"
            }
          },
          "required": [
            "code",
            "message"
          ],
          "type": "object"
        }
      },
      "type": "object"
    },
    "PublicCheckList": {
      "properties": {
        "group": {
          "readOnly": true,
          "title": "Чек-лист",
          "type": "integer"
        },
        "id": {
          "readOnly": true,
          "title": "ID",
          "type": "integer"
        },
        "position": {
          "readOnly": true,
          "title": "Сортировка по приоритету",
          "type": "number"
        },
        "resolved": {
          "readOnly": true,
          "title": "Выполнено",
          "type": "boolean"
        },
        "text": {
          "minLength": 1,
          "readOnly": true,
          "title": "Текст",
          "type": "string"
        }
      },
      "type": "object"
    },
    "PublicCheckListCreate": {
      "properties": {
        "check_list_group": {
          "title": "Check list group",
          "type": "integer"
        },
        "position": {
          "minimum": 0,
          "title": "Position",
          "type": "number"
        },
        "text": {
          "maxLength": 999,
          "minLength": 1,
          "title": "Text",
          "type": "string"
        }
      },
      "required": [
        "text"
      ],
      "type": "object"
    },
    "PublicCheckListUpdate": {
      "properties": {
        "check_list_group": {
          "title": "Check list group",
          "type": "integer"
        },
        "position": {
          "minimum": 0,
          "title": "Position",
          "type": "number"
        },
        "resolved": {
          "title": "Resolved",
          "type": "boolean"
        },
        "text": {
          "maxLength": 999,
          "minLength": 1,
          "title": "Text",
          "type": "string"
        }
      },
      "type": "object"
    },
    "PublicCommentFile": {
      "properties": {
        "created_at": {
          "format": "date-time",
          "readOnly": true,
          "title": "Дата создания",
          "type": "string"
        },
        "extension": {
          "minLength": 1,
          "title": "Extension",
          "type": "string"
        },
        "id": {
          "format": "uuid",
          "readOnly": true,
          "title": "Id",
          "type": "string"
        },
        "name": {
          "minLength": 1,
          "title": "Name",
          "type": "string"
        },
        "size": {
          "readOnly": true,
          "title": "Размер файла в байтах",
          "type": "integer"
        },
        "size_kb": {
          "readOnly": true,
          "title": "Size kb",
          "type": "string"
        },
        "url": {
          "format": "uri",
          "readOnly": true,
          "title": "Url",
          "type": "string"
        }
      },
      "required": [
        "name",
        "extension"
      ],
      "type": "object"
    },
    "PublicCommentFileCreate": {
      "properties": {
        "file": {
          "format": "uri",
          "readOnly": true,
          "title": "File",
          "type": "string"
        }
      },
      "type": "object"
    },
    "PublicCompensationBatchItem": {
      "properties": {
        "amount": {
          "format": "decimal",
          "title": "Amount",
          "type": "string"
        },
        "bonus_amount": {
          "default": "0.00",
          "format": "decimal",
          "title": "Bonus amount",
          "type": "string"
        },
        "currency": {
          "default": "",
          "maxLength": 20,
          "title": "Currency",
          "type": "string"
        },
        "external_id": {
          "maxLength": 255,
          "minLength": 1,
          "title": "External id",
          "type": "string"
        },
        "fte": {
          "default": "1.00",
          "format": "decimal",
          "title": "Fte",
          "type": "string"
        },
        "member_external_id": {
          "maxLength": 255,
          "minLength": 1,
          "title": "Member external id",
          "type": "string"
        },
        "reason": {
          "default": "",
          "maxLength": 255,
          "title": "Reason",
          "type": "string"
        },
        "started_at": {
          "format": "date",
          "title": "Started at",
          "type": "string"
        },
        "type": {
          "default": "salary",
          "enum": [
            "hourly",
            "salary",
            "salary_bonus",
            "piece",
            "retainer",
            "part_time"
          ],
          "title": "Type",
          "type": "string"
        },
        "user": {
          "minimum": 1,
          "title": "User",
          "type": "integer"
        }
      },
      "required": [
        "external_id",
        "amount",
        "started_at"
      ],
      "type": "object"
    },
    "PublicCompensationBatchRequest": {
      "properties": {
        "items": {
          "items": {
            "$ref": "#/definitions/PublicCompensationBatchItem"
          },
          "type": "array"
        },
        "source": {
          "maxLength": 64,
          "minLength": 1,
          "title": "Source",
          "type": "string"
        }
      },
      "required": [
        "source",
        "items"
      ],
      "type": "object"
    },
    "PublicContractorBatchItem": {
      "properties": {
        "external_id": {
          "maxLength": 255,
          "minLength": 1,
          "title": "External id",
          "type": "string"
        },
        "fields": {
          "default": [],
          "items": {
            "$ref": "#/definitions/PublicContractorField"
          },
          "type": "array"
        },
        "group": {
          "maxLength": 512,
          "title": "Group",
          "type": "string",
          "x-nullable": true
        },
        "inn": {
          "default": "",
          "maxLength": 32,
          "title": "Inn",
          "type": "string"
        },
        "is_archived": {
          "default": false,
          "title": "Is archived",
          "type": "boolean"
        },
        "kpp": {
          "default": "",
          "maxLength": 32,
          "title": "Kpp",
          "type": "string"
        },
        "name": {
          "maxLength": 512,
          "minLength": 1,
          "title": "Name",
          "type": "string"
        }
      },
      "required": [
        "external_id",
        "name"
      ],
      "type": "object"
    },
    "PublicContractorBatchRequest": {
      "properties": {
        "items": {
          "items": {
            "$ref": "#/definitions/PublicContractorBatchItem"
          },
          "type": "array"
        },
        "source": {
          "maxLength": 64,
          "minLength": 1,
          "title": "Source",
          "type": "string"
        }
      },
      "required": [
        "source",
        "items"
      ],
      "type": "object"
    },
    "PublicContractorField": {
      "properties": {
        "name": {
          "maxLength": 512,
          "minLength": 1,
          "title": "Name",
          "type": "string"
        },
        "value": {
          "maxLength": 2048,
          "title": "Value",
          "type": "string"
        }
      },
      "required": [
        "name",
        "value"
      ],
      "type": "object"
    },
    "PublicCustomField": {
      "properties": {
        "extras": {
          "items": {
            "maxLength": 30,
            "minLength": 1,
            "title": "Extras",
            "type": "string"
          },
          "readOnly": true,
          "type": "array",
          "x-nullable": true
        },
        "id": {
          "minLength": 1,
          "title": "Id",
          "type": "string"
        },
        "multiple_choice": {
          "readOnly": true,
          "title": "Множественный выбор",
          "type": "boolean"
        },
        "name": {
          "minLength": 1,
          "readOnly": true,
          "title": "Название",
          "type": "string"
        },
        "type": {
          "enum": [
            "users",
            "text",
            "number",
            "date",
            "menu",
            "file",
            "duration",
            "link",
            "email",
            "phone",
            "cost",
            "dropdown",
            "location",
            "formula"
          ],
          "title": "Type",
          "type": "string"
        },
        "values": {
          "items": {
            "$ref": "#/definitions/PublicCustomFieldOption"
          },
          "readOnly": true,
          "type": "array"
        }
      },
      "required": [
        "id",
        "type"
      ],
      "type": "object"
    },
    "PublicCustomFieldCreate": {
      "properties": {
        "extras": {
          "items": {
            "maxLength": 30,
            "minLength": 1,
            "title": "Extras",
            "type": "string"
          },
          "type": "array",
          "x-nullable": true
        },
        "multiple_choice": {
          "title": "Множественный выбор",
          "type": "boolean"
        },
        "name": {
          "maxLength": 256,
          "minLength": 1,
          "title": "Name",
          "type": "string"
        },
        "type": {
          "enum": [
            "users",
            "text",
            "number",
            "date",
            "menu",
            "file",
            "duration",
            "link",
            "email",
            "phone",
            "cost",
            "dropdown",
            "location",
            "formula"
          ],
          "readOnly": true,
          "title": "Type",
          "type": "string"
        },
        "values": {
          "items": {
            "$ref": "#/definitions/CustomFieldValue"
          },
          "type": "array",
          "x-nullable": true
        }
      },
      "required": [
        "name"
      ],
      "type": "object"
    },
    "PublicCustomFieldOption": {
      "properties": {
        "color": {
          "description": "#HEX",
          "minLength": 1,
          "title": "Color",
          "type": "string"
        },
        "external_id": {
          "maxLength": 255,
          "title": "Внешний идентификатор",
          "type": "string",
          "x-nullable": true
        },
        "id": {
          "readOnly": true,
          "title": "ID",
          "type": "integer"
        },
        "value": {
          "maxLength": 256,
          "minLength": 1,
          "title": "Value",
          "type": "string"
        }
      },
      "type": "object"
    },
    "PublicCustomFieldOptionInput": {
      "properties": {
        "color": {
          "description": "#HEX",
          "minLength": 1,
          "title": "Color",
          "type": "string"
        },
        "external_id": {
          "maxLength": 255,
          "minLength": 1,
          "title": "External id",
          "type": "string",
          "x-nullable": true
        },
        "value": {
          "maxLength": 256,
          "minLength": 1,
          "title": "Value",
          "type": "string"
        }
      },
      "required": [
        "value"
      ],
      "type": "object"
    },
    "PublicCustomFieldUpdate": {
      "properties": {
        "extras": {
          "items": {
            "maxLength": 30,
            "minLength": 1,
            "title": "Extras",
            "type": "string"
          },
          "type": "array",
          "x-nullable": true
        },
        "multiple_choice": {
          "title": "Множественный выбор",
          "type": "boolean"
        },
        "name": {
          "maxLength": 36,
          "minLength": 1,
          "title": "Name",
          "type": "string"
        },
        "values_to_add": {
          "items": {
            "$ref": "#/definitions/PublicCustomFieldOptionInput"
          },
          "type": "array",
          "x-nullable": true
        },
        "values_to_remove": {
          "items": {
            "type": "integer"
          },
          "type": "array",
          "x-nullable": true
        }
      },
      "type": "object"
    },
    "PublicDataSource": {
      "properties": {
        "archived": {
          "title": "В архиве",
          "type": "boolean"
        },
        "comment": {
          "title": "Комментарий",
          "type": "string"
        },
        "created_at": {
          "format": "date-time",
          "readOnly": true,
          "title": "Дата создания",
          "type": "string"
        },
        "date_start": {
          "format": "date",
          "title": "Дата начала",
          "type": "string",
          "x-nullable": true
        },
        "date_start_time": {
          "title": "Время начала",
          "type": "string",
          "x-nullable": true
        },
        "deadline": {
          "format": "date",
          "title": "Дата дедлайна",
          "type": "string",
          "x-nullable": true
        },
        "deadline_time": {
          "title": "Время дедлайна",
          "type": "string",
          "x-nullable": true
        },
        "external_id": {
          "maxLength": 255,
          "title": "Внешний идентификатор",
          "type": "string",
          "x-nullable": true
        },
        "id": {
          "readOnly": true,
          "title": "ID",
          "type": "integer"
        },
        "name": {
          "minLength": 1,
          "title": "Name",
          "type": "string"
        },
        "priority": {
          "enum": [
            "critical",
            "high",
            "medium",
            "low"
          ],
          "title": "Priority",
          "type": "string"
        },
        "progress": {
          "default": 0,
          "readOnly": true,
          "title": "Progress",
          "type": "integer"
        },
        "responsible": {
          "allOf": [
            {
              "$ref": "#/definitions/PublicDataSourceResponsible"
            }
          ],
          "x-nullable": true
        },
        "slug": {
          "format": "slug",
          "minLength": 1,
          "pattern": "^[-a-zA-Z0-9_]+$",
          "title": "Slug",
          "type": "string"
        },
        "status": {
          "enum": [
            "on_schedule",
            "waiting",
            "at_risk",
            "deviated",
            "completed",
            "partially_completed",
            "not_completed",
            "cancelled"
          ],
          "title": "Статус",
          "type": "string"
        },
        "updated_at": {
          "format": "date-time",
          "readOnly": true,
          "title": "Дата обновления",
          "type": "string"
        }
      },
      "required": [
        "name"
      ],
      "type": "object"
    },
    "PublicDataSourceCreate": {
      "properties": {
        "archived": {
          "title": "В архиве",
          "type": "boolean"
        },
        "comment": {
          "title": "Комментарий",
          "type": "string"
        },
        "date_start": {
          "format": "date",
          "title": "Дата начала",
          "type": "string",
          "x-nullable": true
        },
        "date_start_time": {
          "title": "Время начала",
          "type": "string",
          "x-nullable": true
        },
        "deadline": {
          "format": "date",
          "title": "Дата дедлайна",
          "type": "string",
          "x-nullable": true
        },
        "deadline_time": {
          "title": "Время дедлайна",
          "type": "string",
          "x-nullable": true
        },
        "external_id": {
          "maxLength": 255,
          "title": "External id",
          "type": "string",
          "x-nullable": true
        },
        "name": {
          "minLength": 1,
          "title": "Name",
          "type": "string"
        },
        "priority": {
          "enum": [
            "critical",
            "high",
            "medium",
            "low"
          ],
          "title": "Priority",
          "type": "string"
        },
        "responsible": {
          "allOf": [
            {
              "$ref": "#/definitions/PublicDataSourceResponsible"
            }
          ],
          "x-nullable": true
        },
        "slug": {
          "format": "slug",
          "minLength": 1,
          "pattern": "^[-a-zA-Z0-9_]+$",
          "title": "Slug",
          "type": "string"
        },
        "status": {
          "enum": [
            "on_schedule",
            "waiting",
            "at_risk",
            "deviated",
            "completed",
            "partially_completed",
            "not_completed",
            "cancelled"
          ],
          "title": "Статус",
          "type": "string"
        }
      },
      "required": [
        "name"
      ],
      "type": "object"
    },
    "PublicDataSourceResponsible": {
      "properties": {
        "member_id": {
          "minimum": 1,
          "title": "Member id",
          "type": "integer"
        },
        "member_type": {
          "enum": [
            "team_member",
            "division",
            "group",
            "position"
          ],
          "title": "Member type",
          "type": "string"
        }
      },
      "required": [
        "member_type",
        "member_id"
      ],
      "type": "object",
      "x-nullable": true
    },
    "PublicDataSourceUpdate": {
      "properties": {
        "archived": {
          "title": "В архиве",
          "type": "boolean"
        },
        "comment": {
          "title": "Комментарий",
          "type": "string"
        },
        "date_start": {
          "format": "date",
          "title": "Дата начала",
          "type": "string",
          "x-nullable": true
        },
        "date_start_time": {
          "title": "Время начала",
          "type": "string",
          "x-nullable": true
        },
        "deadline": {
          "format": "date",
          "title": "Дата дедлайна",
          "type": "string",
          "x-nullable": true
        },
        "deadline_time": {
          "title": "Время дедлайна",
          "type": "string",
          "x-nullable": true
        },
        "external_id": {
          "maxLength": 255,
          "title": "External id",
          "type": "string",
          "x-nullable": true
        },
        "name": {
          "minLength": 1,
          "title": "Name",
          "type": "string"
        },
        "priority": {
          "enum": [
            "critical",
            "high",
            "medium",
            "low"
          ],
          "title": "Priority",
          "type": "string"
        },
        "responsible": {
          "allOf": [
            {
              "$ref": "#/definitions/PublicDataSourceResponsible"
            }
          ],
          "x-nullable": true
        },
        "slug": {
          "format": "slug",
          "minLength": 1,
          "pattern": "^[-a-zA-Z0-9_]+$",
          "title": "Slug",
          "type": "string"
        },
        "status": {
          "enum": [
            "on_schedule",
            "waiting",
            "at_risk",
            "deviated",
            "completed",
            "partially_completed",
            "not_completed",
            "cancelled"
          ],
          "title": "Статус",
          "type": "string"
        }
      },
      "required": [
        "name"
      ],
      "type": "object"
    },
    "PublicDirectionBatchItem": {
      "properties": {
        "description": {
          "maxLength": 150,
          "title": "Description",
          "type": "string",
          "x-nullable": true
        },
        "external_id": {
          "maxLength": 255,
          "minLength": 1,
          "title": "External id",
          "type": "string"
        },
        "is_archived": {
          "default": false,
          "title": "Is archived",
          "type": "boolean"
        },
        "name": {
          "maxLength": 150,
          "minLength": 1,
          "title": "Name",
          "type": "string"
        }
      },
      "required": [
        "external_id",
        "name"
      ],
      "type": "object"
    },
    "PublicDirectionBatchRequest": {
      "properties": {
        "items": {
          "items": {
            "$ref": "#/definitions/PublicDirectionBatchItem"
          },
          "type": "array"
        },
        "source": {
          "maxLength": 64,
          "minLength": 1,
          "title": "Source",
          "type": "string"
        }
      },
      "required": [
        "source",
        "items"
      ],
      "type": "object"
    },
    "PublicDivisionBatchItem": {
      "properties": {
        "external_id": {
          "maxLength": 255,
          "minLength": 1,
          "title": "External id",
          "type": "string"
        },
        "head_external_id": {
          "maxLength": 255,
          "title": "Head external id",
          "type": "string",
          "x-nullable": true
        },
        "is_archived": {
          "default": false,
          "title": "Is archived",
          "type": "boolean"
        },
        "name": {
          "maxLength": 2048,
          "minLength": 1,
          "title": "Name",
          "type": "string"
        },
        "parent_external_id": {
          "maxLength": 255,
          "title": "Parent external id",
          "type": "string",
          "x-nullable": true
        },
        "sort": {
          "default": 0.0,
          "title": "Sort",
          "type": "number"
        }
      },
      "required": [
        "external_id",
        "name"
      ],
      "type": "object"
    },
    "PublicDivisionBatchRequest": {
      "properties": {
        "items": {
          "items": {
            "$ref": "#/definitions/PublicDivisionBatchItem"
          },
          "type": "array"
        },
        "source": {
          "maxLength": 64,
          "minLength": 1,
          "title": "Source",
          "type": "string"
        }
      },
      "required": [
        "source",
        "items"
      ],
      "type": "object"
    },
    "PublicEquipmentBatchItem": {
      "properties": {
        "category": {
          "maxLength": 255,
          "title": "Category",
          "type": "string",
          "x-nullable": true
        },
        "external_id": {
          "maxLength": 255,
          "minLength": 1,
          "title": "External id",
          "type": "string"
        },
        "inventory_no": {
          "default": "",
          "maxLength": 100,
          "title": "Inventory no",
          "type": "string"
        },
        "is_archived": {
          "default": false,
          "title": "Is archived",
          "type": "boolean"
        },
        "location": {
          "default": "",
          "maxLength": 255,
          "title": "Location",
          "type": "string"
        },
        "name": {
          "maxLength": 255,
          "minLength": 1,
          "title": "Name",
          "type": "string"
        },
        "note": {
          "default": "",
          "title": "Note",
          "type": "string"
        },
        "units_count": {
          "default": 1,
          "maximum": 32767,
          "minimum": 1,
          "title": "Units count",
          "type": "integer"
        }
      },
      "required": [
        "external_id",
        "name"
      ],
      "type": "object"
    },
    "PublicEquipmentBatchRequest": {
      "properties": {
        "items": {
          "items": {
            "$ref": "#/definitions/PublicEquipmentBatchItem"
          },
          "type": "array"
        },
        "source": {
          "maxLength": 64,
          "minLength": 1,
          "title": "Source",
          "type": "string"
        }
      },
      "required": [
        "source",
        "items"
      ],
      "type": "object"
    },
    "PublicFinancialItemBatchItem": {
      "properties": {
        "activity": {
          "enum": [
            "operational",
            "financial",
            "investment"
          ],
          "title": "Activity",
          "type": "string",
          "x-nullable": true
        },
        "comment": {
          "maxLength": 200,
          "title": "Comment",
          "type": "string",
          "x-nullable": true
        },
        "external_id": {
          "maxLength": 255,
          "minLength": 1,
          "title": "External id",
          "type": "string"
        },
        "is_archived": {
          "default": false,
          "title": "Is archived",
          "type": "boolean"
        },
        "name": {
          "maxLength": 100,
          "minLength": 1,
          "title": "Name",
          "type": "string"
        },
        "parent_external_id": {
          "maxLength": 255,
          "title": "Parent external id",
          "type": "string",
          "x-nullable": true
        },
        "type": {
          "enum": [
            "refill",
            "debit",
            "transfer"
          ],
          "title": "Type",
          "type": "string"
        }
      },
      "required": [
        "external_id",
        "name",
        "type"
      ],
      "type": "object"
    },
    "PublicFinancialItemBatchRequest": {
      "properties": {
        "items": {
          "items": {
            "$ref": "#/definitions/PublicFinancialItemBatchItem"
          },
          "type": "array"
        },
        "source": {
          "maxLength": 64,
          "minLength": 1,
          "title": "Source",
          "type": "string"
        }
      },
      "required": [
        "source",
        "items"
      ],
      "type": "object"
    },
    "PublicGroup": {
      "properties": {
        "id": {
          "readOnly": true,
          "title": "ID",
          "type": "integer"
        },
        "name": {
          "maxLength": 256,
          "minLength": 1,
          "title": "Название",
          "type": "string"
        },
        "order": {
          "title": "Порядок",
          "type": "number"
        }
      },
      "required": [
        "name"
      ],
      "type": "object"
    },
    "PublicImportBatch": {
      "properties": {
        "created_at": {
          "format": "date-time",
          "readOnly": true,
          "title": "Создано",
          "type": "string"
        },
        "duplicates_count": {
          "readOnly": true,
          "title": "Пропущено дублей",
          "type": "integer"
        },
        "error": {
          "minLength": 1,
          "readOnly": true,
          "title": "Ошибка",
          "type": "string"
        },
        "financial_account": {
          "readOnly": true,
          "title": "Счёт",
          "type": "integer"
        },
        "id": {
          "readOnly": true,
          "title": "ID",
          "type": "integer"
        },
        "operations_count": {
          "readOnly": true,
          "title": "Создано операций",
          "type": "integer"
        },
        "period_end": {
          "format": "date",
          "readOnly": true,
          "title": "Период по",
          "type": "string",
          "x-nullable": true
        },
        "period_start": {
          "format": "date",
          "readOnly": true,
          "title": "Период с",
          "type": "string",
          "x-nullable": true
        },
        "skipped_currency_count": {
          "readOnly": true,
          "title": "Пропущено: другая валюта",
          "type": "integer"
        },
        "skipped_foreign_count": {
          "readOnly": true,
          "title": "Пропущено: документ другого счёта",
          "type": "integer"
        },
        "skipped_invalid_count": {
          "readOnly": true,
          "title": "Пропущено: нет даты или суммы",
          "type": "integer"
        },
        "skipped_locked_count": {
          "readOnly": true,
          "title": "Пропущено: период закрыт",
          "type": "integer"
        },
        "source_format": {
          "enum": [
            "1c",
            "csv",
            "xlsx"
          ],
          "readOnly": true,
          "title": "Формат",
          "type": "string"
        },
        "status": {
          "enum": [
            "parsing",
            "parsed",
            "applied",
            "failed"
          ],
          "readOnly": true,
          "title": "Статус",
          "type": "string"
        },
        "updated_at": {
          "format": "date-time",
          "readOnly": true,
          "title": "Обновлено",
          "type": "string"
        }
      },
      "type": "object"
    },
    "PublicImportBatchApply": {
      "properties": {
        "status": {
          "enum": [
            "queued"
          ],
          "readOnly": true,
          "title": "Status",
          "type": "string"
        }
      },
      "type": "object"
    },
    "PublicImportBatchPreview": {
      "properties": {
        "count": {
          "title": "Count",
          "type": "integer"
        },
        "currency_mismatch": {
          "title": "Currency mismatch",
          "type": "integer"
        },
        "duplicates": {
          "title": "Duplicates",
          "type": "integer"
        },
        "foreign": {
          "title": "Foreign",
          "type": "integer"
        },
        "invalid": {
          "title": "Invalid",
          "type": "integer"
        },
        "linked": {
          "title": "Linked",
          "type": "integer"
        },
        "locked": {
          "title": "Locked",
          "type": "integer"
        },
        "new": {
          "title": "New",
          "type": "integer"
        },
        "new_expense": {
          "format": "decimal",
          "title": "New expense",
          "type": "string"
        },
        "new_income": {
          "format": "decimal",
          "title": "New income",
          "type": "string"
        },
        "rows": {
          "items": {
            "$ref": "#/definitions/PublicImportBatchPreviewRow"
          },
          "type": "array"
        }
      },
      "required": [
        "count",
        "new",
        "duplicates",
        "invalid",
        "locked",
        "foreign",
        "currency_mismatch",
        "linked",
        "new_income",
        "new_expense",
        "rows"
      ],
      "type": "object"
    },
    "PublicImportBatchPreviewRow": {
      "properties": {
        "amount": {
          "format": "decimal",
          "title": "Amount",
          "type": "string",
          "x-nullable": true
        },
        "counterparty_inn": {
          "title": "Counterparty inn",
          "type": "string",
          "x-nullable": true
        },
        "date": {
          "format": "date-time",
          "title": "Date",
          "type": "string",
          "x-nullable": true
        },
        "direction": {
          "minLength": 1,
          "title": "Direction",
          "type": "string",
          "x-nullable": true
        },
        "is_duplicate": {
          "title": "Is duplicate",
          "type": "boolean"
        },
        "payment_id": {
          "title": "Payment id",
          "type": "string",
          "x-nullable": true
        },
        "purpose": {
          "title": "Purpose",
          "type": "string"
        },
        "status": {
          "minLength": 1,
          "title": "Status",
          "type": "string"
        }
      },
      "required": [
        "date",
        "amount",
        "direction",
        "purpose",
        "counterparty_inn",
        "payment_id",
        "status",
        "is_duplicate"
      ],
      "type": "object"
    },
    "PublicLabel": {
      "properties": {
        "color": {
          "maxLength": 20,
          "minLength": 1,
          "title": "Цвет",
          "type": "string"
        },
        "id": {
          "readOnly": true,
          "title": "ID",
          "type": "integer"
        },
        "name": {
          "maxLength": 50,
          "minLength": 1,
          "title": "Название",
          "type": "string"
        }
      },
      "required": [
        "name"
      ],
      "type": "object"
    },
    "PublicLabelCreate": {
      "properties": {
        "color": {
          "maxLength": 20,
          "minLength": 1,
          "title": "Цвет",
          "type": "string"
        },
        "name": {
          "maxLength": 50,
          "minLength": 1,
          "title": "Name",
          "type": "string"
        }
      },
      "required": [
        "name"
      ],
      "type": "object"
    },
    "PublicLabelUpdate": {
      "properties": {
        "color": {
          "maxLength": 20,
          "minLength": 1,
          "title": "Color",
          "type": "string"
        },
        "name": {
          "maxLength": 50,
          "minLength": 1,
          "title": "Name",
          "type": "string"
        }
      },
      "type": "object"
    },
    "PublicMemberBatchItem": {
      "properties": {
        "contract_form": {
          "enum": [
            "staff",
            "gph",
            "self_employed",
            "entrepreneur"
          ],
          "title": "Contract form",
          "type": "string"
        },
        "department_external_id": {
          "maxLength": 255,
          "title": "Department external id",
          "type": "string",
          "x-nullable": true
        },
        "dismissed_at": {
          "format": "date",
          "title": "Dismissed at",
          "type": "string",
          "x-nullable": true
        },
        "employee_number": {
          "maxLength": 64,
          "title": "Employee number",
          "type": "string"
        },
        "employment_status": {
          "enum": [
            "active",
            "dismissed"
          ],
          "title": "Employment status",
          "type": "string"
        },
        "external_id": {
          "maxLength": 255,
          "title": "External id",
          "type": "string",
          "x-nullable": true
        },
        "hired_at": {
          "format": "date",
          "title": "Hired at",
          "type": "string",
          "x-nullable": true
        },
        "id": {
          "minimum": 1,
          "title": "Id",
          "type": "integer"
        },
        "legal_entity": {
          "maxLength": 256,
          "title": "Legal entity",
          "type": "string"
        },
        "member_external_id": {
          "maxLength": 255,
          "minLength": 1,
          "title": "Member external id",
          "type": "string"
        },
        "middle_name": {
          "maxLength": 256,
          "title": "Middle name",
          "type": "string"
        },
        "phone": {
          "title": "Phone",
          "type": "string"
        },
        "position": {
          "maxLength": 256,
          "title": "Position",
          "type": "string",
          "x-nullable": true
        },
        "position_external_id": {
          "maxLength": 255,
          "title": "Position external id",
          "type": "string",
          "x-nullable": true
        },
        "user": {
          "minimum": 1,
          "title": "User",
          "type": "integer"
        }
      },
      "type": "object"
    },
    "PublicMemberBatchRequest": {
      "properties": {
        "items": {
          "items": {
            "$ref": "#/definitions/PublicMemberBatchItem"
          },
          "type": "array"
        },
        "source": {
          "maxLength": 64,
          "minLength": 1,
          "title": "Source",
          "type": "string"
        }
      },
      "required": [
        "source",
        "items"
      ],
      "type": "object"
    },
    "PublicMemberEmail": {
      "properties": {
        "is_login": {
          "title": "Is login",
          "type": "boolean"
        },
        "is_synthetic": {
          "title": "Is synthetic",
          "type": "boolean"
        },
        "value": {
          "format": "email",
          "minLength": 1,
          "title": "Value",
          "type": "string"
        }
      },
      "required": [
        "value",
        "is_login",
        "is_synthetic"
      ],
      "type": "object"
    },
    "PublicMemberReference": {
      "properties": {
        "id": {
          "readOnly": true,
          "title": "Id",
          "type": "integer"
        },
        "name": {
          "minLength": 1,
          "readOnly": true,
          "title": "Name",
          "type": "string"
        },
        "type": {
          "minLength": 1,
          "readOnly": true,
          "title": "Type",
          "type": "string"
        }
      },
      "type": "object"
    },
    "PublicOperationBatchItem": {
      "properties": {
        "account_external_id": {
          "maxLength": 255,
          "minLength": 1,
          "title": "Account external id",
          "type": "string"
        },
        "amount": {
          "format": "decimal",
          "title": "Amount",
          "type": "string"
        },
        "cause": {
          "maxLength": 150,
          "title": "Cause",
          "type": "string",
          "x-nullable": true
        },
        "contractor_external_id": {
          "maxLength": 255,
          "title": "Contractor external id",
          "type": "string",
          "x-nullable": true
        },
        "counterparty": {
          "maxLength": 512,
          "title": "Counterparty",
          "type": "string",
          "x-nullable": true
        },
        "currency": {
          "enum": [
            "rub",
            "eur",
            "usd",
            "cny",
            "kzt",
            "byn",
            "try",
            "amd",
            "azn",
            "gel",
            "rsd",
            "inr",
            "brl",
            "kgs",
            "tjs",
            "hkd"
          ],
          "title": "Currency",
          "type": "string",
          "x-nullable": true
        },
        "date": {
          "format": "date-time",
          "title": "Date",
          "type": "string"
        },
        "direction_external_id": {
          "maxLength": 255,
          "title": "Direction external id",
          "type": "string",
          "x-nullable": true
        },
        "document": {
          "allOf": [
            {
              "$ref": "#/definitions/PublicOperationDocument"
            }
          ],
          "x-nullable": true
        },
        "external_id": {
          "maxLength": 255,
          "minLength": 1,
          "title": "External id",
          "type": "string"
        },
        "is_archived": {
          "default": false,
          "title": "Is archived",
          "type": "boolean"
        },
        "item_external_id": {
          "maxLength": 255,
          "title": "Item external id",
          "type": "string",
          "x-nullable": true
        },
        "operation_kind": {
          "maxLength": 200,
          "title": "Operation kind",
          "type": "string",
          "x-nullable": true
        },
        "project_external_id": {
          "maxLength": 255,
          "title": "Project external id",
          "type": "string",
          "x-nullable": true
        },
        "purpose": {
          "default": "",
          "maxLength": 1024,
          "title": "Purpose",
          "type": "string"
        },
        "splits": {
          "default": [],
          "items": {
            "$ref": "#/definitions/PublicOperationSplit"
          },
          "type": "array"
        },
        "to_account_external_id": {
          "maxLength": 255,
          "title": "To account external id",
          "type": "string",
          "x-nullable": true
        },
        "to_amount": {
          "format": "decimal",
          "title": "To amount",
          "type": "string",
          "x-nullable": true
        },
        "type": {
          "enum": [
            "refill",
            "debit",
            "transfer"
          ],
          "title": "Type",
          "type": "string"
        }
      },
      "required": [
        "external_id",
        "type",
        "date",
        "amount",
        "account_external_id"
      ],
      "type": "object"
    },
    "PublicOperationBatchRequest": {
      "properties": {
        "items": {
          "items": {
            "$ref": "#/definitions/PublicOperationBatchItem"
          },
          "type": "array"
        },
        "source": {
          "maxLength": 64,
          "minLength": 1,
          "title": "Source",
          "type": "string"
        }
      },
      "required": [
        "source",
        "items"
      ],
      "type": "object"
    },
    "PublicOperationDocument": {
      "properties": {
        "date": {
          "format": "date",
          "title": "Date",
          "type": "string",
          "x-nullable": true
        },
        "kind": {
          "default": "",
          "maxLength": 64,
          "title": "Kind",
          "type": "string"
        },
        "number": {
          "default": "",
          "maxLength": 64,
          "title": "Number",
          "type": "string"
        }
      },
      "type": "object",
      "x-nullable": true
    },
    "PublicOperationSplit": {
      "properties": {
        "amount": {
          "format": "decimal",
          "title": "Amount",
          "type": "string"
        },
        "direction_external_id": {
          "maxLength": 255,
          "title": "Direction external id",
          "type": "string",
          "x-nullable": true
        },
        "item_external_id": {
          "maxLength": 255,
          "title": "Item external id",
          "type": "string",
          "x-nullable": true
        },
        "project_external_id": {
          "maxLength": 255,
          "title": "Project external id",
          "type": "string",
          "x-nullable": true
        },
        "purpose": {
          "maxLength": 1024,
          "title": "Purpose",
          "type": "string"
        }
      },
      "required": [
        "amount"
      ],
      "type": "object"
    },
    "PublicPayrollFact": {
      "properties": {
        "amount": {
          "format": "decimal",
          "readOnly": true,
          "title": "Сумма",
          "type": "string"
        },
        "currency": {
          "minLength": 1,
          "title": "Currency",
          "type": "string",
          "x-nullable": true
        },
        "id": {
          "readOnly": true,
          "title": "ID",
          "type": "integer"
        },
        "member_external_id": {
          "readOnly": true,
          "title": "Member external id",
          "type": "string",
          "x-nullable": true
        },
        "period": {
          "title": "Period",
          "type": "string"
        },
        "source": {
          "minLength": 1,
          "readOnly": true,
          "title": "Источник записи",
          "type": "string"
        },
        "type": {
          "enum": [
            "salary",
            "bonus",
            "other"
          ],
          "readOnly": true,
          "title": "Вид",
          "type": "string"
        },
        "updated_at": {
          "format": "date-time",
          "readOnly": true,
          "title": "Обновлено",
          "type": "string"
        },
        "user": {
          "readOnly": true,
          "title": "Сотрудник",
          "type": "integer"
        }
      },
      "required": [
        "period"
      ],
      "type": "object"
    },
    "PublicPayrollFactBatchItem": {
      "properties": {
        "entries": {
          "items": {
            "$ref": "#/definitions/PublicPayrollFactEntry"
          },
          "type": "array"
        },
        "member_external_id": {
          "maxLength": 255,
          "minLength": 1,
          "title": "Member external id",
          "type": "string"
        },
        "user": {
          "minimum": 1,
          "title": "User",
          "type": "integer"
        },
        "window": {
          "$ref": "#/definitions/PublicPayrollWindow"
        }
      },
      "required": [
        "window",
        "entries"
      ],
      "type": "object"
    },
    "PublicPayrollFactBatchRequest": {
      "properties": {
        "items": {
          "items": {
            "$ref": "#/definitions/PublicPayrollFactBatchItem"
          },
          "type": "array"
        },
        "source": {
          "maxLength": 64,
          "minLength": 1,
          "title": "Source",
          "type": "string"
        }
      },
      "required": [
        "source",
        "items"
      ],
      "type": "object"
    },
    "PublicPayrollFactEntry": {
      "properties": {
        "amount": {
          "format": "decimal",
          "title": "Amount",
          "type": "string"
        },
        "currency": {
          "default": "",
          "maxLength": 20,
          "title": "Currency",
          "type": "string"
        },
        "period": {
          "title": "Period",
          "type": "string"
        },
        "type": {
          "enum": [
            "salary",
            "bonus",
            "other"
          ],
          "title": "Type",
          "type": "string"
        }
      },
      "required": [
        "period",
        "type",
        "amount"
      ],
      "type": "object"
    },
    "PublicPayrollWindow": {
      "properties": {
        "date_from": {
          "title": "Date from",
          "type": "string"
        },
        "date_to": {
          "title": "Date to",
          "type": "string"
        }
      },
      "required": [
        "date_from",
        "date_to"
      ],
      "type": "object"
    },
    "PublicPositionBatchItem": {
      "properties": {
        "external_id": {
          "maxLength": 255,
          "minLength": 1,
          "title": "External id",
          "type": "string"
        },
        "is_archived": {
          "default": false,
          "title": "Is archived",
          "type": "boolean"
        },
        "name": {
          "maxLength": 256,
          "minLength": 1,
          "title": "Name",
          "type": "string"
        }
      },
      "required": [
        "external_id",
        "name"
      ],
      "type": "object"
    },
    "PublicPositionBatchRequest": {
      "properties": {
        "items": {
          "items": {
            "$ref": "#/definitions/PublicPositionBatchItem"
          },
          "type": "array"
        },
        "source": {
          "maxLength": 64,
          "minLength": 1,
          "title": "Source",
          "type": "string"
        }
      },
      "required": [
        "source",
        "items"
      ],
      "type": "object"
    },
    "PublicRole": {
      "properties": {
        "id": {
          "readOnly": true,
          "title": "ID",
          "type": "integer"
        },
        "name": {
          "maxLength": 100,
          "minLength": 1,
          "title": "Название роли",
          "type": "string"
        },
        "system_role": {
          "enum": [
            "OWNER",
            "ADMIN",
            "MANAGER",
            "USER",
            "GUEST"
          ],
          "readOnly": true,
          "title": "System role",
          "type": "string",
          "x-nullable": true
        }
      },
      "required": [
        "name"
      ],
      "type": "object"
    },
    "PublicScheduleBatchItem": {
      "properties": {
        "days_of_week": {
          "items": {
            "enum": [
              1,
              2,
              3,
              4,
              5,
              6,
              7
            ],
            "type": "integer"
          },
          "type": "array"
        },
        "external_id": {
          "maxLength": 255,
          "minLength": 1,
          "title": "External id",
          "type": "string"
        },
        "members": {
          "default": [],
          "items": {
            "$ref": "#/definitions/PublicScheduleMember"
          },
          "type": "array"
        },
        "name": {
          "maxLength": 256,
          "minLength": 1,
          "title": "Name",
          "type": "string"
        },
        "work_end_time": {
          "title": "Work end time",
          "type": "string"
        },
        "work_start_time": {
          "title": "Work start time",
          "type": "string"
        }
      },
      "required": [
        "external_id",
        "name",
        "days_of_week",
        "work_start_time",
        "work_end_time"
      ],
      "type": "object"
    },
    "PublicScheduleBatchRequest": {
      "properties": {
        "items": {
          "items": {
            "$ref": "#/definitions/PublicScheduleBatchItem"
          },
          "type": "array"
        },
        "source": {
          "maxLength": 64,
          "minLength": 1,
          "title": "Source",
          "type": "string"
        }
      },
      "required": [
        "source",
        "items"
      ],
      "type": "object"
    },
    "PublicScheduleMember": {
      "default": {},
      "properties": {
        "member_external_id": {
          "maxLength": 255,
          "minLength": 1,
          "title": "Member external id",
          "type": "string"
        },
        "user": {
          "minimum": 1,
          "title": "User",
          "type": "integer"
        }
      },
      "type": "object"
    },
    "PublicStage": {
      "properties": {
        "color": {
          "minLength": 1,
          "readOnly": true,
          "title": "Цвет",
          "type": "string"
        },
        "id": {
          "readOnly": true,
          "title": "ID",
          "type": "integer"
        },
        "name": {
          "minLength": 1,
          "readOnly": true,
          "title": "Название",
          "type": "string"
        },
        "order": {
          "readOnly": true,
          "title": "Порядок",
          "type": "number"
        }
      },
      "type": "object"
    },
    "PublicStatus": {
      "properties": {
        "color": {
          "minLength": 1,
          "readOnly": true,
          "title": "Цвет",
          "type": "string"
        },
        "icon": {
          "readOnly": true,
          "title": "Icon",
          "type": "string"
        },
        "id": {
          "readOnly": true,
          "title": "ID",
          "type": "integer"
        },
        "is_default": {
          "readOnly": true,
          "title": "По умолчанию",
          "type": "boolean"
        },
        "order": {
          "readOnly": true,
          "title": "Порядок",
          "type": "number"
        },
        "segment": {
          "enum": [
            "todo",
            "in_progress",
            "done",
            "cancelled"
          ],
          "readOnly": true,
          "title": "Сегмент",
          "type": "string"
        },
        "title": {
          "minLength": 1,
          "readOnly": true,
          "title": "Название статуса",
          "type": "string"
        }
      },
      "type": "object"
    },
    "PublicStatusCreate": {
      "properties": {
        "color": {
          "maxLength": 20,
          "minLength": 1,
          "title": "Цвет",
          "type": "string"
        },
        "icon": {
          "enum": [
            "circle_empty",
            "circle_quarter",
            "circle_half",
            "circle_three_quarter",
            "circle_full",
            "check_outline",
            "check_filled",
            "cross_filled",
            "cross_outline"
          ],
          "title": "Icon",
          "type": "string"
        },
        "is_default": {
          "title": "По умолчанию",
          "type": "boolean"
        },
        "order": {
          "title": "Порядок",
          "type": "number"
        },
        "segment": {
          "enum": [
            "todo",
            "in_progress",
            "done",
            "cancelled"
          ],
          "title": "Segment",
          "type": "string"
        },
        "title": {
          "maxLength": 128,
          "minLength": 1,
          "title": "Title",
          "type": "string"
        }
      },
      "required": [
        "title"
      ],
      "type": "object"
    },
    "PublicStatusUpdate": {
      "properties": {
        "color": {
          "maxLength": 20,
          "minLength": 1,
          "title": "Color",
          "type": "string"
        },
        "icon": {
          "enum": [
            "circle_empty",
            "circle_quarter",
            "circle_half",
            "circle_three_quarter",
            "circle_full",
            "check_outline",
            "check_filled",
            "cross_filled",
            "cross_outline"
          ],
          "title": "Icon",
          "type": "string"
        },
        "is_default": {
          "title": "Is default",
          "type": "boolean"
        },
        "order": {
          "title": "Order",
          "type": "number"
        },
        "segment": {
          "enum": [
            "todo",
            "in_progress",
            "done",
            "cancelled"
          ],
          "title": "Segment",
          "type": "string"
        },
        "title": {
          "maxLength": 128,
          "minLength": 1,
          "title": "Title",
          "type": "string"
        }
      },
      "type": "object"
    },
    "PublicSubscription": {
      "properties": {
        "all_datasources": {
          "title": "Все проекты",
          "type": "boolean"
        },
        "created_at": {
          "format": "date-time",
          "readOnly": true,
          "title": "Создана",
          "type": "string"
        },
        "created_by": {
          "readOnly": true,
          "title": "Created by",
          "type": "integer",
          "x-nullable": true
        },
        "datasource_ids": {
          "items": {
            "type": "integer"
          },
          "type": "array",
          "uniqueItems": true
        },
        "event_types": {
          "items": {
            "maxLength": 64,
            "minLength": 1,
            "type": "string"
          },
          "type": "array"
        },
        "id": {
          "format": "uuid",
          "readOnly": true,
          "title": "Id",
          "type": "string"
        },
        "name": {
          "maxLength": 128,
          "minLength": 1,
          "title": "Название",
          "type": "string"
        },
        "previous_secret_expires_at": {
          "format": "date-time",
          "readOnly": true,
          "title": "Прежний секрет истекает",
          "type": "string",
          "x-nullable": true
        },
        "secret": {
          "readOnly": true,
          "title": "Secret",
          "type": "string"
        },
        "status": {
          "enum": [
            "active",
            "paused",
            "disabled"
          ],
          "readOnly": true,
          "title": "Status",
          "type": "string"
        },
        "status_changed_at": {
          "format": "date-time",
          "readOnly": true,
          "title": "Состояние изменено",
          "type": "string",
          "x-nullable": true
        },
        "updated_at": {
          "format": "date-time",
          "readOnly": true,
          "title": "Обновлена",
          "type": "string"
        },
        "url": {
          "format": "uri",
          "maxLength": 512,
          "minLength": 1,
          "title": "Адрес получателя",
          "type": "string"
        }
      },
      "required": [
        "name",
        "url",
        "event_types"
      ],
      "type": "object"
    },
    "PublicSubscriptionCreate": {
      "example": {
        "event_types": [
          "task.created"
        ],
        "name": "Уведомления о задачах",
        "url": "https://example.com/shtab-webhook"
      },
      "properties": {
        "all_datasources": {
          "title": "Все проекты",
          "type": "boolean"
        },
        "datasource_ids": {
          "items": {
            "type": "integer"
          },
          "type": "array",
          "uniqueItems": true
        },
        "event_types": {
          "items": {
            "maxLength": 64,
            "minLength": 1,
            "type": "string"
          },
          "type": "array"
        },
        "name": {
          "maxLength": 128,
          "minLength": 1,
          "title": "Название",
          "type": "string"
        },
        "start_from": {
          "default": "now",
          "enum": [
            "now",
            "retention"
          ],
          "title": "Start from",
          "type": "string"
        },
        "status": {
          "enum": [
            "active",
            "disabled"
          ],
          "title": "Status",
          "type": "string"
        },
        "url": {
          "format": "uri",
          "maxLength": 512,
          "minLength": 1,
          "title": "Адрес получателя",
          "type": "string"
        }
      },
      "required": [
        "name",
        "url",
        "event_types"
      ],
      "type": "object"
    },
    "PublicSubscriptionCreated": {
      "properties": {
        "all_datasources": {
          "title": "Все проекты",
          "type": "boolean"
        },
        "created_at": {
          "format": "date-time",
          "readOnly": true,
          "title": "Создана",
          "type": "string"
        },
        "created_by": {
          "readOnly": true,
          "title": "Created by",
          "type": "integer",
          "x-nullable": true
        },
        "datasource_ids": {
          "items": {
            "type": "integer"
          },
          "type": "array",
          "uniqueItems": true
        },
        "event_types": {
          "items": {
            "maxLength": 64,
            "minLength": 1,
            "type": "string"
          },
          "type": "array"
        },
        "id": {
          "format": "uuid",
          "readOnly": true,
          "title": "Id",
          "type": "string"
        },
        "name": {
          "maxLength": 128,
          "minLength": 1,
          "title": "Название",
          "type": "string"
        },
        "previous_secret_expires_at": {
          "format": "date-time",
          "readOnly": true,
          "title": "Прежний секрет истекает",
          "type": "string",
          "x-nullable": true
        },
        "secret": {
          "readOnly": true,
          "title": "Secret",
          "type": "string"
        },
        "secret_once": {
          "description": "Полный секрет подписи. Выдаётся при создании подписки.",
          "minLength": 1,
          "readOnly": true,
          "title": "Secret once",
          "type": "string"
        },
        "status": {
          "enum": [
            "active",
            "paused",
            "disabled"
          ],
          "readOnly": true,
          "title": "Status",
          "type": "string"
        },
        "status_changed_at": {
          "format": "date-time",
          "readOnly": true,
          "title": "Состояние изменено",
          "type": "string",
          "x-nullable": true
        },
        "updated_at": {
          "format": "date-time",
          "readOnly": true,
          "title": "Обновлена",
          "type": "string"
        },
        "url": {
          "format": "uri",
          "maxLength": 512,
          "minLength": 1,
          "title": "Адрес получателя",
          "type": "string"
        }
      },
      "required": [
        "name",
        "url",
        "event_types"
      ],
      "type": "object"
    },
    "PublicSubscriptionUpdate": {
      "example": {
        "name": "Уведомления о новых задачах"
      },
      "properties": {
        "all_datasources": {
          "title": "Все проекты",
          "type": "boolean"
        },
        "datasource_ids": {
          "items": {
            "type": "integer"
          },
          "type": "array",
          "uniqueItems": true
        },
        "event_types": {
          "items": {
            "maxLength": 64,
            "minLength": 1,
            "type": "string"
          },
          "type": "array"
        },
        "name": {
          "maxLength": 128,
          "minLength": 1,
          "title": "Название",
          "type": "string"
        },
        "status": {
          "enum": [
            "active",
            "disabled"
          ],
          "title": "Status",
          "type": "string"
        },
        "url": {
          "format": "uri",
          "maxLength": 512,
          "minLength": 1,
          "title": "Адрес получателя",
          "type": "string"
        }
      },
      "type": "object"
    },
    "PublicTask": {
      "properties": {
        "archived": {
          "readOnly": true,
          "title": "Архивирована",
          "type": "boolean"
        },
        "comments_count": {
          "readOnly": true,
          "title": "Количество комментариев",
          "type": "integer"
        },
        "completed": {
          "readOnly": true,
          "title": "Завершена",
          "type": "boolean"
        },
        "created_by_id": {
          "readOnly": true,
          "title": "Created by id",
          "type": "string"
        },
        "custom_fields": {
          "items": {
            "$ref": "#/definitions/PublicTaskCustomFieldList"
          },
          "readOnly": true,
          "type": "array"
        },
        "datasource": {
          "readOnly": true,
          "title": "Источник",
          "type": "integer",
          "x-nullable": true
        },
        "date_archived": {
          "format": "date-time",
          "readOnly": true,
          "title": "Дата архивации",
          "type": "string",
          "x-nullable": true
        },
        "date_completed": {
          "format": "date-time",
          "readOnly": true,
          "title": "Дата завершения",
          "type": "string",
          "x-nullable": true
        },
        "date_created": {
          "format": "date-time",
          "readOnly": true,
          "title": "Дата создания задачи",
          "type": "string"
        },
        "date_start": {
          "format": "date",
          "readOnly": true,
          "title": "Дата начала исполнения задачи",
          "type": "string",
          "x-nullable": true
        },
        "date_start_time": {
          "readOnly": true,
          "title": "Время начала исполнения задачи",
          "type": "string",
          "x-nullable": true
        },
        "date_updated": {
          "format": "date-time",
          "readOnly": true,
          "title": "Дата изменения задачи",
          "type": "string"
        },
        "deadline": {
          "format": "date",
          "readOnly": true,
          "title": "Дата дедлайна задачи",
          "type": "string",
          "x-nullable": true
        },
        "deadline_time": {
          "readOnly": true,
          "title": "Время дедлайна задачи",
          "type": "string",
          "x-nullable": true
        },
        "executors": {
          "items": {
            "$ref": "#/definitions/PublicTaskExecutor"
          },
          "readOnly": true,
          "type": "array"
        },
        "external_id": {
          "minLength": 1,
          "readOnly": true,
          "title": "Внешний идентификатор",
          "type": "string",
          "x-nullable": true
        },
        "files_count": {
          "readOnly": true,
          "title": "Количество файлов",
          "type": "integer"
        },
        "group": {
          "$ref": "#/definitions/PublicGroup"
        },
        "id": {
          "readOnly": true,
          "title": "ID",
          "type": "integer"
        },
        "name": {
          "minLength": 1,
          "readOnly": true,
          "title": "Название",
          "type": "string"
        },
        "order": {
          "readOnly": true,
          "title": "Позиция задачи",
          "type": "number"
        },
        "parent": {
          "readOnly": true,
          "title": "Parent",
          "type": "integer"
        },
        "planned_time_minutes": {
          "readOnly": true,
          "title": "Запланированное время в минутах",
          "type": "integer"
        },
        "planned_time_type": {
          "enum": [
            "minute",
            "hour",
            "day",
            "week",
            "month"
          ],
          "readOnly": true,
          "title": "Тип запланированного времени в минутах",
          "type": "string"
        },
        "priority": {
          "enum": [
            "critical",
            "high",
            "medium",
            "low"
          ],
          "readOnly": true,
          "title": "Приоритет",
          "type": "string"
        },
        "progress": {
          "readOnly": true,
          "title": "Прогресс",
          "type": "integer"
        },
        "responsibles": {
          "items": {
            "$ref": "#/definitions/PublicTaskResponsible"
          },
          "readOnly": true,
          "type": "array"
        },
        "slug": {
          "format": "slug",
          "minLength": 1,
          "pattern": "^[-\\w]+$",
          "readOnly": true,
          "title": "Слаг",
          "type": "string",
          "x-nullable": true
        },
        "stage": {
          "$ref": "#/definitions/PublicStage"
        },
        "status": {
          "$ref": "#/definitions/PublicStatus"
        },
        "subtasks_count": {
          "default": 0,
          "title": "Subtasks count",
          "type": "integer"
        },
        "task_labels": {
          "items": {
            "$ref": "#/definitions/PublicLabel"
          },
          "readOnly": true,
          "type": "array"
        },
        "tracked_seconds": {
          "readOnly": true,
          "title": "Tracked seconds",
          "type": "string"
        },
        "type": {
          "readOnly": true,
          "title": "Type",
          "type": "string"
        },
        "updated_by": {
          "$ref": "#/definitions/PublicUser"
        },
        "version": {
          "readOnly": true,
          "title": "Версия задачи",
          "type": "integer"
        }
      },
      "type": "object"
    },
    "PublicTaskComment": {
      "properties": {
        "answer_to": {
          "$ref": "#/definitions/PublicTaskCommentAnswer"
        },
        "author": {
          "$ref": "#/definitions/PublicUser"
        },
        "comment": {
          "title": "Комментарий",
          "type": "string"
        },
        "datetime_created": {
          "format": "date-time",
          "readOnly": true,
          "title": "Дата создания",
          "type": "string"
        },
        "datetime_updated": {
          "format": "date-time",
          "title": "Дата обновления",
          "type": "string",
          "x-nullable": true
        },
        "deleted_at": {
          "format": "date-time",
          "title": "Дата и время удаления",
          "type": "string",
          "x-nullable": true
        },
        "external_id": {
          "maxLength": 512,
          "title": "Внешний идентификатор",
          "type": "string",
          "x-nullable": true
        },
        "files": {
          "items": {
            "$ref": "#/definitions/PublicCommentFile"
          },
          "readOnly": true,
          "type": "array"
        },
        "id": {
          "readOnly": true,
          "title": "ID",
          "type": "integer"
        },
        "is_deleted": {
          "title": "Удалено",
          "type": "boolean"
        },
        "object_id": {
          "readOnly": true,
          "title": "Object id",
          "type": "integer"
        },
        "pinned": {
          "title": "Закреплено",
          "type": "boolean"
        },
        "quote_text": {
          "title": "Цитируемый текст",
          "type": "string"
        },
        "resolved": {
          "title": "Выполнен",
          "type": "boolean"
        },
        "task": {
          "title": "Задача",
          "type": "integer"
        },
        "thread_root_id": {
          "readOnly": true,
          "title": "Thread root id",
          "type": "string"
        }
      },
      "required": [
        "task"
      ],
      "type": "object"
    },
    "PublicTaskCommentAnswer": {
      "properties": {
        "author": {
          "$ref": "#/definitions/PublicUser"
        },
        "comment": {
          "minLength": 1,
          "readOnly": true,
          "title": "Comment",
          "type": "string"
        },
        "datetime_created": {
          "format": "date-time",
          "readOnly": true,
          "title": "Datetime created",
          "type": "string"
        },
        "id": {
          "readOnly": true,
          "title": "Id",
          "type": "integer"
        }
      },
      "type": "object"
    },
    "PublicTaskCommentCreate": {
      "properties": {
        "answer_to": {
          "title": "Answer to",
          "type": "integer",
          "x-nullable": true
        },
        "comment": {
          "default": "",
          "title": "Comment",
          "type": "string"
        },
        "comment_files_to_add": {
          "items": {
            "format": "uuid",
            "type": "string"
          },
          "type": "array"
        },
        "external_id": {
          "maxLength": 512,
          "title": "Внешний идентификатор",
          "type": "string",
          "x-nullable": true
        },
        "quote_text": {
          "title": "Цитируемый текст",
          "type": "string"
        },
        "thread_root": {
          "title": "Thread root",
          "type": "integer",
          "x-nullable": true
        }
      },
      "type": "object"
    },
    "PublicTaskCommentUpdate": {
      "properties": {
        "comment": {
          "title": "Comment",
          "type": "string"
        },
        "comment_files_to_add": {
          "items": {
            "type": "string",
            "x-nullable": true
          },
          "type": "array"
        },
        "comment_files_to_remove": {
          "items": {
            "type": "string",
            "x-nullable": true
          },
          "type": "array"
        },
        "is_deleted": {
          "title": "Удалено",
          "type": "boolean"
        },
        "pinned": {
          "title": "Закреплено",
          "type": "boolean"
        },
        "resolved": {
          "title": "Выполнен",
          "type": "boolean"
        }
      },
      "type": "object"
    },
    "PublicTaskCreate": {
      "properties": {
        "datasource": {
          "title": "Datasource",
          "type": "integer"
        },
        "date_start": {
          "format": "date",
          "title": "Дата начала исполнения задачи",
          "type": "string",
          "x-nullable": true
        },
        "date_start_time": {
          "title": "Время начала исполнения задачи",
          "type": "string",
          "x-nullable": true
        },
        "deadline": {
          "format": "date",
          "title": "Дата дедлайна задачи",
          "type": "string",
          "x-nullable": true
        },
        "deadline_time": {
          "title": "Время дедлайна задачи",
          "type": "string",
          "x-nullable": true
        },
        "description": {
          "title": "Описание задачи",
          "type": "object",
          "x-nullable": true
        },
        "executors": {
          "items": {
            "description": "Объект {member_type, member_id}; также принимается id участника команды числом или строкой",
            "properties": {
              "member_id": {
                "type": "integer"
              },
              "member_type": {
                "enum": [
                  "team_member",
                  "division",
                  "group",
                  "position"
                ],
                "type": "string"
              }
            },
            "required": [
              "member_type",
              "member_id"
            ],
            "type": "object"
          },
          "type": "array"
        },
        "external_id": {
          "maxLength": 512,
          "title": "Внешний идентификатор",
          "type": "string",
          "x-nullable": true
        },
        "group": {
          "title": "Группа",
          "type": "integer",
          "x-nullable": true
        },
        "name": {
          "maxLength": 399,
          "minLength": 1,
          "title": "Название",
          "type": "string"
        },
        "order": {
          "title": "Order",
          "type": "number"
        },
        "parent": {
          "title": "Parent",
          "type": "integer"
        },
        "planned_time_minutes": {
          "maximum": 9223372036854775807,
          "minimum": -9223372036854775808,
          "title": "Запланированное время в минутах",
          "type": "integer"
        },
        "planned_time_type": {
          "enum": [
            "minute",
            "hour",
            "day",
            "week",
            "month"
          ],
          "title": "Тип запланированного времени в минутах",
          "type": "string"
        },
        "priority": {
          "enum": [
            "critical",
            "high",
            "medium",
            "low"
          ],
          "title": "Priority",
          "type": "string"
        },
        "responsibles": {
          "items": {
            "description": "Объект {member_type, member_id}; также принимается id участника команды числом или строкой",
            "properties": {
              "member_id": {
                "type": "integer"
              },
              "member_type": {
                "enum": [
                  "team_member",
                  "division",
                  "group",
                  "position"
                ],
                "type": "string"
              }
            },
            "required": [
              "member_type",
              "member_id"
            ],
            "type": "object"
          },
          "type": "array"
        },
        "stage": {
          "title": "Stage",
          "type": "integer",
          "x-nullable": true
        },
        "status": {
          "title": "Status",
          "type": "integer",
          "x-nullable": true
        },
        "task_labels": {
          "items": {
            "type": "integer"
          },
          "type": "array"
        },
        "type": {
          "title": "Type",
          "type": "integer"
        }
      },
      "required": [
        "name",
        "datasource",
        "type"
      ],
      "type": "object"
    },
    "PublicTaskCustomFieldList": {
      "properties": {
        "custom_field_values": {
          "items": {
            "$ref": "#/definitions/PublicTaskCustomFieldValue"
          },
          "readOnly": true,
          "type": "array"
        },
        "id": {
          "format": "uuid",
          "readOnly": true,
          "title": "Id",
          "type": "string"
        },
        "multiple_choice": {
          "readOnly": true,
          "title": "Множественный выбор",
          "type": "boolean"
        },
        "name": {
          "minLength": 1,
          "readOnly": true,
          "title": "Название",
          "type": "string"
        },
        "type": {
          "enum": [
            "users",
            "text",
            "number",
            "date",
            "menu",
            "file",
            "duration",
            "link",
            "email",
            "phone",
            "cost",
            "dropdown",
            "location",
            "formula"
          ],
          "readOnly": true,
          "title": "Тип",
          "type": "string",
          "x-nullable": true
        },
        "values": {
          "items": {
            "$ref": "#/definitions/PublicCustomFieldOption"
          },
          "readOnly": true,
          "type": "array"
        }
      },
      "type": "object"
    },
    "PublicTaskCustomFieldValue": {
      "properties": {
        "extra": {
          "readOnly": true,
          "title": "Extra",
          "x-nullable": true
        },
        "file": {
          "format": "uri",
          "readOnly": true,
          "title": "Файл",
          "type": "string",
          "x-nullable": true
        },
        "file_extension": {
          "readOnly": true,
          "title": "File extension",
          "type": "string",
          "x-nullable": true
        },
        "filename": {
          "readOnly": true,
          "title": "Filename",
          "type": "string",
          "x-nullable": true
        },
        "id": {
          "readOnly": true,
          "title": "ID",
          "type": "integer"
        },
        "option": {
          "$ref": "#/definitions/PublicCustomFieldOption"
        },
        "size": {
          "minLength": 1,
          "readOnly": true,
          "title": "Size",
          "type": "string",
          "x-nullable": true
        },
        "task": {
          "readOnly": true,
          "title": "Task",
          "type": "integer"
        },
        "user": {
          "$ref": "#/definitions/PublicUser"
        },
        "value": {
          "readOnly": true,
          "title": "Значение в текстовом виде",
          "type": "string",
          "x-nullable": true
        }
      },
      "type": "object"
    },
    "PublicTaskCustomFieldValueCreate": {
      "properties": {
        "extra": {
          "title": "Экстра данные",
          "type": "object",
          "x-nullable": true
        },
        "field": {
          "minLength": 1,
          "title": "Field",
          "type": "string"
        },
        "file": {
          "format": "uri",
          "readOnly": true,
          "title": "Файл",
          "type": "string",
          "x-nullable": true
        },
        "option": {
          "title": "Option",
          "type": "integer"
        },
        "user": {
          "title": "User",
          "type": "integer"
        },
        "value": {
          "title": "Значение в текстовом виде",
          "type": "string",
          "x-nullable": true
        }
      },
      "required": [
        "field"
      ],
      "type": "object"
    },
    "PublicTaskCustomFieldValueUpdate": {
      "properties": {
        "extra": {
          "title": "Экстра данные",
          "type": "object",
          "x-nullable": true
        },
        "value": {
          "title": "Значение в текстовом виде",
          "type": "string",
          "x-nullable": true
        }
      },
      "type": "object"
    },
    "PublicTaskDetail": {
      "properties": {
        "archived": {
          "title": "Архивирована",
          "type": "boolean"
        },
        "completed": {
          "title": "Завершена",
          "type": "boolean"
        },
        "created_by": {
          "$ref": "#/definitions/PublicUser"
        },
        "custom_fields": {
          "items": {
            "$ref": "#/definitions/PublicTaskCustomFieldList"
          },
          "readOnly": true,
          "type": "array"
        },
        "datasource": {
          "title": "Источник",
          "type": "integer",
          "x-nullable": true
        },
        "date_created": {
          "format": "date-time",
          "readOnly": true,
          "title": "Дата создания задачи",
          "type": "string"
        },
        "date_start": {
          "format": "date",
          "title": "Дата начала исполнения задачи",
          "type": "string",
          "x-nullable": true
        },
        "date_start_time": {
          "title": "Время начала исполнения задачи",
          "type": "string",
          "x-nullable": true
        },
        "date_updated": {
          "format": "date-time",
          "readOnly": true,
          "title": "Дата изменения задачи",
          "type": "string"
        },
        "deadline": {
          "format": "date",
          "title": "Дата дедлайна задачи",
          "type": "string",
          "x-nullable": true
        },
        "deadline_time": {
          "title": "Время дедлайна задачи",
          "type": "string",
          "x-nullable": true
        },
        "description": {
          "readOnly": true,
          "title": "Description",
          "type": "string"
        },
        "executors": {
          "items": {
            "$ref": "#/definitions/PublicTaskExecutor"
          },
          "readOnly": true,
          "type": "array"
        },
        "external_id": {
          "maxLength": 512,
          "title": "Внешний идентификатор",
          "type": "string",
          "x-nullable": true
        },
        "group": {
          "$ref": "#/definitions/PublicGroup"
        },
        "id": {
          "readOnly": true,
          "title": "ID",
          "type": "integer"
        },
        "name": {
          "maxLength": 2048,
          "minLength": 1,
          "title": "Название",
          "type": "string"
        },
        "parent_id": {
          "readOnly": true,
          "title": "Parent id",
          "type": "string"
        },
        "planned_time_minutes": {
          "maximum": 9223372036854775807,
          "minimum": -9223372036854775808,
          "title": "Запланированное время в минутах",
          "type": "integer"
        },
        "planned_time_type": {
          "enum": [
            "minute",
            "hour",
            "day",
            "week",
            "month"
          ],
          "title": "Тип запланированного времени в минутах",
          "type": "string"
        },
        "priority": {
          "enum": [
            "critical",
            "high",
            "medium",
            "low"
          ],
          "title": "Приоритет",
          "type": "string"
        },
        "progress": {
          "maximum": 2147483647,
          "minimum": -2147483648,
          "title": "Прогресс",
          "type": "integer"
        },
        "responsibles": {
          "items": {
            "$ref": "#/definitions/PublicTaskResponsible"
          },
          "readOnly": true,
          "type": "array"
        },
        "slug": {
          "format": "slug",
          "maxLength": 60,
          "minLength": 1,
          "title": "Слаг",
          "type": "string",
          "x-nullable": true
        },
        "stage": {
          "$ref": "#/definitions/PublicStage"
        },
        "status": {
          "$ref": "#/definitions/PublicStatus"
        },
        "subtasks_count": {
          "default": 0,
          "title": "Subtasks count",
          "type": "integer"
        },
        "task_labels": {
          "items": {
            "$ref": "#/definitions/PublicLabel"
          },
          "readOnly": true,
          "type": "array"
        },
        "type": {
          "$ref": "#/definitions/PublicTaskType"
        },
        "updated_by": {
          "$ref": "#/definitions/PublicUser"
        },
        "version": {
          "maximum": 9223372036854775807,
          "minimum": 0,
          "title": "Версия задачи",
          "type": "integer"
        }
      },
      "required": [
        "name"
      ],
      "type": "object"
    },
    "PublicTaskExecutor": {
      "properties": {
        "finished": {
          "readOnly": true,
          "title": "Завершил задачу",
          "type": "boolean"
        },
        "id": {
          "readOnly": true,
          "title": "ID",
          "type": "integer"
        },
        "member": {
          "$ref": "#/definitions/PublicMemberReference"
        },
        "member_type": {
          "readOnly": true,
          "title": "Member type",
          "type": "string",
          "x-nullable": true
        }
      },
      "type": "object"
    },
    "PublicTaskExecutorCreate": {
      "properties": {
        "member_id": {
          "title": "Member id",
          "type": "integer"
        },
        "member_type": {
          "enum": [
            "team_member",
            "division",
            "group",
            "position"
          ],
          "title": "Member type",
          "type": "string"
        },
        "task": {
          "title": "Task",
          "type": "integer"
        }
      },
      "required": [
        "task",
        "member_type",
        "member_id"
      ],
      "type": "object"
    },
    "PublicTaskExecutorUpdate": {
      "properties": {
        "finished": {
          "title": "Завершил задачу",
          "type": "boolean"
        },
        "id": {
          "readOnly": true,
          "title": "ID",
          "type": "integer"
        }
      },
      "type": "object"
    },
    "PublicTaskFile": {
      "properties": {
        "created_at": {
          "format": "date-time",
          "readOnly": true,
          "title": "Дата создания",
          "type": "string"
        },
        "extension": {
          "minLength": 1,
          "readOnly": true,
          "title": "Extension",
          "type": "string"
        },
        "file": {
          "format": "uri",
          "readOnly": true,
          "title": "Файл",
          "type": "string"
        },
        "id": {
          "format": "uuid",
          "readOnly": true,
          "title": "Id",
          "type": "string"
        },
        "name": {
          "minLength": 1,
          "readOnly": true,
          "title": "Name",
          "type": "string"
        },
        "size": {
          "maximum": 9223372036854775807,
          "minimum": 0,
          "title": "Размер файла в байтах",
          "type": "integer"
        },
        "size_kb": {
          "readOnly": true,
          "title": "Size kb",
          "type": "string"
        },
        "task": {
          "title": "Задача",
          "type": "integer"
        },
        "uploaded_by": {
          "$ref": "#/definitions/PublicUser"
        }
      },
      "required": [
        "task"
      ],
      "type": "object"
    },
    "PublicTaskFileCreate": {
      "properties": {
        "file": {
          "format": "uri",
          "readOnly": true,
          "title": "File",
          "type": "string"
        }
      },
      "type": "object"
    },
    "PublicTaskHistory": {
      "properties": {
        "change_type": {
          "description": "Тип изменения: создано, обновлено, удалено",
          "enum": [
            {
              "display": "Создано",
              "value": "+"
            },
            {
              "display": "Обновлено",
              "value": "~"
            },
            {
              "display": "Удалено",
              "value": "-"
            }
          ],
          "title": "Change type",
          "type": "string"
        },
        "changed_at": {
          "format": "date-time",
          "readOnly": true,
          "title": "Дата и время изменений",
          "type": "string"
        },
        "field_name": {
          "description": "Название измененного поля",
          "maxLength": 150,
          "minLength": 1,
          "title": "Field name",
          "type": "string"
        },
        "new_value": {
          "description": "Значение поля после изменения",
          "readOnly": true,
          "title": "New value",
          "type": "string"
        },
        "previous_value": {
          "description": "Значение поля до изменения",
          "readOnly": true,
          "title": "Previous value",
          "type": "string"
        },
        "user": {
          "$ref": "#/definitions/PublicUser"
        }
      },
      "required": [
        "change_type",
        "field_name"
      ],
      "type": "object"
    },
    "PublicTaskResponsible": {
      "properties": {
        "id": {
          "readOnly": true,
          "title": "ID",
          "type": "integer"
        },
        "is_confirmed_closing": {
          "readOnly": true,
          "title": "Подтвердить закрытие задачи",
          "type": "boolean"
        },
        "member": {
          "$ref": "#/definitions/PublicMemberReference"
        },
        "member_type": {
          "readOnly": true,
          "title": "Member type",
          "type": "string",
          "x-nullable": true
        }
      },
      "type": "object"
    },
    "PublicTaskResponsibleCreate": {
      "properties": {
        "member_id": {
          "title": "Member id",
          "type": "integer"
        },
        "member_type": {
          "enum": [
            "team_member",
            "division",
            "group",
            "position"
          ],
          "title": "Member type",
          "type": "string"
        },
        "task": {
          "title": "Task",
          "type": "integer"
        }
      },
      "required": [
        "task",
        "member_type",
        "member_id"
      ],
      "type": "object"
    },
    "PublicTaskResponsibleUpdate": {
      "properties": {
        "id": {
          "readOnly": true,
          "title": "ID",
          "type": "integer"
        },
        "is_confirmed_closing": {
          "title": "Подтвердить закрытие задачи",
          "type": "boolean"
        }
      },
      "type": "object"
    },
    "PublicTaskType": {
      "properties": {
        "icon": {
          "maxLength": 256,
          "title": "Иконка",
          "type": "string"
        },
        "id": {
          "readOnly": true,
          "title": "ID",
          "type": "integer"
        },
        "name": {
          "maxLength": 1000,
          "minLength": 1,
          "title": "Название",
          "type": "string"
        }
      },
      "required": [
        "name"
      ],
      "type": "object"
    },
    "PublicTaskTypeCreate": {
      "properties": {
        "icon": {
          "default": "task",
          "maxLength": 256,
          "minLength": 1,
          "title": "Icon",
          "type": "string"
        },
        "name": {
          "maxLength": 1000,
          "minLength": 1,
          "title": "Name",
          "type": "string"
        }
      },
      "required": [
        "name"
      ],
      "type": "object"
    },
    "PublicTaskTypeField": {
      "properties": {
        "default_field": {
          "enum": [
            "executor",
            "responsible",
            "deadline",
            "status",
            "priority",
            "estimate",
            "stage",
            "connections",
            "labels",
            "cost",
            "progress"
          ],
          "readOnly": true,
          "title": "Стандартный тип поля",
          "type": "string",
          "x-nullable": true
        },
        "field": {
          "format": "uuid",
          "readOnly": true,
          "title": "Field",
          "type": "string",
          "x-nullable": true
        },
        "id": {
          "readOnly": true,
          "title": "ID",
          "type": "integer"
        },
        "order": {
          "readOnly": true,
          "title": "Порядок",
          "type": "integer"
        }
      },
      "type": "object"
    },
    "PublicTaskTypeFieldCreate": {
      "properties": {
        "default_field": {
          "enum": [
            "executor",
            "responsible",
            "deadline",
            "status",
            "priority",
            "estimate",
            "stage",
            "connections",
            "labels",
            "cost",
            "progress"
          ],
          "title": "Default field",
          "type": "string",
          "x-nullable": true
        },
        "field": {
          "format": "uuid",
          "title": "Field",
          "type": "string",
          "x-nullable": true
        }
      },
      "type": "object"
    },
    "PublicTaskTypeUpdate": {
      "properties": {
        "icon": {
          "maxLength": 256,
          "minLength": 1,
          "title": "Icon",
          "type": "string"
        },
        "name": {
          "maxLength": 1000,
          "minLength": 1,
          "title": "Name",
          "type": "string"
        }
      },
      "type": "object"
    },
    "PublicTaskUpdate": {
      "properties": {
        "archived": {
          "title": "Архивирована",
          "type": "boolean"
        },
        "completed": {
          "title": "Завершена",
          "type": "boolean"
        },
        "custom_fields": {
          "items": {
            "additionalProperties": {
              "type": "string",
              "x-nullable": true
            },
            "type": "object"
          },
          "type": "array"
        },
        "datasource": {
          "title": "Источник",
          "type": "integer",
          "x-nullable": true
        },
        "date_start": {
          "format": "date",
          "title": "Дата начала исполнения задачи",
          "type": "string",
          "x-nullable": true
        },
        "date_start_time": {
          "title": "Время начала исполнения задачи",
          "type": "string",
          "x-nullable": true
        },
        "deadline": {
          "format": "date",
          "title": "Дата дедлайна задачи",
          "type": "string",
          "x-nullable": true
        },
        "deadline_time": {
          "title": "Время дедлайна задачи",
          "type": "string",
          "x-nullable": true
        },
        "description": {
          "title": "Описание задачи",
          "type": "object",
          "x-nullable": true
        },
        "executors": {
          "items": {
            "description": "Объект {member_type, member_id}; также принимается id участника команды числом или строкой",
            "properties": {
              "member_id": {
                "type": "integer"
              },
              "member_type": {
                "enum": [
                  "team_member",
                  "division",
                  "group",
                  "position"
                ],
                "type": "string"
              }
            },
            "required": [
              "member_type",
              "member_id"
            ],
            "type": "object"
          },
          "type": "array"
        },
        "group": {
          "title": "Группа",
          "type": "integer",
          "x-nullable": true
        },
        "name": {
          "maxLength": 399,
          "minLength": 1,
          "title": "Название",
          "type": "string"
        },
        "order": {
          "title": "Позиция задачи",
          "type": "number"
        },
        "parent": {
          "title": "Parent",
          "type": "integer",
          "x-nullable": true
        },
        "planned_time_minutes": {
          "maximum": 9223372036854775807,
          "minimum": -9223372036854775808,
          "title": "Запланированное время в минутах",
          "type": "integer"
        },
        "planned_time_type": {
          "enum": [
            "minute",
            "hour",
            "day",
            "week",
            "month"
          ],
          "title": "Тип запланированного времени в минутах",
          "type": "string"
        },
        "priority": {
          "enum": [
            "critical",
            "high",
            "medium",
            "low"
          ],
          "title": "Priority",
          "type": "string"
        },
        "progress": {
          "maximum": 100,
          "minimum": 0,
          "title": "Progress",
          "type": "integer"
        },
        "responsibles": {
          "items": {
            "description": "Объект {member_type, member_id}; также принимается id участника команды числом или строкой",
            "properties": {
              "member_id": {
                "type": "integer"
              },
              "member_type": {
                "enum": [
                  "team_member",
                  "division",
                  "group",
                  "position"
                ],
                "type": "string"
              }
            },
            "required": [
              "member_type",
              "member_id"
            ],
            "type": "object"
          },
          "type": "array"
        },
        "shift_comment": {
          "maxLength": 1000,
          "title": "Shift comment",
          "type": "string",
          "x-nullable": true
        },
        "stage": {
          "title": "Stage",
          "type": "integer",
          "x-nullable": true
        },
        "status": {
          "title": "Status",
          "type": "integer",
          "x-nullable": true
        },
        "task_labels": {
          "description": "Метки для условий перехода по workflow. Для обычного изменения меток используйте /api/tasks/{team_id}/{task_id}/labels/.",
          "items": {
            "type": "integer"
          },
          "type": "array"
        },
        "type": {
          "title": "Type",
          "type": "integer"
        }
      },
      "type": "object"
    },
    "PublicTeamMember": {
      "properties": {
        "accepted": {
          "title": "Статус принятия приглашения",
          "type": "boolean"
        },
        "dismissed_at": {
          "format": "date",
          "title": "Дата увольнения",
          "type": "string",
          "x-nullable": true
        },
        "email": {
          "format": "email",
          "minLength": 1,
          "readOnly": true,
          "title": "Email",
          "type": "string"
        },
        "emails": {
          "items": {
            "$ref": "#/definitions/PublicMemberEmail"
          },
          "readOnly": true,
          "type": "array"
        },
        "employee_number": {
          "maxLength": 64,
          "title": "Табельный номер",
          "type": "string"
        },
        "employment_status": {
          "enum": [
            "active",
            "dismissed"
          ],
          "title": "Кадровый статус",
          "type": "string"
        },
        "external_id": {
          "maxLength": 255,
          "title": "Внешний идентификатор",
          "type": "string",
          "x-nullable": true
        },
        "hr_department": {
          "title": "Подразделение из учётной системы",
          "type": "integer",
          "x-nullable": true
        },
        "hr_position": {
          "title": "Должность из учётной системы",
          "type": "integer",
          "x-nullable": true
        },
        "id": {
          "readOnly": true,
          "title": "ID",
          "type": "integer"
        },
        "is_blocked": {
          "title": "Заблокирован",
          "type": "boolean"
        },
        "order": {
          "title": "Позиция сотрудника",
          "type": "number"
        },
        "role": {
          "$ref": "#/definitions/PublicRole"
        },
        "user": {
          "$ref": "#/definitions/PublicUser"
        }
      },
      "type": "object"
    },
    "PublicTeamMemberInvite": {
      "properties": {
        "role": {
          "minimum": 1,
          "title": "Role",
          "type": "integer"
        },
        "send_email": {
          "default": true,
          "title": "Send email",
          "type": "boolean"
        },
        "system_role": {
          "enum": [
            "guest"
          ],
          "title": "System role",
          "type": "string"
        },
        "usernames": {
          "items": {
            "format": "email",
            "maxLength": 254,
            "minLength": 1,
            "type": "string"
          },
          "maxItems": 100,
          "type": "array"
        }
      },
      "required": [
        "usernames"
      ],
      "type": "object"
    },
    "PublicTeamMemberInviteResponse": {
      "properties": {
        "members": {
          "items": {
            "$ref": "#/definitions/PublicTeamMember"
          },
          "readOnly": true,
          "type": "array"
        }
      },
      "type": "object"
    },
    "PublicUser": {
      "properties": {
        "first_name": {
          "minLength": 1,
          "readOnly": true,
          "title": "Имя",
          "type": "string"
        },
        "full_name": {
          "minLength": 1,
          "readOnly": true,
          "title": "Full name",
          "type": "string"
        },
        "id": {
          "readOnly": true,
          "title": "ID",
          "type": "integer"
        },
        "last_name": {
          "minLength": 1,
          "readOnly": true,
          "title": "Фамилия",
          "type": "string",
          "x-nullable": true
        }
      },
      "required": [
        "id",
        "first_name",
        "last_name",
        "full_name"
      ],
      "type": "object"
    },
    "PublicView": {
      "properties": {
        "created_by_id": {
          "readOnly": true,
          "title": "Created by id",
          "type": "string"
        },
        "emoji": {
          "minLength": 1,
          "readOnly": true,
          "title": "Emoji",
          "type": "string"
        },
        "icon": {
          "minLength": 1,
          "readOnly": true,
          "title": "Иконка",
          "type": "string"
        },
        "id": {
          "readOnly": true,
          "title": "ID",
          "type": "integer"
        },
        "name": {
          "minLength": 1,
          "readOnly": true,
          "title": "Название",
          "type": "string"
        },
        "order": {
          "readOnly": true,
          "title": "Порядок",
          "type": "number"
        },
        "parent_id": {
          "readOnly": true,
          "title": "Parent id",
          "type": "string"
        },
        "type": {
          "enum": [
            "board",
            "list",
            "calendar",
            "matrix",
            "files",
            "gantt",
            "embedded",
            "folder",
            "page",
            "portfolio",
            "form",
            "knowledge_base",
            "map",
            "whiteboard"
          ],
          "readOnly": true,
          "title": "Тип",
          "type": "string"
        }
      },
      "type": "object"
    },
    "PublicViewCreate": {
      "properties": {
        "datasource": {
          "title": "Datasource",
          "type": "integer",
          "x-nullable": true
        },
        "description": {
          "default": "",
          "description": "HTML описание",
          "minLength": 1,
          "title": "Description",
          "type": "string"
        },
        "emoji": {
          "maxLength": 256,
          "title": "Emoji",
          "type": "string"
        },
        "icon": {
          "maxLength": 256,
          "title": "Иконка",
          "type": "string"
        },
        "name": {
          "maxLength": 256,
          "minLength": 1,
          "title": "Название",
          "type": "string"
        },
        "parent": {
          "title": "Parent",
          "type": "integer",
          "x-nullable": true
        },
        "type": {
          "enum": [
            "board",
            "list",
            "calendar",
            "matrix",
            "files",
            "gantt",
            "embedded",
            "folder",
            "page",
            "portfolio",
            "form",
            "knowledge_base",
            "map",
            "whiteboard"
          ],
          "title": "Тип",
          "type": "string"
        }
      },
      "required": [
        "name"
      ],
      "type": "object"
    },
    "PublicViewUpdate": {
      "properties": {
        "emoji": {
          "maxLength": 256,
          "title": "Emoji",
          "type": "string"
        },
        "icon": {
          "maxLength": 256,
          "title": "Иконка",
          "type": "string"
        },
        "name": {
          "maxLength": 256,
          "minLength": 1,
          "title": "Название",
          "type": "string"
        },
        "order": {
          "title": "Порядок",
          "type": "number"
        },
        "parent": {
          "title": "Parent",
          "type": "integer",
          "x-nullable": true
        },
        "type": {
          "enum": [
            "board",
            "list",
            "calendar",
            "matrix",
            "files",
            "gantt",
            "embedded",
            "folder",
            "page",
            "portfolio",
            "form",
            "knowledge_base",
            "map",
            "whiteboard"
          ],
          "title": "Тип",
          "type": "string"
        }
      },
      "required": [
        "name"
      ],
      "type": "object"
    },
    "TaskLabelAttach": {
      "properties": {
        "label_id": {
          "description": "ID существующей метки команды.",
          "minimum": 1,
          "title": "Label id",
          "type": "integer"
        }
      },
      "required": [
        "label_id"
      ],
      "type": "object"
    },
    "TaskLabels": {
      "properties": {
        "task_labels": {
          "items": {
            "$ref": "#/definitions/PublicLabel"
          },
          "readOnly": true,
          "type": "array"
        }
      },
      "type": "object"
    },
    "TaskLabelsReplace": {
      "properties": {
        "label_ids": {
          "description": "Полный набор ID меток команды. Пустой список снимает все метки с задачи.",
          "items": {
            "minimum": 1,
            "type": "integer"
          },
          "type": "array"
        }
      },
      "required": [
        "label_ids"
      ],
      "type": "object"
    },
    "TimeEntryRow": {
      "properties": {
        "datasource_id": {
          "title": "Datasource id",
          "type": "integer",
          "x-nullable": true
        },
        "duration_sec": {
          "readOnly": true,
          "title": "Длительность в секундах",
          "type": "integer",
          "x-nullable": true
        },
        "ended_at": {
          "format": "date-time",
          "readOnly": true,
          "title": "Окончание",
          "type": "string",
          "x-nullable": true
        },
        "id": {
          "readOnly": true,
          "title": "ID",
          "type": "integer"
        },
        "is_deleted": {
          "readOnly": true,
          "title": "Удалена",
          "type": "boolean"
        },
        "kind": {
          "readOnly": true,
          "title": "Kind",
          "type": "string"
        },
        "member_external_id": {
          "readOnly": true,
          "title": "Member external id",
          "type": "string",
          "x-nullable": true
        },
        "source": {
          "enum": [
            "timer_desktop",
            "timer_web",
            "timer_mobile",
            "timer_clipper",
            "idle",
            "manual",
            "assigned_from_block",
            "import"
          ],
          "readOnly": true,
          "title": "Источник",
          "type": "string"
        },
        "started_at": {
          "format": "date-time",
          "readOnly": true,
          "title": "Начало",
          "type": "string"
        },
        "task_id": {
          "title": "Task id",
          "type": "integer",
          "x-nullable": true
        },
        "updated_at": {
          "format": "date-time",
          "readOnly": true,
          "title": "Дата обновления",
          "type": "string"
        },
        "user_id": {
          "title": "User id",
          "type": "integer"
        }
      },
      "required": [
        "user_id",
        "task_id",
        "datasource_id"
      ],
      "type": "object"
    },
    "WorktimeReportRow": {
      "properties": {
        "datasource_id": {
          "title": "Datasource id",
          "type": "integer",
          "x-nullable": true
        },
        "date": {
          "format": "date",
          "title": "Date",
          "type": "string"
        },
        "minutes": {
          "title": "Minutes",
          "type": "number"
        },
        "seconds": {
          "title": "Seconds",
          "type": "integer"
        },
        "source": {
          "enum": [
            "tracker",
            "manual",
            "idle"
          ],
          "title": "Source",
          "type": "string"
        },
        "task_id": {
          "title": "Task id",
          "type": "integer",
          "x-nullable": true
        },
        "user_id": {
          "title": "User id",
          "type": "integer"
        }
      },
      "required": [
        "date",
        "user_id",
        "datasource_id",
        "task_id",
        "source",
        "minutes",
        "seconds"
      ],
      "type": "object"
    }
  },
  "host": "my.shtab.app",
  "info": {
    "description": "Публичный контур продуктового API Штаба: доступны только размеченные ручки, доступ — токеном с грантами.",
    "title": "Shtab Public API",
    "version": "v1"
  },
  "paths": {
    "/api/bots/{team_id}/avatar/": {
      "parameters": [
        {
          "in": "path",
          "name": "team_id",
          "required": true,
          "type": "string"
        }
      ],
      "post": {
        "consumes": [
          "multipart/form-data"
        ],
        "description": "",
        "operationId": "api_bots_avatar_create",
        "parameters": [
          {
            "in": "formData",
            "name": "avatar",
            "required": true,
            "type": "file"
          }
        ],
        "responses": {
          "204": {
            "description": "Аватар обновлён"
          },
          "400": {
            "description": "Параметры или тело запроса не прошли проверку.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "401": {
            "description": "Токен отсутствует или недействителен.",
            "schema": {
              "$ref": "#/definitions/PublicAuthenticationError"
            }
          },
          "402": {
            "description": "Тариф команды не включает запрошенную возможность.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "403": {
            "description": "Токену не выдан нужный грант или у пользователя отсутствуют права доступа.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "404": {
            "description": "Метод недоступен токену или объект отсутствует в доступной области.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "429": {
            "description": "Превышен лимит запросов. Заголовок Retry-After указывает время ожидания в секундах.",
            "headers": {
              "Retry-After": {
                "description": "Секунд до следующей попытки.",
                "type": "integer"
              }
            },
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          }
        },
        "security": [
          {
            "BearerToken": []
          }
        ],
        "summary": "Загрузить аватар своего бота",
        "tags": [
          "messenger"
        ],
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import os\nfrom pathlib import Path\n\nfrom shtab_sdk import ApiError, ShtabClient, FileUpload\n\nclient = ShtabClient(os.environ[\"SHTAB_TOKEN\"], token_type=\"bot\")\ntry:\n    result = client.bots_avatar_create(path={'team_id': '1'}, body={'avatar': FileUpload('avatar.png', Path('avatar.png').read_bytes())})\n    print(result)\nexcept ApiError as error:\n    print(error.status, error.code, error.body)\n    raise"
          },
          {
            "lang": "TypeScript",
            "source": "import { ApiError, ShtabClient } from \"@shtabapp/sdk\";\nimport { readFile } from \"node:fs/promises\";\n\nconst token = process.env.SHTAB_TOKEN;\nif (!token) throw new Error(\"Set SHTAB_TOKEN\");\nconst client = new ShtabClient(token, { tokenType: \"bot\" });\ntry {\n  const result = await client.botsAvatarCreate({\n    \"path\": {\n      \"team_id\": \"1\"\n    },\n    \"body\": {\n      \"avatar\": new File([new Uint8Array(await readFile(\"avatar.png\"))], \"avatar.png\")\n    }\n  });\n  console.log(result);\n} catch (error) {\n  if (error instanceof ApiError) console.error(error.status, error.code, error.body);\n  throw error;\n}"
          }
        ],
        "x-shtab-scope": "messenger.messages:write",
        "x-shtab-sdk": {
          "python": "bots_avatar_create",
          "typescript": "botsAvatarCreate"
        },
        "x-shtab-token-types": [
          "bot"
        ]
      }
    },
    "/api/bots/{team_id}/chats/{chat_id}/messages/": {
      "get": {
        "description": "История чата доступна с момента его создания и включает сообщения до добавления бота. Сообщения возвращаются от новых к старым. Курсор next_before передаётся в before для следующей страницы. Для ответов в обсуждении используйте историю обсуждения.",
        "operationId": "api_bots_chats_messages_list",
        "parameters": [
          {
            "default": 50,
            "in": "query",
            "maximum": 100,
            "minimum": 1,
            "name": "limit",
            "required": false,
            "type": "integer"
          },
          {
            "in": "query",
            "minimum": 1,
            "name": "before",
            "required": false,
            "type": "integer"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "schema": {
              "$ref": "#/definitions/BotMessagePage"
            }
          },
          "400": {
            "description": "Параметры или тело запроса не прошли проверку.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "401": {
            "description": "Токен отсутствует или недействителен.",
            "schema": {
              "$ref": "#/definitions/PublicAuthenticationError"
            }
          },
          "402": {
            "description": "Тариф команды не включает запрошенную возможность.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "403": {
            "description": "Токену не выдан нужный грант или у пользователя отсутствуют права доступа.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "404": {
            "description": "Метод недоступен токену или объект отсутствует в доступной области.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "429": {
            "description": "Превышен лимит запросов. Заголовок Retry-After указывает время ожидания в секундах.",
            "headers": {
              "Retry-After": {
                "description": "Секунд до следующей попытки.",
                "type": "integer"
              }
            },
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          }
        },
        "security": [
          {
            "BearerToken": []
          }
        ],
        "summary": "История чата бота",
        "tags": [
          "messenger"
        ],
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import os\n\nfrom shtab_sdk import ApiError, ShtabClient\n\nclient = ShtabClient(os.environ[\"SHTAB_TOKEN\"], token_type=\"bot\")\ntry:\n    result = client.bots_chats_messages_list(path={'chat_id': '1', 'team_id': '1'}, query={'limit': 50})\n    print(result)\nexcept ApiError as error:\n    print(error.status, error.code, error.body)\n    raise"
          },
          {
            "lang": "TypeScript",
            "source": "import { ApiError, ShtabClient } from \"@shtabapp/sdk\";\n\nconst token = process.env.SHTAB_TOKEN;\nif (!token) throw new Error(\"Set SHTAB_TOKEN\");\nconst client = new ShtabClient(token, { tokenType: \"bot\" });\ntry {\n  const result = await client.botsChatsMessagesList({\n    \"path\": {\n      \"team_id\": \"1\",\n      \"chat_id\": \"1\"\n    },\n    \"query\": {\n      \"limit\": 50\n    }\n  });\n  console.log(result);\n} catch (error) {\n  if (error instanceof ApiError) console.error(error.status, error.code, error.body);\n  throw error;\n}"
          }
        ],
        "x-shtab-pagination": {
          "cursor": "before",
          "limit": "limit",
          "next": "next_before",
          "type": "cursor"
        },
        "x-shtab-scope": "messenger.messages:read",
        "x-shtab-sdk": {
          "python": "bots_chats_messages_list",
          "typescript": "botsChatsMessagesList"
        },
        "x-shtab-token-types": [
          "bot"
        ]
      },
      "parameters": [
        {
          "in": "path",
          "name": "team_id",
          "required": true,
          "type": "string"
        },
        {
          "in": "path",
          "name": "chat_id",
          "required": true,
          "type": "string"
        }
      ],
      "post": {
        "description": "Отправляет текст в чат. При повторе передайте исходный client_message_id, чтобы получить уже созданное сообщение. Для записи требуется действующее участие бота в чате. Архивный чат доступен для чтения.",
        "operationId": "api_bots_chats_messages_create",
        "parameters": [
          {
            "in": "body",
            "name": "data",
            "required": true,
            "schema": {
              "$ref": "#/definitions/BotMessageSend"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "schema": {
              "$ref": "#/definitions/BotMessage"
            }
          },
          "201": {
            "description": "",
            "schema": {
              "$ref": "#/definitions/BotMessage"
            }
          },
          "400": {
            "description": "Параметры или тело запроса не прошли проверку.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "401": {
            "description": "Токен отсутствует или недействителен.",
            "schema": {
              "$ref": "#/definitions/PublicAuthenticationError"
            }
          },
          "402": {
            "description": "Тариф команды не включает запрошенную возможность.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "403": {
            "description": "Токену не выдан нужный грант или у пользователя отсутствуют права доступа.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "404": {
            "description": "Метод недоступен токену или объект отсутствует в доступной области.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "429": {
            "description": "Превышен лимит запросов. Заголовок Retry-After указывает время ожидания в секундах.",
            "headers": {
              "Retry-After": {
                "description": "Секунд до следующей попытки.",
                "type": "integer"
              }
            },
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          }
        },
        "security": [
          {
            "BearerToken": []
          }
        ],
        "summary": "Отправить сообщение от имени бота",
        "tags": [
          "messenger"
        ],
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import os\n\nfrom shtab_sdk import ApiError, ShtabClient\n\nclient = ShtabClient(os.environ[\"SHTAB_TOKEN\"], token_type=\"bot\")\ntry:\n    result = client.bots_chats_messages_create(path={'chat_id': '1', 'team_id': '1'}, body={'buttons': [{'id': 'confirm', 'text': 'Подтвердить'}],\n     'client_message_id': '00000000-0000-4000-8000-000000000001',\n     'text': 'Подтвердить заявку?'})\n    print(result)\nexcept ApiError as error:\n    print(error.status, error.code, error.body)\n    raise"
          },
          {
            "lang": "TypeScript",
            "source": "import { ApiError, ShtabClient } from \"@shtabapp/sdk\";\n\nconst token = process.env.SHTAB_TOKEN;\nif (!token) throw new Error(\"Set SHTAB_TOKEN\");\nconst client = new ShtabClient(token, { tokenType: \"bot\" });\ntry {\n  const result = await client.botsChatsMessagesCreate({\n    \"path\": {\n      \"team_id\": \"1\",\n      \"chat_id\": \"1\"\n    },\n    \"body\": {\n      \"text\": \"Подтвердить заявку?\",\n      \"buttons\": [\n        {\n          \"id\": \"confirm\",\n          \"text\": \"Подтвердить\"\n        }\n      ],\n      \"client_message_id\": \"00000000-0000-4000-8000-000000000001\"\n    }\n  });\n  console.log(result);\n} catch (error) {\n  if (error instanceof ApiError) console.error(error.status, error.code, error.body);\n  throw error;\n}"
          }
        ],
        "x-shtab-scope": "messenger.messages:write",
        "x-shtab-sdk": {
          "python": "bots_chats_messages_create",
          "typescript": "botsChatsMessagesCreate"
        },
        "x-shtab-token-types": [
          "bot"
        ]
      }
    },
    "/api/bots/{team_id}/chats/{chat_id}/messages/{message_id}/": {
      "delete": {
        "description": "Удаляет собственное сообщение бота в текущем чате. Повторное удаление того же сообщения возвращает 204.",
        "operationId": "api_bots_chats_messages_delete",
        "parameters": [],
        "responses": {
          "204": {
            "description": "Сообщение удалено"
          },
          "400": {
            "description": "Параметры или тело запроса не прошли проверку.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "401": {
            "description": "Токен отсутствует или недействителен.",
            "schema": {
              "$ref": "#/definitions/PublicAuthenticationError"
            }
          },
          "402": {
            "description": "Тариф команды не включает запрошенную возможность.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "403": {
            "description": "Токену не выдан нужный грант или у пользователя отсутствуют права доступа.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "404": {
            "description": "Метод недоступен токену или объект отсутствует в доступной области.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "429": {
            "description": "Превышен лимит запросов. Заголовок Retry-After указывает время ожидания в секундах.",
            "headers": {
              "Retry-After": {
                "description": "Секунд до следующей попытки.",
                "type": "integer"
              }
            },
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          }
        },
        "security": [
          {
            "BearerToken": []
          }
        ],
        "summary": "Удалить сообщение бота",
        "tags": [
          "messenger"
        ],
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import os\n\nfrom shtab_sdk import ApiError, ShtabClient\n\nclient = ShtabClient(os.environ[\"SHTAB_TOKEN\"], token_type=\"bot\")\ntry:\n    result = client.bots_chats_messages_delete(path={'chat_id': '1', 'message_id': '1', 'team_id': '1'})\n    print(result)\nexcept ApiError as error:\n    print(error.status, error.code, error.body)\n    raise"
          },
          {
            "lang": "TypeScript",
            "source": "import { ApiError, ShtabClient } from \"@shtabapp/sdk\";\n\nconst token = process.env.SHTAB_TOKEN;\nif (!token) throw new Error(\"Set SHTAB_TOKEN\");\nconst client = new ShtabClient(token, { tokenType: \"bot\" });\ntry {\n  const result = await client.botsChatsMessagesDelete({\n    \"path\": {\n      \"team_id\": \"1\",\n      \"chat_id\": \"1\",\n      \"message_id\": \"1\"\n    }\n  });\n  console.log(result);\n} catch (error) {\n  if (error instanceof ApiError) console.error(error.status, error.code, error.body);\n  throw error;\n}"
          }
        ],
        "x-shtab-scope": "messenger.messages:write",
        "x-shtab-sdk": {
          "python": "bots_chats_messages_delete",
          "typescript": "botsChatsMessagesDelete"
        },
        "x-shtab-token-types": [
          "bot"
        ]
      },
      "parameters": [
        {
          "in": "path",
          "name": "team_id",
          "required": true,
          "type": "string"
        },
        {
          "in": "path",
          "name": "chat_id",
          "required": true,
          "type": "string"
        },
        {
          "in": "path",
          "name": "message_id",
          "required": true,
          "type": "string"
        }
      ],
      "patch": {
        "description": "Изменяет текст и/или кнопки собственного сообщения. Пропущенные поля сохраняются.",
        "operationId": "api_bots_chats_messages_partial_update",
        "parameters": [
          {
            "in": "body",
            "name": "data",
            "required": true,
            "schema": {
              "$ref": "#/definitions/BotMessageEdit"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "schema": {
              "$ref": "#/definitions/BotMessage"
            }
          },
          "400": {
            "description": "Параметры или тело запроса не прошли проверку.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "401": {
            "description": "Токен отсутствует или недействителен.",
            "schema": {
              "$ref": "#/definitions/PublicAuthenticationError"
            }
          },
          "402": {
            "description": "Тариф команды не включает запрошенную возможность.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "403": {
            "description": "Токену не выдан нужный грант или у пользователя отсутствуют права доступа.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "404": {
            "description": "Метод недоступен токену или объект отсутствует в доступной области.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "429": {
            "description": "Превышен лимит запросов. Заголовок Retry-After указывает время ожидания в секундах.",
            "headers": {
              "Retry-After": {
                "description": "Секунд до следующей попытки.",
                "type": "integer"
              }
            },
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          }
        },
        "security": [
          {
            "BearerToken": []
          }
        ],
        "summary": "Редактировать сообщение бота",
        "tags": [
          "messenger"
        ],
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import os\n\nfrom shtab_sdk import ApiError, ShtabClient\n\nclient = ShtabClient(os.environ[\"SHTAB_TOKEN\"], token_type=\"bot\")\ntry:\n    result = client.bots_chats_messages_partial_update(path={'chat_id': '1', 'message_id': '1', 'team_id': '1'}, body={'buttons': [{'id': 'confirm', 'text': 'Подтвердить'}]})\n    print(result)\nexcept ApiError as error:\n    print(error.status, error.code, error.body)\n    raise"
          },
          {
            "lang": "TypeScript",
            "source": "import { ApiError, ShtabClient } from \"@shtabapp/sdk\";\n\nconst token = process.env.SHTAB_TOKEN;\nif (!token) throw new Error(\"Set SHTAB_TOKEN\");\nconst client = new ShtabClient(token, { tokenType: \"bot\" });\ntry {\n  const result = await client.botsChatsMessagesPartialUpdate({\n    \"path\": {\n      \"team_id\": \"1\",\n      \"chat_id\": \"1\",\n      \"message_id\": \"1\"\n    },\n    \"body\": {\n      \"buttons\": [\n        {\n          \"id\": \"confirm\",\n          \"text\": \"Подтвердить\"\n        }\n      ]\n    }\n  });\n  console.log(result);\n} catch (error) {\n  if (error instanceof ApiError) console.error(error.status, error.code, error.body);\n  throw error;\n}"
          }
        ],
        "x-shtab-scope": "messenger.messages:write",
        "x-shtab-sdk": {
          "python": "bots_chats_messages_partial_update",
          "typescript": "botsChatsMessagesPartialUpdate"
        },
        "x-shtab-token-types": [
          "bot"
        ]
      }
    },
    "/api/bots/{team_id}/chats/{chat_id}/messages/{message_id}/replies/": {
      "get": {
        "description": "Возвращает ответы от новых к старым. message_id — идентификатор корневого сообщения в доступном чате.",
        "operationId": "api_bots_chats_messages_replies_list",
        "parameters": [
          {
            "default": 50,
            "in": "query",
            "maximum": 100,
            "minimum": 1,
            "name": "limit",
            "required": false,
            "type": "integer"
          },
          {
            "in": "query",
            "minimum": 1,
            "name": "before",
            "required": false,
            "type": "integer"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "schema": {
              "$ref": "#/definitions/BotMessagePage"
            }
          },
          "400": {
            "description": "Параметры или тело запроса не прошли проверку.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "401": {
            "description": "Токен отсутствует или недействителен.",
            "schema": {
              "$ref": "#/definitions/PublicAuthenticationError"
            }
          },
          "402": {
            "description": "Тариф команды не включает запрошенную возможность.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "403": {
            "description": "Токену не выдан нужный грант или у пользователя отсутствуют права доступа.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "404": {
            "description": "Метод недоступен токену или объект отсутствует в доступной области.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "429": {
            "description": "Превышен лимит запросов. Заголовок Retry-After указывает время ожидания в секундах.",
            "headers": {
              "Retry-After": {
                "description": "Секунд до следующей попытки.",
                "type": "integer"
              }
            },
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          }
        },
        "security": [
          {
            "BearerToken": []
          }
        ],
        "summary": "История обсуждения бота",
        "tags": [
          "messenger"
        ],
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import os\n\nfrom shtab_sdk import ApiError, ShtabClient\n\nclient = ShtabClient(os.environ[\"SHTAB_TOKEN\"], token_type=\"bot\")\ntry:\n    result = client.bots_chats_messages_replies_list(path={'chat_id': '1', 'message_id': '1', 'team_id': '1'}, query={'limit': 50})\n    print(result)\nexcept ApiError as error:\n    print(error.status, error.code, error.body)\n    raise"
          },
          {
            "lang": "TypeScript",
            "source": "import { ApiError, ShtabClient } from \"@shtabapp/sdk\";\n\nconst token = process.env.SHTAB_TOKEN;\nif (!token) throw new Error(\"Set SHTAB_TOKEN\");\nconst client = new ShtabClient(token, { tokenType: \"bot\" });\ntry {\n  const result = await client.botsChatsMessagesRepliesList({\n    \"path\": {\n      \"team_id\": \"1\",\n      \"chat_id\": \"1\",\n      \"message_id\": \"1\"\n    },\n    \"query\": {\n      \"limit\": 50\n    }\n  });\n  console.log(result);\n} catch (error) {\n  if (error instanceof ApiError) console.error(error.status, error.code, error.body);\n  throw error;\n}"
          }
        ],
        "x-shtab-pagination": {
          "cursor": "before",
          "limit": "limit",
          "next": "next_before",
          "type": "cursor"
        },
        "x-shtab-scope": "messenger.messages:read",
        "x-shtab-sdk": {
          "python": "bots_chats_messages_replies_list",
          "typescript": "botsChatsMessagesRepliesList"
        },
        "x-shtab-token-types": [
          "bot"
        ]
      },
      "parameters": [
        {
          "in": "path",
          "name": "team_id",
          "required": true,
          "type": "string"
        },
        {
          "in": "path",
          "name": "chat_id",
          "required": true,
          "type": "string"
        },
        {
          "in": "path",
          "name": "message_id",
          "required": true,
          "type": "string"
        }
      ],
      "post": {
        "description": "Добавляет ответ к корневому сообщению чата при доступных обсуждениях. Повтор с исходным client_message_id возвращает ранее созданный ответ.",
        "operationId": "api_bots_chats_messages_replies_create",
        "parameters": [
          {
            "in": "body",
            "name": "data",
            "required": true,
            "schema": {
              "$ref": "#/definitions/BotMessageSend"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "schema": {
              "$ref": "#/definitions/BotMessage"
            }
          },
          "201": {
            "description": "",
            "schema": {
              "$ref": "#/definitions/BotMessage"
            }
          },
          "400": {
            "description": "Параметры или тело запроса не прошли проверку.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "401": {
            "description": "Токен отсутствует или недействителен.",
            "schema": {
              "$ref": "#/definitions/PublicAuthenticationError"
            }
          },
          "402": {
            "description": "Тариф команды не включает запрошенную возможность.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "403": {
            "description": "Токену не выдан нужный грант или у пользователя отсутствуют права доступа.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "404": {
            "description": "Метод недоступен токену или объект отсутствует в доступной области.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "429": {
            "description": "Превышен лимит запросов. Заголовок Retry-After указывает время ожидания в секундах.",
            "headers": {
              "Retry-After": {
                "description": "Секунд до следующей попытки.",
                "type": "integer"
              }
            },
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          }
        },
        "security": [
          {
            "BearerToken": []
          }
        ],
        "summary": "Ответить в обсуждении от имени бота",
        "tags": [
          "messenger"
        ],
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import os\n\nfrom shtab_sdk import ApiError, ShtabClient\n\nclient = ShtabClient(os.environ[\"SHTAB_TOKEN\"], token_type=\"bot\")\ntry:\n    result = client.bots_chats_messages_replies_create(path={'chat_id': '1', 'message_id': '1', 'team_id': '1'}, body={'buttons': [{'id': 'confirm', 'text': 'Подтвердить'}],\n     'client_message_id': '00000000-0000-4000-8000-000000000001',\n     'text': 'Подтвердить заявку?'})\n    print(result)\nexcept ApiError as error:\n    print(error.status, error.code, error.body)\n    raise"
          },
          {
            "lang": "TypeScript",
            "source": "import { ApiError, ShtabClient } from \"@shtabapp/sdk\";\n\nconst token = process.env.SHTAB_TOKEN;\nif (!token) throw new Error(\"Set SHTAB_TOKEN\");\nconst client = new ShtabClient(token, { tokenType: \"bot\" });\ntry {\n  const result = await client.botsChatsMessagesRepliesCreate({\n    \"path\": {\n      \"team_id\": \"1\",\n      \"chat_id\": \"1\",\n      \"message_id\": \"1\"\n    },\n    \"body\": {\n      \"text\": \"Подтвердить заявку?\",\n      \"buttons\": [\n        {\n          \"id\": \"confirm\",\n          \"text\": \"Подтвердить\"\n        }\n      ],\n      \"client_message_id\": \"00000000-0000-4000-8000-000000000001\"\n    }\n  });\n  console.log(result);\n} catch (error) {\n  if (error instanceof ApiError) console.error(error.status, error.code, error.body);\n  throw error;\n}"
          }
        ],
        "x-shtab-scope": "messenger.messages:write",
        "x-shtab-sdk": {
          "python": "bots_chats_messages_replies_create",
          "typescript": "botsChatsMessagesRepliesCreate"
        },
        "x-shtab-token-types": [
          "bot"
        ]
      }
    },
    "/api/datasource/{team_id}/": {
      "get": {
        "description": "",
        "operationId": "api_datasource_list",
        "parameters": [
          {
            "description": "",
            "in": "query",
            "name": "stage",
            "required": false,
            "type": "string"
          },
          {
            "description": "",
            "in": "query",
            "name": "task_label",
            "required": false,
            "type": "string"
          },
          {
            "description": "",
            "in": "query",
            "name": "available",
            "required": false,
            "type": "string"
          },
          {
            "description": "",
            "in": "query",
            "name": "executor",
            "required": false,
            "type": "string"
          },
          {
            "description": "",
            "in": "query",
            "name": "available_for_integration",
            "required": false,
            "type": "string"
          },
          {
            "description": "",
            "in": "query",
            "name": "has_task_views",
            "required": false,
            "type": "string"
          },
          {
            "description": "",
            "in": "query",
            "name": "external_id",
            "required": false,
            "type": "string"
          },
          {
            "description": "",
            "in": "query",
            "name": "archived",
            "required": false,
            "type": "string"
          },
          {
            "description": "A search term.",
            "in": "query",
            "name": "search",
            "required": false,
            "type": "string"
          },
          {
            "description": "Which field to use when ordering the results.",
            "in": "query",
            "name": "ordering",
            "required": false,
            "type": "string"
          },
          {
            "default": 20,
            "description": "Number of results to return per page.",
            "in": "query",
            "maximum": 100,
            "minimum": 1,
            "name": "limit",
            "required": false,
            "type": "integer"
          },
          {
            "default": 0,
            "description": "The initial index from which to return the results.",
            "in": "query",
            "minimum": 0,
            "name": "offset",
            "required": false,
            "type": "integer"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "schema": {
              "properties": {
                "next": {
                  "format": "uri",
                  "type": "string",
                  "x-nullable": true
                },
                "previous": {
                  "format": "uri",
                  "type": "string",
                  "x-nullable": true
                },
                "results": {
                  "items": {
                    "$ref": "#/definitions/PublicDataSource"
                  },
                  "type": "array"
                }
              },
              "required": [
                "results"
              ],
              "type": "object"
            }
          },
          "400": {
            "description": "Параметры или тело запроса не прошли проверку.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "401": {
            "description": "Токен отсутствует или недействителен.",
            "schema": {
              "$ref": "#/definitions/PublicAuthenticationError"
            }
          },
          "402": {
            "description": "Тариф команды не включает запрошенную возможность.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "403": {
            "description": "Токену не выдан нужный грант или у пользователя отсутствуют права доступа.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "404": {
            "description": "Метод недоступен токену или объект отсутствует в доступной области.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "429": {
            "description": "Превышен лимит запросов. Заголовок Retry-After указывает время ожидания в секундах.",
            "headers": {
              "Retry-After": {
                "description": "Секунд до следующей попытки.",
                "type": "integer"
              }
            },
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          }
        },
        "summary": "Получить список доступных проектов команды",
        "tags": [
          "datasources"
        ],
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import os\n\nfrom shtab_sdk import ApiError, ShtabClient\n\nclient = ShtabClient(os.environ[\"SHTAB_TOKEN\"], token_type=\"personal\")\ntry:\n    result = client.datasource_list(path={'team_id': '1'}, query={'limit': 20})\n    print(result)\nexcept ApiError as error:\n    print(error.status, error.code, error.body)\n    raise"
          },
          {
            "lang": "TypeScript",
            "source": "import { ApiError, ShtabClient } from \"@shtabapp/sdk\";\n\nconst token = process.env.SHTAB_TOKEN;\nif (!token) throw new Error(\"Set SHTAB_TOKEN\");\nconst client = new ShtabClient(token, { tokenType: \"personal\" });\ntry {\n  const result = await client.datasourceList({\n    \"path\": {\n      \"team_id\": \"1\"\n    },\n    \"query\": {\n      \"limit\": 20\n    }\n  });\n  console.log(result);\n} catch (error) {\n  if (error instanceof ApiError) console.error(error.status, error.code, error.body);\n  throw error;\n}"
          }
        ],
        "x-shtab-pagination": {
          "limit": "limit",
          "next": "next",
          "offset": "offset",
          "previous": "previous",
          "type": "limit-offset"
        },
        "x-shtab-scope": "datasources:read",
        "x-shtab-sdk": {
          "python": "datasource_list",
          "typescript": "datasourceList"
        },
        "x-shtab-token-types": [
          "personal",
          "team"
        ]
      },
      "parameters": [
        {
          "in": "path",
          "name": "team_id",
          "required": true,
          "type": "string"
        }
      ],
      "post": {
        "description": "",
        "operationId": "api_datasource_create",
        "parameters": [
          {
            "in": "body",
            "name": "data",
            "required": true,
            "schema": {
              "$ref": "#/definitions/PublicDataSourceCreate"
            }
          }
        ],
        "responses": {
          "201": {
            "description": "",
            "schema": {
              "$ref": "#/definitions/PublicDataSource"
            }
          },
          "400": {
            "description": "Параметры или тело запроса не прошли проверку.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "401": {
            "description": "Токен отсутствует или недействителен.",
            "schema": {
              "$ref": "#/definitions/PublicAuthenticationError"
            }
          },
          "402": {
            "description": "Тариф команды не включает запрошенную возможность.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "403": {
            "description": "Токену не выдан нужный грант или у пользователя отсутствуют права доступа.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "404": {
            "description": "Метод недоступен токену или объект отсутствует в доступной области.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "429": {
            "description": "Превышен лимит запросов. Заголовок Retry-After указывает время ожидания в секундах.",
            "headers": {
              "Retry-After": {
                "description": "Секунд до следующей попытки.",
                "type": "integer"
              }
            },
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          }
        },
        "summary": "Создать проект в команде",
        "tags": [
          "datasources"
        ],
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import os\n\nfrom shtab_sdk import ApiError, ShtabClient\n\nclient = ShtabClient(os.environ[\"SHTAB_TOKEN\"], token_type=\"personal\")\ntry:\n    result = client.datasource_create(path={'team_id': '1'}, body={'name': 'пример'})\n    print(result)\nexcept ApiError as error:\n    print(error.status, error.code, error.body)\n    raise"
          },
          {
            "lang": "TypeScript",
            "source": "import { ApiError, ShtabClient } from \"@shtabapp/sdk\";\n\nconst token = process.env.SHTAB_TOKEN;\nif (!token) throw new Error(\"Set SHTAB_TOKEN\");\nconst client = new ShtabClient(token, { tokenType: \"personal\" });\ntry {\n  const result = await client.datasourceCreate({\n    \"path\": {\n      \"team_id\": \"1\"\n    },\n    \"body\": {\n      \"name\": \"пример\"\n    }\n  });\n  console.log(result);\n} catch (error) {\n  if (error instanceof ApiError) console.error(error.status, error.code, error.body);\n  throw error;\n}"
          }
        ],
        "x-shtab-scope": "datasources:write",
        "x-shtab-sdk": {
          "python": "datasource_create",
          "typescript": "datasourceCreate"
        },
        "x-shtab-token-types": [
          "personal",
          "team"
        ]
      }
    },
    "/api/datasource/{team_id}/{datasource_id}/": {
      "delete": {
        "description": "",
        "operationId": "api_datasource_delete",
        "parameters": [],
        "responses": {
          "204": {
            "description": ""
          },
          "400": {
            "description": "Параметры или тело запроса не прошли проверку.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "401": {
            "description": "Токен отсутствует или недействителен.",
            "schema": {
              "$ref": "#/definitions/PublicAuthenticationError"
            }
          },
          "402": {
            "description": "Тариф команды не включает запрошенную возможность.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "403": {
            "description": "Токену не выдан нужный грант или у пользователя отсутствуют права доступа.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "404": {
            "description": "Метод недоступен токену или объект отсутствует в доступной области.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "429": {
            "description": "Превышен лимит запросов. Заголовок Retry-After указывает время ожидания в секундах.",
            "headers": {
              "Retry-After": {
                "description": "Секунд до следующей попытки.",
                "type": "integer"
              }
            },
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          }
        },
        "summary": "Удалить проект из команды",
        "tags": [
          "datasources"
        ],
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import os\n\nfrom shtab_sdk import ApiError, ShtabClient\n\nclient = ShtabClient(os.environ[\"SHTAB_TOKEN\"], token_type=\"personal\")\ntry:\n    result = client.datasource_delete(path={'datasource_id': '1', 'team_id': '1'})\n    print(result)\nexcept ApiError as error:\n    print(error.status, error.code, error.body)\n    raise"
          },
          {
            "lang": "TypeScript",
            "source": "import { ApiError, ShtabClient } from \"@shtabapp/sdk\";\n\nconst token = process.env.SHTAB_TOKEN;\nif (!token) throw new Error(\"Set SHTAB_TOKEN\");\nconst client = new ShtabClient(token, { tokenType: \"personal\" });\ntry {\n  const result = await client.datasourceDelete({\n    \"path\": {\n      \"team_id\": \"1\",\n      \"datasource_id\": \"1\"\n    }\n  });\n  console.log(result);\n} catch (error) {\n  if (error instanceof ApiError) console.error(error.status, error.code, error.body);\n  throw error;\n}"
          }
        ],
        "x-shtab-scope": "datasources:write",
        "x-shtab-sdk": {
          "python": "datasource_delete",
          "typescript": "datasourceDelete"
        },
        "x-shtab-token-types": [
          "personal",
          "team"
        ]
      },
      "get": {
        "description": "",
        "operationId": "api_datasource_read",
        "parameters": [],
        "responses": {
          "200": {
            "description": "",
            "schema": {
              "$ref": "#/definitions/PublicDataSource"
            }
          },
          "400": {
            "description": "Параметры или тело запроса не прошли проверку.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "401": {
            "description": "Токен отсутствует или недействителен.",
            "schema": {
              "$ref": "#/definitions/PublicAuthenticationError"
            }
          },
          "402": {
            "description": "Тариф команды не включает запрошенную возможность.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "403": {
            "description": "Токену не выдан нужный грант или у пользователя отсутствуют права доступа.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "404": {
            "description": "Метод недоступен токену или объект отсутствует в доступной области.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "429": {
            "description": "Превышен лимит запросов. Заголовок Retry-After указывает время ожидания в секундах.",
            "headers": {
              "Retry-After": {
                "description": "Секунд до следующей попытки.",
                "type": "integer"
              }
            },
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          }
        },
        "summary": "Получить сведения о проекте",
        "tags": [
          "datasources"
        ],
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import os\n\nfrom shtab_sdk import ApiError, ShtabClient\n\nclient = ShtabClient(os.environ[\"SHTAB_TOKEN\"], token_type=\"personal\")\ntry:\n    result = client.datasource_read(path={'datasource_id': '1', 'team_id': '1'})\n    print(result)\nexcept ApiError as error:\n    print(error.status, error.code, error.body)\n    raise"
          },
          {
            "lang": "TypeScript",
            "source": "import { ApiError, ShtabClient } from \"@shtabapp/sdk\";\n\nconst token = process.env.SHTAB_TOKEN;\nif (!token) throw new Error(\"Set SHTAB_TOKEN\");\nconst client = new ShtabClient(token, { tokenType: \"personal\" });\ntry {\n  const result = await client.datasourceRead({\n    \"path\": {\n      \"team_id\": \"1\",\n      \"datasource_id\": \"1\"\n    }\n  });\n  console.log(result);\n} catch (error) {\n  if (error instanceof ApiError) console.error(error.status, error.code, error.body);\n  throw error;\n}"
          }
        ],
        "x-shtab-scope": "datasources:read",
        "x-shtab-sdk": {
          "python": "datasource_read",
          "typescript": "datasourceRead"
        },
        "x-shtab-token-types": [
          "personal",
          "team"
        ]
      },
      "parameters": [
        {
          "in": "path",
          "name": "team_id",
          "required": true,
          "type": "string"
        },
        {
          "in": "path",
          "name": "datasource_id",
          "required": true,
          "type": "string"
        }
      ],
      "patch": {
        "description": "",
        "operationId": "api_datasource_partial_update",
        "parameters": [
          {
            "in": "body",
            "name": "data",
            "required": true,
            "schema": {
              "$ref": "#/definitions/PublicDataSourceUpdate"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "schema": {
              "$ref": "#/definitions/PublicDataSource"
            }
          },
          "400": {
            "description": "Параметры или тело запроса не прошли проверку.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "401": {
            "description": "Токен отсутствует или недействителен.",
            "schema": {
              "$ref": "#/definitions/PublicAuthenticationError"
            }
          },
          "402": {
            "description": "Тариф команды не включает запрошенную возможность.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "403": {
            "description": "Токену не выдан нужный грант или у пользователя отсутствуют права доступа.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "404": {
            "description": "Метод недоступен токену или объект отсутствует в доступной области.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "429": {
            "description": "Превышен лимит запросов. Заголовок Retry-After указывает время ожидания в секундах.",
            "headers": {
              "Retry-After": {
                "description": "Секунд до следующей попытки.",
                "type": "integer"
              }
            },
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          }
        },
        "summary": "Изменить параметры проекта",
        "tags": [
          "datasources"
        ],
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import os\n\nfrom shtab_sdk import ApiError, ShtabClient\n\nclient = ShtabClient(os.environ[\"SHTAB_TOKEN\"], token_type=\"personal\")\ntry:\n    result = client.datasource_partial_update(path={'datasource_id': '1', 'team_id': '1'}, body={'name': 'пример'})\n    print(result)\nexcept ApiError as error:\n    print(error.status, error.code, error.body)\n    raise"
          },
          {
            "lang": "TypeScript",
            "source": "import { ApiError, ShtabClient } from \"@shtabapp/sdk\";\n\nconst token = process.env.SHTAB_TOKEN;\nif (!token) throw new Error(\"Set SHTAB_TOKEN\");\nconst client = new ShtabClient(token, { tokenType: \"personal\" });\ntry {\n  const result = await client.datasourcePartialUpdate({\n    \"path\": {\n      \"team_id\": \"1\",\n      \"datasource_id\": \"1\"\n    },\n    \"body\": {\n      \"name\": \"пример\"\n    }\n  });\n  console.log(result);\n} catch (error) {\n  if (error instanceof ApiError) console.error(error.status, error.code, error.body);\n  throw error;\n}"
          }
        ],
        "x-shtab-scope": "datasources:write",
        "x-shtab-sdk": {
          "python": "datasource_partial_update",
          "typescript": "datasourcePartialUpdate"
        },
        "x-shtab-token-types": [
          "personal",
          "team"
        ]
      }
    },
    "/api/finances/absences/{team_id}/": {
      "get": {
        "description": "",
        "operationId": "api_finances_absences_list",
        "parameters": [
          {
            "description": "",
            "in": "query",
            "name": "source",
            "required": false,
            "type": "string"
          },
          {
            "description": "",
            "in": "query",
            "name": "date_from",
            "required": false,
            "type": "string"
          },
          {
            "description": "",
            "in": "query",
            "name": "date_to",
            "required": false,
            "type": "string"
          },
          {
            "default": 20,
            "description": "Number of results to return per page.",
            "in": "query",
            "maximum": 100,
            "minimum": 1,
            "name": "limit",
            "required": false,
            "type": "integer"
          },
          {
            "default": 0,
            "description": "The initial index from which to return the results.",
            "in": "query",
            "minimum": 0,
            "name": "offset",
            "required": false,
            "type": "integer"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "schema": {
              "properties": {
                "next": {
                  "format": "uri",
                  "type": "string",
                  "x-nullable": true
                },
                "previous": {
                  "format": "uri",
                  "type": "string",
                  "x-nullable": true
                },
                "results": {
                  "items": {
                    "$ref": "#/definitions/PublicAbsence"
                  },
                  "type": "array"
                }
              },
              "required": [
                "results"
              ],
              "type": "object"
            }
          },
          "400": {
            "description": "Параметры или тело запроса не прошли проверку.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "401": {
            "description": "Токен отсутствует или недействителен.",
            "schema": {
              "$ref": "#/definitions/PublicAuthenticationError"
            }
          },
          "402": {
            "description": "Тариф команды не включает запрошенную возможность.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "403": {
            "description": "Токену не выдан нужный грант или у пользователя отсутствуют права доступа.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "404": {
            "description": "Метод недоступен токену или объект отсутствует в доступной области.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "429": {
            "description": "Превышен лимит запросов. Заголовок Retry-After указывает время ожидания в секундах.",
            "headers": {
              "Retry-After": {
                "description": "Секунд до следующей попытки.",
                "type": "integer"
              }
            },
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          }
        },
        "summary": "Отсутствия сотрудников",
        "tags": [
          "finances"
        ],
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import os\n\nfrom shtab_sdk import ApiError, ShtabClient\n\nclient = ShtabClient(os.environ[\"SHTAB_TOKEN\"], token_type=\"personal\")\ntry:\n    result = client.finances_absences_list(path={'team_id': '1'}, query={'limit': 20})\n    print(result)\nexcept ApiError as error:\n    print(error.status, error.code, error.body)\n    raise"
          },
          {
            "lang": "TypeScript",
            "source": "import { ApiError, ShtabClient } from \"@shtabapp/sdk\";\n\nconst token = process.env.SHTAB_TOKEN;\nif (!token) throw new Error(\"Set SHTAB_TOKEN\");\nconst client = new ShtabClient(token, { tokenType: \"personal\" });\ntry {\n  const result = await client.financesAbsencesList({\n    \"path\": {\n      \"team_id\": \"1\"\n    },\n    \"query\": {\n      \"limit\": 20\n    }\n  });\n  console.log(result);\n} catch (error) {\n  if (error instanceof ApiError) console.error(error.status, error.code, error.body);\n  throw error;\n}"
          }
        ],
        "x-shtab-pagination": {
          "limit": "limit",
          "next": "next",
          "offset": "offset",
          "previous": "previous",
          "type": "limit-offset"
        },
        "x-shtab-scope": "finances.payroll:read",
        "x-shtab-sdk": {
          "python": "finances_absences_list",
          "typescript": "financesAbsencesList"
        },
        "x-shtab-token-types": [
          "personal",
          "team"
        ]
      },
      "parameters": [
        {
          "in": "path",
          "name": "team_id",
          "required": true,
          "type": "string"
        }
      ]
    },
    "/api/finances/absences/{team_id}/batch/": {
      "parameters": [
        {
          "in": "path",
          "name": "team_id",
          "required": true,
          "type": "string"
        }
      ],
      "put": {
        "description": "",
        "operationId": "api_finances_absences_batch_update",
        "parameters": [
          {
            "in": "body",
            "name": "data",
            "required": true,
            "schema": {
              "$ref": "#/definitions/PublicAbsenceBatchRequest"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "schema": {
              "items": {
                "$ref": "#/definitions/BatchResult"
              },
              "type": "array"
            }
          },
          "400": {
            "description": "Параметры или тело запроса не прошли проверку.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "401": {
            "description": "Токен отсутствует или недействителен.",
            "schema": {
              "$ref": "#/definitions/PublicAuthenticationError"
            }
          },
          "402": {
            "description": "Тариф команды не включает запрошенную возможность.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "403": {
            "description": "Токену не выдан нужный грант или у пользователя отсутствуют права доступа.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "404": {
            "description": "Метод недоступен токену или объект отсутствует в доступной области.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "429": {
            "description": "Превышен лимит запросов. Заголовок Retry-After указывает время ожидания в секундах.",
            "headers": {
              "Retry-After": {
                "description": "Секунд до следующей попытки.",
                "type": "integer"
              }
            },
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          }
        },
        "summary": "Пакетная запись отсутствий с заменой по окну",
        "tags": [
          "finances"
        ],
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import os\n\nfrom shtab_sdk import ApiError, ShtabClient\n\nclient = ShtabClient(os.environ[\"SHTAB_TOKEN\"], token_type=\"personal\")\ntry:\n    result = client.finances_absences_batch_update(path={'team_id': '1'}, body={'items': [{'absences': [{'date_from': '2026-01-01',\n                              'date_to': '2026-01-01',\n                              'external_id': '1',\n                              'kind': 'vacation'}],\n                'window': {'date_from': '2026-01-01',\n                           'date_to': '2026-01-01'}}],\n     'source': 'пример'})\n    print(result)\nexcept ApiError as error:\n    print(error.status, error.code, error.body)\n    raise"
          },
          {
            "lang": "TypeScript",
            "source": "import { ApiError, ShtabClient } from \"@shtabapp/sdk\";\n\nconst token = process.env.SHTAB_TOKEN;\nif (!token) throw new Error(\"Set SHTAB_TOKEN\");\nconst client = new ShtabClient(token, { tokenType: \"personal\" });\ntry {\n  const result = await client.financesAbsencesBatchUpdate({\n    \"path\": {\n      \"team_id\": \"1\"\n    },\n    \"body\": {\n      \"source\": \"пример\",\n      \"items\": [\n        {\n          \"window\": {\n            \"date_from\": \"2026-01-01\",\n            \"date_to\": \"2026-01-01\"\n          },\n          \"absences\": [\n            {\n              \"external_id\": \"1\",\n              \"kind\": \"vacation\",\n              \"date_from\": \"2026-01-01\",\n              \"date_to\": \"2026-01-01\"\n            }\n          ]\n        }\n      ]\n    }\n  });\n  console.log(result);\n} catch (error) {\n  if (error instanceof ApiError) console.error(error.status, error.code, error.body);\n  throw error;\n}"
          }
        ],
        "x-shtab-scope": "finances.payroll:write",
        "x-shtab-sdk": {
          "python": "finances_absences_batch_update",
          "typescript": "financesAbsencesBatchUpdate"
        },
        "x-shtab-token-types": [
          "personal",
          "team"
        ]
      }
    },
    "/api/finances/accounts/{team_id}/batch/": {
      "parameters": [
        {
          "in": "path",
          "name": "team_id",
          "required": true,
          "type": "string"
        }
      ],
      "put": {
        "description": "",
        "operationId": "api_finances_accounts_batch_update",
        "parameters": [
          {
            "in": "body",
            "name": "data",
            "required": true,
            "schema": {
              "$ref": "#/definitions/PublicAccountBatchRequest"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "schema": {
              "items": {
                "$ref": "#/definitions/BatchResult"
              },
              "type": "array"
            }
          },
          "400": {
            "description": "Параметры или тело запроса не прошли проверку.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "401": {
            "description": "Токен отсутствует или недействителен.",
            "schema": {
              "$ref": "#/definitions/PublicAuthenticationError"
            }
          },
          "402": {
            "description": "Тариф команды не включает запрошенную возможность.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "403": {
            "description": "Токену не выдан нужный грант или у пользователя отсутствуют права доступа.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "404": {
            "description": "Метод недоступен токену или объект отсутствует в доступной области.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "429": {
            "description": "Превышен лимит запросов. Заголовок Retry-After указывает время ожидания в секундах.",
            "headers": {
              "Retry-After": {
                "description": "Секунд до следующей попытки.",
                "type": "integer"
              }
            },
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          }
        },
        "summary": "Пакетная запись финансовых счетов",
        "tags": [
          "finances"
        ],
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import os\n\nfrom shtab_sdk import ApiError, ShtabClient\n\nclient = ShtabClient(os.environ[\"SHTAB_TOKEN\"], token_type=\"personal\")\ntry:\n    result = client.finances_accounts_batch_update(path={'team_id': '1'}, body={'items': [{'external_id': '1', 'name': 'пример'}], 'source': 'пример'})\n    print(result)\nexcept ApiError as error:\n    print(error.status, error.code, error.body)\n    raise"
          },
          {
            "lang": "TypeScript",
            "source": "import { ApiError, ShtabClient } from \"@shtabapp/sdk\";\n\nconst token = process.env.SHTAB_TOKEN;\nif (!token) throw new Error(\"Set SHTAB_TOKEN\");\nconst client = new ShtabClient(token, { tokenType: \"personal\" });\ntry {\n  const result = await client.financesAccountsBatchUpdate({\n    \"path\": {\n      \"team_id\": \"1\"\n    },\n    \"body\": {\n      \"source\": \"пример\",\n      \"items\": [\n        {\n          \"external_id\": \"1\",\n          \"name\": \"пример\"\n        }\n      ]\n    }\n  });\n  console.log(result);\n} catch (error) {\n  if (error instanceof ApiError) console.error(error.status, error.code, error.body);\n  throw error;\n}"
          }
        ],
        "x-shtab-scope": "finances.directories:write",
        "x-shtab-sdk": {
          "python": "finances_accounts_batch_update",
          "typescript": "financesAccountsBatchUpdate"
        },
        "x-shtab-token-types": [
          "personal",
          "team"
        ]
      }
    },
    "/api/finances/contractors/{team_id}/batch/": {
      "parameters": [
        {
          "in": "path",
          "name": "team_id",
          "required": true,
          "type": "string"
        }
      ],
      "put": {
        "description": "",
        "operationId": "api_finances_contractors_batch_update",
        "parameters": [
          {
            "in": "body",
            "name": "data",
            "required": true,
            "schema": {
              "$ref": "#/definitions/PublicContractorBatchRequest"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "schema": {
              "items": {
                "$ref": "#/definitions/BatchResult"
              },
              "type": "array"
            }
          },
          "400": {
            "description": "Параметры или тело запроса не прошли проверку.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "401": {
            "description": "Токен отсутствует или недействителен.",
            "schema": {
              "$ref": "#/definitions/PublicAuthenticationError"
            }
          },
          "402": {
            "description": "Тариф команды не включает запрошенную возможность.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "403": {
            "description": "Токену не выдан нужный грант или у пользователя отсутствуют права доступа.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "404": {
            "description": "Метод недоступен токену или объект отсутствует в доступной области.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "429": {
            "description": "Превышен лимит запросов. Заголовок Retry-After указывает время ожидания в секундах.",
            "headers": {
              "Retry-After": {
                "description": "Секунд до следующей попытки.",
                "type": "integer"
              }
            },
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          }
        },
        "summary": "Пакетная запись контрагентов",
        "tags": [
          "finances"
        ],
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import os\n\nfrom shtab_sdk import ApiError, ShtabClient\n\nclient = ShtabClient(os.environ[\"SHTAB_TOKEN\"], token_type=\"personal\")\ntry:\n    result = client.finances_contractors_batch_update(path={'team_id': '1'}, body={'items': [{'external_id': '1', 'name': 'пример'}], 'source': 'пример'})\n    print(result)\nexcept ApiError as error:\n    print(error.status, error.code, error.body)\n    raise"
          },
          {
            "lang": "TypeScript",
            "source": "import { ApiError, ShtabClient } from \"@shtabapp/sdk\";\n\nconst token = process.env.SHTAB_TOKEN;\nif (!token) throw new Error(\"Set SHTAB_TOKEN\");\nconst client = new ShtabClient(token, { tokenType: \"personal\" });\ntry {\n  const result = await client.financesContractorsBatchUpdate({\n    \"path\": {\n      \"team_id\": \"1\"\n    },\n    \"body\": {\n      \"source\": \"пример\",\n      \"items\": [\n        {\n          \"external_id\": \"1\",\n          \"name\": \"пример\"\n        }\n      ]\n    }\n  });\n  console.log(result);\n} catch (error) {\n  if (error instanceof ApiError) console.error(error.status, error.code, error.body);\n  throw error;\n}"
          }
        ],
        "x-shtab-scope": "finances.directories:write",
        "x-shtab-sdk": {
          "python": "finances_contractors_batch_update",
          "typescript": "financesContractorsBatchUpdate"
        },
        "x-shtab-token-types": [
          "personal",
          "team"
        ]
      }
    },
    "/api/finances/directions/{team_id}/batch/": {
      "parameters": [
        {
          "in": "path",
          "name": "team_id",
          "required": true,
          "type": "string"
        }
      ],
      "put": {
        "description": "",
        "operationId": "api_finances_directions_batch_update",
        "parameters": [
          {
            "in": "body",
            "name": "data",
            "required": true,
            "schema": {
              "$ref": "#/definitions/PublicDirectionBatchRequest"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "schema": {
              "items": {
                "$ref": "#/definitions/BatchResult"
              },
              "type": "array"
            }
          },
          "400": {
            "description": "Параметры или тело запроса не прошли проверку.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "401": {
            "description": "Токен отсутствует или недействителен.",
            "schema": {
              "$ref": "#/definitions/PublicAuthenticationError"
            }
          },
          "402": {
            "description": "Тариф команды не включает запрошенную возможность.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "403": {
            "description": "Токену не выдан нужный грант или у пользователя отсутствуют права доступа.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "404": {
            "description": "Метод недоступен токену или объект отсутствует в доступной области.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "429": {
            "description": "Превышен лимит запросов. Заголовок Retry-After указывает время ожидания в секундах.",
            "headers": {
              "Retry-After": {
                "description": "Секунд до следующей попытки.",
                "type": "integer"
              }
            },
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          }
        },
        "summary": "Пакетная запись направлений",
        "tags": [
          "finances"
        ],
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import os\n\nfrom shtab_sdk import ApiError, ShtabClient\n\nclient = ShtabClient(os.environ[\"SHTAB_TOKEN\"], token_type=\"personal\")\ntry:\n    result = client.finances_directions_batch_update(path={'team_id': '1'}, body={'items': [{'external_id': '1', 'name': 'пример'}], 'source': 'пример'})\n    print(result)\nexcept ApiError as error:\n    print(error.status, error.code, error.body)\n    raise"
          },
          {
            "lang": "TypeScript",
            "source": "import { ApiError, ShtabClient } from \"@shtabapp/sdk\";\n\nconst token = process.env.SHTAB_TOKEN;\nif (!token) throw new Error(\"Set SHTAB_TOKEN\");\nconst client = new ShtabClient(token, { tokenType: \"personal\" });\ntry {\n  const result = await client.financesDirectionsBatchUpdate({\n    \"path\": {\n      \"team_id\": \"1\"\n    },\n    \"body\": {\n      \"source\": \"пример\",\n      \"items\": [\n        {\n          \"external_id\": \"1\",\n          \"name\": \"пример\"\n        }\n      ]\n    }\n  });\n  console.log(result);\n} catch (error) {\n  if (error instanceof ApiError) console.error(error.status, error.code, error.body);\n  throw error;\n}"
          }
        ],
        "x-shtab-scope": "finances.directories:write",
        "x-shtab-sdk": {
          "python": "finances_directions_batch_update",
          "typescript": "financesDirectionsBatchUpdate"
        },
        "x-shtab-token-types": [
          "personal",
          "team"
        ]
      }
    },
    "/api/finances/import-batches/{team_id}/": {
      "parameters": [
        {
          "in": "path",
          "name": "team_id",
          "required": true,
          "type": "string"
        }
      ],
      "post": {
        "consumes": [
          "multipart/form-data"
        ],
        "description": "",
        "operationId": "api_finances_import-batches_create",
        "parameters": [
          {
            "in": "formData",
            "name": "financial_account",
            "required": true,
            "type": "integer"
          },
          {
            "in": "formData",
            "name": "file",
            "required": true,
            "type": "file"
          },
          {
            "default": "1c",
            "enum": [
              "1c",
              "csv",
              "xlsx"
            ],
            "in": "formData",
            "name": "source_format",
            "required": false,
            "type": "string"
          },
          {
            "format": "date",
            "in": "formData",
            "name": "period_start",
            "required": false,
            "type": "string",
            "x-nullable": true
          },
          {
            "format": "date",
            "in": "formData",
            "name": "period_end",
            "required": false,
            "type": "string",
            "x-nullable": true
          }
        ],
        "responses": {
          "201": {
            "description": "",
            "schema": {
              "$ref": "#/definitions/PublicImportBatch"
            }
          },
          "400": {
            "description": "Параметры или тело запроса не прошли проверку.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "401": {
            "description": "Токен отсутствует или недействителен.",
            "schema": {
              "$ref": "#/definitions/PublicAuthenticationError"
            }
          },
          "402": {
            "description": "Тариф команды не включает запрошенную возможность.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "403": {
            "description": "Токену не выдан нужный грант или у пользователя отсутствуют права доступа.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "404": {
            "description": "Метод недоступен токену или объект отсутствует в доступной области.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "429": {
            "description": "Превышен лимит запросов. Заголовок Retry-After указывает время ожидания в секундах.",
            "headers": {
              "Retry-After": {
                "description": "Секунд до следующей попытки.",
                "type": "integer"
              }
            },
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          }
        },
        "summary": "Загрузить банковскую выписку на счёт",
        "tags": [
          "finances"
        ],
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import os\nfrom pathlib import Path\n\nfrom shtab_sdk import ApiError, ShtabClient, FileUpload\n\nclient = ShtabClient(os.environ[\"SHTAB_TOKEN\"], token_type=\"personal\")\ntry:\n    result = client.finances_import_batches_create(path={'team_id': '1'}, body={'file': FileUpload('statement.csv', Path('statement.csv').read_bytes()), 'financial_account': 1})\n    print(result)\nexcept ApiError as error:\n    print(error.status, error.code, error.body)\n    raise"
          },
          {
            "lang": "TypeScript",
            "source": "import { ApiError, ShtabClient } from \"@shtabapp/sdk\";\nimport { readFile } from \"node:fs/promises\";\n\nconst token = process.env.SHTAB_TOKEN;\nif (!token) throw new Error(\"Set SHTAB_TOKEN\");\nconst client = new ShtabClient(token, { tokenType: \"personal\" });\ntry {\n  const result = await client.financesImportBatchesCreate({\n    \"path\": {\n      \"team_id\": \"1\"\n    },\n    \"body\": {\n      \"financial_account\": 1,\n      \"file\": new File([new Uint8Array(await readFile(\"statement.csv\"))], \"statement.csv\")\n    }\n  });\n  console.log(result);\n} catch (error) {\n  if (error instanceof ApiError) console.error(error.status, error.code, error.body);\n  throw error;\n}"
          }
        ],
        "x-shtab-scope": "finances.imports:write",
        "x-shtab-sdk": {
          "python": "finances_import_batches_create",
          "typescript": "financesImportBatchesCreate"
        },
        "x-shtab-token-types": [
          "personal",
          "team"
        ]
      }
    },
    "/api/finances/import-batches/{team_id}/{batch_id}/": {
      "get": {
        "description": "",
        "operationId": "api_finances_import-batches_read",
        "parameters": [],
        "responses": {
          "200": {
            "description": "",
            "schema": {
              "$ref": "#/definitions/PublicImportBatch"
            }
          },
          "400": {
            "description": "Параметры или тело запроса не прошли проверку.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "401": {
            "description": "Токен отсутствует или недействителен.",
            "schema": {
              "$ref": "#/definitions/PublicAuthenticationError"
            }
          },
          "402": {
            "description": "Тариф команды не включает запрошенную возможность.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "403": {
            "description": "Токену не выдан нужный грант или у пользователя отсутствуют права доступа.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "404": {
            "description": "Метод недоступен токену или объект отсутствует в доступной области.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "429": {
            "description": "Превышен лимит запросов. Заголовок Retry-After указывает время ожидания в секундах.",
            "headers": {
              "Retry-After": {
                "description": "Секунд до следующей попытки.",
                "type": "integer"
              }
            },
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          }
        },
        "summary": "Статус и итоги загрузки выписки",
        "tags": [
          "finances"
        ],
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import os\n\nfrom shtab_sdk import ApiError, ShtabClient\n\nclient = ShtabClient(os.environ[\"SHTAB_TOKEN\"], token_type=\"personal\")\ntry:\n    result = client.finances_import_batches_read(path={'batch_id': '1', 'team_id': '1'})\n    print(result)\nexcept ApiError as error:\n    print(error.status, error.code, error.body)\n    raise"
          },
          {
            "lang": "TypeScript",
            "source": "import { ApiError, ShtabClient } from \"@shtabapp/sdk\";\n\nconst token = process.env.SHTAB_TOKEN;\nif (!token) throw new Error(\"Set SHTAB_TOKEN\");\nconst client = new ShtabClient(token, { tokenType: \"personal\" });\ntry {\n  const result = await client.financesImportBatchesRead({\n    \"path\": {\n      \"team_id\": \"1\",\n      \"batch_id\": \"1\"\n    }\n  });\n  console.log(result);\n} catch (error) {\n  if (error instanceof ApiError) console.error(error.status, error.code, error.body);\n  throw error;\n}"
          }
        ],
        "x-shtab-scope": "finances.imports:read",
        "x-shtab-sdk": {
          "python": "finances_import_batches_read",
          "typescript": "financesImportBatchesRead"
        },
        "x-shtab-token-types": [
          "personal",
          "team"
        ]
      },
      "parameters": [
        {
          "in": "path",
          "name": "team_id",
          "required": true,
          "type": "string"
        },
        {
          "in": "path",
          "name": "batch_id",
          "required": true,
          "type": "string"
        }
      ]
    },
    "/api/finances/import-batches/{team_id}/{batch_id}/apply/": {
      "parameters": [
        {
          "in": "path",
          "name": "team_id",
          "required": true,
          "type": "string"
        },
        {
          "in": "path",
          "name": "batch_id",
          "required": true,
          "type": "string"
        }
      ],
      "post": {
        "description": "",
        "operationId": "api_finances_import-batches_apply",
        "parameters": [],
        "responses": {
          "202": {
            "description": "",
            "schema": {
              "$ref": "#/definitions/PublicImportBatchApply"
            }
          },
          "400": {
            "description": "Параметры или тело запроса не прошли проверку.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "401": {
            "description": "Токен отсутствует или недействителен.",
            "schema": {
              "$ref": "#/definitions/PublicAuthenticationError"
            }
          },
          "402": {
            "description": "Тариф команды не включает запрошенную возможность.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "403": {
            "description": "Токену не выдан нужный грант или у пользователя отсутствуют права доступа.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "404": {
            "description": "Метод недоступен токену или объект отсутствует в доступной области.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "429": {
            "description": "Превышен лимит запросов. Заголовок Retry-After указывает время ожидания в секундах.",
            "headers": {
              "Retry-After": {
                "description": "Секунд до следующей попытки.",
                "type": "integer"
              }
            },
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          }
        },
        "summary": "Разнести выписку в операции: асинхронно, итоги читать в статусе загрузки",
        "tags": [
          "finances"
        ],
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import os\n\nfrom shtab_sdk import ApiError, ShtabClient\n\nclient = ShtabClient(os.environ[\"SHTAB_TOKEN\"], token_type=\"personal\")\ntry:\n    result = client.finances_import_batches_apply(path={'batch_id': '1', 'team_id': '1'})\n    print(result)\nexcept ApiError as error:\n    print(error.status, error.code, error.body)\n    raise"
          },
          {
            "lang": "TypeScript",
            "source": "import { ApiError, ShtabClient } from \"@shtabapp/sdk\";\n\nconst token = process.env.SHTAB_TOKEN;\nif (!token) throw new Error(\"Set SHTAB_TOKEN\");\nconst client = new ShtabClient(token, { tokenType: \"personal\" });\ntry {\n  const result = await client.financesImportBatchesApply({\n    \"path\": {\n      \"team_id\": \"1\",\n      \"batch_id\": \"1\"\n    }\n  });\n  console.log(result);\n} catch (error) {\n  if (error instanceof ApiError) console.error(error.status, error.code, error.body);\n  throw error;\n}"
          }
        ],
        "x-shtab-scope": "finances.imports:write",
        "x-shtab-sdk": {
          "python": "finances_import_batches_apply",
          "typescript": "financesImportBatchesApply"
        },
        "x-shtab-token-types": [
          "personal",
          "team"
        ]
      }
    },
    "/api/finances/import-batches/{team_id}/{batch_id}/preview/": {
      "get": {
        "description": "",
        "operationId": "api_finances_import-batches_preview",
        "parameters": [],
        "responses": {
          "200": {
            "description": "",
            "schema": {
              "$ref": "#/definitions/PublicImportBatchPreview"
            }
          },
          "400": {
            "description": "Параметры или тело запроса не прошли проверку.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "401": {
            "description": "Токен отсутствует или недействителен.",
            "schema": {
              "$ref": "#/definitions/PublicAuthenticationError"
            }
          },
          "402": {
            "description": "Тариф команды не включает запрошенную возможность.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "403": {
            "description": "Токену не выдан нужный грант или у пользователя отсутствуют права доступа.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "404": {
            "description": "Метод недоступен токену или объект отсутствует в доступной области.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "429": {
            "description": "Превышен лимит запросов. Заголовок Retry-After указывает время ожидания в секундах.",
            "headers": {
              "Retry-After": {
                "description": "Секунд до следующей попытки.",
                "type": "integer"
              }
            },
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          }
        },
        "summary": "Предпросмотр разноски выписки",
        "tags": [
          "finances"
        ],
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import os\n\nfrom shtab_sdk import ApiError, ShtabClient\n\nclient = ShtabClient(os.environ[\"SHTAB_TOKEN\"], token_type=\"personal\")\ntry:\n    result = client.finances_import_batches_preview(path={'batch_id': '1', 'team_id': '1'})\n    print(result)\nexcept ApiError as error:\n    print(error.status, error.code, error.body)\n    raise"
          },
          {
            "lang": "TypeScript",
            "source": "import { ApiError, ShtabClient } from \"@shtabapp/sdk\";\n\nconst token = process.env.SHTAB_TOKEN;\nif (!token) throw new Error(\"Set SHTAB_TOKEN\");\nconst client = new ShtabClient(token, { tokenType: \"personal\" });\ntry {\n  const result = await client.financesImportBatchesPreview({\n    \"path\": {\n      \"team_id\": \"1\",\n      \"batch_id\": \"1\"\n    }\n  });\n  console.log(result);\n} catch (error) {\n  if (error instanceof ApiError) console.error(error.status, error.code, error.body);\n  throw error;\n}"
          }
        ],
        "x-shtab-scope": "finances.imports:read",
        "x-shtab-sdk": {
          "python": "finances_import_batches_preview",
          "typescript": "financesImportBatchesPreview"
        },
        "x-shtab-token-types": [
          "personal",
          "team"
        ]
      },
      "parameters": [
        {
          "in": "path",
          "name": "team_id",
          "required": true,
          "type": "string"
        },
        {
          "in": "path",
          "name": "batch_id",
          "required": true,
          "type": "string"
        }
      ]
    },
    "/api/finances/items/{team_id}/batch/": {
      "parameters": [
        {
          "in": "path",
          "name": "team_id",
          "required": true,
          "type": "string"
        }
      ],
      "put": {
        "description": "",
        "operationId": "api_finances_items_batch_update",
        "parameters": [
          {
            "in": "body",
            "name": "data",
            "required": true,
            "schema": {
              "$ref": "#/definitions/PublicFinancialItemBatchRequest"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "schema": {
              "items": {
                "$ref": "#/definitions/BatchResult"
              },
              "type": "array"
            }
          },
          "400": {
            "description": "Параметры или тело запроса не прошли проверку.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "401": {
            "description": "Токен отсутствует или недействителен.",
            "schema": {
              "$ref": "#/definitions/PublicAuthenticationError"
            }
          },
          "402": {
            "description": "Тариф команды не включает запрошенную возможность.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "403": {
            "description": "Токену не выдан нужный грант или у пользователя отсутствуют права доступа.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "404": {
            "description": "Метод недоступен токену или объект отсутствует в доступной области.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "429": {
            "description": "Превышен лимит запросов. Заголовок Retry-After указывает время ожидания в секундах.",
            "headers": {
              "Retry-After": {
                "description": "Секунд до следующей попытки.",
                "type": "integer"
              }
            },
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          }
        },
        "summary": "Пакетная запись статей",
        "tags": [
          "finances"
        ],
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import os\n\nfrom shtab_sdk import ApiError, ShtabClient\n\nclient = ShtabClient(os.environ[\"SHTAB_TOKEN\"], token_type=\"personal\")\ntry:\n    result = client.finances_items_batch_update(path={'team_id': '1'}, body={'items': [{'external_id': '1', 'name': 'пример', 'type': 'refill'}],\n     'source': 'пример'})\n    print(result)\nexcept ApiError as error:\n    print(error.status, error.code, error.body)\n    raise"
          },
          {
            "lang": "TypeScript",
            "source": "import { ApiError, ShtabClient } from \"@shtabapp/sdk\";\n\nconst token = process.env.SHTAB_TOKEN;\nif (!token) throw new Error(\"Set SHTAB_TOKEN\");\nconst client = new ShtabClient(token, { tokenType: \"personal\" });\ntry {\n  const result = await client.financesItemsBatchUpdate({\n    \"path\": {\n      \"team_id\": \"1\"\n    },\n    \"body\": {\n      \"source\": \"пример\",\n      \"items\": [\n        {\n          \"external_id\": \"1\",\n          \"name\": \"пример\",\n          \"type\": \"refill\"\n        }\n      ]\n    }\n  });\n  console.log(result);\n} catch (error) {\n  if (error instanceof ApiError) console.error(error.status, error.code, error.body);\n  throw error;\n}"
          }
        ],
        "x-shtab-scope": "finances.directories:write",
        "x-shtab-sdk": {
          "python": "finances_items_batch_update",
          "typescript": "financesItemsBatchUpdate"
        },
        "x-shtab-token-types": [
          "personal",
          "team"
        ]
      }
    },
    "/api/finances/operations/{team_id}/batch/": {
      "parameters": [
        {
          "in": "path",
          "name": "team_id",
          "required": true,
          "type": "string"
        }
      ],
      "put": {
        "description": "",
        "operationId": "api_finances_operations_batch_update",
        "parameters": [
          {
            "in": "body",
            "name": "data",
            "required": true,
            "schema": {
              "$ref": "#/definitions/PublicOperationBatchRequest"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "schema": {
              "items": {
                "$ref": "#/definitions/BatchResult"
              },
              "type": "array"
            }
          },
          "400": {
            "description": "Параметры или тело запроса не прошли проверку.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "401": {
            "description": "Токен отсутствует или недействителен.",
            "schema": {
              "$ref": "#/definitions/PublicAuthenticationError"
            }
          },
          "402": {
            "description": "Тариф команды не включает запрошенную возможность.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "403": {
            "description": "Токену не выдан нужный грант или у пользователя отсутствуют права доступа.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "404": {
            "description": "Метод недоступен токену или объект отсутствует в доступной области.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "429": {
            "description": "Превышен лимит запросов. Заголовок Retry-After указывает время ожидания в секундах.",
            "headers": {
              "Retry-After": {
                "description": "Секунд до следующей попытки.",
                "type": "integer"
              }
            },
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          }
        },
        "summary": "Пакетная запись финансовых операций с расшифровкой",
        "tags": [
          "finances"
        ],
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import os\n\nfrom shtab_sdk import ApiError, ShtabClient\n\nclient = ShtabClient(os.environ[\"SHTAB_TOKEN\"], token_type=\"personal\")\ntry:\n    result = client.finances_operations_batch_update(path={'team_id': '1'}, body={'items': [{'account_external_id': '1',\n                'amount': 'пример',\n                'date': '2026-01-01T09:00:00Z',\n                'external_id': '1',\n                'type': 'refill'}],\n     'source': 'пример'})\n    print(result)\nexcept ApiError as error:\n    print(error.status, error.code, error.body)\n    raise"
          },
          {
            "lang": "TypeScript",
            "source": "import { ApiError, ShtabClient } from \"@shtabapp/sdk\";\n\nconst token = process.env.SHTAB_TOKEN;\nif (!token) throw new Error(\"Set SHTAB_TOKEN\");\nconst client = new ShtabClient(token, { tokenType: \"personal\" });\ntry {\n  const result = await client.financesOperationsBatchUpdate({\n    \"path\": {\n      \"team_id\": \"1\"\n    },\n    \"body\": {\n      \"source\": \"пример\",\n      \"items\": [\n        {\n          \"external_id\": \"1\",\n          \"type\": \"refill\",\n          \"date\": \"2026-01-01T09:00:00Z\",\n          \"amount\": \"пример\",\n          \"account_external_id\": \"1\"\n        }\n      ]\n    }\n  });\n  console.log(result);\n} catch (error) {\n  if (error instanceof ApiError) console.error(error.status, error.code, error.body);\n  throw error;\n}"
          }
        ],
        "x-shtab-scope": "finances.operations:write",
        "x-shtab-sdk": {
          "python": "finances_operations_batch_update",
          "typescript": "financesOperationsBatchUpdate"
        },
        "x-shtab-token-types": [
          "personal",
          "team"
        ]
      }
    },
    "/api/finances/payroll-imports/{team_id}/absences/": {
      "parameters": [
        {
          "in": "path",
          "name": "team_id",
          "required": true,
          "type": "string"
        }
      ],
      "post": {
        "description": "",
        "operationId": "api_finances_payroll-imports_absences_create",
        "parameters": [
          {
            "in": "body",
            "name": "data",
            "required": true,
            "schema": {
              "$ref": "#/definitions/AbsenceImport"
            }
          }
        ],
        "responses": {
          "201": {
            "description": "",
            "schema": {
              "$ref": "#/definitions/PayrollImportResult"
            }
          },
          "400": {
            "description": "Параметры или тело запроса не прошли проверку.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "401": {
            "description": "Токен отсутствует или недействителен.",
            "schema": {
              "$ref": "#/definitions/PublicAuthenticationError"
            }
          },
          "402": {
            "description": "Тариф команды не включает запрошенную возможность.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "403": {
            "description": "Токену не выдан нужный грант или у пользователя отсутствуют права доступа.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "404": {
            "description": "Метод недоступен токену или объект отсутствует в доступной области.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "429": {
            "description": "Превышен лимит запросов. Заголовок Retry-After указывает время ожидания в секундах.",
            "headers": {
              "Retry-After": {
                "description": "Секунд до следующей попытки.",
                "type": "integer"
              }
            },
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          }
        },
        "summary": "Загрузка отсутствий (отпуска, больничные, отгулы) по внешнему идентификатору",
        "tags": [
          "finances"
        ],
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import os\n\nfrom shtab_sdk import ApiError, ShtabClient\n\nclient = ShtabClient(os.environ[\"SHTAB_TOKEN\"], token_type=\"personal\")\ntry:\n    result = client.finances_payroll_imports_absences_create(path={'team_id': '1'}, body={'items': [{'date_from': '2026-01-01',\n                'date_to': '2026-01-01',\n                'external_id': '1',\n                'kind': 'vacation',\n                'user': 1}]})\n    print(result)\nexcept ApiError as error:\n    print(error.status, error.code, error.body)\n    raise"
          },
          {
            "lang": "TypeScript",
            "source": "import { ApiError, ShtabClient } from \"@shtabapp/sdk\";\n\nconst token = process.env.SHTAB_TOKEN;\nif (!token) throw new Error(\"Set SHTAB_TOKEN\");\nconst client = new ShtabClient(token, { tokenType: \"personal\" });\ntry {\n  const result = await client.financesPayrollImportsAbsencesCreate({\n    \"path\": {\n      \"team_id\": \"1\"\n    },\n    \"body\": {\n      \"items\": [\n        {\n          \"external_id\": \"1\",\n          \"user\": 1,\n          \"kind\": \"vacation\",\n          \"date_from\": \"2026-01-01\",\n          \"date_to\": \"2026-01-01\"\n        }\n      ]\n    }\n  });\n  console.log(result);\n} catch (error) {\n  if (error instanceof ApiError) console.error(error.status, error.code, error.body);\n  throw error;\n}"
          }
        ],
        "x-shtab-scope": "finances.payroll:write",
        "x-shtab-sdk": {
          "python": "finances_payroll_imports_absences_create",
          "typescript": "financesPayrollImportsAbsencesCreate"
        },
        "x-shtab-token-types": [
          "personal",
          "team"
        ]
      }
    },
    "/api/finances/payroll-imports/{team_id}/entries/": {
      "parameters": [
        {
          "in": "path",
          "name": "team_id",
          "required": true,
          "type": "string"
        }
      ],
      "post": {
        "description": "",
        "operationId": "api_finances_payroll-imports_entries_create",
        "parameters": [
          {
            "in": "body",
            "name": "data",
            "required": true,
            "schema": {
              "$ref": "#/definitions/PayrollEntryImport"
            }
          }
        ],
        "responses": {
          "201": {
            "description": "",
            "schema": {
              "$ref": "#/definitions/PayrollImportResult"
            }
          },
          "400": {
            "description": "Параметры или тело запроса не прошли проверку.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "401": {
            "description": "Токен отсутствует или недействителен.",
            "schema": {
              "$ref": "#/definitions/PublicAuthenticationError"
            }
          },
          "402": {
            "description": "Тариф команды не включает запрошенную возможность.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "403": {
            "description": "Токену не выдан нужный грант или у пользователя отсутствуют права доступа.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "404": {
            "description": "Метод недоступен токену или объект отсутствует в доступной области.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "429": {
            "description": "Превышен лимит запросов. Заголовок Retry-After указывает время ожидания в секундах.",
            "headers": {
              "Retry-After": {
                "description": "Секунд до следующей попытки.",
                "type": "integer"
              }
            },
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          }
        },
        "summary": "Загрузка начислений в черновик ведомости месяца по внешнему идентификатору",
        "tags": [
          "finances"
        ],
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import os\n\nfrom shtab_sdk import ApiError, ShtabClient\n\nclient = ShtabClient(os.environ[\"SHTAB_TOKEN\"], token_type=\"personal\")\ntry:\n    result = client.finances_payroll_imports_entries_create(path={'team_id': '1'}, body={'items': [{'amount': 'пример',\n                'external_id': '1',\n                'type': 'bonus',\n                'user': 1}],\n     'month': 1,\n     'year': 2000})\n    print(result)\nexcept ApiError as error:\n    print(error.status, error.code, error.body)\n    raise"
          },
          {
            "lang": "TypeScript",
            "source": "import { ApiError, ShtabClient } from \"@shtabapp/sdk\";\n\nconst token = process.env.SHTAB_TOKEN;\nif (!token) throw new Error(\"Set SHTAB_TOKEN\");\nconst client = new ShtabClient(token, { tokenType: \"personal\" });\ntry {\n  const result = await client.financesPayrollImportsEntriesCreate({\n    \"path\": {\n      \"team_id\": \"1\"\n    },\n    \"body\": {\n      \"year\": 2000,\n      \"month\": 1,\n      \"items\": [\n        {\n          \"external_id\": \"1\",\n          \"user\": 1,\n          \"type\": \"bonus\",\n          \"amount\": \"пример\"\n        }\n      ]\n    }\n  });\n  console.log(result);\n} catch (error) {\n  if (error instanceof ApiError) console.error(error.status, error.code, error.body);\n  throw error;\n}"
          }
        ],
        "x-shtab-scope": "finances.payroll:write",
        "x-shtab-sdk": {
          "python": "finances_payroll_imports_entries_create",
          "typescript": "financesPayrollImportsEntriesCreate"
        },
        "x-shtab-token-types": [
          "personal",
          "team"
        ]
      }
    },
    "/api/finances/payroll/{team_id}/": {
      "get": {
        "description": "",
        "operationId": "api_finances_payroll_list",
        "parameters": [
          {
            "description": "",
            "in": "query",
            "name": "source",
            "required": false,
            "type": "string"
          },
          {
            "description": "",
            "in": "query",
            "name": "date_from",
            "required": false,
            "type": "string"
          },
          {
            "description": "",
            "in": "query",
            "name": "date_to",
            "required": false,
            "type": "string"
          },
          {
            "default": 20,
            "description": "Number of results to return per page.",
            "in": "query",
            "maximum": 100,
            "minimum": 1,
            "name": "limit",
            "required": false,
            "type": "integer"
          },
          {
            "default": 0,
            "description": "The initial index from which to return the results.",
            "in": "query",
            "minimum": 0,
            "name": "offset",
            "required": false,
            "type": "integer"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "schema": {
              "properties": {
                "next": {
                  "format": "uri",
                  "type": "string",
                  "x-nullable": true
                },
                "previous": {
                  "format": "uri",
                  "type": "string",
                  "x-nullable": true
                },
                "results": {
                  "items": {
                    "$ref": "#/definitions/PublicPayrollFact"
                  },
                  "type": "array"
                }
              },
              "required": [
                "results"
              ],
              "type": "object"
            }
          },
          "400": {
            "description": "Параметры или тело запроса не прошли проверку.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "401": {
            "description": "Токен отсутствует или недействителен.",
            "schema": {
              "$ref": "#/definitions/PublicAuthenticationError"
            }
          },
          "402": {
            "description": "Тариф команды не включает запрошенную возможность.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "403": {
            "description": "Токену не выдан нужный грант или у пользователя отсутствуют права доступа.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "404": {
            "description": "Метод недоступен токену или объект отсутствует в доступной области.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "429": {
            "description": "Превышен лимит запросов. Заголовок Retry-After указывает время ожидания в секундах.",
            "headers": {
              "Retry-After": {
                "description": "Секунд до следующей попытки.",
                "type": "integer"
              }
            },
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          }
        },
        "summary": "Факт ФОТ из учётной системы",
        "tags": [
          "finances"
        ],
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import os\n\nfrom shtab_sdk import ApiError, ShtabClient\n\nclient = ShtabClient(os.environ[\"SHTAB_TOKEN\"], token_type=\"personal\")\ntry:\n    result = client.finances_payroll_list(path={'team_id': '1'}, query={'limit': 20})\n    print(result)\nexcept ApiError as error:\n    print(error.status, error.code, error.body)\n    raise"
          },
          {
            "lang": "TypeScript",
            "source": "import { ApiError, ShtabClient } from \"@shtabapp/sdk\";\n\nconst token = process.env.SHTAB_TOKEN;\nif (!token) throw new Error(\"Set SHTAB_TOKEN\");\nconst client = new ShtabClient(token, { tokenType: \"personal\" });\ntry {\n  const result = await client.financesPayrollList({\n    \"path\": {\n      \"team_id\": \"1\"\n    },\n    \"query\": {\n      \"limit\": 20\n    }\n  });\n  console.log(result);\n} catch (error) {\n  if (error instanceof ApiError) console.error(error.status, error.code, error.body);\n  throw error;\n}"
          }
        ],
        "x-shtab-pagination": {
          "limit": "limit",
          "next": "next",
          "offset": "offset",
          "previous": "previous",
          "type": "limit-offset"
        },
        "x-shtab-scope": "finances.payroll:read",
        "x-shtab-sdk": {
          "python": "finances_payroll_list",
          "typescript": "financesPayrollList"
        },
        "x-shtab-token-types": [
          "personal",
          "team"
        ]
      },
      "parameters": [
        {
          "in": "path",
          "name": "team_id",
          "required": true,
          "type": "string"
        }
      ]
    },
    "/api/finances/payroll/{team_id}/batch/": {
      "parameters": [
        {
          "in": "path",
          "name": "team_id",
          "required": true,
          "type": "string"
        }
      ],
      "put": {
        "description": "",
        "operationId": "api_finances_payroll_batch_update",
        "parameters": [
          {
            "in": "body",
            "name": "data",
            "required": true,
            "schema": {
              "$ref": "#/definitions/PublicPayrollFactBatchRequest"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "schema": {
              "items": {
                "$ref": "#/definitions/BatchResult"
              },
              "type": "array"
            }
          },
          "400": {
            "description": "Параметры или тело запроса не прошли проверку.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "401": {
            "description": "Токен отсутствует или недействителен.",
            "schema": {
              "$ref": "#/definitions/PublicAuthenticationError"
            }
          },
          "402": {
            "description": "Тариф команды не включает запрошенную возможность.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "403": {
            "description": "Токену не выдан нужный грант или у пользователя отсутствуют права доступа.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "404": {
            "description": "Метод недоступен токену или объект отсутствует в доступной области.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "429": {
            "description": "Превышен лимит запросов. Заголовок Retry-After указывает время ожидания в секундах.",
            "headers": {
              "Retry-After": {
                "description": "Секунд до следующей попытки.",
                "type": "integer"
              }
            },
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          }
        },
        "summary": "Пакетная запись факта ФОТ по месяцам с заменой по окну",
        "tags": [
          "finances"
        ],
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import os\n\nfrom shtab_sdk import ApiError, ShtabClient\n\nclient = ShtabClient(os.environ[\"SHTAB_TOKEN\"], token_type=\"personal\")\ntry:\n    result = client.finances_payroll_batch_update(path={'team_id': '1'}, body={'items': [{'entries': [{'amount': 'пример',\n                             'period': 'пример',\n                             'type': 'salary'}],\n                'window': {'date_from': 'пример', 'date_to': 'пример'}}],\n     'source': 'пример'})\n    print(result)\nexcept ApiError as error:\n    print(error.status, error.code, error.body)\n    raise"
          },
          {
            "lang": "TypeScript",
            "source": "import { ApiError, ShtabClient } from \"@shtabapp/sdk\";\n\nconst token = process.env.SHTAB_TOKEN;\nif (!token) throw new Error(\"Set SHTAB_TOKEN\");\nconst client = new ShtabClient(token, { tokenType: \"personal\" });\ntry {\n  const result = await client.financesPayrollBatchUpdate({\n    \"path\": {\n      \"team_id\": \"1\"\n    },\n    \"body\": {\n      \"source\": \"пример\",\n      \"items\": [\n        {\n          \"window\": {\n            \"date_from\": \"пример\",\n            \"date_to\": \"пример\"\n          },\n          \"entries\": [\n            {\n              \"period\": \"пример\",\n              \"type\": \"salary\",\n              \"amount\": \"пример\"\n            }\n          ]\n        }\n      ]\n    }\n  });\n  console.log(result);\n} catch (error) {\n  if (error instanceof ApiError) console.error(error.status, error.code, error.body);\n  throw error;\n}"
          }
        ],
        "x-shtab-scope": "finances.payroll:write",
        "x-shtab-sdk": {
          "python": "finances_payroll_batch_update",
          "typescript": "financesPayrollBatchUpdate"
        },
        "x-shtab-token-types": [
          "personal",
          "team"
        ]
      }
    },
    "/api/organization/{team_id}/divisions/batch/": {
      "parameters": [
        {
          "in": "path",
          "name": "team_id",
          "required": true,
          "type": "string"
        }
      ],
      "put": {
        "description": "",
        "operationId": "api_organization_divisions_batch_update",
        "parameters": [
          {
            "in": "body",
            "name": "data",
            "required": true,
            "schema": {
              "$ref": "#/definitions/PublicDivisionBatchRequest"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "schema": {
              "items": {
                "$ref": "#/definitions/BatchResult"
              },
              "type": "array"
            }
          },
          "400": {
            "description": "Параметры или тело запроса не прошли проверку.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "401": {
            "description": "Токен отсутствует или недействителен.",
            "schema": {
              "$ref": "#/definitions/PublicAuthenticationError"
            }
          },
          "402": {
            "description": "Тариф команды не включает запрошенную возможность.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "403": {
            "description": "Токену не выдан нужный грант или у пользователя отсутствуют права доступа.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "404": {
            "description": "Метод недоступен токену или объект отсутствует в доступной области.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "429": {
            "description": "Превышен лимит запросов. Заголовок Retry-After указывает время ожидания в секундах.",
            "headers": {
              "Retry-After": {
                "description": "Секунд до следующей попытки.",
                "type": "integer"
              }
            },
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          }
        },
        "summary": "Пакетная запись подразделений",
        "tags": [
          "organization"
        ],
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import os\n\nfrom shtab_sdk import ApiError, ShtabClient\n\nclient = ShtabClient(os.environ[\"SHTAB_TOKEN\"], token_type=\"personal\")\ntry:\n    result = client.organization_divisions_batch_update(path={'team_id': '1'}, body={'items': [{'external_id': '1', 'name': 'пример'}], 'source': 'пример'})\n    print(result)\nexcept ApiError as error:\n    print(error.status, error.code, error.body)\n    raise"
          },
          {
            "lang": "TypeScript",
            "source": "import { ApiError, ShtabClient } from \"@shtabapp/sdk\";\n\nconst token = process.env.SHTAB_TOKEN;\nif (!token) throw new Error(\"Set SHTAB_TOKEN\");\nconst client = new ShtabClient(token, { tokenType: \"personal\" });\ntry {\n  const result = await client.organizationDivisionsBatchUpdate({\n    \"path\": {\n      \"team_id\": \"1\"\n    },\n    \"body\": {\n      \"source\": \"пример\",\n      \"items\": [\n        {\n          \"external_id\": \"1\",\n          \"name\": \"пример\"\n        }\n      ]\n    }\n  });\n  console.log(result);\n} catch (error) {\n  if (error instanceof ApiError) console.error(error.status, error.code, error.body);\n  throw error;\n}"
          }
        ],
        "x-shtab-scope": "organization:write",
        "x-shtab-sdk": {
          "python": "organization_divisions_batch_update",
          "typescript": "organizationDivisionsBatchUpdate"
        },
        "x-shtab-token-types": [
          "personal",
          "team"
        ]
      }
    },
    "/api/organization/{team_id}/positions/batch/": {
      "parameters": [
        {
          "in": "path",
          "name": "team_id",
          "required": true,
          "type": "string"
        }
      ],
      "put": {
        "description": "",
        "operationId": "api_organization_positions_batch_update",
        "parameters": [
          {
            "in": "body",
            "name": "data",
            "required": true,
            "schema": {
              "$ref": "#/definitions/PublicPositionBatchRequest"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "schema": {
              "items": {
                "$ref": "#/definitions/BatchResult"
              },
              "type": "array"
            }
          },
          "400": {
            "description": "Параметры или тело запроса не прошли проверку.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "401": {
            "description": "Токен отсутствует или недействителен.",
            "schema": {
              "$ref": "#/definitions/PublicAuthenticationError"
            }
          },
          "402": {
            "description": "Тариф команды не включает запрошенную возможность.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "403": {
            "description": "Токену не выдан нужный грант или у пользователя отсутствуют права доступа.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "404": {
            "description": "Метод недоступен токену или объект отсутствует в доступной области.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "429": {
            "description": "Превышен лимит запросов. Заголовок Retry-After указывает время ожидания в секундах.",
            "headers": {
              "Retry-After": {
                "description": "Секунд до следующей попытки.",
                "type": "integer"
              }
            },
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          }
        },
        "summary": "Пакетная запись должностей",
        "tags": [
          "organization"
        ],
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import os\n\nfrom shtab_sdk import ApiError, ShtabClient\n\nclient = ShtabClient(os.environ[\"SHTAB_TOKEN\"], token_type=\"personal\")\ntry:\n    result = client.organization_positions_batch_update(path={'team_id': '1'}, body={'items': [{'external_id': '1', 'name': 'пример'}], 'source': 'пример'})\n    print(result)\nexcept ApiError as error:\n    print(error.status, error.code, error.body)\n    raise"
          },
          {
            "lang": "TypeScript",
            "source": "import { ApiError, ShtabClient } from \"@shtabapp/sdk\";\n\nconst token = process.env.SHTAB_TOKEN;\nif (!token) throw new Error(\"Set SHTAB_TOKEN\");\nconst client = new ShtabClient(token, { tokenType: \"personal\" });\ntry {\n  const result = await client.organizationPositionsBatchUpdate({\n    \"path\": {\n      \"team_id\": \"1\"\n    },\n    \"body\": {\n      \"source\": \"пример\",\n      \"items\": [\n        {\n          \"external_id\": \"1\",\n          \"name\": \"пример\"\n        }\n      ]\n    }\n  });\n  console.log(result);\n} catch (error) {\n  if (error instanceof ApiError) console.error(error.status, error.code, error.body);\n  throw error;\n}"
          }
        ],
        "x-shtab-scope": "organization:write",
        "x-shtab-sdk": {
          "python": "organization_positions_batch_update",
          "typescript": "organizationPositionsBatchUpdate"
        },
        "x-shtab-token-types": [
          "personal",
          "team"
        ]
      }
    },
    "/api/reports/{team_id}/time-entries/": {
      "get": {
        "description": "",
        "operationId": "api_reports_time-entries_list",
        "parameters": [
          {
            "default": 20,
            "description": "Number of results to return per page.",
            "in": "query",
            "maximum": 100,
            "minimum": 1,
            "name": "limit",
            "required": false,
            "type": "integer"
          },
          {
            "default": 0,
            "description": "The initial index from which to return the results.",
            "in": "query",
            "minimum": 0,
            "name": "offset",
            "required": false,
            "type": "integer"
          },
          {
            "format": "date-time",
            "in": "query",
            "name": "updated_since",
            "required": false,
            "type": "string"
          },
          {
            "format": "date",
            "in": "query",
            "name": "date_from",
            "required": false,
            "type": "string"
          },
          {
            "format": "date",
            "in": "query",
            "name": "date_to",
            "required": false,
            "type": "string"
          },
          {
            "default": "Europe/Moscow",
            "in": "query",
            "maxLength": 64,
            "minLength": 1,
            "name": "tz",
            "required": false,
            "type": "string"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "schema": {
              "properties": {
                "next": {
                  "format": "uri",
                  "type": "string",
                  "x-nullable": true
                },
                "previous": {
                  "format": "uri",
                  "type": "string",
                  "x-nullable": true
                },
                "results": {
                  "items": {
                    "$ref": "#/definitions/TimeEntryRow"
                  },
                  "type": "array"
                }
              },
              "required": [
                "results"
              ],
              "type": "object"
            }
          },
          "400": {
            "description": "Параметры или тело запроса не прошли проверку.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "401": {
            "description": "Токен отсутствует или недействителен.",
            "schema": {
              "$ref": "#/definitions/PublicAuthenticationError"
            }
          },
          "402": {
            "description": "Тариф команды не включает запрошенную возможность.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "403": {
            "description": "Токену не выдан нужный грант или у пользователя отсутствуют права доступа.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "404": {
            "description": "Метод недоступен токену или объект отсутствует в доступной области.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "429": {
            "description": "Превышен лимит запросов. Заголовок Retry-After указывает время ожидания в секундах.",
            "headers": {
              "Retry-After": {
                "description": "Секунд до следующей попытки.",
                "type": "integer"
              }
            },
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          }
        },
        "summary": "Записи времени с инкрементом по updated_since, включая удалённые",
        "tags": [
          "reports"
        ],
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import os\n\nfrom shtab_sdk import ApiError, ShtabClient\n\nclient = ShtabClient(os.environ[\"SHTAB_TOKEN\"], token_type=\"personal\")\ntry:\n    result = client.reports_time_entries_list(path={'team_id': '1'}, query={'limit': 20})\n    print(result)\nexcept ApiError as error:\n    print(error.status, error.code, error.body)\n    raise"
          },
          {
            "lang": "TypeScript",
            "source": "import { ApiError, ShtabClient } from \"@shtabapp/sdk\";\n\nconst token = process.env.SHTAB_TOKEN;\nif (!token) throw new Error(\"Set SHTAB_TOKEN\");\nconst client = new ShtabClient(token, { tokenType: \"personal\" });\ntry {\n  const result = await client.reportsTimeEntriesList({\n    \"path\": {\n      \"team_id\": \"1\"\n    },\n    \"query\": {\n      \"limit\": 20\n    }\n  });\n  console.log(result);\n} catch (error) {\n  if (error instanceof ApiError) console.error(error.status, error.code, error.body);\n  throw error;\n}"
          }
        ],
        "x-shtab-pagination": {
          "limit": "limit",
          "next": "next",
          "offset": "offset",
          "previous": "previous",
          "type": "limit-offset"
        },
        "x-shtab-scope": "reports:read",
        "x-shtab-sdk": {
          "python": "reports_time_entries_list",
          "typescript": "reportsTimeEntriesList"
        },
        "x-shtab-token-types": [
          "personal",
          "team"
        ]
      },
      "parameters": [
        {
          "in": "path",
          "name": "team_id",
          "required": true,
          "type": "string"
        }
      ]
    },
    "/api/reports/{team_id}/worktime/": {
      "get": {
        "description": "",
        "operationId": "api_reports_worktime_list",
        "parameters": [
          {
            "description": "Изменённые итоги за период, включая обнулённые группы. Для следующего опроса сохраните X-Worktime-Cursor.",
            "format": "date-time",
            "in": "query",
            "name": "updated_since",
            "required": false,
            "type": "string"
          },
          {
            "default": false,
            "description": "Включить время без проекта",
            "in": "query",
            "name": "include_unassigned",
            "required": false,
            "type": "boolean"
          },
          {
            "format": "date",
            "in": "query",
            "name": "date_from",
            "required": true,
            "type": "string"
          },
          {
            "format": "date",
            "in": "query",
            "name": "date_to",
            "required": true,
            "type": "string"
          },
          {
            "default": "Europe/Moscow",
            "in": "query",
            "maxLength": 64,
            "minLength": 1,
            "name": "tz",
            "required": false,
            "type": "string"
          }
        ],
        "responses": {
          "200": {
            "description": "Текущие итоги. При updated_since исчезнувшие группы возвращаются с нулём секунд.",
            "headers": {
              "X-Worktime-Cursor": {
                "description": "Курсор следующего запроса с теми же фильтрами.",
                "format": "date-time",
                "type": "string"
              }
            },
            "schema": {
              "items": {
                "$ref": "#/definitions/WorktimeReportRow"
              },
              "type": "array"
            }
          },
          "400": {
            "description": "Параметры или тело запроса не прошли проверку.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "401": {
            "description": "Токен отсутствует или недействителен.",
            "schema": {
              "$ref": "#/definitions/PublicAuthenticationError"
            }
          },
          "402": {
            "description": "Тариф команды не включает запрошенную возможность.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "403": {
            "description": "Токену не выдан нужный грант или у пользователя отсутствуют права доступа.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "404": {
            "description": "Метод недоступен токену или объект отсутствует в доступной области.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "429": {
            "description": "Превышен лимит запросов. Заголовок Retry-After указывает время ожидания в секундах.",
            "headers": {
              "Retry-After": {
                "description": "Секунд до следующей попытки.",
                "type": "integer"
              }
            },
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          }
        },
        "summary": "Отработанное время по дням, сотрудникам, проектам и задачам",
        "tags": [
          "reports"
        ],
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import os\n\nfrom shtab_sdk import ApiError, ShtabClient\n\nclient = ShtabClient(os.environ[\"SHTAB_TOKEN\"], token_type=\"personal\")\ntry:\n    result = client.reports_worktime_list(path={'team_id': '1'}, query={'date_from': '2026-01-01', 'date_to': '2026-01-01'})\n    print(result)\nexcept ApiError as error:\n    print(error.status, error.code, error.body)\n    raise"
          },
          {
            "lang": "TypeScript",
            "source": "import { ApiError, ShtabClient } from \"@shtabapp/sdk\";\n\nconst token = process.env.SHTAB_TOKEN;\nif (!token) throw new Error(\"Set SHTAB_TOKEN\");\nconst client = new ShtabClient(token, { tokenType: \"personal\" });\ntry {\n  const result = await client.reportsWorktimeList({\n    \"path\": {\n      \"team_id\": \"1\"\n    },\n    \"query\": {\n      \"date_from\": \"2026-01-01\",\n      \"date_to\": \"2026-01-01\"\n    }\n  });\n  console.log(result);\n} catch (error) {\n  if (error instanceof ApiError) console.error(error.status, error.code, error.body);\n  throw error;\n}"
          }
        ],
        "x-shtab-scope": "reports:read",
        "x-shtab-sdk": {
          "python": "reports_worktime_list",
          "typescript": "reportsWorktimeList"
        },
        "x-shtab-token-types": [
          "personal",
          "team"
        ]
      },
      "parameters": [
        {
          "in": "path",
          "name": "team_id",
          "required": true,
          "type": "string"
        }
      ]
    },
    "/api/resources/{team_id}/compensations/batch/": {
      "parameters": [
        {
          "in": "path",
          "name": "team_id",
          "required": true,
          "type": "string"
        }
      ],
      "put": {
        "description": "",
        "operationId": "api_resources_compensations_batch_update",
        "parameters": [
          {
            "in": "body",
            "name": "data",
            "required": true,
            "schema": {
              "$ref": "#/definitions/PublicCompensationBatchRequest"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "schema": {
              "items": {
                "$ref": "#/definitions/BatchResult"
              },
              "type": "array"
            }
          },
          "400": {
            "description": "Параметры или тело запроса не прошли проверку.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "401": {
            "description": "Токен отсутствует или недействителен.",
            "schema": {
              "$ref": "#/definitions/PublicAuthenticationError"
            }
          },
          "402": {
            "description": "Тариф команды не включает запрошенную возможность.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "403": {
            "description": "Токену не выдан нужный грант или у пользователя отсутствуют права доступа.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "404": {
            "description": "Метод недоступен токену или объект отсутствует в доступной области.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "429": {
            "description": "Превышен лимит запросов. Заголовок Retry-After указывает время ожидания в секундах.",
            "headers": {
              "Retry-After": {
                "description": "Секунд до следующей попытки.",
                "type": "integer"
              }
            },
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          }
        },
        "summary": "Пакетная запись ставок",
        "tags": [
          "finances"
        ],
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import os\n\nfrom shtab_sdk import ApiError, ShtabClient\n\nclient = ShtabClient(os.environ[\"SHTAB_TOKEN\"], token_type=\"personal\")\ntry:\n    result = client.resources_compensations_batch_update(path={'team_id': '1'}, body={'items': [{'amount': 'пример',\n                'external_id': '1',\n                'started_at': '2026-01-01'}],\n     'source': 'пример'})\n    print(result)\nexcept ApiError as error:\n    print(error.status, error.code, error.body)\n    raise"
          },
          {
            "lang": "TypeScript",
            "source": "import { ApiError, ShtabClient } from \"@shtabapp/sdk\";\n\nconst token = process.env.SHTAB_TOKEN;\nif (!token) throw new Error(\"Set SHTAB_TOKEN\");\nconst client = new ShtabClient(token, { tokenType: \"personal\" });\ntry {\n  const result = await client.resourcesCompensationsBatchUpdate({\n    \"path\": {\n      \"team_id\": \"1\"\n    },\n    \"body\": {\n      \"source\": \"пример\",\n      \"items\": [\n        {\n          \"external_id\": \"1\",\n          \"amount\": \"пример\",\n          \"started_at\": \"2026-01-01\"\n        }\n      ]\n    }\n  });\n  console.log(result);\n} catch (error) {\n  if (error instanceof ApiError) console.error(error.status, error.code, error.body);\n  throw error;\n}"
          }
        ],
        "x-shtab-scope": "resources:write",
        "x-shtab-sdk": {
          "python": "resources_compensations_batch_update",
          "typescript": "resourcesCompensationsBatchUpdate"
        },
        "x-shtab-token-types": [
          "personal",
          "team"
        ]
      }
    },
    "/api/resources/{team_id}/equipment/batch/": {
      "parameters": [
        {
          "in": "path",
          "name": "team_id",
          "required": true,
          "type": "string"
        }
      ],
      "put": {
        "description": "",
        "operationId": "api_resources_equipment_batch_update",
        "parameters": [
          {
            "in": "body",
            "name": "data",
            "required": true,
            "schema": {
              "$ref": "#/definitions/PublicEquipmentBatchRequest"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "schema": {
              "items": {
                "$ref": "#/definitions/BatchResult"
              },
              "type": "array"
            }
          },
          "400": {
            "description": "Параметры или тело запроса не прошли проверку.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "401": {
            "description": "Токен отсутствует или недействителен.",
            "schema": {
              "$ref": "#/definitions/PublicAuthenticationError"
            }
          },
          "402": {
            "description": "Тариф команды не включает запрошенную возможность.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "403": {
            "description": "Токену не выдан нужный грант или у пользователя отсутствуют права доступа.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "404": {
            "description": "Метод недоступен токену или объект отсутствует в доступной области.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "429": {
            "description": "Превышен лимит запросов. Заголовок Retry-After указывает время ожидания в секундах.",
            "headers": {
              "Retry-After": {
                "description": "Секунд до следующей попытки.",
                "type": "integer"
              }
            },
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          }
        },
        "summary": "Пакетная запись оборудования",
        "tags": [
          "finances"
        ],
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import os\n\nfrom shtab_sdk import ApiError, ShtabClient\n\nclient = ShtabClient(os.environ[\"SHTAB_TOKEN\"], token_type=\"personal\")\ntry:\n    result = client.resources_equipment_batch_update(path={'team_id': '1'}, body={'items': [{'external_id': '1', 'name': 'пример'}], 'source': 'пример'})\n    print(result)\nexcept ApiError as error:\n    print(error.status, error.code, error.body)\n    raise"
          },
          {
            "lang": "TypeScript",
            "source": "import { ApiError, ShtabClient } from \"@shtabapp/sdk\";\n\nconst token = process.env.SHTAB_TOKEN;\nif (!token) throw new Error(\"Set SHTAB_TOKEN\");\nconst client = new ShtabClient(token, { tokenType: \"personal\" });\ntry {\n  const result = await client.resourcesEquipmentBatchUpdate({\n    \"path\": {\n      \"team_id\": \"1\"\n    },\n    \"body\": {\n      \"source\": \"пример\",\n      \"items\": [\n        {\n          \"external_id\": \"1\",\n          \"name\": \"пример\"\n        }\n      ]\n    }\n  });\n  console.log(result);\n} catch (error) {\n  if (error instanceof ApiError) console.error(error.status, error.code, error.body);\n  throw error;\n}"
          }
        ],
        "x-shtab-scope": "resources:write",
        "x-shtab-sdk": {
          "python": "resources_equipment_batch_update",
          "typescript": "resourcesEquipmentBatchUpdate"
        },
        "x-shtab-token-types": [
          "personal",
          "team"
        ]
      }
    },
    "/api/resources/{team_id}/production-calendar/": {
      "get": {
        "description": "",
        "operationId": "api_resources_production-calendar_list",
        "parameters": [
          {
            "in": "query",
            "maximum": 2100,
            "minimum": 2000,
            "name": "year",
            "required": true,
            "type": "integer"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "schema": {
              "$ref": "#/definitions/ProductionCalendar"
            }
          },
          "400": {
            "description": "Параметры или тело запроса не прошли проверку.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "401": {
            "description": "Токен отсутствует или недействителен.",
            "schema": {
              "$ref": "#/definitions/PublicAuthenticationError"
            }
          },
          "402": {
            "description": "Тариф команды не включает запрошенную возможность.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "403": {
            "description": "Токену не выдан нужный грант или у пользователя отсутствуют права доступа.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "404": {
            "description": "Метод недоступен токену или объект отсутствует в доступной области.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "429": {
            "description": "Превышен лимит запросов. Заголовок Retry-After указывает время ожидания в секундах.",
            "headers": {
              "Retry-After": {
                "description": "Секунд до следующей попытки.",
                "type": "integer"
              }
            },
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          }
        },
        "summary": "Производственный календарь команды на год",
        "tags": [
          "finances"
        ],
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import os\n\nfrom shtab_sdk import ApiError, ShtabClient\n\nclient = ShtabClient(os.environ[\"SHTAB_TOKEN\"], token_type=\"personal\")\ntry:\n    result = client.resources_production_calendar_list(path={'team_id': '1'}, query={'year': 2000})\n    print(result)\nexcept ApiError as error:\n    print(error.status, error.code, error.body)\n    raise"
          },
          {
            "lang": "TypeScript",
            "source": "import { ApiError, ShtabClient } from \"@shtabapp/sdk\";\n\nconst token = process.env.SHTAB_TOKEN;\nif (!token) throw new Error(\"Set SHTAB_TOKEN\");\nconst client = new ShtabClient(token, { tokenType: \"personal\" });\ntry {\n  const result = await client.resourcesProductionCalendarList({\n    \"path\": {\n      \"team_id\": \"1\"\n    },\n    \"query\": {\n      \"year\": 2000\n    }\n  });\n  console.log(result);\n} catch (error) {\n  if (error instanceof ApiError) console.error(error.status, error.code, error.body);\n  throw error;\n}"
          }
        ],
        "x-shtab-scope": "resources:read",
        "x-shtab-sdk": {
          "python": "resources_production_calendar_list",
          "typescript": "resourcesProductionCalendarList"
        },
        "x-shtab-token-types": [
          "personal",
          "team"
        ]
      },
      "parameters": [
        {
          "in": "path",
          "name": "team_id",
          "required": true,
          "type": "string"
        }
      ],
      "put": {
        "description": "",
        "operationId": "api_resources_production-calendar_update",
        "parameters": [
          {
            "in": "body",
            "name": "data",
            "required": true,
            "schema": {
              "$ref": "#/definitions/ProductionCalendarWrite"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "schema": {
              "$ref": "#/definitions/ProductionCalendar"
            }
          },
          "400": {
            "description": "Параметры или тело запроса не прошли проверку.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "401": {
            "description": "Токен отсутствует или недействителен.",
            "schema": {
              "$ref": "#/definitions/PublicAuthenticationError"
            }
          },
          "402": {
            "description": "Тариф команды не включает запрошенную возможность.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "403": {
            "description": "Токену не выдан нужный грант или у пользователя отсутствуют права доступа.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "404": {
            "description": "Метод недоступен токену или объект отсутствует в доступной области.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "429": {
            "description": "Превышен лимит запросов. Заголовок Retry-After указывает время ожидания в секундах.",
            "headers": {
              "Retry-After": {
                "description": "Секунд до следующей попытки.",
                "type": "integer"
              }
            },
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          }
        },
        "summary": "Записать производственный календарь команды на год (замена года целиком)",
        "tags": [
          "finances"
        ],
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import os\n\nfrom shtab_sdk import ApiError, ShtabClient\n\nclient = ShtabClient(os.environ[\"SHTAB_TOKEN\"], token_type=\"personal\")\ntry:\n    result = client.resources_production_calendar_update(path={'team_id': '1'}, body={'year': 2000})\n    print(result)\nexcept ApiError as error:\n    print(error.status, error.code, error.body)\n    raise"
          },
          {
            "lang": "TypeScript",
            "source": "import { ApiError, ShtabClient } from \"@shtabapp/sdk\";\n\nconst token = process.env.SHTAB_TOKEN;\nif (!token) throw new Error(\"Set SHTAB_TOKEN\");\nconst client = new ShtabClient(token, { tokenType: \"personal\" });\ntry {\n  const result = await client.resourcesProductionCalendarUpdate({\n    \"path\": {\n      \"team_id\": \"1\"\n    },\n    \"body\": {\n      \"year\": 2000\n    }\n  });\n  console.log(result);\n} catch (error) {\n  if (error instanceof ApiError) console.error(error.status, error.code, error.body);\n  throw error;\n}"
          }
        ],
        "x-shtab-scope": "resources:write",
        "x-shtab-sdk": {
          "python": "resources_production_calendar_update",
          "typescript": "resourcesProductionCalendarUpdate"
        },
        "x-shtab-token-types": [
          "personal",
          "team"
        ]
      }
    },
    "/api/resources/{team_id}/schedules/batch/": {
      "parameters": [
        {
          "in": "path",
          "name": "team_id",
          "required": true,
          "type": "string"
        }
      ],
      "put": {
        "description": "",
        "operationId": "api_resources_schedules_batch_update",
        "parameters": [
          {
            "in": "body",
            "name": "data",
            "required": true,
            "schema": {
              "$ref": "#/definitions/PublicScheduleBatchRequest"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "schema": {
              "items": {
                "$ref": "#/definitions/BatchResult"
              },
              "type": "array"
            }
          },
          "400": {
            "description": "Параметры или тело запроса не прошли проверку.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "401": {
            "description": "Токен отсутствует или недействителен.",
            "schema": {
              "$ref": "#/definitions/PublicAuthenticationError"
            }
          },
          "402": {
            "description": "Тариф команды не включает запрошенную возможность.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "403": {
            "description": "Токену не выдан нужный грант или у пользователя отсутствуют права доступа.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "404": {
            "description": "Метод недоступен токену или объект отсутствует в доступной области.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "429": {
            "description": "Превышен лимит запросов. Заголовок Retry-After указывает время ожидания в секундах.",
            "headers": {
              "Retry-After": {
                "description": "Секунд до следующей попытки.",
                "type": "integer"
              }
            },
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          }
        },
        "summary": "Пакетная запись графиков работы",
        "tags": [
          "finances"
        ],
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import os\n\nfrom shtab_sdk import ApiError, ShtabClient\n\nclient = ShtabClient(os.environ[\"SHTAB_TOKEN\"], token_type=\"personal\")\ntry:\n    result = client.resources_schedules_batch_update(path={'team_id': '1'}, body={'items': [{'days_of_week': [1],\n                'external_id': '1',\n                'name': 'пример',\n                'work_end_time': 'пример',\n                'work_start_time': 'пример'}],\n     'source': 'пример'})\n    print(result)\nexcept ApiError as error:\n    print(error.status, error.code, error.body)\n    raise"
          },
          {
            "lang": "TypeScript",
            "source": "import { ApiError, ShtabClient } from \"@shtabapp/sdk\";\n\nconst token = process.env.SHTAB_TOKEN;\nif (!token) throw new Error(\"Set SHTAB_TOKEN\");\nconst client = new ShtabClient(token, { tokenType: \"personal\" });\ntry {\n  const result = await client.resourcesSchedulesBatchUpdate({\n    \"path\": {\n      \"team_id\": \"1\"\n    },\n    \"body\": {\n      \"source\": \"пример\",\n      \"items\": [\n        {\n          \"external_id\": \"1\",\n          \"name\": \"пример\",\n          \"days_of_week\": [\n            1\n          ],\n          \"work_start_time\": \"пример\",\n          \"work_end_time\": \"пример\"\n        }\n      ]\n    }\n  });\n  console.log(result);\n} catch (error) {\n  if (error instanceof ApiError) console.error(error.status, error.code, error.body);\n  throw error;\n}"
          }
        ],
        "x-shtab-scope": "resources:write",
        "x-shtab-sdk": {
          "python": "resources_schedules_batch_update",
          "typescript": "resourcesSchedulesBatchUpdate"
        },
        "x-shtab-token-types": [
          "personal",
          "team"
        ]
      }
    },
    "/api/tasks/{team_id}/checklists/{task_id}/create/": {
      "parameters": [
        {
          "in": "path",
          "name": "team_id",
          "required": true,
          "type": "string"
        },
        {
          "in": "path",
          "name": "task_id",
          "required": true,
          "type": "string"
        }
      ],
      "post": {
        "description": "Создание, список, редактирование, удаление пункта чек листа.\nСписок возвращает чек-листы карточки с вложенными пунктами.",
        "operationId": "api_tasks_checklists_create_create",
        "parameters": [
          {
            "in": "body",
            "name": "data",
            "required": true,
            "schema": {
              "$ref": "#/definitions/PublicCheckListCreate"
            }
          }
        ],
        "responses": {
          "201": {
            "description": "",
            "schema": {
              "$ref": "#/definitions/PublicCheckList"
            }
          },
          "400": {
            "description": "Параметры или тело запроса не прошли проверку.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "401": {
            "description": "Токен отсутствует или недействителен.",
            "schema": {
              "$ref": "#/definitions/PublicAuthenticationError"
            }
          },
          "402": {
            "description": "Тариф команды не включает запрошенную возможность.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "403": {
            "description": "Токену не выдан нужный грант или у пользователя отсутствуют права доступа.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "404": {
            "description": "Метод недоступен токену или объект отсутствует в доступной области.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "429": {
            "description": "Превышен лимит запросов. Заголовок Retry-After указывает время ожидания в секундах.",
            "headers": {
              "Retry-After": {
                "description": "Секунд до следующей попытки.",
                "type": "integer"
              }
            },
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          }
        },
        "summary": "Добавить пункт в чек-лист задачи",
        "tags": [
          "tasks"
        ],
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import os\n\nfrom shtab_sdk import ApiError, ShtabClient\n\nclient = ShtabClient(os.environ[\"SHTAB_TOKEN\"], token_type=\"personal\")\ntry:\n    result = client.tasks_checklists_create_create(path={'task_id': '1', 'team_id': '1'}, body={'text': 'пример'})\n    print(result)\nexcept ApiError as error:\n    print(error.status, error.code, error.body)\n    raise"
          },
          {
            "lang": "TypeScript",
            "source": "import { ApiError, ShtabClient } from \"@shtabapp/sdk\";\n\nconst token = process.env.SHTAB_TOKEN;\nif (!token) throw new Error(\"Set SHTAB_TOKEN\");\nconst client = new ShtabClient(token, { tokenType: \"personal\" });\ntry {\n  const result = await client.tasksChecklistsCreateCreate({\n    \"path\": {\n      \"team_id\": \"1\",\n      \"task_id\": \"1\"\n    },\n    \"body\": {\n      \"text\": \"пример\"\n    }\n  });\n  console.log(result);\n} catch (error) {\n  if (error instanceof ApiError) console.error(error.status, error.code, error.body);\n  throw error;\n}"
          }
        ],
        "x-shtab-scope": "tasks.checklists:write",
        "x-shtab-sdk": {
          "python": "tasks_checklists_create_create",
          "typescript": "tasksChecklistsCreateCreate"
        },
        "x-shtab-token-types": [
          "personal",
          "team"
        ]
      }
    },
    "/api/tasks/{team_id}/checklists/{task_id}/delete/{id}/": {
      "delete": {
        "description": "Создание, список, редактирование, удаление пункта чек листа.\nСписок возвращает чек-листы карточки с вложенными пунктами.",
        "operationId": "api_tasks_checklists_delete_delete",
        "parameters": [],
        "responses": {
          "204": {
            "description": ""
          },
          "400": {
            "description": "Параметры или тело запроса не прошли проверку.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "401": {
            "description": "Токен отсутствует или недействителен.",
            "schema": {
              "$ref": "#/definitions/PublicAuthenticationError"
            }
          },
          "402": {
            "description": "Тариф команды не включает запрошенную возможность.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "403": {
            "description": "Токену не выдан нужный грант или у пользователя отсутствуют права доступа.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "404": {
            "description": "Метод недоступен токену или объект отсутствует в доступной области.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "429": {
            "description": "Превышен лимит запросов. Заголовок Retry-After указывает время ожидания в секундах.",
            "headers": {
              "Retry-After": {
                "description": "Секунд до следующей попытки.",
                "type": "integer"
              }
            },
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          }
        },
        "summary": "Удалить пункт из чек-листа задачи",
        "tags": [
          "tasks"
        ],
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import os\n\nfrom shtab_sdk import ApiError, ShtabClient\n\nclient = ShtabClient(os.environ[\"SHTAB_TOKEN\"], token_type=\"personal\")\ntry:\n    result = client.tasks_checklists_delete_delete(path={'id': 1, 'task_id': '1', 'team_id': '1'})\n    print(result)\nexcept ApiError as error:\n    print(error.status, error.code, error.body)\n    raise"
          },
          {
            "lang": "TypeScript",
            "source": "import { ApiError, ShtabClient } from \"@shtabapp/sdk\";\n\nconst token = process.env.SHTAB_TOKEN;\nif (!token) throw new Error(\"Set SHTAB_TOKEN\");\nconst client = new ShtabClient(token, { tokenType: \"personal\" });\ntry {\n  const result = await client.tasksChecklistsDeleteDelete({\n    \"path\": {\n      \"team_id\": \"1\",\n      \"task_id\": \"1\",\n      \"id\": 1\n    }\n  });\n  console.log(result);\n} catch (error) {\n  if (error instanceof ApiError) console.error(error.status, error.code, error.body);\n  throw error;\n}"
          }
        ],
        "x-shtab-scope": "tasks.checklists:write",
        "x-shtab-sdk": {
          "python": "tasks_checklists_delete_delete",
          "typescript": "tasksChecklistsDeleteDelete"
        },
        "x-shtab-token-types": [
          "personal",
          "team"
        ]
      },
      "parameters": [
        {
          "in": "path",
          "name": "team_id",
          "required": true,
          "type": "string"
        },
        {
          "in": "path",
          "name": "task_id",
          "required": true,
          "type": "string"
        },
        {
          "description": "A unique integer value identifying this Пункт чек-листа.",
          "in": "path",
          "name": "id",
          "required": true,
          "type": "integer"
        }
      ]
    },
    "/api/tasks/{team_id}/checklists/{task_id}/edit/{id}/": {
      "parameters": [
        {
          "in": "path",
          "name": "team_id",
          "required": true,
          "type": "string"
        },
        {
          "in": "path",
          "name": "task_id",
          "required": true,
          "type": "string"
        },
        {
          "description": "A unique integer value identifying this Пункт чек-листа.",
          "in": "path",
          "name": "id",
          "required": true,
          "type": "integer"
        }
      ],
      "patch": {
        "description": "Создание, список, редактирование, удаление пункта чек листа.\nСписок возвращает чек-листы карточки с вложенными пунктами.",
        "operationId": "api_tasks_checklists_edit_partial_update",
        "parameters": [
          {
            "in": "body",
            "name": "data",
            "required": true,
            "schema": {
              "$ref": "#/definitions/PublicCheckListUpdate"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "schema": {
              "$ref": "#/definitions/PublicCheckList"
            }
          },
          "400": {
            "description": "Параметры или тело запроса не прошли проверку.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "401": {
            "description": "Токен отсутствует или недействителен.",
            "schema": {
              "$ref": "#/definitions/PublicAuthenticationError"
            }
          },
          "402": {
            "description": "Тариф команды не включает запрошенную возможность.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "403": {
            "description": "Токену не выдан нужный грант или у пользователя отсутствуют права доступа.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "404": {
            "description": "Метод недоступен токену или объект отсутствует в доступной области.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "429": {
            "description": "Превышен лимит запросов. Заголовок Retry-After указывает время ожидания в секундах.",
            "headers": {
              "Retry-After": {
                "description": "Секунд до следующей попытки.",
                "type": "integer"
              }
            },
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          }
        },
        "summary": "Частично обновить пункт чек-листа задачи",
        "tags": [
          "tasks"
        ],
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import os\n\nfrom shtab_sdk import ApiError, ShtabClient\n\nclient = ShtabClient(os.environ[\"SHTAB_TOKEN\"], token_type=\"personal\")\ntry:\n    result = client.tasks_checklists_edit_partial_update(path={'id': 1, 'task_id': '1', 'team_id': '1'}, body={})\n    print(result)\nexcept ApiError as error:\n    print(error.status, error.code, error.body)\n    raise"
          },
          {
            "lang": "TypeScript",
            "source": "import { ApiError, ShtabClient } from \"@shtabapp/sdk\";\n\nconst token = process.env.SHTAB_TOKEN;\nif (!token) throw new Error(\"Set SHTAB_TOKEN\");\nconst client = new ShtabClient(token, { tokenType: \"personal\" });\ntry {\n  const result = await client.tasksChecklistsEditPartialUpdate({\n    \"path\": {\n      \"team_id\": \"1\",\n      \"task_id\": \"1\",\n      \"id\": 1\n    },\n    \"body\": {}\n  });\n  console.log(result);\n} catch (error) {\n  if (error instanceof ApiError) console.error(error.status, error.code, error.body);\n  throw error;\n}"
          }
        ],
        "x-shtab-scope": "tasks.checklists:write",
        "x-shtab-sdk": {
          "python": "tasks_checklists_edit_partial_update",
          "typescript": "tasksChecklistsEditPartialUpdate"
        },
        "x-shtab-token-types": [
          "personal",
          "team"
        ]
      },
      "put": {
        "description": "Создание, список, редактирование, удаление пункта чек листа.\nСписок возвращает чек-листы карточки с вложенными пунктами.",
        "operationId": "api_tasks_checklists_edit_update",
        "parameters": [
          {
            "in": "body",
            "name": "data",
            "required": true,
            "schema": {
              "$ref": "#/definitions/PublicCheckListUpdate"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "schema": {
              "$ref": "#/definitions/PublicCheckList"
            }
          },
          "400": {
            "description": "Параметры или тело запроса не прошли проверку.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "401": {
            "description": "Токен отсутствует или недействителен.",
            "schema": {
              "$ref": "#/definitions/PublicAuthenticationError"
            }
          },
          "402": {
            "description": "Тариф команды не включает запрошенную возможность.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "403": {
            "description": "Токену не выдан нужный грант или у пользователя отсутствуют права доступа.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "404": {
            "description": "Метод недоступен токену или объект отсутствует в доступной области.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "429": {
            "description": "Превышен лимит запросов. Заголовок Retry-After указывает время ожидания в секундах.",
            "headers": {
              "Retry-After": {
                "description": "Секунд до следующей попытки.",
                "type": "integer"
              }
            },
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          }
        },
        "summary": "Обновить пункт чек-листа задачи",
        "tags": [
          "tasks"
        ],
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import os\n\nfrom shtab_sdk import ApiError, ShtabClient\n\nclient = ShtabClient(os.environ[\"SHTAB_TOKEN\"], token_type=\"personal\")\ntry:\n    result = client.tasks_checklists_edit_update(path={'id': 1, 'task_id': '1', 'team_id': '1'}, body={})\n    print(result)\nexcept ApiError as error:\n    print(error.status, error.code, error.body)\n    raise"
          },
          {
            "lang": "TypeScript",
            "source": "import { ApiError, ShtabClient } from \"@shtabapp/sdk\";\n\nconst token = process.env.SHTAB_TOKEN;\nif (!token) throw new Error(\"Set SHTAB_TOKEN\");\nconst client = new ShtabClient(token, { tokenType: \"personal\" });\ntry {\n  const result = await client.tasksChecklistsEditUpdate({\n    \"path\": {\n      \"team_id\": \"1\",\n      \"task_id\": \"1\",\n      \"id\": 1\n    },\n    \"body\": {}\n  });\n  console.log(result);\n} catch (error) {\n  if (error instanceof ApiError) console.error(error.status, error.code, error.body);\n  throw error;\n}"
          }
        ],
        "x-shtab-scope": "tasks.checklists:write",
        "x-shtab-sdk": {
          "python": "tasks_checklists_edit_update",
          "typescript": "tasksChecklistsEditUpdate"
        },
        "x-shtab-token-types": [
          "personal",
          "team"
        ]
      }
    },
    "/api/tasks/{team_id}/checklists/{task_id}/list/": {
      "get": {
        "description": "Создание, список, редактирование, удаление пункта чек листа.\nСписок возвращает чек-листы карточки с вложенными пунктами.",
        "operationId": "api_tasks_checklists_list_list",
        "parameters": [
          {
            "default": 20,
            "description": "Number of results to return per page.",
            "in": "query",
            "maximum": 100,
            "minimum": 1,
            "name": "limit",
            "required": false,
            "type": "integer"
          },
          {
            "default": 0,
            "description": "The initial index from which to return the results.",
            "in": "query",
            "minimum": 0,
            "name": "offset",
            "required": false,
            "type": "integer"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "schema": {
              "properties": {
                "next": {
                  "format": "uri",
                  "type": "string",
                  "x-nullable": true
                },
                "previous": {
                  "format": "uri",
                  "type": "string",
                  "x-nullable": true
                },
                "results": {
                  "items": {
                    "$ref": "#/definitions/PublicCheckList"
                  },
                  "type": "array"
                }
              },
              "required": [
                "results"
              ],
              "type": "object"
            }
          },
          "400": {
            "description": "Параметры или тело запроса не прошли проверку.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "401": {
            "description": "Токен отсутствует или недействителен.",
            "schema": {
              "$ref": "#/definitions/PublicAuthenticationError"
            }
          },
          "402": {
            "description": "Тариф команды не включает запрошенную возможность.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "403": {
            "description": "Токену не выдан нужный грант или у пользователя отсутствуют права доступа.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "404": {
            "description": "Метод недоступен токену или объект отсутствует в доступной области.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "429": {
            "description": "Превышен лимит запросов. Заголовок Retry-After указывает время ожидания в секундах.",
            "headers": {
              "Retry-After": {
                "description": "Секунд до следующей попытки.",
                "type": "integer"
              }
            },
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          }
        },
        "summary": "Получить чек-листы задачи",
        "tags": [
          "tasks"
        ],
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import os\n\nfrom shtab_sdk import ApiError, ShtabClient\n\nclient = ShtabClient(os.environ[\"SHTAB_TOKEN\"], token_type=\"personal\")\ntry:\n    result = client.tasks_checklists_list_list(path={'task_id': '1', 'team_id': '1'}, query={'limit': 20})\n    print(result)\nexcept ApiError as error:\n    print(error.status, error.code, error.body)\n    raise"
          },
          {
            "lang": "TypeScript",
            "source": "import { ApiError, ShtabClient } from \"@shtabapp/sdk\";\n\nconst token = process.env.SHTAB_TOKEN;\nif (!token) throw new Error(\"Set SHTAB_TOKEN\");\nconst client = new ShtabClient(token, { tokenType: \"personal\" });\ntry {\n  const result = await client.tasksChecklistsListList({\n    \"path\": {\n      \"team_id\": \"1\",\n      \"task_id\": \"1\"\n    },\n    \"query\": {\n      \"limit\": 20\n    }\n  });\n  console.log(result);\n} catch (error) {\n  if (error instanceof ApiError) console.error(error.status, error.code, error.body);\n  throw error;\n}"
          }
        ],
        "x-shtab-pagination": {
          "limit": "limit",
          "next": "next",
          "offset": "offset",
          "previous": "previous",
          "type": "limit-offset"
        },
        "x-shtab-scope": "tasks.checklists:read",
        "x-shtab-sdk": {
          "python": "tasks_checklists_list_list",
          "typescript": "tasksChecklistsListList"
        },
        "x-shtab-token-types": [
          "personal",
          "team"
        ]
      },
      "parameters": [
        {
          "in": "path",
          "name": "team_id",
          "required": true,
          "type": "string"
        },
        {
          "in": "path",
          "name": "task_id",
          "required": true,
          "type": "string"
        }
      ]
    },
    "/api/tasks/{team_id}/comments/{task_id}/": {
      "get": {
        "description": "Создание, список, редактирование, удаление комментария",
        "operationId": "api_tasks_comments_list",
        "parameters": [
          {
            "default": 20,
            "description": "Number of results to return per page.",
            "in": "query",
            "maximum": 100,
            "minimum": 1,
            "name": "limit",
            "required": false,
            "type": "integer"
          },
          {
            "default": 0,
            "description": "The initial index from which to return the results.",
            "in": "query",
            "minimum": 0,
            "name": "offset",
            "required": false,
            "type": "integer"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "schema": {
              "properties": {
                "next": {
                  "format": "uri",
                  "type": "string",
                  "x-nullable": true
                },
                "previous": {
                  "format": "uri",
                  "type": "string",
                  "x-nullable": true
                },
                "results": {
                  "items": {
                    "$ref": "#/definitions/PublicTaskComment"
                  },
                  "type": "array"
                }
              },
              "required": [
                "results"
              ],
              "type": "object"
            }
          },
          "400": {
            "description": "Параметры или тело запроса не прошли проверку.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "401": {
            "description": "Токен отсутствует или недействителен.",
            "schema": {
              "$ref": "#/definitions/PublicAuthenticationError"
            }
          },
          "402": {
            "description": "Тариф команды не включает запрошенную возможность.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "403": {
            "description": "Токену не выдан нужный грант или у пользователя отсутствуют права доступа.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "404": {
            "description": "Метод недоступен токену или объект отсутствует в доступной области.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "429": {
            "description": "Превышен лимит запросов. Заголовок Retry-After указывает время ожидания в секундах.",
            "headers": {
              "Retry-After": {
                "description": "Секунд до следующей попытки.",
                "type": "integer"
              }
            },
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          }
        },
        "summary": "Получить комментарии к задаче",
        "tags": [
          "tasks"
        ],
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import os\n\nfrom shtab_sdk import ApiError, ShtabClient\n\nclient = ShtabClient(os.environ[\"SHTAB_TOKEN\"], token_type=\"personal\")\ntry:\n    result = client.tasks_comments_list(path={'task_id': '1', 'team_id': '1'}, query={'limit': 20})\n    print(result)\nexcept ApiError as error:\n    print(error.status, error.code, error.body)\n    raise"
          },
          {
            "lang": "TypeScript",
            "source": "import { ApiError, ShtabClient } from \"@shtabapp/sdk\";\n\nconst token = process.env.SHTAB_TOKEN;\nif (!token) throw new Error(\"Set SHTAB_TOKEN\");\nconst client = new ShtabClient(token, { tokenType: \"personal\" });\ntry {\n  const result = await client.tasksCommentsList({\n    \"path\": {\n      \"team_id\": \"1\",\n      \"task_id\": \"1\"\n    },\n    \"query\": {\n      \"limit\": 20\n    }\n  });\n  console.log(result);\n} catch (error) {\n  if (error instanceof ApiError) console.error(error.status, error.code, error.body);\n  throw error;\n}"
          }
        ],
        "x-shtab-pagination": {
          "limit": "limit",
          "next": "next",
          "offset": "offset",
          "previous": "previous",
          "type": "limit-offset"
        },
        "x-shtab-scope": "tasks.comments:read",
        "x-shtab-sdk": {
          "python": "tasks_comments_list",
          "typescript": "tasksCommentsList"
        },
        "x-shtab-token-types": [
          "personal",
          "team"
        ]
      },
      "parameters": [
        {
          "in": "path",
          "name": "team_id",
          "required": true,
          "type": "string"
        },
        {
          "in": "path",
          "name": "task_id",
          "required": true,
          "type": "string"
        }
      ],
      "post": {
        "description": "Создание, список, редактирование, удаление комментария",
        "operationId": "api_tasks_comments_create",
        "parameters": [
          {
            "in": "body",
            "name": "data",
            "required": true,
            "schema": {
              "$ref": "#/definitions/PublicTaskCommentCreate"
            }
          }
        ],
        "responses": {
          "201": {
            "description": "",
            "schema": {
              "$ref": "#/definitions/PublicTaskComment"
            }
          },
          "400": {
            "description": "Параметры или тело запроса не прошли проверку.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "401": {
            "description": "Токен отсутствует или недействителен.",
            "schema": {
              "$ref": "#/definitions/PublicAuthenticationError"
            }
          },
          "402": {
            "description": "Тариф команды не включает запрошенную возможность.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "403": {
            "description": "Токену не выдан нужный грант или у пользователя отсутствуют права доступа.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "404": {
            "description": "Метод недоступен токену или объект отсутствует в доступной области.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "429": {
            "description": "Превышен лимит запросов. Заголовок Retry-After указывает время ожидания в секундах.",
            "headers": {
              "Retry-After": {
                "description": "Секунд до следующей попытки.",
                "type": "integer"
              }
            },
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          }
        },
        "summary": "Добавить комментарий к задаче",
        "tags": [
          "tasks"
        ],
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import os\n\nfrom shtab_sdk import ApiError, ShtabClient\n\nclient = ShtabClient(os.environ[\"SHTAB_TOKEN\"], token_type=\"personal\")\ntry:\n    result = client.tasks_comments_create(path={'task_id': '1', 'team_id': '1'}, body={})\n    print(result)\nexcept ApiError as error:\n    print(error.status, error.code, error.body)\n    raise"
          },
          {
            "lang": "TypeScript",
            "source": "import { ApiError, ShtabClient } from \"@shtabapp/sdk\";\n\nconst token = process.env.SHTAB_TOKEN;\nif (!token) throw new Error(\"Set SHTAB_TOKEN\");\nconst client = new ShtabClient(token, { tokenType: \"personal\" });\ntry {\n  const result = await client.tasksCommentsCreate({\n    \"path\": {\n      \"team_id\": \"1\",\n      \"task_id\": \"1\"\n    },\n    \"body\": {}\n  });\n  console.log(result);\n} catch (error) {\n  if (error instanceof ApiError) console.error(error.status, error.code, error.body);\n  throw error;\n}"
          }
        ],
        "x-shtab-scope": "tasks.comments:write",
        "x-shtab-sdk": {
          "python": "tasks_comments_create",
          "typescript": "tasksCommentsCreate"
        },
        "x-shtab-token-types": [
          "personal",
          "team"
        ]
      }
    },
    "/api/tasks/{team_id}/comments/{task_id}/files/": {
      "parameters": [
        {
          "in": "path",
          "name": "team_id",
          "required": true,
          "type": "string"
        },
        {
          "in": "path",
          "name": "task_id",
          "required": true,
          "type": "string"
        }
      ],
      "post": {
        "description": "Создание, список и удаление файла в комментарии.",
        "operationId": "api_tasks_comments_files_create",
        "parameters": [
          {
            "in": "body",
            "name": "data",
            "required": true,
            "schema": {
              "$ref": "#/definitions/PublicCommentFileCreate"
            }
          }
        ],
        "responses": {
          "201": {
            "description": "",
            "schema": {
              "$ref": "#/definitions/PublicCommentFile"
            }
          },
          "400": {
            "description": "Параметры или тело запроса не прошли проверку.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "401": {
            "description": "Токен отсутствует или недействителен.",
            "schema": {
              "$ref": "#/definitions/PublicAuthenticationError"
            }
          },
          "402": {
            "description": "Тариф команды не включает запрошенную возможность.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "403": {
            "description": "Токену не выдан нужный грант или у пользователя отсутствуют права доступа.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "404": {
            "description": "Метод недоступен токену или объект отсутствует в доступной области.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "429": {
            "description": "Превышен лимит запросов. Заголовок Retry-After указывает время ожидания в секундах.",
            "headers": {
              "Retry-After": {
                "description": "Секунд до следующей попытки.",
                "type": "integer"
              }
            },
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          }
        },
        "summary": "Загрузить файл для комментария к задаче",
        "tags": [
          "tasks"
        ],
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import os\n\nfrom shtab_sdk import ApiError, ShtabClient\n\nclient = ShtabClient(os.environ[\"SHTAB_TOKEN\"], token_type=\"personal\")\ntry:\n    result = client.tasks_comments_files_create(path={'task_id': '1', 'team_id': '1'}, body={})\n    print(result)\nexcept ApiError as error:\n    print(error.status, error.code, error.body)\n    raise"
          },
          {
            "lang": "TypeScript",
            "source": "import { ApiError, ShtabClient } from \"@shtabapp/sdk\";\n\nconst token = process.env.SHTAB_TOKEN;\nif (!token) throw new Error(\"Set SHTAB_TOKEN\");\nconst client = new ShtabClient(token, { tokenType: \"personal\" });\ntry {\n  const result = await client.tasksCommentsFilesCreate({\n    \"path\": {\n      \"team_id\": \"1\",\n      \"task_id\": \"1\"\n    },\n    \"body\": {}\n  });\n  console.log(result);\n} catch (error) {\n  if (error instanceof ApiError) console.error(error.status, error.code, error.body);\n  throw error;\n}"
          }
        ],
        "x-shtab-scope": "tasks.comments:write",
        "x-shtab-sdk": {
          "python": "tasks_comments_files_create",
          "typescript": "tasksCommentsFilesCreate"
        },
        "x-shtab-token-types": [
          "personal",
          "team"
        ]
      }
    },
    "/api/tasks/{team_id}/comments/{task_id}/files/{id}/": {
      "delete": {
        "description": "Создание, список и удаление файла в комментарии.",
        "operationId": "api_tasks_comments_files_delete",
        "parameters": [],
        "responses": {
          "204": {
            "description": ""
          },
          "400": {
            "description": "Параметры или тело запроса не прошли проверку.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "401": {
            "description": "Токен отсутствует или недействителен.",
            "schema": {
              "$ref": "#/definitions/PublicAuthenticationError"
            }
          },
          "402": {
            "description": "Тариф команды не включает запрошенную возможность.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "403": {
            "description": "Токену не выдан нужный грант или у пользователя отсутствуют права доступа.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "404": {
            "description": "Метод недоступен токену или объект отсутствует в доступной области.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "429": {
            "description": "Превышен лимит запросов. Заголовок Retry-After указывает время ожидания в секундах.",
            "headers": {
              "Retry-After": {
                "description": "Секунд до следующей попытки.",
                "type": "integer"
              }
            },
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          }
        },
        "summary": "Удалить файл комментария к задаче",
        "tags": [
          "tasks"
        ],
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import os\n\nfrom shtab_sdk import ApiError, ShtabClient\n\nclient = ShtabClient(os.environ[\"SHTAB_TOKEN\"], token_type=\"personal\")\ntry:\n    result = client.tasks_comments_files_delete(path={'id': '00000000-0000-4000-8000-000000000001',\n     'task_id': '1',\n     'team_id': '1'})\n    print(result)\nexcept ApiError as error:\n    print(error.status, error.code, error.body)\n    raise"
          },
          {
            "lang": "TypeScript",
            "source": "import { ApiError, ShtabClient } from \"@shtabapp/sdk\";\n\nconst token = process.env.SHTAB_TOKEN;\nif (!token) throw new Error(\"Set SHTAB_TOKEN\");\nconst client = new ShtabClient(token, { tokenType: \"personal\" });\ntry {\n  const result = await client.tasksCommentsFilesDelete({\n    \"path\": {\n      \"team_id\": \"1\",\n      \"task_id\": \"1\",\n      \"id\": \"00000000-0000-4000-8000-000000000001\"\n    }\n  });\n  console.log(result);\n} catch (error) {\n  if (error instanceof ApiError) console.error(error.status, error.code, error.body);\n  throw error;\n}"
          }
        ],
        "x-shtab-scope": "tasks.comments:write",
        "x-shtab-sdk": {
          "python": "tasks_comments_files_delete",
          "typescript": "tasksCommentsFilesDelete"
        },
        "x-shtab-token-types": [
          "personal",
          "team"
        ]
      },
      "parameters": [
        {
          "in": "path",
          "name": "team_id",
          "required": true,
          "type": "string"
        },
        {
          "in": "path",
          "name": "task_id",
          "required": true,
          "type": "string"
        },
        {
          "description": "A UUID string identifying this Файл комментария.",
          "format": "uuid",
          "in": "path",
          "name": "id",
          "required": true,
          "type": "string"
        }
      ]
    },
    "/api/tasks/{team_id}/comments/{task_id}/pinned/": {
      "get": {
        "description": "Создание, список, редактирование, удаление комментария",
        "operationId": "api_tasks_comments_pinned_list",
        "parameters": [
          {
            "default": 20,
            "description": "Number of results to return per page.",
            "in": "query",
            "maximum": 100,
            "minimum": 1,
            "name": "limit",
            "required": false,
            "type": "integer"
          },
          {
            "default": 0,
            "description": "The initial index from which to return the results.",
            "in": "query",
            "minimum": 0,
            "name": "offset",
            "required": false,
            "type": "integer"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "schema": {
              "properties": {
                "next": {
                  "format": "uri",
                  "type": "string",
                  "x-nullable": true
                },
                "previous": {
                  "format": "uri",
                  "type": "string",
                  "x-nullable": true
                },
                "results": {
                  "items": {
                    "$ref": "#/definitions/PublicTaskComment"
                  },
                  "type": "array"
                }
              },
              "required": [
                "results"
              ],
              "type": "object"
            }
          },
          "400": {
            "description": "Параметры или тело запроса не прошли проверку.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "401": {
            "description": "Токен отсутствует или недействителен.",
            "schema": {
              "$ref": "#/definitions/PublicAuthenticationError"
            }
          },
          "402": {
            "description": "Тариф команды не включает запрошенную возможность.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "403": {
            "description": "Токену не выдан нужный грант или у пользователя отсутствуют права доступа.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "404": {
            "description": "Метод недоступен токену или объект отсутствует в доступной области.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "429": {
            "description": "Превышен лимит запросов. Заголовок Retry-After указывает время ожидания в секундах.",
            "headers": {
              "Retry-After": {
                "description": "Секунд до следующей попытки.",
                "type": "integer"
              }
            },
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          }
        },
        "summary": "Получить закреплённые комментарии к задаче",
        "tags": [
          "tasks"
        ],
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import os\n\nfrom shtab_sdk import ApiError, ShtabClient\n\nclient = ShtabClient(os.environ[\"SHTAB_TOKEN\"], token_type=\"personal\")\ntry:\n    result = client.tasks_comments_pinned_list(path={'task_id': '1', 'team_id': '1'}, query={'limit': 20})\n    print(result)\nexcept ApiError as error:\n    print(error.status, error.code, error.body)\n    raise"
          },
          {
            "lang": "TypeScript",
            "source": "import { ApiError, ShtabClient } from \"@shtabapp/sdk\";\n\nconst token = process.env.SHTAB_TOKEN;\nif (!token) throw new Error(\"Set SHTAB_TOKEN\");\nconst client = new ShtabClient(token, { tokenType: \"personal\" });\ntry {\n  const result = await client.tasksCommentsPinnedList({\n    \"path\": {\n      \"team_id\": \"1\",\n      \"task_id\": \"1\"\n    },\n    \"query\": {\n      \"limit\": 20\n    }\n  });\n  console.log(result);\n} catch (error) {\n  if (error instanceof ApiError) console.error(error.status, error.code, error.body);\n  throw error;\n}"
          }
        ],
        "x-shtab-pagination": {
          "limit": "limit",
          "next": "next",
          "offset": "offset",
          "previous": "previous",
          "type": "limit-offset"
        },
        "x-shtab-scope": "tasks.comments:read",
        "x-shtab-sdk": {
          "python": "tasks_comments_pinned_list",
          "typescript": "tasksCommentsPinnedList"
        },
        "x-shtab-token-types": [
          "personal",
          "team"
        ]
      },
      "parameters": [
        {
          "in": "path",
          "name": "team_id",
          "required": true,
          "type": "string"
        },
        {
          "in": "path",
          "name": "task_id",
          "required": true,
          "type": "string"
        }
      ]
    },
    "/api/tasks/{team_id}/comments/{task_id}/{task_comment_id}/": {
      "delete": {
        "description": "Создание, список, редактирование, удаление комментария",
        "operationId": "api_tasks_comments_delete",
        "parameters": [],
        "responses": {
          "204": {
            "description": ""
          },
          "400": {
            "description": "Параметры или тело запроса не прошли проверку.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "401": {
            "description": "Токен отсутствует или недействителен.",
            "schema": {
              "$ref": "#/definitions/PublicAuthenticationError"
            }
          },
          "402": {
            "description": "Тариф команды не включает запрошенную возможность.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "403": {
            "description": "Токену не выдан нужный грант или у пользователя отсутствуют права доступа.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "404": {
            "description": "Метод недоступен токену или объект отсутствует в доступной области.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "429": {
            "description": "Превышен лимит запросов. Заголовок Retry-After указывает время ожидания в секундах.",
            "headers": {
              "Retry-After": {
                "description": "Секунд до следующей попытки.",
                "type": "integer"
              }
            },
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          }
        },
        "summary": "Удалить комментарий к задаче",
        "tags": [
          "tasks"
        ],
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import os\n\nfrom shtab_sdk import ApiError, ShtabClient\n\nclient = ShtabClient(os.environ[\"SHTAB_TOKEN\"], token_type=\"personal\")\ntry:\n    result = client.tasks_comments_delete(path={'task_comment_id': '1', 'task_id': '1', 'team_id': '1'})\n    print(result)\nexcept ApiError as error:\n    print(error.status, error.code, error.body)\n    raise"
          },
          {
            "lang": "TypeScript",
            "source": "import { ApiError, ShtabClient } from \"@shtabapp/sdk\";\n\nconst token = process.env.SHTAB_TOKEN;\nif (!token) throw new Error(\"Set SHTAB_TOKEN\");\nconst client = new ShtabClient(token, { tokenType: \"personal\" });\ntry {\n  const result = await client.tasksCommentsDelete({\n    \"path\": {\n      \"team_id\": \"1\",\n      \"task_id\": \"1\",\n      \"task_comment_id\": \"1\"\n    }\n  });\n  console.log(result);\n} catch (error) {\n  if (error instanceof ApiError) console.error(error.status, error.code, error.body);\n  throw error;\n}"
          }
        ],
        "x-shtab-scope": "tasks.comments:write",
        "x-shtab-sdk": {
          "python": "tasks_comments_delete",
          "typescript": "tasksCommentsDelete"
        },
        "x-shtab-token-types": [
          "personal",
          "team"
        ]
      },
      "get": {
        "description": "Создание, список, редактирование, удаление комментария",
        "operationId": "api_tasks_comments_read",
        "parameters": [
          {
            "default": 20,
            "description": "Number of results to return per page.",
            "in": "query",
            "maximum": 100,
            "minimum": 1,
            "name": "limit",
            "required": false,
            "type": "integer"
          },
          {
            "default": 0,
            "description": "The initial index from which to return the results.",
            "in": "query",
            "minimum": 0,
            "name": "offset",
            "required": false,
            "type": "integer"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "schema": {
              "properties": {
                "next": {
                  "format": "uri",
                  "type": "string",
                  "x-nullable": true
                },
                "previous": {
                  "format": "uri",
                  "type": "string",
                  "x-nullable": true
                },
                "results": {
                  "items": {
                    "$ref": "#/definitions/PublicTaskComment"
                  },
                  "type": "array"
                }
              },
              "required": [
                "results"
              ],
              "type": "object"
            }
          },
          "400": {
            "description": "Параметры или тело запроса не прошли проверку.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "401": {
            "description": "Токен отсутствует или недействителен.",
            "schema": {
              "$ref": "#/definitions/PublicAuthenticationError"
            }
          },
          "402": {
            "description": "Тариф команды не включает запрошенную возможность.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "403": {
            "description": "Токену не выдан нужный грант или у пользователя отсутствуют права доступа.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "404": {
            "description": "Метод недоступен токену или объект отсутствует в доступной области.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "429": {
            "description": "Превышен лимит запросов. Заголовок Retry-After указывает время ожидания в секундах.",
            "headers": {
              "Retry-After": {
                "description": "Секунд до следующей попытки.",
                "type": "integer"
              }
            },
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          }
        },
        "summary": "Получить закреплённые комментарии к задаче",
        "tags": [
          "tasks"
        ],
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import os\n\nfrom shtab_sdk import ApiError, ShtabClient\n\nclient = ShtabClient(os.environ[\"SHTAB_TOKEN\"], token_type=\"personal\")\ntry:\n    result = client.tasks_comments_read(path={'task_comment_id': '1', 'task_id': '1', 'team_id': '1'}, query={'limit': 20})\n    print(result)\nexcept ApiError as error:\n    print(error.status, error.code, error.body)\n    raise"
          },
          {
            "lang": "TypeScript",
            "source": "import { ApiError, ShtabClient } from \"@shtabapp/sdk\";\n\nconst token = process.env.SHTAB_TOKEN;\nif (!token) throw new Error(\"Set SHTAB_TOKEN\");\nconst client = new ShtabClient(token, { tokenType: \"personal\" });\ntry {\n  const result = await client.tasksCommentsRead({\n    \"path\": {\n      \"team_id\": \"1\",\n      \"task_id\": \"1\",\n      \"task_comment_id\": \"1\"\n    },\n    \"query\": {\n      \"limit\": 20\n    }\n  });\n  console.log(result);\n} catch (error) {\n  if (error instanceof ApiError) console.error(error.status, error.code, error.body);\n  throw error;\n}"
          }
        ],
        "x-shtab-pagination": {
          "limit": "limit",
          "next": "next",
          "offset": "offset",
          "previous": "previous",
          "type": "limit-offset"
        },
        "x-shtab-scope": "tasks.comments:read",
        "x-shtab-sdk": {
          "python": "tasks_comments_read",
          "typescript": "tasksCommentsRead"
        },
        "x-shtab-token-types": [
          "personal",
          "team"
        ]
      },
      "parameters": [
        {
          "in": "path",
          "name": "team_id",
          "required": true,
          "type": "string"
        },
        {
          "in": "path",
          "name": "task_id",
          "required": true,
          "type": "string"
        },
        {
          "in": "path",
          "name": "task_comment_id",
          "required": true,
          "type": "string"
        }
      ],
      "patch": {
        "description": "Создание, список, редактирование, удаление комментария",
        "operationId": "api_tasks_comments_partial_update",
        "parameters": [
          {
            "in": "body",
            "name": "data",
            "required": true,
            "schema": {
              "$ref": "#/definitions/PublicTaskCommentUpdate"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "schema": {
              "$ref": "#/definitions/PublicTaskComment"
            }
          },
          "400": {
            "description": "Параметры или тело запроса не прошли проверку.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "401": {
            "description": "Токен отсутствует или недействителен.",
            "schema": {
              "$ref": "#/definitions/PublicAuthenticationError"
            }
          },
          "402": {
            "description": "Тариф команды не включает запрошенную возможность.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "403": {
            "description": "Токену не выдан нужный грант или у пользователя отсутствуют права доступа.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "404": {
            "description": "Метод недоступен токену или объект отсутствует в доступной области.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "429": {
            "description": "Превышен лимит запросов. Заголовок Retry-After указывает время ожидания в секундах.",
            "headers": {
              "Retry-After": {
                "description": "Секунд до следующей попытки.",
                "type": "integer"
              }
            },
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          }
        },
        "summary": "Частично обновить комментарий к задаче",
        "tags": [
          "tasks"
        ],
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import os\n\nfrom shtab_sdk import ApiError, ShtabClient\n\nclient = ShtabClient(os.environ[\"SHTAB_TOKEN\"], token_type=\"personal\")\ntry:\n    result = client.tasks_comments_partial_update(path={'task_comment_id': '1', 'task_id': '1', 'team_id': '1'}, body={})\n    print(result)\nexcept ApiError as error:\n    print(error.status, error.code, error.body)\n    raise"
          },
          {
            "lang": "TypeScript",
            "source": "import { ApiError, ShtabClient } from \"@shtabapp/sdk\";\n\nconst token = process.env.SHTAB_TOKEN;\nif (!token) throw new Error(\"Set SHTAB_TOKEN\");\nconst client = new ShtabClient(token, { tokenType: \"personal\" });\ntry {\n  const result = await client.tasksCommentsPartialUpdate({\n    \"path\": {\n      \"team_id\": \"1\",\n      \"task_id\": \"1\",\n      \"task_comment_id\": \"1\"\n    },\n    \"body\": {}\n  });\n  console.log(result);\n} catch (error) {\n  if (error instanceof ApiError) console.error(error.status, error.code, error.body);\n  throw error;\n}"
          }
        ],
        "x-shtab-scope": "tasks.comments:write",
        "x-shtab-sdk": {
          "python": "tasks_comments_partial_update",
          "typescript": "tasksCommentsPartialUpdate"
        },
        "x-shtab-token-types": [
          "personal",
          "team"
        ]
      },
      "put": {
        "description": "Создание, список, редактирование, удаление комментария",
        "operationId": "api_tasks_comments_update",
        "parameters": [
          {
            "in": "body",
            "name": "data",
            "required": true,
            "schema": {
              "$ref": "#/definitions/PublicTaskCommentUpdate"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "schema": {
              "$ref": "#/definitions/PublicTaskComment"
            }
          },
          "400": {
            "description": "Параметры или тело запроса не прошли проверку.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "401": {
            "description": "Токен отсутствует или недействителен.",
            "schema": {
              "$ref": "#/definitions/PublicAuthenticationError"
            }
          },
          "402": {
            "description": "Тариф команды не включает запрошенную возможность.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "403": {
            "description": "Токену не выдан нужный грант или у пользователя отсутствуют права доступа.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "404": {
            "description": "Метод недоступен токену или объект отсутствует в доступной области.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "429": {
            "description": "Превышен лимит запросов. Заголовок Retry-After указывает время ожидания в секундах.",
            "headers": {
              "Retry-After": {
                "description": "Секунд до следующей попытки.",
                "type": "integer"
              }
            },
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          }
        },
        "summary": "Обновить комментарий к задаче",
        "tags": [
          "tasks"
        ],
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import os\n\nfrom shtab_sdk import ApiError, ShtabClient\n\nclient = ShtabClient(os.environ[\"SHTAB_TOKEN\"], token_type=\"personal\")\ntry:\n    result = client.tasks_comments_update(path={'task_comment_id': '1', 'task_id': '1', 'team_id': '1'}, body={})\n    print(result)\nexcept ApiError as error:\n    print(error.status, error.code, error.body)\n    raise"
          },
          {
            "lang": "TypeScript",
            "source": "import { ApiError, ShtabClient } from \"@shtabapp/sdk\";\n\nconst token = process.env.SHTAB_TOKEN;\nif (!token) throw new Error(\"Set SHTAB_TOKEN\");\nconst client = new ShtabClient(token, { tokenType: \"personal\" });\ntry {\n  const result = await client.tasksCommentsUpdate({\n    \"path\": {\n      \"team_id\": \"1\",\n      \"task_id\": \"1\",\n      \"task_comment_id\": \"1\"\n    },\n    \"body\": {}\n  });\n  console.log(result);\n} catch (error) {\n  if (error instanceof ApiError) console.error(error.status, error.code, error.body);\n  throw error;\n}"
          }
        ],
        "x-shtab-scope": "tasks.comments:write",
        "x-shtab-sdk": {
          "python": "tasks_comments_update",
          "typescript": "tasksCommentsUpdate"
        },
        "x-shtab-token-types": [
          "personal",
          "team"
        ]
      }
    },
    "/api/tasks/{team_id}/create/": {
      "parameters": [
        {
          "in": "path",
          "name": "team_id",
          "required": true,
          "type": "string"
        }
      ],
      "post": {
        "description": "Создание задачи.",
        "operationId": "api_tasks_create_create",
        "parameters": [
          {
            "in": "body",
            "name": "data",
            "required": true,
            "schema": {
              "$ref": "#/definitions/PublicTaskCreate"
            }
          }
        ],
        "responses": {
          "201": {
            "description": "",
            "schema": {
              "$ref": "#/definitions/PublicTask"
            }
          },
          "400": {
            "description": "Параметры или тело запроса не прошли проверку.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "401": {
            "description": "Токен отсутствует или недействителен.",
            "schema": {
              "$ref": "#/definitions/PublicAuthenticationError"
            }
          },
          "402": {
            "description": "Тариф команды не включает запрошенную возможность.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "403": {
            "description": "Токену не выдан нужный грант или у пользователя отсутствуют права доступа.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "404": {
            "description": "Метод недоступен токену или объект отсутствует в доступной области.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "429": {
            "description": "Превышен лимит запросов. Заголовок Retry-After указывает время ожидания в секундах.",
            "headers": {
              "Retry-After": {
                "description": "Секунд до следующей попытки.",
                "type": "integer"
              }
            },
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          }
        },
        "summary": "Создать задачу",
        "tags": [
          "tasks"
        ],
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import os\n\nfrom shtab_sdk import ApiError, ShtabClient\n\nclient = ShtabClient(os.environ[\"SHTAB_TOKEN\"], token_type=\"personal\")\ntry:\n    result = client.tasks_create_create(path={'team_id': '1'}, body={'datasource': 1, 'name': 'пример', 'type': 1})\n    print(result)\nexcept ApiError as error:\n    print(error.status, error.code, error.body)\n    raise"
          },
          {
            "lang": "TypeScript",
            "source": "import { ApiError, ShtabClient } from \"@shtabapp/sdk\";\n\nconst token = process.env.SHTAB_TOKEN;\nif (!token) throw new Error(\"Set SHTAB_TOKEN\");\nconst client = new ShtabClient(token, { tokenType: \"personal\" });\ntry {\n  const result = await client.tasksCreateCreate({\n    \"path\": {\n      \"team_id\": \"1\"\n    },\n    \"body\": {\n      \"name\": \"пример\",\n      \"datasource\": 1,\n      \"type\": 1\n    }\n  });\n  console.log(result);\n} catch (error) {\n  if (error instanceof ApiError) console.error(error.status, error.code, error.body);\n  throw error;\n}"
          }
        ],
        "x-shtab-scope": "tasks:write",
        "x-shtab-sdk": {
          "python": "tasks_create_create",
          "typescript": "tasksCreateCreate"
        },
        "x-shtab-token-types": [
          "personal",
          "team"
        ]
      }
    },
    "/api/tasks/{team_id}/customfields/{task_id}/create/": {
      "parameters": [
        {
          "in": "path",
          "name": "team_id",
          "required": true,
          "type": "string"
        },
        {
          "in": "path",
          "name": "task_id",
          "required": true,
          "type": "string"
        }
      ],
      "post": {
        "description": "",
        "operationId": "api_tasks_customfields_create_create",
        "parameters": [
          {
            "in": "body",
            "name": "data",
            "required": true,
            "schema": {
              "$ref": "#/definitions/PublicTaskCustomFieldValueCreate"
            }
          }
        ],
        "responses": {
          "201": {
            "description": "",
            "schema": {
              "$ref": "#/definitions/PublicTaskCustomFieldValue"
            }
          },
          "400": {
            "description": "Параметры или тело запроса не прошли проверку.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "401": {
            "description": "Токен отсутствует или недействителен.",
            "schema": {
              "$ref": "#/definitions/PublicAuthenticationError"
            }
          },
          "402": {
            "description": "Тариф команды не включает запрошенную возможность.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "403": {
            "description": "Токену не выдан нужный грант или у пользователя отсутствуют права доступа.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "404": {
            "description": "Метод недоступен токену или объект отсутствует в доступной области.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "429": {
            "description": "Превышен лимит запросов. Заголовок Retry-After указывает время ожидания в секундах.",
            "headers": {
              "Retry-After": {
                "description": "Секунд до следующей попытки.",
                "type": "integer"
              }
            },
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          }
        },
        "summary": "Добавить значение пользовательского поля задачи",
        "tags": [
          "tasks"
        ],
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import os\n\nfrom shtab_sdk import ApiError, ShtabClient\n\nclient = ShtabClient(os.environ[\"SHTAB_TOKEN\"], token_type=\"personal\")\ntry:\n    result = client.tasks_customfields_create_create(path={'task_id': '1', 'team_id': '1'}, body={'field': 'пример'})\n    print(result)\nexcept ApiError as error:\n    print(error.status, error.code, error.body)\n    raise"
          },
          {
            "lang": "TypeScript",
            "source": "import { ApiError, ShtabClient } from \"@shtabapp/sdk\";\n\nconst token = process.env.SHTAB_TOKEN;\nif (!token) throw new Error(\"Set SHTAB_TOKEN\");\nconst client = new ShtabClient(token, { tokenType: \"personal\" });\ntry {\n  const result = await client.tasksCustomfieldsCreateCreate({\n    \"path\": {\n      \"team_id\": \"1\",\n      \"task_id\": \"1\"\n    },\n    \"body\": {\n      \"field\": \"пример\"\n    }\n  });\n  console.log(result);\n} catch (error) {\n  if (error instanceof ApiError) console.error(error.status, error.code, error.body);\n  throw error;\n}"
          }
        ],
        "x-shtab-scope": "tasks.customfields:write",
        "x-shtab-sdk": {
          "python": "tasks_customfields_create_create",
          "typescript": "tasksCustomfieldsCreateCreate"
        },
        "x-shtab-token-types": [
          "personal",
          "team"
        ]
      }
    },
    "/api/tasks/{team_id}/customfields/{task_id}/delete/{id}/": {
      "delete": {
        "description": "",
        "operationId": "api_tasks_customfields_delete_delete",
        "parameters": [],
        "responses": {
          "204": {
            "description": ""
          },
          "400": {
            "description": "Параметры или тело запроса не прошли проверку.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "401": {
            "description": "Токен отсутствует или недействителен.",
            "schema": {
              "$ref": "#/definitions/PublicAuthenticationError"
            }
          },
          "402": {
            "description": "Тариф команды не включает запрошенную возможность.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "403": {
            "description": "Токену не выдан нужный грант или у пользователя отсутствуют права доступа.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "404": {
            "description": "Метод недоступен токену или объект отсутствует в доступной области.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "429": {
            "description": "Превышен лимит запросов. Заголовок Retry-After указывает время ожидания в секундах.",
            "headers": {
              "Retry-After": {
                "description": "Секунд до следующей попытки.",
                "type": "integer"
              }
            },
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          }
        },
        "summary": "Удалить значение пользовательского поля задачи",
        "tags": [
          "tasks"
        ],
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import os\n\nfrom shtab_sdk import ApiError, ShtabClient\n\nclient = ShtabClient(os.environ[\"SHTAB_TOKEN\"], token_type=\"personal\")\ntry:\n    result = client.tasks_customfields_delete_delete(path={'id': 1, 'task_id': '1', 'team_id': '1'})\n    print(result)\nexcept ApiError as error:\n    print(error.status, error.code, error.body)\n    raise"
          },
          {
            "lang": "TypeScript",
            "source": "import { ApiError, ShtabClient } from \"@shtabapp/sdk\";\n\nconst token = process.env.SHTAB_TOKEN;\nif (!token) throw new Error(\"Set SHTAB_TOKEN\");\nconst client = new ShtabClient(token, { tokenType: \"personal\" });\ntry {\n  const result = await client.tasksCustomfieldsDeleteDelete({\n    \"path\": {\n      \"team_id\": \"1\",\n      \"task_id\": \"1\",\n      \"id\": 1\n    }\n  });\n  console.log(result);\n} catch (error) {\n  if (error instanceof ApiError) console.error(error.status, error.code, error.body);\n  throw error;\n}"
          }
        ],
        "x-shtab-scope": "tasks.customfields:write",
        "x-shtab-sdk": {
          "python": "tasks_customfields_delete_delete",
          "typescript": "tasksCustomfieldsDeleteDelete"
        },
        "x-shtab-token-types": [
          "personal",
          "team"
        ]
      },
      "parameters": [
        {
          "in": "path",
          "name": "team_id",
          "required": true,
          "type": "string"
        },
        {
          "in": "path",
          "name": "task_id",
          "required": true,
          "type": "string"
        },
        {
          "description": "A unique integer value identifying this Значение пользовательских полей в задаче.",
          "in": "path",
          "name": "id",
          "required": true,
          "type": "integer"
        }
      ]
    },
    "/api/tasks/{team_id}/customfields/{task_id}/update/{id}/": {
      "parameters": [
        {
          "in": "path",
          "name": "team_id",
          "required": true,
          "type": "string"
        },
        {
          "in": "path",
          "name": "task_id",
          "required": true,
          "type": "string"
        },
        {
          "description": "A unique integer value identifying this Значение пользовательских полей в задаче.",
          "in": "path",
          "name": "id",
          "required": true,
          "type": "integer"
        }
      ],
      "patch": {
        "description": "",
        "operationId": "api_tasks_customfields_update_partial_update",
        "parameters": [
          {
            "in": "body",
            "name": "data",
            "required": true,
            "schema": {
              "$ref": "#/definitions/PublicTaskCustomFieldValueUpdate"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "schema": {
              "$ref": "#/definitions/PublicTaskCustomFieldValue"
            }
          },
          "400": {
            "description": "Параметры или тело запроса не прошли проверку.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "401": {
            "description": "Токен отсутствует или недействителен.",
            "schema": {
              "$ref": "#/definitions/PublicAuthenticationError"
            }
          },
          "402": {
            "description": "Тариф команды не включает запрошенную возможность.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "403": {
            "description": "Токену не выдан нужный грант или у пользователя отсутствуют права доступа.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "404": {
            "description": "Метод недоступен токену или объект отсутствует в доступной области.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "429": {
            "description": "Превышен лимит запросов. Заголовок Retry-After указывает время ожидания в секундах.",
            "headers": {
              "Retry-After": {
                "description": "Секунд до следующей попытки.",
                "type": "integer"
              }
            },
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          }
        },
        "summary": "Изменить значение пользовательского поля задачи",
        "tags": [
          "tasks"
        ],
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import os\n\nfrom shtab_sdk import ApiError, ShtabClient\n\nclient = ShtabClient(os.environ[\"SHTAB_TOKEN\"], token_type=\"personal\")\ntry:\n    result = client.tasks_customfields_update_partial_update(path={'id': 1, 'task_id': '1', 'team_id': '1'}, body={})\n    print(result)\nexcept ApiError as error:\n    print(error.status, error.code, error.body)\n    raise"
          },
          {
            "lang": "TypeScript",
            "source": "import { ApiError, ShtabClient } from \"@shtabapp/sdk\";\n\nconst token = process.env.SHTAB_TOKEN;\nif (!token) throw new Error(\"Set SHTAB_TOKEN\");\nconst client = new ShtabClient(token, { tokenType: \"personal\" });\ntry {\n  const result = await client.tasksCustomfieldsUpdatePartialUpdate({\n    \"path\": {\n      \"team_id\": \"1\",\n      \"task_id\": \"1\",\n      \"id\": 1\n    },\n    \"body\": {}\n  });\n  console.log(result);\n} catch (error) {\n  if (error instanceof ApiError) console.error(error.status, error.code, error.body);\n  throw error;\n}"
          }
        ],
        "x-shtab-scope": "tasks.customfields:write",
        "x-shtab-sdk": {
          "python": "tasks_customfields_update_partial_update",
          "typescript": "tasksCustomfieldsUpdatePartialUpdate"
        },
        "x-shtab-token-types": [
          "personal",
          "team"
        ]
      }
    },
    "/api/tasks/{team_id}/delete/{task_id}/": {
      "delete": {
        "description": "Удаление задачи (soft delete).",
        "operationId": "api_tasks_delete_delete",
        "parameters": [],
        "responses": {
          "204": {
            "description": ""
          },
          "400": {
            "description": "Параметры или тело запроса не прошли проверку.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "401": {
            "description": "Токен отсутствует или недействителен.",
            "schema": {
              "$ref": "#/definitions/PublicAuthenticationError"
            }
          },
          "402": {
            "description": "Тариф команды не включает запрошенную возможность.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "403": {
            "description": "Токену не выдан нужный грант или у пользователя отсутствуют права доступа.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "404": {
            "description": "Метод недоступен токену или объект отсутствует в доступной области.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "429": {
            "description": "Превышен лимит запросов. Заголовок Retry-After указывает время ожидания в секундах.",
            "headers": {
              "Retry-After": {
                "description": "Секунд до следующей попытки.",
                "type": "integer"
              }
            },
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          }
        },
        "summary": "Удалить задачу",
        "tags": [
          "tasks"
        ],
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import os\n\nfrom shtab_sdk import ApiError, ShtabClient\n\nclient = ShtabClient(os.environ[\"SHTAB_TOKEN\"], token_type=\"personal\")\ntry:\n    result = client.tasks_delete_delete(path={'task_id': '1', 'team_id': '1'})\n    print(result)\nexcept ApiError as error:\n    print(error.status, error.code, error.body)\n    raise"
          },
          {
            "lang": "TypeScript",
            "source": "import { ApiError, ShtabClient } from \"@shtabapp/sdk\";\n\nconst token = process.env.SHTAB_TOKEN;\nif (!token) throw new Error(\"Set SHTAB_TOKEN\");\nconst client = new ShtabClient(token, { tokenType: \"personal\" });\ntry {\n  const result = await client.tasksDeleteDelete({\n    \"path\": {\n      \"team_id\": \"1\",\n      \"task_id\": \"1\"\n    }\n  });\n  console.log(result);\n} catch (error) {\n  if (error instanceof ApiError) console.error(error.status, error.code, error.body);\n  throw error;\n}"
          }
        ],
        "x-shtab-scope": "tasks:write",
        "x-shtab-sdk": {
          "python": "tasks_delete_delete",
          "typescript": "tasksDeleteDelete"
        },
        "x-shtab-token-types": [
          "personal",
          "team"
        ]
      },
      "parameters": [
        {
          "in": "path",
          "name": "team_id",
          "required": true,
          "type": "string"
        },
        {
          "in": "path",
          "name": "task_id",
          "required": true,
          "type": "string"
        }
      ]
    },
    "/api/tasks/{team_id}/detail/{task_id}/": {
      "get": {
        "description": "Детальная информация о задаче.",
        "operationId": "api_tasks_detail_read",
        "parameters": [],
        "responses": {
          "200": {
            "description": "",
            "schema": {
              "$ref": "#/definitions/PublicTaskDetail"
            }
          },
          "400": {
            "description": "Параметры или тело запроса не прошли проверку.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "401": {
            "description": "Токен отсутствует или недействителен.",
            "schema": {
              "$ref": "#/definitions/PublicAuthenticationError"
            }
          },
          "402": {
            "description": "Тариф команды не включает запрошенную возможность.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "403": {
            "description": "Токену не выдан нужный грант или у пользователя отсутствуют права доступа.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "404": {
            "description": "Метод недоступен токену или объект отсутствует в доступной области.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "429": {
            "description": "Превышен лимит запросов. Заголовок Retry-After указывает время ожидания в секундах.",
            "headers": {
              "Retry-After": {
                "description": "Секунд до следующей попытки.",
                "type": "integer"
              }
            },
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          }
        },
        "summary": "Получить сведения о задаче",
        "tags": [
          "tasks"
        ],
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import os\n\nfrom shtab_sdk import ApiError, ShtabClient\n\nclient = ShtabClient(os.environ[\"SHTAB_TOKEN\"], token_type=\"personal\")\ntry:\n    result = client.tasks_detail_read(path={'task_id': '1', 'team_id': '1'})\n    print(result)\nexcept ApiError as error:\n    print(error.status, error.code, error.body)\n    raise"
          },
          {
            "lang": "TypeScript",
            "source": "import { ApiError, ShtabClient } from \"@shtabapp/sdk\";\n\nconst token = process.env.SHTAB_TOKEN;\nif (!token) throw new Error(\"Set SHTAB_TOKEN\");\nconst client = new ShtabClient(token, { tokenType: \"personal\" });\ntry {\n  const result = await client.tasksDetailRead({\n    \"path\": {\n      \"team_id\": \"1\",\n      \"task_id\": \"1\"\n    }\n  });\n  console.log(result);\n} catch (error) {\n  if (error instanceof ApiError) console.error(error.status, error.code, error.body);\n  throw error;\n}"
          }
        ],
        "x-shtab-scope": "tasks:read",
        "x-shtab-sdk": {
          "python": "tasks_detail_read",
          "typescript": "tasksDetailRead"
        },
        "x-shtab-token-types": [
          "personal",
          "team"
        ]
      },
      "parameters": [
        {
          "in": "path",
          "name": "team_id",
          "required": true,
          "type": "string"
        },
        {
          "in": "path",
          "name": "task_id",
          "required": true,
          "type": "string"
        }
      ]
    },
    "/api/tasks/{team_id}/edit/{task_id}/": {
      "parameters": [
        {
          "in": "path",
          "name": "team_id",
          "required": true,
          "type": "string"
        },
        {
          "in": "path",
          "name": "task_id",
          "required": true,
          "type": "string"
        }
      ],
      "patch": {
        "description": "PUT - для полного редактирования, все поля\nPATCH - для частичного обновления, не все поля обязательны",
        "operationId": "api_tasks_edit_partial_update",
        "parameters": [
          {
            "in": "body",
            "name": "data",
            "required": true,
            "schema": {
              "$ref": "#/definitions/PublicTaskUpdate"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "schema": {
              "$ref": "#/definitions/PublicTask"
            }
          },
          "400": {
            "description": "Параметры или тело запроса не прошли проверку.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "401": {
            "description": "Токен отсутствует или недействителен.",
            "schema": {
              "$ref": "#/definitions/PublicAuthenticationError"
            }
          },
          "402": {
            "description": "Тариф команды не включает запрошенную возможность.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "403": {
            "description": "Токену не выдан нужный грант или у пользователя отсутствуют права доступа.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "404": {
            "description": "Метод недоступен токену или объект отсутствует в доступной области.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "429": {
            "description": "Превышен лимит запросов. Заголовок Retry-After указывает время ожидания в секундах.",
            "headers": {
              "Retry-After": {
                "description": "Секунд до следующей попытки.",
                "type": "integer"
              }
            },
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          }
        },
        "summary": "Изменить задачу",
        "tags": [
          "tasks"
        ],
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import os\n\nfrom shtab_sdk import ApiError, ShtabClient\n\nclient = ShtabClient(os.environ[\"SHTAB_TOKEN\"], token_type=\"personal\")\ntry:\n    result = client.tasks_edit_partial_update(path={'task_id': '1', 'team_id': '1'}, body={})\n    print(result)\nexcept ApiError as error:\n    print(error.status, error.code, error.body)\n    raise"
          },
          {
            "lang": "TypeScript",
            "source": "import { ApiError, ShtabClient } from \"@shtabapp/sdk\";\n\nconst token = process.env.SHTAB_TOKEN;\nif (!token) throw new Error(\"Set SHTAB_TOKEN\");\nconst client = new ShtabClient(token, { tokenType: \"personal\" });\ntry {\n  const result = await client.tasksEditPartialUpdate({\n    \"path\": {\n      \"team_id\": \"1\",\n      \"task_id\": \"1\"\n    },\n    \"body\": {}\n  });\n  console.log(result);\n} catch (error) {\n  if (error instanceof ApiError) console.error(error.status, error.code, error.body);\n  throw error;\n}"
          }
        ],
        "x-shtab-scope": "tasks:write",
        "x-shtab-sdk": {
          "python": "tasks_edit_partial_update",
          "typescript": "tasksEditPartialUpdate"
        },
        "x-shtab-token-types": [
          "personal",
          "team"
        ]
      }
    },
    "/api/tasks/{team_id}/executors/create/": {
      "parameters": [
        {
          "in": "path",
          "name": "team_id",
          "required": true,
          "type": "string"
        }
      ],
      "post": {
        "description": "Создание исполнителей задачи",
        "operationId": "api_tasks_executors_create_create",
        "parameters": [
          {
            "in": "body",
            "name": "data",
            "required": true,
            "schema": {
              "$ref": "#/definitions/PublicTaskExecutorCreate"
            }
          }
        ],
        "responses": {
          "201": {
            "description": "",
            "schema": {
              "$ref": "#/definitions/PublicTaskExecutor"
            }
          },
          "400": {
            "description": "Параметры или тело запроса не прошли проверку.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "401": {
            "description": "Токен отсутствует или недействителен.",
            "schema": {
              "$ref": "#/definitions/PublicAuthenticationError"
            }
          },
          "402": {
            "description": "Тариф команды не включает запрошенную возможность.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "403": {
            "description": "Токену не выдан нужный грант или у пользователя отсутствуют права доступа.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "404": {
            "description": "Метод недоступен токену или объект отсутствует в доступной области.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "429": {
            "description": "Превышен лимит запросов. Заголовок Retry-After указывает время ожидания в секундах.",
            "headers": {
              "Retry-After": {
                "description": "Секунд до следующей попытки.",
                "type": "integer"
              }
            },
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          }
        },
        "summary": "Назначить исполнителя задачи",
        "tags": [
          "tasks"
        ],
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import os\n\nfrom shtab_sdk import ApiError, ShtabClient\n\nclient = ShtabClient(os.environ[\"SHTAB_TOKEN\"], token_type=\"personal\")\ntry:\n    result = client.tasks_executors_create_create(path={'team_id': '1'}, body={'member_id': 1, 'member_type': 'team_member', 'task': 1})\n    print(result)\nexcept ApiError as error:\n    print(error.status, error.code, error.body)\n    raise"
          },
          {
            "lang": "TypeScript",
            "source": "import { ApiError, ShtabClient } from \"@shtabapp/sdk\";\n\nconst token = process.env.SHTAB_TOKEN;\nif (!token) throw new Error(\"Set SHTAB_TOKEN\");\nconst client = new ShtabClient(token, { tokenType: \"personal\" });\ntry {\n  const result = await client.tasksExecutorsCreateCreate({\n    \"path\": {\n      \"team_id\": \"1\"\n    },\n    \"body\": {\n      \"task\": 1,\n      \"member_type\": \"team_member\",\n      \"member_id\": 1\n    }\n  });\n  console.log(result);\n} catch (error) {\n  if (error instanceof ApiError) console.error(error.status, error.code, error.body);\n  throw error;\n}"
          }
        ],
        "x-shtab-scope": "tasks.executors:write",
        "x-shtab-sdk": {
          "python": "tasks_executors_create_create",
          "typescript": "tasksExecutorsCreateCreate"
        },
        "x-shtab-token-types": [
          "personal",
          "team"
        ]
      }
    },
    "/api/tasks/{team_id}/executors/executors-detail/{task_id}/": {
      "get": {
        "description": "Информация об исполнителях задачи",
        "operationId": "api_tasks_executors_executors-detail_list",
        "parameters": [
          {
            "default": 20,
            "description": "Number of results to return per page.",
            "in": "query",
            "maximum": 100,
            "minimum": 1,
            "name": "limit",
            "required": false,
            "type": "integer"
          },
          {
            "default": 0,
            "description": "The initial index from which to return the results.",
            "in": "query",
            "minimum": 0,
            "name": "offset",
            "required": false,
            "type": "integer"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "schema": {
              "properties": {
                "next": {
                  "format": "uri",
                  "type": "string",
                  "x-nullable": true
                },
                "previous": {
                  "format": "uri",
                  "type": "string",
                  "x-nullable": true
                },
                "results": {
                  "items": {
                    "$ref": "#/definitions/PublicTaskExecutor"
                  },
                  "type": "array"
                }
              },
              "required": [
                "results"
              ],
              "type": "object"
            }
          },
          "400": {
            "description": "Параметры или тело запроса не прошли проверку.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "401": {
            "description": "Токен отсутствует или недействителен.",
            "schema": {
              "$ref": "#/definitions/PublicAuthenticationError"
            }
          },
          "402": {
            "description": "Тариф команды не включает запрошенную возможность.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "403": {
            "description": "Токену не выдан нужный грант или у пользователя отсутствуют права доступа.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "404": {
            "description": "Метод недоступен токену или объект отсутствует в доступной области.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "429": {
            "description": "Превышен лимит запросов. Заголовок Retry-After указывает время ожидания в секундах.",
            "headers": {
              "Retry-After": {
                "description": "Секунд до следующей попытки.",
                "type": "integer"
              }
            },
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          }
        },
        "summary": "Получить исполнителей задачи",
        "tags": [
          "tasks"
        ],
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import os\n\nfrom shtab_sdk import ApiError, ShtabClient\n\nclient = ShtabClient(os.environ[\"SHTAB_TOKEN\"], token_type=\"personal\")\ntry:\n    result = client.tasks_executors_executors_detail_list(path={'task_id': '1', 'team_id': '1'}, query={'limit': 20})\n    print(result)\nexcept ApiError as error:\n    print(error.status, error.code, error.body)\n    raise"
          },
          {
            "lang": "TypeScript",
            "source": "import { ApiError, ShtabClient } from \"@shtabapp/sdk\";\n\nconst token = process.env.SHTAB_TOKEN;\nif (!token) throw new Error(\"Set SHTAB_TOKEN\");\nconst client = new ShtabClient(token, { tokenType: \"personal\" });\ntry {\n  const result = await client.tasksExecutorsExecutorsDetailList({\n    \"path\": {\n      \"team_id\": \"1\",\n      \"task_id\": \"1\"\n    },\n    \"query\": {\n      \"limit\": 20\n    }\n  });\n  console.log(result);\n} catch (error) {\n  if (error instanceof ApiError) console.error(error.status, error.code, error.body);\n  throw error;\n}"
          }
        ],
        "x-shtab-pagination": {
          "limit": "limit",
          "next": "next",
          "offset": "offset",
          "previous": "previous",
          "type": "limit-offset"
        },
        "x-shtab-scope": "tasks.executors:read",
        "x-shtab-sdk": {
          "python": "tasks_executors_executors_detail_list",
          "typescript": "tasksExecutorsExecutorsDetailList"
        },
        "x-shtab-token-types": [
          "personal",
          "team"
        ]
      },
      "parameters": [
        {
          "in": "path",
          "name": "team_id",
          "required": true,
          "type": "string"
        },
        {
          "in": "path",
          "name": "task_id",
          "required": true,
          "type": "string"
        }
      ]
    },
    "/api/tasks/{team_id}/executors/list/": {
      "get": {
        "description": "Кроссзадачный список исполнителей команды с учётом видимости вызывающего.",
        "operationId": "api_tasks_executors_list_list",
        "parameters": [
          {
            "description": "",
            "in": "query",
            "name": "include_team_member",
            "required": false,
            "type": "string"
          },
          {
            "default": 20,
            "description": "Number of results to return per page.",
            "in": "query",
            "maximum": 100,
            "minimum": 1,
            "name": "limit",
            "required": false,
            "type": "integer"
          },
          {
            "default": 0,
            "description": "The initial index from which to return the results.",
            "in": "query",
            "minimum": 0,
            "name": "offset",
            "required": false,
            "type": "integer"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "schema": {
              "properties": {
                "next": {
                  "format": "uri",
                  "type": "string",
                  "x-nullable": true
                },
                "previous": {
                  "format": "uri",
                  "type": "string",
                  "x-nullable": true
                },
                "results": {
                  "items": {
                    "$ref": "#/definitions/PublicTaskExecutor"
                  },
                  "type": "array"
                }
              },
              "required": [
                "results"
              ],
              "type": "object"
            }
          },
          "400": {
            "description": "Параметры или тело запроса не прошли проверку.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "401": {
            "description": "Токен отсутствует или недействителен.",
            "schema": {
              "$ref": "#/definitions/PublicAuthenticationError"
            }
          },
          "402": {
            "description": "Тариф команды не включает запрошенную возможность.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "403": {
            "description": "Токену не выдан нужный грант или у пользователя отсутствуют права доступа.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "404": {
            "description": "Метод недоступен токену или объект отсутствует в доступной области.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "429": {
            "description": "Превышен лимит запросов. Заголовок Retry-After указывает время ожидания в секундах.",
            "headers": {
              "Retry-After": {
                "description": "Секунд до следующей попытки.",
                "type": "integer"
              }
            },
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          }
        },
        "summary": "Получить исполнителей по задачам команды",
        "tags": [
          "tasks"
        ],
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import os\n\nfrom shtab_sdk import ApiError, ShtabClient\n\nclient = ShtabClient(os.environ[\"SHTAB_TOKEN\"], token_type=\"personal\")\ntry:\n    result = client.tasks_executors_list_list(path={'team_id': '1'}, query={'limit': 20})\n    print(result)\nexcept ApiError as error:\n    print(error.status, error.code, error.body)\n    raise"
          },
          {
            "lang": "TypeScript",
            "source": "import { ApiError, ShtabClient } from \"@shtabapp/sdk\";\n\nconst token = process.env.SHTAB_TOKEN;\nif (!token) throw new Error(\"Set SHTAB_TOKEN\");\nconst client = new ShtabClient(token, { tokenType: \"personal\" });\ntry {\n  const result = await client.tasksExecutorsListList({\n    \"path\": {\n      \"team_id\": \"1\"\n    },\n    \"query\": {\n      \"limit\": 20\n    }\n  });\n  console.log(result);\n} catch (error) {\n  if (error instanceof ApiError) console.error(error.status, error.code, error.body);\n  throw error;\n}"
          }
        ],
        "x-shtab-pagination": {
          "limit": "limit",
          "next": "next",
          "offset": "offset",
          "previous": "previous",
          "type": "limit-offset"
        },
        "x-shtab-scope": "tasks.executors:read",
        "x-shtab-sdk": {
          "python": "tasks_executors_list_list",
          "typescript": "tasksExecutorsListList"
        },
        "x-shtab-token-types": [
          "personal",
          "team"
        ]
      },
      "parameters": [
        {
          "in": "path",
          "name": "team_id",
          "required": true,
          "type": "string"
        }
      ]
    },
    "/api/tasks/{team_id}/executors/{task_id}/delete/{task_executor_id}/": {
      "delete": {
        "description": "Удаление исполнителя задачи",
        "operationId": "api_tasks_executors_delete_delete",
        "parameters": [],
        "responses": {
          "204": {
            "description": ""
          },
          "400": {
            "description": "Параметры или тело запроса не прошли проверку.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "401": {
            "description": "Токен отсутствует или недействителен.",
            "schema": {
              "$ref": "#/definitions/PublicAuthenticationError"
            }
          },
          "402": {
            "description": "Тариф команды не включает запрошенную возможность.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "403": {
            "description": "Токену не выдан нужный грант или у пользователя отсутствуют права доступа.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "404": {
            "description": "Метод недоступен токену или объект отсутствует в доступной области.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "429": {
            "description": "Превышен лимит запросов. Заголовок Retry-After указывает время ожидания в секундах.",
            "headers": {
              "Retry-After": {
                "description": "Секунд до следующей попытки.",
                "type": "integer"
              }
            },
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          }
        },
        "summary": "Снять исполнителя с задачи",
        "tags": [
          "tasks"
        ],
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import os\n\nfrom shtab_sdk import ApiError, ShtabClient\n\nclient = ShtabClient(os.environ[\"SHTAB_TOKEN\"], token_type=\"personal\")\ntry:\n    result = client.tasks_executors_delete_delete(path={'task_executor_id': '1', 'task_id': '1', 'team_id': '1'})\n    print(result)\nexcept ApiError as error:\n    print(error.status, error.code, error.body)\n    raise"
          },
          {
            "lang": "TypeScript",
            "source": "import { ApiError, ShtabClient } from \"@shtabapp/sdk\";\n\nconst token = process.env.SHTAB_TOKEN;\nif (!token) throw new Error(\"Set SHTAB_TOKEN\");\nconst client = new ShtabClient(token, { tokenType: \"personal\" });\ntry {\n  const result = await client.tasksExecutorsDeleteDelete({\n    \"path\": {\n      \"team_id\": \"1\",\n      \"task_id\": \"1\",\n      \"task_executor_id\": \"1\"\n    }\n  });\n  console.log(result);\n} catch (error) {\n  if (error instanceof ApiError) console.error(error.status, error.code, error.body);\n  throw error;\n}"
          }
        ],
        "x-shtab-scope": "tasks.executors:write",
        "x-shtab-sdk": {
          "python": "tasks_executors_delete_delete",
          "typescript": "tasksExecutorsDeleteDelete"
        },
        "x-shtab-token-types": [
          "personal",
          "team"
        ]
      },
      "parameters": [
        {
          "in": "path",
          "name": "team_id",
          "required": true,
          "type": "string"
        },
        {
          "in": "path",
          "name": "task_id",
          "required": true,
          "type": "string"
        },
        {
          "in": "path",
          "name": "task_executor_id",
          "required": true,
          "type": "string"
        }
      ]
    },
    "/api/tasks/{team_id}/executors/{task_id}/update/{task_executor_id}/": {
      "parameters": [
        {
          "in": "path",
          "name": "team_id",
          "required": true,
          "type": "string"
        },
        {
          "in": "path",
          "name": "task_id",
          "required": true,
          "type": "string"
        },
        {
          "in": "path",
          "name": "task_executor_id",
          "required": true,
          "type": "string"
        }
      ],
      "patch": {
        "description": "Обновление статуса завершения задачи исполнителем",
        "operationId": "api_tasks_executors_update_partial_update",
        "parameters": [
          {
            "in": "body",
            "name": "data",
            "required": true,
            "schema": {
              "$ref": "#/definitions/PublicTaskExecutorUpdate"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "schema": {
              "$ref": "#/definitions/PublicTaskExecutor"
            }
          },
          "400": {
            "description": "Параметры или тело запроса не прошли проверку.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "401": {
            "description": "Токен отсутствует или недействителен.",
            "schema": {
              "$ref": "#/definitions/PublicAuthenticationError"
            }
          },
          "402": {
            "description": "Тариф команды не включает запрошенную возможность.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "403": {
            "description": "Токену не выдан нужный грант или у пользователя отсутствуют права доступа.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "404": {
            "description": "Метод недоступен токену или объект отсутствует в доступной области.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "429": {
            "description": "Превышен лимит запросов. Заголовок Retry-After указывает время ожидания в секундах.",
            "headers": {
              "Retry-After": {
                "description": "Секунд до следующей попытки.",
                "type": "integer"
              }
            },
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          }
        },
        "summary": "Изменить статус выполнения задачи исполнителем",
        "tags": [
          "tasks"
        ],
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import os\n\nfrom shtab_sdk import ApiError, ShtabClient\n\nclient = ShtabClient(os.environ[\"SHTAB_TOKEN\"], token_type=\"personal\")\ntry:\n    result = client.tasks_executors_update_partial_update(path={'task_executor_id': '1', 'task_id': '1', 'team_id': '1'}, body={})\n    print(result)\nexcept ApiError as error:\n    print(error.status, error.code, error.body)\n    raise"
          },
          {
            "lang": "TypeScript",
            "source": "import { ApiError, ShtabClient } from \"@shtabapp/sdk\";\n\nconst token = process.env.SHTAB_TOKEN;\nif (!token) throw new Error(\"Set SHTAB_TOKEN\");\nconst client = new ShtabClient(token, { tokenType: \"personal\" });\ntry {\n  const result = await client.tasksExecutorsUpdatePartialUpdate({\n    \"path\": {\n      \"team_id\": \"1\",\n      \"task_id\": \"1\",\n      \"task_executor_id\": \"1\"\n    },\n    \"body\": {}\n  });\n  console.log(result);\n} catch (error) {\n  if (error instanceof ApiError) console.error(error.status, error.code, error.body);\n  throw error;\n}"
          }
        ],
        "x-shtab-scope": "tasks.executors:write",
        "x-shtab-sdk": {
          "python": "tasks_executors_update_partial_update",
          "typescript": "tasksExecutorsUpdatePartialUpdate"
        },
        "x-shtab-token-types": [
          "personal",
          "team"
        ]
      }
    },
    "/api/tasks/{team_id}/files/{task_id}/create/": {
      "parameters": [
        {
          "in": "path",
          "name": "team_id",
          "required": true,
          "type": "string"
        },
        {
          "in": "path",
          "name": "task_id",
          "required": true,
          "type": "string"
        }
      ],
      "post": {
        "description": "Создание, список, редактирование, удаление файла (файлов) в задачи.",
        "operationId": "api_tasks_files_create_create",
        "parameters": [
          {
            "in": "body",
            "name": "data",
            "required": true,
            "schema": {
              "$ref": "#/definitions/PublicTaskFileCreate"
            }
          }
        ],
        "responses": {
          "201": {
            "description": "",
            "schema": {
              "$ref": "#/definitions/PublicTaskFile"
            }
          },
          "400": {
            "description": "Параметры или тело запроса не прошли проверку.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "401": {
            "description": "Токен отсутствует или недействителен.",
            "schema": {
              "$ref": "#/definitions/PublicAuthenticationError"
            }
          },
          "402": {
            "description": "Тариф команды не включает запрошенную возможность.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "403": {
            "description": "Токену не выдан нужный грант или у пользователя отсутствуют права доступа.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "404": {
            "description": "Метод недоступен токену или объект отсутствует в доступной области.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "429": {
            "description": "Превышен лимит запросов. Заголовок Retry-After указывает время ожидания в секундах.",
            "headers": {
              "Retry-After": {
                "description": "Секунд до следующей попытки.",
                "type": "integer"
              }
            },
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          }
        },
        "summary": "Прикрепить файл к задаче",
        "tags": [
          "tasks"
        ],
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import os\n\nfrom shtab_sdk import ApiError, ShtabClient\n\nclient = ShtabClient(os.environ[\"SHTAB_TOKEN\"], token_type=\"personal\")\ntry:\n    result = client.tasks_files_create_create(path={'task_id': '1', 'team_id': '1'}, body={})\n    print(result)\nexcept ApiError as error:\n    print(error.status, error.code, error.body)\n    raise"
          },
          {
            "lang": "TypeScript",
            "source": "import { ApiError, ShtabClient } from \"@shtabapp/sdk\";\n\nconst token = process.env.SHTAB_TOKEN;\nif (!token) throw new Error(\"Set SHTAB_TOKEN\");\nconst client = new ShtabClient(token, { tokenType: \"personal\" });\ntry {\n  const result = await client.tasksFilesCreateCreate({\n    \"path\": {\n      \"team_id\": \"1\",\n      \"task_id\": \"1\"\n    },\n    \"body\": {}\n  });\n  console.log(result);\n} catch (error) {\n  if (error instanceof ApiError) console.error(error.status, error.code, error.body);\n  throw error;\n}"
          }
        ],
        "x-shtab-scope": "tasks.files:write",
        "x-shtab-sdk": {
          "python": "tasks_files_create_create",
          "typescript": "tasksFilesCreateCreate"
        },
        "x-shtab-token-types": [
          "personal",
          "team"
        ]
      }
    },
    "/api/tasks/{team_id}/files/{task_id}/delete/{id}/": {
      "delete": {
        "description": "Создание, список, редактирование, удаление файла (файлов) в задачи.",
        "operationId": "api_tasks_files_delete_delete",
        "parameters": [],
        "responses": {
          "204": {
            "description": ""
          },
          "400": {
            "description": "Параметры или тело запроса не прошли проверку.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "401": {
            "description": "Токен отсутствует или недействителен.",
            "schema": {
              "$ref": "#/definitions/PublicAuthenticationError"
            }
          },
          "402": {
            "description": "Тариф команды не включает запрошенную возможность.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "403": {
            "description": "Токену не выдан нужный грант или у пользователя отсутствуют права доступа.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "404": {
            "description": "Метод недоступен токену или объект отсутствует в доступной области.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "429": {
            "description": "Превышен лимит запросов. Заголовок Retry-After указывает время ожидания в секундах.",
            "headers": {
              "Retry-After": {
                "description": "Секунд до следующей попытки.",
                "type": "integer"
              }
            },
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          }
        },
        "summary": "Удалить файл задачи",
        "tags": [
          "tasks"
        ],
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import os\n\nfrom shtab_sdk import ApiError, ShtabClient\n\nclient = ShtabClient(os.environ[\"SHTAB_TOKEN\"], token_type=\"personal\")\ntry:\n    result = client.tasks_files_delete_delete(path={'id': '00000000-0000-4000-8000-000000000001',\n     'task_id': '1',\n     'team_id': '1'})\n    print(result)\nexcept ApiError as error:\n    print(error.status, error.code, error.body)\n    raise"
          },
          {
            "lang": "TypeScript",
            "source": "import { ApiError, ShtabClient } from \"@shtabapp/sdk\";\n\nconst token = process.env.SHTAB_TOKEN;\nif (!token) throw new Error(\"Set SHTAB_TOKEN\");\nconst client = new ShtabClient(token, { tokenType: \"personal\" });\ntry {\n  const result = await client.tasksFilesDeleteDelete({\n    \"path\": {\n      \"team_id\": \"1\",\n      \"task_id\": \"1\",\n      \"id\": \"00000000-0000-4000-8000-000000000001\"\n    }\n  });\n  console.log(result);\n} catch (error) {\n  if (error instanceof ApiError) console.error(error.status, error.code, error.body);\n  throw error;\n}"
          }
        ],
        "x-shtab-scope": "tasks.files:write",
        "x-shtab-sdk": {
          "python": "tasks_files_delete_delete",
          "typescript": "tasksFilesDeleteDelete"
        },
        "x-shtab-token-types": [
          "personal",
          "team"
        ]
      },
      "parameters": [
        {
          "in": "path",
          "name": "team_id",
          "required": true,
          "type": "string"
        },
        {
          "in": "path",
          "name": "task_id",
          "required": true,
          "type": "string"
        },
        {
          "description": "A UUID string identifying this Файл задачи.",
          "format": "uuid",
          "in": "path",
          "name": "id",
          "required": true,
          "type": "string"
        }
      ]
    },
    "/api/tasks/{team_id}/files/{task_id}/list/": {
      "get": {
        "description": "Создание, список, редактирование, удаление файла (файлов) в задачи.",
        "operationId": "api_tasks_files_list_list",
        "parameters": [
          {
            "default": 20,
            "description": "Number of results to return per page.",
            "in": "query",
            "maximum": 100,
            "minimum": 1,
            "name": "limit",
            "required": false,
            "type": "integer"
          },
          {
            "default": 0,
            "description": "The initial index from which to return the results.",
            "in": "query",
            "minimum": 0,
            "name": "offset",
            "required": false,
            "type": "integer"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "schema": {
              "properties": {
                "next": {
                  "format": "uri",
                  "type": "string",
                  "x-nullable": true
                },
                "previous": {
                  "format": "uri",
                  "type": "string",
                  "x-nullable": true
                },
                "results": {
                  "items": {
                    "$ref": "#/definitions/PublicTaskFile"
                  },
                  "type": "array"
                }
              },
              "required": [
                "results"
              ],
              "type": "object"
            }
          },
          "400": {
            "description": "Параметры или тело запроса не прошли проверку.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "401": {
            "description": "Токен отсутствует или недействителен.",
            "schema": {
              "$ref": "#/definitions/PublicAuthenticationError"
            }
          },
          "402": {
            "description": "Тариф команды не включает запрошенную возможность.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "403": {
            "description": "Токену не выдан нужный грант или у пользователя отсутствуют права доступа.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "404": {
            "description": "Метод недоступен токену или объект отсутствует в доступной области.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "429": {
            "description": "Превышен лимит запросов. Заголовок Retry-After указывает время ожидания в секундах.",
            "headers": {
              "Retry-After": {
                "description": "Секунд до следующей попытки.",
                "type": "integer"
              }
            },
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          }
        },
        "summary": "Получить файлы задачи",
        "tags": [
          "tasks"
        ],
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import os\n\nfrom shtab_sdk import ApiError, ShtabClient\n\nclient = ShtabClient(os.environ[\"SHTAB_TOKEN\"], token_type=\"personal\")\ntry:\n    result = client.tasks_files_list_list(path={'task_id': '1', 'team_id': '1'}, query={'limit': 20})\n    print(result)\nexcept ApiError as error:\n    print(error.status, error.code, error.body)\n    raise"
          },
          {
            "lang": "TypeScript",
            "source": "import { ApiError, ShtabClient } from \"@shtabapp/sdk\";\n\nconst token = process.env.SHTAB_TOKEN;\nif (!token) throw new Error(\"Set SHTAB_TOKEN\");\nconst client = new ShtabClient(token, { tokenType: \"personal\" });\ntry {\n  const result = await client.tasksFilesListList({\n    \"path\": {\n      \"team_id\": \"1\",\n      \"task_id\": \"1\"\n    },\n    \"query\": {\n      \"limit\": 20\n    }\n  });\n  console.log(result);\n} catch (error) {\n  if (error instanceof ApiError) console.error(error.status, error.code, error.body);\n  throw error;\n}"
          }
        ],
        "x-shtab-pagination": {
          "limit": "limit",
          "next": "next",
          "offset": "offset",
          "previous": "previous",
          "type": "limit-offset"
        },
        "x-shtab-scope": "tasks.files:read",
        "x-shtab-sdk": {
          "python": "tasks_files_list_list",
          "typescript": "tasksFilesListList"
        },
        "x-shtab-token-types": [
          "personal",
          "team"
        ]
      },
      "parameters": [
        {
          "in": "path",
          "name": "team_id",
          "required": true,
          "type": "string"
        },
        {
          "in": "path",
          "name": "task_id",
          "required": true,
          "type": "string"
        }
      ]
    },
    "/api/tasks/{team_id}/history/list/{task_id}/": {
      "get": {
        "description": "Список изменений в задаче",
        "operationId": "api_tasks_history_list_list",
        "parameters": [
          {
            "description": "Which field to use when ordering the results.",
            "in": "query",
            "name": "ordering",
            "required": false,
            "type": "string"
          },
          {
            "default": 20,
            "description": "Number of results to return per page.",
            "in": "query",
            "maximum": 100,
            "minimum": 1,
            "name": "limit",
            "required": false,
            "type": "integer"
          },
          {
            "default": 0,
            "description": "The initial index from which to return the results.",
            "in": "query",
            "minimum": 0,
            "name": "offset",
            "required": false,
            "type": "integer"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "schema": {
              "properties": {
                "next": {
                  "format": "uri",
                  "type": "string",
                  "x-nullable": true
                },
                "previous": {
                  "format": "uri",
                  "type": "string",
                  "x-nullable": true
                },
                "results": {
                  "items": {
                    "$ref": "#/definitions/PublicTaskHistory"
                  },
                  "type": "array"
                }
              },
              "required": [
                "results"
              ],
              "type": "object"
            }
          },
          "400": {
            "description": "Параметры или тело запроса не прошли проверку.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "401": {
            "description": "Токен отсутствует или недействителен.",
            "schema": {
              "$ref": "#/definitions/PublicAuthenticationError"
            }
          },
          "402": {
            "description": "Тариф команды не включает запрошенную возможность.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "403": {
            "description": "Токену не выдан нужный грант или у пользователя отсутствуют права доступа.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "404": {
            "description": "Метод недоступен токену или объект отсутствует в доступной области.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "429": {
            "description": "Превышен лимит запросов. Заголовок Retry-After указывает время ожидания в секундах.",
            "headers": {
              "Retry-After": {
                "description": "Секунд до следующей попытки.",
                "type": "integer"
              }
            },
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          }
        },
        "summary": "Получить историю изменений задачи",
        "tags": [
          "tasks"
        ],
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import os\n\nfrom shtab_sdk import ApiError, ShtabClient\n\nclient = ShtabClient(os.environ[\"SHTAB_TOKEN\"], token_type=\"personal\")\ntry:\n    result = client.tasks_history_list_list(path={'task_id': '1', 'team_id': '1'}, query={'limit': 20})\n    print(result)\nexcept ApiError as error:\n    print(error.status, error.code, error.body)\n    raise"
          },
          {
            "lang": "TypeScript",
            "source": "import { ApiError, ShtabClient } from \"@shtabapp/sdk\";\n\nconst token = process.env.SHTAB_TOKEN;\nif (!token) throw new Error(\"Set SHTAB_TOKEN\");\nconst client = new ShtabClient(token, { tokenType: \"personal\" });\ntry {\n  const result = await client.tasksHistoryListList({\n    \"path\": {\n      \"team_id\": \"1\",\n      \"task_id\": \"1\"\n    },\n    \"query\": {\n      \"limit\": 20\n    }\n  });\n  console.log(result);\n} catch (error) {\n  if (error instanceof ApiError) console.error(error.status, error.code, error.body);\n  throw error;\n}"
          }
        ],
        "x-shtab-pagination": {
          "limit": "limit",
          "next": "next",
          "offset": "offset",
          "previous": "previous",
          "type": "limit-offset"
        },
        "x-shtab-scope": "tasks.history:read",
        "x-shtab-sdk": {
          "python": "tasks_history_list_list",
          "typescript": "tasksHistoryListList"
        },
        "x-shtab-token-types": [
          "personal",
          "team"
        ]
      },
      "parameters": [
        {
          "in": "path",
          "name": "team_id",
          "required": true,
          "type": "string"
        },
        {
          "in": "path",
          "name": "task_id",
          "required": true,
          "type": "string"
        }
      ]
    },
    "/api/tasks/{team_id}/list/": {
      "get": {
        "description": "Список задач.",
        "operationId": "api_tasks_list_list",
        "parameters": [
          {
            "description": "",
            "in": "query",
            "name": "priority",
            "required": false,
            "type": "string"
          },
          {
            "description": "",
            "in": "query",
            "name": "status",
            "required": false,
            "type": "string"
          },
          {
            "description": "",
            "in": "query",
            "name": "status__isnull",
            "required": false,
            "type": "string"
          },
          {
            "description": "",
            "in": "query",
            "name": "exclude_status",
            "required": false,
            "type": "string"
          },
          {
            "description": "",
            "in": "query",
            "name": "task_labels",
            "required": false,
            "type": "string"
          },
          {
            "description": "",
            "in": "query",
            "name": "deadline",
            "required": false,
            "type": "string"
          },
          {
            "description": "",
            "in": "query",
            "name": "date_start",
            "required": false,
            "type": "string"
          },
          {
            "description": "",
            "in": "query",
            "name": "date_created",
            "required": false,
            "type": "string"
          },
          {
            "description": "",
            "in": "query",
            "name": "created_by",
            "required": false,
            "type": "string"
          },
          {
            "description": "",
            "in": "query",
            "name": "executors",
            "required": false,
            "type": "string"
          },
          {
            "description": "",
            "in": "query",
            "name": "responsibles",
            "required": false,
            "type": "string"
          },
          {
            "description": "",
            "in": "query",
            "name": "responsibles__isnull",
            "required": false,
            "type": "string"
          },
          {
            "description": "",
            "in": "query",
            "name": "views",
            "required": false,
            "type": "string"
          },
          {
            "description": "",
            "in": "query",
            "name": "view",
            "required": false,
            "type": "string"
          },
          {
            "description": "",
            "in": "query",
            "name": "stage",
            "required": false,
            "type": "string"
          },
          {
            "description": "",
            "in": "query",
            "name": "stage__isnull",
            "required": false,
            "type": "string"
          },
          {
            "description": "",
            "in": "query",
            "name": "task_work_times__isnull",
            "required": false,
            "type": "string"
          },
          {
            "description": "",
            "in": "query",
            "name": "comments__isnull",
            "required": false,
            "type": "string"
          },
          {
            "description": "",
            "in": "query",
            "name": "files__isnull",
            "required": false,
            "type": "string"
          },
          {
            "description": "",
            "in": "query",
            "name": "children__isnull",
            "required": false,
            "type": "string"
          },
          {
            "description": "",
            "in": "query",
            "name": "check_lists__isnull",
            "required": false,
            "type": "string"
          },
          {
            "description": "",
            "in": "query",
            "name": "exclude",
            "required": false,
            "type": "string"
          },
          {
            "description": "",
            "in": "query",
            "name": "datasource",
            "required": false,
            "type": "string"
          },
          {
            "description": "",
            "in": "query",
            "name": "archived",
            "required": false,
            "type": "string"
          },
          {
            "description": "",
            "in": "query",
            "name": "archived_by__in",
            "required": false,
            "type": "string"
          },
          {
            "description": "",
            "in": "query",
            "name": "date_archived__gt",
            "required": false,
            "type": "string"
          },
          {
            "description": "",
            "in": "query",
            "name": "date_archived__lt",
            "required": false,
            "type": "string"
          },
          {
            "description": "",
            "in": "query",
            "name": "time_by_users",
            "required": false,
            "type": "string"
          },
          {
            "description": "",
            "in": "query",
            "name": "exclude_blocked_tasks",
            "required": false,
            "type": "string"
          },
          {
            "description": "",
            "in": "query",
            "name": "datetime_completed",
            "required": false,
            "type": "string"
          },
          {
            "description": "",
            "in": "query",
            "name": "datetime_completed__gt",
            "required": false,
            "type": "string"
          },
          {
            "description": "",
            "in": "query",
            "name": "datetime_completed__lt",
            "required": false,
            "type": "string"
          },
          {
            "description": "",
            "in": "query",
            "name": "due_date__gt",
            "required": false,
            "type": "string"
          },
          {
            "description": "",
            "in": "query",
            "name": "due_date__lt",
            "required": false,
            "type": "string"
          },
          {
            "description": "",
            "in": "query",
            "name": "parent",
            "required": false,
            "type": "string"
          },
          {
            "description": "",
            "in": "query",
            "name": "custom_fields",
            "required": false,
            "type": "string"
          },
          {
            "description": "",
            "in": "query",
            "name": "gantt_type",
            "required": false,
            "type": "string"
          },
          {
            "description": "",
            "in": "query",
            "name": "color",
            "required": false,
            "type": "string"
          },
          {
            "description": "",
            "in": "query",
            "name": "sla_breached",
            "required": false,
            "type": "string"
          },
          {
            "description": "",
            "in": "query",
            "name": "dontShowSubtasks",
            "required": false,
            "type": "string"
          },
          {
            "description": "",
            "in": "query",
            "name": "dont_show_subtasks",
            "required": false,
            "type": "string"
          },
          {
            "description": "",
            "in": "query",
            "name": "completed",
            "required": false,
            "type": "string"
          },
          {
            "description": "",
            "in": "query",
            "name": "partially_completed",
            "required": false,
            "type": "string"
          },
          {
            "description": "",
            "in": "query",
            "name": "my_completed_tasks",
            "required": false,
            "type": "string"
          },
          {
            "description": "",
            "in": "query",
            "name": "my_not_completed_tasks",
            "required": false,
            "type": "string"
          },
          {
            "description": "",
            "in": "query",
            "name": "planned_time",
            "required": false,
            "type": "string"
          },
          {
            "description": "",
            "in": "query",
            "name": "group",
            "required": false,
            "type": "string"
          },
          {
            "description": "",
            "in": "query",
            "name": "have_estimates",
            "required": false,
            "type": "string"
          },
          {
            "description": "",
            "in": "query",
            "name": "have_planned_estimates",
            "required": false,
            "type": "string"
          },
          {
            "description": "",
            "in": "query",
            "name": "deadline__gt",
            "required": false,
            "type": "string"
          },
          {
            "description": "",
            "in": "query",
            "name": "deadline__lt",
            "required": false,
            "type": "string"
          },
          {
            "description": "",
            "in": "query",
            "name": "date_updated__gt",
            "required": false,
            "type": "string"
          },
          {
            "description": "",
            "in": "query",
            "name": "date_updated__gte",
            "required": false,
            "type": "string"
          },
          {
            "description": "",
            "in": "query",
            "name": "external_id",
            "required": false,
            "type": "string"
          },
          {
            "description": "",
            "in": "query",
            "name": "deadline_range__start",
            "required": false,
            "type": "string"
          },
          {
            "description": "",
            "in": "query",
            "name": "deadline_range__end",
            "required": false,
            "type": "string"
          },
          {
            "description": "",
            "in": "query",
            "name": "calendar_range__start",
            "required": false,
            "type": "string"
          },
          {
            "description": "",
            "in": "query",
            "name": "calendar_range__end",
            "required": false,
            "type": "string"
          },
          {
            "description": "",
            "in": "query",
            "name": "date_start__gt",
            "required": false,
            "type": "string"
          },
          {
            "description": "",
            "in": "query",
            "name": "date_start__lt",
            "required": false,
            "type": "string"
          },
          {
            "description": "",
            "in": "query",
            "name": "date_created__gt",
            "required": false,
            "type": "string"
          },
          {
            "description": "",
            "in": "query",
            "name": "date_created__lt",
            "required": false,
            "type": "string"
          },
          {
            "description": "",
            "in": "query",
            "name": "executor_members",
            "required": false,
            "type": "string"
          },
          {
            "description": "",
            "in": "query",
            "name": "responsible_members",
            "required": false,
            "type": "string"
          },
          {
            "description": "",
            "in": "query",
            "name": "my_tasks",
            "required": false,
            "type": "string"
          },
          {
            "description": "",
            "in": "query",
            "name": "watchers",
            "required": false,
            "type": "string"
          },
          {
            "description": "",
            "in": "query",
            "name": "type",
            "required": false,
            "type": "string"
          },
          {
            "description": "",
            "in": "query",
            "name": "ids",
            "required": false,
            "type": "string"
          },
          {
            "description": "A search term.",
            "in": "query",
            "name": "search",
            "required": false,
            "type": "string"
          },
          {
            "description": "Which field to use when ordering the results.",
            "in": "query",
            "name": "ordering",
            "required": false,
            "type": "string"
          },
          {
            "default": 20,
            "description": "Number of results to return per page.",
            "in": "query",
            "maximum": 100,
            "minimum": 1,
            "name": "limit",
            "required": false,
            "type": "integer"
          },
          {
            "default": 0,
            "description": "The initial index from which to return the results.",
            "in": "query",
            "minimum": 0,
            "name": "offset",
            "required": false,
            "type": "integer"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "schema": {
              "properties": {
                "next": {
                  "format": "uri",
                  "type": "string",
                  "x-nullable": true
                },
                "previous": {
                  "format": "uri",
                  "type": "string",
                  "x-nullable": true
                },
                "results": {
                  "items": {
                    "$ref": "#/definitions/PublicTask"
                  },
                  "type": "array"
                }
              },
              "required": [
                "results"
              ],
              "type": "object"
            }
          },
          "400": {
            "description": "Параметры или тело запроса не прошли проверку.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "401": {
            "description": "Токен отсутствует или недействителен.",
            "schema": {
              "$ref": "#/definitions/PublicAuthenticationError"
            }
          },
          "402": {
            "description": "Тариф команды не включает запрошенную возможность.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "403": {
            "description": "Токену не выдан нужный грант или у пользователя отсутствуют права доступа.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "404": {
            "description": "Метод недоступен токену или объект отсутствует в доступной области.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "429": {
            "description": "Превышен лимит запросов. Заголовок Retry-After указывает время ожидания в секундах.",
            "headers": {
              "Retry-After": {
                "description": "Секунд до следующей попытки.",
                "type": "integer"
              }
            },
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          }
        },
        "summary": "Получить список задач",
        "tags": [
          "tasks"
        ],
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import os\n\nfrom shtab_sdk import ApiError, ShtabClient\n\nclient = ShtabClient(os.environ[\"SHTAB_TOKEN\"], token_type=\"personal\")\ntry:\n    result = client.tasks_list_list(path={'team_id': '1'}, query={'limit': 20})\n    print(result)\nexcept ApiError as error:\n    print(error.status, error.code, error.body)\n    raise"
          },
          {
            "lang": "TypeScript",
            "source": "import { ApiError, ShtabClient } from \"@shtabapp/sdk\";\n\nconst token = process.env.SHTAB_TOKEN;\nif (!token) throw new Error(\"Set SHTAB_TOKEN\");\nconst client = new ShtabClient(token, { tokenType: \"personal\" });\ntry {\n  const result = await client.tasksListList({\n    \"path\": {\n      \"team_id\": \"1\"\n    },\n    \"query\": {\n      \"limit\": 20\n    }\n  });\n  console.log(result);\n} catch (error) {\n  if (error instanceof ApiError) console.error(error.status, error.code, error.body);\n  throw error;\n}"
          }
        ],
        "x-shtab-pagination": {
          "limit": "limit",
          "next": "next",
          "offset": "offset",
          "previous": "previous",
          "type": "limit-offset"
        },
        "x-shtab-scope": "tasks:read",
        "x-shtab-sdk": {
          "python": "tasks_list_list",
          "typescript": "tasksListList"
        },
        "x-shtab-token-types": [
          "personal",
          "team"
        ]
      },
      "parameters": [
        {
          "in": "path",
          "name": "team_id",
          "required": true,
          "type": "string"
        }
      ]
    },
    "/api/tasks/{team_id}/responsible/create/": {
      "parameters": [
        {
          "in": "path",
          "name": "team_id",
          "required": true,
          "type": "string"
        }
      ],
      "post": {
        "description": "Create task responsible.",
        "operationId": "api_tasks_responsible_create_create",
        "parameters": [
          {
            "in": "body",
            "name": "data",
            "required": true,
            "schema": {
              "$ref": "#/definitions/PublicTaskResponsibleCreate"
            }
          }
        ],
        "responses": {
          "201": {
            "description": "",
            "schema": {
              "$ref": "#/definitions/PublicTaskResponsible"
            }
          },
          "400": {
            "description": "Параметры или тело запроса не прошли проверку.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "401": {
            "description": "Токен отсутствует или недействителен.",
            "schema": {
              "$ref": "#/definitions/PublicAuthenticationError"
            }
          },
          "402": {
            "description": "Тариф команды не включает запрошенную возможность.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "403": {
            "description": "Токену не выдан нужный грант или у пользователя отсутствуют права доступа.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "404": {
            "description": "Метод недоступен токену или объект отсутствует в доступной области.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "429": {
            "description": "Превышен лимит запросов. Заголовок Retry-After указывает время ожидания в секундах.",
            "headers": {
              "Retry-After": {
                "description": "Секунд до следующей попытки.",
                "type": "integer"
              }
            },
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          }
        },
        "summary": "Назначить контролирующего задачи",
        "tags": [
          "tasks"
        ],
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import os\n\nfrom shtab_sdk import ApiError, ShtabClient\n\nclient = ShtabClient(os.environ[\"SHTAB_TOKEN\"], token_type=\"personal\")\ntry:\n    result = client.tasks_responsible_create_create(path={'team_id': '1'}, body={'member_id': 1, 'member_type': 'team_member', 'task': 1})\n    print(result)\nexcept ApiError as error:\n    print(error.status, error.code, error.body)\n    raise"
          },
          {
            "lang": "TypeScript",
            "source": "import { ApiError, ShtabClient } from \"@shtabapp/sdk\";\n\nconst token = process.env.SHTAB_TOKEN;\nif (!token) throw new Error(\"Set SHTAB_TOKEN\");\nconst client = new ShtabClient(token, { tokenType: \"personal\" });\ntry {\n  const result = await client.tasksResponsibleCreateCreate({\n    \"path\": {\n      \"team_id\": \"1\"\n    },\n    \"body\": {\n      \"task\": 1,\n      \"member_type\": \"team_member\",\n      \"member_id\": 1\n    }\n  });\n  console.log(result);\n} catch (error) {\n  if (error instanceof ApiError) console.error(error.status, error.code, error.body);\n  throw error;\n}"
          }
        ],
        "x-shtab-scope": "tasks.responsibles:write",
        "x-shtab-sdk": {
          "python": "tasks_responsible_create_create",
          "typescript": "tasksResponsibleCreateCreate"
        },
        "x-shtab-token-types": [
          "personal",
          "team"
        ]
      }
    },
    "/api/tasks/{team_id}/responsible/list/": {
      "get": {
        "description": "Кроссзадачный список контролирующих команды с учётом видимости вызывающего.",
        "operationId": "api_tasks_responsible_list_list",
        "parameters": [
          {
            "description": "",
            "in": "query",
            "name": "include_team_member",
            "required": false,
            "type": "string"
          },
          {
            "default": 20,
            "description": "Number of results to return per page.",
            "in": "query",
            "maximum": 100,
            "minimum": 1,
            "name": "limit",
            "required": false,
            "type": "integer"
          },
          {
            "default": 0,
            "description": "The initial index from which to return the results.",
            "in": "query",
            "minimum": 0,
            "name": "offset",
            "required": false,
            "type": "integer"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "schema": {
              "properties": {
                "next": {
                  "format": "uri",
                  "type": "string",
                  "x-nullable": true
                },
                "previous": {
                  "format": "uri",
                  "type": "string",
                  "x-nullable": true
                },
                "results": {
                  "items": {
                    "$ref": "#/definitions/PublicTaskResponsible"
                  },
                  "type": "array"
                }
              },
              "required": [
                "results"
              ],
              "type": "object"
            }
          },
          "400": {
            "description": "Параметры или тело запроса не прошли проверку.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "401": {
            "description": "Токен отсутствует или недействителен.",
            "schema": {
              "$ref": "#/definitions/PublicAuthenticationError"
            }
          },
          "402": {
            "description": "Тариф команды не включает запрошенную возможность.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "403": {
            "description": "Токену не выдан нужный грант или у пользователя отсутствуют права доступа.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "404": {
            "description": "Метод недоступен токену или объект отсутствует в доступной области.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "429": {
            "description": "Превышен лимит запросов. Заголовок Retry-After указывает время ожидания в секундах.",
            "headers": {
              "Retry-After": {
                "description": "Секунд до следующей попытки.",
                "type": "integer"
              }
            },
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          }
        },
        "summary": "Получить контролирующих по задачам команды",
        "tags": [
          "tasks"
        ],
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import os\n\nfrom shtab_sdk import ApiError, ShtabClient\n\nclient = ShtabClient(os.environ[\"SHTAB_TOKEN\"], token_type=\"personal\")\ntry:\n    result = client.tasks_responsible_list_list(path={'team_id': '1'}, query={'limit': 20})\n    print(result)\nexcept ApiError as error:\n    print(error.status, error.code, error.body)\n    raise"
          },
          {
            "lang": "TypeScript",
            "source": "import { ApiError, ShtabClient } from \"@shtabapp/sdk\";\n\nconst token = process.env.SHTAB_TOKEN;\nif (!token) throw new Error(\"Set SHTAB_TOKEN\");\nconst client = new ShtabClient(token, { tokenType: \"personal\" });\ntry {\n  const result = await client.tasksResponsibleListList({\n    \"path\": {\n      \"team_id\": \"1\"\n    },\n    \"query\": {\n      \"limit\": 20\n    }\n  });\n  console.log(result);\n} catch (error) {\n  if (error instanceof ApiError) console.error(error.status, error.code, error.body);\n  throw error;\n}"
          }
        ],
        "x-shtab-pagination": {
          "limit": "limit",
          "next": "next",
          "offset": "offset",
          "previous": "previous",
          "type": "limit-offset"
        },
        "x-shtab-scope": "tasks.responsibles:read",
        "x-shtab-sdk": {
          "python": "tasks_responsible_list_list",
          "typescript": "tasksResponsibleListList"
        },
        "x-shtab-token-types": [
          "personal",
          "team"
        ]
      },
      "parameters": [
        {
          "in": "path",
          "name": "team_id",
          "required": true,
          "type": "string"
        }
      ]
    },
    "/api/tasks/{team_id}/responsible/responsible-detail/{task_id}/": {
      "get": {
        "description": "Information about task responsibles.",
        "operationId": "api_tasks_responsible_responsible-detail_list",
        "parameters": [
          {
            "default": 20,
            "description": "Number of results to return per page.",
            "in": "query",
            "maximum": 100,
            "minimum": 1,
            "name": "limit",
            "required": false,
            "type": "integer"
          },
          {
            "default": 0,
            "description": "The initial index from which to return the results.",
            "in": "query",
            "minimum": 0,
            "name": "offset",
            "required": false,
            "type": "integer"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "schema": {
              "properties": {
                "next": {
                  "format": "uri",
                  "type": "string",
                  "x-nullable": true
                },
                "previous": {
                  "format": "uri",
                  "type": "string",
                  "x-nullable": true
                },
                "results": {
                  "items": {
                    "$ref": "#/definitions/PublicTaskResponsible"
                  },
                  "type": "array"
                }
              },
              "required": [
                "results"
              ],
              "type": "object"
            }
          },
          "400": {
            "description": "Параметры или тело запроса не прошли проверку.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "401": {
            "description": "Токен отсутствует или недействителен.",
            "schema": {
              "$ref": "#/definitions/PublicAuthenticationError"
            }
          },
          "402": {
            "description": "Тариф команды не включает запрошенную возможность.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "403": {
            "description": "Токену не выдан нужный грант или у пользователя отсутствуют права доступа.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "404": {
            "description": "Метод недоступен токену или объект отсутствует в доступной области.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "429": {
            "description": "Превышен лимит запросов. Заголовок Retry-After указывает время ожидания в секундах.",
            "headers": {
              "Retry-After": {
                "description": "Секунд до следующей попытки.",
                "type": "integer"
              }
            },
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          }
        },
        "summary": "Получить контролирующих задачи",
        "tags": [
          "tasks"
        ],
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import os\n\nfrom shtab_sdk import ApiError, ShtabClient\n\nclient = ShtabClient(os.environ[\"SHTAB_TOKEN\"], token_type=\"personal\")\ntry:\n    result = client.tasks_responsible_responsible_detail_list(path={'task_id': '1', 'team_id': '1'}, query={'limit': 20})\n    print(result)\nexcept ApiError as error:\n    print(error.status, error.code, error.body)\n    raise"
          },
          {
            "lang": "TypeScript",
            "source": "import { ApiError, ShtabClient } from \"@shtabapp/sdk\";\n\nconst token = process.env.SHTAB_TOKEN;\nif (!token) throw new Error(\"Set SHTAB_TOKEN\");\nconst client = new ShtabClient(token, { tokenType: \"personal\" });\ntry {\n  const result = await client.tasksResponsibleResponsibleDetailList({\n    \"path\": {\n      \"team_id\": \"1\",\n      \"task_id\": \"1\"\n    },\n    \"query\": {\n      \"limit\": 20\n    }\n  });\n  console.log(result);\n} catch (error) {\n  if (error instanceof ApiError) console.error(error.status, error.code, error.body);\n  throw error;\n}"
          }
        ],
        "x-shtab-pagination": {
          "limit": "limit",
          "next": "next",
          "offset": "offset",
          "previous": "previous",
          "type": "limit-offset"
        },
        "x-shtab-scope": "tasks.responsibles:read",
        "x-shtab-sdk": {
          "python": "tasks_responsible_responsible_detail_list",
          "typescript": "tasksResponsibleResponsibleDetailList"
        },
        "x-shtab-token-types": [
          "personal",
          "team"
        ]
      },
      "parameters": [
        {
          "in": "path",
          "name": "team_id",
          "required": true,
          "type": "string"
        },
        {
          "in": "path",
          "name": "task_id",
          "required": true,
          "type": "string"
        }
      ]
    },
    "/api/tasks/{team_id}/responsible/{task_id}/delete/{task_responsible_id}/": {
      "delete": {
        "description": "Delete task responsible.",
        "operationId": "api_tasks_responsible_delete_delete",
        "parameters": [],
        "responses": {
          "204": {
            "description": ""
          },
          "400": {
            "description": "Параметры или тело запроса не прошли проверку.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "401": {
            "description": "Токен отсутствует или недействителен.",
            "schema": {
              "$ref": "#/definitions/PublicAuthenticationError"
            }
          },
          "402": {
            "description": "Тариф команды не включает запрошенную возможность.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "403": {
            "description": "Токену не выдан нужный грант или у пользователя отсутствуют права доступа.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "404": {
            "description": "Метод недоступен токену или объект отсутствует в доступной области.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "429": {
            "description": "Превышен лимит запросов. Заголовок Retry-After указывает время ожидания в секундах.",
            "headers": {
              "Retry-After": {
                "description": "Секунд до следующей попытки.",
                "type": "integer"
              }
            },
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          }
        },
        "summary": "Снять контролирующего с задачи",
        "tags": [
          "tasks"
        ],
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import os\n\nfrom shtab_sdk import ApiError, ShtabClient\n\nclient = ShtabClient(os.environ[\"SHTAB_TOKEN\"], token_type=\"personal\")\ntry:\n    result = client.tasks_responsible_delete_delete(path={'task_id': '1', 'task_responsible_id': '1', 'team_id': '1'})\n    print(result)\nexcept ApiError as error:\n    print(error.status, error.code, error.body)\n    raise"
          },
          {
            "lang": "TypeScript",
            "source": "import { ApiError, ShtabClient } from \"@shtabapp/sdk\";\n\nconst token = process.env.SHTAB_TOKEN;\nif (!token) throw new Error(\"Set SHTAB_TOKEN\");\nconst client = new ShtabClient(token, { tokenType: \"personal\" });\ntry {\n  const result = await client.tasksResponsibleDeleteDelete({\n    \"path\": {\n      \"team_id\": \"1\",\n      \"task_id\": \"1\",\n      \"task_responsible_id\": \"1\"\n    }\n  });\n  console.log(result);\n} catch (error) {\n  if (error instanceof ApiError) console.error(error.status, error.code, error.body);\n  throw error;\n}"
          }
        ],
        "x-shtab-scope": "tasks.responsibles:write",
        "x-shtab-sdk": {
          "python": "tasks_responsible_delete_delete",
          "typescript": "tasksResponsibleDeleteDelete"
        },
        "x-shtab-token-types": [
          "personal",
          "team"
        ]
      },
      "parameters": [
        {
          "in": "path",
          "name": "team_id",
          "required": true,
          "type": "string"
        },
        {
          "in": "path",
          "name": "task_id",
          "required": true,
          "type": "string"
        },
        {
          "in": "path",
          "name": "task_responsible_id",
          "required": true,
          "type": "string"
        }
      ]
    },
    "/api/tasks/{team_id}/responsible/{task_id}/update/{task_responsible_id}/": {
      "parameters": [
        {
          "in": "path",
          "name": "team_id",
          "required": true,
          "type": "string"
        },
        {
          "in": "path",
          "name": "task_id",
          "required": true,
          "type": "string"
        },
        {
          "in": "path",
          "name": "task_responsible_id",
          "required": true,
          "type": "string"
        }
      ],
      "patch": {
        "description": "Update task closing confirmation status.",
        "operationId": "api_tasks_responsible_update_partial_update",
        "parameters": [
          {
            "in": "body",
            "name": "data",
            "required": true,
            "schema": {
              "$ref": "#/definitions/PublicTaskResponsibleUpdate"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "schema": {
              "$ref": "#/definitions/PublicTaskResponsible"
            }
          },
          "400": {
            "description": "Параметры или тело запроса не прошли проверку.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "401": {
            "description": "Токен отсутствует или недействителен.",
            "schema": {
              "$ref": "#/definitions/PublicAuthenticationError"
            }
          },
          "402": {
            "description": "Тариф команды не включает запрошенную возможность.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "403": {
            "description": "Токену не выдан нужный грант или у пользователя отсутствуют права доступа.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "404": {
            "description": "Метод недоступен токену или объект отсутствует в доступной области.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "429": {
            "description": "Превышен лимит запросов. Заголовок Retry-After указывает время ожидания в секундах.",
            "headers": {
              "Retry-After": {
                "description": "Секунд до следующей попытки.",
                "type": "integer"
              }
            },
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          }
        },
        "summary": "Изменить подтверждение закрытия задачи контролирующим",
        "tags": [
          "tasks"
        ],
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import os\n\nfrom shtab_sdk import ApiError, ShtabClient\n\nclient = ShtabClient(os.environ[\"SHTAB_TOKEN\"], token_type=\"personal\")\ntry:\n    result = client.tasks_responsible_update_partial_update(path={'task_id': '1', 'task_responsible_id': '1', 'team_id': '1'}, body={})\n    print(result)\nexcept ApiError as error:\n    print(error.status, error.code, error.body)\n    raise"
          },
          {
            "lang": "TypeScript",
            "source": "import { ApiError, ShtabClient } from \"@shtabapp/sdk\";\n\nconst token = process.env.SHTAB_TOKEN;\nif (!token) throw new Error(\"Set SHTAB_TOKEN\");\nconst client = new ShtabClient(token, { tokenType: \"personal\" });\ntry {\n  const result = await client.tasksResponsibleUpdatePartialUpdate({\n    \"path\": {\n      \"team_id\": \"1\",\n      \"task_id\": \"1\",\n      \"task_responsible_id\": \"1\"\n    },\n    \"body\": {}\n  });\n  console.log(result);\n} catch (error) {\n  if (error instanceof ApiError) console.error(error.status, error.code, error.body);\n  throw error;\n}"
          }
        ],
        "x-shtab-scope": "tasks.responsibles:write",
        "x-shtab-sdk": {
          "python": "tasks_responsible_update_partial_update",
          "typescript": "tasksResponsibleUpdatePartialUpdate"
        },
        "x-shtab-token-types": [
          "personal",
          "team"
        ]
      }
    },
    "/api/tasks/{team_id}/view/{view_id}/checklists/{task_id}/create/": {
      "parameters": [
        {
          "in": "path",
          "name": "team_id",
          "required": true,
          "type": "string"
        },
        {
          "in": "path",
          "name": "view_id",
          "required": true,
          "type": "string"
        },
        {
          "in": "path",
          "name": "task_id",
          "required": true,
          "type": "string"
        }
      ],
      "post": {
        "description": "Создание, список, редактирование, удаление пункта чек листа.\nСписок возвращает чек-листы карточки с вложенными пунктами.",
        "operationId": "api_tasks_view_checklists_create_create",
        "parameters": [
          {
            "in": "body",
            "name": "data",
            "required": true,
            "schema": {
              "$ref": "#/definitions/PublicCheckListCreate"
            }
          }
        ],
        "responses": {
          "201": {
            "description": "",
            "schema": {
              "$ref": "#/definitions/PublicCheckList"
            }
          },
          "400": {
            "description": "Параметры или тело запроса не прошли проверку.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "401": {
            "description": "Токен отсутствует или недействителен.",
            "schema": {
              "$ref": "#/definitions/PublicAuthenticationError"
            }
          },
          "402": {
            "description": "Тариф команды не включает запрошенную возможность.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "403": {
            "description": "Токену не выдан нужный грант или у пользователя отсутствуют права доступа.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "404": {
            "description": "Метод недоступен токену или объект отсутствует в доступной области.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "429": {
            "description": "Превышен лимит запросов. Заголовок Retry-After указывает время ожидания в секундах.",
            "headers": {
              "Retry-After": {
                "description": "Секунд до следующей попытки.",
                "type": "integer"
              }
            },
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          }
        },
        "summary": "Добавить пункт в чек-лист задачи (в пространстве)",
        "tags": [
          "tasks"
        ],
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import os\n\nfrom shtab_sdk import ApiError, ShtabClient\n\nclient = ShtabClient(os.environ[\"SHTAB_TOKEN\"], token_type=\"personal\")\ntry:\n    result = client.tasks_view_checklists_create_create(path={'task_id': '1', 'team_id': '1', 'view_id': '1'}, body={'text': 'пример'})\n    print(result)\nexcept ApiError as error:\n    print(error.status, error.code, error.body)\n    raise"
          },
          {
            "lang": "TypeScript",
            "source": "import { ApiError, ShtabClient } from \"@shtabapp/sdk\";\n\nconst token = process.env.SHTAB_TOKEN;\nif (!token) throw new Error(\"Set SHTAB_TOKEN\");\nconst client = new ShtabClient(token, { tokenType: \"personal\" });\ntry {\n  const result = await client.tasksViewChecklistsCreateCreate({\n    \"path\": {\n      \"team_id\": \"1\",\n      \"view_id\": \"1\",\n      \"task_id\": \"1\"\n    },\n    \"body\": {\n      \"text\": \"пример\"\n    }\n  });\n  console.log(result);\n} catch (error) {\n  if (error instanceof ApiError) console.error(error.status, error.code, error.body);\n  throw error;\n}"
          }
        ],
        "x-shtab-scope": "tasks.checklists:write",
        "x-shtab-sdk": {
          "python": "tasks_view_checklists_create_create",
          "typescript": "tasksViewChecklistsCreateCreate"
        },
        "x-shtab-token-types": [
          "personal",
          "team"
        ]
      }
    },
    "/api/tasks/{team_id}/view/{view_id}/checklists/{task_id}/delete/{id}/": {
      "delete": {
        "description": "Создание, список, редактирование, удаление пункта чек листа.\nСписок возвращает чек-листы карточки с вложенными пунктами.",
        "operationId": "api_tasks_view_checklists_delete_delete",
        "parameters": [],
        "responses": {
          "204": {
            "description": ""
          },
          "400": {
            "description": "Параметры или тело запроса не прошли проверку.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "401": {
            "description": "Токен отсутствует или недействителен.",
            "schema": {
              "$ref": "#/definitions/PublicAuthenticationError"
            }
          },
          "402": {
            "description": "Тариф команды не включает запрошенную возможность.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "403": {
            "description": "Токену не выдан нужный грант или у пользователя отсутствуют права доступа.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "404": {
            "description": "Метод недоступен токену или объект отсутствует в доступной области.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "429": {
            "description": "Превышен лимит запросов. Заголовок Retry-After указывает время ожидания в секундах.",
            "headers": {
              "Retry-After": {
                "description": "Секунд до следующей попытки.",
                "type": "integer"
              }
            },
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          }
        },
        "summary": "Удалить пункт из чек-листа задачи (в пространстве)",
        "tags": [
          "tasks"
        ],
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import os\n\nfrom shtab_sdk import ApiError, ShtabClient\n\nclient = ShtabClient(os.environ[\"SHTAB_TOKEN\"], token_type=\"personal\")\ntry:\n    result = client.tasks_view_checklists_delete_delete(path={'id': 1, 'task_id': '1', 'team_id': '1', 'view_id': '1'})\n    print(result)\nexcept ApiError as error:\n    print(error.status, error.code, error.body)\n    raise"
          },
          {
            "lang": "TypeScript",
            "source": "import { ApiError, ShtabClient } from \"@shtabapp/sdk\";\n\nconst token = process.env.SHTAB_TOKEN;\nif (!token) throw new Error(\"Set SHTAB_TOKEN\");\nconst client = new ShtabClient(token, { tokenType: \"personal\" });\ntry {\n  const result = await client.tasksViewChecklistsDeleteDelete({\n    \"path\": {\n      \"team_id\": \"1\",\n      \"view_id\": \"1\",\n      \"task_id\": \"1\",\n      \"id\": 1\n    }\n  });\n  console.log(result);\n} catch (error) {\n  if (error instanceof ApiError) console.error(error.status, error.code, error.body);\n  throw error;\n}"
          }
        ],
        "x-shtab-scope": "tasks.checklists:write",
        "x-shtab-sdk": {
          "python": "tasks_view_checklists_delete_delete",
          "typescript": "tasksViewChecklistsDeleteDelete"
        },
        "x-shtab-token-types": [
          "personal",
          "team"
        ]
      },
      "parameters": [
        {
          "in": "path",
          "name": "team_id",
          "required": true,
          "type": "string"
        },
        {
          "in": "path",
          "name": "view_id",
          "required": true,
          "type": "string"
        },
        {
          "in": "path",
          "name": "task_id",
          "required": true,
          "type": "string"
        },
        {
          "description": "A unique integer value identifying this Пункт чек-листа.",
          "in": "path",
          "name": "id",
          "required": true,
          "type": "integer"
        }
      ]
    },
    "/api/tasks/{team_id}/view/{view_id}/checklists/{task_id}/edit/{id}/": {
      "parameters": [
        {
          "in": "path",
          "name": "team_id",
          "required": true,
          "type": "string"
        },
        {
          "in": "path",
          "name": "view_id",
          "required": true,
          "type": "string"
        },
        {
          "in": "path",
          "name": "task_id",
          "required": true,
          "type": "string"
        },
        {
          "description": "A unique integer value identifying this Пункт чек-листа.",
          "in": "path",
          "name": "id",
          "required": true,
          "type": "integer"
        }
      ],
      "patch": {
        "description": "Создание, список, редактирование, удаление пункта чек листа.\nСписок возвращает чек-листы карточки с вложенными пунктами.",
        "operationId": "api_tasks_view_checklists_edit_partial_update",
        "parameters": [
          {
            "in": "body",
            "name": "data",
            "required": true,
            "schema": {
              "$ref": "#/definitions/PublicCheckListUpdate"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "schema": {
              "$ref": "#/definitions/PublicCheckList"
            }
          },
          "400": {
            "description": "Параметры или тело запроса не прошли проверку.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "401": {
            "description": "Токен отсутствует или недействителен.",
            "schema": {
              "$ref": "#/definitions/PublicAuthenticationError"
            }
          },
          "402": {
            "description": "Тариф команды не включает запрошенную возможность.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "403": {
            "description": "Токену не выдан нужный грант или у пользователя отсутствуют права доступа.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "404": {
            "description": "Метод недоступен токену или объект отсутствует в доступной области.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "429": {
            "description": "Превышен лимит запросов. Заголовок Retry-After указывает время ожидания в секундах.",
            "headers": {
              "Retry-After": {
                "description": "Секунд до следующей попытки.",
                "type": "integer"
              }
            },
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          }
        },
        "summary": "Частично обновить пункт чек-листа задачи (в пространстве)",
        "tags": [
          "tasks"
        ],
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import os\n\nfrom shtab_sdk import ApiError, ShtabClient\n\nclient = ShtabClient(os.environ[\"SHTAB_TOKEN\"], token_type=\"personal\")\ntry:\n    result = client.tasks_view_checklists_edit_partial_update(path={'id': 1, 'task_id': '1', 'team_id': '1', 'view_id': '1'}, body={})\n    print(result)\nexcept ApiError as error:\n    print(error.status, error.code, error.body)\n    raise"
          },
          {
            "lang": "TypeScript",
            "source": "import { ApiError, ShtabClient } from \"@shtabapp/sdk\";\n\nconst token = process.env.SHTAB_TOKEN;\nif (!token) throw new Error(\"Set SHTAB_TOKEN\");\nconst client = new ShtabClient(token, { tokenType: \"personal\" });\ntry {\n  const result = await client.tasksViewChecklistsEditPartialUpdate({\n    \"path\": {\n      \"team_id\": \"1\",\n      \"view_id\": \"1\",\n      \"task_id\": \"1\",\n      \"id\": 1\n    },\n    \"body\": {}\n  });\n  console.log(result);\n} catch (error) {\n  if (error instanceof ApiError) console.error(error.status, error.code, error.body);\n  throw error;\n}"
          }
        ],
        "x-shtab-scope": "tasks.checklists:write",
        "x-shtab-sdk": {
          "python": "tasks_view_checklists_edit_partial_update",
          "typescript": "tasksViewChecklistsEditPartialUpdate"
        },
        "x-shtab-token-types": [
          "personal",
          "team"
        ]
      },
      "put": {
        "description": "Создание, список, редактирование, удаление пункта чек листа.\nСписок возвращает чек-листы карточки с вложенными пунктами.",
        "operationId": "api_tasks_view_checklists_edit_update",
        "parameters": [
          {
            "in": "body",
            "name": "data",
            "required": true,
            "schema": {
              "$ref": "#/definitions/PublicCheckListUpdate"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "schema": {
              "$ref": "#/definitions/PublicCheckList"
            }
          },
          "400": {
            "description": "Параметры или тело запроса не прошли проверку.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "401": {
            "description": "Токен отсутствует или недействителен.",
            "schema": {
              "$ref": "#/definitions/PublicAuthenticationError"
            }
          },
          "402": {
            "description": "Тариф команды не включает запрошенную возможность.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "403": {
            "description": "Токену не выдан нужный грант или у пользователя отсутствуют права доступа.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "404": {
            "description": "Метод недоступен токену или объект отсутствует в доступной области.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "429": {
            "description": "Превышен лимит запросов. Заголовок Retry-After указывает время ожидания в секундах.",
            "headers": {
              "Retry-After": {
                "description": "Секунд до следующей попытки.",
                "type": "integer"
              }
            },
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          }
        },
        "summary": "Обновить пункт чек-листа задачи (в пространстве)",
        "tags": [
          "tasks"
        ],
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import os\n\nfrom shtab_sdk import ApiError, ShtabClient\n\nclient = ShtabClient(os.environ[\"SHTAB_TOKEN\"], token_type=\"personal\")\ntry:\n    result = client.tasks_view_checklists_edit_update(path={'id': 1, 'task_id': '1', 'team_id': '1', 'view_id': '1'}, body={})\n    print(result)\nexcept ApiError as error:\n    print(error.status, error.code, error.body)\n    raise"
          },
          {
            "lang": "TypeScript",
            "source": "import { ApiError, ShtabClient } from \"@shtabapp/sdk\";\n\nconst token = process.env.SHTAB_TOKEN;\nif (!token) throw new Error(\"Set SHTAB_TOKEN\");\nconst client = new ShtabClient(token, { tokenType: \"personal\" });\ntry {\n  const result = await client.tasksViewChecklistsEditUpdate({\n    \"path\": {\n      \"team_id\": \"1\",\n      \"view_id\": \"1\",\n      \"task_id\": \"1\",\n      \"id\": 1\n    },\n    \"body\": {}\n  });\n  console.log(result);\n} catch (error) {\n  if (error instanceof ApiError) console.error(error.status, error.code, error.body);\n  throw error;\n}"
          }
        ],
        "x-shtab-scope": "tasks.checklists:write",
        "x-shtab-sdk": {
          "python": "tasks_view_checklists_edit_update",
          "typescript": "tasksViewChecklistsEditUpdate"
        },
        "x-shtab-token-types": [
          "personal",
          "team"
        ]
      }
    },
    "/api/tasks/{team_id}/view/{view_id}/comments/{task_id}/": {
      "parameters": [
        {
          "in": "path",
          "name": "team_id",
          "required": true,
          "type": "string"
        },
        {
          "in": "path",
          "name": "view_id",
          "required": true,
          "type": "string"
        },
        {
          "in": "path",
          "name": "task_id",
          "required": true,
          "type": "string"
        }
      ],
      "post": {
        "description": "Создание, список, редактирование, удаление комментария",
        "operationId": "api_tasks_view_comments_create",
        "parameters": [
          {
            "in": "body",
            "name": "data",
            "required": true,
            "schema": {
              "$ref": "#/definitions/PublicTaskCommentCreate"
            }
          }
        ],
        "responses": {
          "201": {
            "description": "",
            "schema": {
              "$ref": "#/definitions/PublicTaskComment"
            }
          },
          "400": {
            "description": "Параметры или тело запроса не прошли проверку.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "401": {
            "description": "Токен отсутствует или недействителен.",
            "schema": {
              "$ref": "#/definitions/PublicAuthenticationError"
            }
          },
          "402": {
            "description": "Тариф команды не включает запрошенную возможность.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "403": {
            "description": "Токену не выдан нужный грант или у пользователя отсутствуют права доступа.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "404": {
            "description": "Метод недоступен токену или объект отсутствует в доступной области.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "429": {
            "description": "Превышен лимит запросов. Заголовок Retry-After указывает время ожидания в секундах.",
            "headers": {
              "Retry-After": {
                "description": "Секунд до следующей попытки.",
                "type": "integer"
              }
            },
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          }
        },
        "summary": "Добавить комментарий к задаче (в пространстве)",
        "tags": [
          "tasks"
        ],
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import os\n\nfrom shtab_sdk import ApiError, ShtabClient\n\nclient = ShtabClient(os.environ[\"SHTAB_TOKEN\"], token_type=\"personal\")\ntry:\n    result = client.tasks_view_comments_create(path={'task_id': '1', 'team_id': '1', 'view_id': '1'}, body={})\n    print(result)\nexcept ApiError as error:\n    print(error.status, error.code, error.body)\n    raise"
          },
          {
            "lang": "TypeScript",
            "source": "import { ApiError, ShtabClient } from \"@shtabapp/sdk\";\n\nconst token = process.env.SHTAB_TOKEN;\nif (!token) throw new Error(\"Set SHTAB_TOKEN\");\nconst client = new ShtabClient(token, { tokenType: \"personal\" });\ntry {\n  const result = await client.tasksViewCommentsCreate({\n    \"path\": {\n      \"team_id\": \"1\",\n      \"view_id\": \"1\",\n      \"task_id\": \"1\"\n    },\n    \"body\": {}\n  });\n  console.log(result);\n} catch (error) {\n  if (error instanceof ApiError) console.error(error.status, error.code, error.body);\n  throw error;\n}"
          }
        ],
        "x-shtab-scope": "tasks.comments:write",
        "x-shtab-sdk": {
          "python": "tasks_view_comments_create",
          "typescript": "tasksViewCommentsCreate"
        },
        "x-shtab-token-types": [
          "personal",
          "team"
        ]
      }
    },
    "/api/tasks/{team_id}/view/{view_id}/comments/{task_id}/files/": {
      "parameters": [
        {
          "in": "path",
          "name": "team_id",
          "required": true,
          "type": "string"
        },
        {
          "in": "path",
          "name": "view_id",
          "required": true,
          "type": "string"
        },
        {
          "in": "path",
          "name": "task_id",
          "required": true,
          "type": "string"
        }
      ],
      "post": {
        "description": "Создание, список и удаление файла в комментарии.",
        "operationId": "api_tasks_view_comments_files_create",
        "parameters": [
          {
            "in": "body",
            "name": "data",
            "required": true,
            "schema": {
              "$ref": "#/definitions/PublicCommentFileCreate"
            }
          }
        ],
        "responses": {
          "201": {
            "description": "",
            "schema": {
              "$ref": "#/definitions/PublicCommentFile"
            }
          },
          "400": {
            "description": "Параметры или тело запроса не прошли проверку.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "401": {
            "description": "Токен отсутствует или недействителен.",
            "schema": {
              "$ref": "#/definitions/PublicAuthenticationError"
            }
          },
          "402": {
            "description": "Тариф команды не включает запрошенную возможность.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "403": {
            "description": "Токену не выдан нужный грант или у пользователя отсутствуют права доступа.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "404": {
            "description": "Метод недоступен токену или объект отсутствует в доступной области.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "429": {
            "description": "Превышен лимит запросов. Заголовок Retry-After указывает время ожидания в секундах.",
            "headers": {
              "Retry-After": {
                "description": "Секунд до следующей попытки.",
                "type": "integer"
              }
            },
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          }
        },
        "summary": "Загрузить файл для комментария к задаче (в пространстве)",
        "tags": [
          "tasks"
        ],
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import os\n\nfrom shtab_sdk import ApiError, ShtabClient\n\nclient = ShtabClient(os.environ[\"SHTAB_TOKEN\"], token_type=\"personal\")\ntry:\n    result = client.tasks_view_comments_files_create(path={'task_id': '1', 'team_id': '1', 'view_id': '1'}, body={})\n    print(result)\nexcept ApiError as error:\n    print(error.status, error.code, error.body)\n    raise"
          },
          {
            "lang": "TypeScript",
            "source": "import { ApiError, ShtabClient } from \"@shtabapp/sdk\";\n\nconst token = process.env.SHTAB_TOKEN;\nif (!token) throw new Error(\"Set SHTAB_TOKEN\");\nconst client = new ShtabClient(token, { tokenType: \"personal\" });\ntry {\n  const result = await client.tasksViewCommentsFilesCreate({\n    \"path\": {\n      \"team_id\": \"1\",\n      \"view_id\": \"1\",\n      \"task_id\": \"1\"\n    },\n    \"body\": {}\n  });\n  console.log(result);\n} catch (error) {\n  if (error instanceof ApiError) console.error(error.status, error.code, error.body);\n  throw error;\n}"
          }
        ],
        "x-shtab-scope": "tasks.comments:write",
        "x-shtab-sdk": {
          "python": "tasks_view_comments_files_create",
          "typescript": "tasksViewCommentsFilesCreate"
        },
        "x-shtab-token-types": [
          "personal",
          "team"
        ]
      }
    },
    "/api/tasks/{team_id}/view/{view_id}/comments/{task_id}/files/{id}/": {
      "delete": {
        "description": "Создание, список и удаление файла в комментарии.",
        "operationId": "api_tasks_view_comments_files_delete",
        "parameters": [],
        "responses": {
          "204": {
            "description": ""
          },
          "400": {
            "description": "Параметры или тело запроса не прошли проверку.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "401": {
            "description": "Токен отсутствует или недействителен.",
            "schema": {
              "$ref": "#/definitions/PublicAuthenticationError"
            }
          },
          "402": {
            "description": "Тариф команды не включает запрошенную возможность.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "403": {
            "description": "Токену не выдан нужный грант или у пользователя отсутствуют права доступа.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "404": {
            "description": "Метод недоступен токену или объект отсутствует в доступной области.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "429": {
            "description": "Превышен лимит запросов. Заголовок Retry-After указывает время ожидания в секундах.",
            "headers": {
              "Retry-After": {
                "description": "Секунд до следующей попытки.",
                "type": "integer"
              }
            },
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          }
        },
        "summary": "Удалить файл комментария к задаче (в пространстве)",
        "tags": [
          "tasks"
        ],
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import os\n\nfrom shtab_sdk import ApiError, ShtabClient\n\nclient = ShtabClient(os.environ[\"SHTAB_TOKEN\"], token_type=\"personal\")\ntry:\n    result = client.tasks_view_comments_files_delete(path={'id': '00000000-0000-4000-8000-000000000001',\n     'task_id': '1',\n     'team_id': '1',\n     'view_id': '1'})\n    print(result)\nexcept ApiError as error:\n    print(error.status, error.code, error.body)\n    raise"
          },
          {
            "lang": "TypeScript",
            "source": "import { ApiError, ShtabClient } from \"@shtabapp/sdk\";\n\nconst token = process.env.SHTAB_TOKEN;\nif (!token) throw new Error(\"Set SHTAB_TOKEN\");\nconst client = new ShtabClient(token, { tokenType: \"personal\" });\ntry {\n  const result = await client.tasksViewCommentsFilesDelete({\n    \"path\": {\n      \"team_id\": \"1\",\n      \"view_id\": \"1\",\n      \"task_id\": \"1\",\n      \"id\": \"00000000-0000-4000-8000-000000000001\"\n    }\n  });\n  console.log(result);\n} catch (error) {\n  if (error instanceof ApiError) console.error(error.status, error.code, error.body);\n  throw error;\n}"
          }
        ],
        "x-shtab-scope": "tasks.comments:write",
        "x-shtab-sdk": {
          "python": "tasks_view_comments_files_delete",
          "typescript": "tasksViewCommentsFilesDelete"
        },
        "x-shtab-token-types": [
          "personal",
          "team"
        ]
      },
      "parameters": [
        {
          "in": "path",
          "name": "team_id",
          "required": true,
          "type": "string"
        },
        {
          "in": "path",
          "name": "view_id",
          "required": true,
          "type": "string"
        },
        {
          "in": "path",
          "name": "task_id",
          "required": true,
          "type": "string"
        },
        {
          "description": "A UUID string identifying this Файл комментария.",
          "format": "uuid",
          "in": "path",
          "name": "id",
          "required": true,
          "type": "string"
        }
      ]
    },
    "/api/tasks/{team_id}/view/{view_id}/comments/{task_id}/{task_comment_id}/": {
      "delete": {
        "description": "Создание, список, редактирование, удаление комментария",
        "operationId": "api_tasks_view_comments_delete",
        "parameters": [],
        "responses": {
          "204": {
            "description": ""
          },
          "400": {
            "description": "Параметры или тело запроса не прошли проверку.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "401": {
            "description": "Токен отсутствует или недействителен.",
            "schema": {
              "$ref": "#/definitions/PublicAuthenticationError"
            }
          },
          "402": {
            "description": "Тариф команды не включает запрошенную возможность.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "403": {
            "description": "Токену не выдан нужный грант или у пользователя отсутствуют права доступа.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "404": {
            "description": "Метод недоступен токену или объект отсутствует в доступной области.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "429": {
            "description": "Превышен лимит запросов. Заголовок Retry-After указывает время ожидания в секундах.",
            "headers": {
              "Retry-After": {
                "description": "Секунд до следующей попытки.",
                "type": "integer"
              }
            },
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          }
        },
        "summary": "Удалить комментарий к задаче (в пространстве)",
        "tags": [
          "tasks"
        ],
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import os\n\nfrom shtab_sdk import ApiError, ShtabClient\n\nclient = ShtabClient(os.environ[\"SHTAB_TOKEN\"], token_type=\"personal\")\ntry:\n    result = client.tasks_view_comments_delete(path={'task_comment_id': '1', 'task_id': '1', 'team_id': '1', 'view_id': '1'})\n    print(result)\nexcept ApiError as error:\n    print(error.status, error.code, error.body)\n    raise"
          },
          {
            "lang": "TypeScript",
            "source": "import { ApiError, ShtabClient } from \"@shtabapp/sdk\";\n\nconst token = process.env.SHTAB_TOKEN;\nif (!token) throw new Error(\"Set SHTAB_TOKEN\");\nconst client = new ShtabClient(token, { tokenType: \"personal\" });\ntry {\n  const result = await client.tasksViewCommentsDelete({\n    \"path\": {\n      \"team_id\": \"1\",\n      \"view_id\": \"1\",\n      \"task_id\": \"1\",\n      \"task_comment_id\": \"1\"\n    }\n  });\n  console.log(result);\n} catch (error) {\n  if (error instanceof ApiError) console.error(error.status, error.code, error.body);\n  throw error;\n}"
          }
        ],
        "x-shtab-scope": "tasks.comments:write",
        "x-shtab-sdk": {
          "python": "tasks_view_comments_delete",
          "typescript": "tasksViewCommentsDelete"
        },
        "x-shtab-token-types": [
          "personal",
          "team"
        ]
      },
      "parameters": [
        {
          "in": "path",
          "name": "team_id",
          "required": true,
          "type": "string"
        },
        {
          "in": "path",
          "name": "view_id",
          "required": true,
          "type": "string"
        },
        {
          "in": "path",
          "name": "task_id",
          "required": true,
          "type": "string"
        },
        {
          "in": "path",
          "name": "task_comment_id",
          "required": true,
          "type": "string"
        }
      ],
      "put": {
        "description": "Создание, список, редактирование, удаление комментария",
        "operationId": "api_tasks_view_comments_update",
        "parameters": [
          {
            "in": "body",
            "name": "data",
            "required": true,
            "schema": {
              "$ref": "#/definitions/PublicTaskCommentUpdate"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "schema": {
              "$ref": "#/definitions/PublicTaskComment"
            }
          },
          "400": {
            "description": "Параметры или тело запроса не прошли проверку.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "401": {
            "description": "Токен отсутствует или недействителен.",
            "schema": {
              "$ref": "#/definitions/PublicAuthenticationError"
            }
          },
          "402": {
            "description": "Тариф команды не включает запрошенную возможность.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "403": {
            "description": "Токену не выдан нужный грант или у пользователя отсутствуют права доступа.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "404": {
            "description": "Метод недоступен токену или объект отсутствует в доступной области.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "429": {
            "description": "Превышен лимит запросов. Заголовок Retry-After указывает время ожидания в секундах.",
            "headers": {
              "Retry-After": {
                "description": "Секунд до следующей попытки.",
                "type": "integer"
              }
            },
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          }
        },
        "summary": "Обновить комментарий к задаче (в пространстве)",
        "tags": [
          "tasks"
        ],
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import os\n\nfrom shtab_sdk import ApiError, ShtabClient\n\nclient = ShtabClient(os.environ[\"SHTAB_TOKEN\"], token_type=\"personal\")\ntry:\n    result = client.tasks_view_comments_update(path={'task_comment_id': '1', 'task_id': '1', 'team_id': '1', 'view_id': '1'}, body={})\n    print(result)\nexcept ApiError as error:\n    print(error.status, error.code, error.body)\n    raise"
          },
          {
            "lang": "TypeScript",
            "source": "import { ApiError, ShtabClient } from \"@shtabapp/sdk\";\n\nconst token = process.env.SHTAB_TOKEN;\nif (!token) throw new Error(\"Set SHTAB_TOKEN\");\nconst client = new ShtabClient(token, { tokenType: \"personal\" });\ntry {\n  const result = await client.tasksViewCommentsUpdate({\n    \"path\": {\n      \"team_id\": \"1\",\n      \"view_id\": \"1\",\n      \"task_id\": \"1\",\n      \"task_comment_id\": \"1\"\n    },\n    \"body\": {}\n  });\n  console.log(result);\n} catch (error) {\n  if (error instanceof ApiError) console.error(error.status, error.code, error.body);\n  throw error;\n}"
          }
        ],
        "x-shtab-scope": "tasks.comments:write",
        "x-shtab-sdk": {
          "python": "tasks_view_comments_update",
          "typescript": "tasksViewCommentsUpdate"
        },
        "x-shtab-token-types": [
          "personal",
          "team"
        ]
      }
    },
    "/api/tasks/{team_id}/view/{view_id}/customfields/{task_id}/create/": {
      "parameters": [
        {
          "in": "path",
          "name": "team_id",
          "required": true,
          "type": "string"
        },
        {
          "in": "path",
          "name": "view_id",
          "required": true,
          "type": "string"
        },
        {
          "in": "path",
          "name": "task_id",
          "required": true,
          "type": "string"
        }
      ],
      "post": {
        "description": "",
        "operationId": "api_tasks_view_customfields_create_create",
        "parameters": [
          {
            "in": "body",
            "name": "data",
            "required": true,
            "schema": {
              "$ref": "#/definitions/PublicTaskCustomFieldValueCreate"
            }
          }
        ],
        "responses": {
          "201": {
            "description": "",
            "schema": {
              "$ref": "#/definitions/PublicTaskCustomFieldValue"
            }
          },
          "400": {
            "description": "Параметры или тело запроса не прошли проверку.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "401": {
            "description": "Токен отсутствует или недействителен.",
            "schema": {
              "$ref": "#/definitions/PublicAuthenticationError"
            }
          },
          "402": {
            "description": "Тариф команды не включает запрошенную возможность.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "403": {
            "description": "Токену не выдан нужный грант или у пользователя отсутствуют права доступа.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "404": {
            "description": "Метод недоступен токену или объект отсутствует в доступной области.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "429": {
            "description": "Превышен лимит запросов. Заголовок Retry-After указывает время ожидания в секундах.",
            "headers": {
              "Retry-After": {
                "description": "Секунд до следующей попытки.",
                "type": "integer"
              }
            },
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          }
        },
        "summary": "Добавить значение пользовательского поля задачи (в пространстве)",
        "tags": [
          "tasks"
        ],
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import os\n\nfrom shtab_sdk import ApiError, ShtabClient\n\nclient = ShtabClient(os.environ[\"SHTAB_TOKEN\"], token_type=\"personal\")\ntry:\n    result = client.tasks_view_customfields_create_create(path={'task_id': '1', 'team_id': '1', 'view_id': '1'}, body={'field': 'пример'})\n    print(result)\nexcept ApiError as error:\n    print(error.status, error.code, error.body)\n    raise"
          },
          {
            "lang": "TypeScript",
            "source": "import { ApiError, ShtabClient } from \"@shtabapp/sdk\";\n\nconst token = process.env.SHTAB_TOKEN;\nif (!token) throw new Error(\"Set SHTAB_TOKEN\");\nconst client = new ShtabClient(token, { tokenType: \"personal\" });\ntry {\n  const result = await client.tasksViewCustomfieldsCreateCreate({\n    \"path\": {\n      \"team_id\": \"1\",\n      \"view_id\": \"1\",\n      \"task_id\": \"1\"\n    },\n    \"body\": {\n      \"field\": \"пример\"\n    }\n  });\n  console.log(result);\n} catch (error) {\n  if (error instanceof ApiError) console.error(error.status, error.code, error.body);\n  throw error;\n}"
          }
        ],
        "x-shtab-scope": "tasks.customfields:write",
        "x-shtab-sdk": {
          "python": "tasks_view_customfields_create_create",
          "typescript": "tasksViewCustomfieldsCreateCreate"
        },
        "x-shtab-token-types": [
          "personal",
          "team"
        ]
      }
    },
    "/api/tasks/{team_id}/view/{view_id}/customfields/{task_id}/delete/{id}/": {
      "delete": {
        "description": "",
        "operationId": "api_tasks_view_customfields_delete_delete",
        "parameters": [],
        "responses": {
          "204": {
            "description": ""
          },
          "400": {
            "description": "Параметры или тело запроса не прошли проверку.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "401": {
            "description": "Токен отсутствует или недействителен.",
            "schema": {
              "$ref": "#/definitions/PublicAuthenticationError"
            }
          },
          "402": {
            "description": "Тариф команды не включает запрошенную возможность.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "403": {
            "description": "Токену не выдан нужный грант или у пользователя отсутствуют права доступа.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "404": {
            "description": "Метод недоступен токену или объект отсутствует в доступной области.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "429": {
            "description": "Превышен лимит запросов. Заголовок Retry-After указывает время ожидания в секундах.",
            "headers": {
              "Retry-After": {
                "description": "Секунд до следующей попытки.",
                "type": "integer"
              }
            },
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          }
        },
        "summary": "Удалить значение пользовательского поля задачи (в пространстве)",
        "tags": [
          "tasks"
        ],
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import os\n\nfrom shtab_sdk import ApiError, ShtabClient\n\nclient = ShtabClient(os.environ[\"SHTAB_TOKEN\"], token_type=\"personal\")\ntry:\n    result = client.tasks_view_customfields_delete_delete(path={'id': 1, 'task_id': '1', 'team_id': '1', 'view_id': '1'})\n    print(result)\nexcept ApiError as error:\n    print(error.status, error.code, error.body)\n    raise"
          },
          {
            "lang": "TypeScript",
            "source": "import { ApiError, ShtabClient } from \"@shtabapp/sdk\";\n\nconst token = process.env.SHTAB_TOKEN;\nif (!token) throw new Error(\"Set SHTAB_TOKEN\");\nconst client = new ShtabClient(token, { tokenType: \"personal\" });\ntry {\n  const result = await client.tasksViewCustomfieldsDeleteDelete({\n    \"path\": {\n      \"team_id\": \"1\",\n      \"view_id\": \"1\",\n      \"task_id\": \"1\",\n      \"id\": 1\n    }\n  });\n  console.log(result);\n} catch (error) {\n  if (error instanceof ApiError) console.error(error.status, error.code, error.body);\n  throw error;\n}"
          }
        ],
        "x-shtab-scope": "tasks.customfields:write",
        "x-shtab-sdk": {
          "python": "tasks_view_customfields_delete_delete",
          "typescript": "tasksViewCustomfieldsDeleteDelete"
        },
        "x-shtab-token-types": [
          "personal",
          "team"
        ]
      },
      "parameters": [
        {
          "in": "path",
          "name": "team_id",
          "required": true,
          "type": "string"
        },
        {
          "in": "path",
          "name": "view_id",
          "required": true,
          "type": "string"
        },
        {
          "in": "path",
          "name": "task_id",
          "required": true,
          "type": "string"
        },
        {
          "description": "A unique integer value identifying this Значение пользовательских полей в задаче.",
          "in": "path",
          "name": "id",
          "required": true,
          "type": "integer"
        }
      ]
    },
    "/api/tasks/{team_id}/view/{view_id}/customfields/{task_id}/update/{id}/": {
      "parameters": [
        {
          "in": "path",
          "name": "team_id",
          "required": true,
          "type": "string"
        },
        {
          "in": "path",
          "name": "view_id",
          "required": true,
          "type": "string"
        },
        {
          "in": "path",
          "name": "task_id",
          "required": true,
          "type": "string"
        },
        {
          "description": "A unique integer value identifying this Значение пользовательских полей в задаче.",
          "in": "path",
          "name": "id",
          "required": true,
          "type": "integer"
        }
      ],
      "patch": {
        "description": "",
        "operationId": "api_tasks_view_customfields_update_partial_update",
        "parameters": [
          {
            "in": "body",
            "name": "data",
            "required": true,
            "schema": {
              "$ref": "#/definitions/PublicTaskCustomFieldValueUpdate"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "schema": {
              "$ref": "#/definitions/PublicTaskCustomFieldValue"
            }
          },
          "400": {
            "description": "Параметры или тело запроса не прошли проверку.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "401": {
            "description": "Токен отсутствует или недействителен.",
            "schema": {
              "$ref": "#/definitions/PublicAuthenticationError"
            }
          },
          "402": {
            "description": "Тариф команды не включает запрошенную возможность.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "403": {
            "description": "Токену не выдан нужный грант или у пользователя отсутствуют права доступа.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "404": {
            "description": "Метод недоступен токену или объект отсутствует в доступной области.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "429": {
            "description": "Превышен лимит запросов. Заголовок Retry-After указывает время ожидания в секундах.",
            "headers": {
              "Retry-After": {
                "description": "Секунд до следующей попытки.",
                "type": "integer"
              }
            },
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          }
        },
        "summary": "Изменить значение пользовательского поля задачи (в пространстве)",
        "tags": [
          "tasks"
        ],
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import os\n\nfrom shtab_sdk import ApiError, ShtabClient\n\nclient = ShtabClient(os.environ[\"SHTAB_TOKEN\"], token_type=\"personal\")\ntry:\n    result = client.tasks_view_customfields_update_partial_update(path={'id': 1, 'task_id': '1', 'team_id': '1', 'view_id': '1'}, body={})\n    print(result)\nexcept ApiError as error:\n    print(error.status, error.code, error.body)\n    raise"
          },
          {
            "lang": "TypeScript",
            "source": "import { ApiError, ShtabClient } from \"@shtabapp/sdk\";\n\nconst token = process.env.SHTAB_TOKEN;\nif (!token) throw new Error(\"Set SHTAB_TOKEN\");\nconst client = new ShtabClient(token, { tokenType: \"personal\" });\ntry {\n  const result = await client.tasksViewCustomfieldsUpdatePartialUpdate({\n    \"path\": {\n      \"team_id\": \"1\",\n      \"view_id\": \"1\",\n      \"task_id\": \"1\",\n      \"id\": 1\n    },\n    \"body\": {}\n  });\n  console.log(result);\n} catch (error) {\n  if (error instanceof ApiError) console.error(error.status, error.code, error.body);\n  throw error;\n}"
          }
        ],
        "x-shtab-scope": "tasks.customfields:write",
        "x-shtab-sdk": {
          "python": "tasks_view_customfields_update_partial_update",
          "typescript": "tasksViewCustomfieldsUpdatePartialUpdate"
        },
        "x-shtab-token-types": [
          "personal",
          "team"
        ]
      }
    },
    "/api/tasks/{team_id}/view/{view_id}/executors/create/": {
      "parameters": [
        {
          "in": "path",
          "name": "team_id",
          "required": true,
          "type": "string"
        },
        {
          "in": "path",
          "name": "view_id",
          "required": true,
          "type": "string"
        }
      ],
      "post": {
        "description": "Создание исполнителей задачи",
        "operationId": "api_tasks_view_executors_create_create",
        "parameters": [
          {
            "in": "body",
            "name": "data",
            "required": true,
            "schema": {
              "$ref": "#/definitions/PublicTaskExecutorCreate"
            }
          }
        ],
        "responses": {
          "201": {
            "description": "",
            "schema": {
              "$ref": "#/definitions/PublicTaskExecutor"
            }
          },
          "400": {
            "description": "Параметры или тело запроса не прошли проверку.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "401": {
            "description": "Токен отсутствует или недействителен.",
            "schema": {
              "$ref": "#/definitions/PublicAuthenticationError"
            }
          },
          "402": {
            "description": "Тариф команды не включает запрошенную возможность.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "403": {
            "description": "Токену не выдан нужный грант или у пользователя отсутствуют права доступа.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "404": {
            "description": "Метод недоступен токену или объект отсутствует в доступной области.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "429": {
            "description": "Превышен лимит запросов. Заголовок Retry-After указывает время ожидания в секундах.",
            "headers": {
              "Retry-After": {
                "description": "Секунд до следующей попытки.",
                "type": "integer"
              }
            },
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          }
        },
        "summary": "Назначить исполнителя задачи (в пространстве)",
        "tags": [
          "tasks"
        ],
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import os\n\nfrom shtab_sdk import ApiError, ShtabClient\n\nclient = ShtabClient(os.environ[\"SHTAB_TOKEN\"], token_type=\"personal\")\ntry:\n    result = client.tasks_view_executors_create_create(path={'team_id': '1', 'view_id': '1'}, body={'member_id': 1, 'member_type': 'team_member', 'task': 1})\n    print(result)\nexcept ApiError as error:\n    print(error.status, error.code, error.body)\n    raise"
          },
          {
            "lang": "TypeScript",
            "source": "import { ApiError, ShtabClient } from \"@shtabapp/sdk\";\n\nconst token = process.env.SHTAB_TOKEN;\nif (!token) throw new Error(\"Set SHTAB_TOKEN\");\nconst client = new ShtabClient(token, { tokenType: \"personal\" });\ntry {\n  const result = await client.tasksViewExecutorsCreateCreate({\n    \"path\": {\n      \"team_id\": \"1\",\n      \"view_id\": \"1\"\n    },\n    \"body\": {\n      \"task\": 1,\n      \"member_type\": \"team_member\",\n      \"member_id\": 1\n    }\n  });\n  console.log(result);\n} catch (error) {\n  if (error instanceof ApiError) console.error(error.status, error.code, error.body);\n  throw error;\n}"
          }
        ],
        "x-shtab-scope": "tasks.executors:write",
        "x-shtab-sdk": {
          "python": "tasks_view_executors_create_create",
          "typescript": "tasksViewExecutorsCreateCreate"
        },
        "x-shtab-token-types": [
          "personal",
          "team"
        ]
      }
    },
    "/api/tasks/{team_id}/view/{view_id}/executors/{task_id}/delete/{task_executor_id}/": {
      "delete": {
        "description": "Удаление исполнителя задачи",
        "operationId": "api_tasks_view_executors_delete_delete",
        "parameters": [],
        "responses": {
          "204": {
            "description": ""
          },
          "400": {
            "description": "Параметры или тело запроса не прошли проверку.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "401": {
            "description": "Токен отсутствует или недействителен.",
            "schema": {
              "$ref": "#/definitions/PublicAuthenticationError"
            }
          },
          "402": {
            "description": "Тариф команды не включает запрошенную возможность.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "403": {
            "description": "Токену не выдан нужный грант или у пользователя отсутствуют права доступа.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "404": {
            "description": "Метод недоступен токену или объект отсутствует в доступной области.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "429": {
            "description": "Превышен лимит запросов. Заголовок Retry-After указывает время ожидания в секундах.",
            "headers": {
              "Retry-After": {
                "description": "Секунд до следующей попытки.",
                "type": "integer"
              }
            },
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          }
        },
        "summary": "Снять исполнителя с задачи (в пространстве)",
        "tags": [
          "tasks"
        ],
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import os\n\nfrom shtab_sdk import ApiError, ShtabClient\n\nclient = ShtabClient(os.environ[\"SHTAB_TOKEN\"], token_type=\"personal\")\ntry:\n    result = client.tasks_view_executors_delete_delete(path={'task_executor_id': '1',\n     'task_id': '1',\n     'team_id': '1',\n     'view_id': '1'})\n    print(result)\nexcept ApiError as error:\n    print(error.status, error.code, error.body)\n    raise"
          },
          {
            "lang": "TypeScript",
            "source": "import { ApiError, ShtabClient } from \"@shtabapp/sdk\";\n\nconst token = process.env.SHTAB_TOKEN;\nif (!token) throw new Error(\"Set SHTAB_TOKEN\");\nconst client = new ShtabClient(token, { tokenType: \"personal\" });\ntry {\n  const result = await client.tasksViewExecutorsDeleteDelete({\n    \"path\": {\n      \"team_id\": \"1\",\n      \"view_id\": \"1\",\n      \"task_id\": \"1\",\n      \"task_executor_id\": \"1\"\n    }\n  });\n  console.log(result);\n} catch (error) {\n  if (error instanceof ApiError) console.error(error.status, error.code, error.body);\n  throw error;\n}"
          }
        ],
        "x-shtab-scope": "tasks.executors:write",
        "x-shtab-sdk": {
          "python": "tasks_view_executors_delete_delete",
          "typescript": "tasksViewExecutorsDeleteDelete"
        },
        "x-shtab-token-types": [
          "personal",
          "team"
        ]
      },
      "parameters": [
        {
          "in": "path",
          "name": "team_id",
          "required": true,
          "type": "string"
        },
        {
          "in": "path",
          "name": "view_id",
          "required": true,
          "type": "string"
        },
        {
          "in": "path",
          "name": "task_id",
          "required": true,
          "type": "string"
        },
        {
          "in": "path",
          "name": "task_executor_id",
          "required": true,
          "type": "string"
        }
      ]
    },
    "/api/tasks/{team_id}/view/{view_id}/executors/{task_id}/update/{task_executor_id}/": {
      "parameters": [
        {
          "in": "path",
          "name": "team_id",
          "required": true,
          "type": "string"
        },
        {
          "in": "path",
          "name": "view_id",
          "required": true,
          "type": "string"
        },
        {
          "in": "path",
          "name": "task_id",
          "required": true,
          "type": "string"
        },
        {
          "in": "path",
          "name": "task_executor_id",
          "required": true,
          "type": "string"
        }
      ],
      "patch": {
        "description": "Обновление статуса завершения задачи исполнителем",
        "operationId": "api_tasks_view_executors_update_partial_update",
        "parameters": [
          {
            "in": "body",
            "name": "data",
            "required": true,
            "schema": {
              "$ref": "#/definitions/PublicTaskExecutorUpdate"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "schema": {
              "$ref": "#/definitions/PublicTaskExecutor"
            }
          },
          "400": {
            "description": "Параметры или тело запроса не прошли проверку.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "401": {
            "description": "Токен отсутствует или недействителен.",
            "schema": {
              "$ref": "#/definitions/PublicAuthenticationError"
            }
          },
          "402": {
            "description": "Тариф команды не включает запрошенную возможность.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "403": {
            "description": "Токену не выдан нужный грант или у пользователя отсутствуют права доступа.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "404": {
            "description": "Метод недоступен токену или объект отсутствует в доступной области.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "429": {
            "description": "Превышен лимит запросов. Заголовок Retry-After указывает время ожидания в секундах.",
            "headers": {
              "Retry-After": {
                "description": "Секунд до следующей попытки.",
                "type": "integer"
              }
            },
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          }
        },
        "summary": "Изменить статус выполнения задачи исполнителем (в пространстве)",
        "tags": [
          "tasks"
        ],
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import os\n\nfrom shtab_sdk import ApiError, ShtabClient\n\nclient = ShtabClient(os.environ[\"SHTAB_TOKEN\"], token_type=\"personal\")\ntry:\n    result = client.tasks_view_executors_update_partial_update(path={'task_executor_id': '1',\n     'task_id': '1',\n     'team_id': '1',\n     'view_id': '1'}, body={})\n    print(result)\nexcept ApiError as error:\n    print(error.status, error.code, error.body)\n    raise"
          },
          {
            "lang": "TypeScript",
            "source": "import { ApiError, ShtabClient } from \"@shtabapp/sdk\";\n\nconst token = process.env.SHTAB_TOKEN;\nif (!token) throw new Error(\"Set SHTAB_TOKEN\");\nconst client = new ShtabClient(token, { tokenType: \"personal\" });\ntry {\n  const result = await client.tasksViewExecutorsUpdatePartialUpdate({\n    \"path\": {\n      \"team_id\": \"1\",\n      \"view_id\": \"1\",\n      \"task_id\": \"1\",\n      \"task_executor_id\": \"1\"\n    },\n    \"body\": {}\n  });\n  console.log(result);\n} catch (error) {\n  if (error instanceof ApiError) console.error(error.status, error.code, error.body);\n  throw error;\n}"
          }
        ],
        "x-shtab-scope": "tasks.executors:write",
        "x-shtab-sdk": {
          "python": "tasks_view_executors_update_partial_update",
          "typescript": "tasksViewExecutorsUpdatePartialUpdate"
        },
        "x-shtab-token-types": [
          "personal",
          "team"
        ]
      }
    },
    "/api/tasks/{team_id}/view/{view_id}/files/{task_id}/create/": {
      "parameters": [
        {
          "in": "path",
          "name": "team_id",
          "required": true,
          "type": "string"
        },
        {
          "in": "path",
          "name": "view_id",
          "required": true,
          "type": "string"
        },
        {
          "in": "path",
          "name": "task_id",
          "required": true,
          "type": "string"
        }
      ],
      "post": {
        "description": "Создание, список, редактирование, удаление файла (файлов) в задачи.",
        "operationId": "api_tasks_view_files_create_create",
        "parameters": [
          {
            "in": "body",
            "name": "data",
            "required": true,
            "schema": {
              "$ref": "#/definitions/PublicTaskFileCreate"
            }
          }
        ],
        "responses": {
          "201": {
            "description": "",
            "schema": {
              "$ref": "#/definitions/PublicTaskFile"
            }
          },
          "400": {
            "description": "Параметры или тело запроса не прошли проверку.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "401": {
            "description": "Токен отсутствует или недействителен.",
            "schema": {
              "$ref": "#/definitions/PublicAuthenticationError"
            }
          },
          "402": {
            "description": "Тариф команды не включает запрошенную возможность.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "403": {
            "description": "Токену не выдан нужный грант или у пользователя отсутствуют права доступа.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "404": {
            "description": "Метод недоступен токену или объект отсутствует в доступной области.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "429": {
            "description": "Превышен лимит запросов. Заголовок Retry-After указывает время ожидания в секундах.",
            "headers": {
              "Retry-After": {
                "description": "Секунд до следующей попытки.",
                "type": "integer"
              }
            },
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          }
        },
        "summary": "Прикрепить файл к задаче (в пространстве)",
        "tags": [
          "tasks"
        ],
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import os\n\nfrom shtab_sdk import ApiError, ShtabClient\n\nclient = ShtabClient(os.environ[\"SHTAB_TOKEN\"], token_type=\"personal\")\ntry:\n    result = client.tasks_view_files_create_create(path={'task_id': '1', 'team_id': '1', 'view_id': '1'}, body={})\n    print(result)\nexcept ApiError as error:\n    print(error.status, error.code, error.body)\n    raise"
          },
          {
            "lang": "TypeScript",
            "source": "import { ApiError, ShtabClient } from \"@shtabapp/sdk\";\n\nconst token = process.env.SHTAB_TOKEN;\nif (!token) throw new Error(\"Set SHTAB_TOKEN\");\nconst client = new ShtabClient(token, { tokenType: \"personal\" });\ntry {\n  const result = await client.tasksViewFilesCreateCreate({\n    \"path\": {\n      \"team_id\": \"1\",\n      \"view_id\": \"1\",\n      \"task_id\": \"1\"\n    },\n    \"body\": {}\n  });\n  console.log(result);\n} catch (error) {\n  if (error instanceof ApiError) console.error(error.status, error.code, error.body);\n  throw error;\n}"
          }
        ],
        "x-shtab-scope": "tasks.files:write",
        "x-shtab-sdk": {
          "python": "tasks_view_files_create_create",
          "typescript": "tasksViewFilesCreateCreate"
        },
        "x-shtab-token-types": [
          "personal",
          "team"
        ]
      }
    },
    "/api/tasks/{team_id}/view/{view_id}/files/{task_id}/delete/{id}/": {
      "delete": {
        "description": "Создание, список, редактирование, удаление файла (файлов) в задачи.",
        "operationId": "api_tasks_view_files_delete_delete",
        "parameters": [],
        "responses": {
          "204": {
            "description": ""
          },
          "400": {
            "description": "Параметры или тело запроса не прошли проверку.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "401": {
            "description": "Токен отсутствует или недействителен.",
            "schema": {
              "$ref": "#/definitions/PublicAuthenticationError"
            }
          },
          "402": {
            "description": "Тариф команды не включает запрошенную возможность.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "403": {
            "description": "Токену не выдан нужный грант или у пользователя отсутствуют права доступа.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "404": {
            "description": "Метод недоступен токену или объект отсутствует в доступной области.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "429": {
            "description": "Превышен лимит запросов. Заголовок Retry-After указывает время ожидания в секундах.",
            "headers": {
              "Retry-After": {
                "description": "Секунд до следующей попытки.",
                "type": "integer"
              }
            },
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          }
        },
        "summary": "Удалить файл задачи (в пространстве)",
        "tags": [
          "tasks"
        ],
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import os\n\nfrom shtab_sdk import ApiError, ShtabClient\n\nclient = ShtabClient(os.environ[\"SHTAB_TOKEN\"], token_type=\"personal\")\ntry:\n    result = client.tasks_view_files_delete_delete(path={'id': '00000000-0000-4000-8000-000000000001',\n     'task_id': '1',\n     'team_id': '1',\n     'view_id': '1'})\n    print(result)\nexcept ApiError as error:\n    print(error.status, error.code, error.body)\n    raise"
          },
          {
            "lang": "TypeScript",
            "source": "import { ApiError, ShtabClient } from \"@shtabapp/sdk\";\n\nconst token = process.env.SHTAB_TOKEN;\nif (!token) throw new Error(\"Set SHTAB_TOKEN\");\nconst client = new ShtabClient(token, { tokenType: \"personal\" });\ntry {\n  const result = await client.tasksViewFilesDeleteDelete({\n    \"path\": {\n      \"team_id\": \"1\",\n      \"view_id\": \"1\",\n      \"task_id\": \"1\",\n      \"id\": \"00000000-0000-4000-8000-000000000001\"\n    }\n  });\n  console.log(result);\n} catch (error) {\n  if (error instanceof ApiError) console.error(error.status, error.code, error.body);\n  throw error;\n}"
          }
        ],
        "x-shtab-scope": "tasks.files:write",
        "x-shtab-sdk": {
          "python": "tasks_view_files_delete_delete",
          "typescript": "tasksViewFilesDeleteDelete"
        },
        "x-shtab-token-types": [
          "personal",
          "team"
        ]
      },
      "parameters": [
        {
          "in": "path",
          "name": "team_id",
          "required": true,
          "type": "string"
        },
        {
          "in": "path",
          "name": "view_id",
          "required": true,
          "type": "string"
        },
        {
          "in": "path",
          "name": "task_id",
          "required": true,
          "type": "string"
        },
        {
          "description": "A UUID string identifying this Файл задачи.",
          "format": "uuid",
          "in": "path",
          "name": "id",
          "required": true,
          "type": "string"
        }
      ]
    },
    "/api/tasks/{team_id}/view/{view_id}/responsible/create/": {
      "parameters": [
        {
          "in": "path",
          "name": "team_id",
          "required": true,
          "type": "string"
        },
        {
          "in": "path",
          "name": "view_id",
          "required": true,
          "type": "string"
        }
      ],
      "post": {
        "description": "Create task responsible.",
        "operationId": "api_tasks_view_responsible_create_create",
        "parameters": [
          {
            "in": "body",
            "name": "data",
            "required": true,
            "schema": {
              "$ref": "#/definitions/PublicTaskResponsibleCreate"
            }
          }
        ],
        "responses": {
          "201": {
            "description": "",
            "schema": {
              "$ref": "#/definitions/PublicTaskResponsible"
            }
          },
          "400": {
            "description": "Параметры или тело запроса не прошли проверку.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "401": {
            "description": "Токен отсутствует или недействителен.",
            "schema": {
              "$ref": "#/definitions/PublicAuthenticationError"
            }
          },
          "402": {
            "description": "Тариф команды не включает запрошенную возможность.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "403": {
            "description": "Токену не выдан нужный грант или у пользователя отсутствуют права доступа.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "404": {
            "description": "Метод недоступен токену или объект отсутствует в доступной области.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "429": {
            "description": "Превышен лимит запросов. Заголовок Retry-After указывает время ожидания в секундах.",
            "headers": {
              "Retry-After": {
                "description": "Секунд до следующей попытки.",
                "type": "integer"
              }
            },
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          }
        },
        "summary": "Назначить контролирующего задачи (в пространстве)",
        "tags": [
          "tasks"
        ],
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import os\n\nfrom shtab_sdk import ApiError, ShtabClient\n\nclient = ShtabClient(os.environ[\"SHTAB_TOKEN\"], token_type=\"personal\")\ntry:\n    result = client.tasks_view_responsible_create_create(path={'team_id': '1', 'view_id': '1'}, body={'member_id': 1, 'member_type': 'team_member', 'task': 1})\n    print(result)\nexcept ApiError as error:\n    print(error.status, error.code, error.body)\n    raise"
          },
          {
            "lang": "TypeScript",
            "source": "import { ApiError, ShtabClient } from \"@shtabapp/sdk\";\n\nconst token = process.env.SHTAB_TOKEN;\nif (!token) throw new Error(\"Set SHTAB_TOKEN\");\nconst client = new ShtabClient(token, { tokenType: \"personal\" });\ntry {\n  const result = await client.tasksViewResponsibleCreateCreate({\n    \"path\": {\n      \"team_id\": \"1\",\n      \"view_id\": \"1\"\n    },\n    \"body\": {\n      \"task\": 1,\n      \"member_type\": \"team_member\",\n      \"member_id\": 1\n    }\n  });\n  console.log(result);\n} catch (error) {\n  if (error instanceof ApiError) console.error(error.status, error.code, error.body);\n  throw error;\n}"
          }
        ],
        "x-shtab-scope": "tasks.responsibles:write",
        "x-shtab-sdk": {
          "python": "tasks_view_responsible_create_create",
          "typescript": "tasksViewResponsibleCreateCreate"
        },
        "x-shtab-token-types": [
          "personal",
          "team"
        ]
      }
    },
    "/api/tasks/{team_id}/view/{view_id}/responsible/{task_id}/delete/{task_responsible_id}/": {
      "delete": {
        "description": "Delete task responsible.",
        "operationId": "api_tasks_view_responsible_delete_delete",
        "parameters": [],
        "responses": {
          "204": {
            "description": ""
          },
          "400": {
            "description": "Параметры или тело запроса не прошли проверку.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "401": {
            "description": "Токен отсутствует или недействителен.",
            "schema": {
              "$ref": "#/definitions/PublicAuthenticationError"
            }
          },
          "402": {
            "description": "Тариф команды не включает запрошенную возможность.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "403": {
            "description": "Токену не выдан нужный грант или у пользователя отсутствуют права доступа.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "404": {
            "description": "Метод недоступен токену или объект отсутствует в доступной области.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "429": {
            "description": "Превышен лимит запросов. Заголовок Retry-After указывает время ожидания в секундах.",
            "headers": {
              "Retry-After": {
                "description": "Секунд до следующей попытки.",
                "type": "integer"
              }
            },
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          }
        },
        "summary": "Снять контролирующего с задачи (в пространстве)",
        "tags": [
          "tasks"
        ],
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import os\n\nfrom shtab_sdk import ApiError, ShtabClient\n\nclient = ShtabClient(os.environ[\"SHTAB_TOKEN\"], token_type=\"personal\")\ntry:\n    result = client.tasks_view_responsible_delete_delete(path={'task_id': '1',\n     'task_responsible_id': '1',\n     'team_id': '1',\n     'view_id': '1'})\n    print(result)\nexcept ApiError as error:\n    print(error.status, error.code, error.body)\n    raise"
          },
          {
            "lang": "TypeScript",
            "source": "import { ApiError, ShtabClient } from \"@shtabapp/sdk\";\n\nconst token = process.env.SHTAB_TOKEN;\nif (!token) throw new Error(\"Set SHTAB_TOKEN\");\nconst client = new ShtabClient(token, { tokenType: \"personal\" });\ntry {\n  const result = await client.tasksViewResponsibleDeleteDelete({\n    \"path\": {\n      \"team_id\": \"1\",\n      \"view_id\": \"1\",\n      \"task_id\": \"1\",\n      \"task_responsible_id\": \"1\"\n    }\n  });\n  console.log(result);\n} catch (error) {\n  if (error instanceof ApiError) console.error(error.status, error.code, error.body);\n  throw error;\n}"
          }
        ],
        "x-shtab-scope": "tasks.responsibles:write",
        "x-shtab-sdk": {
          "python": "tasks_view_responsible_delete_delete",
          "typescript": "tasksViewResponsibleDeleteDelete"
        },
        "x-shtab-token-types": [
          "personal",
          "team"
        ]
      },
      "parameters": [
        {
          "in": "path",
          "name": "team_id",
          "required": true,
          "type": "string"
        },
        {
          "in": "path",
          "name": "view_id",
          "required": true,
          "type": "string"
        },
        {
          "in": "path",
          "name": "task_id",
          "required": true,
          "type": "string"
        },
        {
          "in": "path",
          "name": "task_responsible_id",
          "required": true,
          "type": "string"
        }
      ]
    },
    "/api/tasks/{team_id}/view/{view_id}/responsible/{task_id}/update/{task_responsible_id}/": {
      "parameters": [
        {
          "in": "path",
          "name": "team_id",
          "required": true,
          "type": "string"
        },
        {
          "in": "path",
          "name": "view_id",
          "required": true,
          "type": "string"
        },
        {
          "in": "path",
          "name": "task_id",
          "required": true,
          "type": "string"
        },
        {
          "in": "path",
          "name": "task_responsible_id",
          "required": true,
          "type": "string"
        }
      ],
      "patch": {
        "description": "Update task closing confirmation status.",
        "operationId": "api_tasks_view_responsible_update_partial_update",
        "parameters": [
          {
            "in": "body",
            "name": "data",
            "required": true,
            "schema": {
              "$ref": "#/definitions/PublicTaskResponsibleUpdate"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "schema": {
              "$ref": "#/definitions/PublicTaskResponsible"
            }
          },
          "400": {
            "description": "Параметры или тело запроса не прошли проверку.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "401": {
            "description": "Токен отсутствует или недействителен.",
            "schema": {
              "$ref": "#/definitions/PublicAuthenticationError"
            }
          },
          "402": {
            "description": "Тариф команды не включает запрошенную возможность.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "403": {
            "description": "Токену не выдан нужный грант или у пользователя отсутствуют права доступа.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "404": {
            "description": "Метод недоступен токену или объект отсутствует в доступной области.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "429": {
            "description": "Превышен лимит запросов. Заголовок Retry-After указывает время ожидания в секундах.",
            "headers": {
              "Retry-After": {
                "description": "Секунд до следующей попытки.",
                "type": "integer"
              }
            },
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          }
        },
        "summary": "Изменить подтверждение закрытия задачи контролирующим (в пространстве)",
        "tags": [
          "tasks"
        ],
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import os\n\nfrom shtab_sdk import ApiError, ShtabClient\n\nclient = ShtabClient(os.environ[\"SHTAB_TOKEN\"], token_type=\"personal\")\ntry:\n    result = client.tasks_view_responsible_update_partial_update(path={'task_id': '1',\n     'task_responsible_id': '1',\n     'team_id': '1',\n     'view_id': '1'}, body={})\n    print(result)\nexcept ApiError as error:\n    print(error.status, error.code, error.body)\n    raise"
          },
          {
            "lang": "TypeScript",
            "source": "import { ApiError, ShtabClient } from \"@shtabapp/sdk\";\n\nconst token = process.env.SHTAB_TOKEN;\nif (!token) throw new Error(\"Set SHTAB_TOKEN\");\nconst client = new ShtabClient(token, { tokenType: \"personal\" });\ntry {\n  const result = await client.tasksViewResponsibleUpdatePartialUpdate({\n    \"path\": {\n      \"team_id\": \"1\",\n      \"view_id\": \"1\",\n      \"task_id\": \"1\",\n      \"task_responsible_id\": \"1\"\n    },\n    \"body\": {}\n  });\n  console.log(result);\n} catch (error) {\n  if (error instanceof ApiError) console.error(error.status, error.code, error.body);\n  throw error;\n}"
          }
        ],
        "x-shtab-scope": "tasks.responsibles:write",
        "x-shtab-sdk": {
          "python": "tasks_view_responsible_update_partial_update",
          "typescript": "tasksViewResponsibleUpdatePartialUpdate"
        },
        "x-shtab-token-types": [
          "personal",
          "team"
        ]
      }
    },
    "/api/tasks/{team_id}/{task_id}/labels/": {
      "get": {
        "description": "Возвращает метки, прикреплённые к задаче.",
        "operationId": "api_tasks_labels_list",
        "parameters": [],
        "responses": {
          "200": {
            "description": "",
            "schema": {
              "$ref": "#/definitions/TaskLabels"
            }
          },
          "400": {
            "description": "Параметры или тело запроса не прошли проверку.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "401": {
            "description": "Токен отсутствует или недействителен.",
            "schema": {
              "$ref": "#/definitions/PublicAuthenticationError"
            }
          },
          "402": {
            "description": "Тариф команды не включает запрошенную возможность.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "403": {
            "description": "Токену не выдан нужный грант или у пользователя отсутствуют права доступа.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "404": {
            "description": "Метод недоступен токену или объект отсутствует в доступной области.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "429": {
            "description": "Превышен лимит запросов. Заголовок Retry-After указывает время ожидания в секундах.",
            "headers": {
              "Retry-After": {
                "description": "Секунд до следующей попытки.",
                "type": "integer"
              }
            },
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          }
        },
        "summary": "Получить метки задачи",
        "tags": [
          "tasks"
        ],
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import os\n\nfrom shtab_sdk import ApiError, ShtabClient\n\nclient = ShtabClient(os.environ[\"SHTAB_TOKEN\"], token_type=\"personal\")\ntry:\n    result = client.tasks_labels_list(path={'task_id': '1', 'team_id': '1'})\n    print(result)\nexcept ApiError as error:\n    print(error.status, error.code, error.body)\n    raise"
          },
          {
            "lang": "TypeScript",
            "source": "import { ApiError, ShtabClient } from \"@shtabapp/sdk\";\n\nconst token = process.env.SHTAB_TOKEN;\nif (!token) throw new Error(\"Set SHTAB_TOKEN\");\nconst client = new ShtabClient(token, { tokenType: \"personal\" });\ntry {\n  const result = await client.tasksLabelsList({\n    \"path\": {\n      \"team_id\": \"1\",\n      \"task_id\": \"1\"\n    }\n  });\n  console.log(result);\n} catch (error) {\n  if (error instanceof ApiError) console.error(error.status, error.code, error.body);\n  throw error;\n}"
          }
        ],
        "x-shtab-scope": "tasks:read",
        "x-shtab-sdk": {
          "python": "tasks_labels_list",
          "typescript": "tasksLabelsList"
        },
        "x-shtab-token-types": [
          "personal",
          "team"
        ]
      },
      "parameters": [
        {
          "in": "path",
          "name": "team_id",
          "required": true,
          "type": "string"
        },
        {
          "in": "path",
          "name": "task_id",
          "required": true,
          "type": "string"
        }
      ],
      "post": {
        "description": "Добавляет одну метку. Статус и остальные метки сохраняются. Повторный запрос возвращает текущий набор.",
        "operationId": "api_tasks_labels_add",
        "parameters": [
          {
            "in": "body",
            "name": "data",
            "required": true,
            "schema": {
              "$ref": "#/definitions/TaskLabelAttach"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "schema": {
              "$ref": "#/definitions/TaskLabels"
            }
          },
          "400": {
            "description": "Параметры или тело запроса не прошли проверку.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "401": {
            "description": "Токен отсутствует или недействителен.",
            "schema": {
              "$ref": "#/definitions/PublicAuthenticationError"
            }
          },
          "402": {
            "description": "Тариф команды не включает запрошенную возможность.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "403": {
            "description": "Токену не выдан нужный грант или у пользователя отсутствуют права доступа.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "404": {
            "description": "Метод недоступен токену или объект отсутствует в доступной области.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "429": {
            "description": "Превышен лимит запросов. Заголовок Retry-After указывает время ожидания в секундах.",
            "headers": {
              "Retry-After": {
                "description": "Секунд до следующей попытки.",
                "type": "integer"
              }
            },
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          }
        },
        "summary": "Добавить метку к задаче",
        "tags": [
          "tasks"
        ],
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import os\n\nfrom shtab_sdk import ApiError, ShtabClient\n\nclient = ShtabClient(os.environ[\"SHTAB_TOKEN\"], token_type=\"personal\")\ntry:\n    result = client.tasks_labels_add(path={'task_id': '1', 'team_id': '1'}, body={'label_id': 1})\n    print(result)\nexcept ApiError as error:\n    print(error.status, error.code, error.body)\n    raise"
          },
          {
            "lang": "TypeScript",
            "source": "import { ApiError, ShtabClient } from \"@shtabapp/sdk\";\n\nconst token = process.env.SHTAB_TOKEN;\nif (!token) throw new Error(\"Set SHTAB_TOKEN\");\nconst client = new ShtabClient(token, { tokenType: \"personal\" });\ntry {\n  const result = await client.tasksLabelsAdd({\n    \"path\": {\n      \"team_id\": \"1\",\n      \"task_id\": \"1\"\n    },\n    \"body\": {\n      \"label_id\": 1\n    }\n  });\n  console.log(result);\n} catch (error) {\n  if (error instanceof ApiError) console.error(error.status, error.code, error.body);\n  throw error;\n}"
          }
        ],
        "x-shtab-scope": "tasks:write",
        "x-shtab-sdk": {
          "python": "tasks_labels_add",
          "typescript": "tasksLabelsAdd"
        },
        "x-shtab-token-types": [
          "personal",
          "team"
        ]
      },
      "put": {
        "description": "Заменяет все привязки одной операцией. Передайте пустой массив для снятия всех меток. Статус сохраняется.",
        "operationId": "api_tasks_labels_replace",
        "parameters": [
          {
            "in": "body",
            "name": "data",
            "required": true,
            "schema": {
              "$ref": "#/definitions/TaskLabelsReplace"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "schema": {
              "$ref": "#/definitions/TaskLabels"
            }
          },
          "400": {
            "description": "Параметры или тело запроса не прошли проверку.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "401": {
            "description": "Токен отсутствует или недействителен.",
            "schema": {
              "$ref": "#/definitions/PublicAuthenticationError"
            }
          },
          "402": {
            "description": "Тариф команды не включает запрошенную возможность.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "403": {
            "description": "Токену не выдан нужный грант или у пользователя отсутствуют права доступа.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "404": {
            "description": "Метод недоступен токену или объект отсутствует в доступной области.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "429": {
            "description": "Превышен лимит запросов. Заголовок Retry-After указывает время ожидания в секундах.",
            "headers": {
              "Retry-After": {
                "description": "Секунд до следующей попытки.",
                "type": "integer"
              }
            },
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          }
        },
        "summary": "Заменить набор меток задачи",
        "tags": [
          "tasks"
        ],
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import os\n\nfrom shtab_sdk import ApiError, ShtabClient\n\nclient = ShtabClient(os.environ[\"SHTAB_TOKEN\"], token_type=\"personal\")\ntry:\n    result = client.tasks_labels_replace(path={'task_id': '1', 'team_id': '1'}, body={'label_ids': [1]})\n    print(result)\nexcept ApiError as error:\n    print(error.status, error.code, error.body)\n    raise"
          },
          {
            "lang": "TypeScript",
            "source": "import { ApiError, ShtabClient } from \"@shtabapp/sdk\";\n\nconst token = process.env.SHTAB_TOKEN;\nif (!token) throw new Error(\"Set SHTAB_TOKEN\");\nconst client = new ShtabClient(token, { tokenType: \"personal\" });\ntry {\n  const result = await client.tasksLabelsReplace({\n    \"path\": {\n      \"team_id\": \"1\",\n      \"task_id\": \"1\"\n    },\n    \"body\": {\n      \"label_ids\": [\n        1\n      ]\n    }\n  });\n  console.log(result);\n} catch (error) {\n  if (error instanceof ApiError) console.error(error.status, error.code, error.body);\n  throw error;\n}"
          }
        ],
        "x-shtab-scope": "tasks:write",
        "x-shtab-sdk": {
          "python": "tasks_labels_replace",
          "typescript": "tasksLabelsReplace"
        },
        "x-shtab-token-types": [
          "personal",
          "team"
        ]
      }
    },
    "/api/tasks/{team_id}/{task_id}/labels/{label_id}/": {
      "delete": {
        "description": "Снимает одну метку. Метка остаётся в справочнике команды и на других задачах.",
        "operationId": "api_tasks_labels_remove",
        "parameters": [],
        "responses": {
          "204": {
            "description": "Метка снята или уже отсутствовала на задаче."
          },
          "400": {
            "description": "Параметры или тело запроса не прошли проверку.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "401": {
            "description": "Токен отсутствует или недействителен.",
            "schema": {
              "$ref": "#/definitions/PublicAuthenticationError"
            }
          },
          "402": {
            "description": "Тариф команды не включает запрошенную возможность.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "403": {
            "description": "Токену не выдан нужный грант или у пользователя отсутствуют права доступа.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "404": {
            "description": "Метод недоступен токену или объект отсутствует в доступной области.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "429": {
            "description": "Превышен лимит запросов. Заголовок Retry-After указывает время ожидания в секундах.",
            "headers": {
              "Retry-After": {
                "description": "Секунд до следующей попытки.",
                "type": "integer"
              }
            },
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          }
        },
        "summary": "Снять метку с задачи",
        "tags": [
          "tasks"
        ],
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import os\n\nfrom shtab_sdk import ApiError, ShtabClient\n\nclient = ShtabClient(os.environ[\"SHTAB_TOKEN\"], token_type=\"personal\")\ntry:\n    result = client.tasks_labels_remove(path={'label_id': '1', 'task_id': '1', 'team_id': '1'})\n    print(result)\nexcept ApiError as error:\n    print(error.status, error.code, error.body)\n    raise"
          },
          {
            "lang": "TypeScript",
            "source": "import { ApiError, ShtabClient } from \"@shtabapp/sdk\";\n\nconst token = process.env.SHTAB_TOKEN;\nif (!token) throw new Error(\"Set SHTAB_TOKEN\");\nconst client = new ShtabClient(token, { tokenType: \"personal\" });\ntry {\n  const result = await client.tasksLabelsRemove({\n    \"path\": {\n      \"team_id\": \"1\",\n      \"task_id\": \"1\",\n      \"label_id\": \"1\"\n    }\n  });\n  console.log(result);\n} catch (error) {\n  if (error instanceof ApiError) console.error(error.status, error.code, error.body);\n  throw error;\n}"
          }
        ],
        "x-shtab-scope": "tasks:write",
        "x-shtab-sdk": {
          "python": "tasks_labels_remove",
          "typescript": "tasksLabelsRemove"
        },
        "x-shtab-token-types": [
          "personal",
          "team"
        ]
      },
      "parameters": [
        {
          "in": "path",
          "name": "team_id",
          "required": true,
          "type": "string"
        },
        {
          "in": "path",
          "name": "task_id",
          "required": true,
          "type": "string"
        },
        {
          "in": "path",
          "name": "label_id",
          "required": true,
          "type": "string"
        }
      ]
    },
    "/api/teams/customfields/{team_id}/create/": {
      "parameters": [
        {
          "in": "path",
          "name": "team_id",
          "required": true,
          "type": "string"
        }
      ],
      "post": {
        "description": "Добавление кастомфилда в компании, extras массив форматов файлов или валют.",
        "operationId": "api_teams_customfields_create_create",
        "parameters": [
          {
            "in": "body",
            "name": "data",
            "required": true,
            "schema": {
              "$ref": "#/definitions/PublicCustomFieldCreate"
            }
          }
        ],
        "responses": {
          "201": {
            "description": "",
            "schema": {
              "$ref": "#/definitions/PublicCustomField"
            }
          },
          "400": {
            "description": "Параметры или тело запроса не прошли проверку.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "401": {
            "description": "Токен отсутствует или недействителен.",
            "schema": {
              "$ref": "#/definitions/PublicAuthenticationError"
            }
          },
          "402": {
            "description": "Тариф команды не включает запрошенную возможность.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "403": {
            "description": "Токену не выдан нужный грант или у пользователя отсутствуют права доступа.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "404": {
            "description": "Метод недоступен токену или объект отсутствует в доступной области.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "429": {
            "description": "Превышен лимит запросов. Заголовок Retry-After указывает время ожидания в секундах.",
            "headers": {
              "Retry-After": {
                "description": "Секунд до следующей попытки.",
                "type": "integer"
              }
            },
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          }
        },
        "summary": "Создать пользовательское поле команды",
        "tags": [
          "teams"
        ],
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import os\n\nfrom shtab_sdk import ApiError, ShtabClient\n\nclient = ShtabClient(os.environ[\"SHTAB_TOKEN\"], token_type=\"personal\")\ntry:\n    result = client.teams_customfields_create_create(path={'team_id': '1'}, body={'name': 'пример'})\n    print(result)\nexcept ApiError as error:\n    print(error.status, error.code, error.body)\n    raise"
          },
          {
            "lang": "TypeScript",
            "source": "import { ApiError, ShtabClient } from \"@shtabapp/sdk\";\n\nconst token = process.env.SHTAB_TOKEN;\nif (!token) throw new Error(\"Set SHTAB_TOKEN\");\nconst client = new ShtabClient(token, { tokenType: \"personal\" });\ntry {\n  const result = await client.teamsCustomfieldsCreateCreate({\n    \"path\": {\n      \"team_id\": \"1\"\n    },\n    \"body\": {\n      \"name\": \"пример\"\n    }\n  });\n  console.log(result);\n} catch (error) {\n  if (error instanceof ApiError) console.error(error.status, error.code, error.body);\n  throw error;\n}"
          }
        ],
        "x-shtab-scope": "teams.directories:write",
        "x-shtab-sdk": {
          "python": "teams_customfields_create_create",
          "typescript": "teamsCustomfieldsCreateCreate"
        },
        "x-shtab-token-types": [
          "personal",
          "team"
        ]
      }
    },
    "/api/teams/customfields/{team_id}/list/": {
      "get": {
        "description": "Добавление кастомфилда в компании, extras массив форматов файлов или валют.",
        "operationId": "api_teams_customfields_list_list",
        "parameters": [
          {
            "description": "",
            "in": "query",
            "name": "type",
            "required": false,
            "type": "string"
          },
          {
            "description": "Фильтр по ID вида",
            "in": "query",
            "name": "view_id",
            "required": false,
            "type": "string"
          },
          {
            "description": "Фильтр по ID базы данных",
            "in": "query",
            "name": "datasource_id",
            "required": false,
            "type": "string"
          },
          {
            "description": "A search term.",
            "in": "query",
            "name": "search",
            "required": false,
            "type": "string"
          },
          {
            "description": "Which field to use when ordering the results.",
            "in": "query",
            "name": "ordering",
            "required": false,
            "type": "string"
          },
          {
            "default": 20,
            "description": "Number of results to return per page.",
            "in": "query",
            "maximum": 100,
            "minimum": 1,
            "name": "limit",
            "required": false,
            "type": "integer"
          },
          {
            "default": 0,
            "description": "The initial index from which to return the results.",
            "in": "query",
            "minimum": 0,
            "name": "offset",
            "required": false,
            "type": "integer"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "schema": {
              "properties": {
                "next": {
                  "format": "uri",
                  "type": "string",
                  "x-nullable": true
                },
                "previous": {
                  "format": "uri",
                  "type": "string",
                  "x-nullable": true
                },
                "results": {
                  "items": {
                    "$ref": "#/definitions/PublicCustomField"
                  },
                  "type": "array"
                }
              },
              "required": [
                "results"
              ],
              "type": "object"
            }
          },
          "400": {
            "description": "Параметры или тело запроса не прошли проверку.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "401": {
            "description": "Токен отсутствует или недействителен.",
            "schema": {
              "$ref": "#/definitions/PublicAuthenticationError"
            }
          },
          "402": {
            "description": "Тариф команды не включает запрошенную возможность.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "403": {
            "description": "Токену не выдан нужный грант или у пользователя отсутствуют права доступа.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "404": {
            "description": "Метод недоступен токену или объект отсутствует в доступной области.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "429": {
            "description": "Превышен лимит запросов. Заголовок Retry-After указывает время ожидания в секундах.",
            "headers": {
              "Retry-After": {
                "description": "Секунд до следующей попытки.",
                "type": "integer"
              }
            },
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          }
        },
        "summary": "Получить список пользовательских полей команды",
        "tags": [
          "teams"
        ],
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import os\n\nfrom shtab_sdk import ApiError, ShtabClient\n\nclient = ShtabClient(os.environ[\"SHTAB_TOKEN\"], token_type=\"personal\")\ntry:\n    result = client.teams_customfields_list_list(path={'team_id': '1'}, query={'limit': 20})\n    print(result)\nexcept ApiError as error:\n    print(error.status, error.code, error.body)\n    raise"
          },
          {
            "lang": "TypeScript",
            "source": "import { ApiError, ShtabClient } from \"@shtabapp/sdk\";\n\nconst token = process.env.SHTAB_TOKEN;\nif (!token) throw new Error(\"Set SHTAB_TOKEN\");\nconst client = new ShtabClient(token, { tokenType: \"personal\" });\ntry {\n  const result = await client.teamsCustomfieldsListList({\n    \"path\": {\n      \"team_id\": \"1\"\n    },\n    \"query\": {\n      \"limit\": 20\n    }\n  });\n  console.log(result);\n} catch (error) {\n  if (error instanceof ApiError) console.error(error.status, error.code, error.body);\n  throw error;\n}"
          }
        ],
        "x-shtab-pagination": {
          "limit": "limit",
          "next": "next",
          "offset": "offset",
          "previous": "previous",
          "type": "limit-offset"
        },
        "x-shtab-scope": "teams.directories:read",
        "x-shtab-sdk": {
          "python": "teams_customfields_list_list",
          "typescript": "teamsCustomfieldsListList"
        },
        "x-shtab-token-types": [
          "personal",
          "team"
        ]
      },
      "parameters": [
        {
          "in": "path",
          "name": "team_id",
          "required": true,
          "type": "string"
        }
      ]
    },
    "/api/teams/customfields/{team_id}/{id}/": {
      "delete": {
        "description": "Добавление кастомфилда в компании, extras массив форматов файлов или валют.",
        "operationId": "api_teams_customfields_delete",
        "parameters": [],
        "responses": {
          "204": {
            "description": ""
          },
          "400": {
            "description": "Параметры или тело запроса не прошли проверку.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "401": {
            "description": "Токен отсутствует или недействителен.",
            "schema": {
              "$ref": "#/definitions/PublicAuthenticationError"
            }
          },
          "402": {
            "description": "Тариф команды не включает запрошенную возможность.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "403": {
            "description": "Токену не выдан нужный грант или у пользователя отсутствуют права доступа.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "404": {
            "description": "Метод недоступен токену или объект отсутствует в доступной области.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "429": {
            "description": "Превышен лимит запросов. Заголовок Retry-After указывает время ожидания в секундах.",
            "headers": {
              "Retry-After": {
                "description": "Секунд до следующей попытки.",
                "type": "integer"
              }
            },
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          }
        },
        "summary": "Удалить пользовательское поле команды",
        "tags": [
          "teams"
        ],
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import os\n\nfrom shtab_sdk import ApiError, ShtabClient\n\nclient = ShtabClient(os.environ[\"SHTAB_TOKEN\"], token_type=\"personal\")\ntry:\n    result = client.teams_customfields_delete(path={'id': '00000000-0000-4000-8000-000000000001', 'team_id': '1'})\n    print(result)\nexcept ApiError as error:\n    print(error.status, error.code, error.body)\n    raise"
          },
          {
            "lang": "TypeScript",
            "source": "import { ApiError, ShtabClient } from \"@shtabapp/sdk\";\n\nconst token = process.env.SHTAB_TOKEN;\nif (!token) throw new Error(\"Set SHTAB_TOKEN\");\nconst client = new ShtabClient(token, { tokenType: \"personal\" });\ntry {\n  const result = await client.teamsCustomfieldsDelete({\n    \"path\": {\n      \"team_id\": \"1\",\n      \"id\": \"00000000-0000-4000-8000-000000000001\"\n    }\n  });\n  console.log(result);\n} catch (error) {\n  if (error instanceof ApiError) console.error(error.status, error.code, error.body);\n  throw error;\n}"
          }
        ],
        "x-shtab-scope": "teams.directories:write",
        "x-shtab-sdk": {
          "python": "teams_customfields_delete",
          "typescript": "teamsCustomfieldsDelete"
        },
        "x-shtab-token-types": [
          "personal",
          "team"
        ]
      },
      "parameters": [
        {
          "in": "path",
          "name": "team_id",
          "required": true,
          "type": "string"
        },
        {
          "description": "A UUID string identifying this Пользовательское поле.",
          "format": "uuid",
          "in": "path",
          "name": "id",
          "required": true,
          "type": "string"
        }
      ],
      "patch": {
        "description": "Добавление кастомфилда в компании, extras массив форматов файлов или валют.",
        "operationId": "api_teams_customfields_update",
        "parameters": [
          {
            "in": "body",
            "name": "data",
            "required": true,
            "schema": {
              "$ref": "#/definitions/PublicCustomFieldUpdate"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "schema": {
              "$ref": "#/definitions/PublicCustomField"
            }
          },
          "400": {
            "description": "Параметры или тело запроса не прошли проверку.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "401": {
            "description": "Токен отсутствует или недействителен.",
            "schema": {
              "$ref": "#/definitions/PublicAuthenticationError"
            }
          },
          "402": {
            "description": "Тариф команды не включает запрошенную возможность.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "403": {
            "description": "Токену не выдан нужный грант или у пользователя отсутствуют права доступа.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "404": {
            "description": "Метод недоступен токену или объект отсутствует в доступной области.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "429": {
            "description": "Превышен лимит запросов. Заголовок Retry-After указывает время ожидания в секундах.",
            "headers": {
              "Retry-After": {
                "description": "Секунд до следующей попытки.",
                "type": "integer"
              }
            },
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          }
        },
        "summary": "Изменить пользовательское поле команды",
        "tags": [
          "teams"
        ],
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import os\n\nfrom shtab_sdk import ApiError, ShtabClient\n\nclient = ShtabClient(os.environ[\"SHTAB_TOKEN\"], token_type=\"personal\")\ntry:\n    result = client.teams_customfields_update(path={'id': '00000000-0000-4000-8000-000000000001', 'team_id': '1'}, body={})\n    print(result)\nexcept ApiError as error:\n    print(error.status, error.code, error.body)\n    raise"
          },
          {
            "lang": "TypeScript",
            "source": "import { ApiError, ShtabClient } from \"@shtabapp/sdk\";\n\nconst token = process.env.SHTAB_TOKEN;\nif (!token) throw new Error(\"Set SHTAB_TOKEN\");\nconst client = new ShtabClient(token, { tokenType: \"personal\" });\ntry {\n  const result = await client.teamsCustomfieldsUpdate({\n    \"path\": {\n      \"team_id\": \"1\",\n      \"id\": \"00000000-0000-4000-8000-000000000001\"\n    },\n    \"body\": {}\n  });\n  console.log(result);\n} catch (error) {\n  if (error instanceof ApiError) console.error(error.status, error.code, error.body);\n  throw error;\n}"
          }
        ],
        "x-shtab-scope": "teams.directories:write",
        "x-shtab-sdk": {
          "python": "teams_customfields_update",
          "typescript": "teamsCustomfieldsUpdate"
        },
        "x-shtab-token-types": [
          "personal",
          "team"
        ]
      }
    },
    "/api/teams/labels/{team_id}/": {
      "get": {
        "description": "",
        "operationId": "api_teams_labels_list",
        "parameters": [
          {
            "description": "",
            "in": "query",
            "name": "exclude_view",
            "required": false,
            "type": "string"
          },
          {
            "description": "",
            "in": "query",
            "name": "view",
            "required": false,
            "type": "string"
          },
          {
            "description": "",
            "in": "query",
            "name": "task",
            "required": false,
            "type": "string"
          },
          {
            "description": "",
            "in": "query",
            "name": "exclude",
            "required": false,
            "type": "string"
          },
          {
            "description": "",
            "in": "query",
            "name": "type",
            "required": false,
            "type": "string"
          },
          {
            "description": "A search term.",
            "in": "query",
            "name": "search",
            "required": false,
            "type": "string"
          },
          {
            "description": "Which field to use when ordering the results.",
            "in": "query",
            "name": "ordering",
            "required": false,
            "type": "string"
          },
          {
            "default": 20,
            "description": "Number of results to return per page.",
            "in": "query",
            "maximum": 100,
            "minimum": 1,
            "name": "limit",
            "required": false,
            "type": "integer"
          },
          {
            "default": 0,
            "description": "The initial index from which to return the results.",
            "in": "query",
            "minimum": 0,
            "name": "offset",
            "required": false,
            "type": "integer"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "schema": {
              "properties": {
                "next": {
                  "format": "uri",
                  "type": "string",
                  "x-nullable": true
                },
                "previous": {
                  "format": "uri",
                  "type": "string",
                  "x-nullable": true
                },
                "results": {
                  "items": {
                    "$ref": "#/definitions/PublicLabel"
                  },
                  "type": "array"
                }
              },
              "required": [
                "results"
              ],
              "type": "object"
            }
          },
          "400": {
            "description": "Параметры или тело запроса не прошли проверку.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "401": {
            "description": "Токен отсутствует или недействителен.",
            "schema": {
              "$ref": "#/definitions/PublicAuthenticationError"
            }
          },
          "402": {
            "description": "Тариф команды не включает запрошенную возможность.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "403": {
            "description": "Токену не выдан нужный грант или у пользователя отсутствуют права доступа.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "404": {
            "description": "Метод недоступен токену или объект отсутствует в доступной области.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "429": {
            "description": "Превышен лимит запросов. Заголовок Retry-After указывает время ожидания в секундах.",
            "headers": {
              "Retry-After": {
                "description": "Секунд до следующей попытки.",
                "type": "integer"
              }
            },
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          }
        },
        "summary": "Получить список доступных тегов команды",
        "tags": [
          "teams"
        ],
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import os\n\nfrom shtab_sdk import ApiError, ShtabClient\n\nclient = ShtabClient(os.environ[\"SHTAB_TOKEN\"], token_type=\"personal\")\ntry:\n    result = client.teams_labels_list(path={'team_id': '1'}, query={'limit': 20})\n    print(result)\nexcept ApiError as error:\n    print(error.status, error.code, error.body)\n    raise"
          },
          {
            "lang": "TypeScript",
            "source": "import { ApiError, ShtabClient } from \"@shtabapp/sdk\";\n\nconst token = process.env.SHTAB_TOKEN;\nif (!token) throw new Error(\"Set SHTAB_TOKEN\");\nconst client = new ShtabClient(token, { tokenType: \"personal\" });\ntry {\n  const result = await client.teamsLabelsList({\n    \"path\": {\n      \"team_id\": \"1\"\n    },\n    \"query\": {\n      \"limit\": 20\n    }\n  });\n  console.log(result);\n} catch (error) {\n  if (error instanceof ApiError) console.error(error.status, error.code, error.body);\n  throw error;\n}"
          }
        ],
        "x-shtab-pagination": {
          "limit": "limit",
          "next": "next",
          "offset": "offset",
          "previous": "previous",
          "type": "limit-offset"
        },
        "x-shtab-scope": "teams.directories:read",
        "x-shtab-sdk": {
          "python": "teams_labels_list",
          "typescript": "teamsLabelsList"
        },
        "x-shtab-token-types": [
          "personal",
          "team"
        ]
      },
      "parameters": [
        {
          "in": "path",
          "name": "team_id",
          "required": true,
          "type": "string"
        }
      ],
      "post": {
        "description": "",
        "operationId": "api_teams_labels_create",
        "parameters": [
          {
            "in": "body",
            "name": "data",
            "required": true,
            "schema": {
              "$ref": "#/definitions/PublicLabelCreate"
            }
          }
        ],
        "responses": {
          "201": {
            "description": "",
            "schema": {
              "$ref": "#/definitions/PublicLabel"
            }
          },
          "400": {
            "description": "Параметры или тело запроса не прошли проверку.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "401": {
            "description": "Токен отсутствует или недействителен.",
            "schema": {
              "$ref": "#/definitions/PublicAuthenticationError"
            }
          },
          "402": {
            "description": "Тариф команды не включает запрошенную возможность.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "403": {
            "description": "Токену не выдан нужный грант или у пользователя отсутствуют права доступа.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "404": {
            "description": "Метод недоступен токену или объект отсутствует в доступной области.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "429": {
            "description": "Превышен лимит запросов. Заголовок Retry-After указывает время ожидания в секундах.",
            "headers": {
              "Retry-After": {
                "description": "Секунд до следующей попытки.",
                "type": "integer"
              }
            },
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          }
        },
        "summary": "Создать тег",
        "tags": [
          "teams"
        ],
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import os\n\nfrom shtab_sdk import ApiError, ShtabClient\n\nclient = ShtabClient(os.environ[\"SHTAB_TOKEN\"], token_type=\"personal\")\ntry:\n    result = client.teams_labels_create(path={'team_id': '1'}, body={'name': 'пример'})\n    print(result)\nexcept ApiError as error:\n    print(error.status, error.code, error.body)\n    raise"
          },
          {
            "lang": "TypeScript",
            "source": "import { ApiError, ShtabClient } from \"@shtabapp/sdk\";\n\nconst token = process.env.SHTAB_TOKEN;\nif (!token) throw new Error(\"Set SHTAB_TOKEN\");\nconst client = new ShtabClient(token, { tokenType: \"personal\" });\ntry {\n  const result = await client.teamsLabelsCreate({\n    \"path\": {\n      \"team_id\": \"1\"\n    },\n    \"body\": {\n      \"name\": \"пример\"\n    }\n  });\n  console.log(result);\n} catch (error) {\n  if (error instanceof ApiError) console.error(error.status, error.code, error.body);\n  throw error;\n}"
          }
        ],
        "x-shtab-scope": "teams.directories:write",
        "x-shtab-sdk": {
          "python": "teams_labels_create",
          "typescript": "teamsLabelsCreate"
        },
        "x-shtab-token-types": [
          "personal",
          "team"
        ]
      }
    },
    "/api/teams/labels/{team_id}/{id}/": {
      "delete": {
        "description": "",
        "operationId": "api_teams_labels_delete",
        "parameters": [],
        "responses": {
          "204": {
            "description": ""
          },
          "400": {
            "description": "Параметры или тело запроса не прошли проверку.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "401": {
            "description": "Токен отсутствует или недействителен.",
            "schema": {
              "$ref": "#/definitions/PublicAuthenticationError"
            }
          },
          "402": {
            "description": "Тариф команды не включает запрошенную возможность.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "403": {
            "description": "Токену не выдан нужный грант или у пользователя отсутствуют права доступа.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "404": {
            "description": "Метод недоступен токену или объект отсутствует в доступной области.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "429": {
            "description": "Превышен лимит запросов. Заголовок Retry-After указывает время ожидания в секундах.",
            "headers": {
              "Retry-After": {
                "description": "Секунд до следующей попытки.",
                "type": "integer"
              }
            },
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          }
        },
        "summary": "Удалить тег из справочника команды",
        "tags": [
          "teams"
        ],
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import os\n\nfrom shtab_sdk import ApiError, ShtabClient\n\nclient = ShtabClient(os.environ[\"SHTAB_TOKEN\"], token_type=\"personal\")\ntry:\n    result = client.teams_labels_delete(path={'id': 1, 'team_id': '1'})\n    print(result)\nexcept ApiError as error:\n    print(error.status, error.code, error.body)\n    raise"
          },
          {
            "lang": "TypeScript",
            "source": "import { ApiError, ShtabClient } from \"@shtabapp/sdk\";\n\nconst token = process.env.SHTAB_TOKEN;\nif (!token) throw new Error(\"Set SHTAB_TOKEN\");\nconst client = new ShtabClient(token, { tokenType: \"personal\" });\ntry {\n  const result = await client.teamsLabelsDelete({\n    \"path\": {\n      \"team_id\": \"1\",\n      \"id\": 1\n    }\n  });\n  console.log(result);\n} catch (error) {\n  if (error instanceof ApiError) console.error(error.status, error.code, error.body);\n  throw error;\n}"
          }
        ],
        "x-shtab-scope": "teams.directories:write",
        "x-shtab-sdk": {
          "python": "teams_labels_delete",
          "typescript": "teamsLabelsDelete"
        },
        "x-shtab-token-types": [
          "personal",
          "team"
        ]
      },
      "parameters": [
        {
          "in": "path",
          "name": "team_id",
          "required": true,
          "type": "string"
        },
        {
          "description": "A unique integer value identifying this Метка задачи.",
          "in": "path",
          "name": "id",
          "required": true,
          "type": "integer"
        }
      ],
      "patch": {
        "description": "",
        "operationId": "api_teams_labels_update",
        "parameters": [
          {
            "in": "body",
            "name": "data",
            "required": true,
            "schema": {
              "$ref": "#/definitions/PublicLabelUpdate"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "schema": {
              "$ref": "#/definitions/PublicLabel"
            }
          },
          "400": {
            "description": "Параметры или тело запроса не прошли проверку.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "401": {
            "description": "Токен отсутствует или недействителен.",
            "schema": {
              "$ref": "#/definitions/PublicAuthenticationError"
            }
          },
          "402": {
            "description": "Тариф команды не включает запрошенную возможность.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "403": {
            "description": "Токену не выдан нужный грант или у пользователя отсутствуют права доступа.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "404": {
            "description": "Метод недоступен токену или объект отсутствует в доступной области.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "429": {
            "description": "Превышен лимит запросов. Заголовок Retry-After указывает время ожидания в секундах.",
            "headers": {
              "Retry-After": {
                "description": "Секунд до следующей попытки.",
                "type": "integer"
              }
            },
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          }
        },
        "summary": "Изменить тег",
        "tags": [
          "teams"
        ],
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import os\n\nfrom shtab_sdk import ApiError, ShtabClient\n\nclient = ShtabClient(os.environ[\"SHTAB_TOKEN\"], token_type=\"personal\")\ntry:\n    result = client.teams_labels_update(path={'id': 1, 'team_id': '1'}, body={})\n    print(result)\nexcept ApiError as error:\n    print(error.status, error.code, error.body)\n    raise"
          },
          {
            "lang": "TypeScript",
            "source": "import { ApiError, ShtabClient } from \"@shtabapp/sdk\";\n\nconst token = process.env.SHTAB_TOKEN;\nif (!token) throw new Error(\"Set SHTAB_TOKEN\");\nconst client = new ShtabClient(token, { tokenType: \"personal\" });\ntry {\n  const result = await client.teamsLabelsUpdate({\n    \"path\": {\n      \"team_id\": \"1\",\n      \"id\": 1\n    },\n    \"body\": {}\n  });\n  console.log(result);\n} catch (error) {\n  if (error instanceof ApiError) console.error(error.status, error.code, error.body);\n  throw error;\n}"
          }
        ],
        "x-shtab-scope": "teams.directories:write",
        "x-shtab-sdk": {
          "python": "teams_labels_update",
          "typescript": "teamsLabelsUpdate"
        },
        "x-shtab-token-types": [
          "personal",
          "team"
        ]
      }
    },
    "/api/teams/members/paginated-list/{team_id}/": {
      "get": {
        "description": "Список участников компании.\nteam_id - ID компании",
        "operationId": "api_teams_members_paginated-list_list",
        "parameters": [
          {
            "description": "",
            "in": "query",
            "name": "accepted",
            "required": false,
            "type": "string"
          },
          {
            "description": "",
            "in": "query",
            "name": "is_blocked",
            "required": false,
            "type": "string"
          },
          {
            "description": "",
            "in": "query",
            "name": "role",
            "required": false,
            "type": "string"
          },
          {
            "description": "",
            "in": "query",
            "name": "user_is_deleted",
            "required": false,
            "type": "string"
          },
          {
            "description": "",
            "in": "query",
            "name": "expired_token",
            "required": false,
            "type": "string"
          },
          {
            "description": "",
            "in": "query",
            "name": "view",
            "required": false,
            "type": "string"
          },
          {
            "description": "",
            "in": "query",
            "name": "datasource",
            "required": false,
            "type": "string"
          },
          {
            "description": "",
            "in": "query",
            "name": "task",
            "required": false,
            "type": "string"
          },
          {
            "description": "A search term.",
            "in": "query",
            "name": "search",
            "required": false,
            "type": "string"
          },
          {
            "description": "Which field to use when ordering the results.",
            "in": "query",
            "name": "ordering",
            "required": false,
            "type": "string"
          },
          {
            "default": 20,
            "description": "Number of results to return per page.",
            "in": "query",
            "maximum": 100,
            "minimum": 1,
            "name": "limit",
            "required": false,
            "type": "integer"
          },
          {
            "default": 0,
            "description": "The initial index from which to return the results.",
            "in": "query",
            "minimum": 0,
            "name": "offset",
            "required": false,
            "type": "integer"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "schema": {
              "properties": {
                "next": {
                  "format": "uri",
                  "type": "string",
                  "x-nullable": true
                },
                "previous": {
                  "format": "uri",
                  "type": "string",
                  "x-nullable": true
                },
                "results": {
                  "items": {
                    "$ref": "#/definitions/PublicTeamMember"
                  },
                  "type": "array"
                }
              },
              "required": [
                "results"
              ],
              "type": "object"
            }
          },
          "400": {
            "description": "Параметры или тело запроса не прошли проверку.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "401": {
            "description": "Токен отсутствует или недействителен.",
            "schema": {
              "$ref": "#/definitions/PublicAuthenticationError"
            }
          },
          "402": {
            "description": "Тариф команды не включает запрошенную возможность.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "403": {
            "description": "Токену не выдан нужный грант или у пользователя отсутствуют права доступа.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "404": {
            "description": "Метод недоступен токену или объект отсутствует в доступной области.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "429": {
            "description": "Превышен лимит запросов. Заголовок Retry-After указывает время ожидания в секундах.",
            "headers": {
              "Retry-After": {
                "description": "Секунд до следующей попытки.",
                "type": "integer"
              }
            },
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          }
        },
        "summary": "Получить список участников компании",
        "tags": [
          "teams"
        ],
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import os\n\nfrom shtab_sdk import ApiError, ShtabClient\n\nclient = ShtabClient(os.environ[\"SHTAB_TOKEN\"], token_type=\"personal\")\ntry:\n    result = client.teams_members_paginated_list_list(path={'team_id': '1'}, query={'limit': 20})\n    print(result)\nexcept ApiError as error:\n    print(error.status, error.code, error.body)\n    raise"
          },
          {
            "lang": "TypeScript",
            "source": "import { ApiError, ShtabClient } from \"@shtabapp/sdk\";\n\nconst token = process.env.SHTAB_TOKEN;\nif (!token) throw new Error(\"Set SHTAB_TOKEN\");\nconst client = new ShtabClient(token, { tokenType: \"personal\" });\ntry {\n  const result = await client.teamsMembersPaginatedListList({\n    \"path\": {\n      \"team_id\": \"1\"\n    },\n    \"query\": {\n      \"limit\": 20\n    }\n  });\n  console.log(result);\n} catch (error) {\n  if (error instanceof ApiError) console.error(error.status, error.code, error.body);\n  throw error;\n}"
          }
        ],
        "x-shtab-pagination": {
          "limit": "limit",
          "next": "next",
          "offset": "offset",
          "previous": "previous",
          "type": "limit-offset"
        },
        "x-shtab-scope": "members:read",
        "x-shtab-sdk": {
          "python": "teams_members_paginated_list_list",
          "typescript": "teamsMembersPaginatedListList"
        },
        "x-shtab-token-types": [
          "personal",
          "team"
        ]
      },
      "parameters": [
        {
          "in": "path",
          "name": "team_id",
          "required": true,
          "type": "string"
        }
      ]
    },
    "/api/teams/members/{team_id}/batch/": {
      "parameters": [
        {
          "in": "path",
          "name": "team_id",
          "required": true,
          "type": "string"
        }
      ],
      "put": {
        "description": "",
        "operationId": "api_teams_members_batch_update",
        "parameters": [
          {
            "in": "body",
            "name": "data",
            "required": true,
            "schema": {
              "$ref": "#/definitions/PublicMemberBatchRequest"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "schema": {
              "items": {
                "$ref": "#/definitions/BatchResult"
              },
              "type": "array"
            }
          },
          "400": {
            "description": "Параметры или тело запроса не прошли проверку.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "401": {
            "description": "Токен отсутствует или недействителен.",
            "schema": {
              "$ref": "#/definitions/PublicAuthenticationError"
            }
          },
          "402": {
            "description": "Тариф команды не включает запрошенную возможность.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "403": {
            "description": "Токену не выдан нужный грант или у пользователя отсутствуют права доступа.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "404": {
            "description": "Метод недоступен токену или объект отсутствует в доступной области.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "429": {
            "description": "Превышен лимит запросов. Заголовок Retry-After указывает время ожидания в секундах.",
            "headers": {
              "Retry-After": {
                "description": "Секунд до следующей попытки.",
                "type": "integer"
              }
            },
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          }
        },
        "summary": "Пакетная запись кадровых данных участников",
        "tags": [
          "teams"
        ],
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import os\n\nfrom shtab_sdk import ApiError, ShtabClient\n\nclient = ShtabClient(os.environ[\"SHTAB_TOKEN\"], token_type=\"personal\")\ntry:\n    result = client.teams_members_batch_update(path={'team_id': '1'}, body={'items': [{}], 'source': 'пример'})\n    print(result)\nexcept ApiError as error:\n    print(error.status, error.code, error.body)\n    raise"
          },
          {
            "lang": "TypeScript",
            "source": "import { ApiError, ShtabClient } from \"@shtabapp/sdk\";\n\nconst token = process.env.SHTAB_TOKEN;\nif (!token) throw new Error(\"Set SHTAB_TOKEN\");\nconst client = new ShtabClient(token, { tokenType: \"personal\" });\ntry {\n  const result = await client.teamsMembersBatchUpdate({\n    \"path\": {\n      \"team_id\": \"1\"\n    },\n    \"body\": {\n      \"source\": \"пример\",\n      \"items\": [\n        {}\n      ]\n    }\n  });\n  console.log(result);\n} catch (error) {\n  if (error instanceof ApiError) console.error(error.status, error.code, error.body);\n  throw error;\n}"
          }
        ],
        "x-shtab-scope": "members:write",
        "x-shtab-sdk": {
          "python": "teams_members_batch_update",
          "typescript": "teamsMembersBatchUpdate"
        },
        "x-shtab-token-types": [
          "personal",
          "team"
        ]
      }
    },
    "/api/teams/roles/{team_id}/": {
      "get": {
        "description": "",
        "operationId": "api_teams_roles_list",
        "parameters": [
          {
            "default": 20,
            "description": "Number of results to return per page.",
            "in": "query",
            "maximum": 100,
            "minimum": 1,
            "name": "limit",
            "required": false,
            "type": "integer"
          },
          {
            "default": 0,
            "description": "The initial index from which to return the results.",
            "in": "query",
            "minimum": 0,
            "name": "offset",
            "required": false,
            "type": "integer"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "schema": {
              "properties": {
                "next": {
                  "format": "uri",
                  "type": "string",
                  "x-nullable": true
                },
                "previous": {
                  "format": "uri",
                  "type": "string",
                  "x-nullable": true
                },
                "results": {
                  "items": {
                    "$ref": "#/definitions/PublicRole"
                  },
                  "type": "array"
                }
              },
              "required": [
                "results"
              ],
              "type": "object"
            }
          },
          "400": {
            "description": "Параметры или тело запроса не прошли проверку.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "401": {
            "description": "Токен отсутствует или недействителен.",
            "schema": {
              "$ref": "#/definitions/PublicAuthenticationError"
            }
          },
          "402": {
            "description": "Тариф команды не включает запрошенную возможность.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "403": {
            "description": "Токену не выдан нужный грант или у пользователя отсутствуют права доступа.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "404": {
            "description": "Метод недоступен токену или объект отсутствует в доступной области.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "429": {
            "description": "Превышен лимит запросов. Заголовок Retry-After указывает время ожидания в секундах.",
            "headers": {
              "Retry-After": {
                "description": "Секунд до следующей попытки.",
                "type": "integer"
              }
            },
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          }
        },
        "summary": "Роли компании",
        "tags": [
          "teams"
        ],
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import os\n\nfrom shtab_sdk import ApiError, ShtabClient\n\nclient = ShtabClient(os.environ[\"SHTAB_TOKEN\"], token_type=\"personal\")\ntry:\n    result = client.teams_roles_list(path={'team_id': '1'}, query={'limit': 20})\n    print(result)\nexcept ApiError as error:\n    print(error.status, error.code, error.body)\n    raise"
          },
          {
            "lang": "TypeScript",
            "source": "import { ApiError, ShtabClient } from \"@shtabapp/sdk\";\n\nconst token = process.env.SHTAB_TOKEN;\nif (!token) throw new Error(\"Set SHTAB_TOKEN\");\nconst client = new ShtabClient(token, { tokenType: \"personal\" });\ntry {\n  const result = await client.teamsRolesList({\n    \"path\": {\n      \"team_id\": \"1\"\n    },\n    \"query\": {\n      \"limit\": 20\n    }\n  });\n  console.log(result);\n} catch (error) {\n  if (error instanceof ApiError) console.error(error.status, error.code, error.body);\n  throw error;\n}"
          }
        ],
        "x-shtab-pagination": {
          "limit": "limit",
          "next": "next",
          "offset": "offset",
          "previous": "previous",
          "type": "limit-offset"
        },
        "x-shtab-scope": "members:read",
        "x-shtab-sdk": {
          "python": "teams_roles_list",
          "typescript": "teamsRolesList"
        },
        "x-shtab-token-types": [
          "personal",
          "team"
        ]
      },
      "parameters": [
        {
          "in": "path",
          "name": "team_id",
          "required": true,
          "type": "string"
        }
      ]
    },
    "/api/teams/status/{team_id}/": {
      "get": {
        "description": "",
        "operationId": "api_teams_status_list",
        "parameters": [
          {
            "description": "",
            "in": "query",
            "name": "exclude_view",
            "required": false,
            "type": "string"
          },
          {
            "description": "",
            "in": "query",
            "name": "view",
            "required": false,
            "type": "string"
          },
          {
            "description": "",
            "in": "query",
            "name": "type",
            "required": false,
            "type": "string"
          },
          {
            "description": "",
            "in": "query",
            "name": "task",
            "required": false,
            "type": "string"
          },
          {
            "description": "",
            "in": "query",
            "name": "exclude",
            "required": false,
            "type": "string"
          },
          {
            "description": "",
            "in": "query",
            "name": "only_datasource",
            "required": false,
            "type": "string"
          },
          {
            "description": "A search term.",
            "in": "query",
            "name": "search",
            "required": false,
            "type": "string"
          },
          {
            "description": "Which field to use when ordering the results.",
            "in": "query",
            "name": "ordering",
            "required": false,
            "type": "string"
          },
          {
            "default": 20,
            "description": "Number of results to return per page.",
            "in": "query",
            "maximum": 100,
            "minimum": 1,
            "name": "limit",
            "required": false,
            "type": "integer"
          },
          {
            "default": 0,
            "description": "The initial index from which to return the results.",
            "in": "query",
            "minimum": 0,
            "name": "offset",
            "required": false,
            "type": "integer"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "schema": {
              "properties": {
                "next": {
                  "format": "uri",
                  "type": "string",
                  "x-nullable": true
                },
                "previous": {
                  "format": "uri",
                  "type": "string",
                  "x-nullable": true
                },
                "results": {
                  "items": {
                    "$ref": "#/definitions/PublicStatus"
                  },
                  "type": "array"
                }
              },
              "required": [
                "results"
              ],
              "type": "object"
            }
          },
          "400": {
            "description": "Параметры или тело запроса не прошли проверку.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "401": {
            "description": "Токен отсутствует или недействителен.",
            "schema": {
              "$ref": "#/definitions/PublicAuthenticationError"
            }
          },
          "402": {
            "description": "Тариф команды не включает запрошенную возможность.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "403": {
            "description": "Токену не выдан нужный грант или у пользователя отсутствуют права доступа.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "404": {
            "description": "Метод недоступен токену или объект отсутствует в доступной области.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "429": {
            "description": "Превышен лимит запросов. Заголовок Retry-After указывает время ожидания в секундах.",
            "headers": {
              "Retry-After": {
                "description": "Секунд до следующей попытки.",
                "type": "integer"
              }
            },
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          }
        },
        "summary": "Получить список статусов задач команды",
        "tags": [
          "teams"
        ],
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import os\n\nfrom shtab_sdk import ApiError, ShtabClient\n\nclient = ShtabClient(os.environ[\"SHTAB_TOKEN\"], token_type=\"personal\")\ntry:\n    result = client.teams_status_list(path={'team_id': '1'}, query={'limit': 20})\n    print(result)\nexcept ApiError as error:\n    print(error.status, error.code, error.body)\n    raise"
          },
          {
            "lang": "TypeScript",
            "source": "import { ApiError, ShtabClient } from \"@shtabapp/sdk\";\n\nconst token = process.env.SHTAB_TOKEN;\nif (!token) throw new Error(\"Set SHTAB_TOKEN\");\nconst client = new ShtabClient(token, { tokenType: \"personal\" });\ntry {\n  const result = await client.teamsStatusList({\n    \"path\": {\n      \"team_id\": \"1\"\n    },\n    \"query\": {\n      \"limit\": 20\n    }\n  });\n  console.log(result);\n} catch (error) {\n  if (error instanceof ApiError) console.error(error.status, error.code, error.body);\n  throw error;\n}"
          }
        ],
        "x-shtab-pagination": {
          "limit": "limit",
          "next": "next",
          "offset": "offset",
          "previous": "previous",
          "type": "limit-offset"
        },
        "x-shtab-scope": "teams.directories:read",
        "x-shtab-sdk": {
          "python": "teams_status_list",
          "typescript": "teamsStatusList"
        },
        "x-shtab-token-types": [
          "personal",
          "team"
        ]
      },
      "parameters": [
        {
          "in": "path",
          "name": "team_id",
          "required": true,
          "type": "string"
        }
      ],
      "post": {
        "description": "",
        "operationId": "api_teams_status_create",
        "parameters": [
          {
            "in": "body",
            "name": "data",
            "required": true,
            "schema": {
              "$ref": "#/definitions/PublicStatusCreate"
            }
          }
        ],
        "responses": {
          "201": {
            "description": "",
            "schema": {
              "$ref": "#/definitions/PublicStatus"
            }
          },
          "400": {
            "description": "Параметры или тело запроса не прошли проверку.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "401": {
            "description": "Токен отсутствует или недействителен.",
            "schema": {
              "$ref": "#/definitions/PublicAuthenticationError"
            }
          },
          "402": {
            "description": "Тариф команды не включает запрошенную возможность.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "403": {
            "description": "Токену не выдан нужный грант или у пользователя отсутствуют права доступа.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "404": {
            "description": "Метод недоступен токену или объект отсутствует в доступной области.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "429": {
            "description": "Превышен лимит запросов. Заголовок Retry-After указывает время ожидания в секундах.",
            "headers": {
              "Retry-After": {
                "description": "Секунд до следующей попытки.",
                "type": "integer"
              }
            },
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          }
        },
        "summary": "Добавить статус задач в справочник команды",
        "tags": [
          "teams"
        ],
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import os\n\nfrom shtab_sdk import ApiError, ShtabClient\n\nclient = ShtabClient(os.environ[\"SHTAB_TOKEN\"], token_type=\"personal\")\ntry:\n    result = client.teams_status_create(path={'team_id': '1'}, body={'title': 'пример'})\n    print(result)\nexcept ApiError as error:\n    print(error.status, error.code, error.body)\n    raise"
          },
          {
            "lang": "TypeScript",
            "source": "import { ApiError, ShtabClient } from \"@shtabapp/sdk\";\n\nconst token = process.env.SHTAB_TOKEN;\nif (!token) throw new Error(\"Set SHTAB_TOKEN\");\nconst client = new ShtabClient(token, { tokenType: \"personal\" });\ntry {\n  const result = await client.teamsStatusCreate({\n    \"path\": {\n      \"team_id\": \"1\"\n    },\n    \"body\": {\n      \"title\": \"пример\"\n    }\n  });\n  console.log(result);\n} catch (error) {\n  if (error instanceof ApiError) console.error(error.status, error.code, error.body);\n  throw error;\n}"
          }
        ],
        "x-shtab-scope": "teams.directories:write",
        "x-shtab-sdk": {
          "python": "teams_status_create",
          "typescript": "teamsStatusCreate"
        },
        "x-shtab-token-types": [
          "personal",
          "team"
        ]
      }
    },
    "/api/teams/status/{team_id}/{id}/": {
      "delete": {
        "description": "",
        "operationId": "api_teams_status_delete",
        "parameters": [],
        "responses": {
          "204": {
            "description": ""
          },
          "400": {
            "description": "Параметры или тело запроса не прошли проверку.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "401": {
            "description": "Токен отсутствует или недействителен.",
            "schema": {
              "$ref": "#/definitions/PublicAuthenticationError"
            }
          },
          "402": {
            "description": "Тариф команды не включает запрошенную возможность.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "403": {
            "description": "Токену не выдан нужный грант или у пользователя отсутствуют права доступа.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "404": {
            "description": "Метод недоступен токену или объект отсутствует в доступной области.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "429": {
            "description": "Превышен лимит запросов. Заголовок Retry-After указывает время ожидания в секундах.",
            "headers": {
              "Retry-After": {
                "description": "Секунд до следующей попытки.",
                "type": "integer"
              }
            },
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          }
        },
        "summary": "Удалить статус задач из справочника команды",
        "tags": [
          "teams"
        ],
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import os\n\nfrom shtab_sdk import ApiError, ShtabClient\n\nclient = ShtabClient(os.environ[\"SHTAB_TOKEN\"], token_type=\"personal\")\ntry:\n    result = client.teams_status_delete(path={'id': 1, 'team_id': '1'})\n    print(result)\nexcept ApiError as error:\n    print(error.status, error.code, error.body)\n    raise"
          },
          {
            "lang": "TypeScript",
            "source": "import { ApiError, ShtabClient } from \"@shtabapp/sdk\";\n\nconst token = process.env.SHTAB_TOKEN;\nif (!token) throw new Error(\"Set SHTAB_TOKEN\");\nconst client = new ShtabClient(token, { tokenType: \"personal\" });\ntry {\n  const result = await client.teamsStatusDelete({\n    \"path\": {\n      \"team_id\": \"1\",\n      \"id\": 1\n    }\n  });\n  console.log(result);\n} catch (error) {\n  if (error instanceof ApiError) console.error(error.status, error.code, error.body);\n  throw error;\n}"
          }
        ],
        "x-shtab-scope": "teams.directories:write",
        "x-shtab-sdk": {
          "python": "teams_status_delete",
          "typescript": "teamsStatusDelete"
        },
        "x-shtab-token-types": [
          "personal",
          "team"
        ]
      },
      "parameters": [
        {
          "in": "path",
          "name": "team_id",
          "required": true,
          "type": "string"
        },
        {
          "description": "A unique integer value identifying this Статус задачи.",
          "in": "path",
          "name": "id",
          "required": true,
          "type": "integer"
        }
      ],
      "patch": {
        "description": "",
        "operationId": "api_teams_status_update",
        "parameters": [
          {
            "in": "body",
            "name": "data",
            "required": true,
            "schema": {
              "$ref": "#/definitions/PublicStatusUpdate"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "schema": {
              "$ref": "#/definitions/PublicStatus"
            }
          },
          "400": {
            "description": "Параметры или тело запроса не прошли проверку.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "401": {
            "description": "Токен отсутствует или недействителен.",
            "schema": {
              "$ref": "#/definitions/PublicAuthenticationError"
            }
          },
          "402": {
            "description": "Тариф команды не включает запрошенную возможность.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "403": {
            "description": "Токену не выдан нужный грант или у пользователя отсутствуют права доступа.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "404": {
            "description": "Метод недоступен токену или объект отсутствует в доступной области.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "429": {
            "description": "Превышен лимит запросов. Заголовок Retry-After указывает время ожидания в секундах.",
            "headers": {
              "Retry-After": {
                "description": "Секунд до следующей попытки.",
                "type": "integer"
              }
            },
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          }
        },
        "summary": "Изменить статус задач в справочнике команды",
        "tags": [
          "teams"
        ],
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import os\n\nfrom shtab_sdk import ApiError, ShtabClient\n\nclient = ShtabClient(os.environ[\"SHTAB_TOKEN\"], token_type=\"personal\")\ntry:\n    result = client.teams_status_update(path={'id': 1, 'team_id': '1'}, body={})\n    print(result)\nexcept ApiError as error:\n    print(error.status, error.code, error.body)\n    raise"
          },
          {
            "lang": "TypeScript",
            "source": "import { ApiError, ShtabClient } from \"@shtabapp/sdk\";\n\nconst token = process.env.SHTAB_TOKEN;\nif (!token) throw new Error(\"Set SHTAB_TOKEN\");\nconst client = new ShtabClient(token, { tokenType: \"personal\" });\ntry {\n  const result = await client.teamsStatusUpdate({\n    \"path\": {\n      \"team_id\": \"1\",\n      \"id\": 1\n    },\n    \"body\": {}\n  });\n  console.log(result);\n} catch (error) {\n  if (error instanceof ApiError) console.error(error.status, error.code, error.body);\n  throw error;\n}"
          }
        ],
        "x-shtab-scope": "teams.directories:write",
        "x-shtab-sdk": {
          "python": "teams_status_update",
          "typescript": "teamsStatusUpdate"
        },
        "x-shtab-token-types": [
          "personal",
          "team"
        ]
      }
    },
    "/api/teams/task-type/{team_id}/": {
      "get": {
        "description": "Создание / Список / Редактирование / Удаление / Слияние типов задач",
        "operationId": "api_teams_task-type_list",
        "parameters": [
          {
            "description": "",
            "in": "query",
            "name": "exclude_datasource",
            "required": false,
            "type": "string"
          },
          {
            "description": "",
            "in": "query",
            "name": "only_datasource",
            "required": false,
            "type": "string"
          },
          {
            "description": "",
            "in": "query",
            "name": "exclude_view",
            "required": false,
            "type": "string"
          },
          {
            "description": "",
            "in": "query",
            "name": "only_view",
            "required": false,
            "type": "string"
          },
          {
            "description": "",
            "in": "query",
            "name": "exclude",
            "required": false,
            "type": "string"
          },
          {
            "description": "A search term.",
            "in": "query",
            "name": "search",
            "required": false,
            "type": "string"
          },
          {
            "description": "Which field to use when ordering the results.",
            "in": "query",
            "name": "ordering",
            "required": false,
            "type": "string"
          },
          {
            "default": 20,
            "description": "Number of results to return per page.",
            "in": "query",
            "maximum": 100,
            "minimum": 1,
            "name": "limit",
            "required": false,
            "type": "integer"
          },
          {
            "default": 0,
            "description": "The initial index from which to return the results.",
            "in": "query",
            "minimum": 0,
            "name": "offset",
            "required": false,
            "type": "integer"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "schema": {
              "properties": {
                "next": {
                  "format": "uri",
                  "type": "string",
                  "x-nullable": true
                },
                "previous": {
                  "format": "uri",
                  "type": "string",
                  "x-nullable": true
                },
                "results": {
                  "items": {
                    "$ref": "#/definitions/PublicTaskType"
                  },
                  "type": "array"
                }
              },
              "required": [
                "results"
              ],
              "type": "object"
            }
          },
          "400": {
            "description": "Параметры или тело запроса не прошли проверку.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "401": {
            "description": "Токен отсутствует или недействителен.",
            "schema": {
              "$ref": "#/definitions/PublicAuthenticationError"
            }
          },
          "402": {
            "description": "Тариф команды не включает запрошенную возможность.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "403": {
            "description": "Токену не выдан нужный грант или у пользователя отсутствуют права доступа.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "404": {
            "description": "Метод недоступен токену или объект отсутствует в доступной области.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "429": {
            "description": "Превышен лимит запросов. Заголовок Retry-After указывает время ожидания в секундах.",
            "headers": {
              "Retry-After": {
                "description": "Секунд до следующей попытки.",
                "type": "integer"
              }
            },
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          }
        },
        "summary": "Получить список типов карточек команды",
        "tags": [
          "teams"
        ],
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import os\n\nfrom shtab_sdk import ApiError, ShtabClient\n\nclient = ShtabClient(os.environ[\"SHTAB_TOKEN\"], token_type=\"personal\")\ntry:\n    result = client.teams_task_type_list(path={'team_id': '1'}, query={'limit': 20})\n    print(result)\nexcept ApiError as error:\n    print(error.status, error.code, error.body)\n    raise"
          },
          {
            "lang": "TypeScript",
            "source": "import { ApiError, ShtabClient } from \"@shtabapp/sdk\";\n\nconst token = process.env.SHTAB_TOKEN;\nif (!token) throw new Error(\"Set SHTAB_TOKEN\");\nconst client = new ShtabClient(token, { tokenType: \"personal\" });\ntry {\n  const result = await client.teamsTaskTypeList({\n    \"path\": {\n      \"team_id\": \"1\"\n    },\n    \"query\": {\n      \"limit\": 20\n    }\n  });\n  console.log(result);\n} catch (error) {\n  if (error instanceof ApiError) console.error(error.status, error.code, error.body);\n  throw error;\n}"
          }
        ],
        "x-shtab-pagination": {
          "limit": "limit",
          "next": "next",
          "offset": "offset",
          "previous": "previous",
          "type": "limit-offset"
        },
        "x-shtab-scope": "teams.directories:read",
        "x-shtab-sdk": {
          "python": "teams_task_type_list",
          "typescript": "teamsTaskTypeList"
        },
        "x-shtab-token-types": [
          "personal",
          "team"
        ]
      },
      "parameters": [
        {
          "in": "path",
          "name": "team_id",
          "required": true,
          "type": "string"
        }
      ],
      "post": {
        "description": "Создание / Список / Редактирование / Удаление / Слияние типов задач",
        "operationId": "api_teams_task-type_create",
        "parameters": [
          {
            "in": "body",
            "name": "data",
            "required": true,
            "schema": {
              "$ref": "#/definitions/PublicTaskTypeCreate"
            }
          }
        ],
        "responses": {
          "201": {
            "description": "",
            "schema": {
              "$ref": "#/definitions/PublicTaskType"
            }
          },
          "400": {
            "description": "Параметры или тело запроса не прошли проверку.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "401": {
            "description": "Токен отсутствует или недействителен.",
            "schema": {
              "$ref": "#/definitions/PublicAuthenticationError"
            }
          },
          "402": {
            "description": "Тариф команды не включает запрошенную возможность.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "403": {
            "description": "Токену не выдан нужный грант или у пользователя отсутствуют права доступа.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "404": {
            "description": "Метод недоступен токену или объект отсутствует в доступной области.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "429": {
            "description": "Превышен лимит запросов. Заголовок Retry-After указывает время ожидания в секундах.",
            "headers": {
              "Retry-After": {
                "description": "Секунд до следующей попытки.",
                "type": "integer"
              }
            },
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          }
        },
        "summary": "Создать тип карточки",
        "tags": [
          "teams"
        ],
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import os\n\nfrom shtab_sdk import ApiError, ShtabClient\n\nclient = ShtabClient(os.environ[\"SHTAB_TOKEN\"], token_type=\"personal\")\ntry:\n    result = client.teams_task_type_create(path={'team_id': '1'}, body={'name': 'пример'})\n    print(result)\nexcept ApiError as error:\n    print(error.status, error.code, error.body)\n    raise"
          },
          {
            "lang": "TypeScript",
            "source": "import { ApiError, ShtabClient } from \"@shtabapp/sdk\";\n\nconst token = process.env.SHTAB_TOKEN;\nif (!token) throw new Error(\"Set SHTAB_TOKEN\");\nconst client = new ShtabClient(token, { tokenType: \"personal\" });\ntry {\n  const result = await client.teamsTaskTypeCreate({\n    \"path\": {\n      \"team_id\": \"1\"\n    },\n    \"body\": {\n      \"name\": \"пример\"\n    }\n  });\n  console.log(result);\n} catch (error) {\n  if (error instanceof ApiError) console.error(error.status, error.code, error.body);\n  throw error;\n}"
          }
        ],
        "x-shtab-scope": "teams.directories:write",
        "x-shtab-sdk": {
          "python": "teams_task_type_create",
          "typescript": "teamsTaskTypeCreate"
        },
        "x-shtab-token-types": [
          "personal",
          "team"
        ]
      }
    },
    "/api/teams/task-type/{team_id}/{id}/": {
      "delete": {
        "description": "Создание / Список / Редактирование / Удаление / Слияние типов задач",
        "operationId": "api_teams_task-type_delete",
        "parameters": [],
        "responses": {
          "204": {
            "description": ""
          },
          "400": {
            "description": "Параметры или тело запроса не прошли проверку.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "401": {
            "description": "Токен отсутствует или недействителен.",
            "schema": {
              "$ref": "#/definitions/PublicAuthenticationError"
            }
          },
          "402": {
            "description": "Тариф команды не включает запрошенную возможность.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "403": {
            "description": "Токену не выдан нужный грант или у пользователя отсутствуют права доступа.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "404": {
            "description": "Метод недоступен токену или объект отсутствует в доступной области.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "429": {
            "description": "Превышен лимит запросов. Заголовок Retry-After указывает время ожидания в секундах.",
            "headers": {
              "Retry-After": {
                "description": "Секунд до следующей попытки.",
                "type": "integer"
              }
            },
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          }
        },
        "summary": "Удалить тип карточки",
        "tags": [
          "teams"
        ],
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import os\n\nfrom shtab_sdk import ApiError, ShtabClient\n\nclient = ShtabClient(os.environ[\"SHTAB_TOKEN\"], token_type=\"personal\")\ntry:\n    result = client.teams_task_type_delete(path={'id': 1, 'team_id': '1'})\n    print(result)\nexcept ApiError as error:\n    print(error.status, error.code, error.body)\n    raise"
          },
          {
            "lang": "TypeScript",
            "source": "import { ApiError, ShtabClient } from \"@shtabapp/sdk\";\n\nconst token = process.env.SHTAB_TOKEN;\nif (!token) throw new Error(\"Set SHTAB_TOKEN\");\nconst client = new ShtabClient(token, { tokenType: \"personal\" });\ntry {\n  const result = await client.teamsTaskTypeDelete({\n    \"path\": {\n      \"team_id\": \"1\",\n      \"id\": 1\n    }\n  });\n  console.log(result);\n} catch (error) {\n  if (error instanceof ApiError) console.error(error.status, error.code, error.body);\n  throw error;\n}"
          }
        ],
        "x-shtab-scope": "teams.directories:write",
        "x-shtab-sdk": {
          "python": "teams_task_type_delete",
          "typescript": "teamsTaskTypeDelete"
        },
        "x-shtab-token-types": [
          "personal",
          "team"
        ]
      },
      "get": {
        "description": "Создание / Список / Редактирование / Удаление / Слияние типов задач",
        "operationId": "api_teams_task-type_read",
        "parameters": [],
        "responses": {
          "200": {
            "description": "",
            "schema": {
              "$ref": "#/definitions/PublicTaskType"
            }
          },
          "400": {
            "description": "Параметры или тело запроса не прошли проверку.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "401": {
            "description": "Токен отсутствует или недействителен.",
            "schema": {
              "$ref": "#/definitions/PublicAuthenticationError"
            }
          },
          "402": {
            "description": "Тариф команды не включает запрошенную возможность.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "403": {
            "description": "Токену не выдан нужный грант или у пользователя отсутствуют права доступа.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "404": {
            "description": "Метод недоступен токену или объект отсутствует в доступной области.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "429": {
            "description": "Превышен лимит запросов. Заголовок Retry-After указывает время ожидания в секундах.",
            "headers": {
              "Retry-After": {
                "description": "Секунд до следующей попытки.",
                "type": "integer"
              }
            },
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          }
        },
        "summary": "Получить сведения о типе карточки",
        "tags": [
          "teams"
        ],
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import os\n\nfrom shtab_sdk import ApiError, ShtabClient\n\nclient = ShtabClient(os.environ[\"SHTAB_TOKEN\"], token_type=\"personal\")\ntry:\n    result = client.teams_task_type_read(path={'id': 1, 'team_id': '1'})\n    print(result)\nexcept ApiError as error:\n    print(error.status, error.code, error.body)\n    raise"
          },
          {
            "lang": "TypeScript",
            "source": "import { ApiError, ShtabClient } from \"@shtabapp/sdk\";\n\nconst token = process.env.SHTAB_TOKEN;\nif (!token) throw new Error(\"Set SHTAB_TOKEN\");\nconst client = new ShtabClient(token, { tokenType: \"personal\" });\ntry {\n  const result = await client.teamsTaskTypeRead({\n    \"path\": {\n      \"team_id\": \"1\",\n      \"id\": 1\n    }\n  });\n  console.log(result);\n} catch (error) {\n  if (error instanceof ApiError) console.error(error.status, error.code, error.body);\n  throw error;\n}"
          }
        ],
        "x-shtab-scope": "teams.directories:read",
        "x-shtab-sdk": {
          "python": "teams_task_type_read",
          "typescript": "teamsTaskTypeRead"
        },
        "x-shtab-token-types": [
          "personal",
          "team"
        ]
      },
      "parameters": [
        {
          "in": "path",
          "name": "team_id",
          "required": true,
          "type": "string"
        },
        {
          "description": "A unique integer value identifying this Тип задачи.",
          "in": "path",
          "name": "id",
          "required": true,
          "type": "integer"
        }
      ],
      "patch": {
        "description": "Создание / Список / Редактирование / Удаление / Слияние типов задач",
        "operationId": "api_teams_task-type_update",
        "parameters": [
          {
            "in": "body",
            "name": "data",
            "required": true,
            "schema": {
              "$ref": "#/definitions/PublicTaskTypeUpdate"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "schema": {
              "$ref": "#/definitions/PublicTaskType"
            }
          },
          "400": {
            "description": "Параметры или тело запроса не прошли проверку.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "401": {
            "description": "Токен отсутствует или недействителен.",
            "schema": {
              "$ref": "#/definitions/PublicAuthenticationError"
            }
          },
          "402": {
            "description": "Тариф команды не включает запрошенную возможность.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "403": {
            "description": "Токену не выдан нужный грант или у пользователя отсутствуют права доступа.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "404": {
            "description": "Метод недоступен токену или объект отсутствует в доступной области.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "429": {
            "description": "Превышен лимит запросов. Заголовок Retry-After указывает время ожидания в секундах.",
            "headers": {
              "Retry-After": {
                "description": "Секунд до следующей попытки.",
                "type": "integer"
              }
            },
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          }
        },
        "summary": "Изменить тип карточки",
        "tags": [
          "teams"
        ],
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import os\n\nfrom shtab_sdk import ApiError, ShtabClient\n\nclient = ShtabClient(os.environ[\"SHTAB_TOKEN\"], token_type=\"personal\")\ntry:\n    result = client.teams_task_type_update(path={'id': 1, 'team_id': '1'}, body={})\n    print(result)\nexcept ApiError as error:\n    print(error.status, error.code, error.body)\n    raise"
          },
          {
            "lang": "TypeScript",
            "source": "import { ApiError, ShtabClient } from \"@shtabapp/sdk\";\n\nconst token = process.env.SHTAB_TOKEN;\nif (!token) throw new Error(\"Set SHTAB_TOKEN\");\nconst client = new ShtabClient(token, { tokenType: \"personal\" });\ntry {\n  const result = await client.teamsTaskTypeUpdate({\n    \"path\": {\n      \"team_id\": \"1\",\n      \"id\": 1\n    },\n    \"body\": {}\n  });\n  console.log(result);\n} catch (error) {\n  if (error instanceof ApiError) console.error(error.status, error.code, error.body);\n  throw error;\n}"
          }
        ],
        "x-shtab-scope": "teams.directories:write",
        "x-shtab-sdk": {
          "python": "teams_task_type_update",
          "typescript": "teamsTaskTypeUpdate"
        },
        "x-shtab-token-types": [
          "personal",
          "team"
        ]
      }
    },
    "/api/teams/task-type/{team_id}/{task_type_id}/fields/": {
      "get": {
        "description": "Управление полями в типах задач.",
        "operationId": "api_teams_task-type_fields_list",
        "parameters": [
          {
            "description": "",
            "in": "query",
            "name": "is_custom",
            "required": false,
            "type": "string"
          },
          {
            "description": "",
            "in": "query",
            "name": "is_default",
            "required": false,
            "type": "string"
          },
          {
            "default": 20,
            "description": "Number of results to return per page.",
            "in": "query",
            "maximum": 100,
            "minimum": 1,
            "name": "limit",
            "required": false,
            "type": "integer"
          },
          {
            "default": 0,
            "description": "The initial index from which to return the results.",
            "in": "query",
            "minimum": 0,
            "name": "offset",
            "required": false,
            "type": "integer"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "schema": {
              "properties": {
                "next": {
                  "format": "uri",
                  "type": "string",
                  "x-nullable": true
                },
                "previous": {
                  "format": "uri",
                  "type": "string",
                  "x-nullable": true
                },
                "results": {
                  "items": {
                    "$ref": "#/definitions/PublicTaskTypeField"
                  },
                  "type": "array"
                }
              },
              "required": [
                "results"
              ],
              "type": "object"
            }
          },
          "400": {
            "description": "Параметры или тело запроса не прошли проверку.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "401": {
            "description": "Токен отсутствует или недействителен.",
            "schema": {
              "$ref": "#/definitions/PublicAuthenticationError"
            }
          },
          "402": {
            "description": "Тариф команды не включает запрошенную возможность.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "403": {
            "description": "Токену не выдан нужный грант или у пользователя отсутствуют права доступа.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "404": {
            "description": "Метод недоступен токену или объект отсутствует в доступной области.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "429": {
            "description": "Превышен лимит запросов. Заголовок Retry-After указывает время ожидания в секундах.",
            "headers": {
              "Retry-After": {
                "description": "Секунд до следующей попытки.",
                "type": "integer"
              }
            },
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          }
        },
        "summary": "Поля типа карточки",
        "tags": [
          "teams"
        ],
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import os\n\nfrom shtab_sdk import ApiError, ShtabClient\n\nclient = ShtabClient(os.environ[\"SHTAB_TOKEN\"], token_type=\"personal\")\ntry:\n    result = client.teams_task_type_fields_list(path={'task_type_id': '1', 'team_id': '1'}, query={'limit': 20})\n    print(result)\nexcept ApiError as error:\n    print(error.status, error.code, error.body)\n    raise"
          },
          {
            "lang": "TypeScript",
            "source": "import { ApiError, ShtabClient } from \"@shtabapp/sdk\";\n\nconst token = process.env.SHTAB_TOKEN;\nif (!token) throw new Error(\"Set SHTAB_TOKEN\");\nconst client = new ShtabClient(token, { tokenType: \"personal\" });\ntry {\n  const result = await client.teamsTaskTypeFieldsList({\n    \"path\": {\n      \"team_id\": \"1\",\n      \"task_type_id\": \"1\"\n    },\n    \"query\": {\n      \"limit\": 20\n    }\n  });\n  console.log(result);\n} catch (error) {\n  if (error instanceof ApiError) console.error(error.status, error.code, error.body);\n  throw error;\n}"
          }
        ],
        "x-shtab-pagination": {
          "limit": "limit",
          "next": "next",
          "offset": "offset",
          "previous": "previous",
          "type": "limit-offset"
        },
        "x-shtab-scope": "teams.directories:read",
        "x-shtab-sdk": {
          "python": "teams_task_type_fields_list",
          "typescript": "teamsTaskTypeFieldsList"
        },
        "x-shtab-token-types": [
          "personal",
          "team"
        ]
      },
      "parameters": [
        {
          "in": "path",
          "name": "team_id",
          "required": true,
          "type": "string"
        },
        {
          "in": "path",
          "name": "task_type_id",
          "required": true,
          "type": "string"
        }
      ],
      "post": {
        "description": "Управление полями в типах задач.",
        "operationId": "api_teams_task-type_fields_create",
        "parameters": [
          {
            "in": "body",
            "name": "data",
            "required": true,
            "schema": {
              "$ref": "#/definitions/PublicTaskTypeFieldCreate"
            }
          }
        ],
        "responses": {
          "201": {
            "description": "",
            "schema": {
              "$ref": "#/definitions/PublicTaskTypeField"
            }
          },
          "400": {
            "description": "Параметры или тело запроса не прошли проверку.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "401": {
            "description": "Токен отсутствует или недействителен.",
            "schema": {
              "$ref": "#/definitions/PublicAuthenticationError"
            }
          },
          "402": {
            "description": "Тариф команды не включает запрошенную возможность.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "403": {
            "description": "Токену не выдан нужный грант или у пользователя отсутствуют права доступа.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "404": {
            "description": "Метод недоступен токену или объект отсутствует в доступной области.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "429": {
            "description": "Превышен лимит запросов. Заголовок Retry-After указывает время ожидания в секундах.",
            "headers": {
              "Retry-After": {
                "description": "Секунд до следующей попытки.",
                "type": "integer"
              }
            },
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          }
        },
        "summary": "Добавить поле в тип карточки",
        "tags": [
          "teams"
        ],
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import os\n\nfrom shtab_sdk import ApiError, ShtabClient\n\nclient = ShtabClient(os.environ[\"SHTAB_TOKEN\"], token_type=\"personal\")\ntry:\n    result = client.teams_task_type_fields_create(path={'task_type_id': '1', 'team_id': '1'}, body={})\n    print(result)\nexcept ApiError as error:\n    print(error.status, error.code, error.body)\n    raise"
          },
          {
            "lang": "TypeScript",
            "source": "import { ApiError, ShtabClient } from \"@shtabapp/sdk\";\n\nconst token = process.env.SHTAB_TOKEN;\nif (!token) throw new Error(\"Set SHTAB_TOKEN\");\nconst client = new ShtabClient(token, { tokenType: \"personal\" });\ntry {\n  const result = await client.teamsTaskTypeFieldsCreate({\n    \"path\": {\n      \"team_id\": \"1\",\n      \"task_type_id\": \"1\"\n    },\n    \"body\": {}\n  });\n  console.log(result);\n} catch (error) {\n  if (error instanceof ApiError) console.error(error.status, error.code, error.body);\n  throw error;\n}"
          }
        ],
        "x-shtab-scope": "teams.directories:write",
        "x-shtab-sdk": {
          "python": "teams_task_type_fields_create",
          "typescript": "teamsTaskTypeFieldsCreate"
        },
        "x-shtab-token-types": [
          "personal",
          "team"
        ]
      }
    },
    "/api/teams/{team_id}/webhooks/": {
      "get": {
        "description": "",
        "operationId": "api_teams_webhooks_list",
        "parameters": [
          {
            "default": 20,
            "description": "Number of results to return per page.",
            "in": "query",
            "maximum": 100,
            "minimum": 1,
            "name": "limit",
            "required": false,
            "type": "integer"
          },
          {
            "default": 0,
            "description": "The initial index from which to return the results.",
            "in": "query",
            "minimum": 0,
            "name": "offset",
            "required": false,
            "type": "integer"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "schema": {
              "properties": {
                "next": {
                  "format": "uri",
                  "type": "string",
                  "x-nullable": true
                },
                "previous": {
                  "format": "uri",
                  "type": "string",
                  "x-nullable": true
                },
                "results": {
                  "items": {
                    "$ref": "#/definitions/PublicSubscription"
                  },
                  "type": "array"
                }
              },
              "required": [
                "results"
              ],
              "type": "object"
            }
          },
          "400": {
            "description": "Параметры или тело запроса не прошли проверку.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "401": {
            "description": "Токен отсутствует или недействителен.",
            "schema": {
              "$ref": "#/definitions/PublicAuthenticationError"
            }
          },
          "402": {
            "description": "Тариф команды не включает запрошенную возможность.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "403": {
            "description": "Токену не выдан нужный грант или у пользователя отсутствуют права доступа.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "404": {
            "description": "Метод недоступен токену или объект отсутствует в доступной области.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "429": {
            "description": "Превышен лимит запросов. Заголовок Retry-After указывает время ожидания в секундах.",
            "headers": {
              "Retry-After": {
                "description": "Секунд до следующей попытки.",
                "type": "integer"
              }
            },
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          }
        },
        "summary": "Список вебхуков",
        "tags": [
          "webhooks"
        ],
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import os\n\nfrom shtab_sdk import ApiError, ShtabClient\n\nclient = ShtabClient(os.environ[\"SHTAB_TOKEN\"], token_type=\"personal\")\ntry:\n    result = client.teams_webhooks_list(path={'team_id': '1'}, query={'limit': 20})\n    print(result)\nexcept ApiError as error:\n    print(error.status, error.code, error.body)\n    raise"
          },
          {
            "lang": "TypeScript",
            "source": "import { ApiError, ShtabClient } from \"@shtabapp/sdk\";\n\nconst token = process.env.SHTAB_TOKEN;\nif (!token) throw new Error(\"Set SHTAB_TOKEN\");\nconst client = new ShtabClient(token, { tokenType: \"personal\" });\ntry {\n  const result = await client.teamsWebhooksList({\n    \"path\": {\n      \"team_id\": \"1\"\n    },\n    \"query\": {\n      \"limit\": 20\n    }\n  });\n  console.log(result);\n} catch (error) {\n  if (error instanceof ApiError) console.error(error.status, error.code, error.body);\n  throw error;\n}"
          }
        ],
        "x-shtab-pagination": {
          "limit": "limit",
          "next": "next",
          "offset": "offset",
          "previous": "previous",
          "type": "limit-offset"
        },
        "x-shtab-scope": "webhooks:read",
        "x-shtab-sdk": {
          "python": "teams_webhooks_list",
          "typescript": "teamsWebhooksList"
        },
        "x-shtab-token-types": [
          "personal",
          "team"
        ]
      },
      "parameters": [
        {
          "in": "path",
          "name": "team_id",
          "required": true,
          "type": "string"
        }
      ],
      "post": {
        "description": "",
        "operationId": "api_teams_webhooks_create",
        "parameters": [
          {
            "in": "body",
            "name": "data",
            "required": true,
            "schema": {
              "$ref": "#/definitions/PublicSubscriptionCreate"
            }
          }
        ],
        "responses": {
          "201": {
            "description": "",
            "schema": {
              "$ref": "#/definitions/PublicSubscriptionCreated"
            }
          },
          "400": {
            "description": "Параметры или тело запроса не прошли проверку.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "401": {
            "description": "Токен отсутствует или недействителен.",
            "schema": {
              "$ref": "#/definitions/PublicAuthenticationError"
            }
          },
          "402": {
            "description": "Тариф команды не включает запрошенную возможность.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "403": {
            "description": "Токену не выдан нужный грант или у пользователя отсутствуют права доступа.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "404": {
            "description": "Метод недоступен токену или объект отсутствует в доступной области.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "429": {
            "description": "Превышен лимит запросов. Заголовок Retry-After указывает время ожидания в секундах.",
            "headers": {
              "Retry-After": {
                "description": "Секунд до следующей попытки.",
                "type": "integer"
              }
            },
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          }
        },
        "summary": "Создание вебхука",
        "tags": [
          "webhooks"
        ],
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import os\n\nfrom shtab_sdk import ApiError, ShtabClient\n\nclient = ShtabClient(os.environ[\"SHTAB_TOKEN\"], token_type=\"personal\")\ntry:\n    result = client.teams_webhooks_create(path={'team_id': '1'}, body={'event_types': ['task.created'],\n     'name': 'Уведомления о задачах',\n     'url': 'https://example.com/shtab-webhook'})\n    print(result)\nexcept ApiError as error:\n    print(error.status, error.code, error.body)\n    raise"
          },
          {
            "lang": "TypeScript",
            "source": "import { ApiError, ShtabClient } from \"@shtabapp/sdk\";\n\nconst token = process.env.SHTAB_TOKEN;\nif (!token) throw new Error(\"Set SHTAB_TOKEN\");\nconst client = new ShtabClient(token, { tokenType: \"personal\" });\ntry {\n  const result = await client.teamsWebhooksCreate({\n    \"path\": {\n      \"team_id\": \"1\"\n    },\n    \"body\": {\n      \"name\": \"Уведомления о задачах\",\n      \"url\": \"https://example.com/shtab-webhook\",\n      \"event_types\": [\n        \"task.created\"\n      ]\n    }\n  });\n  console.log(result);\n} catch (error) {\n  if (error instanceof ApiError) console.error(error.status, error.code, error.body);\n  throw error;\n}"
          }
        ],
        "x-shtab-scope": "webhooks:write",
        "x-shtab-sdk": {
          "python": "teams_webhooks_create",
          "typescript": "teamsWebhooksCreate"
        },
        "x-shtab-token-types": [
          "personal",
          "team"
        ]
      }
    },
    "/api/teams/{team_id}/webhooks/{subscription_id}/": {
      "delete": {
        "description": "",
        "operationId": "api_teams_webhooks_delete",
        "parameters": [
          {
            "format": "uuid",
            "in": "path",
            "name": "subscription_id",
            "required": true,
            "type": "string"
          }
        ],
        "responses": {
          "204": {
            "description": ""
          },
          "400": {
            "description": "Параметры или тело запроса не прошли проверку.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "401": {
            "description": "Токен отсутствует или недействителен.",
            "schema": {
              "$ref": "#/definitions/PublicAuthenticationError"
            }
          },
          "402": {
            "description": "Тариф команды не включает запрошенную возможность.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "403": {
            "description": "Токену не выдан нужный грант или у пользователя отсутствуют права доступа.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "404": {
            "description": "Метод недоступен токену или объект отсутствует в доступной области.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "429": {
            "description": "Превышен лимит запросов. Заголовок Retry-After указывает время ожидания в секундах.",
            "headers": {
              "Retry-After": {
                "description": "Секунд до следующей попытки.",
                "type": "integer"
              }
            },
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          }
        },
        "summary": "Удаление вебхука",
        "tags": [
          "webhooks"
        ],
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import os\n\nfrom shtab_sdk import ApiError, ShtabClient\n\nclient = ShtabClient(os.environ[\"SHTAB_TOKEN\"], token_type=\"personal\")\ntry:\n    result = client.teams_webhooks_delete(path={'subscription_id': '00000000-0000-4000-8000-000000000001',\n     'team_id': '1'})\n    print(result)\nexcept ApiError as error:\n    print(error.status, error.code, error.body)\n    raise"
          },
          {
            "lang": "TypeScript",
            "source": "import { ApiError, ShtabClient } from \"@shtabapp/sdk\";\n\nconst token = process.env.SHTAB_TOKEN;\nif (!token) throw new Error(\"Set SHTAB_TOKEN\");\nconst client = new ShtabClient(token, { tokenType: \"personal\" });\ntry {\n  const result = await client.teamsWebhooksDelete({\n    \"path\": {\n      \"team_id\": \"1\",\n      \"subscription_id\": \"00000000-0000-4000-8000-000000000001\"\n    }\n  });\n  console.log(result);\n} catch (error) {\n  if (error instanceof ApiError) console.error(error.status, error.code, error.body);\n  throw error;\n}"
          }
        ],
        "x-shtab-scope": "webhooks:write",
        "x-shtab-sdk": {
          "python": "teams_webhooks_delete",
          "typescript": "teamsWebhooksDelete"
        },
        "x-shtab-token-types": [
          "personal",
          "team"
        ]
      },
      "parameters": [
        {
          "in": "path",
          "name": "team_id",
          "required": true,
          "type": "string"
        },
        {
          "in": "path",
          "name": "subscription_id",
          "required": true,
          "type": "string"
        }
      ],
      "patch": {
        "description": "",
        "operationId": "api_teams_webhooks_partial_update",
        "parameters": [
          {
            "in": "body",
            "name": "data",
            "required": true,
            "schema": {
              "$ref": "#/definitions/PublicSubscriptionUpdate"
            }
          },
          {
            "format": "uuid",
            "in": "path",
            "name": "subscription_id",
            "required": true,
            "type": "string"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "schema": {
              "$ref": "#/definitions/PublicSubscription"
            }
          },
          "400": {
            "description": "Параметры или тело запроса не прошли проверку.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "401": {
            "description": "Токен отсутствует или недействителен.",
            "schema": {
              "$ref": "#/definitions/PublicAuthenticationError"
            }
          },
          "402": {
            "description": "Тариф команды не включает запрошенную возможность.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "403": {
            "description": "Токену не выдан нужный грант или у пользователя отсутствуют права доступа.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "404": {
            "description": "Метод недоступен токену или объект отсутствует в доступной области.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "429": {
            "description": "Превышен лимит запросов. Заголовок Retry-After указывает время ожидания в секундах.",
            "headers": {
              "Retry-After": {
                "description": "Секунд до следующей попытки.",
                "type": "integer"
              }
            },
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          }
        },
        "summary": "Редактирование вебхука",
        "tags": [
          "webhooks"
        ],
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import os\n\nfrom shtab_sdk import ApiError, ShtabClient\n\nclient = ShtabClient(os.environ[\"SHTAB_TOKEN\"], token_type=\"personal\")\ntry:\n    result = client.teams_webhooks_partial_update(path={'subscription_id': '00000000-0000-4000-8000-000000000001',\n     'team_id': '1'}, body={'name': 'Уведомления о новых задачах'})\n    print(result)\nexcept ApiError as error:\n    print(error.status, error.code, error.body)\n    raise"
          },
          {
            "lang": "TypeScript",
            "source": "import { ApiError, ShtabClient } from \"@shtabapp/sdk\";\n\nconst token = process.env.SHTAB_TOKEN;\nif (!token) throw new Error(\"Set SHTAB_TOKEN\");\nconst client = new ShtabClient(token, { tokenType: \"personal\" });\ntry {\n  const result = await client.teamsWebhooksPartialUpdate({\n    \"path\": {\n      \"team_id\": \"1\",\n      \"subscription_id\": \"00000000-0000-4000-8000-000000000001\"\n    },\n    \"body\": {\n      \"name\": \"Уведомления о новых задачах\"\n    }\n  });\n  console.log(result);\n} catch (error) {\n  if (error instanceof ApiError) console.error(error.status, error.code, error.body);\n  throw error;\n}"
          }
        ],
        "x-shtab-scope": "webhooks:write",
        "x-shtab-sdk": {
          "python": "teams_webhooks_partial_update",
          "typescript": "teamsWebhooksPartialUpdate"
        },
        "x-shtab-token-types": [
          "personal",
          "team"
        ]
      }
    },
    "/api/v2/teams/{team_id}/members/": {
      "parameters": [
        {
          "in": "path",
          "name": "team_id",
          "required": true,
          "type": "string"
        }
      ],
      "post": {
        "description": "",
        "operationId": "api_v2_teams_members_create",
        "parameters": [
          {
            "in": "body",
            "name": "data",
            "required": true,
            "schema": {
              "$ref": "#/definitions/PublicTeamMemberInvite"
            }
          }
        ],
        "responses": {
          "201": {
            "description": "",
            "schema": {
              "$ref": "#/definitions/PublicTeamMemberInviteResponse"
            }
          },
          "400": {
            "description": "Параметры или тело запроса не прошли проверку.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "401": {
            "description": "Токен отсутствует или недействителен.",
            "schema": {
              "$ref": "#/definitions/PublicAuthenticationError"
            }
          },
          "402": {
            "description": "Тариф команды не включает запрошенную возможность.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "403": {
            "description": "Токену не выдан нужный грант или у пользователя отсутствуют права доступа.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "404": {
            "description": "Метод недоступен токену или объект отсутствует в доступной области.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "429": {
            "description": "Превышен лимит запросов. Заголовок Retry-After указывает время ожидания в секундах.",
            "headers": {
              "Retry-After": {
                "description": "Секунд до следующей попытки.",
                "type": "integer"
              }
            },
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          }
        },
        "summary": "Пригласить участников в компанию",
        "tags": [
          "teams"
        ],
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import os\n\nfrom shtab_sdk import ApiError, ShtabClient\n\nclient = ShtabClient(os.environ[\"SHTAB_TOKEN\"], token_type=\"personal\")\ntry:\n    result = client.v2_teams_members_create(path={'team_id': '1'}, body={'usernames': ['dev@example.com']})\n    print(result)\nexcept ApiError as error:\n    print(error.status, error.code, error.body)\n    raise"
          },
          {
            "lang": "TypeScript",
            "source": "import { ApiError, ShtabClient } from \"@shtabapp/sdk\";\n\nconst token = process.env.SHTAB_TOKEN;\nif (!token) throw new Error(\"Set SHTAB_TOKEN\");\nconst client = new ShtabClient(token, { tokenType: \"personal\" });\ntry {\n  const result = await client.v2TeamsMembersCreate({\n    \"path\": {\n      \"team_id\": \"1\"\n    },\n    \"body\": {\n      \"usernames\": [\n        \"dev@example.com\"\n      ]\n    }\n  });\n  console.log(result);\n} catch (error) {\n  if (error instanceof ApiError) console.error(error.status, error.code, error.body);\n  throw error;\n}"
          }
        ],
        "x-shtab-scope": "members:create",
        "x-shtab-sdk": {
          "python": "v2_teams_members_create",
          "typescript": "v2TeamsMembersCreate"
        },
        "x-shtab-token-types": [
          "personal",
          "team"
        ]
      }
    },
    "/api/views/{team_id}/": {
      "get": {
        "description": "Список, создание, изменение и удаление Видов.",
        "operationId": "api_views_list",
        "parameters": [
          {
            "description": "",
            "in": "query",
            "name": "parent",
            "required": false,
            "type": "string"
          },
          {
            "description": "",
            "in": "query",
            "name": "favorite",
            "required": false,
            "type": "string"
          },
          {
            "description": "",
            "in": "query",
            "name": "single_level_views",
            "required": false,
            "type": "string"
          },
          {
            "description": "",
            "in": "query",
            "name": "exclude_type",
            "required": false,
            "type": "string"
          },
          {
            "description": "",
            "in": "query",
            "name": "exclude",
            "required": false,
            "type": "string"
          },
          {
            "description": "",
            "in": "query",
            "name": "ids",
            "required": false,
            "type": "string"
          },
          {
            "description": "",
            "in": "query",
            "name": "type",
            "required": false,
            "type": "string"
          },
          {
            "description": "",
            "in": "query",
            "name": "recent",
            "required": false,
            "type": "string"
          },
          {
            "description": "",
            "in": "query",
            "name": "datasource",
            "required": false,
            "type": "string"
          },
          {
            "description": "",
            "in": "query",
            "name": "created_by",
            "required": false,
            "type": "string"
          },
          {
            "description": "",
            "in": "query",
            "name": "status",
            "required": false,
            "type": "string"
          },
          {
            "description": "",
            "in": "query",
            "name": "priority",
            "required": false,
            "type": "string"
          },
          {
            "description": "",
            "in": "query",
            "name": "responsible",
            "required": false,
            "type": "string"
          },
          {
            "description": "",
            "in": "query",
            "name": "deadline",
            "required": false,
            "type": "string"
          },
          {
            "description": "",
            "in": "query",
            "name": "deadline__gt",
            "required": false,
            "type": "string"
          },
          {
            "description": "",
            "in": "query",
            "name": "deadline__lt",
            "required": false,
            "type": "string"
          },
          {
            "description": "",
            "in": "query",
            "name": "created_at",
            "required": false,
            "type": "string"
          },
          {
            "description": "",
            "in": "query",
            "name": "created_at__gt",
            "required": false,
            "type": "string"
          },
          {
            "description": "",
            "in": "query",
            "name": "created_at__lt",
            "required": false,
            "type": "string"
          },
          {
            "description": "",
            "in": "query",
            "name": "created_at__gte",
            "required": false,
            "type": "string"
          },
          {
            "description": "",
            "in": "query",
            "name": "created_at__lte",
            "required": false,
            "type": "string"
          },
          {
            "description": "",
            "in": "query",
            "name": "labels",
            "required": false,
            "type": "string"
          },
          {
            "description": "A search term.",
            "in": "query",
            "name": "search",
            "required": false,
            "type": "string"
          },
          {
            "default": 20,
            "description": "Number of results to return per page.",
            "in": "query",
            "maximum": 100,
            "minimum": 1,
            "name": "limit",
            "required": false,
            "type": "integer"
          },
          {
            "default": 0,
            "description": "The initial index from which to return the results.",
            "in": "query",
            "minimum": 0,
            "name": "offset",
            "required": false,
            "type": "integer"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "schema": {
              "properties": {
                "next": {
                  "format": "uri",
                  "type": "string",
                  "x-nullable": true
                },
                "previous": {
                  "format": "uri",
                  "type": "string",
                  "x-nullable": true
                },
                "results": {
                  "items": {
                    "$ref": "#/definitions/PublicView"
                  },
                  "type": "array"
                }
              },
              "required": [
                "results"
              ],
              "type": "object"
            }
          },
          "400": {
            "description": "Параметры или тело запроса не прошли проверку.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "401": {
            "description": "Токен отсутствует или недействителен.",
            "schema": {
              "$ref": "#/definitions/PublicAuthenticationError"
            }
          },
          "402": {
            "description": "Тариф команды не включает запрошенную возможность.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "403": {
            "description": "Токену не выдан нужный грант или у пользователя отсутствуют права доступа.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "404": {
            "description": "Метод недоступен токену или объект отсутствует в доступной области.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "429": {
            "description": "Превышен лимит запросов. Заголовок Retry-After указывает время ожидания в секундах.",
            "headers": {
              "Retry-After": {
                "description": "Секунд до следующей попытки.",
                "type": "integer"
              }
            },
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          }
        },
        "summary": "Получить список доступных пространств команды",
        "tags": [
          "views"
        ],
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import os\n\nfrom shtab_sdk import ApiError, ShtabClient\n\nclient = ShtabClient(os.environ[\"SHTAB_TOKEN\"], token_type=\"personal\")\ntry:\n    result = client.views_list(path={'team_id': '1'}, query={'limit': 20})\n    print(result)\nexcept ApiError as error:\n    print(error.status, error.code, error.body)\n    raise"
          },
          {
            "lang": "TypeScript",
            "source": "import { ApiError, ShtabClient } from \"@shtabapp/sdk\";\n\nconst token = process.env.SHTAB_TOKEN;\nif (!token) throw new Error(\"Set SHTAB_TOKEN\");\nconst client = new ShtabClient(token, { tokenType: \"personal\" });\ntry {\n  const result = await client.viewsList({\n    \"path\": {\n      \"team_id\": \"1\"\n    },\n    \"query\": {\n      \"limit\": 20\n    }\n  });\n  console.log(result);\n} catch (error) {\n  if (error instanceof ApiError) console.error(error.status, error.code, error.body);\n  throw error;\n}"
          }
        ],
        "x-shtab-pagination": {
          "limit": "limit",
          "next": "next",
          "offset": "offset",
          "previous": "previous",
          "type": "limit-offset"
        },
        "x-shtab-scope": "views:read",
        "x-shtab-sdk": {
          "python": "views_list",
          "typescript": "viewsList"
        },
        "x-shtab-token-types": [
          "personal",
          "team"
        ]
      },
      "parameters": [
        {
          "in": "path",
          "name": "team_id",
          "required": true,
          "type": "string"
        }
      ],
      "post": {
        "description": "Список, создание, изменение и удаление Видов.",
        "operationId": "api_views_create",
        "parameters": [
          {
            "in": "body",
            "name": "data",
            "required": true,
            "schema": {
              "$ref": "#/definitions/PublicViewCreate"
            }
          }
        ],
        "responses": {
          "201": {
            "description": "",
            "schema": {
              "$ref": "#/definitions/PublicView"
            }
          },
          "400": {
            "description": "Параметры или тело запроса не прошли проверку.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "401": {
            "description": "Токен отсутствует или недействителен.",
            "schema": {
              "$ref": "#/definitions/PublicAuthenticationError"
            }
          },
          "402": {
            "description": "Тариф команды не включает запрошенную возможность.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "403": {
            "description": "Токену не выдан нужный грант или у пользователя отсутствуют права доступа.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "404": {
            "description": "Метод недоступен токену или объект отсутствует в доступной области.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "429": {
            "description": "Превышен лимит запросов. Заголовок Retry-After указывает время ожидания в секундах.",
            "headers": {
              "Retry-After": {
                "description": "Секунд до следующей попытки.",
                "type": "integer"
              }
            },
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          }
        },
        "summary": "Создать пространство в команде",
        "tags": [
          "views"
        ],
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import os\n\nfrom shtab_sdk import ApiError, ShtabClient\n\nclient = ShtabClient(os.environ[\"SHTAB_TOKEN\"], token_type=\"personal\")\ntry:\n    result = client.views_create(path={'team_id': '1'}, body={'name': 'пример'})\n    print(result)\nexcept ApiError as error:\n    print(error.status, error.code, error.body)\n    raise"
          },
          {
            "lang": "TypeScript",
            "source": "import { ApiError, ShtabClient } from \"@shtabapp/sdk\";\n\nconst token = process.env.SHTAB_TOKEN;\nif (!token) throw new Error(\"Set SHTAB_TOKEN\");\nconst client = new ShtabClient(token, { tokenType: \"personal\" });\ntry {\n  const result = await client.viewsCreate({\n    \"path\": {\n      \"team_id\": \"1\"\n    },\n    \"body\": {\n      \"name\": \"пример\"\n    }\n  });\n  console.log(result);\n} catch (error) {\n  if (error instanceof ApiError) console.error(error.status, error.code, error.body);\n  throw error;\n}"
          }
        ],
        "x-shtab-scope": "views:write",
        "x-shtab-sdk": {
          "python": "views_create",
          "typescript": "viewsCreate"
        },
        "x-shtab-token-types": [
          "personal",
          "team"
        ]
      }
    },
    "/api/views/{team_id}/{view_id}/": {
      "delete": {
        "description": "Список, создание, изменение и удаление Видов.",
        "operationId": "api_views_delete",
        "parameters": [],
        "responses": {
          "204": {
            "description": ""
          },
          "400": {
            "description": "Параметры или тело запроса не прошли проверку.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "401": {
            "description": "Токен отсутствует или недействителен.",
            "schema": {
              "$ref": "#/definitions/PublicAuthenticationError"
            }
          },
          "402": {
            "description": "Тариф команды не включает запрошенную возможность.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "403": {
            "description": "Токену не выдан нужный грант или у пользователя отсутствуют права доступа.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "404": {
            "description": "Метод недоступен токену или объект отсутствует в доступной области.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "429": {
            "description": "Превышен лимит запросов. Заголовок Retry-After указывает время ожидания в секундах.",
            "headers": {
              "Retry-After": {
                "description": "Секунд до следующей попытки.",
                "type": "integer"
              }
            },
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          }
        },
        "summary": "Удалить пространство",
        "tags": [
          "views"
        ],
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import os\n\nfrom shtab_sdk import ApiError, ShtabClient\n\nclient = ShtabClient(os.environ[\"SHTAB_TOKEN\"], token_type=\"personal\")\ntry:\n    result = client.views_delete(path={'team_id': '1', 'view_id': '1'})\n    print(result)\nexcept ApiError as error:\n    print(error.status, error.code, error.body)\n    raise"
          },
          {
            "lang": "TypeScript",
            "source": "import { ApiError, ShtabClient } from \"@shtabapp/sdk\";\n\nconst token = process.env.SHTAB_TOKEN;\nif (!token) throw new Error(\"Set SHTAB_TOKEN\");\nconst client = new ShtabClient(token, { tokenType: \"personal\" });\ntry {\n  const result = await client.viewsDelete({\n    \"path\": {\n      \"team_id\": \"1\",\n      \"view_id\": \"1\"\n    }\n  });\n  console.log(result);\n} catch (error) {\n  if (error instanceof ApiError) console.error(error.status, error.code, error.body);\n  throw error;\n}"
          }
        ],
        "x-shtab-scope": "views:write",
        "x-shtab-sdk": {
          "python": "views_delete",
          "typescript": "viewsDelete"
        },
        "x-shtab-token-types": [
          "personal",
          "team"
        ]
      },
      "get": {
        "description": "Список, создание, изменение и удаление Видов.",
        "operationId": "api_views_read",
        "parameters": [],
        "responses": {
          "200": {
            "description": "",
            "schema": {
              "$ref": "#/definitions/PublicView"
            }
          },
          "400": {
            "description": "Параметры или тело запроса не прошли проверку.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "401": {
            "description": "Токен отсутствует или недействителен.",
            "schema": {
              "$ref": "#/definitions/PublicAuthenticationError"
            }
          },
          "402": {
            "description": "Тариф команды не включает запрошенную возможность.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "403": {
            "description": "Токену не выдан нужный грант или у пользователя отсутствуют права доступа.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "404": {
            "description": "Метод недоступен токену или объект отсутствует в доступной области.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "429": {
            "description": "Превышен лимит запросов. Заголовок Retry-After указывает время ожидания в секундах.",
            "headers": {
              "Retry-After": {
                "description": "Секунд до следующей попытки.",
                "type": "integer"
              }
            },
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          }
        },
        "summary": "Получить сведения о пространстве",
        "tags": [
          "views"
        ],
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import os\n\nfrom shtab_sdk import ApiError, ShtabClient\n\nclient = ShtabClient(os.environ[\"SHTAB_TOKEN\"], token_type=\"personal\")\ntry:\n    result = client.views_read(path={'team_id': '1', 'view_id': '1'})\n    print(result)\nexcept ApiError as error:\n    print(error.status, error.code, error.body)\n    raise"
          },
          {
            "lang": "TypeScript",
            "source": "import { ApiError, ShtabClient } from \"@shtabapp/sdk\";\n\nconst token = process.env.SHTAB_TOKEN;\nif (!token) throw new Error(\"Set SHTAB_TOKEN\");\nconst client = new ShtabClient(token, { tokenType: \"personal\" });\ntry {\n  const result = await client.viewsRead({\n    \"path\": {\n      \"team_id\": \"1\",\n      \"view_id\": \"1\"\n    }\n  });\n  console.log(result);\n} catch (error) {\n  if (error instanceof ApiError) console.error(error.status, error.code, error.body);\n  throw error;\n}"
          }
        ],
        "x-shtab-scope": "views:read",
        "x-shtab-sdk": {
          "python": "views_read",
          "typescript": "viewsRead"
        },
        "x-shtab-token-types": [
          "personal",
          "team"
        ]
      },
      "parameters": [
        {
          "in": "path",
          "name": "team_id",
          "required": true,
          "type": "string"
        },
        {
          "in": "path",
          "name": "view_id",
          "required": true,
          "type": "string"
        }
      ],
      "patch": {
        "description": "Список, создание, изменение и удаление Видов.",
        "operationId": "api_views_partial_update",
        "parameters": [
          {
            "in": "body",
            "name": "data",
            "required": true,
            "schema": {
              "$ref": "#/definitions/PublicViewUpdate"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "schema": {
              "$ref": "#/definitions/PublicView"
            }
          },
          "400": {
            "description": "Параметры или тело запроса не прошли проверку.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "401": {
            "description": "Токен отсутствует или недействителен.",
            "schema": {
              "$ref": "#/definitions/PublicAuthenticationError"
            }
          },
          "402": {
            "description": "Тариф команды не включает запрошенную возможность.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "403": {
            "description": "Токену не выдан нужный грант или у пользователя отсутствуют права доступа.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "404": {
            "description": "Метод недоступен токену или объект отсутствует в доступной области.",
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          },
          "429": {
            "description": "Превышен лимит запросов. Заголовок Retry-After указывает время ожидания в секундах.",
            "headers": {
              "Retry-After": {
                "description": "Секунд до следующей попытки.",
                "type": "integer"
              }
            },
            "schema": {
              "$ref": "#/definitions/PublicApiError"
            }
          }
        },
        "summary": "Изменить параметры пространства",
        "tags": [
          "views"
        ],
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import os\n\nfrom shtab_sdk import ApiError, ShtabClient\n\nclient = ShtabClient(os.environ[\"SHTAB_TOKEN\"], token_type=\"personal\")\ntry:\n    result = client.views_partial_update(path={'team_id': '1', 'view_id': '1'}, body={'name': 'пример'})\n    print(result)\nexcept ApiError as error:\n    print(error.status, error.code, error.body)\n    raise"
          },
          {
            "lang": "TypeScript",
            "source": "import { ApiError, ShtabClient } from \"@shtabapp/sdk\";\n\nconst token = process.env.SHTAB_TOKEN;\nif (!token) throw new Error(\"Set SHTAB_TOKEN\");\nconst client = new ShtabClient(token, { tokenType: \"personal\" });\ntry {\n  const result = await client.viewsPartialUpdate({\n    \"path\": {\n      \"team_id\": \"1\",\n      \"view_id\": \"1\"\n    },\n    \"body\": {\n      \"name\": \"пример\"\n    }\n  });\n  console.log(result);\n} catch (error) {\n  if (error instanceof ApiError) console.error(error.status, error.code, error.body);\n  throw error;\n}"
          }
        ],
        "x-shtab-scope": "views:write",
        "x-shtab-sdk": {
          "python": "views_partial_update",
          "typescript": "viewsPartialUpdate"
        },
        "x-shtab-token-types": [
          "personal",
          "team"
        ]
      }
    }
  },
  "produces": [
    "application/json"
  ],
  "schemes": [
    "https"
  ],
  "security": [
    {
      "BearerToken": []
    },
    {
      "TeamTokenHeader": []
    }
  ],
  "securityDefinitions": {
    "BearerToken": {
      "description": "Bearer <токен>",
      "in": "header",
      "name": "Authorization",
      "type": "apiKey"
    },
    "TeamTokenHeader": {
      "description": "<токен>",
      "in": "header",
      "name": "Authorization-Team",
      "type": "apiKey"
    }
  },
  "swagger": "2.0",
  "x-shtab-rate-limit-headers": {
    "RateLimit-Limit": {
      "description": "Лимит запросов в применённом окне.",
      "type": "integer"
    },
    "RateLimit-Remaining": {
      "description": "Оставшееся число запросов.",
      "type": "integer"
    },
    "RateLimit-Reset": {
      "description": "Секунд до сброса счётчика.",
      "type": "integer"
    }
  }
}
