mirror of
https://github.com/stoatchat/javascript-client-api.git
synced 2026-07-16 05:31:52 -04:00
chore: bump to 0.5.5
This commit is contained in:
+345
-9
@@ -13,7 +13,7 @@
|
||||
"name": "AGPLv3",
|
||||
"url": "https://github.com/revoltchat/delta/blob/master/LICENSE"
|
||||
},
|
||||
"version": "0.5.4"
|
||||
"version": "0.5.5"
|
||||
},
|
||||
"servers": [
|
||||
{
|
||||
@@ -2096,6 +2096,184 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"/channels/{target}/messages/{msg}/reactions/{emoji}": {
|
||||
"put": {
|
||||
"tags": [
|
||||
"Interactions"
|
||||
],
|
||||
"summary": "Add Reaction to Message",
|
||||
"description": "React to a given message.",
|
||||
"operationId": "message_react_react_message",
|
||||
"parameters": [
|
||||
{
|
||||
"name": "target",
|
||||
"in": "path",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/Id"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "msg",
|
||||
"in": "path",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/Id"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "emoji",
|
||||
"in": "path",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/Id"
|
||||
}
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"default": {
|
||||
"description": "An error occurred.",
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/Error"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"204": {
|
||||
"description": "Success"
|
||||
}
|
||||
},
|
||||
"security": [
|
||||
{
|
||||
"Session Token": []
|
||||
}
|
||||
]
|
||||
},
|
||||
"delete": {
|
||||
"tags": [
|
||||
"Interactions"
|
||||
],
|
||||
"summary": "Remove Reaction(s) to Message",
|
||||
"description": "Remove your own, someone else's or all of a given reaction.\n\nRequires `ManageMessages` if changing others' reactions.",
|
||||
"operationId": "message_unreact_unreact_message",
|
||||
"parameters": [
|
||||
{
|
||||
"name": "target",
|
||||
"in": "path",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/Id"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "msg",
|
||||
"in": "path",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/Id"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "emoji",
|
||||
"in": "path",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/Id"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "user_id",
|
||||
"in": "query",
|
||||
"description": "Remove a specific user's reaction",
|
||||
"schema": {
|
||||
"description": "Remove a specific user's reaction",
|
||||
"type": "string",
|
||||
"nullable": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "remove_all",
|
||||
"in": "query",
|
||||
"description": "Remove all reactions",
|
||||
"schema": {
|
||||
"description": "Remove all reactions",
|
||||
"type": "boolean",
|
||||
"nullable": true
|
||||
}
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"default": {
|
||||
"description": "An error occurred.",
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/Error"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"204": {
|
||||
"description": "Success"
|
||||
}
|
||||
},
|
||||
"security": [
|
||||
{
|
||||
"Session Token": []
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"/channels/{target}/messages/{msg}/reactions": {
|
||||
"delete": {
|
||||
"tags": [
|
||||
"Interactions"
|
||||
],
|
||||
"summary": "Remove All Reactions from Message",
|
||||
"description": "Remove your own, someone else's or all of a given reaction.\n\nRequires `ManageMessages` permission.",
|
||||
"operationId": "message_clear_reactions_clear_reactions",
|
||||
"parameters": [
|
||||
{
|
||||
"name": "target",
|
||||
"in": "path",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/Id"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "msg",
|
||||
"in": "path",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/Id"
|
||||
}
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"default": {
|
||||
"description": "An error occurred.",
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/Error"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"204": {
|
||||
"description": "Success"
|
||||
}
|
||||
},
|
||||
"security": [
|
||||
{
|
||||
"Session Token": []
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"/servers/create": {
|
||||
"post": {
|
||||
"tags": [
|
||||
@@ -4839,6 +5017,7 @@
|
||||
"SendEmbeds",
|
||||
"UploadFiles",
|
||||
"Masquerade",
|
||||
"React",
|
||||
"Connect",
|
||||
"Speak",
|
||||
"Video",
|
||||
@@ -5374,6 +5553,20 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"required": [
|
||||
"type"
|
||||
],
|
||||
"properties": {
|
||||
"type": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"NotOwner"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"required": [
|
||||
@@ -6554,6 +6747,11 @@
|
||||
"minLength": 0,
|
||||
"nullable": true
|
||||
},
|
||||
"owner": {
|
||||
"description": "Group owner",
|
||||
"type": "string",
|
||||
"nullable": true
|
||||
},
|
||||
"icon": {
|
||||
"description": "Icon\n\nProvide an Autumn attachment Id.",
|
||||
"type": "string",
|
||||
@@ -6736,6 +6934,25 @@
|
||||
},
|
||||
"nullable": true
|
||||
},
|
||||
"reactions": {
|
||||
"description": "Hashmap of emoji IDs to array of user IDs",
|
||||
"type": "object",
|
||||
"additionalProperties": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"uniqueItems": true
|
||||
}
|
||||
},
|
||||
"interactions": {
|
||||
"description": "Information about how this message should be interacted with",
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/Interactions"
|
||||
}
|
||||
]
|
||||
},
|
||||
"masquerade": {
|
||||
"description": "Name and / or avatar overrides for this message",
|
||||
"allOf": [
|
||||
@@ -6941,6 +7158,28 @@
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"required": [
|
||||
"from",
|
||||
"to",
|
||||
"type"
|
||||
],
|
||||
"properties": {
|
||||
"type": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"channel_ownership_changed"
|
||||
]
|
||||
},
|
||||
"from": {
|
||||
"type": "string"
|
||||
},
|
||||
"to": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -7424,6 +7663,25 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"Interactions": {
|
||||
"description": "Information to guide interactions on this message",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"reactions": {
|
||||
"description": "Reactions which should always appear and be distinct",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"uniqueItems": true,
|
||||
"nullable": true
|
||||
},
|
||||
"restrict_reactions": {
|
||||
"description": "Whether reactions should be restricted to the given list",
|
||||
"type": "boolean"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Masquerade": {
|
||||
"description": "Name and / or avatar override information",
|
||||
"type": "object",
|
||||
@@ -7441,6 +7699,13 @@
|
||||
"maxLength": 128,
|
||||
"minLength": 1,
|
||||
"nullable": true
|
||||
},
|
||||
"colour": {
|
||||
"description": "Replace the display role colour shown on this message\n\nMust have `ManageRole` permission to use\n\nThis can be any valid CSS colour",
|
||||
"type": "string",
|
||||
"maxLength": 32,
|
||||
"minLength": 1,
|
||||
"nullable": true
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -7497,6 +7762,15 @@
|
||||
}
|
||||
],
|
||||
"nullable": true
|
||||
},
|
||||
"interactions": {
|
||||
"description": "Information about how this message should be interacted with",
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/Interactions"
|
||||
}
|
||||
],
|
||||
"nullable": true
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -7551,8 +7825,9 @@
|
||||
},
|
||||
"colour": {
|
||||
"type": "string",
|
||||
"maxLength": 64,
|
||||
"maxLength": 128,
|
||||
"minLength": 1,
|
||||
"pattern": "(?i)^(?:[a-z ]+|var\\(--[a-z\\d-]+\\)|rgba?\\([\\d, ]+\\)|#[a-f0-9]+|(repeating-)?(linear|conic|radial)-gradient\\(([a-z ]+|var\\(--[a-z\\d-]+\\)|rgba?\\([\\d, ]+\\)|#[a-f0-9]+|\\d+deg)([ ]+(\\d{1,3}%|0))?(,[ ]*([a-z ]+|var\\(--[a-z\\d-]+\\)|rgba?\\([\\d, ]+\\)|#[a-f0-9]+)([ ]+(\\d{1,3}%|0))?)+\\))$",
|
||||
"nullable": true
|
||||
}
|
||||
}
|
||||
@@ -7604,7 +7879,8 @@
|
||||
"description": "Representation of a member of a server on Revolt",
|
||||
"type": "object",
|
||||
"required": [
|
||||
"_id"
|
||||
"_id",
|
||||
"joined_at"
|
||||
],
|
||||
"properties": {
|
||||
"_id": {
|
||||
@@ -7615,6 +7891,14 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"joined_at": {
|
||||
"description": "Time at which this user joined the server",
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/ISO8601 Timestamp"
|
||||
}
|
||||
]
|
||||
},
|
||||
"nickname": {
|
||||
"description": "Member's nickname",
|
||||
"type": "string",
|
||||
@@ -7634,7 +7918,15 @@
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
}
|
||||
},
|
||||
"timeout": {
|
||||
"description": "Timestamp this member is timed out until",
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/ISO8601 Timestamp"
|
||||
}
|
||||
],
|
||||
"nullable": true
|
||||
}
|
||||
}
|
||||
@@ -8193,6 +8485,11 @@
|
||||
],
|
||||
"nullable": true
|
||||
},
|
||||
"discoverable": {
|
||||
"description": "Whether this server is public and should show up on [Revolt Discover](https://rvlt.gg)",
|
||||
"type": "boolean",
|
||||
"nullable": true
|
||||
},
|
||||
"analytics": {
|
||||
"description": "Whether analytics should be collected for this server\n\nMust be enabled in order to show up on [Revolt Discover](https://rvlt.gg).",
|
||||
"type": "boolean",
|
||||
@@ -8313,6 +8610,15 @@
|
||||
},
|
||||
"nullable": true
|
||||
},
|
||||
"timeout": {
|
||||
"description": "Timestamp this member is timed out until",
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/ISO8601 Timestamp"
|
||||
}
|
||||
],
|
||||
"nullable": true
|
||||
},
|
||||
"remove": {
|
||||
"description": "Fields to remove from channel object",
|
||||
"type": "array",
|
||||
@@ -8330,7 +8636,8 @@
|
||||
"enum": [
|
||||
"Nickname",
|
||||
"Avatar",
|
||||
"Roles"
|
||||
"Roles",
|
||||
"Timeout"
|
||||
]
|
||||
},
|
||||
"ServerBan": {
|
||||
@@ -8477,8 +8784,9 @@
|
||||
"colour": {
|
||||
"description": "Role colour",
|
||||
"type": "string",
|
||||
"maxLength": 32,
|
||||
"maxLength": 128,
|
||||
"minLength": 1,
|
||||
"pattern": "(?i)^(?:[a-z ]+|var\\(--[a-z\\d-]+\\)|rgba?\\([\\d, ]+\\)|#[a-f0-9]+|(repeating-)?(linear|conic|radial)-gradient\\(([a-z ]+|var\\(--[a-z\\d-]+\\)|rgba?\\([\\d, ]+\\)|#[a-f0-9]+|\\d+deg)([ ]+(\\d{1,3}%|0))?(,[ ]*([a-z ]+|var\\(--[a-z\\d-]+\\)|rgba?\\([\\d, ]+\\)|#[a-f0-9]+)([ ]+(\\d{1,3}%|0))?)+\\))$",
|
||||
"nullable": true
|
||||
},
|
||||
"hoist": {
|
||||
@@ -8547,7 +8855,6 @@
|
||||
"type": "object",
|
||||
"required": [
|
||||
"_id",
|
||||
"animated",
|
||||
"creator_id",
|
||||
"name",
|
||||
"parent"
|
||||
@@ -8576,6 +8883,10 @@
|
||||
"animated": {
|
||||
"description": "Whether the emoji is animated",
|
||||
"type": "boolean"
|
||||
},
|
||||
"nsfw": {
|
||||
"description": "Whether the emoji is marked as nsfw",
|
||||
"type": "boolean"
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -8599,6 +8910,20 @@
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"required": [
|
||||
"type"
|
||||
],
|
||||
"properties": {
|
||||
"type": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"Detached"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -8788,10 +9113,20 @@
|
||||
"type": "string",
|
||||
"maxLength": 32,
|
||||
"minLength": 1,
|
||||
"pattern": "^[a-zA-Z0-9_]+$"
|
||||
"pattern": "^[a-z0-9_]+$"
|
||||
},
|
||||
"parent": {
|
||||
"$ref": "#/components/schemas/EmojiParent"
|
||||
"description": "Parent information",
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/EmojiParent"
|
||||
}
|
||||
]
|
||||
},
|
||||
"nsfw": {
|
||||
"description": "Whether the emoji is mature",
|
||||
"default": false,
|
||||
"type": "boolean"
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -9700,6 +10035,7 @@
|
||||
"Channel Invites",
|
||||
"Channel Permissions",
|
||||
"Messaging",
|
||||
"Interactions",
|
||||
"Groups",
|
||||
"Voice"
|
||||
]
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "revolt-api",
|
||||
"version": "0.5.4",
|
||||
"version": "0.5.5",
|
||||
"description": "Revolt API Library",
|
||||
"main": "dist/index.js",
|
||||
"module": "esm/index.js",
|
||||
|
||||
+2
-2
@@ -1,3 +1,3 @@
|
||||
// This file was auto-generated by @insertish/oapi!
|
||||
export const pathResolve = {"1":[[""]],"2":[["users","@me"],["users",["{target}"]],["users","dms"],["users","friend"],["bots","create"],["bots",["{target}"]],["bots","@me"],["channels",["{target}"]],["channels","create"],["servers","create"],["servers",["{target}"]],["invites",["{target}"]],["onboard","hello"],["onboard","complete"],["push","subscribe"],["push","unsubscribe"],["sync","unreads"]],"3":[["users","@me","username"],["users",["{target}"],"default_avatar"],["users",["{target}"],"profile"],["users",["{target}"],"dm"],["users",["{target}"],"mutual"],["users",["{target}"],"friend"],["users",["{target}"],"block"],["bots",["{target}"],"invite"],["channels",["{target}"],"members"],["channels",["{target}"],"invites"],["channels",["{target}"],"messages"],["channels",["{target}"],"search"],["channels",["{target}"],"join_call"],["servers",["{target}"],"ack"],["servers",["{target}"],"channels"],["servers",["{target}"],"members"],["servers",["{target}"],"bans"],["servers",["{target}"],"invites"],["servers",["{target}"],"roles"],["servers",["{target}"],"emojis"],["custom","emoji",["{id}"]],["auth","account","create"],["auth","account","reverify"],["auth","account","delete"],["auth","account",""],["auth","account","disable"],["auth","account","reset_password"],["auth","session","login"],["auth","session","logout"],["auth","session","all"],["auth","session",["{id}"]],["auth","mfa","ticket"],["auth","mfa",""],["auth","mfa","recovery"],["auth","mfa","methods"],["auth","mfa","totp"],["sync","settings","fetch"],["sync","settings","set"]],"4":[["channels",["{target}"],"ack",["{message}"]],["channels",["{_target}"],"messages","stale"],["channels",["{target}"],"messages",["{msg}"]],["channels",["{target}"],"messages","bulk"],["channels",["{target}"],"recipients",["{member}"]],["channels",["{target}"],"permissions",["{role_id}"]],["channels",["{target}"],"permissions","default"],["servers",["{target}"],"members",["{member}"]],["servers",["{server}"],"members",["{target}"]],["servers",["{server}"],"bans",["{target}"]],["servers",["{target}"],"roles",["{role_id}"]],["servers",["{target}"],"permissions",["{role_id}"]],["servers",["{target}"],"permissions","default"],["auth","account","change","password"],["auth","account","change","email"],["auth","account","verify",["{code}"]]]};
|
||||
export const queryParams = {"/":{"get":[]},"/users/@me":{"get":[],"patch":[]},"/users/{target}":{"get":[]},"/users/@me/username":{"patch":[]},"/users/{target}/default_avatar":{"get":[]},"/users/{target}/profile":{"get":[]},"/users/dms":{"get":[]},"/users/{target}/dm":{"get":[]},"/users/{target}/mutual":{"get":[]},"/users/{target}/friend":{"put":[],"delete":[]},"/users/{target}/block":{"put":[],"delete":[]},"/users/friend":{"post":[]},"/bots/create":{"post":[]},"/bots/{target}/invite":{"get":[],"post":[]},"/bots/{target}":{"get":[],"delete":[],"patch":[]},"/bots/@me":{"get":[]},"/channels/{target}/ack/{message}":{"put":[]},"/channels/{target}":{"get":[],"delete":[],"patch":[]},"/channels/{target}/members":{"get":[]},"/channels/{target}/invites":{"post":[]},"/channels/{target}/messages":{"get":["limit","before","after","sort","nearby","include_users"],"post":[]},"/channels/{target}/search":{"post":[]},"/channels/{_target}/messages/stale":{"post":[]},"/channels/{target}/messages/{msg}":{"get":[],"delete":[],"patch":[]},"/channels/{target}/messages/bulk":{"delete":[]},"/channels/create":{"post":[]},"/channels/{target}/recipients/{member}":{"put":[],"delete":[]},"/channels/{target}/join_call":{"post":[]},"/channels/{target}/permissions/{role_id}":{"put":[]},"/channels/{target}/permissions/default":{"put":[]},"/servers/create":{"post":[]},"/servers/{target}":{"get":[],"delete":[],"patch":[]},"/servers/{target}/ack":{"put":[]},"/servers/{target}/channels":{"post":[]},"/servers/{target}/members":{"get":["exclude_offline"]},"/servers/{target}/members/{member}":{"get":[],"delete":[]},"/servers/{server}/members/{target}":{"patch":[]},"/servers/{server}/bans/{target}":{"put":[],"delete":[]},"/servers/{target}/bans":{"get":[]},"/servers/{target}/invites":{"get":[]},"/servers/{target}/roles":{"post":[]},"/servers/{target}/roles/{role_id}":{"delete":[],"patch":[]},"/servers/{target}/permissions/{role_id}":{"put":[]},"/servers/{target}/permissions/default":{"put":[]},"/servers/{target}/emojis":{"get":[]},"/invites/{target}":{"get":[],"post":[],"delete":[]},"/custom/emoji/{id}":{"get":[],"put":[],"delete":[]},"/auth/account/create":{"post":[]},"/auth/account/reverify":{"post":[]},"/auth/account/delete":{"put":[],"post":[]},"/auth/account/":{"get":[]},"/auth/account/disable":{"post":[]},"/auth/account/change/password":{"patch":[]},"/auth/account/change/email":{"patch":[]},"/auth/account/verify/{code}":{"post":[]},"/auth/account/reset_password":{"post":[],"patch":[]},"/auth/session/login":{"post":[]},"/auth/session/logout":{"post":[]},"/auth/session/all":{"get":[],"delete":["revoke_self"]},"/auth/session/{id}":{"delete":[],"patch":[]},"/auth/mfa/ticket":{"put":[]},"/auth/mfa/":{"get":[]},"/auth/mfa/recovery":{"post":[],"patch":[]},"/auth/mfa/methods":{"get":[]},"/auth/mfa/totp":{"put":[],"post":[],"delete":[]},"/onboard/hello":{"get":[]},"/onboard/complete":{"post":[]},"/push/subscribe":{"post":[]},"/push/unsubscribe":{"post":[]},"/sync/settings/fetch":{"post":[]},"/sync/settings/set":{"post":["timestamp"]},"/sync/unreads":{"get":[]}};
|
||||
export const pathResolve = {"1":[[""]],"2":[["users","@me"],["users",["{target}"]],["users","dms"],["users","friend"],["bots","create"],["bots",["{target}"]],["bots","@me"],["channels",["{target}"]],["channels","create"],["servers","create"],["servers",["{target}"]],["invites",["{target}"]],["onboard","hello"],["onboard","complete"],["push","subscribe"],["push","unsubscribe"],["sync","unreads"]],"3":[["users","@me","username"],["users",["{target}"],"default_avatar"],["users",["{target}"],"profile"],["users",["{target}"],"dm"],["users",["{target}"],"mutual"],["users",["{target}"],"friend"],["users",["{target}"],"block"],["bots",["{target}"],"invite"],["channels",["{target}"],"members"],["channels",["{target}"],"invites"],["channels",["{target}"],"messages"],["channels",["{target}"],"search"],["channels",["{target}"],"join_call"],["servers",["{target}"],"ack"],["servers",["{target}"],"channels"],["servers",["{target}"],"members"],["servers",["{target}"],"bans"],["servers",["{target}"],"invites"],["servers",["{target}"],"roles"],["servers",["{target}"],"emojis"],["custom","emoji",["{id}"]],["auth","account","create"],["auth","account","reverify"],["auth","account","delete"],["auth","account",""],["auth","account","disable"],["auth","account","reset_password"],["auth","session","login"],["auth","session","logout"],["auth","session","all"],["auth","session",["{id}"]],["auth","mfa","ticket"],["auth","mfa",""],["auth","mfa","recovery"],["auth","mfa","methods"],["auth","mfa","totp"],["sync","settings","fetch"],["sync","settings","set"]],"4":[["channels",["{target}"],"ack",["{message}"]],["channels",["{_target}"],"messages","stale"],["channels",["{target}"],"messages",["{msg}"]],["channels",["{target}"],"messages","bulk"],["channels",["{target}"],"recipients",["{member}"]],["channels",["{target}"],"permissions",["{role_id}"]],["channels",["{target}"],"permissions","default"],["servers",["{target}"],"members",["{member}"]],["servers",["{server}"],"members",["{target}"]],["servers",["{server}"],"bans",["{target}"]],["servers",["{target}"],"roles",["{role_id}"]],["servers",["{target}"],"permissions",["{role_id}"]],["servers",["{target}"],"permissions","default"],["auth","account","change","password"],["auth","account","change","email"],["auth","account","verify",["{code}"]]],"5":[["channels",["{target}"],"messages",["{msg}"],"reactions"]],"6":[["channels",["{target}"],"messages",["{msg}"],"reactions",["{emoji}"]]]};
|
||||
export const queryParams = {"/":{"get":[]},"/users/@me":{"get":[],"patch":[]},"/users/{target}":{"get":[]},"/users/@me/username":{"patch":[]},"/users/{target}/default_avatar":{"get":[]},"/users/{target}/profile":{"get":[]},"/users/dms":{"get":[]},"/users/{target}/dm":{"get":[]},"/users/{target}/mutual":{"get":[]},"/users/{target}/friend":{"put":[],"delete":[]},"/users/{target}/block":{"put":[],"delete":[]},"/users/friend":{"post":[]},"/bots/create":{"post":[]},"/bots/{target}/invite":{"get":[],"post":[]},"/bots/{target}":{"get":[],"delete":[],"patch":[]},"/bots/@me":{"get":[]},"/channels/{target}/ack/{message}":{"put":[]},"/channels/{target}":{"get":[],"delete":[],"patch":[]},"/channels/{target}/members":{"get":[]},"/channels/{target}/invites":{"post":[]},"/channels/{target}/messages":{"get":["limit","before","after","sort","nearby","include_users"],"post":[]},"/channels/{target}/search":{"post":[]},"/channels/{_target}/messages/stale":{"post":[]},"/channels/{target}/messages/{msg}":{"get":[],"delete":[],"patch":[]},"/channels/{target}/messages/bulk":{"delete":[]},"/channels/create":{"post":[]},"/channels/{target}/recipients/{member}":{"put":[],"delete":[]},"/channels/{target}/join_call":{"post":[]},"/channels/{target}/permissions/{role_id}":{"put":[]},"/channels/{target}/permissions/default":{"put":[]},"/channels/{target}/messages/{msg}/reactions/{emoji}":{"put":[],"delete":["user_id","remove_all"]},"/channels/{target}/messages/{msg}/reactions":{"delete":[]},"/servers/create":{"post":[]},"/servers/{target}":{"get":[],"delete":[],"patch":[]},"/servers/{target}/ack":{"put":[]},"/servers/{target}/channels":{"post":[]},"/servers/{target}/members":{"get":["exclude_offline"]},"/servers/{target}/members/{member}":{"get":[],"delete":[]},"/servers/{server}/members/{target}":{"patch":[]},"/servers/{server}/bans/{target}":{"put":[],"delete":[]},"/servers/{target}/bans":{"get":[]},"/servers/{target}/invites":{"get":[]},"/servers/{target}/roles":{"post":[]},"/servers/{target}/roles/{role_id}":{"delete":[],"patch":[]},"/servers/{target}/permissions/{role_id}":{"put":[]},"/servers/{target}/permissions/default":{"put":[]},"/servers/{target}/emojis":{"get":[]},"/invites/{target}":{"get":[],"post":[],"delete":[]},"/custom/emoji/{id}":{"get":[],"put":[],"delete":[]},"/auth/account/create":{"post":[]},"/auth/account/reverify":{"post":[]},"/auth/account/delete":{"put":[],"post":[]},"/auth/account/":{"get":[]},"/auth/account/disable":{"post":[]},"/auth/account/change/password":{"patch":[]},"/auth/account/change/email":{"patch":[]},"/auth/account/verify/{code}":{"post":[]},"/auth/account/reset_password":{"post":[],"patch":[]},"/auth/session/login":{"post":[]},"/auth/session/logout":{"post":[]},"/auth/session/all":{"get":[],"delete":["revoke_self"]},"/auth/session/{id}":{"delete":[],"patch":[]},"/auth/mfa/ticket":{"put":[]},"/auth/mfa/":{"get":[]},"/auth/mfa/recovery":{"post":[],"patch":[]},"/auth/mfa/methods":{"get":[]},"/auth/mfa/totp":{"put":[],"post":[],"delete":[]},"/onboard/hello":{"get":[]},"/onboard/complete":{"post":[]},"/push/subscribe":{"post":[]},"/push/unsubscribe":{"post":[]},"/sync/settings/fetch":{"post":[]},"/sync/settings/set":{"post":["timestamp"]},"/sync/unreads":{"get":[]}};
|
||||
@@ -76,6 +76,12 @@ export type APIRoutes =
|
||||
| { method: 'put', path: '-/channels/{target}/permissions/{role_id}', parts: 4, params: paths['/channels/{target}/permissions/{role_id}']['put']['requestBody']['content']['application/json'], response: paths['/channels/{target}/permissions/{role_id}']['put']['responses']['200']['content']['application/json'] }
|
||||
| { method: 'put', path: `/channels/${string}/permissions/default`, parts: 4, params: paths['/channels/{target}/permissions/default']['put']['requestBody']['content']['application/json'], response: paths['/channels/{target}/permissions/default']['put']['responses']['200']['content']['application/json'] }
|
||||
| { method: 'put', path: '-/channels/{target}/permissions/default', parts: 4, params: paths['/channels/{target}/permissions/default']['put']['requestBody']['content']['application/json'], response: paths['/channels/{target}/permissions/default']['put']['responses']['200']['content']['application/json'] }
|
||||
| { method: 'put', path: `/channels/${string}/messages/${string}/reactions/${string}`, parts: 6, params: undefined, response: undefined }
|
||||
| { method: 'put', path: '-/channels/{target}/messages/{msg}/reactions/{emoji}', parts: 6, params: undefined, response: undefined }
|
||||
| { method: 'delete', path: `/channels/${string}/messages/${string}/reactions/${string}`, parts: 6, params: paths['/channels/{target}/messages/{msg}/reactions/{emoji}']['delete']['parameters']['query'], response: undefined }
|
||||
| { method: 'delete', path: '-/channels/{target}/messages/{msg}/reactions/{emoji}', parts: 6, params: paths['/channels/{target}/messages/{msg}/reactions/{emoji}']['delete']['parameters']['query'], response: undefined }
|
||||
| { method: 'delete', path: `/channels/${string}/messages/${string}/reactions`, parts: 5, params: undefined, response: undefined }
|
||||
| { method: 'delete', path: '-/channels/{target}/messages/{msg}/reactions', parts: 5, params: undefined, response: undefined }
|
||||
| { method: 'post', path: `/servers/create`, parts: 2, params: paths['/servers/create']['post']['requestBody']['content']['application/json'], response: paths['/servers/create']['post']['responses']['200']['content']['application/json'] }
|
||||
| { method: 'get', path: `/servers/${string}`, parts: 2, params: undefined, response: paths['/servers/{target}']['get']['responses']['200']['content']['application/json'] }
|
||||
| { method: 'get', path: '-/servers/{target}', parts: 2, params: undefined, response: paths['/servers/{target}']['get']['responses']['200']['content']['application/json'] }
|
||||
|
||||
+151
-8
@@ -180,6 +180,24 @@ export interface paths {
|
||||
*/
|
||||
put: operations["permissions_set_default_req"];
|
||||
};
|
||||
"/channels/{target}/messages/{msg}/reactions/{emoji}": {
|
||||
/** React to a given message. */
|
||||
put: operations["message_react_react_message"];
|
||||
/**
|
||||
* Remove your own, someone else's or all of a given reaction.
|
||||
*
|
||||
* Requires `ManageMessages` if changing others' reactions.
|
||||
*/
|
||||
delete: operations["message_unreact_unreact_message"];
|
||||
};
|
||||
"/channels/{target}/messages/{msg}/reactions": {
|
||||
/**
|
||||
* Remove your own, someone else's or all of a given reaction.
|
||||
*
|
||||
* Requires `ManageMessages` permission.
|
||||
*/
|
||||
delete: operations["message_clear_reactions_clear_reactions"];
|
||||
};
|
||||
"/servers/create": {
|
||||
/** Create a new server. */
|
||||
post: operations["server_create_req"];
|
||||
@@ -472,6 +490,7 @@ export interface components {
|
||||
| "SendEmbeds"
|
||||
| "UploadFiles"
|
||||
| "Masquerade"
|
||||
| "React"
|
||||
| "Connect"
|
||||
| "Speak"
|
||||
| "Video"
|
||||
@@ -636,6 +655,10 @@ export interface components {
|
||||
/** @enum {string} */
|
||||
type: "CannotGiveMissingPermissions";
|
||||
}
|
||||
| {
|
||||
/** @enum {string} */
|
||||
type: "NotOwner";
|
||||
}
|
||||
| {
|
||||
/** @enum {string} */
|
||||
type: "DatabaseError";
|
||||
@@ -1067,6 +1090,8 @@ export interface components {
|
||||
name?: string | null;
|
||||
/** @description Channel description */
|
||||
description?: string | null;
|
||||
/** @description Group owner */
|
||||
owner?: string | null;
|
||||
/**
|
||||
* @description Icon
|
||||
*
|
||||
@@ -1130,6 +1155,10 @@ export interface components {
|
||||
mentions?: string[] | null;
|
||||
/** @description Array of message ids this message is replying to */
|
||||
replies?: string[] | null;
|
||||
/** @description Hashmap of emoji IDs to array of user IDs */
|
||||
reactions?: { [key: string]: string[] };
|
||||
/** @description Information about how this message should be interacted with */
|
||||
interactions?: components["schemas"]["Interactions"];
|
||||
/** @description Name and / or avatar overrides for this message */
|
||||
masquerade?: components["schemas"]["Masquerade"] | null;
|
||||
};
|
||||
@@ -1187,6 +1216,12 @@ export interface components {
|
||||
/** @enum {string} */
|
||||
type: "channel_icon_changed";
|
||||
by: string;
|
||||
}
|
||||
| {
|
||||
/** @enum {string} */
|
||||
type: "channel_ownership_changed";
|
||||
from: string;
|
||||
to: string;
|
||||
};
|
||||
/**
|
||||
* Format: date-time
|
||||
@@ -1370,12 +1405,27 @@ export interface components {
|
||||
*/
|
||||
height: number;
|
||||
};
|
||||
/** @description Information to guide interactions on this message */
|
||||
Interactions: {
|
||||
/** @description Reactions which should always appear and be distinct */
|
||||
reactions?: string[] | null;
|
||||
/** @description Whether reactions should be restricted to the given list */
|
||||
restrict_reactions?: boolean;
|
||||
};
|
||||
/** @description Name and / or avatar override information */
|
||||
Masquerade: {
|
||||
/** @description Replace the display name shown on this message */
|
||||
name?: string | null;
|
||||
/** @description Replace the avatar shown on this message (URL to image file) */
|
||||
avatar?: string | null;
|
||||
/**
|
||||
* @description Replace the display role colour shown on this message
|
||||
*
|
||||
* Must have `ManageRole` permission to use
|
||||
*
|
||||
* This can be any valid CSS colour
|
||||
*/
|
||||
colour?: string | null;
|
||||
};
|
||||
DataMessageSend: {
|
||||
/**
|
||||
@@ -1398,6 +1448,8 @@ export interface components {
|
||||
embeds?: components["schemas"]["SendableEmbed"][] | null;
|
||||
/** @description Masquerade to apply to this message */
|
||||
masquerade?: components["schemas"]["Masquerade"] | null;
|
||||
/** @description Information about how this message should be interacted with */
|
||||
interactions?: components["schemas"]["Interactions"] | null;
|
||||
};
|
||||
/**
|
||||
* Reply
|
||||
@@ -1436,12 +1488,16 @@ export interface components {
|
||||
Member: {
|
||||
/** @description Unique member id */
|
||||
_id: components["schemas"]["MemberCompositeKey"];
|
||||
/** @description Time at which this user joined the server */
|
||||
joined_at: components["schemas"]["ISO8601 Timestamp"];
|
||||
/** @description Member's nickname */
|
||||
nickname?: string | null;
|
||||
/** @description Avatar attachment */
|
||||
avatar?: components["schemas"]["File"] | null;
|
||||
/** @description Member's roles */
|
||||
roles?: string[] | null;
|
||||
roles?: string[];
|
||||
/** @description Timestamp this member is timed out until */
|
||||
timeout?: components["schemas"]["ISO8601 Timestamp"] | null;
|
||||
};
|
||||
/** @description Composite primary key consisting of server and user id */
|
||||
MemberCompositeKey: {
|
||||
@@ -1660,6 +1716,8 @@ export interface components {
|
||||
categories?: components["schemas"]["Category"][] | null;
|
||||
/** @description System message configuration */
|
||||
system_messages?: components["schemas"]["SystemMessageChannels"] | null;
|
||||
/** @description Whether this server is public and should show up on [Revolt Discover](https://rvlt.gg) */
|
||||
discoverable?: boolean | null;
|
||||
/**
|
||||
* @description Whether analytics should be collected for this server
|
||||
*
|
||||
@@ -1716,6 +1774,8 @@ export interface components {
|
||||
avatar?: string | null;
|
||||
/** @description Array of role ids */
|
||||
roles?: string[] | null;
|
||||
/** @description Timestamp this member is timed out until */
|
||||
timeout?: components["schemas"]["ISO8601 Timestamp"] | null;
|
||||
/** @description Fields to remove from channel object */
|
||||
remove?: components["schemas"]["FieldsMember"][] | null;
|
||||
};
|
||||
@@ -1723,7 +1783,7 @@ export interface components {
|
||||
* @description Optional fields on server member object
|
||||
* @enum {string}
|
||||
*/
|
||||
FieldsMember: "Nickname" | "Avatar" | "Roles";
|
||||
FieldsMember: "Nickname" | "Avatar" | "Roles" | "Timeout";
|
||||
/** @description Representation of a server ban on Revolt */
|
||||
ServerBan: {
|
||||
/** @description Unique member id */
|
||||
@@ -1821,14 +1881,21 @@ export interface components {
|
||||
/** @description Emoji name */
|
||||
name: string;
|
||||
/** @description Whether the emoji is animated */
|
||||
animated: boolean;
|
||||
animated?: boolean;
|
||||
/** @description Whether the emoji is marked as nsfw */
|
||||
nsfw?: boolean;
|
||||
};
|
||||
/** @description Information about what owns this emoji */
|
||||
EmojiParent: {
|
||||
/** @enum {string} */
|
||||
type: "Server";
|
||||
id: string;
|
||||
};
|
||||
EmojiParent:
|
||||
| {
|
||||
/** @enum {string} */
|
||||
type: "Server";
|
||||
id: string;
|
||||
}
|
||||
| {
|
||||
/** @enum {string} */
|
||||
type: "Detached";
|
||||
};
|
||||
/** Invite */
|
||||
InviteResponse:
|
||||
| {
|
||||
@@ -1889,7 +1956,10 @@ export interface components {
|
||||
DataCreateEmoji: {
|
||||
/** @description Server name */
|
||||
name: string;
|
||||
/** @description Parent information */
|
||||
parent: components["schemas"]["EmojiParent"];
|
||||
/** @description Whether the emoji is mature */
|
||||
nsfw?: boolean;
|
||||
};
|
||||
/** Error */
|
||||
"RAuth Error":
|
||||
@@ -3109,6 +3179,79 @@ export interface operations {
|
||||
};
|
||||
};
|
||||
};
|
||||
/** React to a given message. */
|
||||
message_react_react_message: {
|
||||
parameters: {
|
||||
path: {
|
||||
target: components["schemas"]["Id"];
|
||||
msg: components["schemas"]["Id"];
|
||||
emoji: components["schemas"]["Id"];
|
||||
};
|
||||
};
|
||||
responses: {
|
||||
/** Success */
|
||||
204: never;
|
||||
/** An error occurred. */
|
||||
default: {
|
||||
content: {
|
||||
"application/json": components["schemas"]["Error"];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
/**
|
||||
* Remove your own, someone else's or all of a given reaction.
|
||||
*
|
||||
* Requires `ManageMessages` if changing others' reactions.
|
||||
*/
|
||||
message_unreact_unreact_message: {
|
||||
parameters: {
|
||||
path: {
|
||||
target: components["schemas"]["Id"];
|
||||
msg: components["schemas"]["Id"];
|
||||
emoji: components["schemas"]["Id"];
|
||||
};
|
||||
query: {
|
||||
/** Remove a specific user's reaction */
|
||||
user_id?: string | null;
|
||||
/** Remove all reactions */
|
||||
remove_all?: boolean | null;
|
||||
};
|
||||
};
|
||||
responses: {
|
||||
/** Success */
|
||||
204: never;
|
||||
/** An error occurred. */
|
||||
default: {
|
||||
content: {
|
||||
"application/json": components["schemas"]["Error"];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
/**
|
||||
* Remove your own, someone else's or all of a given reaction.
|
||||
*
|
||||
* Requires `ManageMessages` permission.
|
||||
*/
|
||||
message_clear_reactions_clear_reactions: {
|
||||
parameters: {
|
||||
path: {
|
||||
target: components["schemas"]["Id"];
|
||||
msg: components["schemas"]["Id"];
|
||||
};
|
||||
};
|
||||
responses: {
|
||||
/** Success */
|
||||
204: never;
|
||||
/** An error occurred. */
|
||||
default: {
|
||||
content: {
|
||||
"application/json": components["schemas"]["Error"];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
/** Create a new server. */
|
||||
server_create_req: {
|
||||
responses: {
|
||||
|
||||
@@ -48,6 +48,7 @@ export type BandcampType = components['schemas']['BandcampType'];
|
||||
export type Image = components['schemas']['Image'];
|
||||
export type ImageSize = components['schemas']['ImageSize'];
|
||||
export type Video = components['schemas']['Video'];
|
||||
export type Interactions = components['schemas']['Interactions'];
|
||||
export type Masquerade = components['schemas']['Masquerade'];
|
||||
export type DataMessageSend = components['schemas']['DataMessageSend'];
|
||||
export type Reply = components['schemas']['Reply'];
|
||||
|
||||
Reference in New Issue
Block a user