revolt-api
Advanced tools
Comparing version 0.5.4 to 0.5.5
@@ -6,2 +6,4 @@ export declare const pathResolve: { | ||
"4": (string | string[])[][]; | ||
"5": (string | string[])[][]; | ||
"6": (string | string[])[][]; | ||
}; | ||
@@ -111,2 +113,9 @@ export declare const queryParams: { | ||
}; | ||
"/channels/{target}/messages/{msg}/reactions/{emoji}": { | ||
put: never[]; | ||
delete: string[]; | ||
}; | ||
"/channels/{target}/messages/{msg}/reactions": { | ||
delete: never[]; | ||
}; | ||
"/servers/create": { | ||
@@ -113,0 +122,0 @@ post: never[]; |
@@ -5,3 +5,3 @@ "use strict"; | ||
// This file was auto-generated by @insertish/oapi! | ||
exports.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}"]]] }; | ||
exports.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": [] } }; | ||
exports.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}"]]] }; | ||
exports.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": [] } }; |
@@ -453,2 +453,38 @@ import { paths } from './schema'; | ||
} | { | ||
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'; | ||
@@ -455,0 +491,0 @@ path: `/servers/create`; |
@@ -50,2 +50,3 @@ import { components } from './schema'; | ||
export declare type Video = components['schemas']['Video']; | ||
export declare type Interactions = components['schemas']['Interactions']; | ||
export declare type Masquerade = components['schemas']['Masquerade']; | ||
@@ -52,0 +53,0 @@ export declare type DataMessageSend = components['schemas']['DataMessageSend']; |
@@ -6,2 +6,4 @@ export declare const pathResolve: { | ||
"4": (string | string[])[][]; | ||
"5": (string | string[])[][]; | ||
"6": (string | string[])[][]; | ||
}; | ||
@@ -111,2 +113,9 @@ export declare const queryParams: { | ||
}; | ||
"/channels/{target}/messages/{msg}/reactions/{emoji}": { | ||
put: never[]; | ||
delete: string[]; | ||
}; | ||
"/channels/{target}/messages/{msg}/reactions": { | ||
delete: never[]; | ||
}; | ||
"/servers/create": { | ||
@@ -113,0 +122,0 @@ post: never[]; |
// 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": [] } }; |
@@ -453,2 +453,38 @@ import { paths } from './schema'; | ||
} | { | ||
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'; | ||
@@ -455,0 +491,0 @@ path: `/servers/create`; |
@@ -50,2 +50,3 @@ import { components } from './schema'; | ||
export declare type Video = components['schemas']['Video']; | ||
export declare type Interactions = components['schemas']['Interactions']; | ||
export declare type Masquerade = components['schemas']['Masquerade']; | ||
@@ -52,0 +53,0 @@ export declare type DataMessageSend = components['schemas']['DataMessageSend']; |
{ | ||
"name": "revolt-api", | ||
"version": "0.5.4", | ||
"version": "0.5.5", | ||
"description": "Revolt API Library", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
// 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":[]}}; |
@@ -79,2 +79,8 @@ // This file was auto-generated by @insertish/oapi! | ||
| { 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'] } | ||
@@ -81,0 +87,0 @@ | { method: 'get', path: `/servers/${string}`, parts: 2, params: undefined, response: paths['/servers/{target}']['get']['responses']['200']['content']['application/json'] } |
@@ -51,2 +51,3 @@ // This file was auto-generated by @insertish/oapi! | ||
export type Video = components['schemas']['Video']; | ||
export type Interactions = components['schemas']['Interactions']; | ||
export type Masquerade = components['schemas']['Masquerade']; | ||
@@ -53,0 +54,0 @@ export type DataMessageSend = components['schemas']['DataMessageSend']; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
845132
26825