mirror of
https://github.com/stoatchat/javascript-client-api.git
synced 2026-07-16 05:31:52 -04:00
feat: update create server + invite resp
This commit is contained in:
+43
-9
@@ -2030,7 +2030,7 @@
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/Server"
|
||||
"$ref": "#/components/schemas/CreateServerResponse"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -6996,6 +6996,31 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"CreateServerResponse": {
|
||||
"title": "Create Server Response",
|
||||
"type": "object",
|
||||
"required": [
|
||||
"channels",
|
||||
"server"
|
||||
],
|
||||
"properties": {
|
||||
"server": {
|
||||
"description": "Server object",
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/Server"
|
||||
}
|
||||
]
|
||||
},
|
||||
"channels": {
|
||||
"description": "Default channels",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/components/schemas/Channel"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"Server": {
|
||||
"description": "Representation of a server on Revolt",
|
||||
"type": "object",
|
||||
@@ -7602,6 +7627,7 @@
|
||||
"required": [
|
||||
"channel_id",
|
||||
"channel_name",
|
||||
"code",
|
||||
"member_count",
|
||||
"server_id",
|
||||
"server_name",
|
||||
@@ -7615,6 +7641,10 @@
|
||||
"Server"
|
||||
]
|
||||
},
|
||||
"code": {
|
||||
"description": "Invite code",
|
||||
"type": "string"
|
||||
},
|
||||
"server_id": {
|
||||
"description": "Id of the server",
|
||||
"type": "string"
|
||||
@@ -7680,6 +7710,7 @@
|
||||
"required": [
|
||||
"channel_id",
|
||||
"channel_name",
|
||||
"code",
|
||||
"type",
|
||||
"user_name"
|
||||
],
|
||||
@@ -7690,6 +7721,10 @@
|
||||
"Group"
|
||||
]
|
||||
},
|
||||
"code": {
|
||||
"description": "Invite code",
|
||||
"type": "string"
|
||||
},
|
||||
"channel_id": {
|
||||
"description": "Id of group channel",
|
||||
"type": "string"
|
||||
@@ -7726,7 +7761,7 @@
|
||||
{
|
||||
"type": "object",
|
||||
"required": [
|
||||
"channel",
|
||||
"channels",
|
||||
"server",
|
||||
"type"
|
||||
],
|
||||
@@ -7737,13 +7772,12 @@
|
||||
"Server"
|
||||
]
|
||||
},
|
||||
"channel": {
|
||||
"description": "Channel we are joining",
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/Channel"
|
||||
}
|
||||
]
|
||||
"channels": {
|
||||
"description": "Channels in the server",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/components/schemas/Channel"
|
||||
}
|
||||
},
|
||||
"server": {
|
||||
"description": "Server we are joining",
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "revolt-api",
|
||||
"version": "0.5.3-rc.8",
|
||||
"version": "0.5.3-rc.10",
|
||||
"description": "Revolt API Library",
|
||||
"main": "dist/index.js",
|
||||
"homepage": "https://developers.revolt.chat",
|
||||
|
||||
+14
-3
@@ -1371,6 +1371,13 @@ export interface components {
|
||||
/** @description Allow / deny values to set for members in this `TextChannel` or `VoiceChannel` */
|
||||
permissions: components["schemas"]["Override"];
|
||||
};
|
||||
/** Create Server Response */
|
||||
CreateServerResponse: {
|
||||
/** @description Server object */
|
||||
server: components["schemas"]["Server"];
|
||||
/** @description Default channels */
|
||||
channels: components["schemas"]["Channel"][];
|
||||
};
|
||||
/** @description Representation of a server on Revolt */
|
||||
Server: {
|
||||
/** @description Unique Id */
|
||||
@@ -1607,6 +1614,8 @@ export interface components {
|
||||
| {
|
||||
/** @enum {string} */
|
||||
type: "Server";
|
||||
/** @description Invite code */
|
||||
code: string;
|
||||
/** @description Id of the server */
|
||||
server_id: string;
|
||||
/** @description Name of the server */
|
||||
@@ -1634,6 +1643,8 @@ export interface components {
|
||||
| {
|
||||
/** @enum {string} */
|
||||
type: "Group";
|
||||
/** @description Invite code */
|
||||
code: string;
|
||||
/** @description Id of group channel */
|
||||
channel_id: string;
|
||||
/** @description Name of group channel */
|
||||
@@ -1649,8 +1660,8 @@ export interface components {
|
||||
InviteJoinResponse: {
|
||||
/** @enum {string} */
|
||||
type: "Server";
|
||||
/** @description Channel we are joining */
|
||||
channel: components["schemas"]["Channel"];
|
||||
/** @description Channels in the server */
|
||||
channels: components["schemas"]["Channel"][];
|
||||
/** @description Server we are joining */
|
||||
server: components["schemas"]["Server"];
|
||||
};
|
||||
@@ -2680,7 +2691,7 @@ export interface operations {
|
||||
responses: {
|
||||
200: {
|
||||
content: {
|
||||
"application/json": components["schemas"]["Server"];
|
||||
"application/json": components["schemas"]["CreateServerResponse"];
|
||||
};
|
||||
};
|
||||
/** An error occurred. */
|
||||
|
||||
@@ -64,6 +64,7 @@ export type CreateVoiceUserResponse = components['schemas']['CreateVoiceUserResp
|
||||
export type Data = components['schemas']['Data'];
|
||||
export type Override = components['schemas']['Override'];
|
||||
export type DataDefaultChannelPermissions = components['schemas']['DataDefaultChannelPermissions'];
|
||||
export type CreateServerResponse = components['schemas']['CreateServerResponse'];
|
||||
export type Server = components['schemas']['Server'];
|
||||
export type Category = components['schemas']['Category'];
|
||||
export type SystemMessageChannels = components['schemas']['SystemMessageChannels'];
|
||||
|
||||
Reference in New Issue
Block a user