revolt-api
Advanced tools
Comparing version 0.5.2-alpha.0 to 0.5.2-alpha.1
{ | ||
"name": "revolt-api", | ||
"version": "0.5.2-alpha.0", | ||
"version": "0.5.2-alpha.1", | ||
"description": "Revolt API typings", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -16,9 +16,9 @@ import { body, parameter, ref, success } from "../openapi/generators.js"; | ||
...await body("Bot Details", schema` | ||
import type { Username } from './Users'; | ||
interface ${'BotDetails'} { | ||
/** | ||
* Bot name | ||
* @minLength 1 | ||
* @maxLength 32 | ||
* Bot username | ||
**/ | ||
name: string; | ||
name: Username; | ||
} | ||
@@ -41,3 +41,7 @@ `), | ||
import type { Bot } from './Bots'; | ||
type ${'MyBots'} = Bot[]; | ||
import type { User } from './Users'; | ||
type ${'MyBots'} = { | ||
bots: Bot[], | ||
users: User[] | ||
}; | ||
`) | ||
@@ -60,3 +64,10 @@ } | ||
...botParams, | ||
...await success("Bot", ref("Bot")) | ||
...await success("Bot", schema` | ||
import type { Bot } from './Bots'; | ||
import type { User } from './Users'; | ||
type ${'MyBot'} = { | ||
bot: Bot, | ||
user: User | ||
}; | ||
`) | ||
} | ||
@@ -69,9 +80,9 @@ ), | ||
...await body("Requested changes to bot object.", schema` | ||
import type { Username } from './Users'; | ||
interface ${'EditBot'} { | ||
/** | ||
* Channel name | ||
* @minLength 1 | ||
* @maxLength 32 | ||
**/ | ||
name?: string; | ||
* Bot username | ||
*/ | ||
name?: Username; | ||
@@ -88,3 +99,3 @@ /** | ||
**/ | ||
interactionsURL?: string; | ||
interactions_url?: string; | ||
@@ -91,0 +102,0 @@ /** |
@@ -33,3 +33,3 @@ import type { Attachment } from "./Autumn"; | ||
*/ | ||
interactionsURL: string | ||
interactions_url?: string | ||
} | ||
@@ -36,0 +36,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
687114
20146