revolt-api
Advanced tools
Comparing version 0.5.21 to 0.6.0-rc.1
@@ -130,2 +130,8 @@ export declare const pathResolve: { | ||
}; | ||
"/channels/{target}/webhooks": { | ||
post: never[]; | ||
}; | ||
"/channels/{channel_id}/webhooks": { | ||
get: never[]; | ||
}; | ||
"/servers/create": { | ||
@@ -301,2 +307,16 @@ post: never[]; | ||
}; | ||
"/webhooks/{webhook_id}/{token}": { | ||
get: never[]; | ||
post: never[]; | ||
delete: never[]; | ||
patch: never[]; | ||
}; | ||
"/webhooks/{webhook_id}": { | ||
get: never[]; | ||
delete: never[]; | ||
patch: never[]; | ||
}; | ||
"/webhooks/{webhook_id}/{token}/github": { | ||
post: never[]; | ||
}; | ||
}; |
@@ -5,3 +5,3 @@ "use strict"; | ||
// This file was auto-generated by @insertish/oapi! | ||
exports.pathResolve = { "1": [[""]], "2": [["admin", "stats"], ["admin", "messages"], ["users", "@me"], ["users", ["{target}"]], ["users", "dms"], ["users", "friend"], ["bots", "create"], ["bots", ["{bot}"]], ["bots", "@me"], ["bots", ["{target}"]], ["channels", ["{target}"]], ["channels", "create"], ["servers", "create"], ["servers", ["{target}"]], ["invites", ["{target}"]], ["safety", "reports"], ["safety", "report"], ["safety", "strikes"], ["onboard", "hello"], ["onboard", "complete"], ["push", "subscribe"], ["push", "unsubscribe"], ["sync", "unreads"]], "3": [["users", ["{target}"], "flags"], ["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}"], "members_experimental_query"], ["servers", ["{target}"], "bans"], ["servers", ["{target}"], "invites"], ["servers", ["{target}"], "roles"], ["servers", ["{target}"], "emojis"], ["custom", "emoji", ["{id}"]], ["safety", "reports", ["{report}"]], ["safety", "report", ["{id}"]], ["safety", "snapshot", ["{report_id}"]], ["safety", "strikes", ["{user_id}"]], ["safety", "strikes", ["{strike_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": [] }, "/admin/stats": { "get": [] }, "/admin/messages": { "post": [] }, "/users/@me": { "get": [] }, "/users/{target}": { "get": [], "patch": [] }, "/users/{target}/flags": { "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/{bot}": { "get": [] }, "/bots/@me": { "get": [] }, "/bots/{target}": { "delete": [], "patch": [] }, "/channels/{target}/ack/{message}": { "put": [] }, "/channels/{target}": { "get": [], "delete": ["leave_silently"], "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": ["include_channels"], "delete": ["leave_silently"], "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/{target}/members_experimental_query": { "get": ["query", "experimental_api"] }, "/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": [] }, "/safety/reports/{report}": { "patch": [] }, "/safety/report/{id}": { "get": [] }, "/safety/reports": { "get": ["content_id", "author_id", "status"] }, "/safety/report": { "post": [] }, "/safety/snapshot/{report_id}": { "get": [] }, "/safety/strikes": { "post": [] }, "/safety/strikes/{user_id}": { "get": [] }, "/safety/strikes/{strike_id}": { "post": [], "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": [["admin", "stats"], ["admin", "messages"], ["users", "@me"], ["users", ["{target}"]], ["users", "dms"], ["users", "friend"], ["bots", "create"], ["bots", ["{bot}"]], ["bots", "@me"], ["bots", ["{target}"]], ["channels", ["{target}"]], ["channels", "create"], ["servers", "create"], ["servers", ["{target}"]], ["invites", ["{target}"]], ["safety", "reports"], ["safety", "report"], ["safety", "strikes"], ["onboard", "hello"], ["onboard", "complete"], ["push", "subscribe"], ["push", "unsubscribe"], ["sync", "unreads"], ["webhooks", ["{webhook_id}"]]], "3": [["users", ["{target}"], "flags"], ["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"], ["channels", ["{target}"], "webhooks"], ["channels", ["{channel_id}"], "webhooks"], ["servers", ["{target}"], "ack"], ["servers", ["{target}"], "channels"], ["servers", ["{target}"], "members"], ["servers", ["{target}"], "members_experimental_query"], ["servers", ["{target}"], "bans"], ["servers", ["{target}"], "invites"], ["servers", ["{target}"], "roles"], ["servers", ["{target}"], "emojis"], ["custom", "emoji", ["{id}"]], ["safety", "reports", ["{report}"]], ["safety", "report", ["{id}"]], ["safety", "snapshot", ["{report_id}"]], ["safety", "strikes", ["{user_id}"]], ["safety", "strikes", ["{strike_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"], ["webhooks", ["{webhook_id}"], ["{token}"]]], "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}"]], ["webhooks", ["{webhook_id}"], ["{token}"], "github"]], "5": [["channels", ["{target}"], "messages", ["{msg}"], "reactions"]], "6": [["channels", ["{target}"], "messages", ["{msg}"], "reactions", ["{emoji}"]]] }; | ||
exports.queryParams = { "/": { "get": [] }, "/admin/stats": { "get": [] }, "/admin/messages": { "post": [] }, "/users/@me": { "get": [] }, "/users/{target}": { "get": [], "patch": [] }, "/users/{target}/flags": { "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/{bot}": { "get": [] }, "/bots/@me": { "get": [] }, "/bots/{target}": { "delete": [], "patch": [] }, "/channels/{target}/ack/{message}": { "put": [] }, "/channels/{target}": { "get": [], "delete": ["leave_silently"], "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": [] }, "/channels/{target}/webhooks": { "post": [] }, "/channels/{channel_id}/webhooks": { "get": [] }, "/servers/create": { "post": [] }, "/servers/{target}": { "get": ["include_channels"], "delete": ["leave_silently"], "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/{target}/members_experimental_query": { "get": ["query", "experimental_api"] }, "/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": [] }, "/safety/reports/{report}": { "patch": [] }, "/safety/report/{id}": { "get": [] }, "/safety/reports": { "get": ["content_id", "author_id", "status"] }, "/safety/report": { "post": [] }, "/safety/snapshot/{report_id}": { "get": [] }, "/safety/strikes": { "post": [] }, "/safety/strikes/{user_id}": { "get": [] }, "/safety/strikes/{strike_id}": { "post": [], "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": [] }, "/webhooks/{webhook_id}/{token}": { "get": [], "post": [], "delete": [], "patch": [] }, "/webhooks/{webhook_id}": { "get": [], "delete": [], "patch": [] }, "/webhooks/{webhook_id}/{token}/github": { "post": [] } }; |
@@ -520,2 +520,26 @@ import { paths } from './schema'; | ||
method: 'post'; | ||
path: `/channels/${string}/webhooks`; | ||
parts: 3; | ||
params: paths['/channels/{target}/webhooks']['post']['requestBody']['content']['application/json']; | ||
response: paths['/channels/{target}/webhooks']['post']['responses']['200']['content']['application/json']; | ||
} | { | ||
method: 'post'; | ||
path: '-/channels/{target}/webhooks'; | ||
parts: 3; | ||
params: paths['/channels/{target}/webhooks']['post']['requestBody']['content']['application/json']; | ||
response: paths['/channels/{target}/webhooks']['post']['responses']['200']['content']['application/json']; | ||
} | { | ||
method: 'get'; | ||
path: `/channels/${string}/webhooks`; | ||
parts: 3; | ||
params: undefined; | ||
response: paths['/channels/{channel_id}/webhooks']['get']['responses']['200']['content']['application/json']; | ||
} | { | ||
method: 'get'; | ||
path: '-/channels/{channel_id}/webhooks'; | ||
parts: 3; | ||
params: undefined; | ||
response: paths['/channels/{channel_id}/webhooks']['get']['responses']['200']['content']['application/json']; | ||
} | { | ||
method: 'post'; | ||
path: `/servers/create`; | ||
@@ -1137,2 +1161,98 @@ parts: 2; | ||
response: paths['/sync/unreads']['get']['responses']['200']['content']['application/json']; | ||
} | { | ||
method: 'get'; | ||
path: `/webhooks/${string}/${string}`; | ||
parts: 3; | ||
params: undefined; | ||
response: paths['/webhooks/{webhook_id}/{token}']['get']['responses']['200']['content']['application/json']; | ||
} | { | ||
method: 'get'; | ||
path: '-/webhooks/{webhook_id}/{token}'; | ||
parts: 3; | ||
params: undefined; | ||
response: paths['/webhooks/{webhook_id}/{token}']['get']['responses']['200']['content']['application/json']; | ||
} | { | ||
method: 'post'; | ||
path: `/webhooks/${string}/${string}`; | ||
parts: 3; | ||
params: paths['/webhooks/{webhook_id}/{token}']['post']['requestBody']['content']['application/json']; | ||
response: paths['/webhooks/{webhook_id}/{token}']['post']['responses']['200']['content']['application/json']; | ||
} | { | ||
method: 'post'; | ||
path: '-/webhooks/{webhook_id}/{token}'; | ||
parts: 3; | ||
params: paths['/webhooks/{webhook_id}/{token}']['post']['requestBody']['content']['application/json']; | ||
response: paths['/webhooks/{webhook_id}/{token}']['post']['responses']['200']['content']['application/json']; | ||
} | { | ||
method: 'delete'; | ||
path: `/webhooks/${string}/${string}`; | ||
parts: 3; | ||
params: undefined; | ||
response: undefined; | ||
} | { | ||
method: 'delete'; | ||
path: '-/webhooks/{webhook_id}/{token}'; | ||
parts: 3; | ||
params: undefined; | ||
response: undefined; | ||
} | { | ||
method: 'patch'; | ||
path: `/webhooks/${string}/${string}`; | ||
parts: 3; | ||
params: paths['/webhooks/{webhook_id}/{token}']['patch']['requestBody']['content']['application/json']; | ||
response: paths['/webhooks/{webhook_id}/{token}']['patch']['responses']['200']['content']['application/json']; | ||
} | { | ||
method: 'patch'; | ||
path: '-/webhooks/{webhook_id}/{token}'; | ||
parts: 3; | ||
params: paths['/webhooks/{webhook_id}/{token}']['patch']['requestBody']['content']['application/json']; | ||
response: paths['/webhooks/{webhook_id}/{token}']['patch']['responses']['200']['content']['application/json']; | ||
} | { | ||
method: 'get'; | ||
path: `/webhooks/${string}`; | ||
parts: 2; | ||
params: undefined; | ||
response: paths['/webhooks/{webhook_id}']['get']['responses']['200']['content']['application/json']; | ||
} | { | ||
method: 'get'; | ||
path: '-/webhooks/{webhook_id}'; | ||
parts: 2; | ||
params: undefined; | ||
response: paths['/webhooks/{webhook_id}']['get']['responses']['200']['content']['application/json']; | ||
} | { | ||
method: 'delete'; | ||
path: `/webhooks/${string}`; | ||
parts: 2; | ||
params: undefined; | ||
response: undefined; | ||
} | { | ||
method: 'delete'; | ||
path: '-/webhooks/{webhook_id}'; | ||
parts: 2; | ||
params: undefined; | ||
response: undefined; | ||
} | { | ||
method: 'patch'; | ||
path: `/webhooks/${string}`; | ||
parts: 2; | ||
params: paths['/webhooks/{webhook_id}']['patch']['requestBody']['content']['application/json']; | ||
response: paths['/webhooks/{webhook_id}']['patch']['responses']['200']['content']['application/json']; | ||
} | { | ||
method: 'patch'; | ||
path: '-/webhooks/{webhook_id}'; | ||
parts: 2; | ||
params: paths['/webhooks/{webhook_id}']['patch']['requestBody']['content']['application/json']; | ||
response: paths['/webhooks/{webhook_id}']['patch']['responses']['200']['content']['application/json']; | ||
} | { | ||
method: 'post'; | ||
path: `/webhooks/${string}/${string}/github`; | ||
parts: 4; | ||
params: undefined; | ||
response: undefined; | ||
} | { | ||
method: 'post'; | ||
path: '-/webhooks/{webhook_id}/{token}/github'; | ||
parts: 4; | ||
params: undefined; | ||
response: undefined; | ||
}; |
@@ -22,2 +22,3 @@ import { components } from './schema'; | ||
export declare type Message = components['schemas']['Message']; | ||
export declare type MessageWebhook = components['schemas']['MessageWebhook']; | ||
export declare type SystemMessage = components['schemas']['SystemMessage']; | ||
@@ -80,2 +81,4 @@ export declare type File = components['schemas']['File']; | ||
export declare type DataDefaultChannelPermissions = components['schemas']['DataDefaultChannelPermissions']; | ||
export declare type Webhook = components['schemas']['Webhook']; | ||
export declare type CreateWebhookBody = components['schemas']['CreateWebhookBody']; | ||
export declare type CreateServerResponse = components['schemas']['CreateServerResponse']; | ||
@@ -149,1 +152,4 @@ export declare type Server = components['schemas']['Server']; | ||
export declare type ChannelCompositeKey = components['schemas']['ChannelCompositeKey']; | ||
export declare type DataEditWebhook = components['schemas']['DataEditWebhook']; | ||
export declare type FieldsWebhook = components['schemas']['FieldsWebhook']; | ||
export declare type ResponseWebhook = components['schemas']['ResponseWebhook']; |
@@ -130,2 +130,8 @@ export declare const pathResolve: { | ||
}; | ||
"/channels/{target}/webhooks": { | ||
post: never[]; | ||
}; | ||
"/channels/{channel_id}/webhooks": { | ||
get: never[]; | ||
}; | ||
"/servers/create": { | ||
@@ -301,2 +307,16 @@ post: never[]; | ||
}; | ||
"/webhooks/{webhook_id}/{token}": { | ||
get: never[]; | ||
post: never[]; | ||
delete: never[]; | ||
patch: never[]; | ||
}; | ||
"/webhooks/{webhook_id}": { | ||
get: never[]; | ||
delete: never[]; | ||
patch: never[]; | ||
}; | ||
"/webhooks/{webhook_id}/{token}/github": { | ||
post: never[]; | ||
}; | ||
}; |
// This file was auto-generated by @insertish/oapi! | ||
export const pathResolve = { "1": [[""]], "2": [["admin", "stats"], ["admin", "messages"], ["users", "@me"], ["users", ["{target}"]], ["users", "dms"], ["users", "friend"], ["bots", "create"], ["bots", ["{bot}"]], ["bots", "@me"], ["bots", ["{target}"]], ["channels", ["{target}"]], ["channels", "create"], ["servers", "create"], ["servers", ["{target}"]], ["invites", ["{target}"]], ["safety", "reports"], ["safety", "report"], ["safety", "strikes"], ["onboard", "hello"], ["onboard", "complete"], ["push", "subscribe"], ["push", "unsubscribe"], ["sync", "unreads"]], "3": [["users", ["{target}"], "flags"], ["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}"], "members_experimental_query"], ["servers", ["{target}"], "bans"], ["servers", ["{target}"], "invites"], ["servers", ["{target}"], "roles"], ["servers", ["{target}"], "emojis"], ["custom", "emoji", ["{id}"]], ["safety", "reports", ["{report}"]], ["safety", "report", ["{id}"]], ["safety", "snapshot", ["{report_id}"]], ["safety", "strikes", ["{user_id}"]], ["safety", "strikes", ["{strike_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": [] }, "/admin/stats": { "get": [] }, "/admin/messages": { "post": [] }, "/users/@me": { "get": [] }, "/users/{target}": { "get": [], "patch": [] }, "/users/{target}/flags": { "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/{bot}": { "get": [] }, "/bots/@me": { "get": [] }, "/bots/{target}": { "delete": [], "patch": [] }, "/channels/{target}/ack/{message}": { "put": [] }, "/channels/{target}": { "get": [], "delete": ["leave_silently"], "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": ["include_channels"], "delete": ["leave_silently"], "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/{target}/members_experimental_query": { "get": ["query", "experimental_api"] }, "/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": [] }, "/safety/reports/{report}": { "patch": [] }, "/safety/report/{id}": { "get": [] }, "/safety/reports": { "get": ["content_id", "author_id", "status"] }, "/safety/report": { "post": [] }, "/safety/snapshot/{report_id}": { "get": [] }, "/safety/strikes": { "post": [] }, "/safety/strikes/{user_id}": { "get": [] }, "/safety/strikes/{strike_id}": { "post": [], "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": [["admin", "stats"], ["admin", "messages"], ["users", "@me"], ["users", ["{target}"]], ["users", "dms"], ["users", "friend"], ["bots", "create"], ["bots", ["{bot}"]], ["bots", "@me"], ["bots", ["{target}"]], ["channels", ["{target}"]], ["channels", "create"], ["servers", "create"], ["servers", ["{target}"]], ["invites", ["{target}"]], ["safety", "reports"], ["safety", "report"], ["safety", "strikes"], ["onboard", "hello"], ["onboard", "complete"], ["push", "subscribe"], ["push", "unsubscribe"], ["sync", "unreads"], ["webhooks", ["{webhook_id}"]]], "3": [["users", ["{target}"], "flags"], ["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"], ["channels", ["{target}"], "webhooks"], ["channels", ["{channel_id}"], "webhooks"], ["servers", ["{target}"], "ack"], ["servers", ["{target}"], "channels"], ["servers", ["{target}"], "members"], ["servers", ["{target}"], "members_experimental_query"], ["servers", ["{target}"], "bans"], ["servers", ["{target}"], "invites"], ["servers", ["{target}"], "roles"], ["servers", ["{target}"], "emojis"], ["custom", "emoji", ["{id}"]], ["safety", "reports", ["{report}"]], ["safety", "report", ["{id}"]], ["safety", "snapshot", ["{report_id}"]], ["safety", "strikes", ["{user_id}"]], ["safety", "strikes", ["{strike_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"], ["webhooks", ["{webhook_id}"], ["{token}"]]], "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}"]], ["webhooks", ["{webhook_id}"], ["{token}"], "github"]], "5": [["channels", ["{target}"], "messages", ["{msg}"], "reactions"]], "6": [["channels", ["{target}"], "messages", ["{msg}"], "reactions", ["{emoji}"]]] }; | ||
export const queryParams = { "/": { "get": [] }, "/admin/stats": { "get": [] }, "/admin/messages": { "post": [] }, "/users/@me": { "get": [] }, "/users/{target}": { "get": [], "patch": [] }, "/users/{target}/flags": { "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/{bot}": { "get": [] }, "/bots/@me": { "get": [] }, "/bots/{target}": { "delete": [], "patch": [] }, "/channels/{target}/ack/{message}": { "put": [] }, "/channels/{target}": { "get": [], "delete": ["leave_silently"], "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": [] }, "/channels/{target}/webhooks": { "post": [] }, "/channels/{channel_id}/webhooks": { "get": [] }, "/servers/create": { "post": [] }, "/servers/{target}": { "get": ["include_channels"], "delete": ["leave_silently"], "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/{target}/members_experimental_query": { "get": ["query", "experimental_api"] }, "/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": [] }, "/safety/reports/{report}": { "patch": [] }, "/safety/report/{id}": { "get": [] }, "/safety/reports": { "get": ["content_id", "author_id", "status"] }, "/safety/report": { "post": [] }, "/safety/snapshot/{report_id}": { "get": [] }, "/safety/strikes": { "post": [] }, "/safety/strikes/{user_id}": { "get": [] }, "/safety/strikes/{strike_id}": { "post": [], "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": [] }, "/webhooks/{webhook_id}/{token}": { "get": [], "post": [], "delete": [], "patch": [] }, "/webhooks/{webhook_id}": { "get": [], "delete": [], "patch": [] }, "/webhooks/{webhook_id}/{token}/github": { "post": [] } }; |
@@ -520,2 +520,26 @@ import { paths } from './schema'; | ||
method: 'post'; | ||
path: `/channels/${string}/webhooks`; | ||
parts: 3; | ||
params: paths['/channels/{target}/webhooks']['post']['requestBody']['content']['application/json']; | ||
response: paths['/channels/{target}/webhooks']['post']['responses']['200']['content']['application/json']; | ||
} | { | ||
method: 'post'; | ||
path: '-/channels/{target}/webhooks'; | ||
parts: 3; | ||
params: paths['/channels/{target}/webhooks']['post']['requestBody']['content']['application/json']; | ||
response: paths['/channels/{target}/webhooks']['post']['responses']['200']['content']['application/json']; | ||
} | { | ||
method: 'get'; | ||
path: `/channels/${string}/webhooks`; | ||
parts: 3; | ||
params: undefined; | ||
response: paths['/channels/{channel_id}/webhooks']['get']['responses']['200']['content']['application/json']; | ||
} | { | ||
method: 'get'; | ||
path: '-/channels/{channel_id}/webhooks'; | ||
parts: 3; | ||
params: undefined; | ||
response: paths['/channels/{channel_id}/webhooks']['get']['responses']['200']['content']['application/json']; | ||
} | { | ||
method: 'post'; | ||
path: `/servers/create`; | ||
@@ -1137,2 +1161,98 @@ parts: 2; | ||
response: paths['/sync/unreads']['get']['responses']['200']['content']['application/json']; | ||
} | { | ||
method: 'get'; | ||
path: `/webhooks/${string}/${string}`; | ||
parts: 3; | ||
params: undefined; | ||
response: paths['/webhooks/{webhook_id}/{token}']['get']['responses']['200']['content']['application/json']; | ||
} | { | ||
method: 'get'; | ||
path: '-/webhooks/{webhook_id}/{token}'; | ||
parts: 3; | ||
params: undefined; | ||
response: paths['/webhooks/{webhook_id}/{token}']['get']['responses']['200']['content']['application/json']; | ||
} | { | ||
method: 'post'; | ||
path: `/webhooks/${string}/${string}`; | ||
parts: 3; | ||
params: paths['/webhooks/{webhook_id}/{token}']['post']['requestBody']['content']['application/json']; | ||
response: paths['/webhooks/{webhook_id}/{token}']['post']['responses']['200']['content']['application/json']; | ||
} | { | ||
method: 'post'; | ||
path: '-/webhooks/{webhook_id}/{token}'; | ||
parts: 3; | ||
params: paths['/webhooks/{webhook_id}/{token}']['post']['requestBody']['content']['application/json']; | ||
response: paths['/webhooks/{webhook_id}/{token}']['post']['responses']['200']['content']['application/json']; | ||
} | { | ||
method: 'delete'; | ||
path: `/webhooks/${string}/${string}`; | ||
parts: 3; | ||
params: undefined; | ||
response: undefined; | ||
} | { | ||
method: 'delete'; | ||
path: '-/webhooks/{webhook_id}/{token}'; | ||
parts: 3; | ||
params: undefined; | ||
response: undefined; | ||
} | { | ||
method: 'patch'; | ||
path: `/webhooks/${string}/${string}`; | ||
parts: 3; | ||
params: paths['/webhooks/{webhook_id}/{token}']['patch']['requestBody']['content']['application/json']; | ||
response: paths['/webhooks/{webhook_id}/{token}']['patch']['responses']['200']['content']['application/json']; | ||
} | { | ||
method: 'patch'; | ||
path: '-/webhooks/{webhook_id}/{token}'; | ||
parts: 3; | ||
params: paths['/webhooks/{webhook_id}/{token}']['patch']['requestBody']['content']['application/json']; | ||
response: paths['/webhooks/{webhook_id}/{token}']['patch']['responses']['200']['content']['application/json']; | ||
} | { | ||
method: 'get'; | ||
path: `/webhooks/${string}`; | ||
parts: 2; | ||
params: undefined; | ||
response: paths['/webhooks/{webhook_id}']['get']['responses']['200']['content']['application/json']; | ||
} | { | ||
method: 'get'; | ||
path: '-/webhooks/{webhook_id}'; | ||
parts: 2; | ||
params: undefined; | ||
response: paths['/webhooks/{webhook_id}']['get']['responses']['200']['content']['application/json']; | ||
} | { | ||
method: 'delete'; | ||
path: `/webhooks/${string}`; | ||
parts: 2; | ||
params: undefined; | ||
response: undefined; | ||
} | { | ||
method: 'delete'; | ||
path: '-/webhooks/{webhook_id}'; | ||
parts: 2; | ||
params: undefined; | ||
response: undefined; | ||
} | { | ||
method: 'patch'; | ||
path: `/webhooks/${string}`; | ||
parts: 2; | ||
params: paths['/webhooks/{webhook_id}']['patch']['requestBody']['content']['application/json']; | ||
response: paths['/webhooks/{webhook_id}']['patch']['responses']['200']['content']['application/json']; | ||
} | { | ||
method: 'patch'; | ||
path: '-/webhooks/{webhook_id}'; | ||
parts: 2; | ||
params: paths['/webhooks/{webhook_id}']['patch']['requestBody']['content']['application/json']; | ||
response: paths['/webhooks/{webhook_id}']['patch']['responses']['200']['content']['application/json']; | ||
} | { | ||
method: 'post'; | ||
path: `/webhooks/${string}/${string}/github`; | ||
parts: 4; | ||
params: undefined; | ||
response: undefined; | ||
} | { | ||
method: 'post'; | ||
path: '-/webhooks/{webhook_id}/{token}/github'; | ||
parts: 4; | ||
params: undefined; | ||
response: undefined; | ||
}; |
@@ -22,2 +22,3 @@ import { components } from './schema'; | ||
export declare type Message = components['schemas']['Message']; | ||
export declare type MessageWebhook = components['schemas']['MessageWebhook']; | ||
export declare type SystemMessage = components['schemas']['SystemMessage']; | ||
@@ -80,2 +81,4 @@ export declare type File = components['schemas']['File']; | ||
export declare type DataDefaultChannelPermissions = components['schemas']['DataDefaultChannelPermissions']; | ||
export declare type Webhook = components['schemas']['Webhook']; | ||
export declare type CreateWebhookBody = components['schemas']['CreateWebhookBody']; | ||
export declare type CreateServerResponse = components['schemas']['CreateServerResponse']; | ||
@@ -149,1 +152,4 @@ export declare type Server = components['schemas']['Server']; | ||
export declare type ChannelCompositeKey = components['schemas']['ChannelCompositeKey']; | ||
export declare type DataEditWebhook = components['schemas']['DataEditWebhook']; | ||
export declare type FieldsWebhook = components['schemas']['FieldsWebhook']; | ||
export declare type ResponseWebhook = components['schemas']['ResponseWebhook']; |
{ | ||
"name": "revolt-api", | ||
"version": "0.5.21", | ||
"version": "0.6.0-rc.1", | ||
"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":[["admin","stats"],["admin","messages"],["users","@me"],["users",["{target}"]],["users","dms"],["users","friend"],["bots","create"],["bots",["{bot}"]],["bots","@me"],["bots",["{target}"]],["channels",["{target}"]],["channels","create"],["servers","create"],["servers",["{target}"]],["invites",["{target}"]],["safety","reports"],["safety","report"],["safety","strikes"],["onboard","hello"],["onboard","complete"],["push","subscribe"],["push","unsubscribe"],["sync","unreads"]],"3":[["users",["{target}"],"flags"],["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}"],"members_experimental_query"],["servers",["{target}"],"bans"],["servers",["{target}"],"invites"],["servers",["{target}"],"roles"],["servers",["{target}"],"emojis"],["custom","emoji",["{id}"]],["safety","reports",["{report}"]],["safety","report",["{id}"]],["safety","snapshot",["{report_id}"]],["safety","strikes",["{user_id}"]],["safety","strikes",["{strike_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":[]},"/admin/stats":{"get":[]},"/admin/messages":{"post":[]},"/users/@me":{"get":[]},"/users/{target}":{"get":[],"patch":[]},"/users/{target}/flags":{"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/{bot}":{"get":[]},"/bots/@me":{"get":[]},"/bots/{target}":{"delete":[],"patch":[]},"/channels/{target}/ack/{message}":{"put":[]},"/channels/{target}":{"get":[],"delete":["leave_silently"],"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":["include_channels"],"delete":["leave_silently"],"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/{target}/members_experimental_query":{"get":["query","experimental_api"]},"/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":[]},"/safety/reports/{report}":{"patch":[]},"/safety/report/{id}":{"get":[]},"/safety/reports":{"get":["content_id","author_id","status"]},"/safety/report":{"post":[]},"/safety/snapshot/{report_id}":{"get":[]},"/safety/strikes":{"post":[]},"/safety/strikes/{user_id}":{"get":[]},"/safety/strikes/{strike_id}":{"post":[],"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":[["admin","stats"],["admin","messages"],["users","@me"],["users",["{target}"]],["users","dms"],["users","friend"],["bots","create"],["bots",["{bot}"]],["bots","@me"],["bots",["{target}"]],["channels",["{target}"]],["channels","create"],["servers","create"],["servers",["{target}"]],["invites",["{target}"]],["safety","reports"],["safety","report"],["safety","strikes"],["onboard","hello"],["onboard","complete"],["push","subscribe"],["push","unsubscribe"],["sync","unreads"],["webhooks",["{webhook_id}"]]],"3":[["users",["{target}"],"flags"],["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"],["channels",["{target}"],"webhooks"],["channels",["{channel_id}"],"webhooks"],["servers",["{target}"],"ack"],["servers",["{target}"],"channels"],["servers",["{target}"],"members"],["servers",["{target}"],"members_experimental_query"],["servers",["{target}"],"bans"],["servers",["{target}"],"invites"],["servers",["{target}"],"roles"],["servers",["{target}"],"emojis"],["custom","emoji",["{id}"]],["safety","reports",["{report}"]],["safety","report",["{id}"]],["safety","snapshot",["{report_id}"]],["safety","strikes",["{user_id}"]],["safety","strikes",["{strike_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"],["webhooks",["{webhook_id}"],["{token}"]]],"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}"]],["webhooks",["{webhook_id}"],["{token}"],"github"]],"5":[["channels",["{target}"],"messages",["{msg}"],"reactions"]],"6":[["channels",["{target}"],"messages",["{msg}"],"reactions",["{emoji}"]]]}; | ||
export const queryParams = {"/":{"get":[]},"/admin/stats":{"get":[]},"/admin/messages":{"post":[]},"/users/@me":{"get":[]},"/users/{target}":{"get":[],"patch":[]},"/users/{target}/flags":{"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/{bot}":{"get":[]},"/bots/@me":{"get":[]},"/bots/{target}":{"delete":[],"patch":[]},"/channels/{target}/ack/{message}":{"put":[]},"/channels/{target}":{"get":[],"delete":["leave_silently"],"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":[]},"/channels/{target}/webhooks":{"post":[]},"/channels/{channel_id}/webhooks":{"get":[]},"/servers/create":{"post":[]},"/servers/{target}":{"get":["include_channels"],"delete":["leave_silently"],"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/{target}/members_experimental_query":{"get":["query","experimental_api"]},"/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":[]},"/safety/reports/{report}":{"patch":[]},"/safety/report/{id}":{"get":[]},"/safety/reports":{"get":["content_id","author_id","status"]},"/safety/report":{"post":[]},"/safety/snapshot/{report_id}":{"get":[]},"/safety/strikes":{"post":[]},"/safety/strikes/{user_id}":{"get":[]},"/safety/strikes/{strike_id}":{"post":[],"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":[]},"/webhooks/{webhook_id}/{token}":{"get":[],"post":[],"delete":[],"patch":[]},"/webhooks/{webhook_id}":{"get":[],"delete":[],"patch":[]},"/webhooks/{webhook_id}/{token}/github":{"post":[]}}; |
@@ -90,2 +90,6 @@ // This file was auto-generated by @insertish/oapi! | ||
| { method: 'delete', path: '-/channels/{target}/messages/{msg}/reactions', parts: 5, params: undefined, response: undefined } | ||
| { method: 'post', path: `/channels/${string}/webhooks`, parts: 3, params: paths['/channels/{target}/webhooks']['post']['requestBody']['content']['application/json'], response: paths['/channels/{target}/webhooks']['post']['responses']['200']['content']['application/json'] } | ||
| { method: 'post', path: '-/channels/{target}/webhooks', parts: 3, params: paths['/channels/{target}/webhooks']['post']['requestBody']['content']['application/json'], response: paths['/channels/{target}/webhooks']['post']['responses']['200']['content']['application/json'] } | ||
| { method: 'get', path: `/channels/${string}/webhooks`, parts: 3, params: undefined, response: paths['/channels/{channel_id}/webhooks']['get']['responses']['200']['content']['application/json'] } | ||
| { method: 'get', path: '-/channels/{channel_id}/webhooks', parts: 3, params: undefined, response: paths['/channels/{channel_id}/webhooks']['get']['responses']['200']['content']['application/json'] } | ||
| { 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'] } | ||
@@ -193,2 +197,18 @@ | { method: 'get', path: `/servers/${string}`, parts: 2, params: paths['/servers/{target}']['get']['parameters']['query'], response: paths['/servers/{target}']['get']['responses']['200']['content']['application/json'] } | ||
| { method: 'post', path: `/sync/settings/set`, parts: 3, params: paths['/sync/settings/set']['post']['parameters']['query']|paths['/sync/settings/set']['post']['requestBody']['content']['application/json'], response: undefined } | ||
| { method: 'get', path: `/sync/unreads`, parts: 2, params: undefined, response: paths['/sync/unreads']['get']['responses']['200']['content']['application/json'] }; | ||
| { method: 'get', path: `/sync/unreads`, parts: 2, params: undefined, response: paths['/sync/unreads']['get']['responses']['200']['content']['application/json'] } | ||
| { method: 'get', path: `/webhooks/${string}/${string}`, parts: 3, params: undefined, response: paths['/webhooks/{webhook_id}/{token}']['get']['responses']['200']['content']['application/json'] } | ||
| { method: 'get', path: '-/webhooks/{webhook_id}/{token}', parts: 3, params: undefined, response: paths['/webhooks/{webhook_id}/{token}']['get']['responses']['200']['content']['application/json'] } | ||
| { method: 'post', path: `/webhooks/${string}/${string}`, parts: 3, params: paths['/webhooks/{webhook_id}/{token}']['post']['requestBody']['content']['application/json'], response: paths['/webhooks/{webhook_id}/{token}']['post']['responses']['200']['content']['application/json'] } | ||
| { method: 'post', path: '-/webhooks/{webhook_id}/{token}', parts: 3, params: paths['/webhooks/{webhook_id}/{token}']['post']['requestBody']['content']['application/json'], response: paths['/webhooks/{webhook_id}/{token}']['post']['responses']['200']['content']['application/json'] } | ||
| { method: 'delete', path: `/webhooks/${string}/${string}`, parts: 3, params: undefined, response: undefined } | ||
| { method: 'delete', path: '-/webhooks/{webhook_id}/{token}', parts: 3, params: undefined, response: undefined } | ||
| { method: 'patch', path: `/webhooks/${string}/${string}`, parts: 3, params: paths['/webhooks/{webhook_id}/{token}']['patch']['requestBody']['content']['application/json'], response: paths['/webhooks/{webhook_id}/{token}']['patch']['responses']['200']['content']['application/json'] } | ||
| { method: 'patch', path: '-/webhooks/{webhook_id}/{token}', parts: 3, params: paths['/webhooks/{webhook_id}/{token}']['patch']['requestBody']['content']['application/json'], response: paths['/webhooks/{webhook_id}/{token}']['patch']['responses']['200']['content']['application/json'] } | ||
| { method: 'get', path: `/webhooks/${string}`, parts: 2, params: undefined, response: paths['/webhooks/{webhook_id}']['get']['responses']['200']['content']['application/json'] } | ||
| { method: 'get', path: '-/webhooks/{webhook_id}', parts: 2, params: undefined, response: paths['/webhooks/{webhook_id}']['get']['responses']['200']['content']['application/json'] } | ||
| { method: 'delete', path: `/webhooks/${string}`, parts: 2, params: undefined, response: undefined } | ||
| { method: 'delete', path: '-/webhooks/{webhook_id}', parts: 2, params: undefined, response: undefined } | ||
| { method: 'patch', path: `/webhooks/${string}`, parts: 2, params: paths['/webhooks/{webhook_id}']['patch']['requestBody']['content']['application/json'], response: paths['/webhooks/{webhook_id}']['patch']['responses']['200']['content']['application/json'] } | ||
| { method: 'patch', path: '-/webhooks/{webhook_id}', parts: 2, params: paths['/webhooks/{webhook_id}']['patch']['requestBody']['content']['application/json'], response: paths['/webhooks/{webhook_id}']['patch']['responses']['200']['content']['application/json'] } | ||
| { method: 'post', path: `/webhooks/${string}/${string}/github`, parts: 4, params: undefined, response: undefined } | ||
| { method: 'post', path: '-/webhooks/{webhook_id}/{token}/github', parts: 4, params: undefined, response: undefined }; |
@@ -23,2 +23,3 @@ // This file was auto-generated by @insertish/oapi! | ||
export type Message = components['schemas']['Message']; | ||
export type MessageWebhook = components['schemas']['MessageWebhook']; | ||
export type SystemMessage = components['schemas']['SystemMessage']; | ||
@@ -81,2 +82,4 @@ export type File = components['schemas']['File']; | ||
export type DataDefaultChannelPermissions = components['schemas']['DataDefaultChannelPermissions']; | ||
export type Webhook = components['schemas']['Webhook']; | ||
export type CreateWebhookBody = components['schemas']['CreateWebhookBody']; | ||
export type CreateServerResponse = components['schemas']['CreateServerResponse']; | ||
@@ -149,2 +152,5 @@ export type Server = components['schemas']['Server']; | ||
export type ChannelUnread = components['schemas']['ChannelUnread']; | ||
export type ChannelCompositeKey = components['schemas']['ChannelCompositeKey'];; | ||
export type ChannelCompositeKey = components['schemas']['ChannelCompositeKey']; | ||
export type DataEditWebhook = components['schemas']['DataEditWebhook']; | ||
export type FieldsWebhook = components['schemas']['FieldsWebhook']; | ||
export type ResponseWebhook = components['schemas']['ResponseWebhook'];; |
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
1121826
35461