New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

revolt-api

Package Overview
Dependencies
Maintainers
1
Versions
99
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

revolt-api - npm Package Compare versions

Comparing version 0.5.3-alpha.2 to 0.5.3-alpha.8

2

package.json
{
"name": "revolt-api",
"version": "0.5.3-alpha.2",
"version": "0.5.3-alpha.8",
"description": "Revolt API typings",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

@@ -171,3 +171,4 @@ import { body, noContent, parameter, ref, success } from "../openapi/generators.js";

...await body("Message to be sent.", schema`
import type { Id, Nonce, AutumnId } from './_common';
import type { Id, AutumnId } from './_common';
import type { Masquerade } from './Channels';

@@ -182,4 +183,2 @@ interface ${'SendMessage'} {

nonce: Nonce;
/**

@@ -204,2 +203,4 @@ * Attachments to include in message.

}[]
masquerade?: Masquerade;
}

@@ -418,3 +419,3 @@ `),

...await body("Group Data", schema`
import { Id, Nonce } from './_common';
import { Id } from './_common';

@@ -436,4 +437,2 @@ interface ${'GroupData'} {

nonce: Nonce;
/**

@@ -440,0 +439,0 @@ * Array of user IDs to add to the group.

@@ -96,3 +96,3 @@ import { body, noContent, parameter, ref, success } from "../openapi/generators.js";

...await body("Server Data", schema`
import { Id, Nonce } from './_common';
import { Id } from './_common';

@@ -118,4 +118,2 @@ interface ${'ServerData'} {

nsfw?: boolean;
nonce: Nonce;
}

@@ -136,3 +134,3 @@ `),

...await body("Channel Data", schema`
import { Id, Nonce } from './_common';
import { Id } from './_common';

@@ -163,4 +161,2 @@ interface ${'ChannelData'} {

nsfw?: boolean;
nonce: Nonce;
}

@@ -167,0 +163,0 @@ `),

@@ -65,2 +65,13 @@ import { body, noContent, parameter, ref, success } from "../openapi/generators.js";

}
),
get: routeAuthenticated(
"Fetch Self",
"Retrieve your user information.",
{
...userParams,
...await success(
"User information.",
ref("User")
)
}
)

@@ -137,8 +148,8 @@ });

get: routeAuthenticated(
"Fetch Mutual Friends",
"Retrieve a list of mutual friends with another user.",
"Fetch Mutual Friends And Servers",
"Retrieve a list of mutual friends and servers with another user.",
{
...userParams,
...await success(
"Mutual friends.",
"Mutual friends and servers.",
schema`

@@ -150,2 +161,6 @@ interface ${'MutualFriends'} {

users: string[]
/**
* Array of server IDs who both you and the other user are members of.
*/
servers: string[]
}

@@ -152,0 +167,0 @@ `

@@ -149,4 +149,20 @@ import type { Attachment } from "./Autumn"

export type Channel = (SavedMessagesChannel | DirectMessageChannel | GroupChannel | TextChannel | VoiceChannel) & { nonce?: string }
export type Channel = (SavedMessagesChannel | DirectMessageChannel | GroupChannel | TextChannel | VoiceChannel)
/**
* Masquerade displayed for a message.
* Replaces user's name and avatar.
*/
export type Masquerade = {
/**
* Nickname to display
*/
name: string
/**
* Avatar URL
*/
avatar: string
}
export type Message = {

@@ -199,2 +215,4 @@ /**

replies?: Id[]
masqurade?: Masquerade
}

@@ -201,0 +219,0 @@

import type { Attachment } from './Autumn';
import type { Id, Nonce } from './_common';
import type { Id } from './_common';

@@ -100,4 +100,2 @@ export type MemberCompositeKey = {

nonce?: Nonce
/**

@@ -104,0 +102,0 @@ * User ID of server owner

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc