diff --git a/pkg/swagger/docs.go b/pkg/swagger/docs.go index dd526292a..8af387674 100644 --- a/pkg/swagger/docs.go +++ b/pkg/swagger/docs.go @@ -8995,6 +8995,10 @@ const docTemplate = `{ "auth_provider": { "type": "string" }, + "bot_owner_id": { + "description": "BotOwnerID is the ID of the owning (human) user if this user is a bot.\nA non-zero value means this user is a bot and cannot authenticate via password.", + "type": "integer" + }, "created": { "description": "A timestamp when this task was created. You cannot change this value.", "type": "string" @@ -9345,6 +9349,10 @@ const docTemplate = `{ "description": "The unique, numeric id of this api key.", "type": "integer" }, + "owner_id": { + "description": "The user ID of the token owner. When creating a token for a bot user, set this\nto the bot's ID. If omitted, defaults to the authenticated user.", + "type": "integer" + }, "permissions": { "description": "The permissions this token has. Possible values are available via the /routes endpoint and consist of the keys of the list from that endpoint. For example, if the token should be able to read all tasks as well as update existing tasks, you should add ` + "`" + `{\"tasks\":[\"read_all\",\"update\"]}` + "`" + `.", "allOf": [ @@ -10531,6 +10539,10 @@ const docTemplate = `{ "description": "Whether the member is an admin of the team. See the docs for more about what a team admin can do", "type": "boolean" }, + "bot_owner_id": { + "description": "BotOwnerID is the ID of the owning (human) user if this user is a bot.\nA non-zero value means this user is a bot and cannot authenticate via password.", + "type": "integer" + }, "created": { "description": "A timestamp when this task was created. You cannot change this value.", "type": "string" @@ -10621,6 +10633,10 @@ const docTemplate = `{ "models.UserWithPermission": { "type": "object", "properties": { + "bot_owner_id": { + "description": "BotOwnerID is the ID of the owning (human) user if this user is a bot.\nA non-zero value means this user is a bot and cannot authenticate via password.", + "type": "integer" + }, "created": { "description": "A timestamp when this task was created. You cannot change this value.", "type": "string" @@ -10889,6 +10905,10 @@ const docTemplate = `{ "user.User": { "type": "object", "properties": { + "bot_owner_id": { + "description": "BotOwnerID is the ID of the owning (human) user if this user is a bot.\nA non-zero value means this user is a bot and cannot authenticate via password.", + "type": "integer" + }, "created": { "description": "A timestamp when this task was created. You cannot change this value.", "type": "string" @@ -11066,6 +11086,10 @@ const docTemplate = `{ "auth_provider": { "type": "string" }, + "bot_owner_id": { + "description": "BotOwnerID is the ID of the owning (human) user if this user is a bot.\nA non-zero value means this user is a bot and cannot authenticate via password.", + "type": "integer" + }, "created": { "description": "A timestamp when this task was created. You cannot change this value.", "type": "string" @@ -11177,6 +11201,9 @@ const docTemplate = `{ "type": "string" } }, + "bot_users_enabled": { + "type": "boolean" + }, "caldav_enabled": { "type": "boolean" }, diff --git a/pkg/swagger/swagger.json b/pkg/swagger/swagger.json index 270d5343c..f58832190 100644 --- a/pkg/swagger/swagger.json +++ b/pkg/swagger/swagger.json @@ -8987,6 +8987,10 @@ "auth_provider": { "type": "string" }, + "bot_owner_id": { + "description": "BotOwnerID is the ID of the owning (human) user if this user is a bot.\nA non-zero value means this user is a bot and cannot authenticate via password.", + "type": "integer" + }, "created": { "description": "A timestamp when this task was created. You cannot change this value.", "type": "string" @@ -9337,6 +9341,10 @@ "description": "The unique, numeric id of this api key.", "type": "integer" }, + "owner_id": { + "description": "The user ID of the token owner. When creating a token for a bot user, set this\nto the bot's ID. If omitted, defaults to the authenticated user.", + "type": "integer" + }, "permissions": { "description": "The permissions this token has. Possible values are available via the /routes endpoint and consist of the keys of the list from that endpoint. For example, if the token should be able to read all tasks as well as update existing tasks, you should add `{\"tasks\":[\"read_all\",\"update\"]}`.", "allOf": [ @@ -10523,6 +10531,10 @@ "description": "Whether the member is an admin of the team. See the docs for more about what a team admin can do", "type": "boolean" }, + "bot_owner_id": { + "description": "BotOwnerID is the ID of the owning (human) user if this user is a bot.\nA non-zero value means this user is a bot and cannot authenticate via password.", + "type": "integer" + }, "created": { "description": "A timestamp when this task was created. You cannot change this value.", "type": "string" @@ -10613,6 +10625,10 @@ "models.UserWithPermission": { "type": "object", "properties": { + "bot_owner_id": { + "description": "BotOwnerID is the ID of the owning (human) user if this user is a bot.\nA non-zero value means this user is a bot and cannot authenticate via password.", + "type": "integer" + }, "created": { "description": "A timestamp when this task was created. You cannot change this value.", "type": "string" @@ -10881,6 +10897,10 @@ "user.User": { "type": "object", "properties": { + "bot_owner_id": { + "description": "BotOwnerID is the ID of the owning (human) user if this user is a bot.\nA non-zero value means this user is a bot and cannot authenticate via password.", + "type": "integer" + }, "created": { "description": "A timestamp when this task was created. You cannot change this value.", "type": "string" @@ -11058,6 +11078,10 @@ "auth_provider": { "type": "string" }, + "bot_owner_id": { + "description": "BotOwnerID is the ID of the owning (human) user if this user is a bot.\nA non-zero value means this user is a bot and cannot authenticate via password.", + "type": "integer" + }, "created": { "description": "A timestamp when this task was created. You cannot change this value.", "type": "string" @@ -11169,6 +11193,9 @@ "type": "string" } }, + "bot_users_enabled": { + "type": "boolean" + }, "caldav_enabled": { "type": "boolean" }, diff --git a/pkg/swagger/swagger.yaml b/pkg/swagger/swagger.yaml index 6d0b62a65..f186de3f1 100644 --- a/pkg/swagger/swagger.yaml +++ b/pkg/swagger/swagger.yaml @@ -82,6 +82,11 @@ definitions: properties: auth_provider: type: string + bot_owner_id: + description: |- + BotOwnerID is the ID of the owning (human) user if this user is a bot. + A non-zero value means this user is a bot and cannot authenticate via password. + type: integer created: description: A timestamp when this task was created. You cannot change this value. @@ -328,6 +333,11 @@ definitions: id: description: The unique, numeric id of this api key. type: integer + owner_id: + description: |- + The user ID of the token owner. When creating a token for a bot user, set this + to the bot's ID. If omitted, defaults to the authenticated user. + type: integer permissions: allOf: - $ref: '#/definitions/models.APIPermissions' @@ -1247,6 +1257,11 @@ definitions: description: Whether the member is an admin of the team. See the docs for more about what a team admin can do type: boolean + bot_owner_id: + description: |- + BotOwnerID is the ID of the owning (human) user if this user is a bot. + A non-zero value means this user is a bot and cannot authenticate via password. + type: integer created: description: A timestamp when this task was created. You cannot change this value. @@ -1318,6 +1333,11 @@ definitions: type: object models.UserWithPermission: properties: + bot_owner_id: + description: |- + BotOwnerID is the ID of the owning (human) user if this user is a bot. + A non-zero value means this user is a bot and cannot authenticate via password. + type: integer created: description: A timestamp when this task was created. You cannot change this value. @@ -1520,6 +1540,11 @@ definitions: type: object user.User: properties: + bot_owner_id: + description: |- + BotOwnerID is the ID of the owning (human) user if this user is a bot. + A non-zero value means this user is a bot and cannot authenticate via password. + type: integer created: description: A timestamp when this task was created. You cannot change this value. @@ -1664,6 +1689,11 @@ definitions: properties: auth_provider: type: string + bot_owner_id: + description: |- + BotOwnerID is the ID of the owning (human) user if this user is a bot. + A non-zero value means this user is a bot and cannot authenticate via password. + type: integer created: description: A timestamp when this task was created. You cannot change this value. @@ -1741,6 +1771,8 @@ definitions: items: type: string type: array + bot_users_enabled: + type: boolean caldav_enabled: type: boolean demo_mode_enabled: