mirror of
https://github.com/stoatchat/javascript-client-api.git
synced 2026-07-18 16:14:27 -04:00
chore: build library from latest spec
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",["{target}"]],["bots","@me"],["channels",["{target}"]],["channels","create"],["servers","create"],["servers",["{target}"]],["invites",["{target}"]],["onboard","hello"],["onboard","complete"],["push","subscribe"],["push","unsubscribe"],["sync","unreads"]],"3":[["users","@me","username"],["users",["{target}"],"default_avatar"],["users",["{target}"],"profile"],["users",["{target}"],"dm"],["users",["{target}"],"mutual"],["users",["{target}"],"friend"],["users",["{target}"],"block"],["bots",["{target}"],"invite"],["channels",["{target}"],"members"],["channels",["{target}"],"invites"],["channels",["{target}"],"messages"],["channels",["{target}"],"search"],["channels",["{target}"],"join_call"],["servers",["{target}"],"ack"],["servers",["{target}"],"channels"],["servers",["{target}"],"members"],["servers",["{target}"],"bans"],["servers",["{target}"],"invites"],["servers",["{target}"],"roles"],["servers",["{target}"],"emojis"],["custom","emoji",["{id}"]],["auth","account","create"],["auth","account","reverify"],["auth","account","delete"],["auth","account",""],["auth","account","disable"],["auth","account","reset_password"],["auth","session","login"],["auth","session","logout"],["auth","session","all"],["auth","session",["{id}"]],["auth","mfa","ticket"],["auth","mfa",""],["auth","mfa","recovery"],["auth","mfa","methods"],["auth","mfa","totp"],["sync","settings","fetch"],["sync","settings","set"]],"4":[["channels",["{target}"],"ack",["{message}"]],["channels",["{_target}"],"messages","stale"],["channels",["{target}"],"messages",["{msg}"]],["channels",["{target}"],"messages","bulk"],["channels",["{target}"],"recipients",["{member}"]],["channels",["{target}"],"permissions",["{role_id}"]],["channels",["{target}"],"permissions","default"],["servers",["{target}"],"members",["{member}"]],["servers",["{server}"],"members",["{target}"]],["servers",["{server}"],"bans",["{target}"]],["servers",["{target}"],"roles",["{role_id}"]],["servers",["{target}"],"permissions",["{role_id}"]],["servers",["{target}"],"permissions","default"],["auth","account","change","password"],["auth","account","change","email"],["auth","account","verify",["{code}"]]],"5":[["channels",["{target}"],"messages",["{msg}"],"reactions"]],"6":[["channels",["{target}"],"messages",["{msg}"],"reactions",["{emoji}"]]]};
|
||||
export const queryParams = {"/":{"get":[]},"/users/@me":{"get":[],"patch":[]},"/users/{target}":{"get":[]},"/users/@me/username":{"patch":[]},"/users/{target}/default_avatar":{"get":[]},"/users/{target}/profile":{"get":[]},"/users/dms":{"get":[]},"/users/{target}/dm":{"get":[]},"/users/{target}/mutual":{"get":[]},"/users/{target}/friend":{"put":[],"delete":[]},"/users/{target}/block":{"put":[],"delete":[]},"/users/friend":{"post":[]},"/bots/create":{"post":[]},"/bots/{target}/invite":{"get":[],"post":[]},"/bots/{target}":{"get":[],"delete":[],"patch":[]},"/bots/@me":{"get":[]},"/channels/{target}/ack/{message}":{"put":[]},"/channels/{target}":{"get":[],"delete":["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":[],"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/{server}/bans/{target}":{"put":[],"delete":[]},"/servers/{target}/bans":{"get":[]},"/servers/{target}/invites":{"get":[]},"/servers/{target}/roles":{"post":[]},"/servers/{target}/roles/{role_id}":{"delete":[],"patch":[]},"/servers/{target}/permissions/{role_id}":{"put":[]},"/servers/{target}/permissions/default":{"put":[]},"/servers/{target}/emojis":{"get":[]},"/invites/{target}":{"get":[],"post":[],"delete":[]},"/custom/emoji/{id}":{"get":[],"put":[],"delete":[]},"/auth/account/create":{"post":[]},"/auth/account/reverify":{"post":[]},"/auth/account/delete":{"put":[],"post":[]},"/auth/account/":{"get":[]},"/auth/account/disable":{"post":[]},"/auth/account/change/password":{"patch":[]},"/auth/account/change/email":{"patch":[]},"/auth/account/verify/{code}":{"post":[]},"/auth/account/reset_password":{"post":[],"patch":[]},"/auth/session/login":{"post":[]},"/auth/session/logout":{"post":[]},"/auth/session/all":{"get":[],"delete":["revoke_self"]},"/auth/session/{id}":{"delete":[],"patch":[]},"/auth/mfa/ticket":{"put":[]},"/auth/mfa/":{"get":[]},"/auth/mfa/recovery":{"post":[],"patch":[]},"/auth/mfa/methods":{"get":[]},"/auth/mfa/totp":{"put":[],"post":[],"delete":[]},"/onboard/hello":{"get":[]},"/onboard/complete":{"post":[]},"/push/subscribe":{"post":[]},"/push/unsubscribe":{"post":[]},"/sync/settings/fetch":{"post":[]},"/sync/settings/set":{"post":["timestamp"]},"/sync/unreads":{"get":[]}};
|
||||
export const pathResolve = {"1":[[""]],"2":[["users","@me"],["users",["{target}"]],["users","dms"],["users","friend"],["bots","create"],["bots",["{target}"]],["bots","@me"],["channels",["{target}"]],["channels","create"],["servers","create"],["servers",["{target}"]],["invites",["{target}"]],["safety","report"],["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}"],"bans"],["servers",["{target}"],"invites"],["servers",["{target}"],"roles"],["servers",["{target}"],"emojis"],["custom","emoji",["{id}"]],["auth","account","create"],["auth","account","reverify"],["auth","account","delete"],["auth","account",""],["auth","account","disable"],["auth","account","reset_password"],["auth","session","login"],["auth","session","logout"],["auth","session","all"],["auth","session",["{id}"]],["auth","mfa","ticket"],["auth","mfa",""],["auth","mfa","recovery"],["auth","mfa","methods"],["auth","mfa","totp"],["sync","settings","fetch"],["sync","settings","set"]],"4":[["channels",["{target}"],"ack",["{message}"]],["channels",["{_target}"],"messages","stale"],["channels",["{target}"],"messages",["{msg}"]],["channels",["{target}"],"messages","bulk"],["channels",["{target}"],"recipients",["{member}"]],["channels",["{target}"],"permissions",["{role_id}"]],["channels",["{target}"],"permissions","default"],["servers",["{target}"],"members",["{member}"]],["servers",["{server}"],"members",["{target}"]],["servers",["{server}"],"bans",["{target}"]],["servers",["{target}"],"roles",["{role_id}"]],["servers",["{target}"],"permissions",["{role_id}"]],["servers",["{target}"],"permissions","default"],["auth","account","change","password"],["auth","account","change","email"],["auth","account","verify",["{code}"]]],"5":[["channels",["{target}"],"messages",["{msg}"],"reactions"]],"6":[["channels",["{target}"],"messages",["{msg}"],"reactions",["{emoji}"]]]};
|
||||
export const queryParams = {"/":{"get":[]},"/users/@me":{"get":[],"patch":[]},"/users/{target}":{"get":[]},"/users/{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/{target}":{"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/stale":{"post":[]},"/channels/{target}/messages/{msg}":{"get":[],"delete":[],"patch":[]},"/channels/{target}/messages/bulk":{"delete":[]},"/channels/create":{"post":[]},"/channels/{target}/recipients/{member}":{"put":[],"delete":[]},"/channels/{target}/join_call":{"post":[]},"/channels/{target}/permissions/{role_id}":{"put":[]},"/channels/{target}/permissions/default":{"put":[]},"/channels/{target}/messages/{msg}/reactions/{emoji}":{"put":[],"delete":["user_id","remove_all"]},"/channels/{target}/messages/{msg}/reactions":{"delete":[]},"/servers/create":{"post":[]},"/servers/{target}":{"get":[],"delete":["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/{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/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":[]},"/push/subscribe":{"post":[]},"/push/unsubscribe":{"post":[]},"/sync/settings/fetch":{"post":[]},"/sync/settings/set":{"post":["timestamp"]},"/sync/unreads":{"get":[]}};
|
||||
@@ -6,6 +6,8 @@ export type APIRoutes =
|
||||
| { method: 'patch', path: `/users/@me`, parts: 2, params: paths['/users/@me']['patch']['requestBody']['content']['application/json'], response: paths['/users/@me']['patch']['responses']['200']['content']['application/json'] }
|
||||
| { method: 'get', path: `/users/${string}`, parts: 2, params: undefined, response: paths['/users/{target}']['get']['responses']['200']['content']['application/json'] }
|
||||
| { method: 'get', path: '-/users/{target}', parts: 2, params: undefined, response: paths['/users/{target}']['get']['responses']['200']['content']['application/json'] }
|
||||
| { method: 'get', path: `/users/${string}/flags`, parts: 3, params: undefined, response: paths['/users/{target}/flags']['get']['responses']['200']['content']['application/json'] }
|
||||
| { method: 'get', path: '-/users/{target}/flags', parts: 3, params: undefined, response: paths['/users/{target}/flags']['get']['responses']['200']['content']['application/json'] }
|
||||
| { method: 'patch', path: `/users/@me/username`, parts: 3, params: paths['/users/@me/username']['patch']['requestBody']['content']['application/json'], response: paths['/users/@me/username']['patch']['responses']['200']['content']['application/json'] }
|
||||
| { method: 'get', path: `/users/${string}/default_avatar`, parts: 3, params: undefined, response: paths['/users/{target}/default_avatar']['get']['responses']['200']['content']['image/png'] }
|
||||
| { method: 'get', path: '-/users/{target}/default_avatar', parts: 3, params: undefined, response: paths['/users/{target}/default_avatar']['get']['responses']['200']['content']['image/png'] }
|
||||
@@ -133,6 +135,7 @@ export type APIRoutes =
|
||||
| { method: 'put', path: '-/custom/emoji/{id}', parts: 3, params: paths['/custom/emoji/{id}']['put']['requestBody']['content']['application/json'], response: paths['/custom/emoji/{id}']['put']['responses']['200']['content']['application/json'] }
|
||||
| { method: 'delete', path: `/custom/emoji/${string}`, parts: 3, params: undefined, response: undefined }
|
||||
| { method: 'delete', path: '-/custom/emoji/{id}', parts: 3, params: undefined, response: undefined }
|
||||
| { method: 'post', path: `/safety/report`, parts: 2, params: paths['/safety/report']['post']['requestBody']['content']['application/json'], response: undefined }
|
||||
| { method: 'post', path: `/auth/account/create`, parts: 3, params: paths['/auth/account/create']['post']['requestBody']['content']['application/json'], response: undefined }
|
||||
| { method: 'post', path: `/auth/account/reverify`, parts: 3, params: paths['/auth/account/reverify']['post']['requestBody']['content']['application/json'], response: undefined }
|
||||
| { method: 'put', path: `/auth/account/delete`, parts: 3, params: paths['/auth/account/delete']['put']['requestBody']['content']['application/json'], response: undefined }
|
||||
|
||||
+156
-6
@@ -18,6 +18,10 @@ export interface paths {
|
||||
/** Retrieve a user's information. */
|
||||
get: operations["fetch_user_req"];
|
||||
};
|
||||
"/users/{target}/flags": {
|
||||
/** Retrieve a user's flags. */
|
||||
get: operations["fetch_user_flags_fetch_user_flags"];
|
||||
};
|
||||
"/users/@me/username": {
|
||||
/** Change your username. */
|
||||
patch: operations["change_username_req"];
|
||||
@@ -284,6 +288,10 @@ export interface paths {
|
||||
/** Delete an emoji by its id. */
|
||||
delete: operations["emoji_delete_delete_emoji"];
|
||||
};
|
||||
"/safety/report": {
|
||||
/** Report a piece of content to the moderation team. */
|
||||
post: operations["report_content_report_content"];
|
||||
};
|
||||
"/auth/account/create": {
|
||||
/** Create a new account. */
|
||||
post: operations["create_account_create_account"];
|
||||
@@ -422,6 +430,8 @@ export interface components {
|
||||
app: string;
|
||||
/** @description Web Push VAPID public key */
|
||||
vapid: string;
|
||||
/** @description Build information */
|
||||
build: components["schemas"]["BuildInformation"];
|
||||
};
|
||||
/** Feature Configuration */
|
||||
RevoltFeatures: {
|
||||
@@ -461,6 +471,19 @@ export interface components {
|
||||
/** @description URL pointing to the voice WebSocket server */
|
||||
ws: string;
|
||||
};
|
||||
/** Build Information */
|
||||
BuildInformation: {
|
||||
/** @description Commit Hash */
|
||||
commit_sha: string;
|
||||
/** @description Commit Timestamp */
|
||||
commit_timestamp: string;
|
||||
/** @description Git Semver */
|
||||
semver: string;
|
||||
/** @description Git Origin URL */
|
||||
origin_url: string;
|
||||
/** @description Build Timestamp */
|
||||
timestamp: string;
|
||||
};
|
||||
/**
|
||||
* @description Permission value on Revolt
|
||||
*
|
||||
@@ -637,6 +660,10 @@ export interface components {
|
||||
/** @enum {string} */
|
||||
type: "BotIsPrivate";
|
||||
}
|
||||
| {
|
||||
/** @enum {string} */
|
||||
type: "CannotReportYourself";
|
||||
}
|
||||
| {
|
||||
/** @enum {string} */
|
||||
type: "MissingPermission";
|
||||
@@ -677,6 +704,10 @@ export interface components {
|
||||
/** @enum {string} */
|
||||
type: "InvalidCredentials";
|
||||
}
|
||||
| {
|
||||
/** @enum {string} */
|
||||
type: "InvalidProperty";
|
||||
}
|
||||
| {
|
||||
/** @enum {string} */
|
||||
type: "InvalidSession";
|
||||
@@ -833,6 +864,14 @@ export interface components {
|
||||
owner: string;
|
||||
};
|
||||
Id: string;
|
||||
/** Flag Response */
|
||||
FlagResponse: {
|
||||
/**
|
||||
* Format: int32
|
||||
* @description Flags
|
||||
*/
|
||||
flags: number;
|
||||
};
|
||||
/** User Data */
|
||||
DataEditUser: {
|
||||
/** @description New user status */
|
||||
@@ -1354,6 +1393,11 @@ export interface components {
|
||||
type: "Bandcamp";
|
||||
content_type: components["schemas"]["BandcampType"];
|
||||
id: string;
|
||||
}
|
||||
| {
|
||||
/** @enum {string} */
|
||||
type: "Streamable";
|
||||
id: string;
|
||||
};
|
||||
/**
|
||||
* @description Type of remote Lightspeed.tv content
|
||||
@@ -1411,7 +1455,11 @@ export interface components {
|
||||
Interactions: {
|
||||
/** @description Reactions which should always appear and be distinct */
|
||||
reactions?: string[] | null;
|
||||
/** @description Whether reactions should be restricted to the given list */
|
||||
/**
|
||||
* @description Whether reactions should be restricted to the given list
|
||||
*
|
||||
* Can only be set to true if reactions list is of at least length 1
|
||||
*/
|
||||
restrict_reactions?: boolean;
|
||||
};
|
||||
/** @description Name and / or avatar override information */
|
||||
@@ -1911,6 +1959,11 @@ export interface components {
|
||||
server_icon?: components["schemas"]["File"] | null;
|
||||
/** @description Attachment for server banner */
|
||||
server_banner?: components["schemas"]["File"] | null;
|
||||
/**
|
||||
* Format: int32
|
||||
* @description Enum of server flags
|
||||
*/
|
||||
server_flags?: number | null;
|
||||
/** @description Id of server channel */
|
||||
channel_id: string;
|
||||
/** @description Name of server channel */
|
||||
@@ -1961,8 +2014,62 @@ export interface components {
|
||||
/** @description Whether the emoji is mature */
|
||||
nsfw?: boolean;
|
||||
};
|
||||
/** Report Data */
|
||||
DataReportContent: {
|
||||
/** @description Content being reported */
|
||||
content: components["schemas"]["ReportedContent"];
|
||||
/** @description Additional report description */
|
||||
additional_context?: string;
|
||||
};
|
||||
ReportedContent:
|
||||
| {
|
||||
/** @enum {string} */
|
||||
type: "Message";
|
||||
/** @description ID of the message */
|
||||
id: string;
|
||||
/** @description Reason for reporting message */
|
||||
report_reason: components["schemas"]["ContentReportReason"];
|
||||
}
|
||||
| {
|
||||
/** @enum {string} */
|
||||
type: "Server";
|
||||
/** @description ID of the server */
|
||||
id: string;
|
||||
/** @description Reason for reporting server */
|
||||
report_reason: components["schemas"]["ContentReportReason"];
|
||||
}
|
||||
| {
|
||||
/** @enum {string} */
|
||||
type: "User";
|
||||
/** @description ID of the user */
|
||||
id: string;
|
||||
/** @description Reason for reporting a user */
|
||||
report_reason: components["schemas"]["UserReportReason"];
|
||||
};
|
||||
/**
|
||||
* @description Reason for reporting content (message or server)
|
||||
* @enum {string}
|
||||
*/
|
||||
ContentReportReason:
|
||||
| "NoneSpecified"
|
||||
| "Illegal"
|
||||
| "PromotesHarm"
|
||||
| "SpamAbuse"
|
||||
| "Malware"
|
||||
| "Harassment";
|
||||
/**
|
||||
* @description Reason for reporting a user
|
||||
* @enum {string}
|
||||
*/
|
||||
UserReportReason:
|
||||
| "NoneSpecified"
|
||||
| "SpamAbuse"
|
||||
| "InappropriateProfile"
|
||||
| "Impersonation"
|
||||
| "BanEvasion"
|
||||
| "Underage";
|
||||
/** Error */
|
||||
"RAuth Error":
|
||||
"Authifier Error":
|
||||
| {
|
||||
/** @enum {string} */
|
||||
type: "IncorrectData";
|
||||
@@ -1994,6 +2101,10 @@ export interface components {
|
||||
/** @enum {string} */
|
||||
type: "CaptchaFailed";
|
||||
}
|
||||
| {
|
||||
/** @enum {string} */
|
||||
type: "BlockedByShield";
|
||||
}
|
||||
| {
|
||||
/** @enum {string} */
|
||||
type: "InvalidSession";
|
||||
@@ -2030,10 +2141,6 @@ export interface components {
|
||||
/** @enum {string} */
|
||||
type: "CompromisedPassword";
|
||||
}
|
||||
| {
|
||||
/** @enum {string} */
|
||||
type: "DisabledAccount";
|
||||
}
|
||||
| {
|
||||
/** @enum {string} */
|
||||
type: "ShortPassword";
|
||||
@@ -2152,6 +2259,11 @@ export interface components {
|
||||
result: "MFA";
|
||||
ticket: string;
|
||||
allowed_methods: components["schemas"]["MFAMethod"][];
|
||||
}
|
||||
| {
|
||||
/** @enum {string} */
|
||||
result: "Disabled";
|
||||
user_id: string;
|
||||
};
|
||||
/** @description Web Push subscription */
|
||||
WebPushSubscription: {
|
||||
@@ -2331,6 +2443,27 @@ export interface operations {
|
||||
};
|
||||
};
|
||||
};
|
||||
/** Retrieve a user's flags. */
|
||||
fetch_user_flags_fetch_user_flags: {
|
||||
parameters: {
|
||||
path: {
|
||||
target: components["schemas"]["Id"];
|
||||
};
|
||||
};
|
||||
responses: {
|
||||
200: {
|
||||
content: {
|
||||
"application/json": components["schemas"]["FlagResponse"];
|
||||
};
|
||||
};
|
||||
/** An error occurred. */
|
||||
default: {
|
||||
content: {
|
||||
"application/json": components["schemas"]["Error"];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
/** Change your username. */
|
||||
change_username_req: {
|
||||
responses: {
|
||||
@@ -3803,6 +3936,23 @@ export interface operations {
|
||||
};
|
||||
};
|
||||
};
|
||||
/** Report a piece of content to the moderation team. */
|
||||
report_content_report_content: {
|
||||
responses: {
|
||||
200: unknown;
|
||||
/** An error occurred. */
|
||||
default: {
|
||||
content: {
|
||||
"application/json": components["schemas"]["Error"];
|
||||
};
|
||||
};
|
||||
};
|
||||
requestBody: {
|
||||
content: {
|
||||
"application/json": components["schemas"]["DataReportContent"];
|
||||
};
|
||||
};
|
||||
};
|
||||
/** Create a new account. */
|
||||
create_account_create_account: {
|
||||
responses: {
|
||||
|
||||
+7
-1
@@ -5,6 +5,7 @@ export type RevoltFeatures = components['schemas']['RevoltFeatures'];
|
||||
export type CaptchaFeature = components['schemas']['CaptchaFeature'];
|
||||
export type Feature = components['schemas']['Feature'];
|
||||
export type VoiceFeature = components['schemas']['VoiceFeature'];
|
||||
export type BuildInformation = components['schemas']['BuildInformation'];
|
||||
export type Permission = components['schemas']['Permission'];
|
||||
export type UserPermission = components['schemas']['UserPermission'];
|
||||
export type Error = components['schemas']['Error'];
|
||||
@@ -18,6 +19,7 @@ export type Presence = components['schemas']['Presence'];
|
||||
export type UserProfile = components['schemas']['UserProfile'];
|
||||
export type BotInformation = components['schemas']['BotInformation'];
|
||||
export type Id = components['schemas']['Id'];
|
||||
export type FlagResponse = components['schemas']['FlagResponse'];
|
||||
export type DataEditUser = components['schemas']['DataEditUser'];
|
||||
export type UserProfileData = components['schemas']['UserProfileData'];
|
||||
export type FieldsUser = components['schemas']['FieldsUser'];
|
||||
@@ -94,7 +96,11 @@ export type EmojiParent = components['schemas']['EmojiParent'];
|
||||
export type InviteResponse = components['schemas']['InviteResponse'];
|
||||
export type InviteJoinResponse = components['schemas']['InviteJoinResponse'];
|
||||
export type DataCreateEmoji = components['schemas']['DataCreateEmoji'];
|
||||
export type RAuth_Error = components['schemas']['RAuth Error'];
|
||||
export type DataReportContent = components['schemas']['DataReportContent'];
|
||||
export type ReportedContent = components['schemas']['ReportedContent'];
|
||||
export type ContentReportReason = components['schemas']['ContentReportReason'];
|
||||
export type UserReportReason = components['schemas']['UserReportReason'];
|
||||
export type Authifier_Error = components['schemas']['Authifier Error'];
|
||||
export type DataCreateAccount = components['schemas']['DataCreateAccount'];
|
||||
export type DataResendVerification = components['schemas']['DataResendVerification'];
|
||||
export type DataAccountDeletion = components['schemas']['DataAccountDeletion'];
|
||||
|
||||
Reference in New Issue
Block a user