diff --git a/specs/openapi.json b/specs/openapi.json index 157e03c..fec930c 100644 --- a/specs/openapi.json +++ b/specs/openapi.json @@ -8548,56 +8548,7 @@ "content": { "application/json": { "schema": { - "type": "object", - "properties": { - "name": { - "type": [ - "string", - "null" - ], - "maxLength": 100 - }, - "permissions": { - "type": [ - "integer", - "null" - ] - }, - "color": { - "type": [ - "integer", - "null" - ], - "minimum": 0, - "maximum": 16777215 - }, - "hoist": { - "type": [ - "boolean", - "null" - ] - }, - "mentionable": { - "type": [ - "boolean", - "null" - ] - }, - "icon": { - "type": [ - "string", - "null" - ], - "contentEncoding": "base64" - }, - "unicode_emoji": { - "type": [ - "string", - "null" - ], - "maxLength": 100 - } - } + "$ref": "#/components/schemas/CreateRoleRequest" } } }, @@ -8652,26 +8603,7 @@ "schema": { "type": "array", "items": { - "type": "object", - "properties": { - "id": { - "oneOf": [ - { - "type": "null" - }, - { - "$ref": "#/components/schemas/SnowflakeType" - } - ] - }, - "position": { - "type": [ - "integer", - "null" - ], - "format": "int32" - } - } + "$ref": "#/components/schemas/UpdateRolePositionsRequest" } } } @@ -8827,56 +8759,7 @@ "content": { "application/json": { "schema": { - "type": "object", - "properties": { - "name": { - "type": [ - "string", - "null" - ], - "maxLength": 100 - }, - "permissions": { - "type": [ - "integer", - "null" - ] - }, - "color": { - "type": [ - "integer", - "null" - ], - "minimum": 0, - "maximum": 16777215 - }, - "hoist": { - "type": [ - "boolean", - "null" - ] - }, - "mentionable": { - "type": [ - "boolean", - "null" - ] - }, - "icon": { - "type": [ - "string", - "null" - ], - "contentEncoding": "base64" - }, - "unicode_emoji": { - "type": [ - "string", - "null" - ], - "maxLength": 100 - } - } + "$ref": "#/components/schemas/UpdateRoleRequestPartial" } } }, @@ -21661,6 +21544,58 @@ } } }, + "CreateRoleRequest": { + "type": "object", + "properties": { + "name": { + "type": [ + "string", + "null" + ], + "maxLength": 100 + }, + "permissions": { + "type": [ + "integer", + "null" + ] + }, + "color": { + "type": [ + "integer", + "null" + ], + "minimum": 0, + "maximum": 16777215 + }, + "hoist": { + "type": [ + "boolean", + "null" + ] + }, + "mentionable": { + "type": [ + "boolean", + "null" + ] + }, + "icon": { + "type": [ + "string", + "null" + ], + "contentEncoding": "base64" + }, + "unicode_emoji": { + "type": [ + "string", + "null" + ], + "maxLength": 100 + } + } + }, "CreateTextThreadWithMessageRequest": { "type": "object", "properties": { @@ -36461,6 +36396,80 @@ "id" ] }, + "UpdateRolePositionsRequest": { + "type": "object", + "properties": { + "id": { + "oneOf": [ + { + "type": "null" + }, + { + "$ref": "#/components/schemas/SnowflakeType" + } + ] + }, + "position": { + "type": [ + "integer", + "null" + ], + "format": "int32" + } + } + }, + "UpdateRoleRequestPartial": { + "type": "object", + "properties": { + "name": { + "type": [ + "string", + "null" + ], + "maxLength": 100 + }, + "permissions": { + "type": [ + "integer", + "null" + ] + }, + "color": { + "type": [ + "integer", + "null" + ], + "minimum": 0, + "maximum": 16777215 + }, + "hoist": { + "type": [ + "boolean", + "null" + ] + }, + "mentionable": { + "type": [ + "boolean", + "null" + ] + }, + "icon": { + "type": [ + "string", + "null" + ], + "contentEncoding": "base64" + }, + "unicode_emoji": { + "type": [ + "string", + "null" + ], + "maxLength": 100 + } + } + }, "UpdateThreadRequestPartial": { "type": "object", "properties": { diff --git a/specs/openapi_preview.json b/specs/openapi_preview.json index 99373a3..456623a 100644 --- a/specs/openapi_preview.json +++ b/specs/openapi_preview.json @@ -8548,56 +8548,7 @@ "content": { "application/json": { "schema": { - "type": "object", - "properties": { - "name": { - "type": [ - "string", - "null" - ], - "maxLength": 100 - }, - "permissions": { - "type": [ - "integer", - "null" - ] - }, - "color": { - "type": [ - "integer", - "null" - ], - "minimum": 0, - "maximum": 16777215 - }, - "hoist": { - "type": [ - "boolean", - "null" - ] - }, - "mentionable": { - "type": [ - "boolean", - "null" - ] - }, - "icon": { - "type": [ - "string", - "null" - ], - "contentEncoding": "base64" - }, - "unicode_emoji": { - "type": [ - "string", - "null" - ], - "maxLength": 100 - } - } + "$ref": "#/components/schemas/CreateRoleRequest" } } }, @@ -8652,26 +8603,7 @@ "schema": { "type": "array", "items": { - "type": "object", - "properties": { - "id": { - "oneOf": [ - { - "type": "null" - }, - { - "$ref": "#/components/schemas/SnowflakeType" - } - ] - }, - "position": { - "type": [ - "integer", - "null" - ], - "format": "int32" - } - } + "$ref": "#/components/schemas/UpdateRolePositionsRequest" } } } @@ -8827,56 +8759,7 @@ "content": { "application/json": { "schema": { - "type": "object", - "properties": { - "name": { - "type": [ - "string", - "null" - ], - "maxLength": 100 - }, - "permissions": { - "type": [ - "integer", - "null" - ] - }, - "color": { - "type": [ - "integer", - "null" - ], - "minimum": 0, - "maximum": 16777215 - }, - "hoist": { - "type": [ - "boolean", - "null" - ] - }, - "mentionable": { - "type": [ - "boolean", - "null" - ] - }, - "icon": { - "type": [ - "string", - "null" - ], - "contentEncoding": "base64" - }, - "unicode_emoji": { - "type": [ - "string", - "null" - ], - "maxLength": 100 - } - } + "$ref": "#/components/schemas/UpdateRoleRequestPartial" } } }, @@ -21701,6 +21584,58 @@ } } }, + "CreateRoleRequest": { + "type": "object", + "properties": { + "name": { + "type": [ + "string", + "null" + ], + "maxLength": 100 + }, + "permissions": { + "type": [ + "integer", + "null" + ] + }, + "color": { + "type": [ + "integer", + "null" + ], + "minimum": 0, + "maximum": 16777215 + }, + "hoist": { + "type": [ + "boolean", + "null" + ] + }, + "mentionable": { + "type": [ + "boolean", + "null" + ] + }, + "icon": { + "type": [ + "string", + "null" + ], + "contentEncoding": "base64" + }, + "unicode_emoji": { + "type": [ + "string", + "null" + ], + "maxLength": 100 + } + } + }, "CreateTextThreadWithMessageRequest": { "type": "object", "properties": { @@ -36894,6 +36829,80 @@ "id" ] }, + "UpdateRolePositionsRequest": { + "type": "object", + "properties": { + "id": { + "oneOf": [ + { + "type": "null" + }, + { + "$ref": "#/components/schemas/SnowflakeType" + } + ] + }, + "position": { + "type": [ + "integer", + "null" + ], + "format": "int32" + } + } + }, + "UpdateRoleRequestPartial": { + "type": "object", + "properties": { + "name": { + "type": [ + "string", + "null" + ], + "maxLength": 100 + }, + "permissions": { + "type": [ + "integer", + "null" + ] + }, + "color": { + "type": [ + "integer", + "null" + ], + "minimum": 0, + "maximum": 16777215 + }, + "hoist": { + "type": [ + "boolean", + "null" + ] + }, + "mentionable": { + "type": [ + "boolean", + "null" + ] + }, + "icon": { + "type": [ + "string", + "null" + ], + "contentEncoding": "base64" + }, + "unicode_emoji": { + "type": [ + "string", + "null" + ], + "maxLength": 100 + } + } + }, "UpdateThreadRequestPartial": { "type": "object", "properties": {