add swagger files

This commit is contained in:
viehlieb 2023-03-30 17:15:07 +02:00
parent 169b668c3c
commit 85307ce666
3 changed files with 649 additions and 478 deletions

View File

@ -1,5 +1,4 @@
// Package swagger GENERATED BY SWAG; DO NOT EDIT
// This file was generated by swaggo/swag
// Code generated by swaggo/swag. DO NOT EDIT
package swagger
import "github.com/swaggo/swag"
@ -7620,36 +7619,11 @@ const docTemplate = `{
},
"created_by": {
"description": "The user who initially created the bucket.",
"$ref": "#/definitions/user.User"
},
"filter_by": {
"description": "The field name of the field to filter by",
"type": "array",
"items": {
"type": "string"
}
},
"filter_comparator": {
"description": "The comparator for field and value",
"type": "array",
"items": {
"type": "string"
}
},
"filter_concat": {
"description": "The way all filter conditions are concatenated together, can be either \"and\" or \"or\".,",
"type": "string"
},
"filter_include_nulls": {
"description": "If set to true, the result will also include null values",
"type": "boolean"
},
"filter_value": {
"description": "The value of the field name to filter by",
"type": "array",
"items": {
"type": "string"
}
"allOf": [
{
"$ref": "#/definitions/user.User"
}
]
},
"id": {
"description": "The unique, numeric id of this bucket.",
@ -7668,24 +7642,10 @@ const docTemplate = `{
"description": "The list this bucket belongs to.",
"type": "integer"
},
"order_by": {
"description": "The query parameter to order the items by. This can be either asc or desc, with asc being the default.",
"type": "array",
"items": {
"type": "string"
}
},
"position": {
"description": "The position this bucket has when querying all buckets. See the tasks.position property on how to use this.",
"type": "number"
},
"sort_by": {
"description": "The query parameter to sort by. This is for ex. done, priority, etc.",
"type": "array",
"items": {
"type": "string"
}
},
"tasks": {
"description": "All tasks which belong to this bucket.",
"type": "array",
@ -7701,9 +7661,7 @@ const docTemplate = `{
"updated": {
"description": "A timestamp when this bucket was last updated. You cannot change this value.",
"type": "string"
},
"web.CRUDable": {},
"web.Rights": {}
}
}
},
"models.BulkAssignees": {
@ -7715,9 +7673,7 @@ const docTemplate = `{
"items": {
"$ref": "#/definitions/user.User"
}
},
"web.CRUDable": {},
"web.Rights": {}
}
}
},
"models.BulkTask": {
@ -7751,7 +7707,11 @@ const docTemplate = `{
},
"created_by": {
"description": "The user who initially created the task.",
"$ref": "#/definitions/user.User"
"allOf": [
{
"$ref": "#/definitions/user.User"
}
]
},
"description": {
"description": "The task description.",
@ -7823,7 +7783,11 @@ const docTemplate = `{
},
"related_tasks": {
"description": "All related tasks, grouped by their relation kind",
"$ref": "#/definitions/models.RelatedTaskMap"
"allOf": [
{
"$ref": "#/definitions/models.RelatedTaskMap"
}
]
},
"reminder_dates": {
"description": "An array of datetimes when the user wants to be reminded of the task.",
@ -7838,7 +7802,11 @@ const docTemplate = `{
},
"repeat_mode": {
"description": "Can have three possible values which will trigger when the task is marked as done: 0 = repeats after the amount specified in repeat_after, 1 = repeats all dates each months (ignoring repeat_after), 3 = repeats from the current date rather than the last set date.",
"type": "integer"
"allOf": [
{
"$ref": "#/definitions/models.TaskRepeatMode"
}
]
},
"start_date": {
"description": "When this task starts.",
@ -7846,7 +7814,11 @@ const docTemplate = `{
},
"subscription": {
"description": "The subscription status for the user reading this task. You can only read this property, use the subscription endpoints to modify it.\nWill only returned when retreiving one task.",
"$ref": "#/definitions/models.Subscription"
"allOf": [
{
"$ref": "#/definitions/models.Subscription"
}
]
},
"task_ids": {
"description": "A list of task ids to update",
@ -7863,9 +7835,7 @@ const docTemplate = `{
"updated": {
"description": "A timestamp when this task was last updated. You cannot change this value.",
"type": "string"
},
"web.CRUDable": {},
"web.Rights": {}
}
}
},
"models.DatabaseNotifications": {
@ -7893,9 +7863,7 @@ const docTemplate = `{
"read_at": {
"description": "When this notification is marked as read, this will be updated with the current timestamp.",
"type": "string"
},
"web.CRUDable": {},
"web.Rights": {}
}
}
},
"models.Label": {
@ -7907,7 +7875,11 @@ const docTemplate = `{
},
"created_by": {
"description": "The user who created this label",
"$ref": "#/definitions/user.User"
"allOf": [
{
"$ref": "#/definitions/user.User"
}
]
},
"description": {
"description": "The label description.",
@ -7931,9 +7903,7 @@ const docTemplate = `{
"updated": {
"description": "A timestamp when this label was last updated. You cannot change this value.",
"type": "string"
},
"web.CRUDable": {},
"web.Rights": {}
}
}
},
"models.LabelTask": {
@ -7946,9 +7916,7 @@ const docTemplate = `{
"label_id": {
"description": "The label id you want to associate with a task.",
"type": "integer"
},
"web.CRUDable": {},
"web.Rights": {}
}
}
},
"models.LabelTaskBulk": {
@ -7960,9 +7928,7 @@ const docTemplate = `{
"items": {
"$ref": "#/definitions/models.Label"
}
},
"web.CRUDable": {},
"web.Rights": {}
}
}
},
"models.LinkSharing": {
@ -7990,26 +7956,36 @@ const docTemplate = `{
},
"right": {
"description": "The right this list is shared with. 0 = Read only, 1 = Read \u0026 Write, 2 = Admin. See the docs for more details.",
"type": "integer",
"default": 0,
"maximum": 2
"maximum": 2,
"allOf": [
{
"$ref": "#/definitions/models.Right"
}
]
},
"shared_by": {
"description": "The user who shared this list",
"$ref": "#/definitions/user.User"
"allOf": [
{
"$ref": "#/definitions/user.User"
}
]
},
"sharing_type": {
"description": "The kind of this link. 0 = undefined, 1 = without password, 2 = with password.",
"type": "integer",
"default": 0,
"maximum": 2
"maximum": 2,
"allOf": [
{
"$ref": "#/definitions/models.SharingType"
}
]
},
"updated": {
"description": "A timestamp when this share was last updated. You cannot change this value.",
"type": "string"
},
"web.CRUDable": {},
"web.Rights": {}
}
}
},
"models.List": {
@ -8058,7 +8034,11 @@ const docTemplate = `{
},
"owner": {
"description": "The user who created this list.",
"$ref": "#/definitions/user.User"
"allOf": [
{
"$ref": "#/definitions/user.User"
}
]
},
"position": {
"description": "The position this list has when querying all lists. See the tasks.position property on how to use this.",
@ -8066,7 +8046,11 @@ const docTemplate = `{
},
"subscription": {
"description": "The subscription status for the user reading this list. You can only read this property, use the subscription endpoints to modify it.\nWill only returned when retreiving one list.",
"$ref": "#/definitions/models.Subscription"
"allOf": [
{
"$ref": "#/definitions/models.Subscription"
}
]
},
"title": {
"description": "The title of the list. You'll see this in the namespace overview.",
@ -8077,9 +8061,7 @@ const docTemplate = `{
"updated": {
"description": "A timestamp when this list was last updated. You cannot change this value.",
"type": "string"
},
"web.CRUDable": {},
"web.Rights": {}
}
}
},
"models.ListDuplicate": {
@ -8087,14 +8069,16 @@ const docTemplate = `{
"properties": {
"list": {
"description": "The copied list",
"$ref": "#/definitions/models.List"
"allOf": [
{
"$ref": "#/definitions/models.List"
}
]
},
"namespace_id": {
"description": "The target namespace ID",
"type": "integer"
},
"web.CRUDable": {},
"web.Rights": {}
}
}
},
"models.ListUser": {
@ -8110,9 +8094,13 @@ const docTemplate = `{
},
"right": {
"description": "The right this user has. 0 = Read only, 1 = Read \u0026 Write, 2 = Admin. See the docs for more details.",
"type": "integer",
"default": 0,
"maximum": 2
"maximum": 2,
"allOf": [
{
"$ref": "#/definitions/models.Right"
}
]
},
"updated": {
"description": "A timestamp when this relation was last updated. You cannot change this value.",
@ -8121,9 +8109,7 @@ const docTemplate = `{
"user_id": {
"description": "The username.",
"type": "string"
},
"web.CRUDable": {},
"web.Rights": {}
}
}
},
"models.Message": {
@ -8161,11 +8147,19 @@ const docTemplate = `{
},
"owner": {
"description": "The user who owns this namespace",
"$ref": "#/definitions/user.User"
"allOf": [
{
"$ref": "#/definitions/user.User"
}
]
},
"subscription": {
"description": "The subscription status for the user reading this namespace. You can only read this property, use the subscription endpoints to modify it.\nWill only returned when retreiving one namespace.",
"$ref": "#/definitions/models.Subscription"
"allOf": [
{
"$ref": "#/definitions/models.Subscription"
}
]
},
"title": {
"description": "The name of this namespace.",
@ -8176,9 +8170,7 @@ const docTemplate = `{
"updated": {
"description": "A timestamp when this namespace was last updated. You cannot change this value.",
"type": "string"
},
"web.CRUDable": {},
"web.Rights": {}
}
}
},
"models.NamespaceUser": {
@ -8194,9 +8186,13 @@ const docTemplate = `{
},
"right": {
"description": "The right this user has. 0 = Read only, 1 = Read \u0026 Write, 2 = Admin. See the docs for more details.",
"type": "integer",
"default": 0,
"maximum": 2
"maximum": 2,
"allOf": [
{
"$ref": "#/definitions/models.Right"
}
]
},
"updated": {
"description": "A timestamp when this relation was last updated. You cannot change this value.",
@ -8205,9 +8201,7 @@ const docTemplate = `{
"user_id": {
"description": "The username.",
"type": "string"
},
"web.CRUDable": {},
"web.Rights": {}
}
}
},
"models.NamespaceWithLists": {
@ -8242,11 +8236,19 @@ const docTemplate = `{
},
"owner": {
"description": "The user who owns this namespace",
"$ref": "#/definitions/user.User"
"allOf": [
{
"$ref": "#/definitions/user.User"
}
]
},
"subscription": {
"description": "The subscription status for the user reading this namespace. You can only read this property, use the subscription endpoints to modify it.\nWill only returned when retreiving one namespace.",
"$ref": "#/definitions/models.Subscription"
"allOf": [
{
"$ref": "#/definitions/models.Subscription"
}
]
},
"title": {
"description": "The name of this namespace.",
@ -8257,9 +8259,7 @@ const docTemplate = `{
"updated": {
"description": "A timestamp when this namespace was last updated. You cannot change this value.",
"type": "string"
},
"web.CRUDable": {},
"web.Rights": {}
}
}
},
"models.RelatedTaskMap": {
@ -8271,6 +8271,50 @@ const docTemplate = `{
}
}
},
"models.RelationKind": {
"type": "string",
"enum": [
"unknown",
"subtask",
"parenttask",
"related",
"duplicateof",
"duplicates",
"blocking",
"blocked",
"precedes",
"follows",
"copiedfrom",
"copiedto"
],
"x-enum-varnames": [
"RelationKindUnknown",
"RelationKindSubtask",
"RelationKindParenttask",
"RelationKindRelated",
"RelationKindDuplicateOf",
"RelationKindDuplicates",
"RelationKindBlocking",
"RelationKindBlocked",
"RelationKindPreceeds",
"RelationKindFollows",
"RelationKindCopiedFrom",
"RelationKindCopiedTo"
]
},
"models.Right": {
"type": "integer",
"enum": [
0,
1,
2
],
"x-enum-varnames": [
"RightRead",
"RightWrite",
"RightAdmin"
]
},
"models.SavedFilter": {
"type": "object",
"properties": {
@ -8284,7 +8328,11 @@ const docTemplate = `{
},
"filters": {
"description": "The actual filters this filter contains",
"$ref": "#/definitions/models.TaskCollection"
"allOf": [
{
"$ref": "#/definitions/models.TaskCollection"
}
]
},
"id": {
"description": "The unique numeric id of this saved filter",
@ -8296,7 +8344,11 @@ const docTemplate = `{
},
"owner": {
"description": "The user who owns this filter",
"$ref": "#/definitions/user.User"
"allOf": [
{
"$ref": "#/definitions/user.User"
}
]
},
"title": {
"description": "The title of the filter.",
@ -8307,11 +8359,22 @@ const docTemplate = `{
"updated": {
"description": "A timestamp when this filter was last updated. You cannot change this value.",
"type": "string"
},
"web.CRUDable": {},
"web.Rights": {}
}
}
},
"models.SharingType": {
"type": "integer",
"enum": [
0,
1,
2
],
"x-enum-varnames": [
"SharingTypeUnknown",
"SharingTypeWithoutPassword",
"SharingTypeWithPassword"
]
},
"models.Subscription": {
"type": "object",
"properties": {
@ -8332,10 +8395,12 @@ const docTemplate = `{
},
"user": {
"description": "The user who made this subscription",
"$ref": "#/definitions/user.User"
},
"web.CRUDable": {},
"web.Rights": {}
"allOf": [
{
"$ref": "#/definitions/user.User"
}
]
}
}
},
"models.Task": {
@ -8369,7 +8434,11 @@ const docTemplate = `{
},
"created_by": {
"description": "The user who initially created the task.",
"$ref": "#/definitions/user.User"
"allOf": [
{
"$ref": "#/definitions/user.User"
}
]
},
"description": {
"description": "The task description.",
@ -8441,7 +8510,11 @@ const docTemplate = `{
},
"related_tasks": {
"description": "All related tasks, grouped by their relation kind",
"$ref": "#/definitions/models.RelatedTaskMap"
"allOf": [
{
"$ref": "#/definitions/models.RelatedTaskMap"
}
]
},
"reminder_dates": {
"description": "An array of datetimes when the user wants to be reminded of the task.",
@ -8456,7 +8529,11 @@ const docTemplate = `{
},
"repeat_mode": {
"description": "Can have three possible values which will trigger when the task is marked as done: 0 = repeats after the amount specified in repeat_after, 1 = repeats all dates each months (ignoring repeat_after), 3 = repeats from the current date rather than the last set date.",
"type": "integer"
"allOf": [
{
"$ref": "#/definitions/models.TaskRepeatMode"
}
]
},
"start_date": {
"description": "When this task starts.",
@ -8464,7 +8541,11 @@ const docTemplate = `{
},
"subscription": {
"description": "The subscription status for the user reading this task. You can only read this property, use the subscription endpoints to modify it.\nWill only returned when retreiving one task.",
"$ref": "#/definitions/models.Subscription"
"allOf": [
{
"$ref": "#/definitions/models.Subscription"
}
]
},
"title": {
"description": "The task text. This is what you'll see in the list.",
@ -8474,9 +8555,7 @@ const docTemplate = `{
"updated": {
"description": "A timestamp when this task was last updated. You cannot change this value.",
"type": "string"
},
"web.CRUDable": {},
"web.Rights": {}
}
}
},
"models.TaskAssginee": {
@ -8487,9 +8566,7 @@ const docTemplate = `{
},
"user_id": {
"type": "integer"
},
"web.CRUDable": {},
"web.Rights": {}
}
}
},
"models.TaskAttachment": {
@ -8509,9 +8586,7 @@ const docTemplate = `{
},
"task_id": {
"type": "integer"
},
"web.CRUDable": {},
"web.Rights": {}
}
}
},
"models.TaskCollection": {
@ -8559,9 +8634,7 @@ const docTemplate = `{
"items": {
"type": "string"
}
},
"web.CRUDable": {},
"web.Rights": {}
}
}
},
"models.TaskComment": {
@ -8581,9 +8654,7 @@ const docTemplate = `{
},
"updated": {
"type": "string"
},
"web.CRUDable": {},
"web.Rights": {}
}
}
},
"models.TaskRelation": {
@ -8595,7 +8666,11 @@ const docTemplate = `{
},
"created_by": {
"description": "The user who created this relation",
"$ref": "#/definitions/user.User"
"allOf": [
{
"$ref": "#/definitions/user.User"
}
]
},
"other_task_id": {
"description": "The ID of the other task, the task which is being related.",
@ -8603,16 +8678,31 @@ const docTemplate = `{
},
"relation_kind": {
"description": "The kind of the relation.",
"type": "string"
"allOf": [
{
"$ref": "#/definitions/models.RelationKind"
}
]
},
"task_id": {
"description": "The ID of the \"base\" task, the task which has a relation to another.",
"type": "integer"
},
"web.CRUDable": {},
"web.Rights": {}
}
}
},
"models.TaskRepeatMode": {
"type": "integer",
"enum": [
0,
1,
2
],
"x-enum-varnames": [
"TaskRepeatModeDefault",
"TaskRepeatModeMonth",
"TaskRepeatModeFromCurrentDate"
]
},
"models.Team": {
"type": "object",
"properties": {
@ -8622,7 +8712,11 @@ const docTemplate = `{
},
"created_by": {
"description": "The user who created this team.",
"$ref": "#/definitions/user.User"
"allOf": [
{
"$ref": "#/definitions/user.User"
}
]
},
"description": {
"description": "The team's description.",
@ -8653,9 +8747,7 @@ const docTemplate = `{
"updated": {
"description": "A timestamp when this relation was last updated. You cannot change this value.",
"type": "string"
},
"web.CRUDable": {},
"web.Rights": {}
}
}
},
"models.TeamList": {
@ -8671,9 +8763,13 @@ const docTemplate = `{
},
"right": {
"description": "The right this team has. 0 = Read only, 1 = Read \u0026 Write, 2 = Admin. See the docs for more details.",
"type": "integer",
"default": 0,
"maximum": 2
"maximum": 2,
"allOf": [
{
"$ref": "#/definitions/models.Right"
}
]
},
"team_id": {
"description": "The team id.",
@ -8682,9 +8778,7 @@ const docTemplate = `{
"updated": {
"description": "A timestamp when this relation was last updated. You cannot change this value.",
"type": "string"
},
"web.CRUDable": {},
"web.Rights": {}
}
}
},
"models.TeamMember": {
@ -8705,9 +8799,7 @@ const docTemplate = `{
"username": {
"description": "The username of the member. We use this to prevent automated user id entering.",
"type": "string"
},
"web.CRUDable": {},
"web.Rights": {}
}
}
},
"models.TeamNamespace": {
@ -8723,9 +8815,13 @@ const docTemplate = `{
},
"right": {
"description": "The right this team has. 0 = Read only, 1 = Read \u0026 Write, 2 = Admin. See the docs for more details.",
"type": "integer",
"default": 0,
"maximum": 2
"maximum": 2,
"allOf": [
{
"$ref": "#/definitions/models.Right"
}
]
},
"team_id": {
"description": "The team id.",
@ -8734,9 +8830,7 @@ const docTemplate = `{
"updated": {
"description": "A timestamp when this relation was last updated. You cannot change this value.",
"type": "string"
},
"web.CRUDable": {},
"web.Rights": {}
}
}
},
"models.TeamUser": {
@ -8772,8 +8866,7 @@ const docTemplate = `{
"type": "string",
"maxLength": 250,
"minLength": 1
},
"web.Auth": {}
}
}
},
"models.TeamWithRight": {
@ -8785,7 +8878,11 @@ const docTemplate = `{
},
"created_by": {
"description": "The user who created this team.",
"$ref": "#/definitions/user.User"
"allOf": [
{
"$ref": "#/definitions/user.User"
}
]
},
"description": {
"description": "The team's description.",
@ -8814,16 +8911,12 @@ const docTemplate = `{
"maxLength": 250
},
"right": {
"description": "The right this team has. 0 = Read only, 1 = Read \u0026 Write, 2 = Admin. See the docs for more details.",
"type": "integer",
"default": 0
"$ref": "#/definitions/models.Right"
},
"updated": {
"description": "A timestamp when this relation was last updated. You cannot change this value.",
"type": "string"
},
"web.CRUDable": {},
"web.Rights": {}
}
}
},
"models.UserWithRight": {
@ -8847,9 +8940,7 @@ const docTemplate = `{
"type": "string"
},
"right": {
"description": "The right this user has. 0 = Read only, 1 = Read \u0026 Write, 2 = Admin. See the docs for more details.",
"type": "integer",
"default": 0
"$ref": "#/definitions/models.Right"
},
"updated": {
"description": "A timestamp when this task was last updated. You cannot change this value.",
@ -8860,8 +8951,7 @@ const docTemplate = `{
"type": "string",
"maxLength": 250,
"minLength": 1
},
"web.Auth": {}
}
}
},
"notifications.DatabaseNotification": {
@ -9096,8 +9186,7 @@ const docTemplate = `{
"type": "string",
"maxLength": 250,
"minLength": 1
},
"web.Auth": {}
}
}
},
"v1.LinkShareAuth": {

View File

@ -7611,36 +7611,11 @@
},
"created_by": {
"description": "The user who initially created the bucket.",
"$ref": "#/definitions/user.User"
},
"filter_by": {
"description": "The field name of the field to filter by",
"type": "array",
"items": {
"type": "string"
}
},
"filter_comparator": {
"description": "The comparator for field and value",
"type": "array",
"items": {
"type": "string"
}
},
"filter_concat": {
"description": "The way all filter conditions are concatenated together, can be either \"and\" or \"or\".,",
"type": "string"
},
"filter_include_nulls": {
"description": "If set to true, the result will also include null values",
"type": "boolean"
},
"filter_value": {
"description": "The value of the field name to filter by",
"type": "array",
"items": {
"type": "string"
}
"allOf": [
{
"$ref": "#/definitions/user.User"
}
]
},
"id": {
"description": "The unique, numeric id of this bucket.",
@ -7659,24 +7634,10 @@
"description": "The list this bucket belongs to.",
"type": "integer"
},
"order_by": {
"description": "The query parameter to order the items by. This can be either asc or desc, with asc being the default.",
"type": "array",
"items": {
"type": "string"
}
},
"position": {
"description": "The position this bucket has when querying all buckets. See the tasks.position property on how to use this.",
"type": "number"
},
"sort_by": {
"description": "The query parameter to sort by. This is for ex. done, priority, etc.",
"type": "array",
"items": {
"type": "string"
}
},
"tasks": {
"description": "All tasks which belong to this bucket.",
"type": "array",
@ -7692,9 +7653,7 @@
"updated": {
"description": "A timestamp when this bucket was last updated. You cannot change this value.",
"type": "string"
},
"web.CRUDable": {},
"web.Rights": {}
}
}
},
"models.BulkAssignees": {
@ -7706,9 +7665,7 @@
"items": {
"$ref": "#/definitions/user.User"
}
},
"web.CRUDable": {},
"web.Rights": {}
}
}
},
"models.BulkTask": {
@ -7742,7 +7699,11 @@
},
"created_by": {
"description": "The user who initially created the task.",
"$ref": "#/definitions/user.User"
"allOf": [
{
"$ref": "#/definitions/user.User"
}
]
},
"description": {
"description": "The task description.",
@ -7814,7 +7775,11 @@
},
"related_tasks": {
"description": "All related tasks, grouped by their relation kind",
"$ref": "#/definitions/models.RelatedTaskMap"
"allOf": [
{
"$ref": "#/definitions/models.RelatedTaskMap"
}
]
},
"reminder_dates": {
"description": "An array of datetimes when the user wants to be reminded of the task.",
@ -7829,7 +7794,11 @@
},
"repeat_mode": {
"description": "Can have three possible values which will trigger when the task is marked as done: 0 = repeats after the amount specified in repeat_after, 1 = repeats all dates each months (ignoring repeat_after), 3 = repeats from the current date rather than the last set date.",
"type": "integer"
"allOf": [
{
"$ref": "#/definitions/models.TaskRepeatMode"
}
]
},
"start_date": {
"description": "When this task starts.",
@ -7837,7 +7806,11 @@
},
"subscription": {
"description": "The subscription status for the user reading this task. You can only read this property, use the subscription endpoints to modify it.\nWill only returned when retreiving one task.",
"$ref": "#/definitions/models.Subscription"
"allOf": [
{
"$ref": "#/definitions/models.Subscription"
}
]
},
"task_ids": {
"description": "A list of task ids to update",
@ -7854,9 +7827,7 @@
"updated": {
"description": "A timestamp when this task was last updated. You cannot change this value.",
"type": "string"
},
"web.CRUDable": {},
"web.Rights": {}
}
}
},
"models.DatabaseNotifications": {
@ -7884,9 +7855,7 @@
"read_at": {
"description": "When this notification is marked as read, this will be updated with the current timestamp.",
"type": "string"
},
"web.CRUDable": {},
"web.Rights": {}
}
}
},
"models.Label": {
@ -7898,7 +7867,11 @@
},
"created_by": {
"description": "The user who created this label",
"$ref": "#/definitions/user.User"
"allOf": [
{
"$ref": "#/definitions/user.User"
}
]
},
"description": {
"description": "The label description.",
@ -7922,9 +7895,7 @@
"updated": {
"description": "A timestamp when this label was last updated. You cannot change this value.",
"type": "string"
},
"web.CRUDable": {},
"web.Rights": {}
}
}
},
"models.LabelTask": {
@ -7937,9 +7908,7 @@
"label_id": {
"description": "The label id you want to associate with a task.",
"type": "integer"
},
"web.CRUDable": {},
"web.Rights": {}
}
}
},
"models.LabelTaskBulk": {
@ -7951,9 +7920,7 @@
"items": {
"$ref": "#/definitions/models.Label"
}
},
"web.CRUDable": {},
"web.Rights": {}
}
}
},
"models.LinkSharing": {
@ -7981,26 +7948,36 @@
},
"right": {
"description": "The right this list is shared with. 0 = Read only, 1 = Read \u0026 Write, 2 = Admin. See the docs for more details.",
"type": "integer",
"default": 0,
"maximum": 2
"maximum": 2,
"allOf": [
{
"$ref": "#/definitions/models.Right"
}
]
},
"shared_by": {
"description": "The user who shared this list",
"$ref": "#/definitions/user.User"
"allOf": [
{
"$ref": "#/definitions/user.User"
}
]
},
"sharing_type": {
"description": "The kind of this link. 0 = undefined, 1 = without password, 2 = with password.",
"type": "integer",
"default": 0,
"maximum": 2
"maximum": 2,
"allOf": [
{
"$ref": "#/definitions/models.SharingType"
}
]
},
"updated": {
"description": "A timestamp when this share was last updated. You cannot change this value.",
"type": "string"
},
"web.CRUDable": {},
"web.Rights": {}
}
}
},
"models.List": {
@ -8049,7 +8026,11 @@
},
"owner": {
"description": "The user who created this list.",
"$ref": "#/definitions/user.User"
"allOf": [
{
"$ref": "#/definitions/user.User"
}
]
},
"position": {
"description": "The position this list has when querying all lists. See the tasks.position property on how to use this.",
@ -8057,7 +8038,11 @@
},
"subscription": {
"description": "The subscription status for the user reading this list. You can only read this property, use the subscription endpoints to modify it.\nWill only returned when retreiving one list.",
"$ref": "#/definitions/models.Subscription"
"allOf": [
{
"$ref": "#/definitions/models.Subscription"
}
]
},
"title": {
"description": "The title of the list. You'll see this in the namespace overview.",
@ -8068,9 +8053,7 @@
"updated": {
"description": "A timestamp when this list was last updated. You cannot change this value.",
"type": "string"
},
"web.CRUDable": {},
"web.Rights": {}
}
}
},
"models.ListDuplicate": {
@ -8078,14 +8061,16 @@
"properties": {
"list": {
"description": "The copied list",
"$ref": "#/definitions/models.List"
"allOf": [
{
"$ref": "#/definitions/models.List"
}
]
},
"namespace_id": {
"description": "The target namespace ID",
"type": "integer"
},
"web.CRUDable": {},
"web.Rights": {}
}
}
},
"models.ListUser": {
@ -8101,9 +8086,13 @@
},
"right": {
"description": "The right this user has. 0 = Read only, 1 = Read \u0026 Write, 2 = Admin. See the docs for more details.",
"type": "integer",
"default": 0,
"maximum": 2
"maximum": 2,
"allOf": [
{
"$ref": "#/definitions/models.Right"
}
]
},
"updated": {
"description": "A timestamp when this relation was last updated. You cannot change this value.",
@ -8112,9 +8101,7 @@
"user_id": {
"description": "The username.",
"type": "string"
},
"web.CRUDable": {},
"web.Rights": {}
}
}
},
"models.Message": {
@ -8152,11 +8139,19 @@
},
"owner": {
"description": "The user who owns this namespace",
"$ref": "#/definitions/user.User"
"allOf": [
{
"$ref": "#/definitions/user.User"
}
]
},
"subscription": {
"description": "The subscription status for the user reading this namespace. You can only read this property, use the subscription endpoints to modify it.\nWill only returned when retreiving one namespace.",
"$ref": "#/definitions/models.Subscription"
"allOf": [
{
"$ref": "#/definitions/models.Subscription"
}
]
},
"title": {
"description": "The name of this namespace.",
@ -8167,9 +8162,7 @@
"updated": {
"description": "A timestamp when this namespace was last updated. You cannot change this value.",
"type": "string"
},
"web.CRUDable": {},
"web.Rights": {}
}
}
},
"models.NamespaceUser": {
@ -8185,9 +8178,13 @@
},
"right": {
"description": "The right this user has. 0 = Read only, 1 = Read \u0026 Write, 2 = Admin. See the docs for more details.",
"type": "integer",
"default": 0,
"maximum": 2
"maximum": 2,
"allOf": [
{
"$ref": "#/definitions/models.Right"
}
]
},
"updated": {
"description": "A timestamp when this relation was last updated. You cannot change this value.",
@ -8196,9 +8193,7 @@
"user_id": {
"description": "The username.",
"type": "string"
},
"web.CRUDable": {},
"web.Rights": {}
}
}
},
"models.NamespaceWithLists": {
@ -8233,11 +8228,19 @@
},
"owner": {
"description": "The user who owns this namespace",
"$ref": "#/definitions/user.User"
"allOf": [
{
"$ref": "#/definitions/user.User"
}
]
},
"subscription": {
"description": "The subscription status for the user reading this namespace. You can only read this property, use the subscription endpoints to modify it.\nWill only returned when retreiving one namespace.",
"$ref": "#/definitions/models.Subscription"
"allOf": [
{
"$ref": "#/definitions/models.Subscription"
}
]
},
"title": {
"description": "The name of this namespace.",
@ -8248,9 +8251,7 @@
"updated": {
"description": "A timestamp when this namespace was last updated. You cannot change this value.",
"type": "string"
},
"web.CRUDable": {},
"web.Rights": {}
}
}
},
"models.RelatedTaskMap": {
@ -8262,6 +8263,50 @@
}
}
},
"models.RelationKind": {
"type": "string",
"enum": [
"unknown",
"subtask",
"parenttask",
"related",
"duplicateof",
"duplicates",
"blocking",
"blocked",
"precedes",
"follows",
"copiedfrom",
"copiedto"
],
"x-enum-varnames": [
"RelationKindUnknown",
"RelationKindSubtask",
"RelationKindParenttask",
"RelationKindRelated",
"RelationKindDuplicateOf",
"RelationKindDuplicates",
"RelationKindBlocking",
"RelationKindBlocked",
"RelationKindPreceeds",
"RelationKindFollows",
"RelationKindCopiedFrom",
"RelationKindCopiedTo"
]
},
"models.Right": {
"type": "integer",
"enum": [
0,
1,
2
],
"x-enum-varnames": [
"RightRead",
"RightWrite",
"RightAdmin"
]
},
"models.SavedFilter": {
"type": "object",
"properties": {
@ -8275,7 +8320,11 @@
},
"filters": {
"description": "The actual filters this filter contains",
"$ref": "#/definitions/models.TaskCollection"
"allOf": [
{
"$ref": "#/definitions/models.TaskCollection"
}
]
},
"id": {
"description": "The unique numeric id of this saved filter",
@ -8287,7 +8336,11 @@
},
"owner": {
"description": "The user who owns this filter",
"$ref": "#/definitions/user.User"
"allOf": [
{
"$ref": "#/definitions/user.User"
}
]
},
"title": {
"description": "The title of the filter.",
@ -8298,11 +8351,22 @@
"updated": {
"description": "A timestamp when this filter was last updated. You cannot change this value.",
"type": "string"
},
"web.CRUDable": {},
"web.Rights": {}
}
}
},
"models.SharingType": {
"type": "integer",
"enum": [
0,
1,
2
],
"x-enum-varnames": [
"SharingTypeUnknown",
"SharingTypeWithoutPassword",
"SharingTypeWithPassword"
]
},
"models.Subscription": {
"type": "object",
"properties": {
@ -8323,10 +8387,12 @@
},
"user": {
"description": "The user who made this subscription",
"$ref": "#/definitions/user.User"
},
"web.CRUDable": {},
"web.Rights": {}
"allOf": [
{
"$ref": "#/definitions/user.User"
}
]
}
}
},
"models.Task": {
@ -8360,7 +8426,11 @@
},
"created_by": {
"description": "The user who initially created the task.",
"$ref": "#/definitions/user.User"
"allOf": [
{
"$ref": "#/definitions/user.User"
}
]
},
"description": {
"description": "The task description.",
@ -8432,7 +8502,11 @@
},
"related_tasks": {
"description": "All related tasks, grouped by their relation kind",
"$ref": "#/definitions/models.RelatedTaskMap"
"allOf": [
{
"$ref": "#/definitions/models.RelatedTaskMap"
}
]
},
"reminder_dates": {
"description": "An array of datetimes when the user wants to be reminded of the task.",
@ -8447,7 +8521,11 @@
},
"repeat_mode": {
"description": "Can have three possible values which will trigger when the task is marked as done: 0 = repeats after the amount specified in repeat_after, 1 = repeats all dates each months (ignoring repeat_after), 3 = repeats from the current date rather than the last set date.",
"type": "integer"
"allOf": [
{
"$ref": "#/definitions/models.TaskRepeatMode"
}
]
},
"start_date": {
"description": "When this task starts.",
@ -8455,7 +8533,11 @@
},
"subscription": {
"description": "The subscription status for the user reading this task. You can only read this property, use the subscription endpoints to modify it.\nWill only returned when retreiving one task.",
"$ref": "#/definitions/models.Subscription"
"allOf": [
{
"$ref": "#/definitions/models.Subscription"
}
]
},
"title": {
"description": "The task text. This is what you'll see in the list.",
@ -8465,9 +8547,7 @@
"updated": {
"description": "A timestamp when this task was last updated. You cannot change this value.",
"type": "string"
},
"web.CRUDable": {},
"web.Rights": {}
}
}
},
"models.TaskAssginee": {
@ -8478,9 +8558,7 @@
},
"user_id": {
"type": "integer"
},
"web.CRUDable": {},
"web.Rights": {}
}
}
},
"models.TaskAttachment": {
@ -8500,9 +8578,7 @@
},
"task_id": {
"type": "integer"
},
"web.CRUDable": {},
"web.Rights": {}
}
}
},
"models.TaskCollection": {
@ -8550,9 +8626,7 @@
"items": {
"type": "string"
}
},
"web.CRUDable": {},
"web.Rights": {}
}
}
},
"models.TaskComment": {
@ -8572,9 +8646,7 @@
},
"updated": {
"type": "string"
},
"web.CRUDable": {},
"web.Rights": {}
}
}
},
"models.TaskRelation": {
@ -8586,7 +8658,11 @@
},
"created_by": {
"description": "The user who created this relation",
"$ref": "#/definitions/user.User"
"allOf": [
{
"$ref": "#/definitions/user.User"
}
]
},
"other_task_id": {
"description": "The ID of the other task, the task which is being related.",
@ -8594,16 +8670,31 @@
},
"relation_kind": {
"description": "The kind of the relation.",
"type": "string"
"allOf": [
{
"$ref": "#/definitions/models.RelationKind"
}
]
},
"task_id": {
"description": "The ID of the \"base\" task, the task which has a relation to another.",
"type": "integer"
},
"web.CRUDable": {},
"web.Rights": {}
}
}
},
"models.TaskRepeatMode": {
"type": "integer",
"enum": [
0,
1,
2
],
"x-enum-varnames": [
"TaskRepeatModeDefault",
"TaskRepeatModeMonth",
"TaskRepeatModeFromCurrentDate"
]
},
"models.Team": {
"type": "object",
"properties": {
@ -8613,7 +8704,11 @@
},
"created_by": {
"description": "The user who created this team.",
"$ref": "#/definitions/user.User"
"allOf": [
{
"$ref": "#/definitions/user.User"
}
]
},
"description": {
"description": "The team's description.",
@ -8644,9 +8739,7 @@
"updated": {
"description": "A timestamp when this relation was last updated. You cannot change this value.",
"type": "string"
},
"web.CRUDable": {},
"web.Rights": {}
}
}
},
"models.TeamList": {
@ -8662,9 +8755,13 @@
},
"right": {
"description": "The right this team has. 0 = Read only, 1 = Read \u0026 Write, 2 = Admin. See the docs for more details.",
"type": "integer",
"default": 0,
"maximum": 2
"maximum": 2,
"allOf": [
{
"$ref": "#/definitions/models.Right"
}
]
},
"team_id": {
"description": "The team id.",
@ -8673,9 +8770,7 @@
"updated": {
"description": "A timestamp when this relation was last updated. You cannot change this value.",
"type": "string"
},
"web.CRUDable": {},
"web.Rights": {}
}
}
},
"models.TeamMember": {
@ -8696,9 +8791,7 @@
"username": {
"description": "The username of the member. We use this to prevent automated user id entering.",
"type": "string"
},
"web.CRUDable": {},
"web.Rights": {}
}
}
},
"models.TeamNamespace": {
@ -8714,9 +8807,13 @@
},
"right": {
"description": "The right this team has. 0 = Read only, 1 = Read \u0026 Write, 2 = Admin. See the docs for more details.",
"type": "integer",
"default": 0,
"maximum": 2
"maximum": 2,
"allOf": [
{
"$ref": "#/definitions/models.Right"
}
]
},
"team_id": {
"description": "The team id.",
@ -8725,9 +8822,7 @@
"updated": {
"description": "A timestamp when this relation was last updated. You cannot change this value.",
"type": "string"
},
"web.CRUDable": {},
"web.Rights": {}
}
}
},
"models.TeamUser": {
@ -8763,8 +8858,7 @@
"type": "string",
"maxLength": 250,
"minLength": 1
},
"web.Auth": {}
}
}
},
"models.TeamWithRight": {
@ -8776,7 +8870,11 @@
},
"created_by": {
"description": "The user who created this team.",
"$ref": "#/definitions/user.User"
"allOf": [
{
"$ref": "#/definitions/user.User"
}
]
},
"description": {
"description": "The team's description.",
@ -8805,16 +8903,12 @@
"maxLength": 250
},
"right": {
"description": "The right this team has. 0 = Read only, 1 = Read \u0026 Write, 2 = Admin. See the docs for more details.",
"type": "integer",
"default": 0
"$ref": "#/definitions/models.Right"
},
"updated": {
"description": "A timestamp when this relation was last updated. You cannot change this value.",
"type": "string"
},
"web.CRUDable": {},
"web.Rights": {}
}
}
},
"models.UserWithRight": {
@ -8838,9 +8932,7 @@
"type": "string"
},
"right": {
"description": "The right this user has. 0 = Read only, 1 = Read \u0026 Write, 2 = Admin. See the docs for more details.",
"type": "integer",
"default": 0
"$ref": "#/definitions/models.Right"
},
"updated": {
"description": "A timestamp when this task was last updated. You cannot change this value.",
@ -8851,8 +8943,7 @@
"type": "string",
"maxLength": 250,
"minLength": 1
},
"web.Auth": {}
}
}
},
"notifications.DatabaseNotification": {
@ -9087,8 +9178,7 @@
"type": "string",
"maxLength": 250,
"minLength": 1
},
"web.Auth": {}
}
}
},
"v1.LinkShareAuth": {

View File

@ -58,30 +58,9 @@ definitions:
value.
type: string
created_by:
$ref: '#/definitions/user.User'
allOf:
- $ref: '#/definitions/user.User'
description: The user who initially created the bucket.
filter_by:
description: The field name of the field to filter by
items:
type: string
type: array
filter_comparator:
description: The comparator for field and value
items:
type: string
type: array
filter_concat:
description: The way all filter conditions are concatenated together, can
be either "and" or "or".,
type: string
filter_include_nulls:
description: If set to true, the result will also include null values
type: boolean
filter_value:
description: The value of the field name to filter by
items:
type: string
type: array
id:
description: The unique, numeric id of this bucket.
type: integer
@ -97,22 +76,10 @@ definitions:
list_id:
description: The list this bucket belongs to.
type: integer
order_by:
description: The query parameter to order the items by. This can be either
asc or desc, with asc being the default.
items:
type: string
type: array
position:
description: The position this bucket has when querying all buckets. See the
tasks.position property on how to use this.
type: number
sort_by:
description: The query parameter to sort by. This is for ex. done, priority,
etc.
items:
type: string
type: array
tasks:
description: All tasks which belong to this bucket.
items:
@ -126,8 +93,6 @@ definitions:
description: A timestamp when this bucket was last updated. You cannot change
this value.
type: string
web.CRUDable: {}
web.Rights: {}
type: object
models.BulkAssignees:
properties:
@ -136,8 +101,6 @@ definitions:
items:
$ref: '#/definitions/user.User'
type: array
web.CRUDable: {}
web.Rights: {}
type: object
models.BulkTask:
properties:
@ -163,7 +126,8 @@ definitions:
value.
type: string
created_by:
$ref: '#/definitions/user.User'
allOf:
- $ref: '#/definitions/user.User'
description: The user who initially created the task.
description:
description: The task description.
@ -228,7 +192,8 @@ definitions:
sort by this later.
type: integer
related_tasks:
$ref: '#/definitions/models.RelatedTaskMap'
allOf:
- $ref: '#/definitions/models.RelatedTaskMap'
description: All related tasks, grouped by their relation kind
reminder_dates:
description: An array of datetimes when the user wants to be reminded of the
@ -242,16 +207,18 @@ definitions:
increase all remindes and the due date by its amount.
type: integer
repeat_mode:
allOf:
- $ref: '#/definitions/models.TaskRepeatMode'
description: 'Can have three possible values which will trigger when the task
is marked as done: 0 = repeats after the amount specified in repeat_after,
1 = repeats all dates each months (ignoring repeat_after), 3 = repeats from
the current date rather than the last set date.'
type: integer
start_date:
description: When this task starts.
type: string
subscription:
$ref: '#/definitions/models.Subscription'
allOf:
- $ref: '#/definitions/models.Subscription'
description: |-
The subscription status for the user reading this task. You can only read this property, use the subscription endpoints to modify it.
Will only returned when retreiving one task.
@ -268,8 +235,6 @@ definitions:
description: A timestamp when this task was last updated. You cannot change
this value.
type: string
web.CRUDable: {}
web.Rights: {}
type: object
models.DatabaseNotifications:
properties:
@ -294,8 +259,6 @@ definitions:
description: When this notification is marked as read, this will be updated
with the current timestamp.
type: string
web.CRUDable: {}
web.Rights: {}
type: object
models.Label:
properties:
@ -304,7 +267,8 @@ definitions:
value.
type: string
created_by:
$ref: '#/definitions/user.User'
allOf:
- $ref: '#/definitions/user.User'
description: The user who created this label
description:
description: The label description.
@ -326,8 +290,6 @@ definitions:
description: A timestamp when this label was last updated. You cannot change
this value.
type: string
web.CRUDable: {}
web.Rights: {}
type: object
models.LabelTask:
properties:
@ -338,8 +300,6 @@ definitions:
label_id:
description: The label id you want to associate with a task.
type: integer
web.CRUDable: {}
web.Rights: {}
type: object
models.LabelTaskBulk:
properties:
@ -348,8 +308,6 @@ definitions:
items:
$ref: '#/definitions/models.Label'
type: array
web.CRUDable: {}
web.Rights: {}
type: object
models.LinkSharing:
properties:
@ -372,26 +330,27 @@ definitions:
it after the link share has been created.
type: string
right:
allOf:
- $ref: '#/definitions/models.Right'
default: 0
description: The right this list is shared with. 0 = Read only, 1 = Read &
Write, 2 = Admin. See the docs for more details.
maximum: 2
type: integer
shared_by:
$ref: '#/definitions/user.User'
allOf:
- $ref: '#/definitions/user.User'
description: The user who shared this list
sharing_type:
allOf:
- $ref: '#/definitions/models.SharingType'
default: 0
description: The kind of this link. 0 = undefined, 1 = without password, 2
= with password.
maximum: 2
type: integer
updated:
description: A timestamp when this share was last updated. You cannot change
this value.
type: string
web.CRUDable: {}
web.Rights: {}
type: object
models.List:
properties:
@ -433,14 +392,16 @@ definitions:
namespace_id:
type: integer
owner:
$ref: '#/definitions/user.User'
allOf:
- $ref: '#/definitions/user.User'
description: The user who created this list.
position:
description: The position this list has when querying all lists. See the tasks.position
property on how to use this.
type: number
subscription:
$ref: '#/definitions/models.Subscription'
allOf:
- $ref: '#/definitions/models.Subscription'
description: |-
The subscription status for the user reading this list. You can only read this property, use the subscription endpoints to modify it.
Will only returned when retreiving one list.
@ -453,19 +414,16 @@ definitions:
description: A timestamp when this list was last updated. You cannot change
this value.
type: string
web.CRUDable: {}
web.Rights: {}
type: object
models.ListDuplicate:
properties:
list:
$ref: '#/definitions/models.List'
allOf:
- $ref: '#/definitions/models.List'
description: The copied list
namespace_id:
description: The target namespace ID
type: integer
web.CRUDable: {}
web.Rights: {}
type: object
models.ListUser:
properties:
@ -477,11 +435,12 @@ definitions:
description: The unique, numeric id of this list <-> user relation.
type: integer
right:
allOf:
- $ref: '#/definitions/models.Right'
default: 0
description: The right this user has. 0 = Read only, 1 = Read & Write, 2 =
Admin. See the docs for more details.
maximum: 2
type: integer
updated:
description: A timestamp when this relation was last updated. You cannot change
this value.
@ -489,8 +448,6 @@ definitions:
user_id:
description: The username.
type: string
web.CRUDable: {}
web.Rights: {}
type: object
models.Message:
properties:
@ -518,10 +475,12 @@ definitions:
description: Whether or not a namespace is archived.
type: boolean
owner:
$ref: '#/definitions/user.User'
allOf:
- $ref: '#/definitions/user.User'
description: The user who owns this namespace
subscription:
$ref: '#/definitions/models.Subscription'
allOf:
- $ref: '#/definitions/models.Subscription'
description: |-
The subscription status for the user reading this namespace. You can only read this property, use the subscription endpoints to modify it.
Will only returned when retreiving one namespace.
@ -534,8 +493,6 @@ definitions:
description: A timestamp when this namespace was last updated. You cannot
change this value.
type: string
web.CRUDable: {}
web.Rights: {}
type: object
models.NamespaceUser:
properties:
@ -547,11 +504,12 @@ definitions:
description: The unique, numeric id of this namespace <-> user relation.
type: integer
right:
allOf:
- $ref: '#/definitions/models.Right'
default: 0
description: The right this user has. 0 = Read only, 1 = Read & Write, 2 =
Admin. See the docs for more details.
maximum: 2
type: integer
updated:
description: A timestamp when this relation was last updated. You cannot change
this value.
@ -559,8 +517,6 @@ definitions:
user_id:
description: The username.
type: string
web.CRUDable: {}
web.Rights: {}
type: object
models.NamespaceWithLists:
properties:
@ -586,10 +542,12 @@ definitions:
$ref: '#/definitions/models.List'
type: array
owner:
$ref: '#/definitions/user.User'
allOf:
- $ref: '#/definitions/user.User'
description: The user who owns this namespace
subscription:
$ref: '#/definitions/models.Subscription'
allOf:
- $ref: '#/definitions/models.Subscription'
description: |-
The subscription status for the user reading this namespace. You can only read this property, use the subscription endpoints to modify it.
Will only returned when retreiving one namespace.
@ -602,8 +560,6 @@ definitions:
description: A timestamp when this namespace was last updated. You cannot
change this value.
type: string
web.CRUDable: {}
web.Rights: {}
type: object
models.RelatedTaskMap:
additionalProperties:
@ -611,6 +567,44 @@ definitions:
$ref: '#/definitions/models.Task'
type: array
type: object
models.RelationKind:
enum:
- unknown
- subtask
- parenttask
- related
- duplicateof
- duplicates
- blocking
- blocked
- precedes
- follows
- copiedfrom
- copiedto
type: string
x-enum-varnames:
- RelationKindUnknown
- RelationKindSubtask
- RelationKindParenttask
- RelationKindRelated
- RelationKindDuplicateOf
- RelationKindDuplicates
- RelationKindBlocking
- RelationKindBlocked
- RelationKindPreceeds
- RelationKindFollows
- RelationKindCopiedFrom
- RelationKindCopiedTo
models.Right:
enum:
- 0
- 1
- 2
type: integer
x-enum-varnames:
- RightRead
- RightWrite
- RightAdmin
models.SavedFilter:
properties:
created:
@ -621,7 +615,8 @@ definitions:
description: The description of the filter
type: string
filters:
$ref: '#/definitions/models.TaskCollection'
allOf:
- $ref: '#/definitions/models.TaskCollection'
description: The actual filters this filter contains
id:
description: The unique numeric id of this saved filter
@ -631,7 +626,8 @@ definitions:
a separate namespace together with favorite lists.
type: boolean
owner:
$ref: '#/definitions/user.User'
allOf:
- $ref: '#/definitions/user.User'
description: The user who owns this filter
title:
description: The title of the filter.
@ -642,9 +638,17 @@ definitions:
description: A timestamp when this filter was last updated. You cannot change
this value.
type: string
web.CRUDable: {}
web.Rights: {}
type: object
models.SharingType:
enum:
- 0
- 1
- 2
type: integer
x-enum-varnames:
- SharingTypeUnknown
- SharingTypeWithoutPassword
- SharingTypeWithPassword
models.Subscription:
properties:
created:
@ -660,10 +664,9 @@ definitions:
description: The numeric ID of the subscription
type: integer
user:
$ref: '#/definitions/user.User'
allOf:
- $ref: '#/definitions/user.User'
description: The user who made this subscription
web.CRUDable: {}
web.Rights: {}
type: object
models.Task:
properties:
@ -689,7 +692,8 @@ definitions:
value.
type: string
created_by:
$ref: '#/definitions/user.User'
allOf:
- $ref: '#/definitions/user.User'
description: The user who initially created the task.
description:
description: The task description.
@ -754,7 +758,8 @@ definitions:
sort by this later.
type: integer
related_tasks:
$ref: '#/definitions/models.RelatedTaskMap'
allOf:
- $ref: '#/definitions/models.RelatedTaskMap'
description: All related tasks, grouped by their relation kind
reminder_dates:
description: An array of datetimes when the user wants to be reminded of the
@ -768,16 +773,18 @@ definitions:
increase all remindes and the due date by its amount.
type: integer
repeat_mode:
allOf:
- $ref: '#/definitions/models.TaskRepeatMode'
description: 'Can have three possible values which will trigger when the task
is marked as done: 0 = repeats after the amount specified in repeat_after,
1 = repeats all dates each months (ignoring repeat_after), 3 = repeats from
the current date rather than the last set date.'
type: integer
start_date:
description: When this task starts.
type: string
subscription:
$ref: '#/definitions/models.Subscription'
allOf:
- $ref: '#/definitions/models.Subscription'
description: |-
The subscription status for the user reading this task. You can only read this property, use the subscription endpoints to modify it.
Will only returned when retreiving one task.
@ -789,8 +796,6 @@ definitions:
description: A timestamp when this task was last updated. You cannot change
this value.
type: string
web.CRUDable: {}
web.Rights: {}
type: object
models.TaskAssginee:
properties:
@ -798,8 +803,6 @@ definitions:
type: string
user_id:
type: integer
web.CRUDable: {}
web.Rights: {}
type: object
models.TaskAttachment:
properties:
@ -813,8 +816,6 @@ definitions:
type: integer
task_id:
type: integer
web.CRUDable: {}
web.Rights: {}
type: object
models.TaskCollection:
properties:
@ -852,8 +853,6 @@ definitions:
items:
type: string
type: array
web.CRUDable: {}
web.Rights: {}
type: object
models.TaskComment:
properties:
@ -867,8 +866,6 @@ definitions:
type: integer
updated:
type: string
web.CRUDable: {}
web.Rights: {}
type: object
models.TaskRelation:
properties:
@ -877,20 +874,30 @@ definitions:
value.
type: string
created_by:
$ref: '#/definitions/user.User'
allOf:
- $ref: '#/definitions/user.User'
description: The user who created this relation
other_task_id:
description: The ID of the other task, the task which is being related.
type: integer
relation_kind:
allOf:
- $ref: '#/definitions/models.RelationKind'
description: The kind of the relation.
type: string
task_id:
description: The ID of the "base" task, the task which has a relation to another.
type: integer
web.CRUDable: {}
web.Rights: {}
type: object
models.TaskRepeatMode:
enum:
- 0
- 1
- 2
type: integer
x-enum-varnames:
- TaskRepeatModeDefault
- TaskRepeatModeMonth
- TaskRepeatModeFromCurrentDate
models.Team:
properties:
created:
@ -898,7 +905,8 @@ definitions:
this value.
type: string
created_by:
$ref: '#/definitions/user.User'
allOf:
- $ref: '#/definitions/user.User'
description: The user who created this team.
description:
description: The team's description.
@ -924,8 +932,6 @@ definitions:
description: A timestamp when this relation was last updated. You cannot change
this value.
type: string
web.CRUDable: {}
web.Rights: {}
type: object
models.TeamList:
properties:
@ -937,11 +943,12 @@ definitions:
description: The unique, numeric id of this list <-> team relation.
type: integer
right:
allOf:
- $ref: '#/definitions/models.Right'
default: 0
description: The right this team has. 0 = Read only, 1 = Read & Write, 2 =
Admin. See the docs for more details.
maximum: 2
type: integer
team_id:
description: The team id.
type: integer
@ -949,8 +956,6 @@ definitions:
description: A timestamp when this relation was last updated. You cannot change
this value.
type: string
web.CRUDable: {}
web.Rights: {}
type: object
models.TeamMember:
properties:
@ -969,8 +974,6 @@ definitions:
description: The username of the member. We use this to prevent automated
user id entering.
type: string
web.CRUDable: {}
web.Rights: {}
type: object
models.TeamNamespace:
properties:
@ -982,11 +985,12 @@ definitions:
description: The unique, numeric id of this namespace <-> team relation.
type: integer
right:
allOf:
- $ref: '#/definitions/models.Right'
default: 0
description: The right this team has. 0 = Read only, 1 = Read & Write, 2 =
Admin. See the docs for more details.
maximum: 2
type: integer
team_id:
description: The team id.
type: integer
@ -994,8 +998,6 @@ definitions:
description: A timestamp when this relation was last updated. You cannot change
this value.
type: string
web.CRUDable: {}
web.Rights: {}
type: object
models.TeamUser:
properties:
@ -1026,7 +1028,6 @@ definitions:
maxLength: 250
minLength: 1
type: string
web.Auth: {}
type: object
models.TeamWithRight:
properties:
@ -1035,7 +1036,8 @@ definitions:
this value.
type: string
created_by:
$ref: '#/definitions/user.User'
allOf:
- $ref: '#/definitions/user.User'
description: The user who created this team.
description:
description: The team's description.
@ -1058,16 +1060,11 @@ definitions:
maxLength: 250
type: string
right:
default: 0
description: The right this team has. 0 = Read only, 1 = Read & Write, 2 =
Admin. See the docs for more details.
type: integer
$ref: '#/definitions/models.Right'
updated:
description: A timestamp when this relation was last updated. You cannot change
this value.
type: string
web.CRUDable: {}
web.Rights: {}
type: object
models.UserWithRight:
properties:
@ -1086,10 +1083,7 @@ definitions:
description: The full name of the user.
type: string
right:
default: 0
description: The right this user has. 0 = Read only, 1 = Read & Write, 2 =
Admin. See the docs for more details.
type: integer
$ref: '#/definitions/models.Right'
updated:
description: A timestamp when this task was last updated. You cannot change
this value.
@ -1099,7 +1093,6 @@ definitions:
maxLength: 250
minLength: 1
type: string
web.Auth: {}
type: object
notifications.DatabaseNotification:
properties:
@ -1270,7 +1263,6 @@ definitions:
maxLength: 250
minLength: 1
type: string
web.Auth: {}
type: object
v1.LinkShareAuth:
properties: