mirror of
https://github.com/stoatchat/javascript-client-api.git
synced 2026-08-26 12:35:48 -04:00
chore: build library from latest spec [skip ci]
This commit is contained in:
+2
-2
@@ -1,3 +1,3 @@
|
||||
// This file was auto-generated by @insertish/oapi!
|
||||
export const pathResolve = {"1":[[""]],"2":[["users","@me"],["users",["{target}"]],["users","dms"],["users","friend"],["bots","create"],["bots",["{bot_id}"]],["bots","@me"],["channels",["{target}"]],["channels","create"],["servers","create"],["servers",["{target}"]],["invites",["{target}"]],["safety","report"],["onboard","hello"],["onboard","complete"],["policy","acknowledge"],["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",["{channel_id}"],"webhooks"],["servers",["{target}"],"ack"],["servers",["{server}"],"channels"],["servers",["{target}"],"members"],["servers",["{target}"],"members_experimental_query"],["servers",["{target}"],"bans"],["servers",["{target}"],"invites"],["servers",["{target}"],"roles"],["servers",["{target}"],"emojis"],["custom","emoji",["{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"],["webhooks",["{webhook_id}"],["{token}"]]],"4":[["channels",["{target}"],"ack",["{message}"]],["channels",["{target}"],"messages",["{msg}"]],["channels",["{target}"],"messages","bulk"],["channels",["{group_id}"],"recipients",["{member_id}"]],["channels",["{target}"],"end_ring",["{target_user}"]],["channels",["{target}"],"permissions",["{role_id}"]],["channels",["{target}"],"permissions","default"],["servers",["{server_id}"],"members",["{member_id}"]],["servers",["{server}"],"bans",["{target}"]],["servers",["{target}"],"roles",["{role_id}"]],["servers",["{target}"],"permissions",["{role_id}"]],["servers",["{target}"],"permissions","default"],["servers",["{target}"],"roles","ranks"],["auth","account","change","password"],["auth","account","change","email"],["auth","account","verify",["{code}"]],["webhooks",["{webhook_id}"],["{token}"],["{message_id}"]],["webhooks",["{webhook_id}"],["{token}"],"github"]],"5":[["channels",["{target}"],"messages",["{msg}"],"pin"],["channels",["{target}"],"messages",["{msg}"],"reactions"]],"6":[["channels",["{target}"],"messages",["{msg}"],"reactions",["{emoji}"]]]};
|
||||
export const queryParams = {"/":{"get":[]},"/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_id}":{"get":[],"delete":[],"patch":[]},"/bots/@me":{"get":[]},"/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/{msg}/pin":{"post":[],"delete":[]},"/channels/{target}/messages/{msg}":{"get":[],"delete":[],"patch":[]},"/channels/{target}/messages/bulk":{"delete":[]},"/channels/create":{"post":[]},"/channels/{group_id}/recipients/{member_id}":{"put":[],"delete":[]},"/channels/{target}/join_call":{"post":[]},"/channels/{target}/end_ring/{target_user}":{"put":[]},"/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/{channel_id}/webhooks":{"get":[],"post":[]},"/servers/create":{"post":[]},"/servers/{target}":{"get":["include_channels"],"delete":["leave_silently"],"patch":[]},"/servers/{target}/ack":{"put":[]},"/servers/{server}/channels":{"post":[]},"/servers/{target}/members":{"get":["exclude_offline"]},"/servers/{server_id}/members/{member_id}":{"get":["roles"],"delete":[],"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}":{"get":[],"delete":[],"patch":[]},"/servers/{target}/permissions/{role_id}":{"put":[]},"/servers/{target}/permissions/default":{"put":[]},"/servers/{target}/emojis":{"get":[]},"/servers/{target}/roles/ranks":{"patch":[]},"/invites/{target}":{"get":[],"post":[],"delete":[]},"/custom/emoji/{emoji_id}":{"get":[],"put":[],"delete":[],"patch":[]},"/safety/report":{"post":[]},"/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":[]},"/policy/acknowledge":{"post":[]},"/push/subscribe":{"post":[]},"/push/unsubscribe":{"post":[]},"/sync/settings/fetch":{"post":[]},"/sync/settings/set":{"post":["timestamp"]},"/sync/unreads":{"get":[]},"/webhooks/{webhook_id}/{token}/{message_id}":{"delete":[],"patch":[]},"/webhooks/{webhook_id}/{token}":{"get":[],"post":[],"delete":[],"patch":[]},"/webhooks/{webhook_id}":{"get":[],"delete":[],"patch":[]},"/webhooks/{webhook_id}/{token}/github":{"post":[]}};
|
||||
export const pathResolve = {"1":[[""]],"2":[["users","@me"],["users",["{target}"]],["users","dms"],["users","friend"],["bots","create"],["bots",["{bot_id}"]],["bots","@me"],["channels",["{target}"]],["channels","create"],["servers","create"],["servers",["{target}"]],["invites",["{target}"]],["safety","report"],["onboard","hello"],["onboard","complete"],["policy","acknowledge"],["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",["{channel_id}"],"webhooks"],["servers",["{target}"],"ack"],["servers",["{server}"],"channels"],["servers",["{target}"],"members"],["servers",["{target}"],"members_experimental_query"],["servers",["{target}"],"bans"],["servers",["{target}"],"invites"],["servers",["{target}"],"roles"],["servers",["{target}"],"emojis"],["servers",["{target}"],"audit_logs"],["custom","emoji",["{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"],["webhooks",["{webhook_id}"],["{token}"]]],"4":[["channels",["{target}"],"ack",["{message}"]],["channels",["{target}"],"messages",["{msg}"]],["channels",["{target}"],"messages","bulk"],["channels",["{group_id}"],"recipients",["{member_id}"]],["channels",["{target}"],"end_ring",["{target_user}"]],["channels",["{target}"],"permissions",["{role_id}"]],["channels",["{target}"],"permissions","default"],["servers",["{server_id}"],"members",["{member_id}"]],["servers",["{server}"],"bans",["{target}"]],["servers",["{target}"],"roles",["{role_id}"]],["servers",["{target}"],"permissions",["{role_id}"]],["servers",["{target}"],"permissions","default"],["servers",["{target}"],"roles","ranks"],["auth","account","change","password"],["auth","account","change","email"],["auth","account","verify",["{code}"]],["webhooks",["{webhook_id}"],["{token}"],["{message_id}"]],["webhooks",["{webhook_id}"],["{token}"],"github"]],"5":[["channels",["{target}"],"messages",["{msg}"],"pin"],["channels",["{target}"],"messages",["{msg}"],"reactions"]],"6":[["channels",["{target}"],"messages",["{msg}"],"reactions",["{emoji}"]]]};
|
||||
export const queryParams = {"/":{"get":[]},"/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_id}":{"get":[],"delete":[],"patch":[]},"/bots/@me":{"get":[]},"/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/{msg}/pin":{"post":[],"delete":[]},"/channels/{target}/messages/{msg}":{"get":[],"delete":[],"patch":[]},"/channels/{target}/messages/bulk":{"delete":[]},"/channels/create":{"post":[]},"/channels/{group_id}/recipients/{member_id}":{"put":[],"delete":[]},"/channels/{target}/join_call":{"post":[]},"/channels/{target}/end_ring/{target_user}":{"put":[]},"/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/{channel_id}/webhooks":{"get":[],"post":[]},"/servers/create":{"post":[]},"/servers/{target}":{"get":["include_channels"],"delete":["leave_silently"],"patch":[]},"/servers/{target}/ack":{"put":[]},"/servers/{server}/channels":{"post":[]},"/servers/{target}/members":{"get":["exclude_offline"]},"/servers/{server_id}/members/{member_id}":{"get":["roles"],"delete":[],"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}":{"get":[],"delete":[],"patch":[]},"/servers/{target}/permissions/{role_id}":{"put":[]},"/servers/{target}/permissions/default":{"put":[]},"/servers/{target}/emojis":{"get":[]},"/servers/{target}/roles/ranks":{"patch":[]},"/servers/{target}/audit_logs":{"get":["user","target","type","before","after","limit"]},"/invites/{target}":{"get":[],"post":[],"delete":[]},"/custom/emoji/{emoji_id}":{"get":[],"put":[],"delete":[],"patch":[]},"/safety/report":{"post":[]},"/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":[]},"/policy/acknowledge":{"post":[]},"/push/subscribe":{"post":[]},"/push/unsubscribe":{"post":[]},"/sync/settings/fetch":{"post":[]},"/sync/settings/set":{"post":["timestamp"]},"/sync/unreads":{"get":[]},"/webhooks/{webhook_id}/{token}/{message_id}":{"delete":[],"patch":[]},"/webhooks/{webhook_id}/{token}":{"get":[],"post":[],"delete":[],"patch":[]},"/webhooks/{webhook_id}":{"get":[],"delete":[],"patch":[]},"/webhooks/{webhook_id}/{token}/github":{"post":[]}};
|
||||
@@ -138,6 +138,8 @@ export type APIRoutes =
|
||||
| { method: 'get', path: '-/servers/{target}/emojis', parts: 3, params: undefined, response: paths['/servers/{target}/emojis']['get']['responses']['200']['content']['application/json'] }
|
||||
| { method: 'patch', path: `/servers/${string}/roles/ranks`, parts: 4, params: paths['/servers/{target}/roles/ranks']['patch']['requestBody']['content']['application/json'], response: paths['/servers/{target}/roles/ranks']['patch']['responses']['200']['content']['application/json'] }
|
||||
| { method: 'patch', path: '-/servers/{target}/roles/ranks', parts: 4, params: paths['/servers/{target}/roles/ranks']['patch']['requestBody']['content']['application/json'], response: paths['/servers/{target}/roles/ranks']['patch']['responses']['200']['content']['application/json'] }
|
||||
| { method: 'get', path: `/servers/${string}/audit_logs`, parts: 3, params: paths['/servers/{target}/audit_logs']['get']['parameters']['query'], response: paths['/servers/{target}/audit_logs']['get']['responses']['200']['content']['application/json'] }
|
||||
| { method: 'get', path: '-/servers/{target}/audit_logs', parts: 3, params: paths['/servers/{target}/audit_logs']['get']['parameters']['query'], response: paths['/servers/{target}/audit_logs']['get']['responses']['200']['content']['application/json'] }
|
||||
| { method: 'get', path: `/invites/${string}`, parts: 2, params: undefined, response: paths['/invites/{target}']['get']['responses']['200']['content']['application/json'] }
|
||||
| { method: 'get', path: '-/invites/{target}', parts: 2, params: undefined, response: paths['/invites/{target}']['get']['responses']['200']['content']['application/json'] }
|
||||
| { method: 'post', path: `/invites/${string}`, parts: 2, params: undefined, response: paths['/invites/{target}']['post']['responses']['200']['content']['application/json'] }
|
||||
|
||||
+391
@@ -290,6 +290,10 @@ export interface paths {
|
||||
/** Edit's server role's ranks. */
|
||||
patch: operations["roles_edit_positions_edit_role_ranks"];
|
||||
};
|
||||
"/servers/{target}/audit_logs": {
|
||||
/** Queries a server's audit logs. */
|
||||
get: operations["audit_log_query_query"];
|
||||
};
|
||||
"/invites/{target}": {
|
||||
/** Fetch an invite by its id. */
|
||||
get: operations["invite_fetch_fetch"];
|
||||
@@ -938,6 +942,10 @@ export interface components {
|
||||
type: "FailedValidation";
|
||||
error: string;
|
||||
}
|
||||
| {
|
||||
/** @enum {string} */
|
||||
type: "HeaderTooLarge";
|
||||
}
|
||||
| {
|
||||
/** @enum {string} */
|
||||
type: "OperationFailed";
|
||||
@@ -2545,6 +2553,246 @@ export interface components {
|
||||
DataEditRoleRanks: {
|
||||
ranks: string[];
|
||||
};
|
||||
/** @description Response containing the audit log entries and the users involved */
|
||||
AuditLogQueryResponse: {
|
||||
/** @description List of audit logs */
|
||||
audit_logs: components["schemas"]["AuditLogEntry"][];
|
||||
/** @description List of users */
|
||||
users: components["schemas"]["User"][];
|
||||
/** @description List of members */
|
||||
members: components["schemas"]["Member"][];
|
||||
};
|
||||
/** @description Audit log entry */
|
||||
AuditLogEntry: {
|
||||
/** @description Unique ID */
|
||||
_id: string;
|
||||
/** @description The server the entry happened in */
|
||||
server: string;
|
||||
/** @description User provided reason */
|
||||
reason?: string | null;
|
||||
/** @description User who ran the action */
|
||||
user: string;
|
||||
/** @description User this action is targetting */
|
||||
target?: string | null;
|
||||
/** @description The action ran */
|
||||
action: components["schemas"]["AuditLogEntryAction"];
|
||||
};
|
||||
/** @description Indivual action stored on the audit log */
|
||||
AuditLogEntryAction:
|
||||
| {
|
||||
/** @enum {string} */
|
||||
type: "MessageDelete";
|
||||
author: string;
|
||||
channel: string;
|
||||
}
|
||||
| {
|
||||
/** @enum {string} */
|
||||
type: "MessageBulkDelete";
|
||||
channel: string;
|
||||
/** Format: uint */
|
||||
count: number;
|
||||
}
|
||||
| {
|
||||
/** @enum {string} */
|
||||
type: "MessagePin";
|
||||
message: string;
|
||||
author: string;
|
||||
channel: string;
|
||||
}
|
||||
| {
|
||||
/** @enum {string} */
|
||||
type: "MessageUnpin";
|
||||
message: string;
|
||||
author: string;
|
||||
channel: string;
|
||||
}
|
||||
| {
|
||||
/** @enum {string} */
|
||||
type: "BanCreate";
|
||||
user: string;
|
||||
}
|
||||
| {
|
||||
/** @enum {string} */
|
||||
type: "BanDelete";
|
||||
user: string;
|
||||
}
|
||||
| {
|
||||
/** @enum {string} */
|
||||
type: "ChannelCreate";
|
||||
channel: string;
|
||||
name: string;
|
||||
}
|
||||
| {
|
||||
/** @enum {string} */
|
||||
type: "ChannelEdit";
|
||||
channel: string;
|
||||
before: components["schemas"]["PartialChannel"];
|
||||
after: components["schemas"]["PartialChannel"];
|
||||
}
|
||||
| {
|
||||
/** @enum {string} */
|
||||
type: "ChannelRolePermissionsEdit";
|
||||
channel: string;
|
||||
role: string;
|
||||
permissions: components["schemas"]["Override"];
|
||||
}
|
||||
| {
|
||||
/** @enum {string} */
|
||||
type: "ChannelDelete";
|
||||
channel: string;
|
||||
name: string;
|
||||
}
|
||||
| {
|
||||
/** @enum {string} */
|
||||
type: "MemberEdit";
|
||||
user: string;
|
||||
before: components["schemas"]["PartialMember"];
|
||||
after: components["schemas"]["PartialMember"];
|
||||
}
|
||||
| {
|
||||
/** @enum {string} */
|
||||
type: "MemberKick";
|
||||
user: string;
|
||||
}
|
||||
| {
|
||||
/** @enum {string} */
|
||||
type: "ServerEdit";
|
||||
before: components["schemas"]["PartialServer"];
|
||||
after: components["schemas"]["PartialServer"];
|
||||
}
|
||||
| {
|
||||
/** @enum {string} */
|
||||
type: "RoleEdit";
|
||||
role: string;
|
||||
before: components["schemas"]["PartialRole"];
|
||||
after: components["schemas"]["PartialRole"];
|
||||
}
|
||||
| {
|
||||
/** @enum {string} */
|
||||
type: "RoleCreate";
|
||||
role: string;
|
||||
name: string;
|
||||
}
|
||||
| {
|
||||
/** @enum {string} */
|
||||
type: "RoleDelete";
|
||||
role: string;
|
||||
name: string;
|
||||
}
|
||||
| {
|
||||
/** @enum {string} */
|
||||
type: "RolesReorder";
|
||||
before: string[];
|
||||
after: string[];
|
||||
}
|
||||
| {
|
||||
/** @enum {string} */
|
||||
type: "InviteCreate";
|
||||
invite: string;
|
||||
channel: string;
|
||||
}
|
||||
| {
|
||||
/** @enum {string} */
|
||||
type: "InviteDelete";
|
||||
invite: string;
|
||||
channel: string;
|
||||
}
|
||||
| {
|
||||
/** @enum {string} */
|
||||
type: "WebhookCreate";
|
||||
webhook: string;
|
||||
name: string;
|
||||
channel: string;
|
||||
}
|
||||
| {
|
||||
/** @enum {string} */
|
||||
type: "WebhookDelete";
|
||||
webhook: string;
|
||||
name: string;
|
||||
channel: string;
|
||||
}
|
||||
| {
|
||||
/** @enum {string} */
|
||||
type: "EmojiCreate";
|
||||
emoji: string;
|
||||
name: string;
|
||||
}
|
||||
| {
|
||||
/** @enum {string} */
|
||||
type: "EmojiUpdate";
|
||||
emoji: string;
|
||||
before: components["schemas"]["PartialEmoji"];
|
||||
after: components["schemas"]["PartialEmoji"];
|
||||
}
|
||||
| {
|
||||
/** @enum {string} */
|
||||
type: "EmojiDelete";
|
||||
emoji: string;
|
||||
name: string;
|
||||
};
|
||||
/** @description Partial representation of a channel */
|
||||
PartialChannel: {
|
||||
name?: string | null;
|
||||
owner?: string | null;
|
||||
description?: string | null;
|
||||
icon?: components["schemas"]["File"] | null;
|
||||
nsfw?: boolean | null;
|
||||
active?: boolean | null;
|
||||
/** Format: int64 */
|
||||
permissions?: number | null;
|
||||
role_permissions?: {
|
||||
[key: string]: components["schemas"]["OverrideField"];
|
||||
} | null;
|
||||
default_permissions?: components["schemas"]["OverrideField"] | null;
|
||||
last_message_id?: string | null;
|
||||
voice?: components["schemas"]["VoiceInformation"] | null;
|
||||
/** Format: uint64 */
|
||||
slowmode?: number | null;
|
||||
};
|
||||
PartialMember: {
|
||||
id?: components["schemas"]["MemberCompositeKey"] | null;
|
||||
joined_at?: components["schemas"]["ISO8601 Timestamp"] | null;
|
||||
nickname?: string | null;
|
||||
pronouns?: string | null;
|
||||
avatar?: components["schemas"]["File"] | null;
|
||||
roles?: string[] | null;
|
||||
timeout?: components["schemas"]["ISO8601 Timestamp"] | null;
|
||||
can_publish?: boolean | null;
|
||||
can_receive?: boolean | null;
|
||||
};
|
||||
PartialServer: {
|
||||
id?: string | null;
|
||||
owner?: string | null;
|
||||
name?: string | null;
|
||||
description?: string | null;
|
||||
channels?: string[] | null;
|
||||
categories?: components["schemas"]["Category"][] | null;
|
||||
system_messages?: components["schemas"]["SystemMessageChannels"] | null;
|
||||
roles?: { [key: string]: components["schemas"]["Role"] } | null;
|
||||
/** Format: int64 */
|
||||
default_permissions?: number | null;
|
||||
icon?: components["schemas"]["File"] | null;
|
||||
banner?: components["schemas"]["File"] | null;
|
||||
/** Format: uint32 */
|
||||
flags?: number | null;
|
||||
nsfw?: boolean | null;
|
||||
analytics?: boolean | null;
|
||||
discoverable?: boolean | null;
|
||||
};
|
||||
PartialRole: {
|
||||
id?: string | null;
|
||||
name?: string | null;
|
||||
permissions?: components["schemas"]["OverrideField"] | null;
|
||||
colour?: string | null;
|
||||
hoist?: boolean | null;
|
||||
/** Format: int64 */
|
||||
rank?: number | null;
|
||||
icon?: components["schemas"]["File"] | null;
|
||||
};
|
||||
/** @description Partial emoji representation */
|
||||
PartialEmoji: {
|
||||
name?: string | null;
|
||||
};
|
||||
/** @description Public invite response */
|
||||
InviteResponse:
|
||||
| {
|
||||
@@ -3469,6 +3717,10 @@ export interface operations {
|
||||
/** Whether to not send a leave message */
|
||||
leave_silently?: boolean | null;
|
||||
};
|
||||
header: {
|
||||
/** Reason for action which is stored in the audit log. */
|
||||
"X-Audit-Log-Reason"?: string;
|
||||
};
|
||||
};
|
||||
responses: {
|
||||
/** Success */
|
||||
@@ -3487,6 +3739,10 @@ export interface operations {
|
||||
path: {
|
||||
target: components["schemas"]["Id"];
|
||||
};
|
||||
header: {
|
||||
/** Reason for action which is stored in the audit log. */
|
||||
"X-Audit-Log-Reason"?: string;
|
||||
};
|
||||
};
|
||||
responses: {
|
||||
200: {
|
||||
@@ -3542,6 +3798,10 @@ export interface operations {
|
||||
path: {
|
||||
target: components["schemas"]["Id"];
|
||||
};
|
||||
header: {
|
||||
/** Reason for action which is stored in the audit log. */
|
||||
"X-Audit-Log-Reason"?: string;
|
||||
};
|
||||
};
|
||||
responses: {
|
||||
200: {
|
||||
@@ -3663,6 +3923,10 @@ export interface operations {
|
||||
target: components["schemas"]["Id"];
|
||||
msg: components["schemas"]["Id"];
|
||||
};
|
||||
header: {
|
||||
/** Reason for action which is stored in the audit log. */
|
||||
"X-Audit-Log-Reason"?: string;
|
||||
};
|
||||
};
|
||||
responses: {
|
||||
/** Success */
|
||||
@@ -3682,6 +3946,10 @@ export interface operations {
|
||||
target: components["schemas"]["Id"];
|
||||
msg: components["schemas"]["Id"];
|
||||
};
|
||||
header: {
|
||||
/** Reason for action which is stored in the audit log. */
|
||||
"X-Audit-Log-Reason"?: string;
|
||||
};
|
||||
};
|
||||
responses: {
|
||||
/** Success */
|
||||
@@ -3723,6 +3991,10 @@ export interface operations {
|
||||
target: components["schemas"]["Id"];
|
||||
msg: components["schemas"]["Id"];
|
||||
};
|
||||
header: {
|
||||
/** Reason for action which is stored in the audit log. */
|
||||
"X-Audit-Log-Reason"?: string;
|
||||
};
|
||||
};
|
||||
responses: {
|
||||
/** Success */
|
||||
@@ -3774,6 +4046,10 @@ export interface operations {
|
||||
path: {
|
||||
target: components["schemas"]["Id"];
|
||||
};
|
||||
header: {
|
||||
/** Reason for action which is stored in the audit log. */
|
||||
"X-Audit-Log-Reason"?: string;
|
||||
};
|
||||
};
|
||||
responses: {
|
||||
/** Success */
|
||||
@@ -3906,6 +4182,10 @@ export interface operations {
|
||||
target: components["schemas"]["Id"];
|
||||
role_id: string;
|
||||
};
|
||||
header: {
|
||||
/** Reason for action which is stored in the audit log. */
|
||||
"X-Audit-Log-Reason"?: string;
|
||||
};
|
||||
};
|
||||
responses: {
|
||||
200: {
|
||||
@@ -3936,6 +4216,10 @@ export interface operations {
|
||||
path: {
|
||||
target: components["schemas"]["Id"];
|
||||
};
|
||||
header: {
|
||||
/** Reason for action which is stored in the audit log. */
|
||||
"X-Audit-Log-Reason"?: string;
|
||||
};
|
||||
};
|
||||
responses: {
|
||||
200: {
|
||||
@@ -4056,6 +4340,10 @@ export interface operations {
|
||||
path: {
|
||||
channel_id: components["schemas"]["Id"];
|
||||
};
|
||||
header: {
|
||||
/** Reason for action which is stored in the audit log. */
|
||||
"X-Audit-Log-Reason"?: string;
|
||||
};
|
||||
};
|
||||
responses: {
|
||||
200: {
|
||||
@@ -4150,6 +4438,10 @@ export interface operations {
|
||||
path: {
|
||||
target: components["schemas"]["Id"];
|
||||
};
|
||||
header: {
|
||||
/** Reason for action which is stored in the audit log. */
|
||||
"X-Audit-Log-Reason"?: string;
|
||||
};
|
||||
};
|
||||
responses: {
|
||||
200: {
|
||||
@@ -4194,6 +4486,10 @@ export interface operations {
|
||||
path: {
|
||||
server: components["schemas"]["Id"];
|
||||
};
|
||||
header: {
|
||||
/** Reason for action which is stored in the audit log. */
|
||||
"X-Audit-Log-Reason"?: string;
|
||||
};
|
||||
};
|
||||
responses: {
|
||||
200: {
|
||||
@@ -4271,6 +4567,10 @@ export interface operations {
|
||||
server_id: components["schemas"]["Id"];
|
||||
member_id: components["schemas"]["Id"];
|
||||
};
|
||||
header: {
|
||||
/** Reason for action which is stored in the audit log. */
|
||||
"X-Audit-Log-Reason"?: string;
|
||||
};
|
||||
};
|
||||
responses: {
|
||||
/** Success */
|
||||
@@ -4290,6 +4590,10 @@ export interface operations {
|
||||
server_id: components["schemas"]["Id"];
|
||||
member_id: components["schemas"]["Id"];
|
||||
};
|
||||
header: {
|
||||
/** Reason for action which is stored in the audit log. */
|
||||
"X-Audit-Log-Reason"?: string;
|
||||
};
|
||||
};
|
||||
responses: {
|
||||
200: {
|
||||
@@ -4344,6 +4648,10 @@ export interface operations {
|
||||
server: components["schemas"]["Id"];
|
||||
target: components["schemas"]["Id"];
|
||||
};
|
||||
header: {
|
||||
/** Reason for action which is stored in the audit log. */
|
||||
"X-Audit-Log-Reason"?: string;
|
||||
};
|
||||
};
|
||||
responses: {
|
||||
200: {
|
||||
@@ -4371,6 +4679,10 @@ export interface operations {
|
||||
server: components["schemas"]["Id"];
|
||||
target: components["schemas"]["Id"];
|
||||
};
|
||||
header: {
|
||||
/** Reason for action which is stored in the audit log. */
|
||||
"X-Audit-Log-Reason"?: string;
|
||||
};
|
||||
};
|
||||
responses: {
|
||||
/** Success */
|
||||
@@ -4431,6 +4743,10 @@ export interface operations {
|
||||
path: {
|
||||
target: components["schemas"]["Id"];
|
||||
};
|
||||
header: {
|
||||
/** Reason for action which is stored in the audit log. */
|
||||
"X-Audit-Log-Reason"?: string;
|
||||
};
|
||||
};
|
||||
responses: {
|
||||
200: {
|
||||
@@ -4480,6 +4796,10 @@ export interface operations {
|
||||
target: components["schemas"]["Id"];
|
||||
role_id: string;
|
||||
};
|
||||
header: {
|
||||
/** Reason for action which is stored in the audit log. */
|
||||
"X-Audit-Log-Reason"?: string;
|
||||
};
|
||||
};
|
||||
responses: {
|
||||
/** Success */
|
||||
@@ -4499,6 +4819,10 @@ export interface operations {
|
||||
target: components["schemas"]["Id"];
|
||||
role_id: string;
|
||||
};
|
||||
header: {
|
||||
/** Reason for action which is stored in the audit log. */
|
||||
"X-Audit-Log-Reason"?: string;
|
||||
};
|
||||
};
|
||||
responses: {
|
||||
200: {
|
||||
@@ -4526,6 +4850,10 @@ export interface operations {
|
||||
target: components["schemas"]["Id"];
|
||||
role_id: string;
|
||||
};
|
||||
header: {
|
||||
/** Reason for action which is stored in the audit log. */
|
||||
"X-Audit-Log-Reason"?: string;
|
||||
};
|
||||
};
|
||||
responses: {
|
||||
200: {
|
||||
@@ -4552,6 +4880,10 @@ export interface operations {
|
||||
path: {
|
||||
target: components["schemas"]["Id"];
|
||||
};
|
||||
header: {
|
||||
/** Reason for action which is stored in the audit log. */
|
||||
"X-Audit-Log-Reason"?: string;
|
||||
};
|
||||
};
|
||||
responses: {
|
||||
200: {
|
||||
@@ -4599,6 +4931,10 @@ export interface operations {
|
||||
path: {
|
||||
target: components["schemas"]["Id"];
|
||||
};
|
||||
header: {
|
||||
/** Reason for action which is stored in the audit log. */
|
||||
"X-Audit-Log-Reason"?: string;
|
||||
};
|
||||
};
|
||||
responses: {
|
||||
200: {
|
||||
@@ -4619,6 +4955,41 @@ export interface operations {
|
||||
};
|
||||
};
|
||||
};
|
||||
/** Queries a server's audit logs. */
|
||||
audit_log_query_query: {
|
||||
parameters: {
|
||||
path: {
|
||||
target: components["schemas"]["Id"];
|
||||
};
|
||||
query: {
|
||||
/** Filter by who ran the action */
|
||||
user?: string | null;
|
||||
/** Filter by who the action is targetting */
|
||||
target?: string | null;
|
||||
/** Filter by the action type */
|
||||
type?: string[] | null;
|
||||
/** Entries before a certain entry id */
|
||||
before?: string | null;
|
||||
/** Entries after a certain entry id */
|
||||
after?: string | null;
|
||||
/** Maximum number of entries to fetch */
|
||||
limit?: number | null;
|
||||
};
|
||||
};
|
||||
responses: {
|
||||
200: {
|
||||
content: {
|
||||
"application/json": components["schemas"]["AuditLogQueryResponse"];
|
||||
};
|
||||
};
|
||||
/** An error occurred. */
|
||||
default: {
|
||||
content: {
|
||||
"application/json": components["schemas"]["Error"];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
/** Fetch an invite by its id. */
|
||||
invite_fetch_fetch: {
|
||||
parameters: {
|
||||
@@ -4667,6 +5038,10 @@ export interface operations {
|
||||
path: {
|
||||
target: components["schemas"]["Id"];
|
||||
};
|
||||
header: {
|
||||
/** Reason for action which is stored in the audit log. */
|
||||
"X-Audit-Log-Reason"?: string;
|
||||
};
|
||||
};
|
||||
responses: {
|
||||
/** Success */
|
||||
@@ -4706,6 +5081,10 @@ export interface operations {
|
||||
path: {
|
||||
emoji_id: string;
|
||||
};
|
||||
header: {
|
||||
/** Reason for action which is stored in the audit log. */
|
||||
"X-Audit-Log-Reason"?: string;
|
||||
};
|
||||
};
|
||||
responses: {
|
||||
200: {
|
||||
@@ -4732,6 +5111,10 @@ export interface operations {
|
||||
path: {
|
||||
emoji_id: components["schemas"]["Id"];
|
||||
};
|
||||
header: {
|
||||
/** Reason for action which is stored in the audit log. */
|
||||
"X-Audit-Log-Reason"?: string;
|
||||
};
|
||||
};
|
||||
responses: {
|
||||
/** Success */
|
||||
@@ -4750,6 +5133,10 @@ export interface operations {
|
||||
path: {
|
||||
emoji_id: components["schemas"]["Id"];
|
||||
};
|
||||
header: {
|
||||
/** Reason for action which is stored in the audit log. */
|
||||
"X-Audit-Log-Reason"?: string;
|
||||
};
|
||||
};
|
||||
responses: {
|
||||
200: {
|
||||
@@ -5537,6 +5924,10 @@ export interface operations {
|
||||
path: {
|
||||
webhook_id: components["schemas"]["Id"];
|
||||
};
|
||||
header: {
|
||||
/** Reason for action which is stored in the audit log. */
|
||||
"X-Audit-Log-Reason"?: string;
|
||||
};
|
||||
};
|
||||
responses: {
|
||||
/** Success */
|
||||
|
||||
@@ -105,6 +105,14 @@ export type DataPermissionsValue = components['schemas']['DataPermissionsValue']
|
||||
export type Emoji = components['schemas']['Emoji'];
|
||||
export type EmojiParent = components['schemas']['EmojiParent'];
|
||||
export type DataEditRoleRanks = components['schemas']['DataEditRoleRanks'];
|
||||
export type AuditLogQueryResponse = components['schemas']['AuditLogQueryResponse'];
|
||||
export type AuditLogEntry = components['schemas']['AuditLogEntry'];
|
||||
export type AuditLogEntryAction = components['schemas']['AuditLogEntryAction'];
|
||||
export type PartialChannel = components['schemas']['PartialChannel'];
|
||||
export type PartialMember = components['schemas']['PartialMember'];
|
||||
export type PartialServer = components['schemas']['PartialServer'];
|
||||
export type PartialRole = components['schemas']['PartialRole'];
|
||||
export type PartialEmoji = components['schemas']['PartialEmoji'];
|
||||
export type InviteResponse = components['schemas']['InviteResponse'];
|
||||
export type InviteJoinResponse = components['schemas']['InviteJoinResponse'];
|
||||
export type DataCreateEmoji = components['schemas']['DataCreateEmoji'];
|
||||
|
||||
Reference in New Issue
Block a user