From c6fb140c2cd101b19f69b66d92386faa7114bf53 Mon Sep 17 00:00:00 2001 From: renovate Date: Thu, 15 Dec 2022 23:03:23 +0000 Subject: [PATCH 1/2] fix(deps): update module github.com/swaggo/swag to v1.8.9 --- go.mod | 2 +- go.sum | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/go.mod b/go.mod index e19ae3883..609f10554 100644 --- a/go.mod +++ b/go.mod @@ -56,7 +56,7 @@ require ( github.com/spf13/cobra v1.6.1 github.com/spf13/viper v1.14.0 github.com/stretchr/testify v1.8.1 - github.com/swaggo/swag v1.8.7 + github.com/swaggo/swag v1.8.9 github.com/tkuchiki/go-timezone v0.2.2 github.com/ulule/limiter/v3 v3.10.0 github.com/vectordotdev/go-datemath v0.1.1-0.20211214182920-0a4ac8742b93 diff --git a/go.sum b/go.sum index 0e7984259..74920c6f8 100644 --- a/go.sum +++ b/go.sum @@ -764,6 +764,8 @@ github.com/subosito/gotenv v1.4.1 h1:jyEFiXpy21Wm81FBN71l9VoMMV8H8jG+qIK3GCpY6Qs github.com/subosito/gotenv v1.4.1/go.mod h1:ayKnFf/c6rvx/2iiLrJUk1e6plDbT3edrFNGqEflhK0= github.com/swaggo/swag v1.8.7 h1:2K9ivTD3teEO+2fXV6zrZKDqk5IuU2aJtBDo8U7omWU= github.com/swaggo/swag v1.8.7/go.mod h1:ezQVUUhly8dludpVk+/PuwJWvLLanB13ygV5Pr9enSk= +github.com/swaggo/swag v1.8.9 h1:kHtaBe/Ob9AZzAANfcn5c6RyCke9gG9QpH0jky0I/sA= +github.com/swaggo/swag v1.8.9/go.mod h1:ezQVUUhly8dludpVk+/PuwJWvLLanB13ygV5Pr9enSk= github.com/syndtr/goleveldb v1.0.0 h1:fBdIW9lB4Iz0n9khmH8w27SJ3QEJ7+IgjPEwGSZiFdE= github.com/syndtr/goleveldb v1.0.0/go.mod h1:ZVVdQEZoIme9iO1Ch2Jdy24qqXrMMOU6lpPAyBWyWuQ= github.com/tkuchiki/go-timezone v0.2.2 h1:MdHR65KwgVTwWFQrota4SKzc4L5EfuH5SdZZGtk/P2Q= -- 2.40.1 From ea3f4d6a63035d0e659ebbeb9760fe1cfc2e319e Mon Sep 17 00:00:00 2001 From: kolaente Date: Sun, 18 Dec 2022 17:34:09 +0100 Subject: [PATCH 2/2] chore: update swagger docs --- pkg/swagger/docs.go | 436 +++++++++++++++++++++++---------------- pkg/swagger/swagger.json | 436 +++++++++++++++++++++++---------------- pkg/swagger/swagger.yaml | 252 +++++++++++----------- 3 files changed, 648 insertions(+), 476 deletions(-) diff --git a/pkg/swagger/docs.go b/pkg/swagger/docs.go index fbb05a841..1f416c798 100644 --- a/pkg/swagger/docs.go +++ b/pkg/swagger/docs.go @@ -7727,36 +7727,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.", @@ -7775,24 +7750,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", @@ -7808,9 +7769,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": { @@ -7822,9 +7781,7 @@ const docTemplate = `{ "items": { "$ref": "#/definitions/user.User" } - }, - "web.CRUDable": {}, - "web.Rights": {} + } } }, "models.BulkTask": { @@ -7858,7 +7815,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.", @@ -7930,7 +7891,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.", @@ -7945,7 +7910,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.", @@ -7953,7 +7922,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", @@ -7970,9 +7943,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": { @@ -8000,9 +7971,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": { @@ -8014,7 +7983,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.", @@ -8038,9 +8011,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": { @@ -8053,9 +8024,7 @@ const docTemplate = `{ "label_id": { "description": "The label id you want to associate with a task.", "type": "integer" - }, - "web.CRUDable": {}, - "web.Rights": {} + } } }, "models.LabelTaskBulk": { @@ -8067,9 +8036,7 @@ const docTemplate = `{ "items": { "$ref": "#/definitions/models.Label" } - }, - "web.CRUDable": {}, - "web.Rights": {} + } } }, "models.LinkSharing": { @@ -8097,26 +8064,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": { @@ -8165,7 +8142,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.", @@ -8173,7 +8154,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.", @@ -8184,9 +8169,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": { @@ -8194,14 +8177,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": { @@ -8217,9 +8202,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.", @@ -8228,9 +8217,7 @@ const docTemplate = `{ "user_id": { "description": "The username.", "type": "string" - }, - "web.CRUDable": {}, - "web.Rights": {} + } } }, "models.Message": { @@ -8268,11 +8255,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.", @@ -8283,9 +8278,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": { @@ -8301,9 +8294,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.", @@ -8312,9 +8309,7 @@ const docTemplate = `{ "user_id": { "description": "The username.", "type": "string" - }, - "web.CRUDable": {}, - "web.Rights": {} + } } }, "models.NamespaceWithLists": { @@ -8349,11 +8344,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.", @@ -8364,9 +8367,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": { @@ -8378,6 +8379,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": { @@ -8391,7 +8436,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", @@ -8403,7 +8452,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.", @@ -8414,11 +8467,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": { @@ -8439,10 +8503,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": { @@ -8476,7 +8542,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.", @@ -8548,7 +8618,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.", @@ -8563,7 +8637,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.", @@ -8571,7 +8649,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.", @@ -8581,9 +8663,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": { @@ -8594,9 +8674,7 @@ const docTemplate = `{ }, "user_id": { "type": "integer" - }, - "web.CRUDable": {}, - "web.Rights": {} + } } }, "models.TaskAttachment": { @@ -8616,9 +8694,7 @@ const docTemplate = `{ }, "task_id": { "type": "integer" - }, - "web.CRUDable": {}, - "web.Rights": {} + } } }, "models.TaskCollection": { @@ -8666,9 +8742,7 @@ const docTemplate = `{ "items": { "type": "string" } - }, - "web.CRUDable": {}, - "web.Rights": {} + } } }, "models.TaskComment": { @@ -8688,9 +8762,7 @@ const docTemplate = `{ }, "updated": { "type": "string" - }, - "web.CRUDable": {}, - "web.Rights": {} + } } }, "models.TaskRelation": { @@ -8702,7 +8774,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.", @@ -8710,16 +8786,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": { @@ -8729,7 +8820,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.", @@ -8755,9 +8850,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": { @@ -8773,9 +8866,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.", @@ -8784,9 +8881,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": { @@ -8807,9 +8902,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": { @@ -8825,9 +8918,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.", @@ -8836,9 +8933,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": { @@ -8874,8 +8969,7 @@ const docTemplate = `{ "type": "string", "maxLength": 250, "minLength": 1 - }, - "web.Auth": {} + } } }, "models.TeamWithRight": { @@ -8887,7 +8981,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.", @@ -8911,16 +9009,12 @@ const docTemplate = `{ "minLength": 1 }, "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": { @@ -8944,9 +9038,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.", @@ -8957,8 +9049,7 @@ const docTemplate = `{ "type": "string", "maxLength": 250, "minLength": 1 - }, - "web.Auth": {} + } } }, "notifications.DatabaseNotification": { @@ -9187,8 +9278,7 @@ 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 9f0e5b337..b25bd7a5d 100644 --- a/pkg/swagger/swagger.json +++ b/pkg/swagger/swagger.json @@ -7718,36 +7718,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.", @@ -7766,24 +7741,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", @@ -7799,9 +7760,7 @@ "updated": { "description": "A timestamp when this bucket was last updated. You cannot change this value.", "type": "string" - }, - "web.CRUDable": {}, - "web.Rights": {} + } } }, "models.BulkAssignees": { @@ -7813,9 +7772,7 @@ "items": { "$ref": "#/definitions/user.User" } - }, - "web.CRUDable": {}, - "web.Rights": {} + } } }, "models.BulkTask": { @@ -7849,7 +7806,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.", @@ -7921,7 +7882,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.", @@ -7936,7 +7901,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.", @@ -7944,7 +7913,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", @@ -7961,9 +7934,7 @@ "updated": { "description": "A timestamp when this task was last updated. You cannot change this value.", "type": "string" - }, - "web.CRUDable": {}, - "web.Rights": {} + } } }, "models.DatabaseNotifications": { @@ -7991,9 +7962,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": { @@ -8005,7 +7974,11 @@ }, "created_by": { "description": "The user who created this label", - "$ref": "#/definitions/user.User" + "allOf": [ + { + "$ref": "#/definitions/user.User" + } + ] }, "description": { "description": "The label description.", @@ -8029,9 +8002,7 @@ "updated": { "description": "A timestamp when this label was last updated. You cannot change this value.", "type": "string" - }, - "web.CRUDable": {}, - "web.Rights": {} + } } }, "models.LabelTask": { @@ -8044,9 +8015,7 @@ "label_id": { "description": "The label id you want to associate with a task.", "type": "integer" - }, - "web.CRUDable": {}, - "web.Rights": {} + } } }, "models.LabelTaskBulk": { @@ -8058,9 +8027,7 @@ "items": { "$ref": "#/definitions/models.Label" } - }, - "web.CRUDable": {}, - "web.Rights": {} + } } }, "models.LinkSharing": { @@ -8088,26 +8055,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": { @@ -8156,7 +8133,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.", @@ -8164,7 +8145,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.", @@ -8175,9 +8160,7 @@ "updated": { "description": "A timestamp when this list was last updated. You cannot change this value.", "type": "string" - }, - "web.CRUDable": {}, - "web.Rights": {} + } } }, "models.ListDuplicate": { @@ -8185,14 +8168,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": { @@ -8208,9 +8193,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.", @@ -8219,9 +8208,7 @@ "user_id": { "description": "The username.", "type": "string" - }, - "web.CRUDable": {}, - "web.Rights": {} + } } }, "models.Message": { @@ -8259,11 +8246,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.", @@ -8274,9 +8269,7 @@ "updated": { "description": "A timestamp when this namespace was last updated. You cannot change this value.", "type": "string" - }, - "web.CRUDable": {}, - "web.Rights": {} + } } }, "models.NamespaceUser": { @@ -8292,9 +8285,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.", @@ -8303,9 +8300,7 @@ "user_id": { "description": "The username.", "type": "string" - }, - "web.CRUDable": {}, - "web.Rights": {} + } } }, "models.NamespaceWithLists": { @@ -8340,11 +8335,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.", @@ -8355,9 +8358,7 @@ "updated": { "description": "A timestamp when this namespace was last updated. You cannot change this value.", "type": "string" - }, - "web.CRUDable": {}, - "web.Rights": {} + } } }, "models.RelatedTaskMap": { @@ -8369,6 +8370,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": { @@ -8382,7 +8427,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", @@ -8394,7 +8443,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.", @@ -8405,11 +8458,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": { @@ -8430,10 +8494,12 @@ }, "user": { "description": "The user who made this subscription", - "$ref": "#/definitions/user.User" - }, - "web.CRUDable": {}, - "web.Rights": {} + "allOf": [ + { + "$ref": "#/definitions/user.User" + } + ] + } } }, "models.Task": { @@ -8467,7 +8533,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.", @@ -8539,7 +8609,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.", @@ -8554,7 +8628,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.", @@ -8562,7 +8640,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.", @@ -8572,9 +8654,7 @@ "updated": { "description": "A timestamp when this task was last updated. You cannot change this value.", "type": "string" - }, - "web.CRUDable": {}, - "web.Rights": {} + } } }, "models.TaskAssginee": { @@ -8585,9 +8665,7 @@ }, "user_id": { "type": "integer" - }, - "web.CRUDable": {}, - "web.Rights": {} + } } }, "models.TaskAttachment": { @@ -8607,9 +8685,7 @@ }, "task_id": { "type": "integer" - }, - "web.CRUDable": {}, - "web.Rights": {} + } } }, "models.TaskCollection": { @@ -8657,9 +8733,7 @@ "items": { "type": "string" } - }, - "web.CRUDable": {}, - "web.Rights": {} + } } }, "models.TaskComment": { @@ -8679,9 +8753,7 @@ }, "updated": { "type": "string" - }, - "web.CRUDable": {}, - "web.Rights": {} + } } }, "models.TaskRelation": { @@ -8693,7 +8765,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.", @@ -8701,16 +8777,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": { @@ -8720,7 +8811,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.", @@ -8746,9 +8841,7 @@ "updated": { "description": "A timestamp when this relation was last updated. You cannot change this value.", "type": "string" - }, - "web.CRUDable": {}, - "web.Rights": {} + } } }, "models.TeamList": { @@ -8764,9 +8857,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.", @@ -8775,9 +8872,7 @@ "updated": { "description": "A timestamp when this relation was last updated. You cannot change this value.", "type": "string" - }, - "web.CRUDable": {}, - "web.Rights": {} + } } }, "models.TeamMember": { @@ -8798,9 +8893,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": { @@ -8816,9 +8909,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.", @@ -8827,9 +8924,7 @@ "updated": { "description": "A timestamp when this relation was last updated. You cannot change this value.", "type": "string" - }, - "web.CRUDable": {}, - "web.Rights": {} + } } }, "models.TeamUser": { @@ -8865,8 +8960,7 @@ "type": "string", "maxLength": 250, "minLength": 1 - }, - "web.Auth": {} + } } }, "models.TeamWithRight": { @@ -8878,7 +8972,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.", @@ -8902,16 +9000,12 @@ "minLength": 1 }, "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": { @@ -8935,9 +9029,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.", @@ -8948,8 +9040,7 @@ "type": "string", "maxLength": 250, "minLength": 1 - }, - "web.Auth": {} + } } }, "notifications.DatabaseNotification": { @@ -9178,8 +9269,7 @@ "type": "string", "maxLength": 250, "minLength": 1 - }, - "web.Auth": {} + } } }, "v1.LinkShareAuth": { diff --git a/pkg/swagger/swagger.yaml b/pkg/swagger/swagger.yaml index 2d279bdcf..1f62d9f03 100644 --- a/pkg/swagger/swagger.yaml +++ b/pkg/swagger/swagger.yaml @@ -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. @@ -920,8 +928,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: @@ -933,11 +939,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 @@ -945,8 +952,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: @@ -965,8 +970,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: @@ -978,11 +981,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 @@ -990,8 +994,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: @@ -1022,7 +1024,6 @@ definitions: maxLength: 250 minLength: 1 type: string - web.Auth: {} type: object models.TeamWithRight: properties: @@ -1031,7 +1032,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. @@ -1050,16 +1052,11 @@ definitions: minLength: 1 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: @@ -1078,10 +1075,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. @@ -1091,7 +1085,6 @@ definitions: maxLength: 250 minLength: 1 type: string - web.Auth: {} type: object notifications.DatabaseNotification: properties: @@ -1258,7 +1251,6 @@ definitions: maxLength: 250 minLength: 1 type: string - web.Auth: {} type: object v1.LinkShareAuth: properties: -- 2.40.1