mirror of
https://github.com/stoatchat/javascript-client-api.git
synced 2026-08-26 12:35:48 -04:00
chore: bump version / remove nonce from req
This commit is contained in:
+1
-1
@@ -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",
|
||||
|
||||
@@ -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.
|
||||
*
|
||||
|
||||
@@ -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
@@ -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
@@ -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
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user