From 4567a6806556386ae8bda18be2668ab83f243ff8 Mon Sep 17 00:00:00 2001 From: viehlieb Date: Fri, 10 Feb 2023 21:44:08 +0100 Subject: [PATCH] do the swag --- pkg/swagger/docs.go | 436 ++++++++++++++++----------------------- pkg/swagger/swagger.json | 436 ++++++++++++++++----------------------- pkg/swagger/swagger.yaml | 252 +++++++++++----------- 3 files changed, 476 insertions(+), 648 deletions(-) diff --git a/pkg/swagger/docs.go b/pkg/swagger/docs.go index 808e9d2e15..1274e01b01 100644 --- a/pkg/swagger/docs.go +++ b/pkg/swagger/docs.go @@ -7620,11 +7620,36 @@ const docTemplate = `{ }, "created_by": { "description": "The user who initially created the bucket.", - "allOf": [ - { - "$ref": "#/definitions/user.User" - } - ] + "$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" + } }, "id": { "description": "The unique, numeric id of this bucket.", @@ -7643,10 +7668,24 @@ 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", @@ -7662,7 +7701,9 @@ 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": { @@ -7674,7 +7715,9 @@ const docTemplate = `{ "items": { "$ref": "#/definitions/user.User" } - } + }, + "web.CRUDable": {}, + "web.Rights": {} } }, "models.BulkTask": { @@ -7708,11 +7751,7 @@ const docTemplate = `{ }, "created_by": { "description": "The user who initially created the task.", - "allOf": [ - { - "$ref": "#/definitions/user.User" - } - ] + "$ref": "#/definitions/user.User" }, "description": { "description": "The task description.", @@ -7784,11 +7823,7 @@ const docTemplate = `{ }, "related_tasks": { "description": "All related tasks, grouped by their relation kind", - "allOf": [ - { - "$ref": "#/definitions/models.RelatedTaskMap" - } - ] + "$ref": "#/definitions/models.RelatedTaskMap" }, "reminder_dates": { "description": "An array of datetimes when the user wants to be reminded of the task.", @@ -7803,11 +7838,7 @@ 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.", - "allOf": [ - { - "$ref": "#/definitions/models.TaskRepeatMode" - } - ] + "type": "integer" }, "start_date": { "description": "When this task starts.", @@ -7815,11 +7846,7 @@ 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.", - "allOf": [ - { - "$ref": "#/definitions/models.Subscription" - } - ] + "$ref": "#/definitions/models.Subscription" }, "task_ids": { "description": "A list of task ids to update", @@ -7836,7 +7863,9 @@ 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": { @@ -7864,7 +7893,9 @@ 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": { @@ -7876,11 +7907,7 @@ const docTemplate = `{ }, "created_by": { "description": "The user who created this label", - "allOf": [ - { - "$ref": "#/definitions/user.User" - } - ] + "$ref": "#/definitions/user.User" }, "description": { "description": "The label description.", @@ -7904,7 +7931,9 @@ 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": { @@ -7917,7 +7946,9 @@ const docTemplate = `{ "label_id": { "description": "The label id you want to associate with a task.", "type": "integer" - } + }, + "web.CRUDable": {}, + "web.Rights": {} } }, "models.LabelTaskBulk": { @@ -7929,7 +7960,9 @@ const docTemplate = `{ "items": { "$ref": "#/definitions/models.Label" } - } + }, + "web.CRUDable": {}, + "web.Rights": {} } }, "models.LinkSharing": { @@ -7957,36 +7990,26 @@ 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, - "allOf": [ - { - "$ref": "#/definitions/models.Right" - } - ] + "maximum": 2 }, "shared_by": { "description": "The user who shared this list", - "allOf": [ - { - "$ref": "#/definitions/user.User" - } - ] + "$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, - "allOf": [ - { - "$ref": "#/definitions/models.SharingType" - } - ] + "maximum": 2 }, "updated": { "description": "A timestamp when this share was last updated. You cannot change this value.", "type": "string" - } + }, + "web.CRUDable": {}, + "web.Rights": {} } }, "models.List": { @@ -8035,11 +8058,7 @@ const docTemplate = `{ }, "owner": { "description": "The user who created this list.", - "allOf": [ - { - "$ref": "#/definitions/user.User" - } - ] + "$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.", @@ -8047,11 +8066,7 @@ 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.", - "allOf": [ - { - "$ref": "#/definitions/models.Subscription" - } - ] + "$ref": "#/definitions/models.Subscription" }, "title": { "description": "The title of the list. You'll see this in the namespace overview.", @@ -8062,7 +8077,9 @@ 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": { @@ -8070,16 +8087,14 @@ const docTemplate = `{ "properties": { "list": { "description": "The copied list", - "allOf": [ - { - "$ref": "#/definitions/models.List" - } - ] + "$ref": "#/definitions/models.List" }, "namespace_id": { "description": "The target namespace ID", "type": "integer" - } + }, + "web.CRUDable": {}, + "web.Rights": {} } }, "models.ListUser": { @@ -8095,13 +8110,9 @@ 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, - "allOf": [ - { - "$ref": "#/definitions/models.Right" - } - ] + "maximum": 2 }, "updated": { "description": "A timestamp when this relation was last updated. You cannot change this value.", @@ -8110,7 +8121,9 @@ const docTemplate = `{ "user_id": { "description": "The username.", "type": "string" - } + }, + "web.CRUDable": {}, + "web.Rights": {} } }, "models.Message": { @@ -8148,19 +8161,11 @@ const docTemplate = `{ }, "owner": { "description": "The user who owns this namespace", - "allOf": [ - { - "$ref": "#/definitions/user.User" - } - ] + "$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.", - "allOf": [ - { - "$ref": "#/definitions/models.Subscription" - } - ] + "$ref": "#/definitions/models.Subscription" }, "title": { "description": "The name of this namespace.", @@ -8171,7 +8176,9 @@ 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": { @@ -8187,13 +8194,9 @@ 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, - "allOf": [ - { - "$ref": "#/definitions/models.Right" - } - ] + "maximum": 2 }, "updated": { "description": "A timestamp when this relation was last updated. You cannot change this value.", @@ -8202,7 +8205,9 @@ const docTemplate = `{ "user_id": { "description": "The username.", "type": "string" - } + }, + "web.CRUDable": {}, + "web.Rights": {} } }, "models.NamespaceWithLists": { @@ -8237,19 +8242,11 @@ const docTemplate = `{ }, "owner": { "description": "The user who owns this namespace", - "allOf": [ - { - "$ref": "#/definitions/user.User" - } - ] + "$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.", - "allOf": [ - { - "$ref": "#/definitions/models.Subscription" - } - ] + "$ref": "#/definitions/models.Subscription" }, "title": { "description": "The name of this namespace.", @@ -8260,7 +8257,9 @@ 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": { @@ -8272,50 +8271,6 @@ 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": { @@ -8329,11 +8284,7 @@ const docTemplate = `{ }, "filters": { "description": "The actual filters this filter contains", - "allOf": [ - { - "$ref": "#/definitions/models.TaskCollection" - } - ] + "$ref": "#/definitions/models.TaskCollection" }, "id": { "description": "The unique numeric id of this saved filter", @@ -8345,11 +8296,7 @@ const docTemplate = `{ }, "owner": { "description": "The user who owns this filter", - "allOf": [ - { - "$ref": "#/definitions/user.User" - } - ] + "$ref": "#/definitions/user.User" }, "title": { "description": "The title of the filter.", @@ -8360,22 +8307,11 @@ 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": { @@ -8396,12 +8332,10 @@ const docTemplate = `{ }, "user": { "description": "The user who made this subscription", - "allOf": [ - { - "$ref": "#/definitions/user.User" - } - ] - } + "$ref": "#/definitions/user.User" + }, + "web.CRUDable": {}, + "web.Rights": {} } }, "models.Task": { @@ -8435,11 +8369,7 @@ const docTemplate = `{ }, "created_by": { "description": "The user who initially created the task.", - "allOf": [ - { - "$ref": "#/definitions/user.User" - } - ] + "$ref": "#/definitions/user.User" }, "description": { "description": "The task description.", @@ -8511,11 +8441,7 @@ const docTemplate = `{ }, "related_tasks": { "description": "All related tasks, grouped by their relation kind", - "allOf": [ - { - "$ref": "#/definitions/models.RelatedTaskMap" - } - ] + "$ref": "#/definitions/models.RelatedTaskMap" }, "reminder_dates": { "description": "An array of datetimes when the user wants to be reminded of the task.", @@ -8530,11 +8456,7 @@ 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.", - "allOf": [ - { - "$ref": "#/definitions/models.TaskRepeatMode" - } - ] + "type": "integer" }, "start_date": { "description": "When this task starts.", @@ -8542,11 +8464,7 @@ 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.", - "allOf": [ - { - "$ref": "#/definitions/models.Subscription" - } - ] + "$ref": "#/definitions/models.Subscription" }, "title": { "description": "The task text. This is what you'll see in the list.", @@ -8556,7 +8474,9 @@ 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": { @@ -8567,7 +8487,9 @@ const docTemplate = `{ }, "user_id": { "type": "integer" - } + }, + "web.CRUDable": {}, + "web.Rights": {} } }, "models.TaskAttachment": { @@ -8587,7 +8509,9 @@ const docTemplate = `{ }, "task_id": { "type": "integer" - } + }, + "web.CRUDable": {}, + "web.Rights": {} } }, "models.TaskCollection": { @@ -8635,7 +8559,9 @@ const docTemplate = `{ "items": { "type": "string" } - } + }, + "web.CRUDable": {}, + "web.Rights": {} } }, "models.TaskComment": { @@ -8655,7 +8581,9 @@ const docTemplate = `{ }, "updated": { "type": "string" - } + }, + "web.CRUDable": {}, + "web.Rights": {} } }, "models.TaskRelation": { @@ -8667,11 +8595,7 @@ const docTemplate = `{ }, "created_by": { "description": "The user who created this relation", - "allOf": [ - { - "$ref": "#/definitions/user.User" - } - ] + "$ref": "#/definitions/user.User" }, "other_task_id": { "description": "The ID of the other task, the task which is being related.", @@ -8679,31 +8603,16 @@ const docTemplate = `{ }, "relation_kind": { "description": "The kind of the relation.", - "allOf": [ - { - "$ref": "#/definitions/models.RelationKind" - } - ] + "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": {} } }, - "models.TaskRepeatMode": { - "type": "integer", - "enum": [ - 0, - 1, - 2 - ], - "x-enum-varnames": [ - "TaskRepeatModeDefault", - "TaskRepeatModeMonth", - "TaskRepeatModeFromCurrentDate" - ] - }, "models.Team": { "type": "object", "properties": { @@ -8713,11 +8622,7 @@ const docTemplate = `{ }, "created_by": { "description": "The user who created this team.", - "allOf": [ - { - "$ref": "#/definitions/user.User" - } - ] + "$ref": "#/definitions/user.User" }, "description": { "description": "The team's description.", @@ -8748,7 +8653,9 @@ 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": { @@ -8764,13 +8671,9 @@ 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, - "allOf": [ - { - "$ref": "#/definitions/models.Right" - } - ] + "maximum": 2 }, "team_id": { "description": "The team id.", @@ -8779,7 +8682,9 @@ 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": { @@ -8800,7 +8705,9 @@ 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": { @@ -8816,13 +8723,9 @@ 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, - "allOf": [ - { - "$ref": "#/definitions/models.Right" - } - ] + "maximum": 2 }, "team_id": { "description": "The team id.", @@ -8831,7 +8734,9 @@ 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": { @@ -8867,7 +8772,8 @@ const docTemplate = `{ "type": "string", "maxLength": 250, "minLength": 1 - } + }, + "web.Auth": {} } }, "models.TeamWithRight": { @@ -8879,11 +8785,7 @@ const docTemplate = `{ }, "created_by": { "description": "The user who created this team.", - "allOf": [ - { - "$ref": "#/definitions/user.User" - } - ] + "$ref": "#/definitions/user.User" }, "description": { "description": "The team's description.", @@ -8912,12 +8814,16 @@ const docTemplate = `{ "maxLength": 250 }, "right": { - "$ref": "#/definitions/models.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 }, "updated": { "description": "A timestamp when this relation was last updated. You cannot change this value.", "type": "string" - } + }, + "web.CRUDable": {}, + "web.Rights": {} } }, "models.UserWithRight": { @@ -8941,7 +8847,9 @@ const docTemplate = `{ "type": "string" }, "right": { - "$ref": "#/definitions/models.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 }, "updated": { "description": "A timestamp when this task was last updated. You cannot change this value.", @@ -8952,7 +8860,8 @@ const docTemplate = `{ "type": "string", "maxLength": 250, "minLength": 1 - } + }, + "web.Auth": {} } }, "notifications.DatabaseNotification": { @@ -9187,7 +9096,8 @@ const docTemplate = `{ "type": "string", "maxLength": 250, "minLength": 1 - } + }, + "web.Auth": {} } }, "v1.LinkShareAuth": { diff --git a/pkg/swagger/swagger.json b/pkg/swagger/swagger.json index 926da7d25b..f2fe657a01 100644 --- a/pkg/swagger/swagger.json +++ b/pkg/swagger/swagger.json @@ -7611,11 +7611,36 @@ }, "created_by": { "description": "The user who initially created the bucket.", - "allOf": [ - { - "$ref": "#/definitions/user.User" - } - ] + "$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" + } }, "id": { "description": "The unique, numeric id of this bucket.", @@ -7634,10 +7659,24 @@ "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", @@ -7653,7 +7692,9 @@ "updated": { "description": "A timestamp when this bucket was last updated. You cannot change this value.", "type": "string" - } + }, + "web.CRUDable": {}, + "web.Rights": {} } }, "models.BulkAssignees": { @@ -7665,7 +7706,9 @@ "items": { "$ref": "#/definitions/user.User" } - } + }, + "web.CRUDable": {}, + "web.Rights": {} } }, "models.BulkTask": { @@ -7699,11 +7742,7 @@ }, "created_by": { "description": "The user who initially created the task.", - "allOf": [ - { - "$ref": "#/definitions/user.User" - } - ] + "$ref": "#/definitions/user.User" }, "description": { "description": "The task description.", @@ -7775,11 +7814,7 @@ }, "related_tasks": { "description": "All related tasks, grouped by their relation kind", - "allOf": [ - { - "$ref": "#/definitions/models.RelatedTaskMap" - } - ] + "$ref": "#/definitions/models.RelatedTaskMap" }, "reminder_dates": { "description": "An array of datetimes when the user wants to be reminded of the task.", @@ -7794,11 +7829,7 @@ }, "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.", - "allOf": [ - { - "$ref": "#/definitions/models.TaskRepeatMode" - } - ] + "type": "integer" }, "start_date": { "description": "When this task starts.", @@ -7806,11 +7837,7 @@ }, "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.", - "allOf": [ - { - "$ref": "#/definitions/models.Subscription" - } - ] + "$ref": "#/definitions/models.Subscription" }, "task_ids": { "description": "A list of task ids to update", @@ -7827,7 +7854,9 @@ "updated": { "description": "A timestamp when this task was last updated. You cannot change this value.", "type": "string" - } + }, + "web.CRUDable": {}, + "web.Rights": {} } }, "models.DatabaseNotifications": { @@ -7855,7 +7884,9 @@ "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": { @@ -7867,11 +7898,7 @@ }, "created_by": { "description": "The user who created this label", - "allOf": [ - { - "$ref": "#/definitions/user.User" - } - ] + "$ref": "#/definitions/user.User" }, "description": { "description": "The label description.", @@ -7895,7 +7922,9 @@ "updated": { "description": "A timestamp when this label was last updated. You cannot change this value.", "type": "string" - } + }, + "web.CRUDable": {}, + "web.Rights": {} } }, "models.LabelTask": { @@ -7908,7 +7937,9 @@ "label_id": { "description": "The label id you want to associate with a task.", "type": "integer" - } + }, + "web.CRUDable": {}, + "web.Rights": {} } }, "models.LabelTaskBulk": { @@ -7920,7 +7951,9 @@ "items": { "$ref": "#/definitions/models.Label" } - } + }, + "web.CRUDable": {}, + "web.Rights": {} } }, "models.LinkSharing": { @@ -7948,36 +7981,26 @@ }, "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, - "allOf": [ - { - "$ref": "#/definitions/models.Right" - } - ] + "maximum": 2 }, "shared_by": { "description": "The user who shared this list", - "allOf": [ - { - "$ref": "#/definitions/user.User" - } - ] + "$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, - "allOf": [ - { - "$ref": "#/definitions/models.SharingType" - } - ] + "maximum": 2 }, "updated": { "description": "A timestamp when this share was last updated. You cannot change this value.", "type": "string" - } + }, + "web.CRUDable": {}, + "web.Rights": {} } }, "models.List": { @@ -8026,11 +8049,7 @@ }, "owner": { "description": "The user who created this list.", - "allOf": [ - { - "$ref": "#/definitions/user.User" - } - ] + "$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.", @@ -8038,11 +8057,7 @@ }, "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.", - "allOf": [ - { - "$ref": "#/definitions/models.Subscription" - } - ] + "$ref": "#/definitions/models.Subscription" }, "title": { "description": "The title of the list. You'll see this in the namespace overview.", @@ -8053,7 +8068,9 @@ "updated": { "description": "A timestamp when this list was last updated. You cannot change this value.", "type": "string" - } + }, + "web.CRUDable": {}, + "web.Rights": {} } }, "models.ListDuplicate": { @@ -8061,16 +8078,14 @@ "properties": { "list": { "description": "The copied list", - "allOf": [ - { - "$ref": "#/definitions/models.List" - } - ] + "$ref": "#/definitions/models.List" }, "namespace_id": { "description": "The target namespace ID", "type": "integer" - } + }, + "web.CRUDable": {}, + "web.Rights": {} } }, "models.ListUser": { @@ -8086,13 +8101,9 @@ }, "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, - "allOf": [ - { - "$ref": "#/definitions/models.Right" - } - ] + "maximum": 2 }, "updated": { "description": "A timestamp when this relation was last updated. You cannot change this value.", @@ -8101,7 +8112,9 @@ "user_id": { "description": "The username.", "type": "string" - } + }, + "web.CRUDable": {}, + "web.Rights": {} } }, "models.Message": { @@ -8139,19 +8152,11 @@ }, "owner": { "description": "The user who owns this namespace", - "allOf": [ - { - "$ref": "#/definitions/user.User" - } - ] + "$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.", - "allOf": [ - { - "$ref": "#/definitions/models.Subscription" - } - ] + "$ref": "#/definitions/models.Subscription" }, "title": { "description": "The name of this namespace.", @@ -8162,7 +8167,9 @@ "updated": { "description": "A timestamp when this namespace was last updated. You cannot change this value.", "type": "string" - } + }, + "web.CRUDable": {}, + "web.Rights": {} } }, "models.NamespaceUser": { @@ -8178,13 +8185,9 @@ }, "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, - "allOf": [ - { - "$ref": "#/definitions/models.Right" - } - ] + "maximum": 2 }, "updated": { "description": "A timestamp when this relation was last updated. You cannot change this value.", @@ -8193,7 +8196,9 @@ "user_id": { "description": "The username.", "type": "string" - } + }, + "web.CRUDable": {}, + "web.Rights": {} } }, "models.NamespaceWithLists": { @@ -8228,19 +8233,11 @@ }, "owner": { "description": "The user who owns this namespace", - "allOf": [ - { - "$ref": "#/definitions/user.User" - } - ] + "$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.", - "allOf": [ - { - "$ref": "#/definitions/models.Subscription" - } - ] + "$ref": "#/definitions/models.Subscription" }, "title": { "description": "The name of this namespace.", @@ -8251,7 +8248,9 @@ "updated": { "description": "A timestamp when this namespace was last updated. You cannot change this value.", "type": "string" - } + }, + "web.CRUDable": {}, + "web.Rights": {} } }, "models.RelatedTaskMap": { @@ -8263,50 +8262,6 @@ } } }, - "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": { @@ -8320,11 +8275,7 @@ }, "filters": { "description": "The actual filters this filter contains", - "allOf": [ - { - "$ref": "#/definitions/models.TaskCollection" - } - ] + "$ref": "#/definitions/models.TaskCollection" }, "id": { "description": "The unique numeric id of this saved filter", @@ -8336,11 +8287,7 @@ }, "owner": { "description": "The user who owns this filter", - "allOf": [ - { - "$ref": "#/definitions/user.User" - } - ] + "$ref": "#/definitions/user.User" }, "title": { "description": "The title of the filter.", @@ -8351,22 +8298,11 @@ "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": { @@ -8387,12 +8323,10 @@ }, "user": { "description": "The user who made this subscription", - "allOf": [ - { - "$ref": "#/definitions/user.User" - } - ] - } + "$ref": "#/definitions/user.User" + }, + "web.CRUDable": {}, + "web.Rights": {} } }, "models.Task": { @@ -8426,11 +8360,7 @@ }, "created_by": { "description": "The user who initially created the task.", - "allOf": [ - { - "$ref": "#/definitions/user.User" - } - ] + "$ref": "#/definitions/user.User" }, "description": { "description": "The task description.", @@ -8502,11 +8432,7 @@ }, "related_tasks": { "description": "All related tasks, grouped by their relation kind", - "allOf": [ - { - "$ref": "#/definitions/models.RelatedTaskMap" - } - ] + "$ref": "#/definitions/models.RelatedTaskMap" }, "reminder_dates": { "description": "An array of datetimes when the user wants to be reminded of the task.", @@ -8521,11 +8447,7 @@ }, "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.", - "allOf": [ - { - "$ref": "#/definitions/models.TaskRepeatMode" - } - ] + "type": "integer" }, "start_date": { "description": "When this task starts.", @@ -8533,11 +8455,7 @@ }, "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.", - "allOf": [ - { - "$ref": "#/definitions/models.Subscription" - } - ] + "$ref": "#/definitions/models.Subscription" }, "title": { "description": "The task text. This is what you'll see in the list.", @@ -8547,7 +8465,9 @@ "updated": { "description": "A timestamp when this task was last updated. You cannot change this value.", "type": "string" - } + }, + "web.CRUDable": {}, + "web.Rights": {} } }, "models.TaskAssginee": { @@ -8558,7 +8478,9 @@ }, "user_id": { "type": "integer" - } + }, + "web.CRUDable": {}, + "web.Rights": {} } }, "models.TaskAttachment": { @@ -8578,7 +8500,9 @@ }, "task_id": { "type": "integer" - } + }, + "web.CRUDable": {}, + "web.Rights": {} } }, "models.TaskCollection": { @@ -8626,7 +8550,9 @@ "items": { "type": "string" } - } + }, + "web.CRUDable": {}, + "web.Rights": {} } }, "models.TaskComment": { @@ -8646,7 +8572,9 @@ }, "updated": { "type": "string" - } + }, + "web.CRUDable": {}, + "web.Rights": {} } }, "models.TaskRelation": { @@ -8658,11 +8586,7 @@ }, "created_by": { "description": "The user who created this relation", - "allOf": [ - { - "$ref": "#/definitions/user.User" - } - ] + "$ref": "#/definitions/user.User" }, "other_task_id": { "description": "The ID of the other task, the task which is being related.", @@ -8670,31 +8594,16 @@ }, "relation_kind": { "description": "The kind of the relation.", - "allOf": [ - { - "$ref": "#/definitions/models.RelationKind" - } - ] + "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": {} } }, - "models.TaskRepeatMode": { - "type": "integer", - "enum": [ - 0, - 1, - 2 - ], - "x-enum-varnames": [ - "TaskRepeatModeDefault", - "TaskRepeatModeMonth", - "TaskRepeatModeFromCurrentDate" - ] - }, "models.Team": { "type": "object", "properties": { @@ -8704,11 +8613,7 @@ }, "created_by": { "description": "The user who created this team.", - "allOf": [ - { - "$ref": "#/definitions/user.User" - } - ] + "$ref": "#/definitions/user.User" }, "description": { "description": "The team's description.", @@ -8739,7 +8644,9 @@ "updated": { "description": "A timestamp when this relation was last updated. You cannot change this value.", "type": "string" - } + }, + "web.CRUDable": {}, + "web.Rights": {} } }, "models.TeamList": { @@ -8755,13 +8662,9 @@ }, "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, - "allOf": [ - { - "$ref": "#/definitions/models.Right" - } - ] + "maximum": 2 }, "team_id": { "description": "The team id.", @@ -8770,7 +8673,9 @@ "updated": { "description": "A timestamp when this relation was last updated. You cannot change this value.", "type": "string" - } + }, + "web.CRUDable": {}, + "web.Rights": {} } }, "models.TeamMember": { @@ -8791,7 +8696,9 @@ "username": { "description": "The username of the member. We use this to prevent automated user id entering.", "type": "string" - } + }, + "web.CRUDable": {}, + "web.Rights": {} } }, "models.TeamNamespace": { @@ -8807,13 +8714,9 @@ }, "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, - "allOf": [ - { - "$ref": "#/definitions/models.Right" - } - ] + "maximum": 2 }, "team_id": { "description": "The team id.", @@ -8822,7 +8725,9 @@ "updated": { "description": "A timestamp when this relation was last updated. You cannot change this value.", "type": "string" - } + }, + "web.CRUDable": {}, + "web.Rights": {} } }, "models.TeamUser": { @@ -8858,7 +8763,8 @@ "type": "string", "maxLength": 250, "minLength": 1 - } + }, + "web.Auth": {} } }, "models.TeamWithRight": { @@ -8870,11 +8776,7 @@ }, "created_by": { "description": "The user who created this team.", - "allOf": [ - { - "$ref": "#/definitions/user.User" - } - ] + "$ref": "#/definitions/user.User" }, "description": { "description": "The team's description.", @@ -8903,12 +8805,16 @@ "maxLength": 250 }, "right": { - "$ref": "#/definitions/models.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 }, "updated": { "description": "A timestamp when this relation was last updated. You cannot change this value.", "type": "string" - } + }, + "web.CRUDable": {}, + "web.Rights": {} } }, "models.UserWithRight": { @@ -8932,7 +8838,9 @@ "type": "string" }, "right": { - "$ref": "#/definitions/models.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 }, "updated": { "description": "A timestamp when this task was last updated. You cannot change this value.", @@ -8943,7 +8851,8 @@ "type": "string", "maxLength": 250, "minLength": 1 - } + }, + "web.Auth": {} } }, "notifications.DatabaseNotification": { @@ -9178,7 +9087,8 @@ "type": "string", "maxLength": 250, "minLength": 1 - } + }, + "web.Auth": {} } }, "v1.LinkShareAuth": { diff --git a/pkg/swagger/swagger.yaml b/pkg/swagger/swagger.yaml index 102d6af3ba..31fa4f7367 100644 --- a/pkg/swagger/swagger.yaml +++ b/pkg/swagger/swagger.yaml @@ -58,9 +58,30 @@ definitions: value. type: string created_by: - allOf: - - $ref: '#/definitions/user.User' + $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 @@ -76,10 +97,22 @@ 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: @@ -93,6 +126,8 @@ 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: @@ -101,6 +136,8 @@ definitions: items: $ref: '#/definitions/user.User' type: array + web.CRUDable: {} + web.Rights: {} type: object models.BulkTask: properties: @@ -126,8 +163,7 @@ definitions: value. type: string created_by: - allOf: - - $ref: '#/definitions/user.User' + $ref: '#/definitions/user.User' description: The user who initially created the task. description: description: The task description. @@ -192,8 +228,7 @@ definitions: sort by this later. type: integer related_tasks: - allOf: - - $ref: '#/definitions/models.RelatedTaskMap' + $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 @@ -207,18 +242,16 @@ 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: - allOf: - - $ref: '#/definitions/models.Subscription' + $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. @@ -235,6 +268,8 @@ 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: @@ -259,6 +294,8 @@ 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: @@ -267,8 +304,7 @@ definitions: value. type: string created_by: - allOf: - - $ref: '#/definitions/user.User' + $ref: '#/definitions/user.User' description: The user who created this label description: description: The label description. @@ -290,6 +326,8 @@ 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: @@ -300,6 +338,8 @@ 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: @@ -308,6 +348,8 @@ definitions: items: $ref: '#/definitions/models.Label' type: array + web.CRUDable: {} + web.Rights: {} type: object models.LinkSharing: properties: @@ -330,27 +372,26 @@ 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: - allOf: - - $ref: '#/definitions/user.User' + $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: @@ -392,16 +433,14 @@ definitions: namespace_id: type: integer owner: - allOf: - - $ref: '#/definitions/user.User' + $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: - allOf: - - $ref: '#/definitions/models.Subscription' + $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. @@ -414,16 +453,19 @@ 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: - allOf: - - $ref: '#/definitions/models.List' + $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: @@ -435,12 +477,11 @@ 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. @@ -448,6 +489,8 @@ definitions: user_id: description: The username. type: string + web.CRUDable: {} + web.Rights: {} type: object models.Message: properties: @@ -475,12 +518,10 @@ definitions: description: Whether or not a namespace is archived. type: boolean owner: - allOf: - - $ref: '#/definitions/user.User' + $ref: '#/definitions/user.User' description: The user who owns this namespace subscription: - allOf: - - $ref: '#/definitions/models.Subscription' + $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. @@ -493,6 +534,8 @@ 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: @@ -504,12 +547,11 @@ 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. @@ -517,6 +559,8 @@ definitions: user_id: description: The username. type: string + web.CRUDable: {} + web.Rights: {} type: object models.NamespaceWithLists: properties: @@ -542,12 +586,10 @@ definitions: $ref: '#/definitions/models.List' type: array owner: - allOf: - - $ref: '#/definitions/user.User' + $ref: '#/definitions/user.User' description: The user who owns this namespace subscription: - allOf: - - $ref: '#/definitions/models.Subscription' + $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. @@ -560,6 +602,8 @@ 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: @@ -567,44 +611,6 @@ 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: @@ -615,8 +621,7 @@ definitions: description: The description of the filter type: string filters: - allOf: - - $ref: '#/definitions/models.TaskCollection' + $ref: '#/definitions/models.TaskCollection' description: The actual filters this filter contains id: description: The unique numeric id of this saved filter @@ -626,8 +631,7 @@ definitions: a separate namespace together with favorite lists. type: boolean owner: - allOf: - - $ref: '#/definitions/user.User' + $ref: '#/definitions/user.User' description: The user who owns this filter title: description: The title of the filter. @@ -638,17 +642,9 @@ 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: @@ -664,9 +660,10 @@ definitions: description: The numeric ID of the subscription type: integer user: - allOf: - - $ref: '#/definitions/user.User' + $ref: '#/definitions/user.User' description: The user who made this subscription + web.CRUDable: {} + web.Rights: {} type: object models.Task: properties: @@ -692,8 +689,7 @@ definitions: value. type: string created_by: - allOf: - - $ref: '#/definitions/user.User' + $ref: '#/definitions/user.User' description: The user who initially created the task. description: description: The task description. @@ -758,8 +754,7 @@ definitions: sort by this later. type: integer related_tasks: - allOf: - - $ref: '#/definitions/models.RelatedTaskMap' + $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 @@ -773,18 +768,16 @@ 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: - allOf: - - $ref: '#/definitions/models.Subscription' + $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. @@ -796,6 +789,8 @@ 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: @@ -803,6 +798,8 @@ definitions: type: string user_id: type: integer + web.CRUDable: {} + web.Rights: {} type: object models.TaskAttachment: properties: @@ -816,6 +813,8 @@ definitions: type: integer task_id: type: integer + web.CRUDable: {} + web.Rights: {} type: object models.TaskCollection: properties: @@ -853,6 +852,8 @@ definitions: items: type: string type: array + web.CRUDable: {} + web.Rights: {} type: object models.TaskComment: properties: @@ -866,6 +867,8 @@ definitions: type: integer updated: type: string + web.CRUDable: {} + web.Rights: {} type: object models.TaskRelation: properties: @@ -874,30 +877,20 @@ definitions: value. type: string created_by: - allOf: - - $ref: '#/definitions/user.User' + $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: @@ -905,8 +898,7 @@ definitions: this value. type: string created_by: - allOf: - - $ref: '#/definitions/user.User' + $ref: '#/definitions/user.User' description: The user who created this team. description: description: The team's description. @@ -932,6 +924,8 @@ 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: @@ -943,12 +937,11 @@ 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 @@ -956,6 +949,8 @@ 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: @@ -974,6 +969,8 @@ 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: @@ -985,12 +982,11 @@ 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 @@ -998,6 +994,8 @@ 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: @@ -1028,6 +1026,7 @@ definitions: maxLength: 250 minLength: 1 type: string + web.Auth: {} type: object models.TeamWithRight: properties: @@ -1036,8 +1035,7 @@ definitions: this value. type: string created_by: - allOf: - - $ref: '#/definitions/user.User' + $ref: '#/definitions/user.User' description: The user who created this team. description: description: The team's description. @@ -1060,11 +1058,16 @@ definitions: maxLength: 250 type: string right: - $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. + type: integer 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: @@ -1083,7 +1086,10 @@ definitions: description: The full name of the user. type: string right: - $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. + type: integer updated: description: A timestamp when this task was last updated. You cannot change this value. @@ -1093,6 +1099,7 @@ definitions: maxLength: 250 minLength: 1 type: string + web.Auth: {} type: object notifications.DatabaseNotification: properties: @@ -1263,6 +1270,7 @@ definitions: maxLength: 250 minLength: 1 type: string + web.Auth: {} type: object v1.LinkShareAuth: properties: