chore: bump version / remove nonce from req

This commit is contained in:
Paul
2021-11-04 18:30:44 +00:00
parent 6adea87de5
commit 252ca10571
5 changed files with 7 additions and 17 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "revolt-api",
"version": "0.5.3-alpha.2",
"version": "0.5.3-alpha.8",
"description": "Revolt API typings",
"main": "dist/index.js",
"type": "module",
+2 -6
View File
@@ -168,7 +168,7 @@ resource('/channels/:channel/messages', {
{
...channelParams,
...await body("Message to be sent.", schema`
import type { Id, Nonce, AutumnId } from './_common';
import type { Id, AutumnId } from './_common';
interface ${'SendMessage'} {
/**
@@ -178,8 +178,6 @@ resource('/channels/:channel/messages', {
*/
content: string;
nonce: Nonce;
/**
* Attachments to include in message.
*/
@@ -412,7 +410,7 @@ resource('/channels/create', {
"Create a new group with friends.",
{
...await body("Group Data", schema`
import { Id, Nonce } from './_common';
import { Id } from './_common';
interface ${'GroupData'} {
/**
@@ -429,8 +427,6 @@ resource('/channels/create', {
*/
description?: string;
nonce: Nonce;
/**
* Array of user IDs to add to the group.
*
+2 -6
View File
@@ -93,7 +93,7 @@ resource('/servers/create', {
"Create a new server.",
{
...await body("Server Data", schema`
import { Id, Nonce } from './_common';
import { Id } from './_common';
interface ${'ServerData'} {
/**
@@ -114,8 +114,6 @@ resource('/servers/create', {
* Whether this server is not safe for work
*/
nsfw?: boolean;
nonce: Nonce;
}
`),
...await success('Server', ref("Server"))
@@ -131,7 +129,7 @@ resource('/servers/:server/channels', {
{
...serverParams,
...await body("Channel Data", schema`
import { Id, Nonce } from './_common';
import { Id } from './_common';
interface ${'ChannelData'} {
/**
@@ -157,8 +155,6 @@ resource('/servers/:server/channels', {
* Whether this channel is not safe for work
*/
nsfw?: boolean;
nonce: Nonce;
}
`),
...success("Channel", ref("Channel"))
+1 -1
View File
@@ -146,7 +146,7 @@ export type VoiceChannel = ServerChannel & {
channel_type: 'VoiceChannel'
}
export type Channel = (SavedMessagesChannel | DirectMessageChannel | GroupChannel | TextChannel | VoiceChannel) & { nonce?: string }
export type Channel = (SavedMessagesChannel | DirectMessageChannel | GroupChannel | TextChannel | VoiceChannel)
export type Message = {
/**
+1 -3
View File
@@ -1,5 +1,5 @@
import type { Attachment } from './Autumn';
import type { Id, Nonce } from './_common';
import type { Id } from './_common';
export type MemberCompositeKey = {
server: Id
@@ -97,8 +97,6 @@ export type Server = {
*/
_id: Id
nonce?: Nonce
/**
* User ID of server owner
*/