diff --git a/.changeset/README.md b/.changeset/README.md
index cb151e63..3e2b26f7 100644
--- a/.changeset/README.md
+++ b/.changeset/README.md
@@ -11,6 +11,6 @@ We have a quick list of common questions to get you started engaging with this p
The release steps follows this:
-- "pnpm run prerelease"
-- "pnpm i -r"
-- "pnpm recursive publish"
+- "bun run prerelease"
+- "bun install -r"
+- "bun run publish"
diff --git a/.config/.eslintignore b/.config/.eslintignore
deleted file mode 100644
index a7c328ab..00000000
--- a/.config/.eslintignore
+++ /dev/null
@@ -1,10 +0,0 @@
-**/node_modules/**
-**/dist/**
-**/types/**
-**/.next/**
-
-.eslintrc.js
-**/*.d.ts
-
-**/*.js
-lib/generated/**
\ No newline at end of file
diff --git a/.config/.eslintrc.js b/.config/.eslintrc.js
deleted file mode 100644
index 126094bd..00000000
--- a/.config/.eslintrc.js
+++ /dev/null
@@ -1,41 +0,0 @@
-module.exports = {
- root: true,
- extends: ["neon/common", "neon/node", "neon/typescript", "neon/prettier"],
- parserOptions: {
- project: "../../tsconfig.eslint.json",
- },
- rules: {
- "unicorn/no-abusive-eslint-disable": "off",
- "@typescript-eslint/unbound-method": "off",
- "@typescript-eslint/no-var-requires": "off",
- "@typescript-eslint/explicit-function-return-type": "error",
- "@typescript-eslint/explicit-member-accessibility": "off",
- "@typescript-eslint/no-invalid-this": "off",
- "@typescript-eslint/no-use-before-define": "off",
- "@typescript-eslint/promise-function-async": "off",
- "jsdoc/multiline-blocks": "off",
- "jsdoc/newline-after-description": "off",
- "typescript-sort-keys/interface": "off",
- "@typescript-eslint/lines-between-class-members": [
- "warn",
- "always",
- {
- exceptAfterOverload: true,
- },
- ],
- "@typescript-eslint/switch-exhaustiveness-check": "off",
- "array-callback-return": "off",
- "import/extensions": "off",
- "no-param-reassign": "off",
- "promise/prefer-await-to-then": "error",
- "tsdoc/syntax": "off",
- "sonarjs/no-nested-switch": "off",
- "id-length": "off",
- "no-restricted-globals": "off",
- "n/prefer-global/process": "off",
- "no-promise-executor-return": "off",
- "jsdoc/no-undefined-types": "off",
- "prettier/prettier": "off",
- "n/shebang": "off"
- }
-};
diff --git a/.config/.eslintrc.web.js b/.config/.eslintrc.web.js
deleted file mode 100644
index 923461b1..00000000
--- a/.config/.eslintrc.web.js
+++ /dev/null
@@ -1,27 +0,0 @@
-const path = require("path");
-
-module.exports = {
- extends: ["neon/common", "neon/browser", "neon/node", "neon/typescript", "neon/react", "neon/next", "neon/edge", "neon/prettier"],
- settings: {
- react: {
- version: "detect",
- },
- },
- parserOptions: {
- project: "../../tsconfig.eslint.json",
- ecmaFeatures: {
- jsx: true,
- },
- },
- rules: {
- "react/react-in-jsx-scope": 0,
- "react/jsx-filename-extension": [
- 1,
- {
- extensions: [".tsx"],
- },
- ],
- "react/prop-types": 0,
- "@next/next/no-html-link-for-pages": [2, path.join(__dirname, "apps", "docs")],
- },
-};
diff --git a/.config/.lintstagedrc.json b/.config/.lintstagedrc.json
deleted file mode 100644
index 3c0d7e02..00000000
--- a/.config/.lintstagedrc.json
+++ /dev/null
@@ -1,5 +0,0 @@
-{
- "$schema": "https://json.schemastore.org/lintstagedrc.schema.json",
- "*.{js,ts,tsx,jsx}": ["pnpm prettier"],
- "*.{json,md,html,js,jsx,ts,tsx}": ["pnpm prettier"]
-}
diff --git a/.config/.prettierignore b/.config/.prettierignore
deleted file mode 100644
index d3871169..00000000
--- a/.config/.prettierignore
+++ /dev/null
@@ -1,11 +0,0 @@
-**/node_modules/**
-**/dist/**
-**/types/**
-**/.next/**
-
-pnpm-lock.yaml
-.eslintrc.js
-*.d.ts
-
-packages/**/*.js
-apps/**/*.js
diff --git a/.config/.prettierrc.json b/.config/.prettierrc.json
deleted file mode 100644
index 7c7de399..00000000
--- a/.config/.prettierrc.json
+++ /dev/null
@@ -1,9 +0,0 @@
-{
- "$schema": "https://json.schemastore.org/prettierrc.json",
- "endOfLine": "auto",
- "printWidth": 200,
- "semi": true,
- "tabWidth": 4,
- "trailingComma": "all",
- "quoteProps": "consistent"
-}
diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md
index 36f992fb..6b599330 100644
--- a/.github/CONTRIBUTING.md
+++ b/.github/CONTRIBUTING.md
@@ -9,9 +9,9 @@ If you wish to contribute to the codebase or documentation, feel free to fork th
To get ready to work on the codebase, please do the following:
- Fork & clone the repository, and make sure you're on the main branch
-- Run pnpm install -r
+- Run bun install -r
- Code your heart out!
-- Run pnpm run test to run ESLint and ensure any JSDoc changes are valid
+- Run bun run test to run Biome and ensure any JSDoc changes are valid
- Submit a pull request (Make sure you follow the conventional commit format)
> Adapted from https://github.com/discordjs/discord.js/blob/master/.github/CONTRIBUTING.md
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 74a7883e..6545b42c 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -11,49 +11,29 @@ on:
pull_request:
jobs:
- ci-workflow:
+ lint:
runs-on: ubuntu-latest
steps:
- name: Clone repo
uses: actions/checkout@v3
+ - uses: oven-sh/setup-bun@v1
- - uses: pnpm/action-setup@v2
- name: Install pnpm
- id: pnpm-install
- with:
- version: 8.6.3
- run_install: false
-
- - name: Get pnpm store directory
- id: pnpm-cache
- shell: bash
- run: |
- echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
-
- - uses: actions/cache@v3
- name: Setup pnpm cache
- with:
- path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
- key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
- restore-keys: |
- ${{ runner.os }}-pnpm-store-
+ - name: Install dependencies
+ run: bun install
- - name: Set up Node v16
- uses: actions/setup-node@v3
- with:
- node-version: "16"
+ - name: Run linter
+ run: bun run check
+ build:
+ runs-on: ubuntu-latest
+ steps:
+ - name: Clone repo
+ uses: actions/checkout@v3
+ - uses: oven-sh/setup-bun@v1
- name: Install dependencies
- run: pnpm install -r
+ run: bun install
- name: Run TypeScript Compiler
- run: pnpm run build
-
- - name: Run linter
- run: pnpm run lint
-
- - name: Run Prettier
- run: pnpm run prettier:check
+ run: bun run build
- # - name: Run tests
- # run: pnpm run test
+
\ No newline at end of file
diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml
index 55a353ef..66b68faa 100644
--- a/.github/workflows/deploy.yml
+++ b/.github/workflows/deploy.yml
@@ -11,27 +11,16 @@ jobs:
uses: actions/checkout@v3
with:
token: ${{ secrets.API_TOKEN_GITHUB }}
-
- - name: Install PNPM
- uses: pnpm/action-setup@6e1964dde3397a825e79e4607ad57f3f7ca2c7cb
- with:
- version: 8.6.3
-
- - name: Set up Node v16
- uses: actions/setup-node@v3
- with:
- node-version: "16"
- cache: "pnpm"
- registry-url: " https://registry.npmjs.org"
+ - uses: oven-sh/setup-bun@v1
- name: Install dependencies
- run: pnpm install -r
+ run: bun install
- - name: Build Package
- run: pnpm run build
+ - name: Build packages
+ run: bun run build
- name: Apply version changes to packages
- run: pnpm run changeset:version
+ run: bun run changeset:version
- name: Commit package.json changes
uses: EndBug/add-and-commit@v9
@@ -42,7 +31,7 @@ jobs:
push: true
- name: Release
- run: pnpm recursive publish
+ run: bun recursive publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml
index 82586325..926730d4 100644
--- a/.github/workflows/docs.yml
+++ b/.github/workflows/docs.yml
@@ -14,26 +14,16 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v3
-
- - name: Install PNPM
- uses: pnpm/action-setup@6e1964dde3397a825e79e4607ad57f3f7ca2c7cb
- with:
- version: 8.6.3
-
- - name: Install Node v14
- uses: actions/setup-node@v3
- with:
- node-version: "16"
- cache: "pnpm"
+ - uses: oven-sh/setup-bun@v1
- name: Install dependencies
- run: pnpm install -r
-
+ run: bun install
+
- name: Build project
- run: pnpm run build
+ run: bun run build
- name: Build the docs
- run: pnpm run docs
+ run: bun run docs
- name: Commit the Docs
uses: cpina/github-action-push-to-another-repository@main
diff --git a/.husky/pre-commit b/.husky/pre-commit
index edae953c..86625e2c 100755
--- a/.husky/pre-commit
+++ b/.husky/pre-commit
@@ -1,4 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
-npx lint-staged --config .config/.lintstagedrc.json
+bun run check:fix
\ No newline at end of file
diff --git a/apps/docs/next.config.js b/apps/docs/next.config.js
index 05f7336f..22fd0d3c 100644
--- a/apps/docs/next.config.js
+++ b/apps/docs/next.config.js
@@ -1,20 +1,23 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
- reactStrictMode: true,
- swcMinify: true,
- images: {
- domains: ["raw.githubusercontent.com"],
- },
- eslint: {
- ignoreDuringBuilds: true,
- },
- webpack: (config) => {
- // this will override the experiments
- config.experiments = { ...config.experiments, topLevelAwait: true };
- // this will just update topLevelAwait property of config.experiments
- // config.experiments.topLevelAwait = true
- return config;
- },
+ reactStrictMode: true,
+ swcMinify: true,
+ images: {
+ domains: ["raw.githubusercontent.com"],
+ },
+ eslint: {
+ ignoreDuringBuilds: true,
+ },
+ webpack: (config) => {
+ // this will override the experiments
+ config.experiments = {
+ ...config.experiments,
+ topLevelAwait: true,
+ };
+ // this will just update topLevelAwait property of config.experiments
+ // config.experiments.topLevelAwait = true
+ return config;
+ },
};
module.exports = nextConfig;
diff --git a/apps/docs/package.json b/apps/docs/package.json
index 4bd84f55..8c65f58a 100644
--- a/apps/docs/package.json
+++ b/apps/docs/package.json
@@ -3,7 +3,6 @@
"version": "0.1.0",
"private": true,
"scripts": {
- "lint": "eslint --ignore-path ../../.config/.eslintignore --config ../../.config/.eslintrc.web.js src",
"dev": "next dev",
"build": "next build",
"start": "next start"
@@ -28,4 +27,4 @@
"react-code-blocks": "0.0.9-0",
"react-dom": "18.2.0"
}
-}
+}
\ No newline at end of file
diff --git a/apps/docs/postcss.config.js b/apps/docs/postcss.config.js
index 67cdf1a5..e873f1a4 100644
--- a/apps/docs/postcss.config.js
+++ b/apps/docs/postcss.config.js
@@ -1,6 +1,6 @@
module.exports = {
- plugins: {
- tailwindcss: {},
- autoprefixer: {},
- },
+ plugins: {
+ tailwindcss: {},
+ autoprefixer: {},
+ },
};
diff --git a/apps/docs/src/components/Breadcrumb.tsx b/apps/docs/src/components/Breadcrumb.tsx
index b4b94e3c..75d78fd0 100644
--- a/apps/docs/src/components/Breadcrumb.tsx
+++ b/apps/docs/src/components/Breadcrumb.tsx
@@ -1,5 +1,5 @@
import type { IconDefinition } from "@fortawesome/free-solid-svg-icons";
-import { faBox, faBook, faHome } from "@fortawesome/free-solid-svg-icons";
+import { faBook, faBox, faHome } from "@fortawesome/free-solid-svg-icons";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import Link from "next/link";
import { useRouter } from "next/router";
@@ -13,15 +13,30 @@ export const Breadcrumb = () => {
if (typeof lib !== "string") return null;
const defaultPaths: Path[] = [
- { name: "Home", icon: faHome, path: "/" },
- { name: "Docs", icon: faBook, path: "/docs" },
- { name: lib, icon: faBox, path: `/docs/${lib}` },
+ {
+ name: "Home",
+ icon: faHome,
+ path: "/",
+ },
+ {
+ name: "Docs",
+ icon: faBook,
+ path: "/docs",
+ },
+ {
+ name: lib,
+ icon: faBox,
+ path: `/docs/${lib}`,
+ },
];
const splittedPaths: Path[] = asPath
.split("/")
.slice(3)
- .map((x) => ({ name: capitalize(x), path: `/docs/${lib}/${x}` }));
+ .map((x) => ({
+ name: capitalize(x),
+ path: `/docs/${lib}/${x}`,
+ }));
const combinedPaths = [...defaultPaths, ...splittedPaths];
const activePath = combinedPaths.find((x) => x.path === asPath);
if (activePath) activePath.isActive = true;
@@ -32,11 +47,7 @@ export const Breadcrumb = () => {
{combinedPaths.map((path, index, arr) => {
const res = (
-
+
{path.icon && }
{path.name}
diff --git a/apps/docs/src/components/Copiable.tsx b/apps/docs/src/components/Copiable.tsx
index 434b20d3..92c1f565 100644
--- a/apps/docs/src/components/Copiable.tsx
+++ b/apps/docs/src/components/Copiable.tsx
@@ -1,22 +1,23 @@
import { faCheck, faCopy } from "@fortawesome/free-solid-svg-icons";
-import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
-import { useState } from "react"
+import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
+import { useState } from "react";
export const Copiable = ({ text }: { text: string }) => {
const [recentlyCopied, setRecentlyCopied] = useState(false);
- return {
- await navigator.clipboard.writeText(text);
- setRecentlyCopied(true);
- setTimeout(() => setRecentlyCopied(false), 750);
- }}>
-
- {text}
- {recentlyCopied ?
-
- :
- }
-
-
-}
\ No newline at end of file
+ return (
+ {
+ await navigator.clipboard.writeText(text);
+ setRecentlyCopied(true);
+ setTimeout(() => setRecentlyCopied(false), 750);
+ }}
+ >
+
+ {text}
+ {recentlyCopied ? : }
+
+
+ );
+};
diff --git a/apps/docs/src/components/Footer.tsx b/apps/docs/src/components/Footer.tsx
index 327e4326..b6ab85af 100644
--- a/apps/docs/src/components/Footer.tsx
+++ b/apps/docs/src/components/Footer.tsx
@@ -1,28 +1,19 @@
-const HoverableLink = ({ link, children }: { children: any; link: string }) => (
-
- {children}
-
+import React from "react";
+
+const HoverableLink = ({ link, children }: { children: React.ReactNode[] | React.ReactNode; link: string }) => (
+
+ {children}
+
);
export const Footer = ({ buildDate }: { buildDate?: number }) => {
- return (
-
-
-
- Guilded.JS
-
- , docs site built with{" "}
- Next.js and{" "}
-
- TailwindCSS
-
- .{" "}
-
- Jetbrains Mono
- {" "}
- is the font.{" "}
- {buildDate && `Last built at ${new Date(buildDate).toISOString()}`}
-
-
- );
+ return (
+
+
+ Guilded.JS , docs site built with Next.js and{" "}
+ TailwindCSS . Jetbrains Mono is the font.{" "}
+ {buildDate && `Last built at ${new Date(buildDate).toISOString()}`}
+
+
+ );
};
diff --git a/apps/docs/src/components/LayoutWrapper.tsx b/apps/docs/src/components/LayoutWrapper.tsx
index 0cd85318..4d0e5c18 100644
--- a/apps/docs/src/components/LayoutWrapper.tsx
+++ b/apps/docs/src/components/LayoutWrapper.tsx
@@ -1,11 +1,13 @@
+import React from "react";
import { Breadcrumb } from "./Breadcrumb";
import { Footer } from "./Footer";
import { Navbar } from "./Navbar";
-export const LayoutWrapper = ({ buildDate, children }: { buildDate?: number, children: any }) =>
+export const LayoutWrapper = ({ buildDate, children }: { buildDate?: number; children: React.ReactNode[] | React.ReactNode }) => (
{children}
-
\ No newline at end of file
+
+);
diff --git a/apps/docs/src/components/Navbar.tsx b/apps/docs/src/components/Navbar.tsx
index fd8cd709..72739b7b 100644
--- a/apps/docs/src/components/Navbar.tsx
+++ b/apps/docs/src/components/Navbar.tsx
@@ -2,58 +2,43 @@ import Link from "next/link";
import { useState } from "react";
const topBars = {
- Docs: "/docs",
- Guide: "/guide",
- Github: "https://github.com/zaida04/guilded.js",
- "Support Server": "https://guilded.gg/guildedjs",
- "Legacy Docs": "https://guildedjs.github.io/",
+ Docs: "/docs",
+ Guide: "/guide",
+ Github: "https://github.com/zaida04/guilded.js",
+ "Support Server": "https://guilded.gg/guildedjs",
+ "Legacy Docs": "https://guildedjs.github.io/",
};
export const Navbar = () => {
- const [expanded, setExpanded] = useState(false);
+ const [expanded, setExpanded] = useState(false);
- return (
-
-
-
-
- Guilded
- .JS
-
-
- setExpanded(!expanded)}>
-
-
- Menu
-
-
-
-
-
-
- {Object.keys(topBars).map((link) => (
-
- {link}
-
- ))}
-
-
-
-
- );
+ return (
+
+
+
+
+ Guilded
+ .JS
+
+
+
+
setExpanded(!expanded)}>
+
+ Menu
+
+
+
+
+
+
+ {Object.keys(topBars).map((link) => (
+
+ {link}
+
+ ))}
+
+
+
+
+ );
};
diff --git a/apps/docs/src/components/PackageBadge.tsx b/apps/docs/src/components/PackageBadge.tsx
index d1d90fb5..6bbc4716 100644
--- a/apps/docs/src/components/PackageBadge.tsx
+++ b/apps/docs/src/components/PackageBadge.tsx
@@ -3,10 +3,11 @@ import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import Link from "next/link";
import { getUnscopedPackageName } from "../lib/util";
-export const PackageBadge = ({ text }: { text: string }) =>
+export const PackageBadge = ({ text }: { text: string }) => (
-
\ No newline at end of file
+
+);
diff --git a/apps/docs/src/components/RefLink.tsx b/apps/docs/src/components/RefLink.tsx
index 67c22c97..ee7bc24d 100644
--- a/apps/docs/src/components/RefLink.tsx
+++ b/apps/docs/src/components/RefLink.tsx
@@ -1,3 +1,7 @@
import Link from "next/link";
-export const RefLink = ({ lib, name }: { lib: string, name: string }) => {name}
+export const RefLink = ({ lib, name }: { lib: string; name: string }) => (
+
+ {name}
+
+);
diff --git a/apps/docs/src/components/customIcons/BreadCrumbSep.tsx b/apps/docs/src/components/customIcons/BreadCrumbSep.tsx
index 23df3364..2eee1358 100644
--- a/apps/docs/src/components/customIcons/BreadCrumbSep.tsx
+++ b/apps/docs/src/components/customIcons/BreadCrumbSep.tsx
@@ -1,7 +1,9 @@
-import { memo } from "react"
+import { memo } from "react";
export const BreadCrumbSep = memo(() => {
- return
-
-
-})
\ No newline at end of file
+ return (
+
+
+
+ );
+});
diff --git a/apps/docs/src/lib/types.ts b/apps/docs/src/lib/types.ts
index d4fe4b54..38872690 100644
--- a/apps/docs/src/lib/types.ts
+++ b/apps/docs/src/lib/types.ts
@@ -2,9 +2,9 @@ import type { DeclarationReflection } from "typedoc/dist/lib/models/reflections/
export type EntityType = { comment?: { summary: { kind: string; text: string }[] }; name: string };
export type Entity = {
- accessors: DeclarationReflection[];
- constructors: DeclarationReflection[];
- methods: DeclarationReflection[];
- name: string;
- properties: DeclarationReflection[];
+ accessors: DeclarationReflection[];
+ constructors: DeclarationReflection[];
+ methods: DeclarationReflection[];
+ name: string;
+ properties: DeclarationReflection[];
};
diff --git a/apps/docs/src/pages/_app.tsx b/apps/docs/src/pages/_app.tsx
index 8aa6800f..94846a88 100644
--- a/apps/docs/src/pages/_app.tsx
+++ b/apps/docs/src/pages/_app.tsx
@@ -1,11 +1,17 @@
-import '../styles/globals.css'
-import '@fortawesome/fontawesome-svg-core/styles.css';
-import localFont from '@next/font/local'
-import type { AppProps } from 'next/app'
+import "@fortawesome/fontawesome-svg-core/styles.css";
+import localFont from "@next/font/local";
+import type { AppProps } from "next/app";
+import "../styles/globals.css";
-const Mono = localFont({ src: '../styles/fonts/webfonts/JetBrainsMono-Regular.woff2', variable: '--font-mono', display: "swap" })
+const Mono = localFont({
+ src: "../styles/fonts/webfonts/JetBrainsMono-Regular.woff2",
+ variable: "--font-mono",
+ display: "swap",
+});
export default function App({ Component, pageProps }: AppProps) {
- return
-
-
+ return (
+
+
+
+ );
}
diff --git a/apps/docs/src/pages/docs/index.tsx b/apps/docs/src/pages/docs/index.tsx
index 5add96ba..2473785c 100644
--- a/apps/docs/src/pages/docs/index.tsx
+++ b/apps/docs/src/pages/docs/index.tsx
@@ -11,9 +11,9 @@ type Props = { packages: string[] };
// };
const Docs: NextPage = ({ packages }) => {
- return (
-
- {/*
+ return (
+
+ {/* */}
-
+
+ );
};
export default Docs;
diff --git a/apps/docs/src/pages/index.tsx b/apps/docs/src/pages/index.tsx
index 656697ca..134ceeb6 100644
--- a/apps/docs/src/pages/index.tsx
+++ b/apps/docs/src/pages/index.tsx
@@ -24,12 +24,13 @@ export const getStaticProps = (): GetStaticPropsResult<{ buildDate: number }> =>
const buildDate = Date.now();
return {
props: {
- buildDate
- }
- }
-}
+ buildDate,
+ },
+ };
+};
-const description = "Guilded.js is a library written in TypeScript usable in either TypeScript or JavaScript projects. It provides structures, abstractions, and utilities for interaction with the Guilded API.";
+const description =
+ "Guilded.js is a library written in TypeScript usable in either TypeScript or JavaScript projects. It provides structures, abstractions, and utilities for interaction with the Guilded API.";
export default function Home({ buildDate }: InferGetStaticPropsType
) {
return (
@@ -54,7 +55,9 @@ export default function Home({ buildDate }: InferGetStaticPropsType
- {["npm install guilded.js", "yarn add guilded.js", "pnpm add guilded.js"].map(click => )}
+ {["npm install guilded.js", "yarn add guilded.js", "pnpm add guilded.js"].map((click) => (
+
+ ))}
@@ -74,5 +77,5 @@ export default function Home({ buildDate }: InferGetStaticPropsType
>
- )
+ );
}
diff --git a/apps/docs/tailwind.config.js b/apps/docs/tailwind.config.js
index 0b34a9fb..98643746 100644
--- a/apps/docs/tailwind.config.js
+++ b/apps/docs/tailwind.config.js
@@ -1,37 +1,34 @@
const colors = require("tailwindcss/colors");
const { fontFamily } = require("tailwindcss/defaultTheme");
-delete colors["lightBlue"];
-delete colors["warmGray"];
-delete colors["trueGray"];
-delete colors["coolGray"];
-delete colors["blueGray"];
+colors.lightBlue = undefined;
+colors.warmGray = undefined;
+colors.trueGray = undefined;
+colors.coolGray = undefined;
+colors.blueGray = undefined;
/** @type {import('tailwindcss').Config} */
module.exports = {
- content: ["./src/**/*.{js,ts,jsx,tsx}"],
- theme: {
- extend: {
- fontFamily: {
- sans: ["var(--font-mono)", ...fontFamily.sans],
- },
- colors: {
- ...colors,
- },
- borderWidth: {
- ".5": ".5px",
- },
- borderColor: {
- guilded: "#F5C400",
- slate: "#292B32",
- },
- colors: {
- gray: "#191B1F",
- guilded: "#F5C400",
- black: "#111820",
- slate: "#292B32",
- white: "#ececee",
- },
- },
- },
- plugins: [],
+ content: ["./src/**/*.{js,ts,jsx,tsx}"],
+ theme: {
+ extend: {
+ fontFamily: {
+ sans: ["var(--font-mono)", ...fontFamily.sans],
+ },
+ borderWidth: {
+ ".5": ".5px",
+ },
+ borderColor: {
+ guilded: "#F5C400",
+ slate: "#292B32",
+ },
+ colors: {
+ gray: "#191B1F",
+ guilded: "#F5C400",
+ black: "#111820",
+ slate: "#292B32",
+ white: "#ececee",
+ },
+ },
+ },
+ plugins: [],
};
diff --git a/biome.json b/biome.json
new file mode 100644
index 00000000..88627a6a
--- /dev/null
+++ b/biome.json
@@ -0,0 +1,36 @@
+{
+ "$schema": "https://biomejs.dev/schemas/1.4.1/schema.json",
+ "organizeImports": {
+ "enabled": true
+ },
+ "files": {
+ "ignore": [
+ "dist",
+ "node_modules",
+ "types",
+ ".next",
+ "generated",
+ "*.json"
+ ]
+ },
+ "formatter": {
+ "enabled": true,
+ "lineEnding": "lf",
+ "indentWidth": 2,
+ "indentStyle": "tab",
+ "lineWidth": 200
+ },
+ "linter": {
+ "enabled": true,
+ "rules": {
+ "recommended": true,
+ "style": {
+ "noNonNullAssertion": "off",
+ "noParameterAssign": "off"
+ },
+ "suspicious": {
+ "noArrayIndexKey": "off"
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/bun.lockb b/bun.lockb
new file mode 100755
index 00000000..8f7b1c96
Binary files /dev/null and b/bun.lockb differ
diff --git a/package.json b/package.json
index 32f198dc..03b5055b 100644
--- a/package.json
+++ b/package.json
@@ -1,63 +1,59 @@
{
- "name": "@guildedjs/main",
- "private": true,
- "version": "0.0.0",
- "description": "Overarching repository for the Guilded.JS repository",
- "author": "Zaid \"Nico\" ",
- "scripts": {
- "build": "pnpm --filter=!docs recursive run build",
- "build:typecheck": "pnpm --filter=!docs recursive run build:typecheck",
- "lint": "pnpm recursive --no-bail run lint",
- "lint:fix": "pnpm run lint --fix",
- "prettier": "prettier --ignore-path .config/.prettierignore --config .config/.prettierrc.json --write **/*.{ts,js,json,yml,yaml,md}",
- "prettier:check": "prettier --ignore-path .config/.prettierignore --config .config/.prettierrc.json --check **/*.{ts,js,json,yml,yaml,md}",
- "changeset": "changeset",
- "changeset:version": "changeset version",
- "docs": "typedoc && cd docs && find . -type f -name \"*.html\" -exec sed -i'' -e 's/__namedParameters/options/g' {} +",
- "prepublishOnly": "pnpm run lint && pnpm recursive run prepublishOnly",
- "prepare": "husky install"
+ "name": "@guildedjs/main",
+ "private": true,
+ "version": "0.0.0",
+ "description": "Overarching repository for the Guilded.JS repository",
+ "author": "Zaid \"Nico\" ",
+ "scripts": {
+ "build": "turbo run build",
+ "build:typecheck": "turbo run build:typecheck",
+ "check": "biome check apps packages services",
+ "check:fix": "biome check --apply-unsafe apps packages services",
+ "changeset": "changeset",
+ "changeset:version": "changeset version",
+ "docs": "typedoc && cd docs && find . -type f -name \"*.html\" -exec sed -i'' -e 's/__namedParameters/options/g' {} +",
+ "prepublishOnly": "turbo run prepublishOnly",
+ "prepare": "husky install"
+ },
+ "devDependencies": {
+ "@biomejs/biome": "1.5.2",
+ "@changesets/cli": "^2.26.1",
+ "@types/node": "18.16.12",
+ "dotenv": "16.0.3",
+ "gen-esm-wrapper": "1.1.3",
+ "husky": "7.0.4",
+ "lint-staged": "13.2.2",
+ "nodemon": "^2.0.22",
+ "rimraf": "5.0.1",
+ "turbo": "^1.11.2",
+ "typedoc": "0.24.7",
+ "typescript": "5.0.4"
+ },
+ "contributors": [
+ {
+ "name": "Zaid \"Nico\"",
+ "email": "contact@nico.engineer",
+ "url": "https://github.com/zaida04"
},
- "devDependencies": {
- "@changesets/cli": "^2.26.1",
- "@types/node": "18.16.12",
- "dotenv": "16.0.3",
- "eslint": "8.40.0",
- "eslint-config-neon": "0.1.47",
- "gen-esm-wrapper": "1.1.3",
- "husky": "7.0.4",
- "lint-staged": "13.2.2",
- "nodemon": "^2.0.22",
- "pnpm": "8.5.1",
- "prettier": "2.8.8",
- "rimraf": "5.0.1",
- "ts-node": "10.9.1",
- "typedoc": "0.24.7",
- "typescript": "5.0.4"
+ {
+ "name": "Skillz4Killz",
+ "email": "guildedjs@drskillz.33mail.com",
+ "url": "https://github.com/Skillz4Killz"
},
- "contributors": [
- {
- "name": "Zaid \"Nico\"",
- "email": "contact@nico.engineer",
- "url": "https://github.com/zaida04"
- },
- {
- "name": "Skillz4Killz",
- "email": "guildedjs@drskillz.33mail.com",
- "url": "https://github.com/Skillz4Killz"
- },
- {
- "name": "Uhuh \"Dylan\"",
- "email": "dylan@panku.io",
- "url": "https://github.com/uhuh"
- },
- {
- "name": "DaStormer",
- "email": "dastormer@stormdevelopmentz.xyz",
- "url": "https://github.com/DaStormer"
- }
- ],
- "engines": {
- "npm": "only-allow pnpm",
- "node": ">= 16.0.0"
+ {
+ "name": "Uhuh \"Dylan\"",
+ "email": "dylan@panku.io",
+ "url": "https://github.com/uhuh"
+ },
+ {
+ "name": "DaStormer",
+ "email": "dastormer@stormdevelopmentz.xyz",
+ "url": "https://github.com/DaStormer"
}
-}
+ ],
+ "workspaces": [
+ "packages/*",
+ "services/*",
+ "apps/*"
+ ]
+}
\ No newline at end of file
diff --git a/packages/api/__tests__/file-sending/src/index.ts b/packages/api/__tests__/file-sending/src/index.ts
index abc74120..0b9474dc 100644
--- a/packages/api/__tests__/file-sending/src/index.ts
+++ b/packages/api/__tests__/file-sending/src/index.ts
@@ -4,7 +4,12 @@ import { WebhookClient } from "../../../lib/webhook/WebhookClient";
const client = new WebhookClient("");
void (async (): Promise => {
- return client.send({
- files: [{ name: "bbb.png", content: readFileSync("./bbb.png") }],
- });
+ return client.send({
+ files: [
+ {
+ name: "bbb.png",
+ content: readFileSync("./bbb.png"),
+ },
+ ],
+ });
})();
diff --git a/packages/api/lib/generated/api-typings/index.ts b/packages/api/lib/generated/api-typings/index.ts
index 789dc649..fb0d5430 100644
--- a/packages/api/lib/generated/api-typings/index.ts
+++ b/packages/api/lib/generated/api-typings/index.ts
@@ -7,5 +7,6 @@ export type JSON = T["application/json"];
export type WSSchema = components["schemas"][T];
export type WSContent = { content: JSONContent };
-export type WSPayload = components["responses"][T]["content"]["application/json"];
+export type WSPayload =
+ components["responses"][T]["content"]["application/json"];
export type WSPacket = SkeletonWSPayload & { d: WSPayload };
diff --git a/packages/api/lib/generated/api-typings/v1/events.ts b/packages/api/lib/generated/api-typings/v1/events.ts
index 9eebd5aa..58c400fb 100644
--- a/packages/api/lib/generated/api-typings/v1/events.ts
+++ b/packages/api/lib/generated/api-typings/v1/events.ts
@@ -1,62 +1,62 @@
export enum WSOpCodes {
- SUCCESS,
- WELCOME,
- RESUME,
- ERROR = 8,
- PING,
- PONG,
+ SUCCESS = 0,
+ WELCOME = 1,
+ RESUME = 2,
+ ERROR = 8,
+ PING = 9,
+ PONG = 10,
}
export const WebSocketEvents = {
- CalendarEventCreated: "CalendarEventCreated",
- CalendarEventUpdated: "CalendarEventUpdated",
- CalendarEventDeleted: "CalendarEventDeleted",
- CalendarEventRsvpUpdated: "CalendarEventRsvpUpdated",
- CalendarEventRsvpManyUpdated: "CalendarEventRsvpManyUpdated",
- CalendarEventRsvpDeleted: "CalendarEventRsvpDeleted",
- ChatMessageCreated: "ChatMessageCreated",
- ChatMessageUpdated: "ChatMessageUpdated",
- ChatMessageDeleted: "ChatMessageDeleted",
- ServerMemberJoined: "ServerMemberJoined",
- ServerMemberRemoved: "ServerMemberRemoved",
- ServerMemberUpdated: "ServerMemberUpdated",
- ServerMemberBanned: "ServerMemberBanned",
- ServerMemberUnbanned: "ServerMemberUnbanned",
- ServerMemberSocialLinkCreated: "ServerMemberSocialLinkCreated",
- ServerMemberSocialLinkUpdated: "ServerMemberSocialLinkUpdated",
- ServerMemberSocialLinkDeleted: "ServerMemberSocialLinkDeleted",
- BotServerMembershipCreated: "BotServerMembershipCreated",
- BotServerMembershipDeleted: "BotServerMembershipDeleted",
- ServerRolesUpdated: "ServerRolesUpdated",
- ServerWebhookCreated: "ServerWebhookCreated",
- ServerWebhookUpdated: "ServerWebhookUpdated",
- ListItemCompleted: "ListItemCompleted",
- ListItemUncompleted: "ListItemUncompleted",
- ListItemCreated: "ListItemCreated",
- ListItemUpdated: "ListItemUpdated",
- ListItemDeleted: "ListItemDeleted",
- ServerChannelCreated: "ServerChannelCreated",
- ServerChannelUpdated: "ServerChannelUpdated",
- ServerChannelDeleted: "ServerChannelDeleted",
- DocCreated: "DocCreated",
- DocUpdated: "DocUpdated",
- DocDeleted: "DocDeleted",
- ChannelMessageReactionCreated: "ChannelMessageReactionCreated",
- ChannelMessageReactionDeleted: "ChannelMessageReactionDeleted",
- ForumTopicCreated: "ForumTopicCreated",
- ForumTopicUpdated: "ForumTopicUpdated",
- ForumTopicDeleted: "ForumTopicDeleted",
- ForumTopicPinned: "ForumTopicPinned",
- ForumTopicUnpinned: "ForumTopicUnpinned",
- ForumTopicLocked: "ForumTopicLocked",
- ForumTopicUnlocked: "ForumTopicUnlocked",
+ CalendarEventCreated: "CalendarEventCreated",
+ CalendarEventUpdated: "CalendarEventUpdated",
+ CalendarEventDeleted: "CalendarEventDeleted",
+ CalendarEventRsvpUpdated: "CalendarEventRsvpUpdated",
+ CalendarEventRsvpManyUpdated: "CalendarEventRsvpManyUpdated",
+ CalendarEventRsvpDeleted: "CalendarEventRsvpDeleted",
+ ChatMessageCreated: "ChatMessageCreated",
+ ChatMessageUpdated: "ChatMessageUpdated",
+ ChatMessageDeleted: "ChatMessageDeleted",
+ ServerMemberJoined: "ServerMemberJoined",
+ ServerMemberRemoved: "ServerMemberRemoved",
+ ServerMemberUpdated: "ServerMemberUpdated",
+ ServerMemberBanned: "ServerMemberBanned",
+ ServerMemberUnbanned: "ServerMemberUnbanned",
+ ServerMemberSocialLinkCreated: "ServerMemberSocialLinkCreated",
+ ServerMemberSocialLinkUpdated: "ServerMemberSocialLinkUpdated",
+ ServerMemberSocialLinkDeleted: "ServerMemberSocialLinkDeleted",
+ BotServerMembershipCreated: "BotServerMembershipCreated",
+ BotServerMembershipDeleted: "BotServerMembershipDeleted",
+ ServerRolesUpdated: "ServerRolesUpdated",
+ ServerWebhookCreated: "ServerWebhookCreated",
+ ServerWebhookUpdated: "ServerWebhookUpdated",
+ ListItemCompleted: "ListItemCompleted",
+ ListItemUncompleted: "ListItemUncompleted",
+ ListItemCreated: "ListItemCreated",
+ ListItemUpdated: "ListItemUpdated",
+ ListItemDeleted: "ListItemDeleted",
+ ServerChannelCreated: "ServerChannelCreated",
+ ServerChannelUpdated: "ServerChannelUpdated",
+ ServerChannelDeleted: "ServerChannelDeleted",
+ DocCreated: "DocCreated",
+ DocUpdated: "DocUpdated",
+ DocDeleted: "DocDeleted",
+ ChannelMessageReactionCreated: "ChannelMessageReactionCreated",
+ ChannelMessageReactionDeleted: "ChannelMessageReactionDeleted",
+ ForumTopicCreated: "ForumTopicCreated",
+ ForumTopicUpdated: "ForumTopicUpdated",
+ ForumTopicDeleted: "ForumTopicDeleted",
+ ForumTopicPinned: "ForumTopicPinned",
+ ForumTopicUnpinned: "ForumTopicUnpinned",
+ ForumTopicLocked: "ForumTopicLocked",
+ ForumTopicUnlocked: "ForumTopicUnlocked",
} as const;
export type WSEvent = typeof WebSocketEvents;
export type WSEventNames = keyof WSEvent;
export type SkeletonWSPayload = {
- d: unknown;
- op: WSOpCodes;
- s?: string;
- t: keyof WSEvent;
+ d: unknown;
+ op: WSOpCodes;
+ s?: string;
+ t: keyof WSEvent;
};
diff --git a/packages/api/lib/generated/api-typings/v1/structs/Client.ts b/packages/api/lib/generated/api-typings/v1/structs/Client.ts
index 3f20c430..982f84b9 100644
--- a/packages/api/lib/generated/api-typings/v1/structs/Client.ts
+++ b/packages/api/lib/generated/api-typings/v1/structs/Client.ts
@@ -1,6 +1,6 @@
import type { WSPayload } from "../..";
export type ClientUserData = WSPayload<"_WelcomeMessage">["user"] & {
- createdBy: string;
- botId: string;
+ createdBy: string;
+ botId: string;
};
diff --git a/packages/api/lib/generated/api-typings/v1/structs/Embed.ts b/packages/api/lib/generated/api-typings/v1/structs/Embed.ts
index 3ab45efe..fa41b9b7 100644
--- a/packages/api/lib/generated/api-typings/v1/structs/Embed.ts
+++ b/packages/api/lib/generated/api-typings/v1/structs/Embed.ts
@@ -1,70 +1,70 @@
export type EmbedPayload = {
- author?: EmbedAuthor;
- color?: number;
- description?: string;
- fields?: EmbedField[];
- footer?: EmbedFooter;
- image?: EmbedImage;
- thumbnail?: EmbedImage;
- timestamp?: string;
- title?: string;
- url?: string;
+ author?: EmbedAuthor;
+ color?: number;
+ description?: string;
+ fields?: EmbedField[];
+ footer?: EmbedFooter;
+ image?: EmbedImage;
+ thumbnail?: EmbedImage;
+ timestamp?: string;
+ title?: string;
+ url?: string;
};
export type EmbedFooter = {
- icon_url?: string;
- text: string;
+ icon_url?: string;
+ text: string;
};
export type EmbedImage = {
- url: string;
+ url: string;
};
export type EmbedAuthor = {
- icon_url?: string;
- name: string;
- url?: string;
+ icon_url?: string;
+ name: string;
+ url?: string;
};
export type EmbedField = {
- inline?: boolean;
- name: string;
- value: string;
+ inline?: boolean;
+ name: string;
+ value: string;
};
// embed struct for the client API, webhooks mainly
export type APIEmbed = EmbedPayload & {
- author?: APIEmbedAuthor;
- footer?: APIEmbedFooter;
- image?: APIEmbedImage;
- provider?: APIEmbedProvider;
- thumbnail?: APIEmbedThumbnail;
- video?: APIEmbedVideo;
+ author?: APIEmbedAuthor;
+ footer?: APIEmbedFooter;
+ image?: APIEmbedImage;
+ provider?: APIEmbedProvider;
+ thumbnail?: APIEmbedThumbnail;
+ video?: APIEmbedVideo;
};
export type APIEmbedFooter = {
- icon_url?: string;
- proxy_icon_url?: string;
- text: string;
+ icon_url?: string;
+ proxy_icon_url?: string;
+ text: string;
};
export type APIEmbedImage = {
- height?: string;
- proxy_url?: string;
- url: string;
- width?: string;
+ height?: string;
+ proxy_url?: string;
+ url: string;
+ width?: string;
};
export type APIEmbedThumbnail = APIEmbedImage;
export type APIEmbedVideo = APIEmbedImage;
export type APIEmbedProvider = {
- name?: string;
- url?: string;
+ name?: string;
+ url?: string;
};
export type APIEmbedAuthor = {
- icon_url?: string;
- name: string;
- proxy_icon_url?: string;
- url?: string;
+ icon_url?: string;
+ name: string;
+ proxy_icon_url?: string;
+ url?: string;
};
diff --git a/packages/api/lib/generated/api-typings/v1/structs/Webhook.ts b/packages/api/lib/generated/api-typings/v1/structs/Webhook.ts
index 2d36aa43..3af631ac 100644
--- a/packages/api/lib/generated/api-typings/v1/structs/Webhook.ts
+++ b/packages/api/lib/generated/api-typings/v1/structs/Webhook.ts
@@ -1,48 +1,52 @@
export type WebhookContentPayload = {
- botId: string | null;
- channelId: string;
- content: APIContent;
- createdAt: string;
- createdBy: string;
- id: string;
- type: string;
- webhookId: string;
+ botId:
+ | string
+ | null;
+ channelId: string;
+ content: APIContent;
+ createdAt: string;
+ createdBy: string;
+ id: string;
+ type: string;
+ webhookId: string;
};
export type APIContent = {
- document: APIDocument;
- object: string;
+ document: APIDocument;
+ object: string;
};
type APILeaf = {
- marks: APIMark[];
- object: string | "leaf";
- text: string;
+ marks: APIMark[];
+ object:
+ | string
+ | "leaf";
+ text: string;
};
type APIMark = {
- data: unknown;
- object: string;
- type: string;
+ data: unknown;
+ object: string;
+ type: string;
};
type APIDocument = {
- data: unknown;
- nodes: APIDocumentNode[];
- object: string;
+ data: unknown;
+ nodes: APIDocumentNode[];
+ object: string;
};
type APIDocumentNode = {
- data: unknown;
- nodes: APINestedNode[];
- object: string;
- type: string;
+ data: unknown;
+ nodes: APINestedNode[];
+ object: string;
+ type: string;
};
type APINestedNode = {
- data?: unknown;
- leaves?: APILeaf[];
- nodes?: APINestedNode[];
- object: string;
- type?: string;
+ data?: unknown;
+ leaves?: APILeaf[];
+ nodes?: APINestedNode[];
+ object: string;
+ type?: string;
};
diff --git a/packages/api/lib/generated/api-typings/v1/webhook.ts b/packages/api/lib/generated/api-typings/v1/webhook.ts
index 139fa617..97a0be79 100644
--- a/packages/api/lib/generated/api-typings/v1/webhook.ts
+++ b/packages/api/lib/generated/api-typings/v1/webhook.ts
@@ -6,11 +6,17 @@ import type { WebhookContentPayload } from "./structs/Webhook";
* /webhooks/:webhookId/:webhookToken
*/
export type RESTPostWebhookBody = {
- avatar_url?: string;
- content?: string;
- embeds?: APIEmbed[];
- payload_json?: Pick;
- username?: string;
+ avatar_url?: string;
+ content?: string;
+ embeds?: APIEmbed[];
+ payload_json?: Pick<
+ RESTPostWebhookBody,
+ | "avatar_url"
+ | "content"
+ | "embeds"
+ | "username"
+ >;
+ username?: string;
};
export type RESTPostWebhookResult = WebhookContentPayload;
diff --git a/packages/api/lib/generated/api-typings/v1/ws.ts b/packages/api/lib/generated/api-typings/v1/ws.ts
index 94482029..81be3f06 100644
--- a/packages/api/lib/generated/api-typings/v1/ws.ts
+++ b/packages/api/lib/generated/api-typings/v1/ws.ts
@@ -8,3330 +8,3383 @@ export type paths = Record;
export type webhooks = Record;
export type components = {
- schemas: {
- _SocketEventEnvelope: {
- /**
- * Opcode
- *
- * @description An operation code corresponding to the nature of the sent message (for example, success, failure, etc.)
- * @enum {integer}
- */
- op: 0 | 1 | 2 | 8 | 9;
- /**
- * Data
- *
- * @description Data of any form depending on the underlying event
- */
- d?: Record;
- /**
- * Message ID
- *
- * @description Message ID used for replaying events after a disconnect
- */
- s?: string;
- /**
- * Event name
- *
- * @description Event name for the given message
- */
- t?: string;
- };
- /**
- * @example {
- * "id": "00000000-0000-0000-0000-000000000000",
- * "type": "default",
- * "serverId": "wlVr3Ggl",
- * "groupId": "ZVzBo83p",
- * "channelId": "00000000-0000-0000-0000-000000000000",
- * "content": "Hello **world**!",
- * "embeds": [
- * {
- * "title": "embed title",
- * "description": "embeds support a **different** __subset__ *of* markdown than other markdown fields. <@Ann6LewA>\n\n [links](https://www.guilded.gg) ```\ncheck this code out```\n\n:pizza: time!! ttyl",
- * "url": "https://www.guilded.gg",
- * "color": 6118369,
- * "timestamp": "2022-04-12T22:14:36.737Z",
- * "footer": {
- * "icon_url": "https://www.guilded.gg/asset/Logos/logomark/Color/Guilded_Logomark_Color.png",
- * "text": "footer text"
- * },
- * "thumbnail": {
- * "url": "https://www.guilded.gg/asset/Logos/logomark/Color/Guilded_Logomark_Color.png"
- * },
- * "image": {
- * "url": "https://www.guilded.gg/asset/Logos/logomark_wordmark/Color/Guilded_Logomark_Wordmark_Color.png"
- * },
- * "author": {
- * "name": "Gil",
- * "url": "https://www.guilded.gg",
- * "icon_url": "https://www.guilded.gg/asset/Default/Gil-md.png"
- * },
- * "fields": [
- * {
- * "name": "hello",
- * "value": "these are fields"
- * },
- * {
- * "name": "~~help i have been crossed out~~",
- * "value": "~~oh noes~~",
- * "inline": true
- * },
- * {
- * "name": "another inline",
- * "value": "field",
- * "inline": true
- * }
- * ]
- * }
- * ],
- * "createdAt": "2021-06-15T20:15:00.706Z",
- * "createdBy": "Ann6LewA"
- * }
- */
- ChatMessage: {
- /**
- * Message ID
- * Format: uuid
- *
- * @description The ID of the message
- */
- id: string;
- /**
- * Type
- *
- * @description The type of chat message. "system" messages are generated by Guilded, while "default" messages are user or bot-generated.
- * @enum {string}
- */
- type: "default" | "system";
- /**
- * Server ID
- *
- * @description The ID of the server
- */
- serverId?: string;
- /**
- * Group ID
- *
- * @description The ID of the group
- */
- groupId?: string;
- /**
- * Channel ID
- * Format: uuid
- *
- * @description The ID of the channel
- */
- channelId: string;
- /**
- * Content
- * Format: markdown
- *
- * @description The content of the message
- */
- content?: string;
- embeds?: components["schemas"]["ChatEmbed"][];
- /** @description Message IDs that were replied to */
- replyMessageIds?: string[];
- /**
- * Is private
- *
- * @description If set, this message will only be seen by those mentioned or replied to
- */
- isPrivate?: boolean;
- /**
- * Is silent
- *
- * @description If set, this message did not notify mention or reply recipients
- * @default false
- */
- isSilent?: boolean;
- mentions?: components["schemas"]["Mentions"];
- /**
- * Created at
- * Format: date-time
- *
- * @description The ISO 8601 timestamp that the message was created at
- */
- createdAt: string;
- /**
- * Created by
- *
- * @description The ID of the user who created this message (Note: If this event has `createdByWebhookId` present, this field will still be populated, but can be ignored. In this case, the value of this field will always be Ann6LewA)
- */
- createdBy: string;
- /**
- * Created by Webhook ID
- *
- * @description The ID of the webhook who created this message, if it was created by a webhook
- */
- createdByWebhookId?: string;
- /**
- * Updated at
- * Format: date-time
- *
- * @description The ISO 8601 timestamp that the message was updated at, if relevant
- */
- updatedAt?: string;
- };
- /**
- * @example {
- * "channelId": "00000000-0000-0000-0000-000000000000",
- * "createdBy": "Ann6LewA",
- * "emote": {
- * "id": 90000000,
- * "name": "grinning",
- * "url": "https://img.guildedcdn.com/asset/Emojis/grinning.webp"
- * },
- * "messageId": "00000000-0000-0000-0000-000000000000"
- * }
- */
- ChatMessageReaction: {
- /**
- * Channel ID
- * Format: uuid
- *
- * @description The ID of the channel
- */
- channelId: string;
- /**
- * User ID
- *
- * @description The ID of the user who added the reaction
- */
- createdBy: string;
- emote: components["schemas"]["Emote"];
- /**
- * Message ID
- * Format: uuid
- *
- * @description The ID of the message
- */
- messageId: string;
- };
- /**
- * @description Rich content sections optionally associated with chat messages. Properties with "webhook-markdown" support allow for the following: link, italic, bold, strikethrough, underline, inline code, block code, reaction, and mention.
- * @example {
- * "title": "embed title",
- * "description": "embeds support a **different** __subset__ *of* markdown than other markdown fields. <@Ann6LewA>\n\n [links](https://www.guilded.gg) ```\ncheck this code out```\n\n:pizza: time!! ttyl",
- * "url": "https://www.guilded.gg",
- * "color": 6118369,
- * "timestamp": "2022-04-12T22:14:36.737Z",
- * "footer": {
- * "icon_url": "https://www.guilded.gg/asset/Logos/logomark/Color/Guilded_Logomark_Color.png",
- * "text": "footer text"
- * },
- * "thumbnail": {
- * "url": "https://www.guilded.gg/asset/Logos/logomark/Color/Guilded_Logomark_Color.png"
- * },
- * "image": {
- * "url": "https://www.guilded.gg/asset/Logos/logomark_wordmark/Color/Guilded_Logomark_Wordmark_Color.png"
- * },
- * "author": {
- * "name": "Gil",
- * "url": "https://www.guilded.gg",
- * "icon_url": "https://www.guilded.gg/asset/Default/Gil-md.png"
- * },
- * "fields": [
- * {
- * "name": "hello",
- * "value": "these are fields"
- * },
- * {
- * "name": "~~help i have been crossed out~~",
- * "value": "~~oh noes~~",
- * "inline": true
- * },
- * {
- * "name": "another inline",
- * "value": "field",
- * "inline": true
- * }
- * ]
- * }
- */
- ChatEmbed: {
- /**
- * Format: webhook-markdown
- *
- * @description Main header of the embed
- */
- title?: string;
- /**
- * Format: webhook-markdown
- *
- * @description Subtext of the embed
- */
- description?: string;
- /**
- * Format: uri
- *
- * @description URL to linkify the `title` field with
- */
- url?: string;
- /** @description Decimal value of the color that the left border should be */
- color?: number;
- /** @description A small section at the bottom of the embed */
- footer?: {
- /**
- * Format: media-uri
- *
- * @description URL of a small image to put in the footer
- */
- icon_url?: string;
- /** @description Text of the footer */
- text: string;
- };
- /**
- * Format: date-time
- *
- * @description A timestamp to put in the footer
- */
- timestamp?: string;
- /** @description An image to the right of the embed's content */
- thumbnail?: {
- /**
- * Format: media-uri
- *
- * @description URL of the image
- */
- url?: string;
- };
- /** @description The main picture to associate with the embed */
- image?: {
- /**
- * Format: media-uri
- *
- * @description URL of the image
- */
- url?: string;
- };
- /** @description A small section above the title of the embed */
- author?: {
- /** @description Name of the author */
- name?: string;
- /**
- * Format: uri
- *
- * @description URL to linkify the author's `name` field
- */
- url?: string;
- /**
- * Format: media-uri
- *
- * @description URL of a small image to display to the left of the author's `name`
- */
- icon_url?: string;
- };
- /** @description Table-like cells to add to the embed */
- fields?: {
- /**
- * Format: webhook-markdown
- *
- * @description Header of the table-like cell
- */
- name: string;
- /**
- * Format: webhook-markdown
- *
- * @description Subtext of the table-like cell
- */
- value: string;
- /**
- * @description If the field should wrap or not
- * @default false
- */
- inline?: boolean;
- }[];
- };
- /**
- * @example {
- * "type": "roblox",
- * "userId": "Ann6LewA",
- * "handle": "builderman",
- * "serviceId": "156",
- * "createdAt": "2006-03-08T20:15:00.706Z"
- * }
- */
- SocialLink: {
- /**
- * Social link type
- *
- * @description The type of social link that Guilded supports. Depending on this value, `handle` or `serviceId` may or may not be present
- * @enum {string}
- */
- type: "bnet" | "epic" | "facebook" | "origin" | "patreon" | "psn" | "roblox" | "steam" | "switch" | "twitch" | "twitter" | "xbox" | "youtube";
- /**
- * User ID
- *
- * @description The ID of the user that the social link is associated with
- */
- userId: string;
- /** @description The handle of the user within the external service */
- handle?: string;
- /** @description The unique ID that represents this member's social link within the external service */
- serviceId?: string;
- /**
- * Created at
- * Format: date-time
- *
- * @description The ISO 8601 timestamp that the social link was created at
- */
- createdAt: string;
- };
- /**
- * @description Metadata of who or what is mentioned in content
- * @example {
- * "users": [
- * {
- * "id": "Ann6LewA"
- * }
- * ],
- * "channels": [
- * {
- * "id": "00000000-0000-0000-0000-000000000000"
- * }
- * ],
- * "roles": [
- * {
- * "id": 591232
- * }
- * ],
- * "everyone": true,
- * "here": true
- * }
- */
- Mentions: {
- /**
- * Users
- *
- * @description Info on mentioned users
- */
- users?: {
- /**
- * User ID
- *
- * @description The ID of the user
- */
- id: string;
- }[];
- /**
- * Channels
- *
- * @description Info on mentioned channels
- */
- channels?: {
- /**
- * Channel ID
- * Format: uuid
- *
- * @description The ID of the channel
- */
- id: string;
- }[];
- /**
- * Roles
- *
- * @description Info on mentioned roles
- */
- roles?: {
- /**
- * Role ID
- *
- * @description The ID of the role
- */
- id: number;
- }[];
- /**
- * Everyone
- *
- * @description If @everyone was mentioned
- */
- everyone?: boolean;
- /**
- * Here
- *
- * @description If @here was mentioned
- */
- here?: boolean;
- };
- /**
- * @example {
- * "id": 1234567890,
- * "content": "Great idea!",
- * "createdAt": "2021-06-15T20:15:00.706Z",
- * "channelId": "00000000-0000-0000-0000-000000000000",
- * "forumTopicId": 2036274747,
- * "createdBy": "Ann6LewA"
- * }
- */
- ForumTopicComment: {
- /** @description The ID of the forum topic comment */
- id: number;
- /**
- * Content
- * Format: markdown
- *
- * @description The content of the forum topic comment
- */
- content: string;
- /**
- * Created at
- * Format: date-time
- *
- * @description The ISO 8601 timestamp that the forum topic comment was created at
- */
- createdAt: string;
- /**
- * Updated at
- * Format: date-time
- *
- * @description The ISO 8601 timestamp that the forum topic comment was updated at, if relevant
- */
- updatedAt?: string;
- /**
- * Channel ID
- * Format: uuid
- *
- * @description The ID of the channel
- */
- channelId: string;
- /** @description The ID of the forum topic */
- forumTopicId: number;
- /**
- * Created by
- *
- * @description The ID of the user who created this forum topic comment (Note: If this event has `createdByWebhookId` present, this field will still be populated, but can be ignored. In this case, the value of this field will always be Ann6LewA)
- */
- createdBy: string;
- mentions?: components["schemas"]["Mentions"];
- };
- /**
- * @example {
- * "channelId": "00000000-0000-0000-0000-000000000000",
- * "createdBy": "Ann6LewA",
- * "emote": {
- * "id": 90000000,
- * "name": "grinning",
- * "url": "https://img.guildedcdn.com/asset/Emojis/grinning.webp"
- * },
- * "forumTopicId": 123456
- * }
- */
- ForumTopicReaction: {
- /**
- * Channel ID
- * Format: uuid
- *
- * @description The ID of the channel
- */
- channelId: string;
- /**
- * User ID
- *
- * @description The ID of the user who added the reaction
- */
- createdBy: string;
- emote: components["schemas"]["Emote"];
- /** @description The ID of the forum topic */
- forumTopicId: number;
- };
- /**
- * @example {
- * "channelId": "00000000-0000-0000-0000-000000000000",
- * "createdBy": "Ann6LewA",
- * "emote": {
- * "id": 90000000,
- * "name": "grinning",
- * "url": "https://img.guildedcdn.com/asset/Emojis/grinning.webp"
- * },
- * "forumTopicId": 123456,
- * "forumTopicCommentId": 1234567890
- * }
- */
- ForumTopicCommentReaction: {
- /**
- * Channel ID
- * Format: uuid
- *
- * @description The ID of the channel
- */
- channelId: string;
- /**
- * User ID
- *
- * @description The ID of the user who added the reaction
- */
- createdBy: string;
- emote: components["schemas"]["Emote"];
- /** @description The ID of the forum topic */
- forumTopicId: number;
- /** @description The ID of the forum topic comment */
- forumTopicCommentId: number;
- };
- /**
- * @example {
- * "id": 123456,
- * "serverId": "wlVr3Ggl",
- * "channelId": "00000000-0000-0000-0000-000000000000",
- * "title": "Welcome new members!!",
- * "createdAt": "2021-06-15T20:15:00.706Z",
- * "createdBy": "Ann6LewA",
- * "content": "Please introduce yourself in this topic!!!"
- * }
- */
- ForumTopic: {
- /** @description The ID of the forum topic */
- id: number;
- /**
- * Server ID
- *
- * @description The ID of the server
- */
- serverId: string;
- /**
- * Channel ID
- * Format: uuid
- *
- * @description The ID of the channel
- */
- channelId: string;
- /**
- * Title
- *
- * @description The title of the forum topic
- */
- title: string;
- /**
- * Created at
- * Format: date-time
- *
- * @description The ISO 8601 timestamp that the forum topic was created at
- */
- createdAt: string;
- /**
- * Created by
- *
- * @description The ID of the user who created this forum topic (Note: If this event has `createdByWebhookId` present, this field will still be populated, but can be ignored. In this case, the value of this field will always be Ann6LewA)
- */
- createdBy: string;
- /**
- * Updated at
- * Format: date-time
- *
- * @description The ISO 8601 timestamp that the forum topic was updated at, if relevant
- */
- updatedAt?: string;
- /**
- * Bumped at
- * Format: date-time
- *
- * @description The ISO 8601 timestamp that the forum topic was bumped at. This timestamp is updated whenever there is any activity on the posts within the forum topic.
- */
- bumpedAt?: string;
- /**
- * Is pinned
- *
- * @default false
- */
- isPinned?: boolean;
- /**
- * Is locked
- *
- * @default false
- */
- isLocked?: boolean;
- /**
- * Content
- * Format: markdown
- *
- * @description The content of the forum topic
- */
- content: string;
- mentions?: components["schemas"]["Mentions"];
- };
- /**
- * @example {
- * "id": 123456,
- * "serverId": "wlVr3Ggl",
- * "channelId": "00000000-0000-0000-0000-000000000000",
- * "title": "Welcome new members!!",
- * "createdAt": "2021-06-15T20:15:00.706Z",
- * "createdBy": "Ann6LewA"
- * }
- */
- ForumTopicSummary: {
- /** @description The ID of the forum topic */
- id: number;
- /**
- * Server ID
- *
- * @description The ID of the server
- */
- serverId: string;
- /**
- * Channel ID
- * Format: uuid
- *
- * @description The ID of the channel
- */
- channelId: string;
- /**
- * Title
- *
- * @description The title of the forum topic
- */
- title: string;
- /**
- * Created at
- * Format: date-time
- *
- * @description The ISO 8601 timestamp that the forum topic was created at
- */
- createdAt: string;
- /**
- * Created by
- *
- * @description The ID of the user who created this forum topic (Note: If this event has `createdByWebhookId` present, this field will still be populated, but can be ignored. In this case, the value of this field will always be Ann6LewA)
- */
- createdBy: string;
- /**
- * Updated at
- * Format: date-time
- *
- * @description The ISO 8601 timestamp that the forum topic was updated at, if relevant
- */
- updatedAt?: string;
- /**
- * Bumped at
- * Format: date-time
- *
- * @description The ISO 8601 timestamp that the forum topic was bumped at. This timestamp is updated whenever there is any activity on the posts within the forum topic.
- */
- bumpedAt?: string;
- /**
- * Is pinned
- *
- * @default false
- */
- isPinned?: boolean;
- /**
- * Is locked
- *
- * @default false
- */
- isLocked?: boolean;
- };
- /**
- * @example {
- * "id": "00000000-0000-0000-0000-000000000000",
- * "serverId": "wlVr3Ggl",
- * "channelId": "00000000-0000-0000-0000-000000000000",
- * "message": "Remember to say hello **world**!",
- * "createdAt": "2021-06-15T20:15:00.706Z",
- * "createdBy": "Ann6LewA",
- * "note": {
- * "createdAt": "2021-06-15T20:15:00.706Z",
- * "createdBy": "Ann6LewA",
- * "content": "Duly noted"
- * }
- * }
- */
- ListItem: {
- /**
- * Format: uuid
- *
- * @description The ID of the list item
- */
- id: string;
- /**
- * Server ID
- *
- * @description The ID of the server
- */
- serverId: string;
- /**
- * Channel ID
- * Format: uuid
- *
- * @description The ID of the channel
- */
- channelId: string;
- /**
- * Message
- * Format: markdown
- *
- * @description The message of the list item
- */
- message: string;
- mentions?: components["schemas"]["Mentions"];
- /**
- * Created at
- * Format: date-time
- *
- * @description The ISO 8601 timestamp that the list item was created at
- */
- createdAt: string;
- /**
- * Created by
- *
- * @description The ID of the user who created this list item (Note: If this event has `createdByWebhookId` present, this field will still be populated, but can be ignored. In this case, the value of this field will always be Ann6LewA)
- */
- createdBy: string;
- /**
- * Created by Webhook ID
- *
- * @description The ID of the webhook who created this list item, if it was created by a webhook
- */
- createdByWebhookId?: string;
- /**
- * Updated at
- * Format: date-time
- *
- * @description The ISO 8601 timestamp that the list item was updated at, if relevant
- */
- updatedAt?: string;
- /**
- * Updated by
- *
- * @description The ID of the user who updated this list item
- */
- updatedBy?: string;
- /**
- * Format: uuid
- *
- * @description The ID of the parent list item if this list item is nested
- */
- parentListItemId?: string;
- /**
- * Completed at
- * Format: date-time
- *
- * @description The ISO 8601 timestamp that the list item was completed at
- */
- completedAt?: string;
- /**
- * Completed by
- *
- * @description The ID of the user who completed this list item
- */
- completedBy?: string;
- note?: {
- /**
- * Created at
- * Format: date-time
- *
- * @description The ISO 8601 timestamp that the note was created at. If this field is populated, then there's a note associated with the list item
- */
- createdAt: string;
- /**
- * Created by
- *
- * @description The ID of the user who created this note
- */
- createdBy: string;
- /**
- * Updated at
- * Format: date-time
- *
- * @description The ISO 8601 timestamp that the note was updated at, if relevant
- */
- updatedAt?: string;
- /**
- * Updated by
- *
- * @description The ID of the user who updated this note
- */
- updatedBy?: string;
- mentions?: components["schemas"]["Mentions"];
- /**
- * Note
- * Format: markdown
- *
- * @description The note of the list item
- */
- content: string;
- };
- };
- /**
- * @example {
- * "id": "00000000-0000-0000-0000-000000000000",
- * "serverId": "wlVr3Ggl",
- * "channelId": "00000000-0000-0000-0000-000000000000",
- * "message": "Remember to say hello **world**!",
- * "createdAt": "2021-06-15T20:15:00.706Z",
- * "createdBy": "Ann6LewA",
- * "note": {
- * "createdAt": "2021-06-15T20:15:00.706Z",
- * "createdBy": "Ann6LewA"
- * }
- * }
- */
- ListItemSummary: {
- /**
- * Format: uuid
- *
- * @description The ID of the list item
- */
- id: string;
- /**
- * Server ID
- *
- * @description The ID of the server
- */
- serverId: string;
- /**
- * Channel ID
- * Format: uuid
- *
- * @description The ID of the channel
- */
- channelId: string;
- /**
- * Message
- * Format: markdown
- *
- * @description The message of the list item
- */
- message: string;
- mentions?: components["schemas"]["Mentions"];
- /**
- * Created at
- * Format: date-time
- *
- * @description The ISO 8601 timestamp that the list item was created at
- */
- createdAt: string;
- /**
- * Created by
- *
- * @description The ID of the user who created this list item (Note: If this event has `createdByWebhookId` present, this field will still be populated, but can be ignored. In this case, the value of this field will always be Ann6LewA)
- */
- createdBy: string;
- /**
- * Created by Webhook ID
- *
- * @description The ID of the webhook who created this list item, if it was created by a webhook
- */
- createdByWebhookId?: string;
- /**
- * Updated at
- * Format: date-time
- *
- * @description The ISO 8601 timestamp that the list item was updated at, if relevant
- */
- updatedAt?: string;
- /**
- * Updated by
- *
- * @description The ID of the user who updated this list item
- */
- updatedBy?: string;
- /**
- * Format: uuid
- *
- * @description The ID of the parent list item if this list item is nested
- */
- parentListItemId?: string;
- /**
- * Completed at
- * Format: date-time
- *
- * @description The ISO 8601 timestamp that the list item was completed at
- */
- completedAt?: string;
- /**
- * Completed by
- *
- * @description The ID of the user who completed this list item
- */
- completedBy?: string;
- note?: {
- /**
- * Created at
- * Format: date-time
- *
- * @description The ISO 8601 timestamp that the note was created at. If this field is populated, then there's a note associated with the list item
- */
- createdAt: string;
- /**
- * Created by
- *
- * @description The ID of the user who created this note
- */
- createdBy: string;
- /**
- * Updated at
- * Format: date-time
- *
- * @description The ISO 8601 timestamp that the note was updated at, if relevant
- */
- updatedAt?: string;
- /**
- * Updated by
- *
- * @description The ID of the user who updated this note
- */
- updatedBy?: string;
- };
- };
- /**
- * @example {
- * "id": 0,
- * "serverId": "wlVr3Ggl",
- * "channelId": "00000000-0000-0000-0000-000000000000",
- * "title": "HOW-TO: Smoke These Meats with Sweet Baby Ray's",
- * "content": "Spicy jalapeno bacon ipsum dolor amet sirloin ground round short loin, meatball brisket capicola tri-tip ham pork belly biltong corned beef chuck. Chicken ham brisket shank rump buffalo t-bone. Short loin sausage buffalo porchetta pork belly rump tri-tip frankfurter tail pork chop cow sirloin. Pancetta porchetta tail ball tip chislic beef ribs. Buffalo andouille leberkas jerky. Fatback shankle andouille beef. Cow kielbasa buffalo pork loin chislic meatloaf short loin rump meatball prosciutto.",
- * "createdAt": "2021-06-15T20:15:00.706Z",
- * "createdBy": "Ann6LewA",
- * "updatedAt": "2021-07-15T22:20:00.706Z",
- * "updatedBy": "Ann6LewA"
- * }
- */
- Doc: {
- /**
- * Doc ID
- *
- * @description The ID of the doc
- */
- id: number;
- /**
- * Server ID
- *
- * @description The ID of the server
- */
- serverId: string;
- /**
- * Channel ID
- * Format: uuid
- *
- * @description The ID of the channel
- */
- channelId: string;
- /**
- * Title
- *
- * @description The title of the doc
- */
- title: string;
- /**
- * Content
- * Format: markdown
- *
- * @description The content of the doc
- */
- content: string;
- mentions?: components["schemas"]["Mentions"];
- /**
- * Created at
- * Format: date-time
- *
- * @description The ISO 8601 timestamp that the doc was created at
- */
- createdAt: string;
- /**
- * Created by
- *
- * @description The ID of the user who created this doc
- */
- createdBy: string;
- /**
- * Updated at
- * Format: date-time
- *
- * @description The ISO 8601 timestamp that the doc was updated at, if relevant
- */
- updatedAt?: string;
- /**
- * Updated by
- *
- * @description The ID of the user who updated this doc
- */
- updatedBy?: string;
- };
- /**
- * @example {
- * "id": 123456,
- * "content": "Wow, cool document!!!",
- * "createdAt": "2021-06-15T20:15:00.706Z",
- * "channelId": "00000000-0000-0000-0000-000000000000",
- * "docId": 0,
- * "createdBy": "Ann6LewA"
- * }
- */
- DocComment: {
- /**
- * Doc comment ID
- *
- * @description The ID of the doc comment
- */
- id: number;
- /**
- * Content
- * Format: markdown
- *
- * @description The content of the doc comment
- */
- content: string;
- /**
- * Created at
- * Format: date-time
- *
- * @description The ISO 8601 timestamp that the doc comment was created at
- */
- createdAt: string;
- /**
- * Created by
- *
- * @description The ID of the user who created this doc comment (Note: If this event has `createdByWebhookId` present, this field will still be populated, but can be ignored. In this case, the value of this field will always be Ann6LewA)
- */
- createdBy: string;
- /**
- * Updated at
- * Format: date-time
- *
- * @description The ISO 8601 timestamp that the doc comment was updated at, if relevant
- */
- updatedAt?: string;
- /**
- * Channel ID
- * Format: uuid
- *
- * @description The ID of the channel
- */
- channelId: string;
- /**
- * Doc ID
- *
- * @description The ID of the doc
- */
- docId: number;
- mentions?: components["schemas"]["Mentions"];
- };
- /**
- * @example {
- * "channelId": "00000000-0000-0000-0000-000000000000",
- * "createdBy": "Ann6LewA",
- * "emote": {
- * "id": 90000000,
- * "name": "grinning",
- * "url": "https://img.guildedcdn.com/asset/Emojis/grinning.webp"
- * },
- * "docId": 0
- * }
- */
- DocReaction: {
- /**
- * Channel ID
- * Format: uuid
- *
- * @description The ID of the channel
- */
- channelId: string;
- /**
- * User ID
- *
- * @description The ID of the user who added the reaction
- */
- createdBy: string;
- emote: components["schemas"]["Emote"];
- /**
- * Doc ID
- *
- * @description The ID of the doc
- */
- docId: number;
- };
- /**
- * @example {
- * "channelId": "00000000-0000-0000-0000-000000000000",
- * "createdBy": "Ann6LewA",
- * "emote": {
- * "id": 90000000,
- * "name": "grinning",
- * "url": "https://img.guildedcdn.com/asset/Emojis/grinning.webp"
- * },
- * "docId": 0,
- * "docCommentId": 123456
- * }
- */
- DocCommentReaction: {
- /**
- * Channel ID
- * Format: uuid
- *
- * @description The ID of the channel
- */
- channelId: string;
- /**
- * User ID
- *
- * @description The ID of the user who added the reaction
- */
- createdBy: string;
- emote: components["schemas"]["Emote"];
- /**
- * Doc ID
- *
- * @description The ID of the doc
- */
- docId: number;
- /**
- * Doc comment ID
- *
- * @description The ID of the doc comment
- */
- docCommentId: number;
- };
- /**
- * @example {
- * "user": {
- * "id": "Ann6LewA",
- * "type": "user",
- * "name": "Leopold Stotch",
- * "createdAt": "2021-06-15T20:15:00.706Z"
- * },
- * "roleIds": [],
- * "nickname": "Professor Chaos",
- * "joinedAt": "2021-07-15T20:15:00.706Z"
- * }
- */
- ServerMember: {
- user: components["schemas"]["User"];
- /** Role IDs */
- roleIds: number[];
- /** Nickname */
- nickname?: string;
- /**
- * Created at
- * Format: date-time
- *
- * @description The ISO 8601 timestamp that the member was created at
- */
- joinedAt: string;
- /**
- * Is owner
- *
- * @default false
- */
- isOwner?: boolean;
- };
- /**
- * @example {
- * "user": {
- * "id": "Ann6LewA",
- * "type": "user",
- * "name": "Leopold Stotch"
- * },
- * "roleIds": []
- * }
- */
- ServerMemberSummary: {
- user: components["schemas"]["UserSummary"];
- /** Role IDs */
- roleIds: number[];
- };
- /**
- * @example {
- * "id": "Ann6LewA",
- * "type": "user",
- * "name": "Leopold Stotch",
- * "createdAt": "2021-06-15T20:15:00.706Z"
- * }
- */
- User: {
- /**
- * User ID
- *
- * @description The ID of the user
- */
- id: string;
- /**
- * User type
- *
- * @description The type of user. If this property is absent, it can assumed to be of type `user`
- * @enum {string}
- */
- type?: "bot" | "user";
- /**
- * User name
- *
- * @description The user's name
- */
- name: string;
- /**
- * Avatar
- * Format: media-uri
- *
- * @description The avatar image associated with the user
- */
- avatar?: string;
- /**
- * Banner
- * Format: media-uri
- *
- * @description The banner image associated with the user
- */
- banner?: string;
- /**
- * Created at
- * Format: date-time
- *
- * @description The ISO 8601 timestamp that the user was created at
- */
- createdAt: string;
- };
- /**
- * @example {
- * "id": "Ann6LewA",
- * "type": "user",
- * "name": "Leopold Stotch"
- * }
- */
- UserSummary: {
- /**
- * User ID
- *
- * @description The ID of the user
- */
- id: string;
- /**
- * User type
- *
- * @description The type of user. If this property is absent, it can assumed to be of type `user`
- * @enum {string}
- */
- type?: "bot" | "user";
- /**
- * User name
- *
- * @description The user's name
- */
- name: string;
- /**
- * Avatar
- * Format: media-uri
- *
- * @description The avatar image associated with the user
- */
- avatar?: string;
- };
- /**
- * @example {
- * "user": {
- * "id": "Ann6LewA",
- * "type": "user",
- * "name": "Leopold Stotch"
- * },
- * "reason": "More toxic than a poison Pokémon",
- * "createdAt": "2021-06-15T20:15:00.706Z",
- * "createdBy": "Ann6LewA"
- * }
- */
- ServerMemberBan: {
- user: components["schemas"]["UserSummary"];
- /**
- * Reason
- *
- * @description The reason for the ban as submitted by the banner
- */
- reason?: string;
- /**
- * Created by
- *
- * @description The ID of the user who created this server member ban
- */
- createdBy: string;
- /**
- * Created at
- * Format: date-time
- *
- * @description The ISO 8601 timestamp that the server member ban was created at
- */
- createdAt: string;
- };
- /**
- * @example {
- * "id": "00000000-0000-0000-0000-000000000000",
- * "type": "chat",
- * "name": "The Dank Cellar",
- * "topic": "Dank memes ONLY",
- * "createdAt": "2021-06-15T20:15:00.706Z",
- * "createdBy": "Ann6LewA",
- * "serverId": "wlVr3Ggl",
- * "groupId": "ZVzBo83p"
- * }
- */
- ServerChannel: {
- /**
- * Channel ID
- * Format: uuid
- *
- * @description The ID of the channel
- */
- id: string;
- /**
- * @description The type of channel. This will determine what routes to use for creating content in a channel. For example, if this "chat", then one must use the routes for creating channel messages
- * @enum {string}
- */
- type: "announcements" | "calendar" | "chat" | "docs" | "forums" | "list" | "media" | "scheduling" | "stream" | "voice";
- /** @description The name of the channel */
- name: string;
- /** @description The topic of the channel */
- topic?: string;
- /**
- * Created at
- * Format: date-time
- *
- * @description The ISO 8601 timestamp that the channel was created at
- */
- createdAt: string;
- /**
- * Created by
- *
- * @description The ID of the user who created this channel
- */
- createdBy: string;
- /**
- * Updated at
- * Format: date-time
- *
- * @description The ISO 8601 timestamp that the channel was updated at, if relevant
- */
- updatedAt?: string;
- /**
- * Server ID
- *
- * @description The ID of the server
- */
- serverId: string;
- /**
- * Channel ID
- * Format: uuid
- *
- * @description ID of the parent channel or parent thread, if present. Only relevant for server channels
- */
- parentId?: string;
- /** @description Only relevant for server channels */
- categoryId?: number;
- /**
- * Group ID
- *
- * @description The ID of the group
- */
- groupId: string;
- /**
- * Is public
- *
- * @description Whether the channel can be accessed from users who are not member of the server
- * @default false
- */
- isPublic?: boolean;
- /**
- * Archived by
- *
- * @description The ID of the user who archived this channel
- */
- archivedBy?: string;
- /**
- * Archived at
- * Format: date-time
- *
- * @description The ISO 8601 timestamp that the channel was archived at, if relevant
- */
- archivedAt?: string;
- };
- /**
- * @example {
- * "id": "wlVr3Ggl",
- * "type": "community",
- * "name": "Guilded",
- * "url": "Guilded-Official",
- * "about": "The Official Guilded Server! For devs, friends, and fans alike!",
- * "ownerId": "Ann6LewA",
- * "createdAt": "2018-10-05T20:15:00.706Z",
- * "isVerified": true,
- * "timezone": "America/Los Angeles (PST/PDT)"
- * }
- */
- Server: {
- /**
- * Server ID
- *
- * @description The ID of the server
- */
- id: string;
- /**
- * Created by
- *
- * @description The ID of the user who created this server
- */
- ownerId: string;
- /**
- * Server type
- *
- * @description The type of server designated from the server's settings page
- * @enum {string}
- */
- type?: "clan" | "community" | "friends" | "guild" | "organization" | "other" | "streaming" | "team";
- /**
- * Server name
- *
- * @description The name given to the server
- */
- name: string;
- /**
- * Server URL
- *
- * @description The URL that the server can be accessible from. For example, a value of "Guilded-Official" means the server can be accessible from https://www.guilded.gg/Guilded-Official
- */
- url?: string;
- /**
- * Description
- *
- * @description The description associated with the server
- */
- about?: string;
- /**
- * Avatar
- * Format: media-uri
- *
- * @description The avatar image associated with the server
- */
- avatar?: string;
- /**
- * Banner
- * Format: media-uri
- *
- * @description The banner image associated with the server
- */
- banner?: string;
- /**
- * Timezone
- *
- * @description The timezone associated with the server
- */
- timezone?: string;
- /**
- * Is verified
- *
- * @description The verified status of the server
- */
- isVerified?: boolean;
- /**
- * Channel ID
- * Format: uuid
- *
- * @description The channel ID of the default channel of the server. This channel is defined as the first chat or voice channel in the left sidebar of a server in our UI. This channel is useful for sending welcome messages, though note that a bot may not have permissions to interact with this channel depending on how the server is configured.
- */
- defaultChannelId?: string;
- /**
- * Created at
- * Format: date-time
- *
- * @description The ISO 8601 timestamp that the server was created at
- */
- createdAt: string;
- };
- /**
- * @example {
- * "id": "00000000-0000-0000-0000-000000000000",
- * "serverId": "wlVr3Ggl",
- * "channelId": "00000000-0000-0000-0000-000000000000",
- * "name": "E-102 Gamma",
- * "createdAt": "2021-06-15T20:15:00.706Z",
- * "createdBy": "Ann6LewA"
- * }
- */
- Webhook: {
- /**
- * Webhook ID
- * Format: uuid
- *
- * @description The ID of the webhook
- */
- id: string;
- /**
- * Name
- *
- * @description The name of the webhook
- */
- name: string;
- /**
- * Avatar
- * Format: media-uri
- *
- * @description The avatar image associated with the webhook
- */
- avatar?: string;
- /**
- * Server ID
- *
- * @description The ID of the server
- */
- serverId: string;
- /**
- * Channel ID
- * Format: uuid
- *
- * @description The ID of the channel
- */
- channelId: string;
- /**
- * Created at
- * Format: date-time
- *
- * @description The ISO 8601 timestamp that the webhook was created at
- */
- createdAt: string;
- /**
- * Created by
- *
- * @description The ID of the user who created this webhook
- */
- createdBy: string;
- /**
- * Deleted at
- * Format: date-time
- *
- * @description The ISO 8601 timestamp that the webhook was deleted at
- */
- deletedAt?: string;
- /**
- * Token
- *
- * @description The token of the webhook
- */
- token?: string;
- };
- /**
- * @example {
- * "id": 1,
- * "serverId": "wlVr3Ggl",
- * "channelId": "00000000-0000-0000-0000-000000000000",
- * "name": "Surprise LAN party for my wife 🤫",
- * "description": "**Don't say anything to her!** She's gonna love playing Call of Duty all night",
- * "location": "My house!",
- * "url": "https://www.surprisepartygame.com/",
- * "duration": 60,
- * "color": 16106496,
- * "startsAt": "2022-06-16T00:00:00.000Z",
- * "createdAt": "2021-06-15T20:15:00.706Z",
- * "createdBy": "Ann6LewA"
- * }
- */
- CalendarEvent: {
- /**
- * Calendar event ID
- *
- * @description The ID of the calendar event
- */
- id: number;
- /**
- * Server ID
- *
- * @description The ID of the server
- */
- serverId: string;
- /**
- * Channel ID
- * Format: uuid
- *
- * @description The ID of the channel
- */
- channelId: string;
- /**
- * Name
- *
- * @description The name of the event
- */
- name: string;
- /**
- * Description
- * Format: markdown
- *
- * @description The description of the event
- */
- description?: string;
- /**
- * Location
- *
- * @description The location of the event
- */
- location?: string;
- /**
- * Format: uri
- *
- * @description A URL to associate with the event
- */
- url?: string;
- /** @description The color of the event when viewing in the calendar */
- color?: number;
- /** @description Is this event a repeating event */
- repeats?: boolean;
- /**
- * Calendar event series ID
- * Format: uuid
- *
- * @description The ID of the calendar event series. Only shows if the event is repeating
- */
- seriesId?: string;
- /**
- * Role IDs
- *
- * @description The role IDs to restrict the event to
- */
- roleIds?: number[];
- /**
- * RSVP disabled
- *
- * @description When disabled, users will not be able to RSVP to the event
- */
- rsvpDisabled?: boolean;
- /**
- * Is all day
- *
- * @description Does the event last all day
- */
- isAllDay?: boolean;
- /** @description The number of RSVPs to allow before waitlisting RSVPs */
- rsvpLimit?: number;
- /** @description When `rsvpLimit` is set, users from the waitlist will be added as space becomes available in the event */
- autofillWaitlist?: boolean;
- /**
- * Starts at
- * Format: date-time
- *
- * @description The ISO 8601 timestamp that the event starts at
- */
- startsAt: string;
- /**
- * Duration
- *
- * @description The duration of the event _**in minutes**_
- */
- duration?: number;
- /** Is private */
- isPrivate?: boolean;
- mentions?: components["schemas"]["Mentions"];
- /**
- * Created at
- * Format: date-time
- *
- * @description The ISO 8601 timestamp that the event was created at
- */
- createdAt: string;
- /**
- * Created by
- *
- * @description The ID of the user who created this event
- */
- createdBy: string;
- cancellation?: {
- /**
- * Description
- * Format: markdown
- *
- * @description The description of event cancellation
- */
- description?: string;
- /**
- * Created by
- *
- * @description The ID of the user who created this event cancellation
- */
- createdBy: string;
- };
- };
- /**
- * @example {
- * "id": 90000000,
- * "name": "grinning",
- * "url": "https://img.guildedcdn.com/asset/Emojis/grinning.webp"
- * }
- */
- Emote: {
- /**
- * Emote ID
- *
- * @description The ID of the emote
- */
- id: number;
- /**
- * Name
- *
- * @description The name of the emote
- */
- name: string;
- /**
- * Emote URL
- * Format: media-uri
- *
- * @description The URL of the emote image
- */
- url: string;
- /**
- * Server ID
- *
- * @description The ID of the server the emote was created on
- */
- serverId?: string;
- };
- /**
- * @example {
- * "calendarEventId": 1,
- * "channelId": "00000000-0000-0000-0000-000000000000",
- * "serverId": "wlVr3Ggl",
- * "userId": "Ann6LewA",
- * "status": "going",
- * "createdAt": "2021-06-15T20:15:00.706Z",
- * "createdBy": "Ann6LewA"
- * }
- */
- CalendarEventRsvp: {
- /**
- * Calendar event ID
- *
- * @description The ID of the calendar event
- */
- calendarEventId: number;
- /**
- * Channel ID
- * Format: uuid
- *
- * @description The ID of the channel
- */
- channelId: string;
- /**
- * Server ID
- *
- * @description The ID of the server
- */
- serverId: string;
- /**
- * User ID
- *
- * @description The ID of the user
- */
- userId: string;
- /**
- * Status
- *
- * @description The status of the RSVP
- * @enum {string}
- */
- status: "declined" | "going" | "invited" | "maybe" | "not responded" | "waitlisted";
- /**
- * Created by
- *
- * @description The ID of the user who created this RSVP
- */
- createdBy: string;
- /**
- * Created at
- * Format: date-time
- *
- * @description The ISO 8601 timestamp that the RSVP was created at
- */
- createdAt: string;
- /**
- * Updated by
- *
- * @description The ID of the user who updated this RSVP
- */
- updatedBy?: string;
- /**
- * Updated at
- * Format: date-time
- *
- * @description The ISO 8601 timestamp that the RSVP was updated at, if relevant
- */
- updatedAt?: string;
- };
- /**
- * @example {
- * "id": 1234567890,
- * "content": "I will be there!!",
- * "channelId": "00000000-0000-0000-0000-000000000000",
- * "createdAt": "2022-06-15T20:15:00.706Z",
- * "createdBy": "Ann6LewA",
- * "calendarEventId": 987654321
- * }
- */
- CalendarEventComment: {
- /**
- * Calendar event comment ID
- *
- * @description The ID of the calendar event comment
- */
- id: number;
- /**
- * Content
- * Format: markdown
- *
- * @description The content of the calendar event comment
- */
- content: string;
- /**
- * Created at
- * Format: date-time
- *
- * @description The ISO 8601 timestamp that the calendar event comment was created at
- */
- createdAt: string;
- /**
- * Updated at
- * Format: date-time
- *
- * @description The ISO 8601 timestamp that the calendar event comment was updated at, if relevant
- */
- updatedAt?: string;
- /**
- * Calendar event ID
- *
- * @description The ID of the calendar event
- */
- calendarEventId: number;
- /**
- * Channel ID
- * Format: uuid
- *
- * @description The ID of the channel
- */
- channelId: string;
- /**
- * Created by
- *
- * @description The ID of the user who created this calendar event comment (Note: If this event has `createdByWebhookId` present, this field will still be populated, but can be ignored. In this case, the value of this field will always be Ann6LewA)
- */
- createdBy: string;
- mentions?: components["schemas"]["Mentions"];
- };
- /**
- * @example {
- * "channelId": "00000000-0000-0000-0000-000000000000",
- * "createdBy": "Ann6LewA",
- * "emote": {
- * "id": 90000000,
- * "name": "grinning",
- * "url": "https://img.guildedcdn.com/asset/Emojis/grinning.webp"
- * },
- * "calendarEventId": 1
- * }
- */
- CalendarEventReaction: {
- /**
- * Channel ID
- * Format: uuid
- *
- * @description The ID of the channel
- */
- channelId: string;
- /**
- * User ID
- *
- * @description The ID of the user who added the reaction
- */
- createdBy: string;
- emote: components["schemas"]["Emote"];
- /**
- * Calendar event ID
- *
- * @description The ID of the calendar event
- */
- calendarEventId: number;
- };
- /**
- * @example {
- * "channelId": "00000000-0000-0000-0000-000000000000",
- * "createdBy": "Ann6LewA",
- * "emote": {
- * "id": 90000000,
- * "name": "grinning",
- * "url": "https://img.guildedcdn.com/asset/Emojis/grinning.webp"
- * },
- * "calendarEventId": 1,
- * "calendarEventCommentId": 1234567890
- * }
- */
- CalendarEventCommentReaction: {
- /**
- * Channel ID
- * Format: uuid
- *
- * @description The ID of the channel
- */
- channelId: string;
- /**
- * User ID
- *
- * @description The ID of the user who added the reaction
- */
- createdBy: string;
- emote: components["schemas"]["Emote"];
- /**
- * Calendar event ID
- *
- * @description The ID of the calendar event
- */
- calendarEventId: number;
- /**
- * Calendar event comment ID
- *
- * @description The ID of the calendar event comment
- */
- calendarEventCommentId: number;
- };
- /**
- * @example {
- * "id": "00000000-0000-0000-0000-000000000000",
- * "serverId": "wlVr3Ggl",
- * "channelId": "00000000-0000-0000-0000-000000000000"
- * }
- */
- CalendarEventSeries: {
- /**
- * Calendar event series ID
- * Format: uuid
- *
- * @description The ID of the calendar event series
- */
- id: string;
- /**
- * Server ID
- *
- * @description The ID of the server
- */
- serverId: string;
- /**
- * Channel ID
- * Format: uuid
- *
- * @description The ID of the channel
- */
- channelId: string;
- };
- /**
- * @example {
- * "id": "9RVMoDZy",
- * "serverId": "wlVr3Ggl",
- * "channelId": "00000000-0000-0000-0000-000000000000",
- * "createdAt": "2021-06-15T20:15:00.706Z",
- * "createdBy": "Ann6LewA",
- * "title": "Pizza Party, don't be tardy!",
- * "content": "Grab a slice, don't be slow, At our pizza party, it's the way to go! Toppings galore, cheesy delight, Come join us, it'll be out of sight!"
- * }
- */
- Announcement: {
- /**
- * Announcement ID
- *
- * @description The ID of the announcement
- */
- id: string;
- /**
- * Server ID
- *
- * @description The ID of the server
- */
- serverId: string;
- /**
- * Channel ID
- * Format: uuid
- *
- * @description The ID of the channel
- */
- channelId: string;
- /**
- * Created at
- * Format: date-time
- *
- * @description The ISO 8601 timestamp that the announcement was created at
- */
- createdAt: string;
- /**
- * Created by
- *
- * @description The ID of the user who created this announcement
- */
- createdBy: string;
- /**
- * Content
- * Format: markdown
- *
- * @description The content of the announcement
- */
- content: string;
- mentions?: components["schemas"]["Mentions"];
- /**
- * Title
- *
- * @description The title of the announcement
- */
- title: string;
- };
- /**
- * @example {
- * "channelId": "00000000-0000-0000-0000-000000000000",
- * "createdBy": "Ann6LewA",
- * "emote": {
- * "id": 90000000,
- * "name": "grinning",
- * "url": "https://img.guildedcdn.com/asset/Emojis/grinning.webp"
- * },
- * "announcementId": "9RVMoDZy"
- * }
- */
- AnnouncementReaction: {
- /**
- * Channel ID
- * Format: uuid
- *
- * @description The ID of the channel
- */
- channelId: string;
- /**
- * User ID
- *
- * @description The ID of the user who added the reaction
- */
- createdBy: string;
- emote: components["schemas"]["Emote"];
- /**
- * Announcement ID
- *
- * @description The ID of the announcement
- */
- announcementId: string;
- };
- /**
- * @example {
- * "id": 123456,
- * "content": "Now THAT is one awesome announcement!!!",
- * "createdAt": "2023-04-07T16:19:00.000Z",
- * "channelId": "00000000-0000-0000-0000-000000000000",
- * "announcementId": "9RVMoDZy",
- * "createdBy": "Ann6LewA"
- * }
- */
- AnnouncementComment: {
- /**
- * Announcement comment ID
- *
- * @description The ID of the announcement comment
- */
- id: number;
- /**
- * Content
- * Format: markdown
- *
- * @description The content of the announcement comment
- */
- content: string;
- /**
- * Created at
- * Format: date-time
- *
- * @description The ISO 8601 timestamp that the announcement comment was created at
- */
- createdAt: string;
- /**
- * Updated at
- * Format: date-time
- *
- * @description The ISO 8601 timestamp that the announcement comment was updated at, if relevant
- */
- updatedAt?: string;
- /**
- * Created by
- *
- * @description The ID of the user who created this announcement comment (Note: If this event has `createdByWebhookId` present, this field will still be populated, but can be ignored. In this case, the value of this field will always be Ann6LewA)
- */
- createdBy: string;
- /**
- * Channel ID
- * Format: uuid
- *
- * @description The ID of the channel
- */
- channelId: string;
- /**
- * Announcement ID
- *
- * @description The ID of the announcement
- */
- announcementId: string;
- mentions?: components["schemas"]["Mentions"];
- };
- /**
- * @example {
- * "channelId": "00000000-0000-0000-0000-000000000000",
- * "createdBy": "Ann6LewA",
- * "emote": {
- * "id": 90000000,
- * "name": "grinning",
- * "url": "https://img.guildedcdn.com/asset/Emojis/grinning.webp"
- * },
- * "announcementId": "9RVMoDZy",
- * "announcementCommentId": 123456
- * }
- */
- AnnouncementCommentReaction: {
- /**
- * Channel ID
- * Format: uuid
- *
- * @description The ID of the channel
- */
- channelId: string;
- /**
- * User ID
- *
- * @description The ID of the user who added the reaction
- */
- createdBy: string;
- emote: components["schemas"]["Emote"];
- /**
- * Announcement ID
- *
- * @description The ID of the announcement
- */
- announcementId: string;
- /**
- * Announcement comment ID
- *
- * @description The ID of the announcement comment
- */
- announcementCommentId: number;
- };
- };
- responses: {
- _WelcomeMessage: {
- content: {
- "application/json": {
- /** @description The interval in milliseconds that your bot should be configured to send ping frames for the bot's [heartbeat](/docs/api/heartbeat) to be considered valid. */
- heartbeatIntervalMs: number;
- /** @description The last message's ID that was sent to this bot. See [event replay](/docs/api/replay) for more details */
- lastMessageId: string;
- /**
- * Bot ID
- * Format: uuid
- *
- * @description The ID of the bot
- */
- botId: string;
- user: components["schemas"]["User"];
- };
- };
- };
- /** @description Emitted when a bot is added to a server */
- BotServerMembershipCreated: {
- content: {
- "application/json": {
- server: components["schemas"]["Server"];
- /**
- * Created by
- *
- * @description The ID of the user who created this server membership
- */
- createdBy: string;
- };
- };
- };
- /** @description Emitted when a bot is removed from a server */
- BotServerMembershipDeleted: {
- content: {
- "application/json": {
- server: components["schemas"]["Server"];
- /**
- * Deleted by
- *
- * @description The ID of the user who deleted this server membership
- */
- deletedBy: string;
- };
- };
- };
- ChatMessageCreated: {
- content: {
- "application/json": {
- /**
- * Server ID
- *
- * @description The ID of the server
- */
- serverId: string;
- message: components["schemas"]["ChatMessage"];
- };
- };
- };
- ChatMessageUpdated: {
- content: {
- "application/json": {
- /**
- * Server ID
- *
- * @description The ID of the server
- */
- serverId: string;
- message: components["schemas"]["ChatMessage"];
- };
- };
- };
- ChatMessageDeleted: {
- content: {
- "application/json": {
- /**
- * Server ID
- *
- * @description The ID of the server
- */
- serverId: string;
- message: {
- /**
- * Message ID
- * Format: uuid
- *
- * @description The ID of the message
- */
- id: string;
- /**
- * Server ID
- *
- * @description The ID of the server
- */
- serverId?: string;
- /**
- * Channel ID
- * Format: uuid
- *
- * @description The ID of the channel
- */
- channelId: string;
- /**
- * Deleted at
- * Format: date-time
- *
- * @description The ISO 8601 timestamp that the message was deleted at
- */
- deletedAt: string;
- /** Is private */
- isPrivate?: boolean;
- };
- };
- };
- };
- ServerMemberJoined: {
- content: {
- "application/json": {
- /**
- * Server ID
- *
- * @description The ID of the server
- */
- serverId: string;
- member: components["schemas"]["ServerMember"];
- };
- };
- };
- ServerMemberRemoved: {
- content: {
- "application/json": {
- /**
- * Server ID
- *
- * @description The ID of the server
- */
- serverId: string;
- /**
- * User ID
- *
- * @description The ID of the user
- */
- userId: string;
- /**
- * Is kick?
- *
- * @description If this member leaving was the result of a kick
- */
- isKick?: boolean;
- /**
- * Is ban?
- *
- * @description If this member leaving was the result of a ban
- */
- isBan?: boolean;
- };
- };
- };
- ServerMemberBanned: {
- content: {
- "application/json": {
- /**
- * Server ID
- *
- * @description The ID of the server
- */
- serverId: string;
- serverMemberBan: components["schemas"]["ServerMemberBan"];
- };
- };
- };
- ServerMemberUnbanned: {
- content: {
- "application/json": {
- /**
- * Server ID
- *
- * @description The ID of the server
- */
- serverId: string;
- serverMemberBan: components["schemas"]["ServerMemberBan"];
- };
- };
- };
- ServerMemberUpdated: {
- content: {
- "application/json": {
- /**
- * Server ID
- *
- * @description The ID of the server
- */
- serverId: string;
- userInfo: {
- /**
- * User ID
- *
- * @description The ID of the user
- */
- id: string;
- /**
- * Nickname
- *
- * @description The nickname that was just updated for the user
- */
- nickname?: string | null;
- };
- };
- };
- };
- ServerRolesUpdated: {
- content: {
- "application/json": {
- /**
- * Server ID
- *
- * @description The ID of the server
- */
- serverId: string;
- memberRoleIds: {
- /**
- * User ID
- *
- * @description The ID of the member that had roles updated
- */
- userId: string;
- /**
- * Role IDs
- *
- * @description The IDs of the roles that the member currently has _after_ this operation
- */
- roleIds: number[];
- }[];
- };
- };
- };
- ServerChannelCreated: {
- content: {
- "application/json": {
- /**
- * Server ID
- *
- * @description The ID of the server
- */
- serverId: string;
- channel: components["schemas"]["ServerChannel"];
- };
- };
- };
- ServerChannelUpdated: {
- content: {
- "application/json": {
- /**
- * Server ID
- *
- * @description The ID of the server
- */
- serverId: string;
- channel: components["schemas"]["ServerChannel"];
- };
- };
- };
- ServerChannelDeleted: {
- content: {
- "application/json": {
- /**
- * Server ID
- *
- * @description The ID of the server
- */
- serverId: string;
- channel: components["schemas"]["ServerChannel"];
- };
- };
- };
- ServerMemberSocialLinkCreated: {
- content: {
- "application/json": {
- /**
- * Server ID
- *
- * @description The ID of the server
- */
- serverId: string;
- socialLink: components["schemas"]["SocialLink"];
- };
- };
- };
- ServerMemberSocialLinkUpdated: {
- content: {
- "application/json": {
- /**
- * Server ID
- *
- * @description The ID of the server
- */
- serverId: string;
- socialLink: components["schemas"]["SocialLink"];
- };
- };
- };
- ServerMemberSocialLinkDeleted: {
- content: {
- "application/json": {
- /**
- * Server ID
- *
- * @description The ID of the server
- */
- serverId: string;
- socialLink: components["schemas"]["SocialLink"];
- };
- };
- };
- ServerWebhookCreated: {
- content: {
- "application/json": {
- /**
- * Server ID
- *
- * @description The ID of the server
- */
- serverId: string;
- webhook: components["schemas"]["Webhook"];
- };
- };
- };
- ServerWebhookUpdated: {
- content: {
- "application/json": {
- /**
- * Server ID
- *
- * @description The ID of the server
- */
- serverId: string;
- webhook: components["schemas"]["Webhook"];
- };
- };
- };
- DocCreated: {
- content: {
- "application/json": {
- /**
- * Server ID
- *
- * @description The ID of the server
- */
- serverId: string;
- doc: components["schemas"]["Doc"];
- };
- };
- };
- DocUpdated: {
- content: {
- "application/json": {
- /**
- * Server ID
- *
- * @description The ID of the server
- */
- serverId: string;
- doc: components["schemas"]["Doc"];
- };
- };
- };
- DocDeleted: {
- content: {
- "application/json": {
- /**
- * Server ID
- *
- * @description The ID of the server
- */
- serverId: string;
- doc: components["schemas"]["Doc"];
- };
- };
- };
- DocCommentCreated: {
- content: {
- "application/json": {
- /**
- * Server ID
- *
- * @description The ID of the server
- */
- serverId: string;
- docComment: components["schemas"]["DocComment"];
- };
- };
- };
- DocCommentDeleted: {
- content: {
- "application/json": {
- /**
- * Server ID
- *
- * @description The ID of the server
- */
- serverId: string;
- docComment: components["schemas"]["DocComment"];
- };
- };
- };
- DocCommentUpdated: {
- content: {
- "application/json": {
- /**
- * Server ID
- *
- * @description The ID of the server
- */
- serverId: string;
- docComment: components["schemas"]["DocComment"];
- };
- };
- };
- CalendarEventCreated: {
- content: {
- "application/json": {
- /**
- * Server ID
- *
- * @description The ID of the server
- */
- serverId: string;
- calendarEvent: components["schemas"]["CalendarEvent"];
- };
- };
- };
- CalendarEventUpdated: {
- content: {
- "application/json": {
- /**
- * Server ID
- *
- * @description The ID of the server
- */
- serverId: string;
- calendarEvent: components["schemas"]["CalendarEvent"];
- };
- };
- };
- CalendarEventDeleted: {
- content: {
- "application/json": {
- /**
- * Server ID
- *
- * @description The ID of the server
- */
- serverId: string;
- calendarEvent: components["schemas"]["CalendarEvent"];
- };
- };
- };
- ForumTopicCreated: {
- content: {
- "application/json": {
- /**
- * Server ID
- *
- * @description The ID of the server
- */
- serverId: string;
- forumTopic: components["schemas"]["ForumTopic"];
- };
- };
- };
- ForumTopicUpdated: {
- content: {
- "application/json": {
- /**
- * Server ID
- *
- * @description The ID of the server
- */
- serverId: string;
- forumTopic: components["schemas"]["ForumTopic"];
- };
- };
- };
- ForumTopicDeleted: {
- content: {
- "application/json": {
- /**
- * Server ID
- *
- * @description The ID of the server
- */
- serverId: string;
- forumTopic: components["schemas"]["ForumTopic"];
- };
- };
- };
- ForumTopicPinned: {
- content: {
- "application/json": {
- /**
- * Server ID
- *
- * @description The ID of the server
- */
- serverId: string;
- forumTopic: components["schemas"]["ForumTopic"];
- };
- };
- };
- ForumTopicUnpinned: {
- content: {
- "application/json": {
- /**
- * Server ID
- *
- * @description The ID of the server
- */
- serverId: string;
- forumTopic: components["schemas"]["ForumTopic"];
- };
- };
- };
- ForumTopicReactionCreated: {
- content: {
- "application/json": {
- /**
- * Server ID
- *
- * @description The ID of the server
- */
- serverId: string;
- reaction: components["schemas"]["ForumTopicReaction"];
- };
- };
- };
- ForumTopicReactionDeleted: {
- content: {
- "application/json": {
- /**
- * Server ID
- *
- * @description The ID of the server
- */
- serverId: string;
- reaction: components["schemas"]["ForumTopicReaction"];
- };
- };
- };
- ForumTopicLocked: {
- content: {
- "application/json": {
- /**
- * Server ID
- *
- * @description The ID of the server
- */
- serverId: string;
- forumTopic: components["schemas"]["ForumTopic"];
- };
- };
- };
- ForumTopicUnlocked: {
- content: {
- "application/json": {
- /**
- * Server ID
- *
- * @description The ID of the server
- */
- serverId: string;
- forumTopic: components["schemas"]["ForumTopic"];
- };
- };
- };
- ForumTopicCommentCreated: {
- content: {
- "application/json": {
- /**
- * Server ID
- *
- * @description The ID of the server
- */
- serverId: string;
- forumTopicComment: components["schemas"]["ForumTopicComment"];
- };
- };
- };
- ForumTopicCommentUpdated: {
- content: {
- "application/json": {
- /**
- * Server ID
- *
- * @description The ID of the server
- */
- serverId: string;
- forumTopicComment: components["schemas"]["ForumTopicComment"];
- };
- };
- };
- ForumTopicCommentDeleted: {
- content: {
- "application/json": {
- /**
- * Server ID
- *
- * @description The ID of the server
- */
- serverId: string;
- forumTopicComment: components["schemas"]["ForumTopicComment"];
- };
- };
- };
- CalendarEventRsvpUpdated: {
- content: {
- "application/json": {
- /**
- * Server ID
- *
- * @description The ID of the server
- */
- serverId: string;
- calendarEventRsvp: components["schemas"]["CalendarEventRsvp"];
- };
- };
- };
- CalendarEventRsvpManyUpdated: {
- content: {
- "application/json": {
- /**
- * Server ID
- *
- * @description The ID of the server
- */
- serverId: string;
- calendarEventRsvps: components["schemas"]["CalendarEventRsvp"][];
- };
- };
- };
- CalendarEventRsvpDeleted: {
- content: {
- "application/json": {
- /**
- * Server ID
- *
- * @description The ID of the server
- */
- serverId: string;
- calendarEventRsvp: components["schemas"]["CalendarEventRsvp"];
- };
- };
- };
- ListItemCreated: {
- content: {
- "application/json": {
- /**
- * Server ID
- *
- * @description The ID of the server
- */
- serverId: string;
- listItem: components["schemas"]["ListItem"];
- };
- };
- };
- ListItemUpdated: {
- content: {
- "application/json": {
- /**
- * Server ID
- *
- * @description The ID of the server
- */
- serverId: string;
- listItem: components["schemas"]["ListItem"];
- };
- };
- };
- ListItemDeleted: {
- content: {
- "application/json": {
- /**
- * Server ID
- *
- * @description The ID of the server
- */
- serverId: string;
- listItem: components["schemas"]["ListItem"];
- };
- };
- };
- ListItemCompleted: {
- content: {
- "application/json": {
- /**
- * Server ID
- *
- * @description The ID of the server
- */
- serverId: string;
- listItem: components["schemas"]["ListItem"];
- };
- };
- };
- ListItemUncompleted: {
- content: {
- "application/json": {
- /**
- * Server ID
- *
- * @description The ID of the server
- */
- serverId: string;
- listItem: components["schemas"]["ListItem"];
- };
- };
- };
- ChannelMessageReactionCreated: {
- content: {
- "application/json": {
- /**
- * Server ID
- *
- * @description The ID of the server
- */
- serverId: string;
- reaction: components["schemas"]["ChatMessageReaction"];
- };
- };
- };
- ChannelMessageReactionDeleted: {
- content: {
- "application/json": {
- /**
- * Server ID
- *
- * @description The ID of the server
- */
- serverId: string;
- /**
- * Deleted by
- *
- * @description The ID of the user who deleted this reaction
- */
- deletedBy: string;
- reaction: components["schemas"]["ChatMessageReaction"];
- };
- };
- };
- ChannelMessageReactionManyDeleted: {
- content: {
- "application/json": {
- /**
- * Server ID
- *
- * @description The ID of the server
- */
- serverId: string;
- /**
- * Channel ID
- * Format: uuid
- *
- * @description The ID of the channel
- */
- channelId: string;
- /**
- * Message ID
- * Format: uuid
- *
- * @description The ID of the message
- */
- messageId: string;
- /**
- * Deleted by
- *
- * @description The ID of the user who deleted this reaction
- */
- deletedBy: string;
- /** @description The count of reactions that were removed */
- count: number;
- /** @description If present, only reactions of this emote were bulk removed from the message */
- emote?: components["schemas"]["Emote"];
- };
- };
- };
- ForumTopicCommentReactionCreated: {
- content: {
- "application/json": {
- /**
- * Server ID
- *
- * @description The ID of the server
- */
- serverId: string;
- reaction: components["schemas"]["ForumTopicCommentReaction"];
- };
- };
- };
- ForumTopicCommentReactionDeleted: {
- content: {
- "application/json": {
- /**
- * Server ID
- *
- * @description The ID of the server
- */
- serverId: string;
- reaction: components["schemas"]["ForumTopicCommentReaction"];
- };
- };
- };
- CalendarEventCommentCreated: {
- content: {
- "application/json": {
- /**
- * Server ID
- *
- * @description The ID of the server
- */
- serverId: string;
- calendarEventComment: components["schemas"]["CalendarEventComment"];
- };
- };
- };
- CalendarEventCommentDeleted: {
- content: {
- "application/json": {
- /**
- * Server ID
- *
- * @description The ID of the server
- */
- serverId: string;
- calendarEventComment: components["schemas"]["CalendarEventComment"];
- };
- };
- };
- CalendarEventCommentUpdated: {
- content: {
- "application/json": {
- /**
- * Server ID
- *
- * @description The ID of the server
- */
- serverId: string;
- calendarEventComment: components["schemas"]["CalendarEventComment"];
- };
- };
- };
- CalendarEventReactionCreated: {
- content: {
- "application/json": {
- /**
- * Server ID
- *
- * @description The ID of the server
- */
- serverId: string;
- reaction: components["schemas"]["CalendarEventReaction"];
- };
- };
- };
- CalendarEventReactionDeleted: {
- content: {
- "application/json": {
- /**
- * Server ID
- *
- * @description The ID of the server
- */
- serverId: string;
- reaction: components["schemas"]["CalendarEventReaction"];
- };
- };
- };
- CalendarEventCommentReactionCreated: {
- content: {
- "application/json": {
- /**
- * Server ID
- *
- * @description The ID of the server
- */
- serverId: string;
- reaction: components["schemas"]["CalendarEventCommentReaction"];
- };
- };
- };
- CalendarEventCommentReactionDeleted: {
- content: {
- "application/json": {
- /**
- * Server ID
- *
- * @description The ID of the server
- */
- serverId: string;
- reaction: components["schemas"]["CalendarEventCommentReaction"];
- };
- };
- };
- DocReactionCreated: {
- content: {
- "application/json": {
- /**
- * Server ID
- *
- * @description The ID of the server
- */
- serverId: string;
- reaction: components["schemas"]["DocReaction"];
- };
- };
- };
- DocReactionDeleted: {
- content: {
- "application/json": {
- /**
- * Server ID
- *
- * @description The ID of the server
- */
- serverId: string;
- reaction: components["schemas"]["DocReaction"];
- };
- };
- };
- DocCommentReactionCreated: {
- content: {
- "application/json": {
- /**
- * Server ID
- *
- * @description The ID of the server
- */
- serverId: string;
- reaction: components["schemas"]["DocCommentReaction"];
- };
- };
- };
- DocCommentReactionDeleted: {
- content: {
- "application/json": {
- /**
- * Server ID
- *
- * @description The ID of the server
- */
- serverId: string;
- reaction: components["schemas"]["DocCommentReaction"];
- };
- };
- };
- CalendarEventSeriesUpdated: {
- content: {
- "application/json": {
- /**
- * Server ID
- *
- * @description The ID of the server
- */
- serverId: string;
- calendarEventSeries: components["schemas"]["CalendarEventSeries"];
- /**
- * Calendar event ID
- *
- * @description The calendar event updates started at
- */
- calendarEventId?: number;
- };
- };
- };
- CalendarEventSeriesDeleted: {
- content: {
- "application/json": {
- /**
- * Server ID
- *
- * @description The ID of the server
- */
- serverId: string;
- calendarEventSeries: components["schemas"]["CalendarEventSeries"];
- /**
- * Calendar event ID
- *
- * @description The calendar event deletions started at
- */
- calendarEventId?: number;
- };
- };
- };
- AnnouncementCreated: {
- content: {
- "application/json": {
- /**
- * Server ID
- *
- * @description The ID of the server
- */
- serverId: string;
- announcement: components["schemas"]["Announcement"];
- };
- };
- };
- AnnouncementUpdated: {
- content: {
- "application/json": {
- /**
- * Server ID
- *
- * @description The ID of the server
- */
- serverId: string;
- announcement: components["schemas"]["Announcement"];
- };
- };
- };
- AnnouncementDeleted: {
- content: {
- "application/json": {
- /**
- * Server ID
- *
- * @description The ID of the server
- */
- serverId: string;
- announcement: components["schemas"]["Announcement"];
- };
- };
- };
- AnnouncementReactionCreated: {
- content: {
- "application/json": {
- /**
- * Server ID
- *
- * @description The ID of the server
- */
- serverId: string;
- reaction: components["schemas"]["AnnouncementReaction"];
- };
- };
- };
- AnnouncementReactionDeleted: {
- content: {
- "application/json": {
- /**
- * Server ID
- *
- * @description The ID of the server
- */
- serverId: string;
- reaction: components["schemas"]["AnnouncementReaction"];
- };
- };
- };
- AnnouncementCommentCreated: {
- content: {
- "application/json": {
- /**
- * Server ID
- *
- * @description The ID of the server
- */
- serverId: string;
- announcementComment: components["schemas"]["AnnouncementComment"];
- };
- };
- };
- AnnouncementCommentUpdated: {
- content: {
- "application/json": {
- /**
- * Server ID
- *
- * @description The ID of the server
- */
- serverId: string;
- announcementComment: components["schemas"]["AnnouncementComment"];
- };
- };
- };
- AnnouncementCommentDeleted: {
- content: {
- "application/json": {
- /**
- * Server ID
- *
- * @description The ID of the server
- */
- serverId: string;
- announcementComment: components["schemas"]["AnnouncementComment"];
- };
- };
- };
- AnnouncementCommentReactionCreated: {
- content: {
- "application/json": {
- /**
- * Server ID
- *
- * @description The ID of the server
- */
- serverId: string;
- reaction: components["schemas"]["AnnouncementCommentReaction"];
- };
- };
- };
- AnnouncementCommentReactionDeleted: {
- content: {
- "application/json": {
- /**
- * Server ID
- *
- * @description The ID of the server
- */
- serverId: string;
- reaction: components["schemas"]["AnnouncementCommentReaction"];
- };
- };
- };
- };
- parameters: never;
- requestBodies: never;
- headers: never;
- pathItems: never;
+ schemas: {
+ _SocketEventEnvelope: {
+ /**
+ * Opcode
+ *
+ * @description An operation code corresponding to the nature of the sent message (for example, success, failure, etc.)
+ * @enum {integer}
+ */
+ op:
+ | 0
+ | 1
+ | 2
+ | 8
+ | 9;
+ /**
+ * Data
+ *
+ * @description Data of any form depending on the underlying event
+ */
+ d?: Record<
+ string,
+ never
+ >;
+ /**
+ * Message ID
+ *
+ * @description Message ID used for replaying events after a disconnect
+ */
+ s?: string;
+ /**
+ * Event name
+ *
+ * @description Event name for the given message
+ */
+ t?: string;
+ };
+ /**
+ * @example {
+ * "id": "00000000-0000-0000-0000-000000000000",
+ * "type": "default",
+ * "serverId": "wlVr3Ggl",
+ * "groupId": "ZVzBo83p",
+ * "channelId": "00000000-0000-0000-0000-000000000000",
+ * "content": "Hello **world**!",
+ * "embeds": [
+ * {
+ * "title": "embed title",
+ * "description": "embeds support a **different** __subset__ *of* markdown than other markdown fields. <@Ann6LewA>\n\n [links](https://www.guilded.gg) ```\ncheck this code out```\n\n:pizza: time!! ttyl",
+ * "url": "https://www.guilded.gg",
+ * "color": 6118369,
+ * "timestamp": "2022-04-12T22:14:36.737Z",
+ * "footer": {
+ * "icon_url": "https://www.guilded.gg/asset/Logos/logomark/Color/Guilded_Logomark_Color.png",
+ * "text": "footer text"
+ * },
+ * "thumbnail": {
+ * "url": "https://www.guilded.gg/asset/Logos/logomark/Color/Guilded_Logomark_Color.png"
+ * },
+ * "image": {
+ * "url": "https://www.guilded.gg/asset/Logos/logomark_wordmark/Color/Guilded_Logomark_Wordmark_Color.png"
+ * },
+ * "author": {
+ * "name": "Gil",
+ * "url": "https://www.guilded.gg",
+ * "icon_url": "https://www.guilded.gg/asset/Default/Gil-md.png"
+ * },
+ * "fields": [
+ * {
+ * "name": "hello",
+ * "value": "these are fields"
+ * },
+ * {
+ * "name": "~~help i have been crossed out~~",
+ * "value": "~~oh noes~~",
+ * "inline": true
+ * },
+ * {
+ * "name": "another inline",
+ * "value": "field",
+ * "inline": true
+ * }
+ * ]
+ * }
+ * ],
+ * "createdAt": "2021-06-15T20:15:00.706Z",
+ * "createdBy": "Ann6LewA"
+ * }
+ */
+ ChatMessage: {
+ /**
+ * Message ID
+ * Format: uuid
+ *
+ * @description The ID of the message
+ */
+ id: string;
+ /**
+ * Type
+ *
+ * @description The type of chat message. "system" messages are generated by Guilded, while "default" messages are user or bot-generated.
+ * @enum {string}
+ */
+ type:
+ | "default"
+ | "system";
+ /**
+ * Server ID
+ *
+ * @description The ID of the server
+ */
+ serverId?: string;
+ /**
+ * Group ID
+ *
+ * @description The ID of the group
+ */
+ groupId?: string;
+ /**
+ * Channel ID
+ * Format: uuid
+ *
+ * @description The ID of the channel
+ */
+ channelId: string;
+ /**
+ * Content
+ * Format: markdown
+ *
+ * @description The content of the message
+ */
+ content?: string;
+ embeds?: components["schemas"]["ChatEmbed"][];
+ /** @description Message IDs that were replied to */
+ replyMessageIds?: string[];
+ /**
+ * Is private
+ *
+ * @description If set, this message will only be seen by those mentioned or replied to
+ */
+ isPrivate?: boolean;
+ /**
+ * Is silent
+ *
+ * @description If set, this message did not notify mention or reply recipients
+ * @default false
+ */
+ isSilent?: boolean;
+ mentions?: components["schemas"]["Mentions"];
+ /**
+ * Created at
+ * Format: date-time
+ *
+ * @description The ISO 8601 timestamp that the message was created at
+ */
+ createdAt: string;
+ /**
+ * Created by
+ *
+ * @description The ID of the user who created this message (Note: If this event has `createdByWebhookId` present, this field will still be populated, but can be ignored. In this case, the value of this field will always be Ann6LewA)
+ */
+ createdBy: string;
+ /**
+ * Created by Webhook ID
+ *
+ * @description The ID of the webhook who created this message, if it was created by a webhook
+ */
+ createdByWebhookId?: string;
+ /**
+ * Updated at
+ * Format: date-time
+ *
+ * @description The ISO 8601 timestamp that the message was updated at, if relevant
+ */
+ updatedAt?: string;
+ };
+ /**
+ * @example {
+ * "channelId": "00000000-0000-0000-0000-000000000000",
+ * "createdBy": "Ann6LewA",
+ * "emote": {
+ * "id": 90000000,
+ * "name": "grinning",
+ * "url": "https://img.guildedcdn.com/asset/Emojis/grinning.webp"
+ * },
+ * "messageId": "00000000-0000-0000-0000-000000000000"
+ * }
+ */
+ ChatMessageReaction: {
+ /**
+ * Channel ID
+ * Format: uuid
+ *
+ * @description The ID of the channel
+ */
+ channelId: string;
+ /**
+ * User ID
+ *
+ * @description The ID of the user who added the reaction
+ */
+ createdBy: string;
+ emote: components["schemas"]["Emote"];
+ /**
+ * Message ID
+ * Format: uuid
+ *
+ * @description The ID of the message
+ */
+ messageId: string;
+ };
+ /**
+ * @description Rich content sections optionally associated with chat messages. Properties with "webhook-markdown" support allow for the following: link, italic, bold, strikethrough, underline, inline code, block code, reaction, and mention.
+ * @example {
+ * "title": "embed title",
+ * "description": "embeds support a **different** __subset__ *of* markdown than other markdown fields. <@Ann6LewA>\n\n [links](https://www.guilded.gg) ```\ncheck this code out```\n\n:pizza: time!! ttyl",
+ * "url": "https://www.guilded.gg",
+ * "color": 6118369,
+ * "timestamp": "2022-04-12T22:14:36.737Z",
+ * "footer": {
+ * "icon_url": "https://www.guilded.gg/asset/Logos/logomark/Color/Guilded_Logomark_Color.png",
+ * "text": "footer text"
+ * },
+ * "thumbnail": {
+ * "url": "https://www.guilded.gg/asset/Logos/logomark/Color/Guilded_Logomark_Color.png"
+ * },
+ * "image": {
+ * "url": "https://www.guilded.gg/asset/Logos/logomark_wordmark/Color/Guilded_Logomark_Wordmark_Color.png"
+ * },
+ * "author": {
+ * "name": "Gil",
+ * "url": "https://www.guilded.gg",
+ * "icon_url": "https://www.guilded.gg/asset/Default/Gil-md.png"
+ * },
+ * "fields": [
+ * {
+ * "name": "hello",
+ * "value": "these are fields"
+ * },
+ * {
+ * "name": "~~help i have been crossed out~~",
+ * "value": "~~oh noes~~",
+ * "inline": true
+ * },
+ * {
+ * "name": "another inline",
+ * "value": "field",
+ * "inline": true
+ * }
+ * ]
+ * }
+ */
+ ChatEmbed: {
+ /**
+ * Format: webhook-markdown
+ *
+ * @description Main header of the embed
+ */
+ title?: string;
+ /**
+ * Format: webhook-markdown
+ *
+ * @description Subtext of the embed
+ */
+ description?: string;
+ /**
+ * Format: uri
+ *
+ * @description URL to linkify the `title` field with
+ */
+ url?: string;
+ /** @description Decimal value of the color that the left border should be */
+ color?: number;
+ /** @description A small section at the bottom of the embed */
+ footer?: {
+ /**
+ * Format: media-uri
+ *
+ * @description URL of a small image to put in the footer
+ */
+ icon_url?: string;
+ /** @description Text of the footer */
+ text: string;
+ };
+ /**
+ * Format: date-time
+ *
+ * @description A timestamp to put in the footer
+ */
+ timestamp?: string;
+ /** @description An image to the right of the embed's content */
+ thumbnail?: {
+ /**
+ * Format: media-uri
+ *
+ * @description URL of the image
+ */
+ url?: string;
+ };
+ /** @description The main picture to associate with the embed */
+ image?: {
+ /**
+ * Format: media-uri
+ *
+ * @description URL of the image
+ */
+ url?: string;
+ };
+ /** @description A small section above the title of the embed */
+ author?: {
+ /** @description Name of the author */
+ name?: string;
+ /**
+ * Format: uri
+ *
+ * @description URL to linkify the author's `name` field
+ */
+ url?: string;
+ /**
+ * Format: media-uri
+ *
+ * @description URL of a small image to display to the left of the author's `name`
+ */
+ icon_url?: string;
+ };
+ /** @description Table-like cells to add to the embed */
+ fields?: {
+ /**
+ * Format: webhook-markdown
+ *
+ * @description Header of the table-like cell
+ */
+ name: string;
+ /**
+ * Format: webhook-markdown
+ *
+ * @description Subtext of the table-like cell
+ */
+ value: string;
+ /**
+ * @description If the field should wrap or not
+ * @default false
+ */
+ inline?: boolean;
+ }[];
+ };
+ /**
+ * @example {
+ * "type": "roblox",
+ * "userId": "Ann6LewA",
+ * "handle": "builderman",
+ * "serviceId": "156",
+ * "createdAt": "2006-03-08T20:15:00.706Z"
+ * }
+ */
+ SocialLink: {
+ /**
+ * Social link type
+ *
+ * @description The type of social link that Guilded supports. Depending on this value, `handle` or `serviceId` may or may not be present
+ * @enum {string}
+ */
+ type:
+ | "bnet"
+ | "epic"
+ | "facebook"
+ | "origin"
+ | "patreon"
+ | "psn"
+ | "roblox"
+ | "steam"
+ | "switch"
+ | "twitch"
+ | "twitter"
+ | "xbox"
+ | "youtube";
+ /**
+ * User ID
+ *
+ * @description The ID of the user that the social link is associated with
+ */
+ userId: string;
+ /** @description The handle of the user within the external service */
+ handle?: string;
+ /** @description The unique ID that represents this member's social link within the external service */
+ serviceId?: string;
+ /**
+ * Created at
+ * Format: date-time
+ *
+ * @description The ISO 8601 timestamp that the social link was created at
+ */
+ createdAt: string;
+ };
+ /**
+ * @description Metadata of who or what is mentioned in content
+ * @example {
+ * "users": [
+ * {
+ * "id": "Ann6LewA"
+ * }
+ * ],
+ * "channels": [
+ * {
+ * "id": "00000000-0000-0000-0000-000000000000"
+ * }
+ * ],
+ * "roles": [
+ * {
+ * "id": 591232
+ * }
+ * ],
+ * "everyone": true,
+ * "here": true
+ * }
+ */
+ Mentions: {
+ /**
+ * Users
+ *
+ * @description Info on mentioned users
+ */
+ users?: {
+ /**
+ * User ID
+ *
+ * @description The ID of the user
+ */
+ id: string;
+ }[];
+ /**
+ * Channels
+ *
+ * @description Info on mentioned channels
+ */
+ channels?: {
+ /**
+ * Channel ID
+ * Format: uuid
+ *
+ * @description The ID of the channel
+ */
+ id: string;
+ }[];
+ /**
+ * Roles
+ *
+ * @description Info on mentioned roles
+ */
+ roles?: {
+ /**
+ * Role ID
+ *
+ * @description The ID of the role
+ */
+ id: number;
+ }[];
+ /**
+ * Everyone
+ *
+ * @description If @everyone was mentioned
+ */
+ everyone?: boolean;
+ /**
+ * Here
+ *
+ * @description If @here was mentioned
+ */
+ here?: boolean;
+ };
+ /**
+ * @example {
+ * "id": 1234567890,
+ * "content": "Great idea!",
+ * "createdAt": "2021-06-15T20:15:00.706Z",
+ * "channelId": "00000000-0000-0000-0000-000000000000",
+ * "forumTopicId": 2036274747,
+ * "createdBy": "Ann6LewA"
+ * }
+ */
+ ForumTopicComment: {
+ /** @description The ID of the forum topic comment */
+ id: number;
+ /**
+ * Content
+ * Format: markdown
+ *
+ * @description The content of the forum topic comment
+ */
+ content: string;
+ /**
+ * Created at
+ * Format: date-time
+ *
+ * @description The ISO 8601 timestamp that the forum topic comment was created at
+ */
+ createdAt: string;
+ /**
+ * Updated at
+ * Format: date-time
+ *
+ * @description The ISO 8601 timestamp that the forum topic comment was updated at, if relevant
+ */
+ updatedAt?: string;
+ /**
+ * Channel ID
+ * Format: uuid
+ *
+ * @description The ID of the channel
+ */
+ channelId: string;
+ /** @description The ID of the forum topic */
+ forumTopicId: number;
+ /**
+ * Created by
+ *
+ * @description The ID of the user who created this forum topic comment (Note: If this event has `createdByWebhookId` present, this field will still be populated, but can be ignored. In this case, the value of this field will always be Ann6LewA)
+ */
+ createdBy: string;
+ mentions?: components["schemas"]["Mentions"];
+ };
+ /**
+ * @example {
+ * "channelId": "00000000-0000-0000-0000-000000000000",
+ * "createdBy": "Ann6LewA",
+ * "emote": {
+ * "id": 90000000,
+ * "name": "grinning",
+ * "url": "https://img.guildedcdn.com/asset/Emojis/grinning.webp"
+ * },
+ * "forumTopicId": 123456
+ * }
+ */
+ ForumTopicReaction: {
+ /**
+ * Channel ID
+ * Format: uuid
+ *
+ * @description The ID of the channel
+ */
+ channelId: string;
+ /**
+ * User ID
+ *
+ * @description The ID of the user who added the reaction
+ */
+ createdBy: string;
+ emote: components["schemas"]["Emote"];
+ /** @description The ID of the forum topic */
+ forumTopicId: number;
+ };
+ /**
+ * @example {
+ * "channelId": "00000000-0000-0000-0000-000000000000",
+ * "createdBy": "Ann6LewA",
+ * "emote": {
+ * "id": 90000000,
+ * "name": "grinning",
+ * "url": "https://img.guildedcdn.com/asset/Emojis/grinning.webp"
+ * },
+ * "forumTopicId": 123456,
+ * "forumTopicCommentId": 1234567890
+ * }
+ */
+ ForumTopicCommentReaction: {
+ /**
+ * Channel ID
+ * Format: uuid
+ *
+ * @description The ID of the channel
+ */
+ channelId: string;
+ /**
+ * User ID
+ *
+ * @description The ID of the user who added the reaction
+ */
+ createdBy: string;
+ emote: components["schemas"]["Emote"];
+ /** @description The ID of the forum topic */
+ forumTopicId: number;
+ /** @description The ID of the forum topic comment */
+ forumTopicCommentId: number;
+ };
+ /**
+ * @example {
+ * "id": 123456,
+ * "serverId": "wlVr3Ggl",
+ * "channelId": "00000000-0000-0000-0000-000000000000",
+ * "title": "Welcome new members!!",
+ * "createdAt": "2021-06-15T20:15:00.706Z",
+ * "createdBy": "Ann6LewA",
+ * "content": "Please introduce yourself in this topic!!!"
+ * }
+ */
+ ForumTopic: {
+ /** @description The ID of the forum topic */
+ id: number;
+ /**
+ * Server ID
+ *
+ * @description The ID of the server
+ */
+ serverId: string;
+ /**
+ * Channel ID
+ * Format: uuid
+ *
+ * @description The ID of the channel
+ */
+ channelId: string;
+ /**
+ * Title
+ *
+ * @description The title of the forum topic
+ */
+ title: string;
+ /**
+ * Created at
+ * Format: date-time
+ *
+ * @description The ISO 8601 timestamp that the forum topic was created at
+ */
+ createdAt: string;
+ /**
+ * Created by
+ *
+ * @description The ID of the user who created this forum topic (Note: If this event has `createdByWebhookId` present, this field will still be populated, but can be ignored. In this case, the value of this field will always be Ann6LewA)
+ */
+ createdBy: string;
+ /**
+ * Updated at
+ * Format: date-time
+ *
+ * @description The ISO 8601 timestamp that the forum topic was updated at, if relevant
+ */
+ updatedAt?: string;
+ /**
+ * Bumped at
+ * Format: date-time
+ *
+ * @description The ISO 8601 timestamp that the forum topic was bumped at. This timestamp is updated whenever there is any activity on the posts within the forum topic.
+ */
+ bumpedAt?: string;
+ /**
+ * Is pinned
+ *
+ * @default false
+ */
+ isPinned?: boolean;
+ /**
+ * Is locked
+ *
+ * @default false
+ */
+ isLocked?: boolean;
+ /**
+ * Content
+ * Format: markdown
+ *
+ * @description The content of the forum topic
+ */
+ content: string;
+ mentions?: components["schemas"]["Mentions"];
+ };
+ /**
+ * @example {
+ * "id": 123456,
+ * "serverId": "wlVr3Ggl",
+ * "channelId": "00000000-0000-0000-0000-000000000000",
+ * "title": "Welcome new members!!",
+ * "createdAt": "2021-06-15T20:15:00.706Z",
+ * "createdBy": "Ann6LewA"
+ * }
+ */
+ ForumTopicSummary: {
+ /** @description The ID of the forum topic */
+ id: number;
+ /**
+ * Server ID
+ *
+ * @description The ID of the server
+ */
+ serverId: string;
+ /**
+ * Channel ID
+ * Format: uuid
+ *
+ * @description The ID of the channel
+ */
+ channelId: string;
+ /**
+ * Title
+ *
+ * @description The title of the forum topic
+ */
+ title: string;
+ /**
+ * Created at
+ * Format: date-time
+ *
+ * @description The ISO 8601 timestamp that the forum topic was created at
+ */
+ createdAt: string;
+ /**
+ * Created by
+ *
+ * @description The ID of the user who created this forum topic (Note: If this event has `createdByWebhookId` present, this field will still be populated, but can be ignored. In this case, the value of this field will always be Ann6LewA)
+ */
+ createdBy: string;
+ /**
+ * Updated at
+ * Format: date-time
+ *
+ * @description The ISO 8601 timestamp that the forum topic was updated at, if relevant
+ */
+ updatedAt?: string;
+ /**
+ * Bumped at
+ * Format: date-time
+ *
+ * @description The ISO 8601 timestamp that the forum topic was bumped at. This timestamp is updated whenever there is any activity on the posts within the forum topic.
+ */
+ bumpedAt?: string;
+ /**
+ * Is pinned
+ *
+ * @default false
+ */
+ isPinned?: boolean;
+ /**
+ * Is locked
+ *
+ * @default false
+ */
+ isLocked?: boolean;
+ };
+ /**
+ * @example {
+ * "id": "00000000-0000-0000-0000-000000000000",
+ * "serverId": "wlVr3Ggl",
+ * "channelId": "00000000-0000-0000-0000-000000000000",
+ * "message": "Remember to say hello **world**!",
+ * "createdAt": "2021-06-15T20:15:00.706Z",
+ * "createdBy": "Ann6LewA",
+ * "note": {
+ * "createdAt": "2021-06-15T20:15:00.706Z",
+ * "createdBy": "Ann6LewA",
+ * "content": "Duly noted"
+ * }
+ * }
+ */
+ ListItem: {
+ /**
+ * Format: uuid
+ *
+ * @description The ID of the list item
+ */
+ id: string;
+ /**
+ * Server ID
+ *
+ * @description The ID of the server
+ */
+ serverId: string;
+ /**
+ * Channel ID
+ * Format: uuid
+ *
+ * @description The ID of the channel
+ */
+ channelId: string;
+ /**
+ * Message
+ * Format: markdown
+ *
+ * @description The message of the list item
+ */
+ message: string;
+ mentions?: components["schemas"]["Mentions"];
+ /**
+ * Created at
+ * Format: date-time
+ *
+ * @description The ISO 8601 timestamp that the list item was created at
+ */
+ createdAt: string;
+ /**
+ * Created by
+ *
+ * @description The ID of the user who created this list item (Note: If this event has `createdByWebhookId` present, this field will still be populated, but can be ignored. In this case, the value of this field will always be Ann6LewA)
+ */
+ createdBy: string;
+ /**
+ * Created by Webhook ID
+ *
+ * @description The ID of the webhook who created this list item, if it was created by a webhook
+ */
+ createdByWebhookId?: string;
+ /**
+ * Updated at
+ * Format: date-time
+ *
+ * @description The ISO 8601 timestamp that the list item was updated at, if relevant
+ */
+ updatedAt?: string;
+ /**
+ * Updated by
+ *
+ * @description The ID of the user who updated this list item
+ */
+ updatedBy?: string;
+ /**
+ * Format: uuid
+ *
+ * @description The ID of the parent list item if this list item is nested
+ */
+ parentListItemId?: string;
+ /**
+ * Completed at
+ * Format: date-time
+ *
+ * @description The ISO 8601 timestamp that the list item was completed at
+ */
+ completedAt?: string;
+ /**
+ * Completed by
+ *
+ * @description The ID of the user who completed this list item
+ */
+ completedBy?: string;
+ note?: {
+ /**
+ * Created at
+ * Format: date-time
+ *
+ * @description The ISO 8601 timestamp that the note was created at. If this field is populated, then there's a note associated with the list item
+ */
+ createdAt: string;
+ /**
+ * Created by
+ *
+ * @description The ID of the user who created this note
+ */
+ createdBy: string;
+ /**
+ * Updated at
+ * Format: date-time
+ *
+ * @description The ISO 8601 timestamp that the note was updated at, if relevant
+ */
+ updatedAt?: string;
+ /**
+ * Updated by
+ *
+ * @description The ID of the user who updated this note
+ */
+ updatedBy?: string;
+ mentions?: components["schemas"]["Mentions"];
+ /**
+ * Note
+ * Format: markdown
+ *
+ * @description The note of the list item
+ */
+ content: string;
+ };
+ };
+ /**
+ * @example {
+ * "id": "00000000-0000-0000-0000-000000000000",
+ * "serverId": "wlVr3Ggl",
+ * "channelId": "00000000-0000-0000-0000-000000000000",
+ * "message": "Remember to say hello **world**!",
+ * "createdAt": "2021-06-15T20:15:00.706Z",
+ * "createdBy": "Ann6LewA",
+ * "note": {
+ * "createdAt": "2021-06-15T20:15:00.706Z",
+ * "createdBy": "Ann6LewA"
+ * }
+ * }
+ */
+ ListItemSummary: {
+ /**
+ * Format: uuid
+ *
+ * @description The ID of the list item
+ */
+ id: string;
+ /**
+ * Server ID
+ *
+ * @description The ID of the server
+ */
+ serverId: string;
+ /**
+ * Channel ID
+ * Format: uuid
+ *
+ * @description The ID of the channel
+ */
+ channelId: string;
+ /**
+ * Message
+ * Format: markdown
+ *
+ * @description The message of the list item
+ */
+ message: string;
+ mentions?: components["schemas"]["Mentions"];
+ /**
+ * Created at
+ * Format: date-time
+ *
+ * @description The ISO 8601 timestamp that the list item was created at
+ */
+ createdAt: string;
+ /**
+ * Created by
+ *
+ * @description The ID of the user who created this list item (Note: If this event has `createdByWebhookId` present, this field will still be populated, but can be ignored. In this case, the value of this field will always be Ann6LewA)
+ */
+ createdBy: string;
+ /**
+ * Created by Webhook ID
+ *
+ * @description The ID of the webhook who created this list item, if it was created by a webhook
+ */
+ createdByWebhookId?: string;
+ /**
+ * Updated at
+ * Format: date-time
+ *
+ * @description The ISO 8601 timestamp that the list item was updated at, if relevant
+ */
+ updatedAt?: string;
+ /**
+ * Updated by
+ *
+ * @description The ID of the user who updated this list item
+ */
+ updatedBy?: string;
+ /**
+ * Format: uuid
+ *
+ * @description The ID of the parent list item if this list item is nested
+ */
+ parentListItemId?: string;
+ /**
+ * Completed at
+ * Format: date-time
+ *
+ * @description The ISO 8601 timestamp that the list item was completed at
+ */
+ completedAt?: string;
+ /**
+ * Completed by
+ *
+ * @description The ID of the user who completed this list item
+ */
+ completedBy?: string;
+ note?: {
+ /**
+ * Created at
+ * Format: date-time
+ *
+ * @description The ISO 8601 timestamp that the note was created at. If this field is populated, then there's a note associated with the list item
+ */
+ createdAt: string;
+ /**
+ * Created by
+ *
+ * @description The ID of the user who created this note
+ */
+ createdBy: string;
+ /**
+ * Updated at
+ * Format: date-time
+ *
+ * @description The ISO 8601 timestamp that the note was updated at, if relevant
+ */
+ updatedAt?: string;
+ /**
+ * Updated by
+ *
+ * @description The ID of the user who updated this note
+ */
+ updatedBy?: string;
+ };
+ };
+ /**
+ * @example {
+ * "id": 0,
+ * "serverId": "wlVr3Ggl",
+ * "channelId": "00000000-0000-0000-0000-000000000000",
+ * "title": "HOW-TO: Smoke These Meats with Sweet Baby Ray's",
+ * "content": "Spicy jalapeno bacon ipsum dolor amet sirloin ground round short loin, meatball brisket capicola tri-tip ham pork belly biltong corned beef chuck. Chicken ham brisket shank rump buffalo t-bone. Short loin sausage buffalo porchetta pork belly rump tri-tip frankfurter tail pork chop cow sirloin. Pancetta porchetta tail ball tip chislic beef ribs. Buffalo andouille leberkas jerky. Fatback shankle andouille beef. Cow kielbasa buffalo pork loin chislic meatloaf short loin rump meatball prosciutto.",
+ * "createdAt": "2021-06-15T20:15:00.706Z",
+ * "createdBy": "Ann6LewA",
+ * "updatedAt": "2021-07-15T22:20:00.706Z",
+ * "updatedBy": "Ann6LewA"
+ * }
+ */
+ Doc: {
+ /**
+ * Doc ID
+ *
+ * @description The ID of the doc
+ */
+ id: number;
+ /**
+ * Server ID
+ *
+ * @description The ID of the server
+ */
+ serverId: string;
+ /**
+ * Channel ID
+ * Format: uuid
+ *
+ * @description The ID of the channel
+ */
+ channelId: string;
+ /**
+ * Title
+ *
+ * @description The title of the doc
+ */
+ title: string;
+ /**
+ * Content
+ * Format: markdown
+ *
+ * @description The content of the doc
+ */
+ content: string;
+ mentions?: components["schemas"]["Mentions"];
+ /**
+ * Created at
+ * Format: date-time
+ *
+ * @description The ISO 8601 timestamp that the doc was created at
+ */
+ createdAt: string;
+ /**
+ * Created by
+ *
+ * @description The ID of the user who created this doc
+ */
+ createdBy: string;
+ /**
+ * Updated at
+ * Format: date-time
+ *
+ * @description The ISO 8601 timestamp that the doc was updated at, if relevant
+ */
+ updatedAt?: string;
+ /**
+ * Updated by
+ *
+ * @description The ID of the user who updated this doc
+ */
+ updatedBy?: string;
+ };
+ /**
+ * @example {
+ * "id": 123456,
+ * "content": "Wow, cool document!!!",
+ * "createdAt": "2021-06-15T20:15:00.706Z",
+ * "channelId": "00000000-0000-0000-0000-000000000000",
+ * "docId": 0,
+ * "createdBy": "Ann6LewA"
+ * }
+ */
+ DocComment: {
+ /**
+ * Doc comment ID
+ *
+ * @description The ID of the doc comment
+ */
+ id: number;
+ /**
+ * Content
+ * Format: markdown
+ *
+ * @description The content of the doc comment
+ */
+ content: string;
+ /**
+ * Created at
+ * Format: date-time
+ *
+ * @description The ISO 8601 timestamp that the doc comment was created at
+ */
+ createdAt: string;
+ /**
+ * Created by
+ *
+ * @description The ID of the user who created this doc comment (Note: If this event has `createdByWebhookId` present, this field will still be populated, but can be ignored. In this case, the value of this field will always be Ann6LewA)
+ */
+ createdBy: string;
+ /**
+ * Updated at
+ * Format: date-time
+ *
+ * @description The ISO 8601 timestamp that the doc comment was updated at, if relevant
+ */
+ updatedAt?: string;
+ /**
+ * Channel ID
+ * Format: uuid
+ *
+ * @description The ID of the channel
+ */
+ channelId: string;
+ /**
+ * Doc ID
+ *
+ * @description The ID of the doc
+ */
+ docId: number;
+ mentions?: components["schemas"]["Mentions"];
+ };
+ /**
+ * @example {
+ * "channelId": "00000000-0000-0000-0000-000000000000",
+ * "createdBy": "Ann6LewA",
+ * "emote": {
+ * "id": 90000000,
+ * "name": "grinning",
+ * "url": "https://img.guildedcdn.com/asset/Emojis/grinning.webp"
+ * },
+ * "docId": 0
+ * }
+ */
+ DocReaction: {
+ /**
+ * Channel ID
+ * Format: uuid
+ *
+ * @description The ID of the channel
+ */
+ channelId: string;
+ /**
+ * User ID
+ *
+ * @description The ID of the user who added the reaction
+ */
+ createdBy: string;
+ emote: components["schemas"]["Emote"];
+ /**
+ * Doc ID
+ *
+ * @description The ID of the doc
+ */
+ docId: number;
+ };
+ /**
+ * @example {
+ * "channelId": "00000000-0000-0000-0000-000000000000",
+ * "createdBy": "Ann6LewA",
+ * "emote": {
+ * "id": 90000000,
+ * "name": "grinning",
+ * "url": "https://img.guildedcdn.com/asset/Emojis/grinning.webp"
+ * },
+ * "docId": 0,
+ * "docCommentId": 123456
+ * }
+ */
+ DocCommentReaction: {
+ /**
+ * Channel ID
+ * Format: uuid
+ *
+ * @description The ID of the channel
+ */
+ channelId: string;
+ /**
+ * User ID
+ *
+ * @description The ID of the user who added the reaction
+ */
+ createdBy: string;
+ emote: components["schemas"]["Emote"];
+ /**
+ * Doc ID
+ *
+ * @description The ID of the doc
+ */
+ docId: number;
+ /**
+ * Doc comment ID
+ *
+ * @description The ID of the doc comment
+ */
+ docCommentId: number;
+ };
+ /**
+ * @example {
+ * "user": {
+ * "id": "Ann6LewA",
+ * "type": "user",
+ * "name": "Leopold Stotch",
+ * "createdAt": "2021-06-15T20:15:00.706Z"
+ * },
+ * "roleIds": [],
+ * "nickname": "Professor Chaos",
+ * "joinedAt": "2021-07-15T20:15:00.706Z"
+ * }
+ */
+ ServerMember: {
+ user: components["schemas"]["User"];
+ /** Role IDs */
+ roleIds: number[];
+ /** Nickname */
+ nickname?: string;
+ /**
+ * Created at
+ * Format: date-time
+ *
+ * @description The ISO 8601 timestamp that the member was created at
+ */
+ joinedAt: string;
+ /**
+ * Is owner
+ *
+ * @default false
+ */
+ isOwner?: boolean;
+ };
+ /**
+ * @example {
+ * "user": {
+ * "id": "Ann6LewA",
+ * "type": "user",
+ * "name": "Leopold Stotch"
+ * },
+ * "roleIds": []
+ * }
+ */
+ ServerMemberSummary: {
+ user: components["schemas"]["UserSummary"];
+ /** Role IDs */
+ roleIds: number[];
+ };
+ /**
+ * @example {
+ * "id": "Ann6LewA",
+ * "type": "user",
+ * "name": "Leopold Stotch",
+ * "createdAt": "2021-06-15T20:15:00.706Z"
+ * }
+ */
+ User: {
+ /**
+ * User ID
+ *
+ * @description The ID of the user
+ */
+ id: string;
+ /**
+ * User type
+ *
+ * @description The type of user. If this property is absent, it can assumed to be of type `user`
+ * @enum {string}
+ */
+ type?:
+ | "bot"
+ | "user";
+ /**
+ * User name
+ *
+ * @description The user's name
+ */
+ name: string;
+ /**
+ * Avatar
+ * Format: media-uri
+ *
+ * @description The avatar image associated with the user
+ */
+ avatar?: string;
+ /**
+ * Banner
+ * Format: media-uri
+ *
+ * @description The banner image associated with the user
+ */
+ banner?: string;
+ /**
+ * Created at
+ * Format: date-time
+ *
+ * @description The ISO 8601 timestamp that the user was created at
+ */
+ createdAt: string;
+ };
+ /**
+ * @example {
+ * "id": "Ann6LewA",
+ * "type": "user",
+ * "name": "Leopold Stotch"
+ * }
+ */
+ UserSummary: {
+ /**
+ * User ID
+ *
+ * @description The ID of the user
+ */
+ id: string;
+ /**
+ * User type
+ *
+ * @description The type of user. If this property is absent, it can assumed to be of type `user`
+ * @enum {string}
+ */
+ type?:
+ | "bot"
+ | "user";
+ /**
+ * User name
+ *
+ * @description The user's name
+ */
+ name: string;
+ /**
+ * Avatar
+ * Format: media-uri
+ *
+ * @description The avatar image associated with the user
+ */
+ avatar?: string;
+ };
+ /**
+ * @example {
+ * "user": {
+ * "id": "Ann6LewA",
+ * "type": "user",
+ * "name": "Leopold Stotch"
+ * },
+ * "reason": "More toxic than a poison Pokémon",
+ * "createdAt": "2021-06-15T20:15:00.706Z",
+ * "createdBy": "Ann6LewA"
+ * }
+ */
+ ServerMemberBan: {
+ user: components["schemas"]["UserSummary"];
+ /**
+ * Reason
+ *
+ * @description The reason for the ban as submitted by the banner
+ */
+ reason?: string;
+ /**
+ * Created by
+ *
+ * @description The ID of the user who created this server member ban
+ */
+ createdBy: string;
+ /**
+ * Created at
+ * Format: date-time
+ *
+ * @description The ISO 8601 timestamp that the server member ban was created at
+ */
+ createdAt: string;
+ };
+ /**
+ * @example {
+ * "id": "00000000-0000-0000-0000-000000000000",
+ * "type": "chat",
+ * "name": "The Dank Cellar",
+ * "topic": "Dank memes ONLY",
+ * "createdAt": "2021-06-15T20:15:00.706Z",
+ * "createdBy": "Ann6LewA",
+ * "serverId": "wlVr3Ggl",
+ * "groupId": "ZVzBo83p"
+ * }
+ */
+ ServerChannel: {
+ /**
+ * Channel ID
+ * Format: uuid
+ *
+ * @description The ID of the channel
+ */
+ id: string;
+ /**
+ * @description The type of channel. This will determine what routes to use for creating content in a channel. For example, if this "chat", then one must use the routes for creating channel messages
+ * @enum {string}
+ */
+ type:
+ | "announcements"
+ | "calendar"
+ | "chat"
+ | "docs"
+ | "forums"
+ | "list"
+ | "media"
+ | "scheduling"
+ | "stream"
+ | "voice";
+ /** @description The name of the channel */
+ name: string;
+ /** @description The topic of the channel */
+ topic?: string;
+ /**
+ * Created at
+ * Format: date-time
+ *
+ * @description The ISO 8601 timestamp that the channel was created at
+ */
+ createdAt: string;
+ /**
+ * Created by
+ *
+ * @description The ID of the user who created this channel
+ */
+ createdBy: string;
+ /**
+ * Updated at
+ * Format: date-time
+ *
+ * @description The ISO 8601 timestamp that the channel was updated at, if relevant
+ */
+ updatedAt?: string;
+ /**
+ * Server ID
+ *
+ * @description The ID of the server
+ */
+ serverId: string;
+ /**
+ * Channel ID
+ * Format: uuid
+ *
+ * @description ID of the parent channel or parent thread, if present. Only relevant for server channels
+ */
+ parentId?: string;
+ /** @description Only relevant for server channels */
+ categoryId?: number;
+ /**
+ * Group ID
+ *
+ * @description The ID of the group
+ */
+ groupId: string;
+ /**
+ * Is public
+ *
+ * @description Whether the channel can be accessed from users who are not member of the server
+ * @default false
+ */
+ isPublic?: boolean;
+ /**
+ * Archived by
+ *
+ * @description The ID of the user who archived this channel
+ */
+ archivedBy?: string;
+ /**
+ * Archived at
+ * Format: date-time
+ *
+ * @description The ISO 8601 timestamp that the channel was archived at, if relevant
+ */
+ archivedAt?: string;
+ };
+ /**
+ * @example {
+ * "id": "wlVr3Ggl",
+ * "type": "community",
+ * "name": "Guilded",
+ * "url": "Guilded-Official",
+ * "about": "The Official Guilded Server! For devs, friends, and fans alike!",
+ * "ownerId": "Ann6LewA",
+ * "createdAt": "2018-10-05T20:15:00.706Z",
+ * "isVerified": true,
+ * "timezone": "America/Los Angeles (PST/PDT)"
+ * }
+ */
+ Server: {
+ /**
+ * Server ID
+ *
+ * @description The ID of the server
+ */
+ id: string;
+ /**
+ * Created by
+ *
+ * @description The ID of the user who created this server
+ */
+ ownerId: string;
+ /**
+ * Server type
+ *
+ * @description The type of server designated from the server's settings page
+ * @enum {string}
+ */
+ type?:
+ | "clan"
+ | "community"
+ | "friends"
+ | "guild"
+ | "organization"
+ | "other"
+ | "streaming"
+ | "team";
+ /**
+ * Server name
+ *
+ * @description The name given to the server
+ */
+ name: string;
+ /**
+ * Server URL
+ *
+ * @description The URL that the server can be accessible from. For example, a value of "Guilded-Official" means the server can be accessible from https://www.guilded.gg/Guilded-Official
+ */
+ url?: string;
+ /**
+ * Description
+ *
+ * @description The description associated with the server
+ */
+ about?: string;
+ /**
+ * Avatar
+ * Format: media-uri
+ *
+ * @description The avatar image associated with the server
+ */
+ avatar?: string;
+ /**
+ * Banner
+ * Format: media-uri
+ *
+ * @description The banner image associated with the server
+ */
+ banner?: string;
+ /**
+ * Timezone
+ *
+ * @description The timezone associated with the server
+ */
+ timezone?: string;
+ /**
+ * Is verified
+ *
+ * @description The verified status of the server
+ */
+ isVerified?: boolean;
+ /**
+ * Channel ID
+ * Format: uuid
+ *
+ * @description The channel ID of the default channel of the server. This channel is defined as the first chat or voice channel in the left sidebar of a server in our UI. This channel is useful for sending welcome messages, though note that a bot may not have permissions to interact with this channel depending on how the server is configured.
+ */
+ defaultChannelId?: string;
+ /**
+ * Created at
+ * Format: date-time
+ *
+ * @description The ISO 8601 timestamp that the server was created at
+ */
+ createdAt: string;
+ };
+ /**
+ * @example {
+ * "id": "00000000-0000-0000-0000-000000000000",
+ * "serverId": "wlVr3Ggl",
+ * "channelId": "00000000-0000-0000-0000-000000000000",
+ * "name": "E-102 Gamma",
+ * "createdAt": "2021-06-15T20:15:00.706Z",
+ * "createdBy": "Ann6LewA"
+ * }
+ */
+ Webhook: {
+ /**
+ * Webhook ID
+ * Format: uuid
+ *
+ * @description The ID of the webhook
+ */
+ id: string;
+ /**
+ * Name
+ *
+ * @description The name of the webhook
+ */
+ name: string;
+ /**
+ * Avatar
+ * Format: media-uri
+ *
+ * @description The avatar image associated with the webhook
+ */
+ avatar?: string;
+ /**
+ * Server ID
+ *
+ * @description The ID of the server
+ */
+ serverId: string;
+ /**
+ * Channel ID
+ * Format: uuid
+ *
+ * @description The ID of the channel
+ */
+ channelId: string;
+ /**
+ * Created at
+ * Format: date-time
+ *
+ * @description The ISO 8601 timestamp that the webhook was created at
+ */
+ createdAt: string;
+ /**
+ * Created by
+ *
+ * @description The ID of the user who created this webhook
+ */
+ createdBy: string;
+ /**
+ * Deleted at
+ * Format: date-time
+ *
+ * @description The ISO 8601 timestamp that the webhook was deleted at
+ */
+ deletedAt?: string;
+ /**
+ * Token
+ *
+ * @description The token of the webhook
+ */
+ token?: string;
+ };
+ /**
+ * @example {
+ * "id": 1,
+ * "serverId": "wlVr3Ggl",
+ * "channelId": "00000000-0000-0000-0000-000000000000",
+ * "name": "Surprise LAN party for my wife 🤫",
+ * "description": "**Don't say anything to her!** She's gonna love playing Call of Duty all night",
+ * "location": "My house!",
+ * "url": "https://www.surprisepartygame.com/",
+ * "duration": 60,
+ * "color": 16106496,
+ * "startsAt": "2022-06-16T00:00:00.000Z",
+ * "createdAt": "2021-06-15T20:15:00.706Z",
+ * "createdBy": "Ann6LewA"
+ * }
+ */
+ CalendarEvent: {
+ /**
+ * Calendar event ID
+ *
+ * @description The ID of the calendar event
+ */
+ id: number;
+ /**
+ * Server ID
+ *
+ * @description The ID of the server
+ */
+ serverId: string;
+ /**
+ * Channel ID
+ * Format: uuid
+ *
+ * @description The ID of the channel
+ */
+ channelId: string;
+ /**
+ * Name
+ *
+ * @description The name of the event
+ */
+ name: string;
+ /**
+ * Description
+ * Format: markdown
+ *
+ * @description The description of the event
+ */
+ description?: string;
+ /**
+ * Location
+ *
+ * @description The location of the event
+ */
+ location?: string;
+ /**
+ * Format: uri
+ *
+ * @description A URL to associate with the event
+ */
+ url?: string;
+ /** @description The color of the event when viewing in the calendar */
+ color?: number;
+ /** @description Is this event a repeating event */
+ repeats?: boolean;
+ /**
+ * Calendar event series ID
+ * Format: uuid
+ *
+ * @description The ID of the calendar event series. Only shows if the event is repeating
+ */
+ seriesId?: string;
+ /**
+ * Role IDs
+ *
+ * @description The role IDs to restrict the event to
+ */
+ roleIds?: number[];
+ /**
+ * RSVP disabled
+ *
+ * @description When disabled, users will not be able to RSVP to the event
+ */
+ rsvpDisabled?: boolean;
+ /**
+ * Is all day
+ *
+ * @description Does the event last all day
+ */
+ isAllDay?: boolean;
+ /** @description The number of RSVPs to allow before waitlisting RSVPs */
+ rsvpLimit?: number;
+ /** @description When `rsvpLimit` is set, users from the waitlist will be added as space becomes available in the event */
+ autofillWaitlist?: boolean;
+ /**
+ * Starts at
+ * Format: date-time
+ *
+ * @description The ISO 8601 timestamp that the event starts at
+ */
+ startsAt: string;
+ /**
+ * Duration
+ *
+ * @description The duration of the event _**in minutes**_
+ */
+ duration?: number;
+ /** Is private */
+ isPrivate?: boolean;
+ mentions?: components["schemas"]["Mentions"];
+ /**
+ * Created at
+ * Format: date-time
+ *
+ * @description The ISO 8601 timestamp that the event was created at
+ */
+ createdAt: string;
+ /**
+ * Created by
+ *
+ * @description The ID of the user who created this event
+ */
+ createdBy: string;
+ cancellation?: {
+ /**
+ * Description
+ * Format: markdown
+ *
+ * @description The description of event cancellation
+ */
+ description?: string;
+ /**
+ * Created by
+ *
+ * @description The ID of the user who created this event cancellation
+ */
+ createdBy: string;
+ };
+ };
+ /**
+ * @example {
+ * "id": 90000000,
+ * "name": "grinning",
+ * "url": "https://img.guildedcdn.com/asset/Emojis/grinning.webp"
+ * }
+ */
+ Emote: {
+ /**
+ * Emote ID
+ *
+ * @description The ID of the emote
+ */
+ id: number;
+ /**
+ * Name
+ *
+ * @description The name of the emote
+ */
+ name: string;
+ /**
+ * Emote URL
+ * Format: media-uri
+ *
+ * @description The URL of the emote image
+ */
+ url: string;
+ /**
+ * Server ID
+ *
+ * @description The ID of the server the emote was created on
+ */
+ serverId?: string;
+ };
+ /**
+ * @example {
+ * "calendarEventId": 1,
+ * "channelId": "00000000-0000-0000-0000-000000000000",
+ * "serverId": "wlVr3Ggl",
+ * "userId": "Ann6LewA",
+ * "status": "going",
+ * "createdAt": "2021-06-15T20:15:00.706Z",
+ * "createdBy": "Ann6LewA"
+ * }
+ */
+ CalendarEventRsvp: {
+ /**
+ * Calendar event ID
+ *
+ * @description The ID of the calendar event
+ */
+ calendarEventId: number;
+ /**
+ * Channel ID
+ * Format: uuid
+ *
+ * @description The ID of the channel
+ */
+ channelId: string;
+ /**
+ * Server ID
+ *
+ * @description The ID of the server
+ */
+ serverId: string;
+ /**
+ * User ID
+ *
+ * @description The ID of the user
+ */
+ userId: string;
+ /**
+ * Status
+ *
+ * @description The status of the RSVP
+ * @enum {string}
+ */
+ status:
+ | "declined"
+ | "going"
+ | "invited"
+ | "maybe"
+ | "not responded"
+ | "waitlisted";
+ /**
+ * Created by
+ *
+ * @description The ID of the user who created this RSVP
+ */
+ createdBy: string;
+ /**
+ * Created at
+ * Format: date-time
+ *
+ * @description The ISO 8601 timestamp that the RSVP was created at
+ */
+ createdAt: string;
+ /**
+ * Updated by
+ *
+ * @description The ID of the user who updated this RSVP
+ */
+ updatedBy?: string;
+ /**
+ * Updated at
+ * Format: date-time
+ *
+ * @description The ISO 8601 timestamp that the RSVP was updated at, if relevant
+ */
+ updatedAt?: string;
+ };
+ /**
+ * @example {
+ * "id": 1234567890,
+ * "content": "I will be there!!",
+ * "channelId": "00000000-0000-0000-0000-000000000000",
+ * "createdAt": "2022-06-15T20:15:00.706Z",
+ * "createdBy": "Ann6LewA",
+ * "calendarEventId": 987654321
+ * }
+ */
+ CalendarEventComment: {
+ /**
+ * Calendar event comment ID
+ *
+ * @description The ID of the calendar event comment
+ */
+ id: number;
+ /**
+ * Content
+ * Format: markdown
+ *
+ * @description The content of the calendar event comment
+ */
+ content: string;
+ /**
+ * Created at
+ * Format: date-time
+ *
+ * @description The ISO 8601 timestamp that the calendar event comment was created at
+ */
+ createdAt: string;
+ /**
+ * Updated at
+ * Format: date-time
+ *
+ * @description The ISO 8601 timestamp that the calendar event comment was updated at, if relevant
+ */
+ updatedAt?: string;
+ /**
+ * Calendar event ID
+ *
+ * @description The ID of the calendar event
+ */
+ calendarEventId: number;
+ /**
+ * Channel ID
+ * Format: uuid
+ *
+ * @description The ID of the channel
+ */
+ channelId: string;
+ /**
+ * Created by
+ *
+ * @description The ID of the user who created this calendar event comment (Note: If this event has `createdByWebhookId` present, this field will still be populated, but can be ignored. In this case, the value of this field will always be Ann6LewA)
+ */
+ createdBy: string;
+ mentions?: components["schemas"]["Mentions"];
+ };
+ /**
+ * @example {
+ * "channelId": "00000000-0000-0000-0000-000000000000",
+ * "createdBy": "Ann6LewA",
+ * "emote": {
+ * "id": 90000000,
+ * "name": "grinning",
+ * "url": "https://img.guildedcdn.com/asset/Emojis/grinning.webp"
+ * },
+ * "calendarEventId": 1
+ * }
+ */
+ CalendarEventReaction: {
+ /**
+ * Channel ID
+ * Format: uuid
+ *
+ * @description The ID of the channel
+ */
+ channelId: string;
+ /**
+ * User ID
+ *
+ * @description The ID of the user who added the reaction
+ */
+ createdBy: string;
+ emote: components["schemas"]["Emote"];
+ /**
+ * Calendar event ID
+ *
+ * @description The ID of the calendar event
+ */
+ calendarEventId: number;
+ };
+ /**
+ * @example {
+ * "channelId": "00000000-0000-0000-0000-000000000000",
+ * "createdBy": "Ann6LewA",
+ * "emote": {
+ * "id": 90000000,
+ * "name": "grinning",
+ * "url": "https://img.guildedcdn.com/asset/Emojis/grinning.webp"
+ * },
+ * "calendarEventId": 1,
+ * "calendarEventCommentId": 1234567890
+ * }
+ */
+ CalendarEventCommentReaction: {
+ /**
+ * Channel ID
+ * Format: uuid
+ *
+ * @description The ID of the channel
+ */
+ channelId: string;
+ /**
+ * User ID
+ *
+ * @description The ID of the user who added the reaction
+ */
+ createdBy: string;
+ emote: components["schemas"]["Emote"];
+ /**
+ * Calendar event ID
+ *
+ * @description The ID of the calendar event
+ */
+ calendarEventId: number;
+ /**
+ * Calendar event comment ID
+ *
+ * @description The ID of the calendar event comment
+ */
+ calendarEventCommentId: number;
+ };
+ /**
+ * @example {
+ * "id": "00000000-0000-0000-0000-000000000000",
+ * "serverId": "wlVr3Ggl",
+ * "channelId": "00000000-0000-0000-0000-000000000000"
+ * }
+ */
+ CalendarEventSeries: {
+ /**
+ * Calendar event series ID
+ * Format: uuid
+ *
+ * @description The ID of the calendar event series
+ */
+ id: string;
+ /**
+ * Server ID
+ *
+ * @description The ID of the server
+ */
+ serverId: string;
+ /**
+ * Channel ID
+ * Format: uuid
+ *
+ * @description The ID of the channel
+ */
+ channelId: string;
+ };
+ /**
+ * @example {
+ * "id": "9RVMoDZy",
+ * "serverId": "wlVr3Ggl",
+ * "channelId": "00000000-0000-0000-0000-000000000000",
+ * "createdAt": "2021-06-15T20:15:00.706Z",
+ * "createdBy": "Ann6LewA",
+ * "title": "Pizza Party, don't be tardy!",
+ * "content": "Grab a slice, don't be slow, At our pizza party, it's the way to go! Toppings galore, cheesy delight, Come join us, it'll be out of sight!"
+ * }
+ */
+ Announcement: {
+ /**
+ * Announcement ID
+ *
+ * @description The ID of the announcement
+ */
+ id: string;
+ /**
+ * Server ID
+ *
+ * @description The ID of the server
+ */
+ serverId: string;
+ /**
+ * Channel ID
+ * Format: uuid
+ *
+ * @description The ID of the channel
+ */
+ channelId: string;
+ /**
+ * Created at
+ * Format: date-time
+ *
+ * @description The ISO 8601 timestamp that the announcement was created at
+ */
+ createdAt: string;
+ /**
+ * Created by
+ *
+ * @description The ID of the user who created this announcement
+ */
+ createdBy: string;
+ /**
+ * Content
+ * Format: markdown
+ *
+ * @description The content of the announcement
+ */
+ content: string;
+ mentions?: components["schemas"]["Mentions"];
+ /**
+ * Title
+ *
+ * @description The title of the announcement
+ */
+ title: string;
+ };
+ /**
+ * @example {
+ * "channelId": "00000000-0000-0000-0000-000000000000",
+ * "createdBy": "Ann6LewA",
+ * "emote": {
+ * "id": 90000000,
+ * "name": "grinning",
+ * "url": "https://img.guildedcdn.com/asset/Emojis/grinning.webp"
+ * },
+ * "announcementId": "9RVMoDZy"
+ * }
+ */
+ AnnouncementReaction: {
+ /**
+ * Channel ID
+ * Format: uuid
+ *
+ * @description The ID of the channel
+ */
+ channelId: string;
+ /**
+ * User ID
+ *
+ * @description The ID of the user who added the reaction
+ */
+ createdBy: string;
+ emote: components["schemas"]["Emote"];
+ /**
+ * Announcement ID
+ *
+ * @description The ID of the announcement
+ */
+ announcementId: string;
+ };
+ /**
+ * @example {
+ * "id": 123456,
+ * "content": "Now THAT is one awesome announcement!!!",
+ * "createdAt": "2023-04-07T16:19:00.000Z",
+ * "channelId": "00000000-0000-0000-0000-000000000000",
+ * "announcementId": "9RVMoDZy",
+ * "createdBy": "Ann6LewA"
+ * }
+ */
+ AnnouncementComment: {
+ /**
+ * Announcement comment ID
+ *
+ * @description The ID of the announcement comment
+ */
+ id: number;
+ /**
+ * Content
+ * Format: markdown
+ *
+ * @description The content of the announcement comment
+ */
+ content: string;
+ /**
+ * Created at
+ * Format: date-time
+ *
+ * @description The ISO 8601 timestamp that the announcement comment was created at
+ */
+ createdAt: string;
+ /**
+ * Updated at
+ * Format: date-time
+ *
+ * @description The ISO 8601 timestamp that the announcement comment was updated at, if relevant
+ */
+ updatedAt?: string;
+ /**
+ * Created by
+ *
+ * @description The ID of the user who created this announcement comment (Note: If this event has `createdByWebhookId` present, this field will still be populated, but can be ignored. In this case, the value of this field will always be Ann6LewA)
+ */
+ createdBy: string;
+ /**
+ * Channel ID
+ * Format: uuid
+ *
+ * @description The ID of the channel
+ */
+ channelId: string;
+ /**
+ * Announcement ID
+ *
+ * @description The ID of the announcement
+ */
+ announcementId: string;
+ mentions?: components["schemas"]["Mentions"];
+ };
+ /**
+ * @example {
+ * "channelId": "00000000-0000-0000-0000-000000000000",
+ * "createdBy": "Ann6LewA",
+ * "emote": {
+ * "id": 90000000,
+ * "name": "grinning",
+ * "url": "https://img.guildedcdn.com/asset/Emojis/grinning.webp"
+ * },
+ * "announcementId": "9RVMoDZy",
+ * "announcementCommentId": 123456
+ * }
+ */
+ AnnouncementCommentReaction: {
+ /**
+ * Channel ID
+ * Format: uuid
+ *
+ * @description The ID of the channel
+ */
+ channelId: string;
+ /**
+ * User ID
+ *
+ * @description The ID of the user who added the reaction
+ */
+ createdBy: string;
+ emote: components["schemas"]["Emote"];
+ /**
+ * Announcement ID
+ *
+ * @description The ID of the announcement
+ */
+ announcementId: string;
+ /**
+ * Announcement comment ID
+ *
+ * @description The ID of the announcement comment
+ */
+ announcementCommentId: number;
+ };
+ };
+ responses: {
+ _WelcomeMessage: {
+ content: {
+ "application/json": {
+ /** @description The interval in milliseconds that your bot should be configured to send ping frames for the bot's [heartbeat](/docs/api/heartbeat) to be considered valid. */
+ heartbeatIntervalMs: number;
+ /** @description The last message's ID that was sent to this bot. See [event replay](/docs/api/replay) for more details */
+ lastMessageId: string;
+ /**
+ * Bot ID
+ * Format: uuid
+ *
+ * @description The ID of the bot
+ */
+ botId: string;
+ user: components["schemas"]["User"];
+ };
+ };
+ };
+ /** @description Emitted when a bot is added to a server */
+ BotServerMembershipCreated: {
+ content: {
+ "application/json": {
+ server: components["schemas"]["Server"];
+ /**
+ * Created by
+ *
+ * @description The ID of the user who created this server membership
+ */
+ createdBy: string;
+ };
+ };
+ };
+ /** @description Emitted when a bot is removed from a server */
+ BotServerMembershipDeleted: {
+ content: {
+ "application/json": {
+ server: components["schemas"]["Server"];
+ /**
+ * Deleted by
+ *
+ * @description The ID of the user who deleted this server membership
+ */
+ deletedBy: string;
+ };
+ };
+ };
+ ChatMessageCreated: {
+ content: {
+ "application/json": {
+ /**
+ * Server ID
+ *
+ * @description The ID of the server
+ */
+ serverId: string;
+ message: components["schemas"]["ChatMessage"];
+ };
+ };
+ };
+ ChatMessageUpdated: {
+ content: {
+ "application/json": {
+ /**
+ * Server ID
+ *
+ * @description The ID of the server
+ */
+ serverId: string;
+ message: components["schemas"]["ChatMessage"];
+ };
+ };
+ };
+ ChatMessageDeleted: {
+ content: {
+ "application/json": {
+ /**
+ * Server ID
+ *
+ * @description The ID of the server
+ */
+ serverId: string;
+ message: {
+ /**
+ * Message ID
+ * Format: uuid
+ *
+ * @description The ID of the message
+ */
+ id: string;
+ /**
+ * Server ID
+ *
+ * @description The ID of the server
+ */
+ serverId?: string;
+ /**
+ * Channel ID
+ * Format: uuid
+ *
+ * @description The ID of the channel
+ */
+ channelId: string;
+ /**
+ * Deleted at
+ * Format: date-time
+ *
+ * @description The ISO 8601 timestamp that the message was deleted at
+ */
+ deletedAt: string;
+ /** Is private */
+ isPrivate?: boolean;
+ };
+ };
+ };
+ };
+ ServerMemberJoined: {
+ content: {
+ "application/json": {
+ /**
+ * Server ID
+ *
+ * @description The ID of the server
+ */
+ serverId: string;
+ member: components["schemas"]["ServerMember"];
+ };
+ };
+ };
+ ServerMemberRemoved: {
+ content: {
+ "application/json": {
+ /**
+ * Server ID
+ *
+ * @description The ID of the server
+ */
+ serverId: string;
+ /**
+ * User ID
+ *
+ * @description The ID of the user
+ */
+ userId: string;
+ /**
+ * Is kick?
+ *
+ * @description If this member leaving was the result of a kick
+ */
+ isKick?: boolean;
+ /**
+ * Is ban?
+ *
+ * @description If this member leaving was the result of a ban
+ */
+ isBan?: boolean;
+ };
+ };
+ };
+ ServerMemberBanned: {
+ content: {
+ "application/json": {
+ /**
+ * Server ID
+ *
+ * @description The ID of the server
+ */
+ serverId: string;
+ serverMemberBan: components["schemas"]["ServerMemberBan"];
+ };
+ };
+ };
+ ServerMemberUnbanned: {
+ content: {
+ "application/json": {
+ /**
+ * Server ID
+ *
+ * @description The ID of the server
+ */
+ serverId: string;
+ serverMemberBan: components["schemas"]["ServerMemberBan"];
+ };
+ };
+ };
+ ServerMemberUpdated: {
+ content: {
+ "application/json": {
+ /**
+ * Server ID
+ *
+ * @description The ID of the server
+ */
+ serverId: string;
+ userInfo: {
+ /**
+ * User ID
+ *
+ * @description The ID of the user
+ */
+ id: string;
+ /**
+ * Nickname
+ *
+ * @description The nickname that was just updated for the user
+ */
+ nickname?:
+ | string
+ | null;
+ };
+ };
+ };
+ };
+ ServerRolesUpdated: {
+ content: {
+ "application/json": {
+ /**
+ * Server ID
+ *
+ * @description The ID of the server
+ */
+ serverId: string;
+ memberRoleIds: {
+ /**
+ * User ID
+ *
+ * @description The ID of the member that had roles updated
+ */
+ userId: string;
+ /**
+ * Role IDs
+ *
+ * @description The IDs of the roles that the member currently has _after_ this operation
+ */
+ roleIds: number[];
+ }[];
+ };
+ };
+ };
+ ServerChannelCreated: {
+ content: {
+ "application/json": {
+ /**
+ * Server ID
+ *
+ * @description The ID of the server
+ */
+ serverId: string;
+ channel: components["schemas"]["ServerChannel"];
+ };
+ };
+ };
+ ServerChannelUpdated: {
+ content: {
+ "application/json": {
+ /**
+ * Server ID
+ *
+ * @description The ID of the server
+ */
+ serverId: string;
+ channel: components["schemas"]["ServerChannel"];
+ };
+ };
+ };
+ ServerChannelDeleted: {
+ content: {
+ "application/json": {
+ /**
+ * Server ID
+ *
+ * @description The ID of the server
+ */
+ serverId: string;
+ channel: components["schemas"]["ServerChannel"];
+ };
+ };
+ };
+ ServerMemberSocialLinkCreated: {
+ content: {
+ "application/json": {
+ /**
+ * Server ID
+ *
+ * @description The ID of the server
+ */
+ serverId: string;
+ socialLink: components["schemas"]["SocialLink"];
+ };
+ };
+ };
+ ServerMemberSocialLinkUpdated: {
+ content: {
+ "application/json": {
+ /**
+ * Server ID
+ *
+ * @description The ID of the server
+ */
+ serverId: string;
+ socialLink: components["schemas"]["SocialLink"];
+ };
+ };
+ };
+ ServerMemberSocialLinkDeleted: {
+ content: {
+ "application/json": {
+ /**
+ * Server ID
+ *
+ * @description The ID of the server
+ */
+ serverId: string;
+ socialLink: components["schemas"]["SocialLink"];
+ };
+ };
+ };
+ ServerWebhookCreated: {
+ content: {
+ "application/json": {
+ /**
+ * Server ID
+ *
+ * @description The ID of the server
+ */
+ serverId: string;
+ webhook: components["schemas"]["Webhook"];
+ };
+ };
+ };
+ ServerWebhookUpdated: {
+ content: {
+ "application/json": {
+ /**
+ * Server ID
+ *
+ * @description The ID of the server
+ */
+ serverId: string;
+ webhook: components["schemas"]["Webhook"];
+ };
+ };
+ };
+ DocCreated: {
+ content: {
+ "application/json": {
+ /**
+ * Server ID
+ *
+ * @description The ID of the server
+ */
+ serverId: string;
+ doc: components["schemas"]["Doc"];
+ };
+ };
+ };
+ DocUpdated: {
+ content: {
+ "application/json": {
+ /**
+ * Server ID
+ *
+ * @description The ID of the server
+ */
+ serverId: string;
+ doc: components["schemas"]["Doc"];
+ };
+ };
+ };
+ DocDeleted: {
+ content: {
+ "application/json": {
+ /**
+ * Server ID
+ *
+ * @description The ID of the server
+ */
+ serverId: string;
+ doc: components["schemas"]["Doc"];
+ };
+ };
+ };
+ DocCommentCreated: {
+ content: {
+ "application/json": {
+ /**
+ * Server ID
+ *
+ * @description The ID of the server
+ */
+ serverId: string;
+ docComment: components["schemas"]["DocComment"];
+ };
+ };
+ };
+ DocCommentDeleted: {
+ content: {
+ "application/json": {
+ /**
+ * Server ID
+ *
+ * @description The ID of the server
+ */
+ serverId: string;
+ docComment: components["schemas"]["DocComment"];
+ };
+ };
+ };
+ DocCommentUpdated: {
+ content: {
+ "application/json": {
+ /**
+ * Server ID
+ *
+ * @description The ID of the server
+ */
+ serverId: string;
+ docComment: components["schemas"]["DocComment"];
+ };
+ };
+ };
+ CalendarEventCreated: {
+ content: {
+ "application/json": {
+ /**
+ * Server ID
+ *
+ * @description The ID of the server
+ */
+ serverId: string;
+ calendarEvent: components["schemas"]["CalendarEvent"];
+ };
+ };
+ };
+ CalendarEventUpdated: {
+ content: {
+ "application/json": {
+ /**
+ * Server ID
+ *
+ * @description The ID of the server
+ */
+ serverId: string;
+ calendarEvent: components["schemas"]["CalendarEvent"];
+ };
+ };
+ };
+ CalendarEventDeleted: {
+ content: {
+ "application/json": {
+ /**
+ * Server ID
+ *
+ * @description The ID of the server
+ */
+ serverId: string;
+ calendarEvent: components["schemas"]["CalendarEvent"];
+ };
+ };
+ };
+ ForumTopicCreated: {
+ content: {
+ "application/json": {
+ /**
+ * Server ID
+ *
+ * @description The ID of the server
+ */
+ serverId: string;
+ forumTopic: components["schemas"]["ForumTopic"];
+ };
+ };
+ };
+ ForumTopicUpdated: {
+ content: {
+ "application/json": {
+ /**
+ * Server ID
+ *
+ * @description The ID of the server
+ */
+ serverId: string;
+ forumTopic: components["schemas"]["ForumTopic"];
+ };
+ };
+ };
+ ForumTopicDeleted: {
+ content: {
+ "application/json": {
+ /**
+ * Server ID
+ *
+ * @description The ID of the server
+ */
+ serverId: string;
+ forumTopic: components["schemas"]["ForumTopic"];
+ };
+ };
+ };
+ ForumTopicPinned: {
+ content: {
+ "application/json": {
+ /**
+ * Server ID
+ *
+ * @description The ID of the server
+ */
+ serverId: string;
+ forumTopic: components["schemas"]["ForumTopic"];
+ };
+ };
+ };
+ ForumTopicUnpinned: {
+ content: {
+ "application/json": {
+ /**
+ * Server ID
+ *
+ * @description The ID of the server
+ */
+ serverId: string;
+ forumTopic: components["schemas"]["ForumTopic"];
+ };
+ };
+ };
+ ForumTopicReactionCreated: {
+ content: {
+ "application/json": {
+ /**
+ * Server ID
+ *
+ * @description The ID of the server
+ */
+ serverId: string;
+ reaction: components["schemas"]["ForumTopicReaction"];
+ };
+ };
+ };
+ ForumTopicReactionDeleted: {
+ content: {
+ "application/json": {
+ /**
+ * Server ID
+ *
+ * @description The ID of the server
+ */
+ serverId: string;
+ reaction: components["schemas"]["ForumTopicReaction"];
+ };
+ };
+ };
+ ForumTopicLocked: {
+ content: {
+ "application/json": {
+ /**
+ * Server ID
+ *
+ * @description The ID of the server
+ */
+ serverId: string;
+ forumTopic: components["schemas"]["ForumTopic"];
+ };
+ };
+ };
+ ForumTopicUnlocked: {
+ content: {
+ "application/json": {
+ /**
+ * Server ID
+ *
+ * @description The ID of the server
+ */
+ serverId: string;
+ forumTopic: components["schemas"]["ForumTopic"];
+ };
+ };
+ };
+ ForumTopicCommentCreated: {
+ content: {
+ "application/json": {
+ /**
+ * Server ID
+ *
+ * @description The ID of the server
+ */
+ serverId: string;
+ forumTopicComment: components["schemas"]["ForumTopicComment"];
+ };
+ };
+ };
+ ForumTopicCommentUpdated: {
+ content: {
+ "application/json": {
+ /**
+ * Server ID
+ *
+ * @description The ID of the server
+ */
+ serverId: string;
+ forumTopicComment: components["schemas"]["ForumTopicComment"];
+ };
+ };
+ };
+ ForumTopicCommentDeleted: {
+ content: {
+ "application/json": {
+ /**
+ * Server ID
+ *
+ * @description The ID of the server
+ */
+ serverId: string;
+ forumTopicComment: components["schemas"]["ForumTopicComment"];
+ };
+ };
+ };
+ CalendarEventRsvpUpdated: {
+ content: {
+ "application/json": {
+ /**
+ * Server ID
+ *
+ * @description The ID of the server
+ */
+ serverId: string;
+ calendarEventRsvp: components["schemas"]["CalendarEventRsvp"];
+ };
+ };
+ };
+ CalendarEventRsvpManyUpdated: {
+ content: {
+ "application/json": {
+ /**
+ * Server ID
+ *
+ * @description The ID of the server
+ */
+ serverId: string;
+ calendarEventRsvps: components["schemas"]["CalendarEventRsvp"][];
+ };
+ };
+ };
+ CalendarEventRsvpDeleted: {
+ content: {
+ "application/json": {
+ /**
+ * Server ID
+ *
+ * @description The ID of the server
+ */
+ serverId: string;
+ calendarEventRsvp: components["schemas"]["CalendarEventRsvp"];
+ };
+ };
+ };
+ ListItemCreated: {
+ content: {
+ "application/json": {
+ /**
+ * Server ID
+ *
+ * @description The ID of the server
+ */
+ serverId: string;
+ listItem: components["schemas"]["ListItem"];
+ };
+ };
+ };
+ ListItemUpdated: {
+ content: {
+ "application/json": {
+ /**
+ * Server ID
+ *
+ * @description The ID of the server
+ */
+ serverId: string;
+ listItem: components["schemas"]["ListItem"];
+ };
+ };
+ };
+ ListItemDeleted: {
+ content: {
+ "application/json": {
+ /**
+ * Server ID
+ *
+ * @description The ID of the server
+ */
+ serverId: string;
+ listItem: components["schemas"]["ListItem"];
+ };
+ };
+ };
+ ListItemCompleted: {
+ content: {
+ "application/json": {
+ /**
+ * Server ID
+ *
+ * @description The ID of the server
+ */
+ serverId: string;
+ listItem: components["schemas"]["ListItem"];
+ };
+ };
+ };
+ ListItemUncompleted: {
+ content: {
+ "application/json": {
+ /**
+ * Server ID
+ *
+ * @description The ID of the server
+ */
+ serverId: string;
+ listItem: components["schemas"]["ListItem"];
+ };
+ };
+ };
+ ChannelMessageReactionCreated: {
+ content: {
+ "application/json": {
+ /**
+ * Server ID
+ *
+ * @description The ID of the server
+ */
+ serverId: string;
+ reaction: components["schemas"]["ChatMessageReaction"];
+ };
+ };
+ };
+ ChannelMessageReactionDeleted: {
+ content: {
+ "application/json": {
+ /**
+ * Server ID
+ *
+ * @description The ID of the server
+ */
+ serverId: string;
+ /**
+ * Deleted by
+ *
+ * @description The ID of the user who deleted this reaction
+ */
+ deletedBy: string;
+ reaction: components["schemas"]["ChatMessageReaction"];
+ };
+ };
+ };
+ ChannelMessageReactionManyDeleted: {
+ content: {
+ "application/json": {
+ /**
+ * Server ID
+ *
+ * @description The ID of the server
+ */
+ serverId: string;
+ /**
+ * Channel ID
+ * Format: uuid
+ *
+ * @description The ID of the channel
+ */
+ channelId: string;
+ /**
+ * Message ID
+ * Format: uuid
+ *
+ * @description The ID of the message
+ */
+ messageId: string;
+ /**
+ * Deleted by
+ *
+ * @description The ID of the user who deleted this reaction
+ */
+ deletedBy: string;
+ /** @description The count of reactions that were removed */
+ count: number;
+ /** @description If present, only reactions of this emote were bulk removed from the message */
+ emote?: components["schemas"]["Emote"];
+ };
+ };
+ };
+ ForumTopicCommentReactionCreated: {
+ content: {
+ "application/json": {
+ /**
+ * Server ID
+ *
+ * @description The ID of the server
+ */
+ serverId: string;
+ reaction: components["schemas"]["ForumTopicCommentReaction"];
+ };
+ };
+ };
+ ForumTopicCommentReactionDeleted: {
+ content: {
+ "application/json": {
+ /**
+ * Server ID
+ *
+ * @description The ID of the server
+ */
+ serverId: string;
+ reaction: components["schemas"]["ForumTopicCommentReaction"];
+ };
+ };
+ };
+ CalendarEventCommentCreated: {
+ content: {
+ "application/json": {
+ /**
+ * Server ID
+ *
+ * @description The ID of the server
+ */
+ serverId: string;
+ calendarEventComment: components["schemas"]["CalendarEventComment"];
+ };
+ };
+ };
+ CalendarEventCommentDeleted: {
+ content: {
+ "application/json": {
+ /**
+ * Server ID
+ *
+ * @description The ID of the server
+ */
+ serverId: string;
+ calendarEventComment: components["schemas"]["CalendarEventComment"];
+ };
+ };
+ };
+ CalendarEventCommentUpdated: {
+ content: {
+ "application/json": {
+ /**
+ * Server ID
+ *
+ * @description The ID of the server
+ */
+ serverId: string;
+ calendarEventComment: components["schemas"]["CalendarEventComment"];
+ };
+ };
+ };
+ CalendarEventReactionCreated: {
+ content: {
+ "application/json": {
+ /**
+ * Server ID
+ *
+ * @description The ID of the server
+ */
+ serverId: string;
+ reaction: components["schemas"]["CalendarEventReaction"];
+ };
+ };
+ };
+ CalendarEventReactionDeleted: {
+ content: {
+ "application/json": {
+ /**
+ * Server ID
+ *
+ * @description The ID of the server
+ */
+ serverId: string;
+ reaction: components["schemas"]["CalendarEventReaction"];
+ };
+ };
+ };
+ CalendarEventCommentReactionCreated: {
+ content: {
+ "application/json": {
+ /**
+ * Server ID
+ *
+ * @description The ID of the server
+ */
+ serverId: string;
+ reaction: components["schemas"]["CalendarEventCommentReaction"];
+ };
+ };
+ };
+ CalendarEventCommentReactionDeleted: {
+ content: {
+ "application/json": {
+ /**
+ * Server ID
+ *
+ * @description The ID of the server
+ */
+ serverId: string;
+ reaction: components["schemas"]["CalendarEventCommentReaction"];
+ };
+ };
+ };
+ DocReactionCreated: {
+ content: {
+ "application/json": {
+ /**
+ * Server ID
+ *
+ * @description The ID of the server
+ */
+ serverId: string;
+ reaction: components["schemas"]["DocReaction"];
+ };
+ };
+ };
+ DocReactionDeleted: {
+ content: {
+ "application/json": {
+ /**
+ * Server ID
+ *
+ * @description The ID of the server
+ */
+ serverId: string;
+ reaction: components["schemas"]["DocReaction"];
+ };
+ };
+ };
+ DocCommentReactionCreated: {
+ content: {
+ "application/json": {
+ /**
+ * Server ID
+ *
+ * @description The ID of the server
+ */
+ serverId: string;
+ reaction: components["schemas"]["DocCommentReaction"];
+ };
+ };
+ };
+ DocCommentReactionDeleted: {
+ content: {
+ "application/json": {
+ /**
+ * Server ID
+ *
+ * @description The ID of the server
+ */
+ serverId: string;
+ reaction: components["schemas"]["DocCommentReaction"];
+ };
+ };
+ };
+ CalendarEventSeriesUpdated: {
+ content: {
+ "application/json": {
+ /**
+ * Server ID
+ *
+ * @description The ID of the server
+ */
+ serverId: string;
+ calendarEventSeries: components["schemas"]["CalendarEventSeries"];
+ /**
+ * Calendar event ID
+ *
+ * @description The calendar event updates started at
+ */
+ calendarEventId?: number;
+ };
+ };
+ };
+ CalendarEventSeriesDeleted: {
+ content: {
+ "application/json": {
+ /**
+ * Server ID
+ *
+ * @description The ID of the server
+ */
+ serverId: string;
+ calendarEventSeries: components["schemas"]["CalendarEventSeries"];
+ /**
+ * Calendar event ID
+ *
+ * @description The calendar event deletions started at
+ */
+ calendarEventId?: number;
+ };
+ };
+ };
+ AnnouncementCreated: {
+ content: {
+ "application/json": {
+ /**
+ * Server ID
+ *
+ * @description The ID of the server
+ */
+ serverId: string;
+ announcement: components["schemas"]["Announcement"];
+ };
+ };
+ };
+ AnnouncementUpdated: {
+ content: {
+ "application/json": {
+ /**
+ * Server ID
+ *
+ * @description The ID of the server
+ */
+ serverId: string;
+ announcement: components["schemas"]["Announcement"];
+ };
+ };
+ };
+ AnnouncementDeleted: {
+ content: {
+ "application/json": {
+ /**
+ * Server ID
+ *
+ * @description The ID of the server
+ */
+ serverId: string;
+ announcement: components["schemas"]["Announcement"];
+ };
+ };
+ };
+ AnnouncementReactionCreated: {
+ content: {
+ "application/json": {
+ /**
+ * Server ID
+ *
+ * @description The ID of the server
+ */
+ serverId: string;
+ reaction: components["schemas"]["AnnouncementReaction"];
+ };
+ };
+ };
+ AnnouncementReactionDeleted: {
+ content: {
+ "application/json": {
+ /**
+ * Server ID
+ *
+ * @description The ID of the server
+ */
+ serverId: string;
+ reaction: components["schemas"]["AnnouncementReaction"];
+ };
+ };
+ };
+ AnnouncementCommentCreated: {
+ content: {
+ "application/json": {
+ /**
+ * Server ID
+ *
+ * @description The ID of the server
+ */
+ serverId: string;
+ announcementComment: components["schemas"]["AnnouncementComment"];
+ };
+ };
+ };
+ AnnouncementCommentUpdated: {
+ content: {
+ "application/json": {
+ /**
+ * Server ID
+ *
+ * @description The ID of the server
+ */
+ serverId: string;
+ announcementComment: components["schemas"]["AnnouncementComment"];
+ };
+ };
+ };
+ AnnouncementCommentDeleted: {
+ content: {
+ "application/json": {
+ /**
+ * Server ID
+ *
+ * @description The ID of the server
+ */
+ serverId: string;
+ announcementComment: components["schemas"]["AnnouncementComment"];
+ };
+ };
+ };
+ AnnouncementCommentReactionCreated: {
+ content: {
+ "application/json": {
+ /**
+ * Server ID
+ *
+ * @description The ID of the server
+ */
+ serverId: string;
+ reaction: components["schemas"]["AnnouncementCommentReaction"];
+ };
+ };
+ };
+ AnnouncementCommentReactionDeleted: {
+ content: {
+ "application/json": {
+ /**
+ * Server ID
+ *
+ * @description The ID of the server
+ */
+ serverId: string;
+ reaction: components["schemas"]["AnnouncementCommentReaction"];
+ };
+ };
+ };
+ };
+ parameters: never;
+ requestBodies: never;
+ headers: never;
+ pathItems: never;
};
export type external = Record;
diff --git a/packages/api/lib/generated/router/GuildedRouter.ts b/packages/api/lib/generated/router/GuildedRouter.ts
index cbbe40f4..bda0f9bc 100644
--- a/packages/api/lib/generated/router/GuildedRouter.ts
+++ b/packages/api/lib/generated/router/GuildedRouter.ts
@@ -3,11 +3,13 @@
import type { BaseHttpRequest } from "./core/BaseHttpRequest";
import { FetchHttpRequest } from "./core/FetchHttpRequest";
+import { RestManager } from "../../rest/RestManager";
import { AnnouncementCommentsService } from "./services/AnnouncementCommentsService";
import { AnnouncementsService } from "./services/AnnouncementsService";
import { CalendarEventCommentsService } from "./services/CalendarEventCommentsService";
-import { CalendarEventsService } from "./services/CalendarEventsService";
import { CalendarEventSeriesService } from "./services/CalendarEventSeriesService";
+import { CalendarEventsService } from "./services/CalendarEventsService";
+import { CategoriesService } from "./services/CategoriesService";
import { ChannelsService } from "./services/ChannelsService";
import { ChatService } from "./services/ChatService";
import { DocCommentsService } from "./services/DocCommentsService";
@@ -22,76 +24,187 @@ import { MembersService } from "./services/MembersService";
import { ReactionsService } from "./services/ReactionsService";
import { RoleMembershipService } from "./services/RoleMembershipService";
import { RolesService } from "./services/RolesService";
-import { ServersService } from "./services/ServersService";
+import { ServerSubscriptionService } from "./services/ServerSubscriptionService";
import { ServerXpService } from "./services/ServerXpService";
+import { ServersService } from "./services/ServersService";
import { SocialLinksService } from "./services/SocialLinksService";
-import { UsersService } from "./services/UsersService";
import { UserStatusService } from "./services/UserStatusService";
+import { UsersService } from "./services/UsersService";
import { WebhookService } from "./services/WebhookService";
-import { RestManager } from "../../rest/RestManager";
-import { ServerSubscriptionService } from "./services/ServerSubscriptionService";
-import { CategoriesService } from "./services/CategoriesService";
export class GuildedRouter {
- public readonly announcementComments: AnnouncementCommentsService;
- public readonly announcements: AnnouncementsService;
- public readonly calendarEventComments: CalendarEventCommentsService;
- public readonly calendarEvents: CalendarEventsService;
- public readonly calendarEventSeries: CalendarEventSeriesService;
- public readonly categories: CategoriesService;
- public readonly channels: ChannelsService;
- public readonly chat: ChatService;
- public readonly docComments: DocCommentsService;
- public readonly docs: DocsService;
- public readonly forumComments: ForumCommentsService;
- public readonly forums: ForumsService;
- public readonly groupMembership: GroupMembershipService;
- public readonly groups: GroupsService;
- public readonly listItems: ListItemsService;
- public readonly memberBans: MemberBansService;
- public readonly members: MembersService;
- public readonly reactions: ReactionsService;
- public readonly roleMembership: RoleMembershipService;
- public readonly roles: RolesService;
- public readonly servers: ServersService;
- public readonly serverXp: ServerXpService;
- public readonly socialLinks: SocialLinksService;
- public readonly users: UsersService;
- public readonly userStatus: UserStatusService;
- public readonly webhook: WebhookService;
- public readonly serverSubscriptions: ServerSubscriptionService;
+ public readonly announcementComments: AnnouncementCommentsService;
+ public readonly announcements: AnnouncementsService;
+ public readonly calendarEventComments: CalendarEventCommentsService;
+ public readonly calendarEvents: CalendarEventsService;
+ public readonly calendarEventSeries: CalendarEventSeriesService;
+ public readonly categories: CategoriesService;
+ public readonly channels: ChannelsService;
+ public readonly chat: ChatService;
+ public readonly docComments: DocCommentsService;
+ public readonly docs: DocsService;
+ public readonly forumComments: ForumCommentsService;
+ public readonly forums: ForumsService;
+ public readonly groupMembership: GroupMembershipService;
+ public readonly groups: GroupsService;
+ public readonly listItems: ListItemsService;
+ public readonly memberBans: MemberBansService;
+ public readonly members: MembersService;
+ public readonly reactions: ReactionsService;
+ public readonly roleMembership: RoleMembershipService;
+ public readonly roles: RolesService;
+ public readonly servers: ServersService;
+ public readonly serverXp: ServerXpService;
+ public readonly socialLinks: SocialLinksService;
+ public readonly users: UsersService;
+ public readonly userStatus: UserStatusService;
+ public readonly webhook: WebhookService;
+ public readonly serverSubscriptions: ServerSubscriptionService;
- public readonly request: BaseHttpRequest;
+ public readonly request: BaseHttpRequest;
- constructor(rest: RestManager) {
- this.request = new FetchHttpRequest(rest);
+ constructor(
+ rest: RestManager,
+ ) {
+ this.request =
+ new FetchHttpRequest(
+ rest,
+ );
- this.announcementComments = new AnnouncementCommentsService(this.request);
- this.announcements = new AnnouncementsService(this.request);
- this.calendarEventComments = new CalendarEventCommentsService(this.request);
- this.calendarEvents = new CalendarEventsService(this.request);
- this.calendarEventSeries = new CalendarEventSeriesService(this.request);
- this.categories = new CategoriesService(this.request);
- this.channels = new ChannelsService(this.request);
- this.chat = new ChatService(this.request);
- this.docComments = new DocCommentsService(this.request);
- this.docs = new DocsService(this.request);
- this.forumComments = new ForumCommentsService(this.request);
- this.forums = new ForumsService(this.request);
- this.groupMembership = new GroupMembershipService(this.request);
- this.groups = new GroupsService(this.request);
- this.listItems = new ListItemsService(this.request);
- this.memberBans = new MemberBansService(this.request);
- this.members = new MembersService(this.request);
- this.reactions = new ReactionsService(this.request);
- this.roleMembership = new RoleMembershipService(this.request);
- this.roles = new RolesService(this.request);
- this.servers = new ServersService(this.request);
- this.serverXp = new ServerXpService(this.request);
- this.socialLinks = new SocialLinksService(this.request);
- this.users = new UsersService(this.request);
- this.userStatus = new UserStatusService(this.request);
- this.webhook = new WebhookService(this.request);
- this.serverSubscriptions = new ServerSubscriptionService(this.request);
- }
+ this.announcementComments =
+ new AnnouncementCommentsService(
+ this
+ .request,
+ );
+ this.announcements =
+ new AnnouncementsService(
+ this
+ .request,
+ );
+ this.calendarEventComments =
+ new CalendarEventCommentsService(
+ this
+ .request,
+ );
+ this.calendarEvents =
+ new CalendarEventsService(
+ this
+ .request,
+ );
+ this.calendarEventSeries =
+ new CalendarEventSeriesService(
+ this
+ .request,
+ );
+ this.categories =
+ new CategoriesService(
+ this
+ .request,
+ );
+ this.channels =
+ new ChannelsService(
+ this
+ .request,
+ );
+ this.chat =
+ new ChatService(
+ this
+ .request,
+ );
+ this.docComments =
+ new DocCommentsService(
+ this
+ .request,
+ );
+ this.docs =
+ new DocsService(
+ this
+ .request,
+ );
+ this.forumComments =
+ new ForumCommentsService(
+ this
+ .request,
+ );
+ this.forums =
+ new ForumsService(
+ this
+ .request,
+ );
+ this.groupMembership =
+ new GroupMembershipService(
+ this
+ .request,
+ );
+ this.groups =
+ new GroupsService(
+ this
+ .request,
+ );
+ this.listItems =
+ new ListItemsService(
+ this
+ .request,
+ );
+ this.memberBans =
+ new MemberBansService(
+ this
+ .request,
+ );
+ this.members =
+ new MembersService(
+ this
+ .request,
+ );
+ this.reactions =
+ new ReactionsService(
+ this
+ .request,
+ );
+ this.roleMembership =
+ new RoleMembershipService(
+ this
+ .request,
+ );
+ this.roles =
+ new RolesService(
+ this
+ .request,
+ );
+ this.servers =
+ new ServersService(
+ this
+ .request,
+ );
+ this.serverXp =
+ new ServerXpService(
+ this
+ .request,
+ );
+ this.socialLinks =
+ new SocialLinksService(
+ this
+ .request,
+ );
+ this.users =
+ new UsersService(
+ this
+ .request,
+ );
+ this.userStatus =
+ new UserStatusService(
+ this
+ .request,
+ );
+ this.webhook =
+ new WebhookService(
+ this
+ .request,
+ );
+ this.serverSubscriptions =
+ new ServerSubscriptionService(
+ this
+ .request,
+ );
+ }
}
diff --git a/packages/api/lib/generated/router/core/ApiError.ts b/packages/api/lib/generated/router/core/ApiError.ts
index 7eca264d..5e0d5cdd 100644
--- a/packages/api/lib/generated/router/core/ApiError.ts
+++ b/packages/api/lib/generated/router/core/ApiError.ts
@@ -4,20 +4,32 @@ import type { ApiRequestOptions } from "./ApiRequestOptions";
import type { ApiResult } from "./ApiResult";
export class ApiError extends Error {
- public readonly url: string;
- public readonly status: number;
- public readonly statusText: string;
- public readonly body: any;
- public readonly request: ApiRequestOptions;
+ public readonly url: string;
+ public readonly status: number;
+ public readonly statusText: string;
+ public readonly body: any;
+ public readonly request: ApiRequestOptions;
- constructor(request: ApiRequestOptions, response: ApiResult, message: string) {
- super(message);
+ constructor(
+ request: ApiRequestOptions,
+ response: ApiResult,
+ message: string,
+ ) {
+ super(
+ message,
+ );
- this.name = "ApiError";
- this.url = response.url;
- this.status = response.status;
- this.statusText = response.statusText;
- this.body = response.body;
- this.request = request;
- }
+ this.name =
+ "ApiError";
+ this.url =
+ response.url;
+ this.status =
+ response.status;
+ this.statusText =
+ response.statusText;
+ this.body =
+ response.body;
+ this.request =
+ request;
+ }
}
diff --git a/packages/api/lib/generated/router/core/ApiRequestOptions.ts b/packages/api/lib/generated/router/core/ApiRequestOptions.ts
index bc33184d..e2e11e4b 100644
--- a/packages/api/lib/generated/router/core/ApiRequestOptions.ts
+++ b/packages/api/lib/generated/router/core/ApiRequestOptions.ts
@@ -1,15 +1,40 @@
/* istanbul ignore file */
/* eslint-disable */
export type ApiRequestOptions = {
- readonly method: "GET" | "PUT" | "POST" | "DELETE" | "OPTIONS" | "HEAD" | "PATCH";
- readonly url: string;
- readonly path?: Record;
- readonly cookies?: Record;
- readonly headers?: Record;
- readonly query?: Record;
- readonly formData?: Record;
- readonly body?: any;
- readonly mediaType?: string;
- readonly responseHeader?: string;
- readonly errors?: Record;
+ readonly method:
+ | "GET"
+ | "PUT"
+ | "POST"
+ | "DELETE"
+ | "OPTIONS"
+ | "HEAD"
+ | "PATCH";
+ readonly url: string;
+ readonly path?: Record<
+ string,
+ any
+ >;
+ readonly cookies?: Record<
+ string,
+ any
+ >;
+ readonly headers?: Record<
+ string,
+ any
+ >;
+ readonly query?: Record<
+ string,
+ any
+ >;
+ readonly formData?: Record<
+ string,
+ any
+ >;
+ readonly body?: any;
+ readonly mediaType?: string;
+ readonly responseHeader?: string;
+ readonly errors?: Record<
+ number,
+ string
+ >;
};
diff --git a/packages/api/lib/generated/router/core/ApiResult.ts b/packages/api/lib/generated/router/core/ApiResult.ts
index 20b0bef7..227b831a 100644
--- a/packages/api/lib/generated/router/core/ApiResult.ts
+++ b/packages/api/lib/generated/router/core/ApiResult.ts
@@ -1,9 +1,9 @@
/* istanbul ignore file */
/* eslint-disable */
export type ApiResult = {
- readonly url: string;
- readonly ok: boolean;
- readonly status: number;
- readonly statusText: string;
- readonly body: any;
+ readonly url: string;
+ readonly ok: boolean;
+ readonly status: number;
+ readonly statusText: string;
+ readonly body: any;
};
diff --git a/packages/api/lib/generated/router/core/BaseHttpRequest.ts b/packages/api/lib/generated/router/core/BaseHttpRequest.ts
index dba5b03d..d5a2243d 100644
--- a/packages/api/lib/generated/router/core/BaseHttpRequest.ts
+++ b/packages/api/lib/generated/router/core/BaseHttpRequest.ts
@@ -5,7 +5,13 @@ import type { ApiRequestOptions } from "./ApiRequestOptions";
import type { CancelablePromise } from "./CancelablePromise";
export abstract class BaseHttpRequest {
- constructor(public readonly rest: RestManager) {}
+ constructor(
+ public readonly rest: RestManager,
+ ) {}
- public abstract request(options: ApiRequestOptions): CancelablePromise;
+ public abstract request<
+ T,
+ >(
+ options: ApiRequestOptions,
+ ): CancelablePromise;
}
diff --git a/packages/api/lib/generated/router/core/FetchHttpRequest.ts b/packages/api/lib/generated/router/core/FetchHttpRequest.ts
index a0a999de..e21e8a58 100644
--- a/packages/api/lib/generated/router/core/FetchHttpRequest.ts
+++ b/packages/api/lib/generated/router/core/FetchHttpRequest.ts
@@ -7,17 +7,21 @@ import type { CancelablePromise } from "./CancelablePromise";
import { request as __request } from "./request";
export class FetchHttpRequest extends BaseHttpRequest {
- constructor(rest: RestManager) {
- super(rest);
- }
-
- /**
- * Request method
- * @param options The request options from the service
- * @returns CancelablePromise
- * @throws ApiError
- */
- public override request(options: ApiRequestOptions): CancelablePromise {
- return __request(this.rest, options);
- }
+ /**
+ * Request method
+ * @param options The request options from the service
+ * @returns CancelablePromise
+ * @throws ApiError
+ */
+ public override request<
+ T,
+ >(
+ options: ApiRequestOptions,
+ ): CancelablePromise {
+ return __request(
+ this
+ .rest,
+ options,
+ );
+ }
}
diff --git a/packages/api/lib/generated/router/core/OpenAPI.ts b/packages/api/lib/generated/router/core/OpenAPI.ts
index d8e03c96..481cde80 100644
--- a/packages/api/lib/generated/router/core/OpenAPI.ts
+++ b/packages/api/lib/generated/router/core/OpenAPI.ts
@@ -6,25 +6,38 @@ type Resolver = (options: ApiRequestOptions) => Promise;
type Headers = Record;
export type OpenAPIConfig = {
- BASE: string;
- VERSION: string;
- WITH_CREDENTIALS: boolean;
- CREDENTIALS: "include" | "omit" | "same-origin";
- TOKEN?: string | Resolver;
- USERNAME?: string | Resolver;
- PASSWORD?: string | Resolver;
- HEADERS?: Headers | Resolver;
- ENCODE_PATH?: (path: string) => string;
+ BASE: string;
+ VERSION: string;
+ WITH_CREDENTIALS: boolean;
+ CREDENTIALS:
+ | "include"
+ | "omit"
+ | "same-origin";
+ TOKEN?:
+ | string
+ | Resolver;
+ USERNAME?:
+ | string
+ | Resolver;
+ PASSWORD?:
+ | string
+ | Resolver;
+ HEADERS?:
+ | Headers
+ | Resolver;
+ ENCODE_PATH?: (
+ path: string,
+ ) => string;
};
export const OpenAPI: OpenAPIConfig = {
- BASE: "https://www.guilded.gg/api/v1",
- VERSION: "0.0.1",
- WITH_CREDENTIALS: false,
- CREDENTIALS: "include",
- TOKEN: undefined,
- USERNAME: undefined,
- PASSWORD: undefined,
- HEADERS: undefined,
- ENCODE_PATH: undefined,
+ BASE: "https://www.guilded.gg/api/v1",
+ VERSION: "0.0.1",
+ WITH_CREDENTIALS: false,
+ CREDENTIALS: "include",
+ TOKEN: undefined,
+ USERNAME: undefined,
+ PASSWORD: undefined,
+ HEADERS: undefined,
+ ENCODE_PATH: undefined,
};
diff --git a/packages/api/lib/generated/router/core/request.ts b/packages/api/lib/generated/router/core/request.ts
index 3265dde2..35a60b41 100644
--- a/packages/api/lib/generated/router/core/request.ts
+++ b/packages/api/lib/generated/router/core/request.ts
@@ -4,21 +4,38 @@ import { RestManager } from "../../../rest/RestManager";
import type { ApiRequestOptions } from "./ApiRequestOptions";
export function request(rest: RestManager, options: ApiRequestOptions) {
- let formattedPath = options.url;
- if (options.path) {
- for (const key in options.path) {
- formattedPath = formattedPath.replace(`{${key}}`, options.path[key]);
- }
- }
+ let formattedPath =
+ options.url;
+ if (
+ options.path
+ ) {
+ for (const key in options.path) {
+ formattedPath =
+ formattedPath.replace(
+ `{${key}}`,
+ options
+ .path[
+ key
+ ],
+ );
+ }
+ }
- return rest
- .make({
- method: options.method,
- headers: options.headers,
- isFormData: false,
- path: formattedPath,
- query: options.query,
- body: options.body,
- })
- .then((x) => x[1] as T);
+ return rest
+ .make(
+ {
+ method: options.method,
+ headers: options.headers,
+ isFormData: false,
+ path: formattedPath,
+ query: options.query,
+ body: options.body,
+ },
+ )
+ .then(
+ (
+ x,
+ ) =>
+ x[1] as T,
+ );
}
diff --git a/packages/api/lib/generated/router/models/Announcement.ts b/packages/api/lib/generated/router/models/Announcement.ts
index d9b31a58..fcff3c93 100644
--- a/packages/api/lib/generated/router/models/Announcement.ts
+++ b/packages/api/lib/generated/router/models/Announcement.ts
@@ -6,33 +6,33 @@
import type { Mentions } from "./Mentions";
export type Announcement = {
- /**
- * The ID of the announcement
- */
- id: string;
- /**
- * The ID of the server
- */
- serverId: string;
- /**
- * The ID of the channel
- */
- channelId: string;
- /**
- * The ISO 8601 timestamp that the announcement was created at
- */
- createdAt: string;
- /**
- * The ID of the user who created this announcement
- */
- createdBy: string;
- /**
- * The content of the announcement
- */
- content: string;
- mentions?: Mentions;
- /**
- * The title of the announcement
- */
- title: string;
+ /**
+ * The ID of the announcement
+ */
+ id: string;
+ /**
+ * The ID of the server
+ */
+ serverId: string;
+ /**
+ * The ID of the channel
+ */
+ channelId: string;
+ /**
+ * The ISO 8601 timestamp that the announcement was created at
+ */
+ createdAt: string;
+ /**
+ * The ID of the user who created this announcement
+ */
+ createdBy: string;
+ /**
+ * The content of the announcement
+ */
+ content: string;
+ mentions?: Mentions;
+ /**
+ * The title of the announcement
+ */
+ title: string;
};
diff --git a/packages/api/lib/generated/router/models/AnnouncementComment.ts b/packages/api/lib/generated/router/models/AnnouncementComment.ts
index a1fe0abe..6a1dc50c 100644
--- a/packages/api/lib/generated/router/models/AnnouncementComment.ts
+++ b/packages/api/lib/generated/router/models/AnnouncementComment.ts
@@ -6,33 +6,33 @@
import type { Mentions } from "./Mentions";
export type AnnouncementComment = {
- /**
- * The ID of the announcement comment
- */
- id: number;
- /**
- * The content of the announcement comment
- */
- content: string;
- /**
- * The ISO 8601 timestamp that the announcement comment was created at
- */
- createdAt: string;
- /**
- * The ISO 8601 timestamp that the announcement comment was updated at, if relevant
- */
- updatedAt?: string;
- /**
- * The ID of the user who created this announcement comment (Note: If this event has `createdByWebhookId` present, this field will still be populated, but can be ignored. In this case, the value of this field will always be Ann6LewA)
- */
- createdBy: string;
- /**
- * The ID of the channel
- */
- channelId: string;
- /**
- * The ID of the announcement
- */
- announcementId: string;
- mentions?: Mentions;
+ /**
+ * The ID of the announcement comment
+ */
+ id: number;
+ /**
+ * The content of the announcement comment
+ */
+ content: string;
+ /**
+ * The ISO 8601 timestamp that the announcement comment was created at
+ */
+ createdAt: string;
+ /**
+ * The ISO 8601 timestamp that the announcement comment was updated at, if relevant
+ */
+ updatedAt?: string;
+ /**
+ * The ID of the user who created this announcement comment (Note: If this event has `createdByWebhookId` present, this field will still be populated, but can be ignored. In this case, the value of this field will always be Ann6LewA)
+ */
+ createdBy: string;
+ /**
+ * The ID of the channel
+ */
+ channelId: string;
+ /**
+ * The ID of the announcement
+ */
+ announcementId: string;
+ mentions?: Mentions;
};
diff --git a/packages/api/lib/generated/router/models/AnnouncementCommentReaction.ts b/packages/api/lib/generated/router/models/AnnouncementCommentReaction.ts
index ac1af930..cc87bd46 100644
--- a/packages/api/lib/generated/router/models/AnnouncementCommentReaction.ts
+++ b/packages/api/lib/generated/router/models/AnnouncementCommentReaction.ts
@@ -6,21 +6,21 @@
import type { Emote } from "./Emote";
export type AnnouncementCommentReaction = {
- /**
- * The ID of the channel
- */
- channelId: string;
- /**
- * The ID of the user who added the reaction
- */
- createdBy: string;
- emote: Emote;
- /**
- * The ID of the announcement
- */
- announcementId: string;
- /**
- * The ID of the announcement comment
- */
- announcementCommentId: number;
+ /**
+ * The ID of the channel
+ */
+ channelId: string;
+ /**
+ * The ID of the user who added the reaction
+ */
+ createdBy: string;
+ emote: Emote;
+ /**
+ * The ID of the announcement
+ */
+ announcementId: string;
+ /**
+ * The ID of the announcement comment
+ */
+ announcementCommentId: number;
};
diff --git a/packages/api/lib/generated/router/models/AnnouncementReaction.ts b/packages/api/lib/generated/router/models/AnnouncementReaction.ts
index e3f35bed..0eb5e752 100644
--- a/packages/api/lib/generated/router/models/AnnouncementReaction.ts
+++ b/packages/api/lib/generated/router/models/AnnouncementReaction.ts
@@ -6,17 +6,17 @@
import type { Emote } from "./Emote";
export type AnnouncementReaction = {
- /**
- * The ID of the channel
- */
- channelId: string;
- /**
- * The ID of the user who added the reaction
- */
- createdBy: string;
- emote: Emote;
- /**
- * The ID of the announcement
- */
- announcementId: string;
+ /**
+ * The ID of the channel
+ */
+ channelId: string;
+ /**
+ * The ID of the user who added the reaction
+ */
+ createdBy: string;
+ emote: Emote;
+ /**
+ * The ID of the announcement
+ */
+ announcementId: string;
};
diff --git a/packages/api/lib/generated/router/models/CalendarEvent.ts b/packages/api/lib/generated/router/models/CalendarEvent.ts
index 91daa186..6097e7b3 100644
--- a/packages/api/lib/generated/router/models/CalendarEvent.ts
+++ b/packages/api/lib/generated/router/models/CalendarEvent.ts
@@ -6,92 +6,92 @@
import type { Mentions } from "./Mentions";
export type CalendarEvent = {
- /**
- * The ID of the calendar event
- */
- id: number;
- /**
- * The ID of the server
- */
- serverId: string;
- /**
- * The ID of the channel
- */
- channelId: string;
- /**
- * The name of the event
- */
- name: string;
- /**
- * The description of the event
- */
- description?: string;
- /**
- * The location of the event
- */
- location?: string;
- /**
- * A URL to associate with the event
- */
- url?: string;
- /**
- * The integer value corresponds to the decimal RGB representation for the color. The color of the event when viewing in the calendar
- */
- color?: number;
- /**
- * Is this event a repeating event
- */
- repeats?: boolean;
- /**
- * The ID of the calendar event series. Only shows if the event is repeating
- */
- seriesId?: string;
- /**
- * The role IDs to restrict the event to
- */
- roleIds?: Array;
- /**
- * When disabled, users will not be able to RSVP to the event
- */
- rsvpDisabled?: boolean;
- /**
- * Does the event last all day
- */
- isAllDay?: boolean;
- /**
- * The number of RSVPs to allow before waitlisting RSVPs
- */
- rsvpLimit?: number;
- /**
- * When `rsvpLimit` is set, users from the waitlist will be added as space becomes available in the event
- */
- autofillWaitlist?: boolean;
- /**
- * The ISO 8601 timestamp that the event starts at
- */
- startsAt: string;
- /**
- * The duration of the event _**in minutes**_
- */
- duration?: number;
- isPrivate?: boolean;
- mentions?: Mentions;
- /**
- * The ISO 8601 timestamp that the event was created at
- */
- createdAt: string;
- /**
- * The ID of the user who created this event
- */
- createdBy: string;
- cancellation?: {
- /**
- * The description of event cancellation
- */
- description?: string;
- /**
- * The ID of the user who created this event cancellation
- */
- createdBy: string;
- };
+ /**
+ * The ID of the calendar event
+ */
+ id: number;
+ /**
+ * The ID of the server
+ */
+ serverId: string;
+ /**
+ * The ID of the channel
+ */
+ channelId: string;
+ /**
+ * The name of the event
+ */
+ name: string;
+ /**
+ * The description of the event
+ */
+ description?: string;
+ /**
+ * The location of the event
+ */
+ location?: string;
+ /**
+ * A URL to associate with the event
+ */
+ url?: string;
+ /**
+ * The integer value corresponds to the decimal RGB representation for the color. The color of the event when viewing in the calendar
+ */
+ color?: number;
+ /**
+ * Is this event a repeating event
+ */
+ repeats?: boolean;
+ /**
+ * The ID of the calendar event series. Only shows if the event is repeating
+ */
+ seriesId?: string;
+ /**
+ * The role IDs to restrict the event to
+ */
+ roleIds?: Array;
+ /**
+ * When disabled, users will not be able to RSVP to the event
+ */
+ rsvpDisabled?: boolean;
+ /**
+ * Does the event last all day
+ */
+ isAllDay?: boolean;
+ /**
+ * The number of RSVPs to allow before waitlisting RSVPs
+ */
+ rsvpLimit?: number;
+ /**
+ * When `rsvpLimit` is set, users from the waitlist will be added as space becomes available in the event
+ */
+ autofillWaitlist?: boolean;
+ /**
+ * The ISO 8601 timestamp that the event starts at
+ */
+ startsAt: string;
+ /**
+ * The duration of the event _**in minutes**_
+ */
+ duration?: number;
+ isPrivate?: boolean;
+ mentions?: Mentions;
+ /**
+ * The ISO 8601 timestamp that the event was created at
+ */
+ createdAt: string;
+ /**
+ * The ID of the user who created this event
+ */
+ createdBy: string;
+ cancellation?: {
+ /**
+ * The description of event cancellation
+ */
+ description?: string;
+ /**
+ * The ID of the user who created this event cancellation
+ */
+ createdBy: string;
+ };
};
diff --git a/packages/api/lib/generated/router/models/CalendarEventComment.ts b/packages/api/lib/generated/router/models/CalendarEventComment.ts
index 54ebce72..588ebdf6 100644
--- a/packages/api/lib/generated/router/models/CalendarEventComment.ts
+++ b/packages/api/lib/generated/router/models/CalendarEventComment.ts
@@ -6,33 +6,33 @@
import type { Mentions } from "./Mentions";
export type CalendarEventComment = {
- /**
- * The ID of the calendar event comment
- */
- id: number;
- /**
- * The content of the calendar event comment
- */
- content: string;
- /**
- * The ISO 8601 timestamp that the calendar event comment was created at
- */
- createdAt: string;
- /**
- * The ISO 8601 timestamp that the calendar event comment was updated at, if relevant
- */
- updatedAt?: string;
- /**
- * The ID of the calendar event
- */
- calendarEventId: number;
- /**
- * The ID of the channel
- */
- channelId: string;
- /**
- * The ID of the user who created this calendar event comment (Note: If this event has `createdByWebhookId` present, this field will still be populated, but can be ignored. In this case, the value of this field will always be Ann6LewA)
- */
- createdBy: string;
- mentions?: Mentions;
+ /**
+ * The ID of the calendar event comment
+ */
+ id: number;
+ /**
+ * The content of the calendar event comment
+ */
+ content: string;
+ /**
+ * The ISO 8601 timestamp that the calendar event comment was created at
+ */
+ createdAt: string;
+ /**
+ * The ISO 8601 timestamp that the calendar event comment was updated at, if relevant
+ */
+ updatedAt?: string;
+ /**
+ * The ID of the calendar event
+ */
+ calendarEventId: number;
+ /**
+ * The ID of the channel
+ */
+ channelId: string;
+ /**
+ * The ID of the user who created this calendar event comment (Note: If this event has `createdByWebhookId` present, this field will still be populated, but can be ignored. In this case, the value of this field will always be Ann6LewA)
+ */
+ createdBy: string;
+ mentions?: Mentions;
};
diff --git a/packages/api/lib/generated/router/models/CalendarEventCommentReaction.ts b/packages/api/lib/generated/router/models/CalendarEventCommentReaction.ts
index 4214f605..6f04f1a5 100644
--- a/packages/api/lib/generated/router/models/CalendarEventCommentReaction.ts
+++ b/packages/api/lib/generated/router/models/CalendarEventCommentReaction.ts
@@ -6,21 +6,21 @@
import type { Emote } from "./Emote";
export type CalendarEventCommentReaction = {
- /**
- * The ID of the channel
- */
- channelId: string;
- /**
- * The ID of the user who added the reaction
- */
- createdBy: string;
- emote: Emote;
- /**
- * The ID of the calendar event
- */
- calendarEventId: number;
- /**
- * The ID of the calendar event comment
- */
- calendarEventCommentId: number;
+ /**
+ * The ID of the channel
+ */
+ channelId: string;
+ /**
+ * The ID of the user who added the reaction
+ */
+ createdBy: string;
+ emote: Emote;
+ /**
+ * The ID of the calendar event
+ */
+ calendarEventId: number;
+ /**
+ * The ID of the calendar event comment
+ */
+ calendarEventCommentId: number;
};
diff --git a/packages/api/lib/generated/router/models/CalendarEventReaction.ts b/packages/api/lib/generated/router/models/CalendarEventReaction.ts
index ea80c95b..55a241f0 100644
--- a/packages/api/lib/generated/router/models/CalendarEventReaction.ts
+++ b/packages/api/lib/generated/router/models/CalendarEventReaction.ts
@@ -6,17 +6,17 @@
import type { Emote } from "./Emote";
export type CalendarEventReaction = {
- /**
- * The ID of the channel
- */
- channelId: string;
- /**
- * The ID of the user who added the reaction
- */
- createdBy: string;
- emote: Emote;
- /**
- * The ID of the calendar event
- */
- calendarEventId: number;
+ /**
+ * The ID of the channel
+ */
+ channelId: string;
+ /**
+ * The ID of the user who added the reaction
+ */
+ createdBy: string;
+ emote: Emote;
+ /**
+ * The ID of the calendar event
+ */
+ calendarEventId: number;
};
diff --git a/packages/api/lib/generated/router/models/CalendarEventRsvp.ts b/packages/api/lib/generated/router/models/CalendarEventRsvp.ts
index d799fcd1..4790654f 100644
--- a/packages/api/lib/generated/router/models/CalendarEventRsvp.ts
+++ b/packages/api/lib/generated/router/models/CalendarEventRsvp.ts
@@ -4,40 +4,46 @@
/* eslint-disable */
export type CalendarEventRsvp = {
- /**
- * The ID of the calendar event
- */
- calendarEventId: number;
- /**
- * The ID of the channel
- */
- channelId: string;
- /**
- * The ID of the server
- */
- serverId: string;
- /**
- * The ID of the user
- */
- userId: string;
- /**
- * The status of the RSVP
- */
- status: "going" | "maybe" | "declined" | "invited" | "waitlisted" | "not responded";
- /**
- * The ID of the user who created this RSVP
- */
- createdBy: string;
- /**
- * The ISO 8601 timestamp that the RSVP was created at
- */
- createdAt: string;
- /**
- * The ID of the user who updated this RSVP
- */
- updatedBy?: string;
- /**
- * The ISO 8601 timestamp that the RSVP was updated at, if relevant
- */
- updatedAt?: string;
+ /**
+ * The ID of the calendar event
+ */
+ calendarEventId: number;
+ /**
+ * The ID of the channel
+ */
+ channelId: string;
+ /**
+ * The ID of the server
+ */
+ serverId: string;
+ /**
+ * The ID of the user
+ */
+ userId: string;
+ /**
+ * The status of the RSVP
+ */
+ status:
+ | "going"
+ | "maybe"
+ | "declined"
+ | "invited"
+ | "waitlisted"
+ | "not responded";
+ /**
+ * The ID of the user who created this RSVP
+ */
+ createdBy: string;
+ /**
+ * The ISO 8601 timestamp that the RSVP was created at
+ */
+ createdAt: string;
+ /**
+ * The ID of the user who updated this RSVP
+ */
+ updatedBy?: string;
+ /**
+ * The ISO 8601 timestamp that the RSVP was updated at, if relevant
+ */
+ updatedAt?: string;
};
diff --git a/packages/api/lib/generated/router/models/CalendarEventSeries.ts b/packages/api/lib/generated/router/models/CalendarEventSeries.ts
index 7440a3b8..88ff6e0f 100644
--- a/packages/api/lib/generated/router/models/CalendarEventSeries.ts
+++ b/packages/api/lib/generated/router/models/CalendarEventSeries.ts
@@ -4,16 +4,16 @@
/* eslint-disable */
export type CalendarEventSeries = {
- /**
- * The ID of the calendar event series
- */
- id: string;
- /**
- * The ID of the server
- */
- serverId: string;
- /**
- * The ID of the channel
- */
- channelId: string;
+ /**
+ * The ID of the calendar event series
+ */
+ id: string;
+ /**
+ * The ID of the server
+ */
+ serverId: string;
+ /**
+ * The ID of the channel
+ */
+ channelId: string;
};
diff --git a/packages/api/lib/generated/router/models/Category.ts b/packages/api/lib/generated/router/models/Category.ts
index aaf1e1d1..83b66ef5 100644
--- a/packages/api/lib/generated/router/models/Category.ts
+++ b/packages/api/lib/generated/router/models/Category.ts
@@ -4,28 +4,28 @@
/* eslint-disable */
export type Category = {
- /**
- * The ID of the category
- */
- id: number;
- /**
- * The ID of the server
- */
- serverId: string;
- /**
- * The ID of the group
- */
- groupId: string;
- /**
- * The ISO 8601 timestamp that the category was created at
- */
- createdAt: string;
- /**
- * The ISO 8601 timestamp that the category was updated at, if relevant
- */
- updatedAt?: string;
- /**
- * Name of the category
- */
- name: string;
+ /**
+ * The ID of the category
+ */
+ id: number;
+ /**
+ * The ID of the server
+ */
+ serverId: string;
+ /**
+ * The ID of the group
+ */
+ groupId: string;
+ /**
+ * The ISO 8601 timestamp that the category was created at
+ */
+ createdAt: string;
+ /**
+ * The ISO 8601 timestamp that the category was updated at, if relevant
+ */
+ updatedAt?: string;
+ /**
+ * Name of the category
+ */
+ name: string;
};
diff --git a/packages/api/lib/generated/router/models/ChatEmbed.ts b/packages/api/lib/generated/router/models/ChatEmbed.ts
index 4dbc82c6..cb6dc61f 100644
--- a/packages/api/lib/generated/router/models/ChatEmbed.ts
+++ b/packages/api/lib/generated/router/models/ChatEmbed.ts
@@ -7,89 +7,89 @@
* Rich content sections optionally associated with chat messages. Properties with "webhook-markdown" support allow for the following: link, italic, bold, strikethrough, underline, inline code, block code, reaction, and mention.
*/
export type ChatEmbed = {
- /**
- * Main header of the embed
- */
- title?: string;
- /**
- * Subtext of the embed
- */
- description?: string;
- /**
- * URL to linkify the `title` field with
- */
- url?: string;
- /**
- * The integer value corresponds to the decimal RGB representation for the color. The color that the left border should be
- */
- color?: number;
- /**
- * A small section at the bottom of the embed
- */
- footer?: {
- /**
- * URL of a small image to put in the footer
- */
- icon_url?: string;
- /**
- * Text of the footer
- */
- text: string;
- };
- /**
- * A timestamp to put in the footer
- */
- timestamp?: string;
- /**
- * An image to the right of the embed's content
- */
- thumbnail?: {
- /**
- * URL of the image
- */
- url?: string;
- };
- /**
- * The main picture to associate with the embed
- */
- image?: {
- /**
- * URL of the image
- */
- url?: string;
- };
- /**
- * A small section above the title of the embed
- */
- author?: {
- /**
- * Name of the author
- */
- name?: string;
- /**
- * URL to linkify the author's `name` field
- */
- url?: string;
- /**
- * URL of a small image to display to the left of the author's `name`
- */
- icon_url?: string;
- };
- /**
- * Table-like cells to add to the embed
- */
- fields?: Array<{
- /**
- * Header of the table-like cell
- */
- name: string;
- /**
- * Subtext of the table-like cell
- */
- value: string;
- /**
- * If the field should wrap or not
- */
- inline?: boolean;
- }>;
+ /**
+ * Main header of the embed
+ */
+ title?: string;
+ /**
+ * Subtext of the embed
+ */
+ description?: string;
+ /**
+ * URL to linkify the `title` field with
+ */
+ url?: string;
+ /**
+ * The integer value corresponds to the decimal RGB representation for the color. The color that the left border should be
+ */
+ color?: number;
+ /**
+ * A small section at the bottom of the embed
+ */
+ footer?: {
+ /**
+ * URL of a small image to put in the footer
+ */
+ icon_url?: string;
+ /**
+ * Text of the footer
+ */
+ text: string;
+ };
+ /**
+ * A timestamp to put in the footer
+ */
+ timestamp?: string;
+ /**
+ * An image to the right of the embed's content
+ */
+ thumbnail?: {
+ /**
+ * URL of the image
+ */
+ url?: string;
+ };
+ /**
+ * The main picture to associate with the embed
+ */
+ image?: {
+ /**
+ * URL of the image
+ */
+ url?: string;
+ };
+ /**
+ * A small section above the title of the embed
+ */
+ author?: {
+ /**
+ * Name of the author
+ */
+ name?: string;
+ /**
+ * URL to linkify the author's `name` field
+ */
+ url?: string;
+ /**
+ * URL of a small image to display to the left of the author's `name`
+ */
+ icon_url?: string;
+ };
+ /**
+ * Table-like cells to add to the embed
+ */
+ fields?: Array<{
+ /**
+ * Header of the table-like cell
+ */
+ name: string;
+ /**
+ * Subtext of the table-like cell
+ */
+ value: string;
+ /**
+ * If the field should wrap or not
+ */
+ inline?: boolean;
+ }>;
};
diff --git a/packages/api/lib/generated/router/models/ChatMessage.ts b/packages/api/lib/generated/router/models/ChatMessage.ts
index 0b3d9a97..06effdd7 100644
--- a/packages/api/lib/generated/router/models/ChatMessage.ts
+++ b/packages/api/lib/generated/router/models/ChatMessage.ts
@@ -7,59 +7,61 @@ import type { ChatEmbed } from "./ChatEmbed";
import type { Mentions } from "./Mentions";
export type ChatMessage = {
- /**
- * The ID of the message
- */
- id: string;
- /**
- * The type of chat message. "system" messages are generated by Guilded, while "default" messages are user or bot-generated.
- */
- type: "default" | "system";
- /**
- * The ID of the server
- */
- serverId?: string;
- /**
- * The ID of the group
- */
- groupId?: string;
- /**
- * The ID of the channel
- */
- channelId: string;
- /**
- * The content of the message
- */
- content?: string;
- embeds?: Array;
- /**
- * Message IDs that were replied to
- */
- replyMessageIds?: Array;
- /**
- * If set, this message will only be seen by those mentioned or replied to
- */
- isPrivate?: boolean;
- /**
- * If set, this message did not notify mention or reply recipients
- */
- isSilent?: boolean;
- isPinned?: boolean;
- mentions?: Mentions;
- /**
- * The ISO 8601 timestamp that the message was created at
- */
- createdAt: string;
- /**
- * The ID of the user who created this message (Note: If this event has `createdByWebhookId` present, this field will still be populated, but can be ignored. In this case, the value of this field will always be Ann6LewA)
- */
- createdBy: string;
- /**
- * The ID of the webhook who created this message, if it was created by a webhook
- */
- createdByWebhookId?: string;
- /**
- * The ISO 8601 timestamp that the message was updated at, if relevant
- */
- updatedAt?: string;
+ /**
+ * The ID of the message
+ */
+ id: string;
+ /**
+ * The type of chat message. "system" messages are generated by Guilded, while "default" messages are user or bot-generated.
+ */
+ type:
+ | "default"
+ | "system";
+ /**
+ * The ID of the server
+ */
+ serverId?: string;
+ /**
+ * The ID of the group
+ */
+ groupId?: string;
+ /**
+ * The ID of the channel
+ */
+ channelId: string;
+ /**
+ * The content of the message
+ */
+ content?: string;
+ embeds?: Array;
+ /**
+ * Message IDs that were replied to
+ */
+ replyMessageIds?: Array;
+ /**
+ * If set, this message will only be seen by those mentioned or replied to
+ */
+ isPrivate?: boolean;
+ /**
+ * If set, this message did not notify mention or reply recipients
+ */
+ isSilent?: boolean;
+ isPinned?: boolean;
+ mentions?: Mentions;
+ /**
+ * The ISO 8601 timestamp that the message was created at
+ */
+ createdAt: string;
+ /**
+ * The ID of the user who created this message (Note: If this event has `createdByWebhookId` present, this field will still be populated, but can be ignored. In this case, the value of this field will always be Ann6LewA)
+ */
+ createdBy: string;
+ /**
+ * The ID of the webhook who created this message, if it was created by a webhook
+ */
+ createdByWebhookId?: string;
+ /**
+ * The ISO 8601 timestamp that the message was updated at, if relevant
+ */
+ updatedAt?: string;
};
diff --git a/packages/api/lib/generated/router/models/ChatMessageReaction.ts b/packages/api/lib/generated/router/models/ChatMessageReaction.ts
index 3b2db99b..5a82d582 100644
--- a/packages/api/lib/generated/router/models/ChatMessageReaction.ts
+++ b/packages/api/lib/generated/router/models/ChatMessageReaction.ts
@@ -6,17 +6,17 @@
import type { Emote } from "./Emote";
export type ChatMessageReaction = {
- /**
- * The ID of the channel
- */
- channelId: string;
- /**
- * The ID of the user who added the reaction
- */
- createdBy: string;
- emote: Emote;
- /**
- * The ID of the message
- */
- messageId: string;
+ /**
+ * The ID of the channel
+ */
+ channelId: string;
+ /**
+ * The ID of the user who added the reaction
+ */
+ createdBy: string;
+ emote: Emote;
+ /**
+ * The ID of the message
+ */
+ messageId: string;
};
diff --git a/packages/api/lib/generated/router/models/Doc.ts b/packages/api/lib/generated/router/models/Doc.ts
index 6c21b2ac..e72719dd 100644
--- a/packages/api/lib/generated/router/models/Doc.ts
+++ b/packages/api/lib/generated/router/models/Doc.ts
@@ -6,41 +6,41 @@
import type { Mentions } from "./Mentions";
export type Doc = {
- /**
- * The ID of the doc
- */
- id: number;
- /**
- * The ID of the server
- */
- serverId: string;
- /**
- * The ID of the channel
- */
- channelId: string;
- /**
- * The title of the doc
- */
- title: string;
- /**
- * The content of the doc
- */
- content: string;
- mentions?: Mentions;
- /**
- * The ISO 8601 timestamp that the doc was created at
- */
- createdAt: string;
- /**
- * The ID of the user who created this doc
- */
- createdBy: string;
- /**
- * The ISO 8601 timestamp that the doc was updated at, if relevant
- */
- updatedAt?: string;
- /**
- * The ID of the user who updated this doc
- */
- updatedBy?: string;
+ /**
+ * The ID of the doc
+ */
+ id: number;
+ /**
+ * The ID of the server
+ */
+ serverId: string;
+ /**
+ * The ID of the channel
+ */
+ channelId: string;
+ /**
+ * The title of the doc
+ */
+ title: string;
+ /**
+ * The content of the doc
+ */
+ content: string;
+ mentions?: Mentions;
+ /**
+ * The ISO 8601 timestamp that the doc was created at
+ */
+ createdAt: string;
+ /**
+ * The ID of the user who created this doc
+ */
+ createdBy: string;
+ /**
+ * The ISO 8601 timestamp that the doc was updated at, if relevant
+ */
+ updatedAt?: string;
+ /**
+ * The ID of the user who updated this doc
+ */
+ updatedBy?: string;
};
diff --git a/packages/api/lib/generated/router/models/DocComment.ts b/packages/api/lib/generated/router/models/DocComment.ts
index 9991ef20..9b0eaa24 100644
--- a/packages/api/lib/generated/router/models/DocComment.ts
+++ b/packages/api/lib/generated/router/models/DocComment.ts
@@ -6,33 +6,33 @@
import type { Mentions } from "./Mentions";
export type DocComment = {
- /**
- * The ID of the doc comment
- */
- id: number;
- /**
- * The content of the doc comment
- */
- content: string;
- /**
- * The ISO 8601 timestamp that the doc comment was created at
- */
- createdAt: string;
- /**
- * The ID of the user who created this doc comment (Note: If this event has `createdByWebhookId` present, this field will still be populated, but can be ignored. In this case, the value of this field will always be Ann6LewA)
- */
- createdBy: string;
- /**
- * The ISO 8601 timestamp that the doc comment was updated at, if relevant
- */
- updatedAt?: string;
- /**
- * The ID of the channel
- */
- channelId: string;
- /**
- * The ID of the doc
- */
- docId: number;
- mentions?: Mentions;
+ /**
+ * The ID of the doc comment
+ */
+ id: number;
+ /**
+ * The content of the doc comment
+ */
+ content: string;
+ /**
+ * The ISO 8601 timestamp that the doc comment was created at
+ */
+ createdAt: string;
+ /**
+ * The ID of the user who created this doc comment (Note: If this event has `createdByWebhookId` present, this field will still be populated, but can be ignored. In this case, the value of this field will always be Ann6LewA)
+ */
+ createdBy: string;
+ /**
+ * The ISO 8601 timestamp that the doc comment was updated at, if relevant
+ */
+ updatedAt?: string;
+ /**
+ * The ID of the channel
+ */
+ channelId: string;
+ /**
+ * The ID of the doc
+ */
+ docId: number;
+ mentions?: Mentions;
};
diff --git a/packages/api/lib/generated/router/models/DocCommentReaction.ts b/packages/api/lib/generated/router/models/DocCommentReaction.ts
index 7a4b6ab5..19cfa7e8 100644
--- a/packages/api/lib/generated/router/models/DocCommentReaction.ts
+++ b/packages/api/lib/generated/router/models/DocCommentReaction.ts
@@ -6,21 +6,21 @@
import type { Emote } from "./Emote";
export type DocCommentReaction = {
- /**
- * The ID of the channel
- */
- channelId: string;
- /**
- * The ID of the user who added the reaction
- */
- createdBy: string;
- emote: Emote;
- /**
- * The ID of the doc
- */
- docId: number;
- /**
- * The ID of the doc comment
- */
- docCommentId: number;
+ /**
+ * The ID of the channel
+ */
+ channelId: string;
+ /**
+ * The ID of the user who added the reaction
+ */
+ createdBy: string;
+ emote: Emote;
+ /**
+ * The ID of the doc
+ */
+ docId: number;
+ /**
+ * The ID of the doc comment
+ */
+ docCommentId: number;
};
diff --git a/packages/api/lib/generated/router/models/DocReaction.ts b/packages/api/lib/generated/router/models/DocReaction.ts
index b9d2ec96..ba20fcf3 100644
--- a/packages/api/lib/generated/router/models/DocReaction.ts
+++ b/packages/api/lib/generated/router/models/DocReaction.ts
@@ -6,17 +6,17 @@
import type { Emote } from "./Emote";
export type DocReaction = {
- /**
- * The ID of the channel
- */
- channelId: string;
- /**
- * The ID of the user who added the reaction
- */
- createdBy: string;
- emote: Emote;
- /**
- * The ID of the doc
- */
- docId: number;
+ /**
+ * The ID of the channel
+ */
+ channelId: string;
+ /**
+ * The ID of the user who added the reaction
+ */
+ createdBy: string;
+ emote: Emote;
+ /**
+ * The ID of the doc
+ */
+ docId: number;
};
diff --git a/packages/api/lib/generated/router/models/Emote.ts b/packages/api/lib/generated/router/models/Emote.ts
index c008394b..9fbdf056 100644
--- a/packages/api/lib/generated/router/models/Emote.ts
+++ b/packages/api/lib/generated/router/models/Emote.ts
@@ -4,20 +4,20 @@
/* eslint-disable */
export type Emote = {
- /**
- * The ID of the emote
- */
- id: number;
- /**
- * The name of the emote
- */
- name: string;
- /**
- * The URL of the emote image
- */
- url: string;
- /**
- * The ID of the server the emote was created on
- */
- serverId?: string;
+ /**
+ * The ID of the emote
+ */
+ id: number;
+ /**
+ * The name of the emote
+ */
+ name: string;
+ /**
+ * The URL of the emote image
+ */
+ url: string;
+ /**
+ * The ID of the server the emote was created on
+ */
+ serverId?: string;
};
diff --git a/packages/api/lib/generated/router/models/ForumTopic.ts b/packages/api/lib/generated/router/models/ForumTopic.ts
index 246b7a2d..ef009af7 100644
--- a/packages/api/lib/generated/router/models/ForumTopic.ts
+++ b/packages/api/lib/generated/router/models/ForumTopic.ts
@@ -6,43 +6,43 @@
import type { Mentions } from "./Mentions";
export type ForumTopic = {
- /**
- * The ID of the forum topic
- */
- id: number;
- /**
- * The ID of the server
- */
- serverId: string;
- /**
- * The ID of the channel
- */
- channelId: string;
- /**
- * The title of the forum topic
- */
- title: string;
- /**
- * The ISO 8601 timestamp that the forum topic was created at
- */
- createdAt: string;
- /**
- * The ID of the user who created this forum topic (Note: If this event has `createdByWebhookId` present, this field will still be populated, but can be ignored. In this case, the value of this field will always be Ann6LewA)
- */
- createdBy: string;
- /**
- * The ISO 8601 timestamp that the forum topic was updated at, if relevant
- */
- updatedAt?: string;
- /**
- * The ISO 8601 timestamp that the forum topic was bumped at. This timestamp is updated whenever there is any activity on the posts within the forum topic.
- */
- bumpedAt?: string;
- isPinned?: boolean;
- isLocked?: boolean;
- /**
- * The content of the forum topic
- */
- content: string;
- mentions?: Mentions;
+ /**
+ * The ID of the forum topic
+ */
+ id: number;
+ /**
+ * The ID of the server
+ */
+ serverId: string;
+ /**
+ * The ID of the channel
+ */
+ channelId: string;
+ /**
+ * The title of the forum topic
+ */
+ title: string;
+ /**
+ * The ISO 8601 timestamp that the forum topic was created at
+ */
+ createdAt: string;
+ /**
+ * The ID of the user who created this forum topic (Note: If this event has `createdByWebhookId` present, this field will still be populated, but can be ignored. In this case, the value of this field will always be Ann6LewA)
+ */
+ createdBy: string;
+ /**
+ * The ISO 8601 timestamp that the forum topic was updated at, if relevant
+ */
+ updatedAt?: string;
+ /**
+ * The ISO 8601 timestamp that the forum topic was bumped at. This timestamp is updated whenever there is any activity on the posts within the forum topic.
+ */
+ bumpedAt?: string;
+ isPinned?: boolean;
+ isLocked?: boolean;
+ /**
+ * The content of the forum topic
+ */
+ content: string;
+ mentions?: Mentions;
};
diff --git a/packages/api/lib/generated/router/models/ForumTopicComment.ts b/packages/api/lib/generated/router/models/ForumTopicComment.ts
index ec96fc9c..a05d3def 100644
--- a/packages/api/lib/generated/router/models/ForumTopicComment.ts
+++ b/packages/api/lib/generated/router/models/ForumTopicComment.ts
@@ -6,33 +6,33 @@
import type { Mentions } from "./Mentions";
export type ForumTopicComment = {
- /**
- * The ID of the forum topic comment
- */
- id: number;
- /**
- * The content of the forum topic comment
- */
- content: string;
- /**
- * The ISO 8601 timestamp that the forum topic comment was created at
- */
- createdAt: string;
- /**
- * The ISO 8601 timestamp that the forum topic comment was updated at, if relevant
- */
- updatedAt?: string;
- /**
- * The ID of the channel
- */
- channelId: string;
- /**
- * The ID of the forum topic
- */
- forumTopicId: number;
- /**
- * The ID of the user who created this forum topic comment (Note: If this event has `createdByWebhookId` present, this field will still be populated, but can be ignored. In this case, the value of this field will always be Ann6LewA)
- */
- createdBy: string;
- mentions?: Mentions;
+ /**
+ * The ID of the forum topic comment
+ */
+ id: number;
+ /**
+ * The content of the forum topic comment
+ */
+ content: string;
+ /**
+ * The ISO 8601 timestamp that the forum topic comment was created at
+ */
+ createdAt: string;
+ /**
+ * The ISO 8601 timestamp that the forum topic comment was updated at, if relevant
+ */
+ updatedAt?: string;
+ /**
+ * The ID of the channel
+ */
+ channelId: string;
+ /**
+ * The ID of the forum topic
+ */
+ forumTopicId: number;
+ /**
+ * The ID of the user who created this forum topic comment (Note: If this event has `createdByWebhookId` present, this field will still be populated, but can be ignored. In this case, the value of this field will always be Ann6LewA)
+ */
+ createdBy: string;
+ mentions?: Mentions;
};
diff --git a/packages/api/lib/generated/router/models/ForumTopicCommentReaction.ts b/packages/api/lib/generated/router/models/ForumTopicCommentReaction.ts
index de7d0e6d..6c8db78e 100644
--- a/packages/api/lib/generated/router/models/ForumTopicCommentReaction.ts
+++ b/packages/api/lib/generated/router/models/ForumTopicCommentReaction.ts
@@ -6,21 +6,21 @@
import type { Emote } from "./Emote";
export type ForumTopicCommentReaction = {
- /**
- * The ID of the channel
- */
- channelId: string;
- /**
- * The ID of the user who added the reaction
- */
- createdBy: string;
- emote: Emote;
- /**
- * The ID of the forum topic
- */
- forumTopicId: number;
- /**
- * The ID of the forum topic comment
- */
- forumTopicCommentId: number;
+ /**
+ * The ID of the channel
+ */
+ channelId: string;
+ /**
+ * The ID of the user who added the reaction
+ */
+ createdBy: string;
+ emote: Emote;
+ /**
+ * The ID of the forum topic
+ */
+ forumTopicId: number;
+ /**
+ * The ID of the forum topic comment
+ */
+ forumTopicCommentId: number;
};
diff --git a/packages/api/lib/generated/router/models/ForumTopicReaction.ts b/packages/api/lib/generated/router/models/ForumTopicReaction.ts
index 08b55224..572a1744 100644
--- a/packages/api/lib/generated/router/models/ForumTopicReaction.ts
+++ b/packages/api/lib/generated/router/models/ForumTopicReaction.ts
@@ -6,17 +6,17 @@
import type { Emote } from "./Emote";
export type ForumTopicReaction = {
- /**
- * The ID of the channel
- */
- channelId: string;
- /**
- * The ID of the user who added the reaction
- */
- createdBy: string;
- emote: Emote;
- /**
- * The ID of the forum topic
- */
- forumTopicId: number;
+ /**
+ * The ID of the channel
+ */
+ channelId: string;
+ /**
+ * The ID of the user who added the reaction
+ */
+ createdBy: string;
+ emote: Emote;
+ /**
+ * The ID of the forum topic
+ */
+ forumTopicId: number;
};
diff --git a/packages/api/lib/generated/router/models/ForumTopicSummary.ts b/packages/api/lib/generated/router/models/ForumTopicSummary.ts
index 58a30309..9059069a 100644
--- a/packages/api/lib/generated/router/models/ForumTopicSummary.ts
+++ b/packages/api/lib/generated/router/models/ForumTopicSummary.ts
@@ -4,38 +4,38 @@
/* eslint-disable */
export type ForumTopicSummary = {
- /**
- * The ID of the forum topic
- */
- id: number;
- /**
- * The ID of the server
- */
- serverId: string;
- /**
- * The ID of the channel
- */
- channelId: string;
- /**
- * The title of the forum topic
- */
- title: string;
- /**
- * The ISO 8601 timestamp that the forum topic was created at
- */
- createdAt: string;
- /**
- * The ID of the user who created this forum topic (Note: If this event has `createdByWebhookId` present, this field will still be populated, but can be ignored. In this case, the value of this field will always be Ann6LewA)
- */
- createdBy: string;
- /**
- * The ISO 8601 timestamp that the forum topic was updated at, if relevant
- */
- updatedAt?: string;
- /**
- * The ISO 8601 timestamp that the forum topic was bumped at. This timestamp is updated whenever there is any activity on the posts within the forum topic.
- */
- bumpedAt?: string;
- isPinned?: boolean;
- isLocked?: boolean;
+ /**
+ * The ID of the forum topic
+ */
+ id: number;
+ /**
+ * The ID of the server
+ */
+ serverId: string;
+ /**
+ * The ID of the channel
+ */
+ channelId: string;
+ /**
+ * The title of the forum topic
+ */
+ title: string;
+ /**
+ * The ISO 8601 timestamp that the forum topic was created at
+ */
+ createdAt: string;
+ /**
+ * The ID of the user who created this forum topic (Note: If this event has `createdByWebhookId` present, this field will still be populated, but can be ignored. In this case, the value of this field will always be Ann6LewA)
+ */
+ createdBy: string;
+ /**
+ * The ISO 8601 timestamp that the forum topic was updated at, if relevant
+ */
+ updatedAt?: string;
+ /**
+ * The ISO 8601 timestamp that the forum topic was bumped at. This timestamp is updated whenever there is any activity on the posts within the forum topic.
+ */
+ bumpedAt?: string;
+ isPinned?: boolean;
+ isLocked?: boolean;
};
diff --git a/packages/api/lib/generated/router/models/Group.ts b/packages/api/lib/generated/router/models/Group.ts
index 1254e3eb..bb5a9c17 100644
--- a/packages/api/lib/generated/router/models/Group.ts
+++ b/packages/api/lib/generated/router/models/Group.ts
@@ -4,60 +4,60 @@
/* eslint-disable */
export type Group = {
- /**
- * The ID of the group
- */
- id: string;
- /**
- * The ID of the server
- */
- serverId: string;
- /**
- * The name of the group
- */
- name: string;
- /**
- * The description associated with the group
- */
- description?: string;
- /**
- * The avatar image associated with the group
- */
- avatar?: string;
- /**
- * If `true`, this is the server's home group
- */
- isHome?: boolean;
- /**
- * The emote to associate with the group
- */
- emoteId?: number;
- /**
- * Is this group open for anyone to join?
- */
- isPublic?: boolean;
- /**
- * The ISO 8601 timestamp that the group was created at
- */
- createdAt: string;
- /**
- * The ID of the user who created this group
- */
- createdBy: string;
- /**
- * The ISO 8601 timestamp that the group was updated at, if relevant
- */
- updatedAt?: string;
- /**
- * The ID of the user who updated this group
- */
- updatedBy?: string;
- /**
- * The ISO 8601 timestamp that the group was archived at, if relevant
- */
- archivedAt?: string;
- /**
- * The ID of the user who archived this group
- */
- archivedBy?: string;
+ /**
+ * The ID of the group
+ */
+ id: string;
+ /**
+ * The ID of the server
+ */
+ serverId: string;
+ /**
+ * The name of the group
+ */
+ name: string;
+ /**
+ * The description associated with the group
+ */
+ description?: string;
+ /**
+ * The avatar image associated with the group
+ */
+ avatar?: string;
+ /**
+ * If `true`, this is the server's home group
+ */
+ isHome?: boolean;
+ /**
+ * The emote to associate with the group
+ */
+ emoteId?: number;
+ /**
+ * Is this group open for anyone to join?
+ */
+ isPublic?: boolean;
+ /**
+ * The ISO 8601 timestamp that the group was created at
+ */
+ createdAt: string;
+ /**
+ * The ID of the user who created this group
+ */
+ createdBy: string;
+ /**
+ * The ISO 8601 timestamp that the group was updated at, if relevant
+ */
+ updatedAt?: string;
+ /**
+ * The ID of the user who updated this group
+ */
+ updatedBy?: string;
+ /**
+ * The ISO 8601 timestamp that the group was archived at, if relevant
+ */
+ archivedAt?: string;
+ /**
+ * The ID of the user who archived this group
+ */
+ archivedBy?: string;
};
diff --git a/packages/api/lib/generated/router/models/ListItem.ts b/packages/api/lib/generated/router/models/ListItem.ts
index 7cd07d7d..226aa8a7 100644
--- a/packages/api/lib/generated/router/models/ListItem.ts
+++ b/packages/api/lib/generated/router/models/ListItem.ts
@@ -6,76 +6,76 @@
import type { Mentions } from "./Mentions";
export type ListItem = {
- /**
- * The ID of the list item
- */
- id: string;
- /**
- * The ID of the server
- */
- serverId: string;
- /**
- * The ID of the channel
- */
- channelId: string;
- /**
- * The message of the list item
- */
- message: string;
- mentions?: Mentions;
- /**
- * The ISO 8601 timestamp that the list item was created at
- */
- createdAt: string;
- /**
- * The ID of the user who created this list item (Note: If this event has `createdByWebhookId` present, this field will still be populated, but can be ignored. In this case, the value of this field will always be Ann6LewA)
- */
- createdBy: string;
- /**
- * The ID of the webhook who created this list item, if it was created by a webhook
- */
- createdByWebhookId?: string;
- /**
- * The ISO 8601 timestamp that the list item was updated at, if relevant
- */
- updatedAt?: string;
- /**
- * The ID of the user who updated this list item
- */
- updatedBy?: string;
- /**
- * The ID of the parent list item if this list item is nested
- */
- parentListItemId?: string;
- /**
- * The ISO 8601 timestamp that the list item was completed at
- */
- completedAt?: string;
- /**
- * The ID of the user who completed this list item
- */
- completedBy?: string;
- note?: {
- /**
- * The ISO 8601 timestamp that the note was created at. If this field is populated, then there's a note associated with the list item
- */
- createdAt: string;
- /**
- * The ID of the user who created this note
- */
- createdBy: string;
- /**
- * The ISO 8601 timestamp that the note was updated at, if relevant
- */
- updatedAt?: string;
- /**
- * The ID of the user who updated this note
- */
- updatedBy?: string;
- mentions?: Mentions;
- /**
- * The note of the list item
- */
- content: string;
- };
+ /**
+ * The ID of the list item
+ */
+ id: string;
+ /**
+ * The ID of the server
+ */
+ serverId: string;
+ /**
+ * The ID of the channel
+ */
+ channelId: string;
+ /**
+ * The message of the list item
+ */
+ message: string;
+ mentions?: Mentions;
+ /**
+ * The ISO 8601 timestamp that the list item was created at
+ */
+ createdAt: string;
+ /**
+ * The ID of the user who created this list item (Note: If this event has `createdByWebhookId` present, this field will still be populated, but can be ignored. In this case, the value of this field will always be Ann6LewA)
+ */
+ createdBy: string;
+ /**
+ * The ID of the webhook who created this list item, if it was created by a webhook
+ */
+ createdByWebhookId?: string;
+ /**
+ * The ISO 8601 timestamp that the list item was updated at, if relevant
+ */
+ updatedAt?: string;
+ /**
+ * The ID of the user who updated this list item
+ */
+ updatedBy?: string;
+ /**
+ * The ID of the parent list item if this list item is nested
+ */
+ parentListItemId?: string;
+ /**
+ * The ISO 8601 timestamp that the list item was completed at
+ */
+ completedAt?: string;
+ /**
+ * The ID of the user who completed this list item
+ */
+ completedBy?: string;
+ note?: {
+ /**
+ * The ISO 8601 timestamp that the note was created at. If this field is populated, then there's a note associated with the list item
+ */
+ createdAt: string;
+ /**
+ * The ID of the user who created this note
+ */
+ createdBy: string;
+ /**
+ * The ISO 8601 timestamp that the note was updated at, if relevant
+ */
+ updatedAt?: string;
+ /**
+ * The ID of the user who updated this note
+ */
+ updatedBy?: string;
+ mentions?: Mentions;
+ /**
+ * The note of the list item
+ */
+ content: string;
+ };
};
diff --git a/packages/api/lib/generated/router/models/ListItemSummary.ts b/packages/api/lib/generated/router/models/ListItemSummary.ts
index 15867755..14a36d38 100644
--- a/packages/api/lib/generated/router/models/ListItemSummary.ts
+++ b/packages/api/lib/generated/router/models/ListItemSummary.ts
@@ -6,71 +6,71 @@
import type { Mentions } from "./Mentions";
export type ListItemSummary = {
- /**
- * The ID of the list item
- */
- id: string;
- /**
- * The ID of the server
- */
- serverId: string;
- /**
- * The ID of the channel
- */
- channelId: string;
- /**
- * The message of the list item
- */
- message: string;
- mentions?: Mentions;
- /**
- * The ISO 8601 timestamp that the list item was created at
- */
- createdAt: string;
- /**
- * The ID of the user who created this list item (Note: If this event has `createdByWebhookId` present, this field will still be populated, but can be ignored. In this case, the value of this field will always be Ann6LewA)
- */
- createdBy: string;
- /**
- * The ID of the webhook who created this list item, if it was created by a webhook
- */
- createdByWebhookId?: string;
- /**
- * The ISO 8601 timestamp that the list item was updated at, if relevant
- */
- updatedAt?: string;
- /**
- * The ID of the user who updated this list item
- */
- updatedBy?: string;
- /**
- * The ID of the parent list item if this list item is nested
- */
- parentListItemId?: string;
- /**
- * The ISO 8601 timestamp that the list item was completed at
- */
- completedAt?: string;
- /**
- * The ID of the user who completed this list item
- */
- completedBy?: string;
- note?: {
- /**
- * The ISO 8601 timestamp that the note was created at. If this field is populated, then there's a note associated with the list item
- */
- createdAt: string;
- /**
- * The ID of the user who created this note
- */
- createdBy: string;
- /**
- * The ISO 8601 timestamp that the note was updated at, if relevant
- */
- updatedAt?: string;
- /**
- * The ID of the user who updated this note
- */
- updatedBy?: string;
- };
+ /**
+ * The ID of the list item
+ */
+ id: string;
+ /**
+ * The ID of the server
+ */
+ serverId: string;
+ /**
+ * The ID of the channel
+ */
+ channelId: string;
+ /**
+ * The message of the list item
+ */
+ message: string;
+ mentions?: Mentions;
+ /**
+ * The ISO 8601 timestamp that the list item was created at
+ */
+ createdAt: string;
+ /**
+ * The ID of the user who created this list item (Note: If this event has `createdByWebhookId` present, this field will still be populated, but can be ignored. In this case, the value of this field will always be Ann6LewA)
+ */
+ createdBy: string;
+ /**
+ * The ID of the webhook who created this list item, if it was created by a webhook
+ */
+ createdByWebhookId?: string;
+ /**
+ * The ISO 8601 timestamp that the list item was updated at, if relevant
+ */
+ updatedAt?: string;
+ /**
+ * The ID of the user who updated this list item
+ */
+ updatedBy?: string;
+ /**
+ * The ID of the parent list item if this list item is nested
+ */
+ parentListItemId?: string;
+ /**
+ * The ISO 8601 timestamp that the list item was completed at
+ */
+ completedAt?: string;
+ /**
+ * The ID of the user who completed this list item
+ */
+ completedBy?: string;
+ note?: {
+ /**
+ * The ISO 8601 timestamp that the note was created at. If this field is populated, then there's a note associated with the list item
+ */
+ createdAt: string;
+ /**
+ * The ID of the user who created this note
+ */
+ createdBy: string;
+ /**
+ * The ISO 8601 timestamp that the note was updated at, if relevant
+ */
+ updatedAt?: string;
+ /**
+ * The ID of the user who updated this note
+ */
+ updatedBy?: string;
+ };
};
diff --git a/packages/api/lib/generated/router/models/Mentions.ts b/packages/api/lib/generated/router/models/Mentions.ts
index 3968a3aa..957678d0 100644
--- a/packages/api/lib/generated/router/models/Mentions.ts
+++ b/packages/api/lib/generated/router/models/Mentions.ts
@@ -7,39 +7,39 @@
* Metadata of who or what is mentioned in content
*/
export type Mentions = {
- /**
- * Info on mentioned users
- */
- users?: Array<{
- /**
- * The ID of the user
- */
- id: string;
- }>;
- /**
- * Info on mentioned channels
- */
- channels?: Array<{
- /**
- * The ID of the channel
- */
- id: string;
- }>;
- /**
- * Info on mentioned roles
- */
- roles?: Array<{
- /**
- * The ID of the role
- */
- id: number;
- }>;
- /**
- * If @everyone was mentioned
- */
- everyone?: boolean;
- /**
- * If @here was mentioned
- */
- here?: boolean;
+ /**
+ * Info on mentioned users
+ */
+ users?: Array<{
+ /**
+ * The ID of the user
+ */
+ id: string;
+ }>;
+ /**
+ * Info on mentioned channels
+ */
+ channels?: Array<{
+ /**
+ * The ID of the channel
+ */
+ id: string;
+ }>;
+ /**
+ * Info on mentioned roles
+ */
+ roles?: Array<{
+ /**
+ * The ID of the role
+ */
+ id: number;
+ }>;
+ /**
+ * If @everyone was mentioned
+ */
+ everyone?: boolean;
+ /**
+ * If @here was mentioned
+ */
+ here?: boolean;
};
diff --git a/packages/api/lib/generated/router/models/Role.ts b/packages/api/lib/generated/router/models/Role.ts
index 78bbd9f9..71f9f6cc 100644
--- a/packages/api/lib/generated/router/models/Role.ts
+++ b/packages/api/lib/generated/router/models/Role.ts
@@ -4,60 +4,60 @@
/* eslint-disable */
export type Role = {
- /**
- * The ID of the role
- */
- id: number;
- /**
- * The ID of the server
- */
- serverId: string;
- /**
- * The ISO 8601 timestamp that the role was created at
- */
- createdAt: string;
- /**
- * The ISO 8601 timestamp that the role was updated at, if relevant
- */
- updatedAt?: string;
- /**
- * The role's name
- */
- name: string;
- /**
- * If set, the role will be displayed separately in the channel member list
- */
- isDisplayedSeparately?: boolean;
- /**
- * If set, this roll will be self assigned
- */
- isSelfAssignable?: boolean;
- /**
- * If set, this role can be mentioned
- */
- isMentionable?: boolean;
- /**
- * Permissions must be a collection of valid permissions as defined in the [Enums/Permissions](https://www.guilded.gg/docs/api/Permissions) section
- */
- permissions: Array;
- /**
- * An array of integer values corresponding to the decimal RGB representation for a color. The first color is solid, and a second color indicates a gradient
- */
- colors?: Array;
- /**
- * The URL of the role icon
- */
- icon?: string;
- /**
- * The position the role will be in relation to the roles in the server
- */
- position: number;
- /**
- * The default role users are given when joining the server. Base roles are tied directly to the server and cannot be created or deleted
- */
- isBase?: boolean;
- /**
- * The bot user ID this role has been defined for. Roles with this populated can only be deleted by kicking the bot
- */
- botUserId?: string;
+ /**
+ * The ID of the role
+ */
+ id: number;
+ /**
+ * The ID of the server
+ */
+ serverId: string;
+ /**
+ * The ISO 8601 timestamp that the role was created at
+ */
+ createdAt: string;
+ /**
+ * The ISO 8601 timestamp that the role was updated at, if relevant
+ */
+ updatedAt?: string;
+ /**
+ * The role's name
+ */
+ name: string;
+ /**
+ * If set, the role will be displayed separately in the channel member list
+ */
+ isDisplayedSeparately?: boolean;
+ /**
+ * If set, this roll will be self assigned
+ */
+ isSelfAssignable?: boolean;
+ /**
+ * If set, this role can be mentioned
+ */
+ isMentionable?: boolean;
+ /**
+ * Permissions must be a collection of valid permissions as defined in the [Enums/Permissions](https://www.guilded.gg/docs/api/Permissions) section
+ */
+ permissions: Array;
+ /**
+ * An array of integer values corresponding to the decimal RGB representation for a color. The first color is solid, and a second color indicates a gradient
+ */
+ colors?: Array;
+ /**
+ * The URL of the role icon
+ */
+ icon?: string;
+ /**
+ * The position the role will be in relation to the roles in the server
+ */
+ position: number;
+ /**
+ * The default role users are given when joining the server. Base roles are tied directly to the server and cannot be created or deleted
+ */
+ isBase?: boolean;
+ /**
+ * The bot user ID this role has been defined for. Roles with this populated can only be deleted by kicking the bot
+ */
+ botUserId?: string;
};
diff --git a/packages/api/lib/generated/router/models/Server.ts b/packages/api/lib/generated/router/models/Server.ts
index 17853fd4..15fe96a5 100644
--- a/packages/api/lib/generated/router/models/Server.ts
+++ b/packages/api/lib/generated/router/models/Server.ts
@@ -4,52 +4,60 @@
/* eslint-disable */
export type Server = {
- /**
- * The ID of the server
- */
- id: string;
- /**
- * The ID of the user who created this server
- */
- ownerId: string;
- /**
- * The type of server designated from the server's settings page
- */
- type?: "team" | "organization" | "community" | "clan" | "guild" | "friends" | "streaming" | "other";
- /**
- * The name given to the server
- */
- name: string;
- /**
- * The URL that the server can be accessible from. For example, a value of "Guilded-Official" means the server can be accessible from https://www.guilded.gg/Guilded-Official
- */
- url?: string;
- /**
- * The description associated with the server
- */
- about?: string;
- /**
- * The avatar image associated with the server
- */
- avatar?: string;
- /**
- * The banner image associated with the server
- */
- banner?: string;
- /**
- * The timezone associated with the server
- */
- timezone?: string;
- /**
- * The verified status of the server
- */
- isVerified?: boolean;
- /**
- * The channel ID of the default channel of the server. This channel is defined as the first chat or voice channel in the left sidebar of a server in our UI. This channel is useful for sending welcome messages, though note that a bot may not have permissions to interact with this channel depending on how the server is configured.
- */
- defaultChannelId?: string;
- /**
- * The ISO 8601 timestamp that the server was created at
- */
- createdAt: string;
+ /**
+ * The ID of the server
+ */
+ id: string;
+ /**
+ * The ID of the user who created this server
+ */
+ ownerId: string;
+ /**
+ * The type of server designated from the server's settings page
+ */
+ type?:
+ | "team"
+ | "organization"
+ | "community"
+ | "clan"
+ | "guild"
+ | "friends"
+ | "streaming"
+ | "other";
+ /**
+ * The name given to the server
+ */
+ name: string;
+ /**
+ * The URL that the server can be accessible from. For example, a value of "Guilded-Official" means the server can be accessible from https://www.guilded.gg/Guilded-Official
+ */
+ url?: string;
+ /**
+ * The description associated with the server
+ */
+ about?: string;
+ /**
+ * The avatar image associated with the server
+ */
+ avatar?: string;
+ /**
+ * The banner image associated with the server
+ */
+ banner?: string;
+ /**
+ * The timezone associated with the server
+ */
+ timezone?: string;
+ /**
+ * The verified status of the server
+ */
+ isVerified?: boolean;
+ /**
+ * The channel ID of the default channel of the server. This channel is defined as the first chat or voice channel in the left sidebar of a server in our UI. This channel is useful for sending welcome messages, though note that a bot may not have permissions to interact with this channel depending on how the server is configured.
+ */
+ defaultChannelId?: string;
+ /**
+ * The ISO 8601 timestamp that the server was created at
+ */
+ createdAt: string;
};
diff --git a/packages/api/lib/generated/router/models/ServerChannel.ts b/packages/api/lib/generated/router/models/ServerChannel.ts
index 1751d68d..1d10e8c7 100644
--- a/packages/api/lib/generated/router/models/ServerChannel.ts
+++ b/packages/api/lib/generated/router/models/ServerChannel.ts
@@ -4,72 +4,85 @@
/* eslint-disable */
export type ServerChannel = {
- /**
- * The ID of the channel
- */
- id: string;
- /**
- * The type of channel. This will determine what routes to use for creating content in a channel. For example, if this "chat", then one must use the routes for creating channel messages
- */
- type: "announcements" | "chat" | "calendar" | "forums" | "media" | "docs" | "voice" | "list" | "scheduling" | "stream";
- /**
- * The name of the channel
- */
- name: string;
- /**
- * The topic of the channel. Not applicable to threads
- */
- topic?: string;
- /**
- * The ISO 8601 timestamp that the channel was created at
- */
- createdAt: string;
- /**
- * The ID of the user who created this channel
- */
- createdBy: string;
- /**
- * The ISO 8601 timestamp that the channel was updated at, if relevant
- */
- updatedAt?: string;
- /**
- * The ID of the server
- */
- serverId: string;
- /**
- * ID of the **root** channel or thread in the channel hierarchy. Only applicable to "chat", "voice", and "stream" channels and indicates that this channel is a thread, if present
- */
- rootId?: string;
- /**
- * ID of the **immediate** parent channel or thread in the channel hierarchy. Only applicable to "chat", "voice", and "stream" channels and indicates that this channel is a thread, if present
- */
- parentId?: string;
- /**
- * The ID of the message that this channel was created off of. Only applicable to "chat", "voice", and "stream" channels and indicates that this channel is a thread, if present
- */
- messageId?: string;
- /**
- * The category that the channel exists in. Only relevant for server channels
- */
- categoryId?: number;
- /**
- * The ID of the group
- */
- groupId: string;
- /**
- * What users can access the channel. Only applicable to server channels. If not present, this channel will respect normal permissions. `public` is accessible to everyone, even those who aren't of the server. `private` is only accessible to explicitly mentioned users. Currently, threads cannot be `public` and other channels cannot be `private`. Additionally, `private` threads can only exist with an associated `messageId` that is for a private message
- */
- visibility?: "private" | "public" | null;
- /**
- * [DEPRECATED - use `visibility` instead] Whether the channel can be accessed from users who are not member of the server. Not applicable to threads
- */
- isPublic?: boolean;
- /**
- * The ID of the user who archived this channel
- */
- archivedBy?: string;
- /**
- * The ISO 8601 timestamp that the channel was archived at, if relevant
- */
- archivedAt?: string;
+ /**
+ * The ID of the channel
+ */
+ id: string;
+ /**
+ * The type of channel. This will determine what routes to use for creating content in a channel. For example, if this "chat", then one must use the routes for creating channel messages
+ */
+ type:
+ | "announcements"
+ | "chat"
+ | "calendar"
+ | "forums"
+ | "media"
+ | "docs"
+ | "voice"
+ | "list"
+ | "scheduling"
+ | "stream";
+ /**
+ * The name of the channel
+ */
+ name: string;
+ /**
+ * The topic of the channel. Not applicable to threads
+ */
+ topic?: string;
+ /**
+ * The ISO 8601 timestamp that the channel was created at
+ */
+ createdAt: string;
+ /**
+ * The ID of the user who created this channel
+ */
+ createdBy: string;
+ /**
+ * The ISO 8601 timestamp that the channel was updated at, if relevant
+ */
+ updatedAt?: string;
+ /**
+ * The ID of the server
+ */
+ serverId: string;
+ /**
+ * ID of the **root** channel or thread in the channel hierarchy. Only applicable to "chat", "voice", and "stream" channels and indicates that this channel is a thread, if present
+ */
+ rootId?: string;
+ /**
+ * ID of the **immediate** parent channel or thread in the channel hierarchy. Only applicable to "chat", "voice", and "stream" channels and indicates that this channel is a thread, if present
+ */
+ parentId?: string;
+ /**
+ * The ID of the message that this channel was created off of. Only applicable to "chat", "voice", and "stream" channels and indicates that this channel is a thread, if present
+ */
+ messageId?: string;
+ /**
+ * The category that the channel exists in. Only relevant for server channels
+ */
+ categoryId?: number;
+ /**
+ * The ID of the group
+ */
+ groupId: string;
+ /**
+ * What users can access the channel. Only applicable to server channels. If not present, this channel will respect normal permissions. `public` is accessible to everyone, even those who aren't of the server. `private` is only accessible to explicitly mentioned users. Currently, threads cannot be `public` and other channels cannot be `private`. Additionally, `private` threads can only exist with an associated `messageId` that is for a private message
+ */
+ visibility?:
+ | "private"
+ | "public"
+ | null;
+ /**
+ * [DEPRECATED - use `visibility` instead] Whether the channel can be accessed from users who are not member of the server. Not applicable to threads
+ */
+ isPublic?: boolean;
+ /**
+ * The ID of the user who archived this channel
+ */
+ archivedBy?: string;
+ /**
+ * The ISO 8601 timestamp that the channel was archived at, if relevant
+ */
+ archivedAt?: string;
};
diff --git a/packages/api/lib/generated/router/models/ServerMember.ts b/packages/api/lib/generated/router/models/ServerMember.ts
index a48655f4..a4d28c05 100644
--- a/packages/api/lib/generated/router/models/ServerMember.ts
+++ b/packages/api/lib/generated/router/models/ServerMember.ts
@@ -6,12 +6,12 @@
import type { User } from "./User";
export type ServerMember = {
- user: User;
- roleIds: Array;
- nickname?: string;
- /**
- * The ISO 8601 timestamp that the member was created at
- */
- joinedAt: string;
- isOwner?: boolean;
+ user: User;
+ roleIds: Array;
+ nickname?: string;
+ /**
+ * The ISO 8601 timestamp that the member was created at
+ */
+ joinedAt: string;
+ isOwner?: boolean;
};
diff --git a/packages/api/lib/generated/router/models/ServerMemberBan.ts b/packages/api/lib/generated/router/models/ServerMemberBan.ts
index d30d8972..38da162b 100644
--- a/packages/api/lib/generated/router/models/ServerMemberBan.ts
+++ b/packages/api/lib/generated/router/models/ServerMemberBan.ts
@@ -6,17 +6,17 @@
import type { UserSummary } from "./UserSummary";
export type ServerMemberBan = {
- user: UserSummary;
- /**
- * The reason for the ban as submitted by the banner
- */
- reason?: string;
- /**
- * The ID of the user who created this server member ban
- */
- createdBy: string;
- /**
- * The ISO 8601 timestamp that the server member ban was created at
- */
- createdAt: string;
+ user: UserSummary;
+ /**
+ * The reason for the ban as submitted by the banner
+ */
+ reason?: string;
+ /**
+ * The ID of the user who created this server member ban
+ */
+ createdBy: string;
+ /**
+ * The ISO 8601 timestamp that the server member ban was created at
+ */
+ createdAt: string;
};
diff --git a/packages/api/lib/generated/router/models/ServerMemberPermissions.ts b/packages/api/lib/generated/router/models/ServerMemberPermissions.ts
index 8ad8072e..52be42fe 100644
--- a/packages/api/lib/generated/router/models/ServerMemberPermissions.ts
+++ b/packages/api/lib/generated/router/models/ServerMemberPermissions.ts
@@ -4,8 +4,8 @@
/* eslint-disable */
export type ServerMemberPermissions = {
- /**
- * Permissions must be a collection of valid permissions as defined in the [Enums/Permissions](https://www.guilded.gg/docs/api/Permissions) section
- */
- permissions: Array;
+ /**
+ * Permissions must be a collection of valid permissions as defined in the [Enums/Permissions](https://www.guilded.gg/docs/api/Permissions) section
+ */
+ permissions: Array;
};
diff --git a/packages/api/lib/generated/router/models/ServerMemberSummary.ts b/packages/api/lib/generated/router/models/ServerMemberSummary.ts
index 6aa086ce..b2ba99a7 100644
--- a/packages/api/lib/generated/router/models/ServerMemberSummary.ts
+++ b/packages/api/lib/generated/router/models/ServerMemberSummary.ts
@@ -6,6 +6,6 @@
import type { UserSummary } from "./UserSummary";
export type ServerMemberSummary = {
- user: UserSummary;
- roleIds: Array;
+ user: UserSummary;
+ roleIds: Array;
};
diff --git a/packages/api/lib/generated/router/models/ServerSubscriptionTier.ts b/packages/api/lib/generated/router/models/ServerSubscriptionTier.ts
index 39eb3293..5a8f73c5 100644
--- a/packages/api/lib/generated/router/models/ServerSubscriptionTier.ts
+++ b/packages/api/lib/generated/router/models/ServerSubscriptionTier.ts
@@ -4,28 +4,31 @@
/* eslint-disable */
export type ServerSubscriptionTier = {
- /**
- * The type of the server subscription tier. This field is case sensitive!!
- */
- type: "Gold" | "Silver" | "Copper";
- /**
- * The ID of the server
- */
- serverId: string;
- /**
- * The description associated with the server subscription tier
- */
- description?: string;
- /**
- * The ID of the role
- */
- roleId?: number;
- /**
- * The cost of the tier in cents USD per month
- */
- cost: number;
- /**
- * The ISO 8601 timestamp that the server subscription tier was created at
- */
- createdAt: string;
+ /**
+ * The type of the server subscription tier. This field is case sensitive!!
+ */
+ type:
+ | "Gold"
+ | "Silver"
+ | "Copper";
+ /**
+ * The ID of the server
+ */
+ serverId: string;
+ /**
+ * The description associated with the server subscription tier
+ */
+ description?: string;
+ /**
+ * The ID of the role
+ */
+ roleId?: number;
+ /**
+ * The cost of the tier in cents USD per month
+ */
+ cost: number;
+ /**
+ * The ISO 8601 timestamp that the server subscription tier was created at
+ */
+ createdAt: string;
};
diff --git a/packages/api/lib/generated/router/models/SocialLink.ts b/packages/api/lib/generated/router/models/SocialLink.ts
index 81dc4a1f..e0a5c0b3 100644
--- a/packages/api/lib/generated/router/models/SocialLink.ts
+++ b/packages/api/lib/generated/router/models/SocialLink.ts
@@ -4,24 +4,37 @@
/* eslint-disable */
export type SocialLink = {
- /**
- * The type of social link that Guilded supports. Depending on this value, `handle` or `serviceId` may or may not be present
- */
- type: "twitch" | "bnet" | "psn" | "xbox" | "steam" | "origin" | "youtube" | "twitter" | "facebook" | "switch" | "patreon" | "roblox" | "epic";
- /**
- * The ID of the user that the social link is associated with
- */
- userId: string;
- /**
- * The handle of the user within the external service
- */
- handle?: string;
- /**
- * The unique ID that represents this member's social link within the external service
- */
- serviceId?: string;
- /**
- * The ISO 8601 timestamp that the social link was created at
- */
- createdAt: string;
+ /**
+ * The type of social link that Guilded supports. Depending on this value, `handle` or `serviceId` may or may not be present
+ */
+ type:
+ | "twitch"
+ | "bnet"
+ | "psn"
+ | "xbox"
+ | "steam"
+ | "origin"
+ | "youtube"
+ | "twitter"
+ | "facebook"
+ | "switch"
+ | "patreon"
+ | "roblox"
+ | "epic";
+ /**
+ * The ID of the user that the social link is associated with
+ */
+ userId: string;
+ /**
+ * The handle of the user within the external service
+ */
+ handle?: string;
+ /**
+ * The unique ID that represents this member's social link within the external service
+ */
+ serviceId?: string;
+ /**
+ * The ISO 8601 timestamp that the social link was created at
+ */
+ createdAt: string;
};
diff --git a/packages/api/lib/generated/router/models/User.ts b/packages/api/lib/generated/router/models/User.ts
index da5e1b1a..602a0daa 100644
--- a/packages/api/lib/generated/router/models/User.ts
+++ b/packages/api/lib/generated/router/models/User.ts
@@ -6,29 +6,31 @@
import type { UserStatus } from "./UserStatus";
export type User = {
- /**
- * The ID of the user
- */
- id: string;
- /**
- * The type of user. If this property is absent, it can assumed to be of type `user`
- */
- type?: "bot" | "user";
- /**
- * The user's name
- */
- name: string;
- /**
- * The avatar image associated with the user
- */
- avatar?: string;
- /**
- * The banner image associated with the user
- */
- banner?: string;
- /**
- * The ISO 8601 timestamp that the user was created at
- */
- createdAt: string;
- status?: UserStatus;
+ /**
+ * The ID of the user
+ */
+ id: string;
+ /**
+ * The type of user. If this property is absent, it can assumed to be of type `user`
+ */
+ type?:
+ | "bot"
+ | "user";
+ /**
+ * The user's name
+ */
+ name: string;
+ /**
+ * The avatar image associated with the user
+ */
+ avatar?: string;
+ /**
+ * The banner image associated with the user
+ */
+ banner?: string;
+ /**
+ * The ISO 8601 timestamp that the user was created at
+ */
+ createdAt: string;
+ status?: UserStatus;
};
diff --git a/packages/api/lib/generated/router/models/UserStatus.ts b/packages/api/lib/generated/router/models/UserStatus.ts
index 15a39f2c..262167bc 100644
--- a/packages/api/lib/generated/router/models/UserStatus.ts
+++ b/packages/api/lib/generated/router/models/UserStatus.ts
@@ -4,12 +4,12 @@
/* eslint-disable */
export type UserStatus = {
- /**
- * The content of the user status. The supported markdown for this content only includes reactions and plaintext for now
- */
- content?: string;
- /**
- * Emote ID
- */
- emoteId: number;
+ /**
+ * The content of the user status. The supported markdown for this content only includes reactions and plaintext for now
+ */
+ content?: string;
+ /**
+ * Emote ID
+ */
+ emoteId: number;
};
diff --git a/packages/api/lib/generated/router/models/UserSummary.ts b/packages/api/lib/generated/router/models/UserSummary.ts
index 064d927e..2bebb335 100644
--- a/packages/api/lib/generated/router/models/UserSummary.ts
+++ b/packages/api/lib/generated/router/models/UserSummary.ts
@@ -4,20 +4,22 @@
/* eslint-disable */
export type UserSummary = {
- /**
- * The ID of the user
- */
- id: string;
- /**
- * The type of user. If this property is absent, it can assumed to be of type `user`
- */
- type?: "bot" | "user";
- /**
- * The user's name
- */
- name: string;
- /**
- * The avatar image associated with the user
- */
- avatar?: string;
+ /**
+ * The ID of the user
+ */
+ id: string;
+ /**
+ * The type of user. If this property is absent, it can assumed to be of type `user`
+ */
+ type?:
+ | "bot"
+ | "user";
+ /**
+ * The user's name
+ */
+ name: string;
+ /**
+ * The avatar image associated with the user
+ */
+ avatar?: string;
};
diff --git a/packages/api/lib/generated/router/models/Webhook.ts b/packages/api/lib/generated/router/models/Webhook.ts
index 577c2bbc..0df1b144 100644
--- a/packages/api/lib/generated/router/models/Webhook.ts
+++ b/packages/api/lib/generated/router/models/Webhook.ts
@@ -4,40 +4,40 @@
/* eslint-disable */
export type Webhook = {
- /**
- * The ID of the webhook
- */
- id: string;
- /**
- * The name of the webhook
- */
- name: string;
- /**
- * The avatar image associated with the webhook
- */
- avatar?: string;
- /**
- * The ID of the server
- */
- serverId: string;
- /**
- * The ID of the channel
- */
- channelId: string;
- /**
- * The ISO 8601 timestamp that the webhook was created at
- */
- createdAt: string;
- /**
- * The ID of the user who created this webhook
- */
- createdBy: string;
- /**
- * The ISO 8601 timestamp that the webhook was deleted at
- */
- deletedAt?: string;
- /**
- * The token of the webhook
- */
- token?: string;
+ /**
+ * The ID of the webhook
+ */
+ id: string;
+ /**
+ * The name of the webhook
+ */
+ name: string;
+ /**
+ * The avatar image associated with the webhook
+ */
+ avatar?: string;
+ /**
+ * The ID of the server
+ */
+ serverId: string;
+ /**
+ * The ID of the channel
+ */
+ channelId: string;
+ /**
+ * The ISO 8601 timestamp that the webhook was created at
+ */
+ createdAt: string;
+ /**
+ * The ID of the user who created this webhook
+ */
+ createdBy: string;
+ /**
+ * The ISO 8601 timestamp that the webhook was deleted at
+ */
+ deletedAt?: string;
+ /**
+ * The token of the webhook
+ */
+ token?: string;
};
diff --git a/packages/api/lib/generated/router/services/AnnouncementCommentsService.ts b/packages/api/lib/generated/router/services/AnnouncementCommentsService.ts
index 5e557be4..5a421914 100644
--- a/packages/api/lib/generated/router/services/AnnouncementCommentsService.ts
+++ b/packages/api/lib/generated/router/services/AnnouncementCommentsService.ts
@@ -4,132 +4,166 @@
/* eslint-disable */
import type { AnnouncementComment } from "../models/AnnouncementComment";
-import type { CancelablePromise } from "../core/CancelablePromise";
import type { BaseHttpRequest } from "../core/BaseHttpRequest";
+import type { CancelablePromise } from "../core/CancelablePromise";
export class AnnouncementCommentsService {
- constructor(public readonly httpRequest: BaseHttpRequest) {}
+ constructor(
+ public readonly httpRequest: BaseHttpRequest,
+ ) {}
- /**
- * Create a comment on an announcement
- * @returns any Success
- * @throws ApiError
- */
- public announcementCommentCreate({
- channelId,
- announcementId,
- requestBody,
- }: {
- channelId: string;
- announcementId: string;
- requestBody: {
- /**
- * The content of the announcement comment
- */
- content: string;
- };
- }): CancelablePromise<{
- announcementComment: AnnouncementComment;
- }> {
- return this.httpRequest.request({
- method: "POST",
- url: "/channels/{channelId}/announcements/{announcementId}/comments",
- path: {
- channelId: channelId,
- announcementId: announcementId,
- },
- body: requestBody,
- mediaType: "application/json",
- });
- }
+ /**
+ * Create a comment on an announcement
+ * @returns any Success
+ * @throws ApiError
+ */
+ public announcementCommentCreate({
+ channelId,
+ announcementId,
+ requestBody,
+ }: {
+ channelId: string;
+ announcementId: string;
+ requestBody: {
+ /**
+ * The content of the announcement comment
+ */
+ content: string;
+ };
+ }): CancelablePromise<{
+ announcementComment: AnnouncementComment;
+ }> {
+ return this.httpRequest.request(
+ {
+ method: "POST",
+ url: "/channels/{channelId}/announcements/{announcementId}/comments",
+ path: {
+ channelId: channelId,
+ announcementId: announcementId,
+ },
+ body: requestBody,
+ mediaType: "application/json",
+ },
+ );
+ }
- /**
- * Get an announcement's comments
- * @returns any Success
- * @throws ApiError
- */
- public announcementCommentReadMany({ channelId, announcementId }: { channelId: string; announcementId: string }): CancelablePromise<{
- announcementComments: Array;
- }> {
- return this.httpRequest.request({
- method: "GET",
- url: "/channels/{channelId}/announcements/{announcementId}/comments",
- path: {
- channelId: channelId,
- announcementId: announcementId,
- },
- });
- }
+ /**
+ * Get an announcement's comments
+ * @returns any Success
+ * @throws ApiError
+ */
+ public announcementCommentReadMany({
+ channelId,
+ announcementId,
+ }: {
+ channelId: string;
+ announcementId: string;
+ }): CancelablePromise<{
+ announcementComments: Array;
+ }> {
+ return this.httpRequest.request(
+ {
+ method: "GET",
+ url: "/channels/{channelId}/announcements/{announcementId}/comments",
+ path: {
+ channelId: channelId,
+ announcementId: announcementId,
+ },
+ },
+ );
+ }
- /**
- * Get a comment on the announcement
- * @returns any Success
- * @throws ApiError
- */
- public announcementCommentRead({ channelId, announcementId, announcementCommentId }: { channelId: string; announcementId: string; announcementCommentId: number }): CancelablePromise<{
- announcementComment: AnnouncementComment;
- }> {
- return this.httpRequest.request({
- method: "GET",
- url: "/channels/{channelId}/announcements/{announcementId}/comments/{announcementCommentId}",
- path: {
- channelId: channelId,
- announcementId: announcementId,
- announcementCommentId: announcementCommentId,
- },
- });
- }
+ /**
+ * Get a comment on the announcement
+ * @returns any Success
+ * @throws ApiError
+ */
+ public announcementCommentRead({
+ channelId,
+ announcementId,
+ announcementCommentId,
+ }: {
+ channelId: string;
+ announcementId: string;
+ announcementCommentId: number;
+ }): CancelablePromise<{
+ announcementComment: AnnouncementComment;
+ }> {
+ return this.httpRequest.request(
+ {
+ method: "GET",
+ url: "/channels/{channelId}/announcements/{announcementId}/comments/{announcementCommentId}",
+ path: {
+ channelId: channelId,
+ announcementId: announcementId,
+ announcementCommentId: announcementCommentId,
+ },
+ },
+ );
+ }
- /**
- * Update an announcement comment
- * @returns any Success
- * @throws ApiError
- */
- public announcementCommentUpdate({
- channelId,
- announcementId,
- announcementCommentId,
- requestBody,
- }: {
- channelId: string;
- announcementId: string;
- announcementCommentId: number;
- requestBody: {
- /**
- * The content of the announcement comment
- */
- content: string;
- };
- }): CancelablePromise<{
- announcementComment: AnnouncementComment;
- }> {
- return this.httpRequest.request({
- method: "PATCH",
- url: "/channels/{channelId}/announcements/{announcementId}/comments/{announcementCommentId}",
- path: {
- channelId: channelId,
- announcementId: announcementId,
- announcementCommentId: announcementCommentId,
- },
- body: requestBody,
- mediaType: "application/json",
- });
- }
+ /**
+ * Update an announcement comment
+ * @returns any Success
+ * @throws ApiError
+ */
+ public announcementCommentUpdate({
+ channelId,
+ announcementId,
+ announcementCommentId,
+ requestBody,
+ }: {
+ channelId: string;
+ announcementId: string;
+ announcementCommentId: number;
+ requestBody: {
+ /**
+ * The content of the announcement comment
+ */
+ content: string;
+ };
+ }): CancelablePromise<{
+ announcementComment: AnnouncementComment;
+ }> {
+ return this.httpRequest.request(
+ {
+ method: "PATCH",
+ url: "/channels/{channelId}/announcements/{announcementId}/comments/{announcementCommentId}",
+ path: {
+ channelId: channelId,
+ announcementId: announcementId,
+ announcementCommentId: announcementCommentId,
+ },
+ body: requestBody,
+ mediaType: "application/json",
+ },
+ );
+ }
- /**
- * Delete an announcement comment
- * @returns void
- * @throws ApiError
- */
- public announcementCommentDelete({ channelId, announcementId, announcementCommentId }: { channelId: string; announcementId: string; announcementCommentId: number }): CancelablePromise {
- return this.httpRequest.request({
- method: "DELETE",
- url: "/channels/{channelId}/announcements/{announcementId}/comments/{announcementCommentId}",
- path: {
- channelId: channelId,
- announcementId: announcementId,
- announcementCommentId: announcementCommentId,
- },
- });
- }
+ /**
+ * Delete an announcement comment
+ * @returns void
+ * @throws ApiError
+ */
+ public announcementCommentDelete({
+ channelId,
+ announcementId,
+ announcementCommentId,
+ }: {
+ channelId: string;
+ announcementId: string;
+ announcementCommentId: number;
+ }): CancelablePromise {
+ return this.httpRequest.request(
+ {
+ method: "DELETE",
+ url: "/channels/{channelId}/announcements/{announcementId}/comments/{announcementCommentId}",
+ path: {
+ channelId: channelId,
+ announcementId: announcementId,
+ announcementCommentId: announcementCommentId,
+ },
+ },
+ );
+ }
}
diff --git a/packages/api/lib/generated/router/services/AnnouncementsService.ts b/packages/api/lib/generated/router/services/AnnouncementsService.ts
index faf3c9b1..714b0ba1 100644
--- a/packages/api/lib/generated/router/services/AnnouncementsService.ts
+++ b/packages/api/lib/generated/router/services/AnnouncementsService.ts
@@ -4,136 +4,178 @@
/* eslint-disable */
import type { Announcement } from "../models/Announcement";
-import type { CancelablePromise } from "../core/CancelablePromise";
import type { BaseHttpRequest } from "../core/BaseHttpRequest";
+import type { CancelablePromise } from "../core/CancelablePromise";
export class AnnouncementsService {
- constructor(public readonly httpRequest: BaseHttpRequest) {}
+ constructor(
+ public readonly httpRequest: BaseHttpRequest,
+ ) {}
- /**
- * Create an announcement
- * @returns any Success
- * @throws ApiError
- */
- public announcementCreate({
- channelId,
- requestBody,
- }: {
- channelId: string;
- requestBody: {
- /**
- * The title of the announcement
- */
- title: string;
- /**
- * The content of the announcement
- */
- content: Record | string;
- };
- }): CancelablePromise<{
- announcement: Announcement;
- }> {
- return this.httpRequest.request({
- method: "POST",
- url: "/channels/{channelId}/announcements",
- path: {
- channelId: channelId,
- },
- body: requestBody,
- mediaType: "application/json",
- });
- }
+ /**
+ * Create an announcement
+ * @returns any Success
+ * @throws ApiError
+ */
+ public announcementCreate({
+ channelId,
+ requestBody,
+ }: {
+ channelId: string;
+ requestBody: {
+ /**
+ * The title of the announcement
+ */
+ title: string;
+ /**
+ * The content of the announcement
+ */
+ content:
+ | Record<
+ string,
+ any
+ >
+ | string;
+ };
+ }): CancelablePromise<{
+ announcement: Announcement;
+ }> {
+ return this.httpRequest.request(
+ {
+ method: "POST",
+ url: "/channels/{channelId}/announcements",
+ path: {
+ channelId: channelId,
+ },
+ body: requestBody,
+ mediaType: "application/json",
+ },
+ );
+ }
- /**
- * Get announcements
- * Results returned will be ordered ascending by the announcement's `createdAt`. `before` will filter based on the announcement's `createdAt`
- * @returns any Success
- * @throws ApiError
- */
- public announcementReadMany({ channelId, before, limit = 25 }: { channelId: string; before?: string; limit?: number }): CancelablePromise<{
- announcements: Array;
- }> {
- return this.httpRequest.request({
- method: "GET",
- url: "/channels/{channelId}/announcements",
- path: {
- channelId: channelId,
- },
- query: {
- before: before,
- limit: limit,
- },
- });
- }
+ /**
+ * Get announcements
+ * Results returned will be ordered ascending by the announcement's `createdAt`. `before` will filter based on the announcement's `createdAt`
+ * @returns any Success
+ * @throws ApiError
+ */
+ public announcementReadMany({
+ channelId,
+ before,
+ limit = 25,
+ }: {
+ channelId: string;
+ before?: string;
+ limit?: number;
+ }): CancelablePromise<{
+ announcements: Array;
+ }> {
+ return this.httpRequest.request(
+ {
+ method: "GET",
+ url: "/channels/{channelId}/announcements",
+ path: {
+ channelId: channelId,
+ },
+ query: {
+ before: before,
+ limit: limit,
+ },
+ },
+ );
+ }
- /**
- * Read an announcement
- * @returns any Success
- * @throws ApiError
- */
- public announcementRead({ channelId, announcementId }: { channelId: string; announcementId: string }): CancelablePromise<{
- announcement: Announcement;
- }> {
- return this.httpRequest.request({
- method: "GET",
- url: "/channels/{channelId}/announcements/{announcementId}",
- path: {
- channelId: channelId,
- announcementId: announcementId,
- },
- });
- }
+ /**
+ * Read an announcement
+ * @returns any Success
+ * @throws ApiError
+ */
+ public announcementRead({
+ channelId,
+ announcementId,
+ }: {
+ channelId: string;
+ announcementId: string;
+ }): CancelablePromise<{
+ announcement: Announcement;
+ }> {
+ return this.httpRequest.request(
+ {
+ method: "GET",
+ url: "/channels/{channelId}/announcements/{announcementId}",
+ path: {
+ channelId: channelId,
+ announcementId: announcementId,
+ },
+ },
+ );
+ }
- /**
- * Update an announcement
- * @returns any Success
- * @throws ApiError
- */
- public announcementUpdate({
- channelId,
- announcementId,
- requestBody,
- }: {
- channelId: string;
- announcementId: string;
- requestBody: {
- /**
- * The title of the announcement
- */
- title?: string;
- /**
- * The content of the announcement
- */
- content?: Record | string;
- };
- }): CancelablePromise<{
- announcement: Announcement;
- }> {
- return this.httpRequest.request({
- method: "PATCH",
- url: "/channels/{channelId}/announcements/{announcementId}",
- path: {
- channelId: channelId,
- announcementId: announcementId,
- },
- body: requestBody,
- mediaType: "application/json",
- });
- }
+ /**
+ * Update an announcement
+ * @returns any Success
+ * @throws ApiError
+ */
+ public announcementUpdate({
+ channelId,
+ announcementId,
+ requestBody,
+ }: {
+ channelId: string;
+ announcementId: string;
+ requestBody: {
+ /**
+ * The title of the announcement
+ */
+ title?: string;
+ /**
+ * The content of the announcement
+ */
+ content?:
+ | Record<
+ string,
+ any
+ >
+ | string;
+ };
+ }): CancelablePromise<{
+ announcement: Announcement;
+ }> {
+ return this.httpRequest.request(
+ {
+ method: "PATCH",
+ url: "/channels/{channelId}/announcements/{announcementId}",
+ path: {
+ channelId: channelId,
+ announcementId: announcementId,
+ },
+ body: requestBody,
+ mediaType: "application/json",
+ },
+ );
+ }
- /**
- * Delete an announcement
- * @returns void
- * @throws ApiError
- */
- public announcementDelete({ channelId, announcementId }: { channelId: string; announcementId: string }): CancelablePromise {
- return this.httpRequest.request({
- method: "DELETE",
- url: "/channels/{channelId}/announcements/{announcementId}",
- path: {
- channelId: channelId,
- announcementId: announcementId,
- },
- });
- }
+ /**
+ * Delete an announcement
+ * @returns void
+ * @throws ApiError
+ */
+ public announcementDelete({
+ channelId,
+ announcementId,
+ }: {
+ channelId: string;
+ announcementId: string;
+ }): CancelablePromise {
+ return this.httpRequest.request(
+ {
+ method: "DELETE",
+ url: "/channels/{channelId}/announcements/{announcementId}",
+ path: {
+ channelId: channelId,
+ announcementId: announcementId,
+ },
+ },
+ );
+ }
}
diff --git a/packages/api/lib/generated/router/services/CalendarEventCommentsService.ts b/packages/api/lib/generated/router/services/CalendarEventCommentsService.ts
index 1476dbe9..19a39861 100644
--- a/packages/api/lib/generated/router/services/CalendarEventCommentsService.ts
+++ b/packages/api/lib/generated/router/services/CalendarEventCommentsService.ts
@@ -4,132 +4,166 @@
/* eslint-disable */
import type { CalendarEventComment } from "../models/CalendarEventComment";
-import type { CancelablePromise } from "../core/CancelablePromise";
import type { BaseHttpRequest } from "../core/BaseHttpRequest";
+import type { CancelablePromise } from "../core/CancelablePromise";
export class CalendarEventCommentsService {
- constructor(public readonly httpRequest: BaseHttpRequest) {}
+ constructor(
+ public readonly httpRequest: BaseHttpRequest,
+ ) {}
- /**
- * Create a comment on an event
- * @returns any Success
- * @throws ApiError
- */
- public calendarEventCommentCreate({
- channelId,
- calendarEventId,
- requestBody,
- }: {
- channelId: string;
- calendarEventId: number;
- requestBody: {
- /**
- * The content of the calendar event comment
- */
- content: string;
- };
- }): CancelablePromise<{
- calendarEventComment: CalendarEventComment;
- }> {
- return this.httpRequest.request({
- method: "POST",
- url: "/channels/{channelId}/events/{calendarEventId}/comments",
- path: {
- channelId: channelId,
- calendarEventId: calendarEventId,
- },
- body: requestBody,
- mediaType: "application/json",
- });
- }
+ /**
+ * Create a comment on an event
+ * @returns any Success
+ * @throws ApiError
+ */
+ public calendarEventCommentCreate({
+ channelId,
+ calendarEventId,
+ requestBody,
+ }: {
+ channelId: string;
+ calendarEventId: number;
+ requestBody: {
+ /**
+ * The content of the calendar event comment
+ */
+ content: string;
+ };
+ }): CancelablePromise<{
+ calendarEventComment: CalendarEventComment;
+ }> {
+ return this.httpRequest.request(
+ {
+ method: "POST",
+ url: "/channels/{channelId}/events/{calendarEventId}/comments",
+ path: {
+ channelId: channelId,
+ calendarEventId: calendarEventId,
+ },
+ body: requestBody,
+ mediaType: "application/json",
+ },
+ );
+ }
- /**
- * Get a calendar event's comments
- * @returns any Success
- * @throws ApiError
- */
- public calendarEventCommentReadMany({ channelId, calendarEventId }: { channelId: string; calendarEventId: number }): CancelablePromise<{
- calendarEventComments: Array;
- }> {
- return this.httpRequest.request({
- method: "GET",
- url: "/channels/{channelId}/events/{calendarEventId}/comments",
- path: {
- channelId: channelId,
- calendarEventId: calendarEventId,
- },
- });
- }
+ /**
+ * Get a calendar event's comments
+ * @returns any Success
+ * @throws ApiError
+ */
+ public calendarEventCommentReadMany({
+ channelId,
+ calendarEventId,
+ }: {
+ channelId: string;
+ calendarEventId: number;
+ }): CancelablePromise<{
+ calendarEventComments: Array;
+ }> {
+ return this.httpRequest.request(
+ {
+ method: "GET",
+ url: "/channels/{channelId}/events/{calendarEventId}/comments",
+ path: {
+ channelId: channelId,
+ calendarEventId: calendarEventId,
+ },
+ },
+ );
+ }
- /**
- * Get a comment on the calendar event
- * @returns any Success
- * @throws ApiError
- */
- public calendarEventCommentRead({ channelId, calendarEventId, calendarEventCommentId }: { channelId: string; calendarEventId: number; calendarEventCommentId: number }): CancelablePromise<{
- calendarEventComment: CalendarEventComment;
- }> {
- return this.httpRequest.request({
- method: "GET",
- url: "/channels/{channelId}/events/{calendarEventId}/comments/{calendarEventCommentId}",
- path: {
- channelId: channelId,
- calendarEventId: calendarEventId,
- calendarEventCommentId: calendarEventCommentId,
- },
- });
- }
+ /**
+ * Get a comment on the calendar event
+ * @returns any Success
+ * @throws ApiError
+ */
+ public calendarEventCommentRead({
+ channelId,
+ calendarEventId,
+ calendarEventCommentId,
+ }: {
+ channelId: string;
+ calendarEventId: number;
+ calendarEventCommentId: number;
+ }): CancelablePromise<{
+ calendarEventComment: CalendarEventComment;
+ }> {
+ return this.httpRequest.request(
+ {
+ method: "GET",
+ url: "/channels/{channelId}/events/{calendarEventId}/comments/{calendarEventCommentId}",
+ path: {
+ channelId: channelId,
+ calendarEventId: calendarEventId,
+ calendarEventCommentId: calendarEventCommentId,
+ },
+ },
+ );
+ }
- /**
- * Update a calendar event comment
- * @returns any Success
- * @throws ApiError
- */
- public calendarEventCommentUpdate({
- channelId,
- calendarEventId,
- calendarEventCommentId,
- requestBody,
- }: {
- channelId: string;
- calendarEventId: number;
- calendarEventCommentId: number;
- requestBody: {
- /**
- * The content of the calendar event comment
- */
- content: string;
- };
- }): CancelablePromise<{
- calendarEventComment: CalendarEventComment;
- }> {
- return this.httpRequest.request({
- method: "PATCH",
- url: "/channels/{channelId}/events/{calendarEventId}/comments/{calendarEventCommentId}",
- path: {
- channelId: channelId,
- calendarEventId: calendarEventId,
- calendarEventCommentId: calendarEventCommentId,
- },
- body: requestBody,
- mediaType: "application/json",
- });
- }
+ /**
+ * Update a calendar event comment
+ * @returns any Success
+ * @throws ApiError
+ */
+ public calendarEventCommentUpdate({
+ channelId,
+ calendarEventId,
+ calendarEventCommentId,
+ requestBody,
+ }: {
+ channelId: string;
+ calendarEventId: number;
+ calendarEventCommentId: number;
+ requestBody: {
+ /**
+ * The content of the calendar event comment
+ */
+ content: string;
+ };
+ }): CancelablePromise<{
+ calendarEventComment: CalendarEventComment;
+ }> {
+ return this.httpRequest.request(
+ {
+ method: "PATCH",
+ url: "/channels/{channelId}/events/{calendarEventId}/comments/{calendarEventCommentId}",
+ path: {
+ channelId: channelId,
+ calendarEventId: calendarEventId,
+ calendarEventCommentId: calendarEventCommentId,
+ },
+ body: requestBody,
+ mediaType: "application/json",
+ },
+ );
+ }
- /**
- * Delete a calendar event comment
- * @returns void
- * @throws ApiError
- */
- public calendarEventCommentDelete({ channelId, calendarEventId, calendarEventCommentId }: { channelId: string; calendarEventId: number; calendarEventCommentId: number }): CancelablePromise {
- return this.httpRequest.request({
- method: "DELETE",
- url: "/channels/{channelId}/events/{calendarEventId}/comments/{calendarEventCommentId}",
- path: {
- channelId: channelId,
- calendarEventId: calendarEventId,
- calendarEventCommentId: calendarEventCommentId,
- },
- });
- }
+ /**
+ * Delete a calendar event comment
+ * @returns void
+ * @throws ApiError
+ */
+ public calendarEventCommentDelete({
+ channelId,
+ calendarEventId,
+ calendarEventCommentId,
+ }: {
+ channelId: string;
+ calendarEventId: number;
+ calendarEventCommentId: number;
+ }): CancelablePromise {
+ return this.httpRequest.request(
+ {
+ method: "DELETE",
+ url: "/channels/{channelId}/events/{calendarEventId}/comments/{calendarEventCommentId}",
+ path: {
+ channelId: channelId,
+ calendarEventId: calendarEventId,
+ calendarEventCommentId: calendarEventCommentId,
+ },
+ },
+ );
+ }
}
diff --git a/packages/api/lib/generated/router/services/CalendarEventSeriesService.ts b/packages/api/lib/generated/router/services/CalendarEventSeriesService.ts
index ceb46165..43e7c0a9 100644
--- a/packages/api/lib/generated/router/services/CalendarEventSeriesService.ts
+++ b/packages/api/lib/generated/router/services/CalendarEventSeriesService.ts
@@ -1,152 +1,175 @@
+import type { BaseHttpRequest } from "../core/BaseHttpRequest";
/* generated using openapi-typescript-codegen -- do no edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { CancelablePromise } from "../core/CancelablePromise";
-import type { BaseHttpRequest } from "../core/BaseHttpRequest";
export class CalendarEventSeriesService {
- constructor(public readonly httpRequest: BaseHttpRequest) {}
+ constructor(
+ public readonly httpRequest: BaseHttpRequest,
+ ) {}
- /**
- * Update a calendar event series
- * @returns void
- * @throws ApiError
- */
- public calendarEventSeriesUpdate({
- channelId,
- calendarEventSeriesId,
- requestBody,
- }: {
- channelId: string;
- calendarEventSeriesId: string;
- requestBody: {
- /**
- * The name of the event
- */
- name?: string;
- /**
- * The description of the event
- */
- description?: string;
- /**
- * The location of the event
- */
- location?: string;
- /**
- * The ISO 8601 timestamp that the event starts at
- */
- startsAt?: string;
- /**
- * A URL to associate with the event
- */
- url?: string;
- /**
- * The integer value corresponds to the decimal RGB representation for the color. The color of the event when viewing in the calendar
- */
- color?: number;
- /**
- * Does the event last all day? If passed with `duration`, `duration` will only be applied if it is an interval of minutes represented in days (e.g., `duration: 2880`)
- */
- isAllDay?: boolean;
- /**
- * When disabled, users will not be able to RSVP to the event
- */
- rsvpDisabled?: boolean;
- /**
- * The number of RSVPs to allow before waitlisting RSVPs
- */
- rsvpLimit?: number;
- /**
- * When `rsvpLimit` is set, users from the waitlist will be added as space becomes available in the event
- */
- autofillWaitlist?: boolean;
- /**
- * The duration of the event _**in minutes**_
- */
- duration?: number;
- isPrivate?: boolean;
- /**
- * The role IDs to restrict the event to. Passing an empty array will clear the role IDs on the event
- */
- roleIds?: Array;
- repeatInfo?: {
- /**
- * How often you want your event to repeat (important note: this will repeat for the next 180 days unless custom is defined)
- */
- type: "once" | "everyDay" | "everyWeek" | "everyMonth" | "custom";
- /**
- * Apply further clarification to your events. This **must** have `type` set to `custom`
- */
- every?: {
- /**
- * How often between your interval the event should repeat. For example, 1 would be every interval, 2 would be every second occurrence of the interval
- */
- count: number;
- /**
- * Coupled with `count`, this indicates the time range you are repeating your event over
- */
- interval: "day" | "month" | "year" | "week";
- };
- /**
- * Used to control the end date of the event repeat (only used when `type` is `custom`; if used with `endDate`, the earliest resultant date of the two will be used)
- */
- endsAfterOccurrences?: number;
- /**
- * The ISO 8601 timestamp that the event ends at. Used to control the end date of the event repeat (only used when `type` is `custom`; if used with `endsAfterOccurrences`, the earliest resultant date of the two will be used)
- */
- endDate?: string;
- /**
- * Used to control the day of the week that the event should repeat on (only used when `type` is `custom` and when `every.interval` is `week`)
- */
- on?: Array<"sunday" | "monday" | "tuesday" | "wednesday" | "thursday" | "friday" | "saturday">;
- };
- /**
- * Control the updating of the series from the `calendarEventId` forward. If not defined, it will edit all events
- */
- calendarEventId?: number;
- };
- }): CancelablePromise {
- return this.httpRequest.request({
- method: "PATCH",
- url: "/channels/{channelId}/event_series/{calendarEventSeriesId}",
- path: {
- channelId: channelId,
- calendarEventSeriesId: calendarEventSeriesId,
- },
- body: requestBody,
- mediaType: "application/json",
- });
- }
+ /**
+ * Update a calendar event series
+ * @returns void
+ * @throws ApiError
+ */
+ public calendarEventSeriesUpdate({
+ channelId,
+ calendarEventSeriesId,
+ requestBody,
+ }: {
+ channelId: string;
+ calendarEventSeriesId: string;
+ requestBody: {
+ /**
+ * The name of the event
+ */
+ name?: string;
+ /**
+ * The description of the event
+ */
+ description?: string;
+ /**
+ * The location of the event
+ */
+ location?: string;
+ /**
+ * The ISO 8601 timestamp that the event starts at
+ */
+ startsAt?: string;
+ /**
+ * A URL to associate with the event
+ */
+ url?: string;
+ /**
+ * The integer value corresponds to the decimal RGB representation for the color. The color of the event when viewing in the calendar
+ */
+ color?: number;
+ /**
+ * Does the event last all day? If passed with `duration`, `duration` will only be applied if it is an interval of minutes represented in days (e.g., `duration: 2880`)
+ */
+ isAllDay?: boolean;
+ /**
+ * When disabled, users will not be able to RSVP to the event
+ */
+ rsvpDisabled?: boolean;
+ /**
+ * The number of RSVPs to allow before waitlisting RSVPs
+ */
+ rsvpLimit?: number;
+ /**
+ * When `rsvpLimit` is set, users from the waitlist will be added as space becomes available in the event
+ */
+ autofillWaitlist?: boolean;
+ /**
+ * The duration of the event _**in minutes**_
+ */
+ duration?: number;
+ isPrivate?: boolean;
+ /**
+ * The role IDs to restrict the event to. Passing an empty array will clear the role IDs on the event
+ */
+ roleIds?: Array;
+ repeatInfo?: {
+ /**
+ * How often you want your event to repeat (important note: this will repeat for the next 180 days unless custom is defined)
+ */
+ type:
+ | "once"
+ | "everyDay"
+ | "everyWeek"
+ | "everyMonth"
+ | "custom";
+ /**
+ * Apply further clarification to your events. This **must** have `type` set to `custom`
+ */
+ every?: {
+ /**
+ * How often between your interval the event should repeat. For example, 1 would be every interval, 2 would be every second occurrence of the interval
+ */
+ count: number;
+ /**
+ * Coupled with `count`, this indicates the time range you are repeating your event over
+ */
+ interval:
+ | "day"
+ | "month"
+ | "year"
+ | "week";
+ };
+ /**
+ * Used to control the end date of the event repeat (only used when `type` is `custom`; if used with `endDate`, the earliest resultant date of the two will be used)
+ */
+ endsAfterOccurrences?: number;
+ /**
+ * The ISO 8601 timestamp that the event ends at. Used to control the end date of the event repeat (only used when `type` is `custom`; if used with `endsAfterOccurrences`, the earliest resultant date of the two will be used)
+ */
+ endDate?: string;
+ /**
+ * Used to control the day of the week that the event should repeat on (only used when `type` is `custom` and when `every.interval` is `week`)
+ */
+ on?: Array<
+ | "sunday"
+ | "monday"
+ | "tuesday"
+ | "wednesday"
+ | "thursday"
+ | "friday"
+ | "saturday"
+ >;
+ };
+ /**
+ * Control the updating of the series from the `calendarEventId` forward. If not defined, it will edit all events
+ */
+ calendarEventId?: number;
+ };
+ }): CancelablePromise {
+ return this.httpRequest.request(
+ {
+ method: "PATCH",
+ url: "/channels/{channelId}/event_series/{calendarEventSeriesId}",
+ path: {
+ channelId: channelId,
+ calendarEventSeriesId: calendarEventSeriesId,
+ },
+ body: requestBody,
+ mediaType: "application/json",
+ },
+ );
+ }
- /**
- * Delete a calendar event series
- * @returns void
- * @throws ApiError
- */
- public calendarEventSeriesDelete({
- channelId,
- calendarEventSeriesId,
- requestBody,
- }: {
- channelId: string;
- calendarEventSeriesId: string;
- requestBody?: {
- /**
- * Control the deletion of the series from the `calendarEventId` forward. If not defined, it will delete all events
- */
- calendarEventId?: number;
- };
- }): CancelablePromise {
- return this.httpRequest.request({
- method: "DELETE",
- url: "/channels/{channelId}/event_series/{calendarEventSeriesId}",
- path: {
- channelId: channelId,
- calendarEventSeriesId: calendarEventSeriesId,
- },
- body: requestBody,
- mediaType: "application/json",
- });
- }
+ /**
+ * Delete a calendar event series
+ * @returns void
+ * @throws ApiError
+ */
+ public calendarEventSeriesDelete({
+ channelId,
+ calendarEventSeriesId,
+ requestBody,
+ }: {
+ channelId: string;
+ calendarEventSeriesId: string;
+ requestBody?: {
+ /**
+ * Control the deletion of the series from the `calendarEventId` forward. If not defined, it will delete all events
+ */
+ calendarEventId?: number;
+ };
+ }): CancelablePromise {
+ return this.httpRequest.request(
+ {
+ method: "DELETE",
+ url: "/channels/{channelId}/event_series/{calendarEventSeriesId}",
+ path: {
+ channelId: channelId,
+ calendarEventSeriesId: calendarEventSeriesId,
+ },
+ body: requestBody,
+ mediaType: "application/json",
+ },
+ );
+ }
}
diff --git a/packages/api/lib/generated/router/services/CalendarEventsService.ts b/packages/api/lib/generated/router/services/CalendarEventsService.ts
index f6827431..1fb8233d 100644
--- a/packages/api/lib/generated/router/services/CalendarEventsService.ts
+++ b/packages/api/lib/generated/router/services/CalendarEventsService.ts
@@ -5,383 +5,483 @@
import type { CalendarEvent } from "../models/CalendarEvent";
import type { CalendarEventRsvp } from "../models/CalendarEventRsvp";
-import type { CancelablePromise } from "../core/CancelablePromise";
import type { BaseHttpRequest } from "../core/BaseHttpRequest";
+import type { CancelablePromise } from "../core/CancelablePromise";
export class CalendarEventsService {
- constructor(public readonly httpRequest: BaseHttpRequest) {}
+ constructor(
+ public readonly httpRequest: BaseHttpRequest,
+ ) {}
- /**
- * Create a calendar event
- * We currently do not have a way to surface the `repeatInfo` after event series are updated. Stay tuned!
- * @returns any Success
- * @throws ApiError
- */
- public calendarEventCreate({
- channelId,
- requestBody,
- }: {
- /**
- * The calendar to create the event in
- */
- channelId: string;
- requestBody: {
- /**
- * The name of the event
- */
- name: string;
- /**
- * The description of the event
- */
- description?: string;
- /**
- * The location of the event
- */
- location?: string;
- /**
- * The ISO 8601 timestamp that the event starts at
- */
- startsAt?: string;
- /**
- * A URL to associate with the event
- */
- url?: string;
- /**
- * The integer value corresponds to the decimal RGB representation for the color. The color of the event when viewing in the calendar
- */
- color?: number;
- /**
- * Does the event last all day? If passed with `duration`, `duration` will only be applied if it is an interval of minutes represented in days (e.g., `duration: 2880`)
- */
- isAllDay?: boolean;
- /**
- * When disabled, users will not be able to RSVP to the event
- */
- rsvpDisabled?: boolean;
- /**
- * The number of RSVPs to allow before waitlisting RSVPs
- */
- rsvpLimit?: number;
- /**
- * When `rsvpLimit` is set, users from the waitlist will be added as space becomes available in the event
- */
- autofillWaitlist?: boolean;
- /**
- * The duration of the event _**in minutes**_
- */
- duration?: number;
- isPrivate?: boolean;
- /**
- * The role IDs to restrict the event to
- */
- roleIds?: Array;
- repeatInfo?: {
- /**
- * How often you want your event to repeat (important note: this will repeat for the next 180 days unless custom is defined)
- */
- type: "once" | "everyDay" | "everyWeek" | "everyMonth" | "custom";
- /**
- * Apply further clarification to your events. This **must** have `type` set to `custom`
- */
- every?: {
- /**
- * How often between your interval the event should repeat. For example, 1 would be every interval, 2 would be every second occurrence of the interval
- */
- count: number;
- /**
- * Coupled with `count`, this indicates the time range you are repeating your event over
- */
- interval: "day" | "month" | "year" | "week";
- };
- /**
- * Used to control the end date of the event repeat (only used when `type` is `custom`; if used with `endDate`, the earliest resultant date of the two will be used)
- */
- endsAfterOccurrences?: number;
- /**
- * The ISO 8601 timestamp that the event ends at. Used to control the end date of the event repeat (only used when `type` is `custom`; if used with `endsAfterOccurrences`, the earliest resultant date of the two will be used)
- */
- endDate?: string;
- /**
- * Used to control the day of the week that the event should repeat on (only used when `type` is `custom` and when `every.interval` is `week`)
- */
- on?: Array<"sunday" | "monday" | "tuesday" | "wednesday" | "thursday" | "friday" | "saturday">;
- };
- };
- }): CancelablePromise<{
- calendarEvent: CalendarEvent;
- }> {
- return this.httpRequest.request({
- method: "POST",
- url: "/channels/{channelId}/events",
- path: {
- channelId: channelId,
- },
- body: requestBody,
- mediaType: "application/json",
- });
- }
+ /**
+ * Create a calendar event
+ * We currently do not have a way to surface the `repeatInfo` after event series are updated. Stay tuned!
+ * @returns any Success
+ * @throws ApiError
+ */
+ public calendarEventCreate({
+ channelId,
+ requestBody,
+ }: {
+ /**
+ * The calendar to create the event in
+ */
+ channelId: string;
+ requestBody: {
+ /**
+ * The name of the event
+ */
+ name: string;
+ /**
+ * The description of the event
+ */
+ description?: string;
+ /**
+ * The location of the event
+ */
+ location?: string;
+ /**
+ * The ISO 8601 timestamp that the event starts at
+ */
+ startsAt?: string;
+ /**
+ * A URL to associate with the event
+ */
+ url?: string;
+ /**
+ * The integer value corresponds to the decimal RGB representation for the color. The color of the event when viewing in the calendar
+ */
+ color?: number;
+ /**
+ * Does the event last all day? If passed with `duration`, `duration` will only be applied if it is an interval of minutes represented in days (e.g., `duration: 2880`)
+ */
+ isAllDay?: boolean;
+ /**
+ * When disabled, users will not be able to RSVP to the event
+ */
+ rsvpDisabled?: boolean;
+ /**
+ * The number of RSVPs to allow before waitlisting RSVPs
+ */
+ rsvpLimit?: number;
+ /**
+ * When `rsvpLimit` is set, users from the waitlist will be added as space becomes available in the event
+ */
+ autofillWaitlist?: boolean;
+ /**
+ * The duration of the event _**in minutes**_
+ */
+ duration?: number;
+ isPrivate?: boolean;
+ /**
+ * The role IDs to restrict the event to
+ */
+ roleIds?: Array;
+ repeatInfo?: {
+ /**
+ * How often you want your event to repeat (important note: this will repeat for the next 180 days unless custom is defined)
+ */
+ type:
+ | "once"
+ | "everyDay"
+ | "everyWeek"
+ | "everyMonth"
+ | "custom";
+ /**
+ * Apply further clarification to your events. This **must** have `type` set to `custom`
+ */
+ every?: {
+ /**
+ * How often between your interval the event should repeat. For example, 1 would be every interval, 2 would be every second occurrence of the interval
+ */
+ count: number;
+ /**
+ * Coupled with `count`, this indicates the time range you are repeating your event over
+ */
+ interval:
+ | "day"
+ | "month"
+ | "year"
+ | "week";
+ };
+ /**
+ * Used to control the end date of the event repeat (only used when `type` is `custom`; if used with `endDate`, the earliest resultant date of the two will be used)
+ */
+ endsAfterOccurrences?: number;
+ /**
+ * The ISO 8601 timestamp that the event ends at. Used to control the end date of the event repeat (only used when `type` is `custom`; if used with `endsAfterOccurrences`, the earliest resultant date of the two will be used)
+ */
+ endDate?: string;
+ /**
+ * Used to control the day of the week that the event should repeat on (only used when `type` is `custom` and when `every.interval` is `week`)
+ */
+ on?: Array<
+ | "sunday"
+ | "monday"
+ | "tuesday"
+ | "wednesday"
+ | "thursday"
+ | "friday"
+ | "saturday"
+ >;
+ };
+ };
+ }): CancelablePromise<{
+ calendarEvent: CalendarEvent;
+ }> {
+ return this.httpRequest.request(
+ {
+ method: "POST",
+ url: "/channels/{channelId}/events",
+ path: {
+ channelId: channelId,
+ },
+ body: requestBody,
+ mediaType: "application/json",
+ },
+ );
+ }
- /**
- * Get calendar events
- * Results returned will be ordered ascending by the event's `startsAt`. `before` and `after` will filter based on the event's `startsAt`
- * @returns any Success
- * @throws ApiError
- */
- public calendarEventReadMany({ channelId, before, after, limit = 25 }: { channelId: string; before?: string; after?: string; limit?: number }): CancelablePromise<{
- calendarEvents: Array;
- }> {
- return this.httpRequest.request({
- method: "GET",
- url: "/channels/{channelId}/events",
- path: {
- channelId: channelId,
- },
- query: {
- before: before,
- after: after,
- limit: limit,
- },
- });
- }
+ /**
+ * Get calendar events
+ * Results returned will be ordered ascending by the event's `startsAt`. `before` and `after` will filter based on the event's `startsAt`
+ * @returns any Success
+ * @throws ApiError
+ */
+ public calendarEventReadMany({
+ channelId,
+ before,
+ after,
+ limit = 25,
+ }: {
+ channelId: string;
+ before?: string;
+ after?: string;
+ limit?: number;
+ }): CancelablePromise<{
+ calendarEvents: Array;
+ }> {
+ return this.httpRequest.request(
+ {
+ method: "GET",
+ url: "/channels/{channelId}/events",
+ path: {
+ channelId: channelId,
+ },
+ query: {
+ before: before,
+ after: after,
+ limit: limit,
+ },
+ },
+ );
+ }
- /**
- * Get a calendar event
- * @returns any Success
- * @throws ApiError
- */
- public calendarEventRead({ channelId, calendarEventId }: { channelId: string; calendarEventId: number }): CancelablePromise<{
- calendarEvent: CalendarEvent;
- }> {
- return this.httpRequest.request({
- method: "GET",
- url: "/channels/{channelId}/events/{calendarEventId}",
- path: {
- channelId: channelId,
- calendarEventId: calendarEventId,
- },
- });
- }
+ /**
+ * Get a calendar event
+ * @returns any Success
+ * @throws ApiError
+ */
+ public calendarEventRead({
+ channelId,
+ calendarEventId,
+ }: {
+ channelId: string;
+ calendarEventId: number;
+ }): CancelablePromise<{
+ calendarEvent: CalendarEvent;
+ }> {
+ return this.httpRequest.request(
+ {
+ method: "GET",
+ url: "/channels/{channelId}/events/{calendarEventId}",
+ path: {
+ channelId: channelId,
+ calendarEventId: calendarEventId,
+ },
+ },
+ );
+ }
- /**
- * Update a calendar event
- * We currently do not have a way to surface the `repeatInfo` after event series are updated. Stay tuned!
- * @returns any Success
- * @throws ApiError
- */
- public calendarEventUpdate({
- channelId,
- calendarEventId,
- requestBody,
- }: {
- channelId: string;
- calendarEventId: number;
- requestBody: {
- /**
- * The name of the event
- */
- name?: string;
- /**
- * The description of the event
- */
- description?: string;
- /**
- * The location of the event
- */
- location?: string;
- /**
- * The ISO 8601 timestamp that the event starts at
- */
- startsAt?: string;
- /**
- * A URL to associate with the event
- */
- url?: string;
- /**
- * The integer value corresponds to the decimal RGB representation for the color. The color of the event when viewing in the calendar
- */
- color?: number;
- /**
- * Does the event last all day? If passed with `duration`, `duration` will only be applied if it is an interval of minutes represented in days (e.g., `duration: 2880`)
- */
- isAllDay?: boolean;
- /**
- * When disabled, users will not be able to RSVP to the event
- */
- rsvpDisabled?: boolean;
- /**
- * The number of RSVPs to allow before waitlisting RSVPs
- */
- rsvpLimit?: number;
- /**
- * When `rsvpLimit` is set, users from the waitlist will be added as space becomes available in the event
- */
- autofillWaitlist?: boolean;
- /**
- * The duration of the event _**in minutes**_
- */
- duration?: number;
- isPrivate?: boolean;
- /**
- * The role IDs to restrict the event to. Passing an empty array will clear the role IDs on the event
- */
- roleIds?: Array;
- cancellation?: {
- /**
- * The description of event cancellation
- */
- description?: string;
- };
- };
- }): CancelablePromise<{
- calendarEvent: CalendarEvent;
- }> {
- return this.httpRequest.request({
- method: "PATCH",
- url: "/channels/{channelId}/events/{calendarEventId}",
- path: {
- channelId: channelId,
- calendarEventId: calendarEventId,
- },
- body: requestBody,
- mediaType: "application/json",
- });
- }
+ /**
+ * Update a calendar event
+ * We currently do not have a way to surface the `repeatInfo` after event series are updated. Stay tuned!
+ * @returns any Success
+ * @throws ApiError
+ */
+ public calendarEventUpdate({
+ channelId,
+ calendarEventId,
+ requestBody,
+ }: {
+ channelId: string;
+ calendarEventId: number;
+ requestBody: {
+ /**
+ * The name of the event
+ */
+ name?: string;
+ /**
+ * The description of the event
+ */
+ description?: string;
+ /**
+ * The location of the event
+ */
+ location?: string;
+ /**
+ * The ISO 8601 timestamp that the event starts at
+ */
+ startsAt?: string;
+ /**
+ * A URL to associate with the event
+ */
+ url?: string;
+ /**
+ * The integer value corresponds to the decimal RGB representation for the color. The color of the event when viewing in the calendar
+ */
+ color?: number;
+ /**
+ * Does the event last all day? If passed with `duration`, `duration` will only be applied if it is an interval of minutes represented in days (e.g., `duration: 2880`)
+ */
+ isAllDay?: boolean;
+ /**
+ * When disabled, users will not be able to RSVP to the event
+ */
+ rsvpDisabled?: boolean;
+ /**
+ * The number of RSVPs to allow before waitlisting RSVPs
+ */
+ rsvpLimit?: number;
+ /**
+ * When `rsvpLimit` is set, users from the waitlist will be added as space becomes available in the event
+ */
+ autofillWaitlist?: boolean;
+ /**
+ * The duration of the event _**in minutes**_
+ */
+ duration?: number;
+ isPrivate?: boolean;
+ /**
+ * The role IDs to restrict the event to. Passing an empty array will clear the role IDs on the event
+ */
+ roleIds?: Array;
+ cancellation?: {
+ /**
+ * The description of event cancellation
+ */
+ description?: string;
+ };
+ };
+ }): CancelablePromise<{
+ calendarEvent: CalendarEvent;
+ }> {
+ return this.httpRequest.request(
+ {
+ method: "PATCH",
+ url: "/channels/{channelId}/events/{calendarEventId}",
+ path: {
+ channelId: channelId,
+ calendarEventId: calendarEventId,
+ },
+ body: requestBody,
+ mediaType: "application/json",
+ },
+ );
+ }
- /**
- * Delete a calendar event
- * @returns void
- * @throws ApiError
- */
- public calendarEventDelete({ channelId, calendarEventId }: { channelId: string; calendarEventId: number }): CancelablePromise {
- return this.httpRequest.request({
- method: "DELETE",
- url: "/channels/{channelId}/events/{calendarEventId}",
- path: {
- channelId: channelId,
- calendarEventId: calendarEventId,
- },
- });
- }
+ /**
+ * Delete a calendar event
+ * @returns void
+ * @throws ApiError
+ */
+ public calendarEventDelete({
+ channelId,
+ calendarEventId,
+ }: {
+ channelId: string;
+ calendarEventId: number;
+ }): CancelablePromise {
+ return this.httpRequest.request(
+ {
+ method: "DELETE",
+ url: "/channels/{channelId}/events/{calendarEventId}",
+ path: {
+ channelId: channelId,
+ calendarEventId: calendarEventId,
+ },
+ },
+ );
+ }
- /**
- * Get a calendar event RSVP
- * @returns any Success
- * @throws ApiError
- */
- public calendarEventRsvpRead({ channelId, calendarEventId, userId }: { channelId: string; calendarEventId: number; userId: string | "@me" }): CancelablePromise<{
- calendarEventRsvp: CalendarEventRsvp;
- }> {
- return this.httpRequest.request({
- method: "GET",
- url: "/channels/{channelId}/events/{calendarEventId}/rsvps/{userId}",
- path: {
- channelId: channelId,
- calendarEventId: calendarEventId,
- userId: userId,
- },
- });
- }
+ /**
+ * Get a calendar event RSVP
+ * @returns any Success
+ * @throws ApiError
+ */
+ public calendarEventRsvpRead({
+ channelId,
+ calendarEventId,
+ userId,
+ }: {
+ channelId: string;
+ calendarEventId: number;
+ userId:
+ | string
+ | "@me";
+ }): CancelablePromise<{
+ calendarEventRsvp: CalendarEventRsvp;
+ }> {
+ return this.httpRequest.request(
+ {
+ method: "GET",
+ url: "/channels/{channelId}/events/{calendarEventId}/rsvps/{userId}",
+ path: {
+ channelId: channelId,
+ calendarEventId: calendarEventId,
+ userId: userId,
+ },
+ },
+ );
+ }
- /**
- * Create or update a calendar event RSVP
- * @returns any Success
- * @throws ApiError
- */
- public calendarEventRsvpUpdate({
- channelId,
- calendarEventId,
- userId,
- requestBody,
- }: {
- channelId: string;
- calendarEventId: number;
- userId: string | "@me";
- requestBody: {
- /**
- * The status of the RSVP
- */
- status: "going" | "maybe" | "declined" | "invited";
- };
- }): CancelablePromise<{
- calendarEventRsvp: CalendarEventRsvp;
- }> {
- return this.httpRequest.request({
- method: "PUT",
- url: "/channels/{channelId}/events/{calendarEventId}/rsvps/{userId}",
- path: {
- channelId: channelId,
- calendarEventId: calendarEventId,
- userId: userId,
- },
- body: requestBody,
- mediaType: "application/json",
- });
- }
+ /**
+ * Create or update a calendar event RSVP
+ * @returns any Success
+ * @throws ApiError
+ */
+ public calendarEventRsvpUpdate({
+ channelId,
+ calendarEventId,
+ userId,
+ requestBody,
+ }: {
+ channelId: string;
+ calendarEventId: number;
+ userId:
+ | string
+ | "@me";
+ requestBody: {
+ /**
+ * The status of the RSVP
+ */
+ status:
+ | "going"
+ | "maybe"
+ | "declined"
+ | "invited";
+ };
+ }): CancelablePromise<{
+ calendarEventRsvp: CalendarEventRsvp;
+ }> {
+ return this.httpRequest.request(
+ {
+ method: "PUT",
+ url: "/channels/{channelId}/events/{calendarEventId}/rsvps/{userId}",
+ path: {
+ channelId: channelId,
+ calendarEventId: calendarEventId,
+ userId: userId,
+ },
+ body: requestBody,
+ mediaType: "application/json",
+ },
+ );
+ }
- /**
- * Delete a calendar event RSVP
- * @returns void
- * @throws ApiError
- */
- public calendarEventRsvpDelete({ channelId, calendarEventId, userId }: { channelId: string; calendarEventId: number; userId: string | "@me" }): CancelablePromise {
- return this.httpRequest.request({
- method: "DELETE",
- url: "/channels/{channelId}/events/{calendarEventId}/rsvps/{userId}",
- path: {
- channelId: channelId,
- calendarEventId: calendarEventId,
- userId: userId,
- },
- });
- }
+ /**
+ * Delete a calendar event RSVP
+ * @returns void
+ * @throws ApiError
+ */
+ public calendarEventRsvpDelete({
+ channelId,
+ calendarEventId,
+ userId,
+ }: {
+ channelId: string;
+ calendarEventId: number;
+ userId:
+ | string
+ | "@me";
+ }): CancelablePromise {
+ return this.httpRequest.request(
+ {
+ method: "DELETE",
+ url: "/channels/{channelId}/events/{calendarEventId}/rsvps/{userId}",
+ path: {
+ channelId: channelId,
+ calendarEventId: calendarEventId,
+ userId: userId,
+ },
+ },
+ );
+ }
- /**
- * Get calendar event RSVPs
- * @returns any Success
- * @throws ApiError
- */
- public calendarEventRsvpReadMany({ channelId, calendarEventId }: { channelId: string; calendarEventId: number }): CancelablePromise<{
- calendarEventRsvps: Array;
- }> {
- return this.httpRequest.request({
- method: "GET",
- url: "/channels/{channelId}/events/{calendarEventId}/rsvps",
- path: {
- channelId: channelId,
- calendarEventId: calendarEventId,
- },
- });
- }
+ /**
+ * Get calendar event RSVPs
+ * @returns any Success
+ * @throws ApiError
+ */
+ public calendarEventRsvpReadMany({
+ channelId,
+ calendarEventId,
+ }: {
+ channelId: string;
+ calendarEventId: number;
+ }): CancelablePromise<{
+ calendarEventRsvps: Array;
+ }> {
+ return this.httpRequest.request(
+ {
+ method: "GET",
+ url: "/channels/{channelId}/events/{calendarEventId}/rsvps",
+ path: {
+ channelId: channelId,
+ calendarEventId: calendarEventId,
+ },
+ },
+ );
+ }
- /**
- * Create or update a calendar event RSVP for multiple users
- * @returns void
- * @throws ApiError
- */
- public calendarEventRsvpUpdateMany({
- channelId,
- calendarEventId,
- requestBody,
- }: {
- channelId: string;
- calendarEventId: number;
- requestBody: {
- userIds: Array;
- /**
- * The status of the RSVP
- */
- status: "going" | "maybe" | "declined" | "invited";
- };
- }): CancelablePromise {
- return this.httpRequest.request({
- method: "PUT",
- url: "/channels/{channelId}/events/{calendarEventId}/rsvps",
- path: {
- channelId: channelId,
- calendarEventId: calendarEventId,
- },
- body: requestBody,
- mediaType: "application/json",
- });
- }
+ /**
+ * Create or update a calendar event RSVP for multiple users
+ * @returns void
+ * @throws ApiError
+ */
+ public calendarEventRsvpUpdateMany({
+ channelId,
+ calendarEventId,
+ requestBody,
+ }: {
+ channelId: string;
+ calendarEventId: number;
+ requestBody: {
+ userIds: Array<
+ | string
+ | "@me"
+ >;
+ /**
+ * The status of the RSVP
+ */
+ status:
+ | "going"
+ | "maybe"
+ | "declined"
+ | "invited";
+ };
+ }): CancelablePromise {
+ return this.httpRequest.request(
+ {
+ method: "PUT",
+ url: "/channels/{channelId}/events/{calendarEventId}/rsvps",
+ path: {
+ channelId: channelId,
+ calendarEventId: calendarEventId,
+ },
+ body: requestBody,
+ mediaType: "application/json",
+ },
+ );
+ }
}
diff --git a/packages/api/lib/generated/router/services/CategoriesService.ts b/packages/api/lib/generated/router/services/CategoriesService.ts
index 8ded0c59..ff43283a 100644
--- a/packages/api/lib/generated/router/services/CategoriesService.ts
+++ b/packages/api/lib/generated/router/services/CategoriesService.ts
@@ -4,112 +4,134 @@
/* eslint-disable */
import type { Category } from "../models/Category";
-import type { CancelablePromise } from "../core/CancelablePromise";
import type { BaseHttpRequest } from "../core/BaseHttpRequest";
+import type { CancelablePromise } from "../core/CancelablePromise";
export class CategoriesService {
- constructor(public readonly httpRequest: BaseHttpRequest) {}
+ constructor(
+ public readonly httpRequest: BaseHttpRequest,
+ ) {}
- /**
- * Create a category
- * @returns any Success
- * @throws ApiError
- */
- public categoryCreate({
- serverId,
- requestBody,
- }: {
- serverId: string;
- requestBody: {
- /**
- * Name of the category
- */
- name: string;
- /**
- * The ID of the group. If not provided, the category will be created in the "Server home" group from `serverId`.
- */
- groupId?: string;
- };
- }): CancelablePromise<{
- category: Category;
- }> {
- return this.httpRequest.request({
- method: "POST",
- url: "/servers/{serverId}/categories",
- path: {
- serverId: serverId,
- },
- body: requestBody,
- mediaType: "application/json",
- });
- }
+ /**
+ * Create a category
+ * @returns any Success
+ * @throws ApiError
+ */
+ public categoryCreate({
+ serverId,
+ requestBody,
+ }: {
+ serverId: string;
+ requestBody: {
+ /**
+ * Name of the category
+ */
+ name: string;
+ /**
+ * The ID of the group. If not provided, the category will be created in the "Server home" group from `serverId`.
+ */
+ groupId?: string;
+ };
+ }): CancelablePromise<{
+ category: Category;
+ }> {
+ return this.httpRequest.request(
+ {
+ method: "POST",
+ url: "/servers/{serverId}/categories",
+ path: {
+ serverId: serverId,
+ },
+ body: requestBody,
+ mediaType: "application/json",
+ },
+ );
+ }
- /**
- * Read a category
- * @returns any Success
- * @throws ApiError
- */
- public categoryRead({ serverId, categoryId }: { serverId: string; categoryId: number }): CancelablePromise<{
- category: Category;
- }> {
- return this.httpRequest.request({
- method: "GET",
- url: "/servers/{serverId}/categories/{categoryId}",
- path: {
- serverId: serverId,
- categoryId: categoryId,
- },
- });
- }
+ /**
+ * Read a category
+ * @returns any Success
+ * @throws ApiError
+ */
+ public categoryRead({
+ serverId,
+ categoryId,
+ }: {
+ serverId: string;
+ categoryId: number;
+ }): CancelablePromise<{
+ category: Category;
+ }> {
+ return this.httpRequest.request(
+ {
+ method: "GET",
+ url: "/servers/{serverId}/categories/{categoryId}",
+ path: {
+ serverId: serverId,
+ categoryId: categoryId,
+ },
+ },
+ );
+ }
- /**
- * Update a category
- * @returns any Success
- * @throws ApiError
- */
- public categoryUpdate({
- serverId,
- categoryId,
- requestBody,
- }: {
- serverId: string;
- categoryId: number;
- requestBody: {
- /**
- * Name of the category
- */
- name: string;
- };
- }): CancelablePromise<{
- category: Category;
- }> {
- return this.httpRequest.request({
- method: "PATCH",
- url: "/servers/{serverId}/categories/{categoryId}",
- path: {
- serverId: serverId,
- categoryId: categoryId,
- },
- body: requestBody,
- mediaType: "application/json",
- });
- }
+ /**
+ * Update a category
+ * @returns any Success
+ * @throws ApiError
+ */
+ public categoryUpdate({
+ serverId,
+ categoryId,
+ requestBody,
+ }: {
+ serverId: string;
+ categoryId: number;
+ requestBody: {
+ /**
+ * Name of the category
+ */
+ name: string;
+ };
+ }): CancelablePromise<{
+ category: Category;
+ }> {
+ return this.httpRequest.request(
+ {
+ method: "PATCH",
+ url: "/servers/{serverId}/categories/{categoryId}",
+ path: {
+ serverId: serverId,
+ categoryId: categoryId,
+ },
+ body: requestBody,
+ mediaType: "application/json",
+ },
+ );
+ }
- /**
- * Delete a category
- * @returns any Success
- * @throws ApiError
- */
- public categoryDelete({ serverId, categoryId }: { serverId: string; categoryId: number }): CancelablePromise<{
- category: Category;
- }> {
- return this.httpRequest.request({
- method: "DELETE",
- url: "/servers/{serverId}/categories/{categoryId}",
- path: {
- serverId: serverId,
- categoryId: categoryId,
- },
- });
- }
+ /**
+ * Delete a category
+ * @returns any Success
+ * @throws ApiError
+ */
+ public categoryDelete({
+ serverId,
+ categoryId,
+ }: {
+ serverId: string;
+ categoryId: number;
+ }): CancelablePromise<{
+ category: Category;
+ }> {
+ return this.httpRequest.request(
+ {
+ method: "DELETE",
+ url: "/servers/{serverId}/categories/{categoryId}",
+ path: {
+ serverId: serverId,
+ categoryId: categoryId,
+ },
+ },
+ );
+ }
}
diff --git a/packages/api/lib/generated/router/services/ChannelsService.ts b/packages/api/lib/generated/router/services/ChannelsService.ts
index 7807505b..908e8551 100644
--- a/packages/api/lib/generated/router/services/ChannelsService.ts
+++ b/packages/api/lib/generated/router/services/ChannelsService.ts
@@ -4,178 +4,225 @@
/* eslint-disable */
import type { ServerChannel } from "../models/ServerChannel";
-import type { CancelablePromise } from "../core/CancelablePromise";
import type { BaseHttpRequest } from "../core/BaseHttpRequest";
+import type { CancelablePromise } from "../core/CancelablePromise";
export class ChannelsService {
- constructor(public readonly httpRequest: BaseHttpRequest) {}
+ constructor(
+ public readonly httpRequest: BaseHttpRequest,
+ ) {}
- /**
- * Create a channel
- * Only server channels are supported at this time (coming soonâ„¢: DM Channels!)
- * @returns any Success
- * @throws ApiError
- */
- public channelCreate({
- requestBody,
- }: {
- requestBody: {
- /**
- * The name of the channel
- */
- name: string;
- /**
- * The topic of the channel. Not applicable to threads
- */
- topic?: string;
- /**
- * [DEPRECATED - use `visibility` instead] Whether the channel can be accessed from users who are not member of the server. Not applicable to threads
- */
- isPublic?: boolean;
- /**
- * What users can access the channel. Only applicable to server channels. If not present, this channel will respect normal permissions. `public` is accessible to everyone, even those who aren't of the server. `private` is only accessible to explicitly mentioned users. Currently, threads cannot be `public` and other channels cannot be `private`. Additionally, `private` threads can only exist with an associated `messageId` that is for a private message
- */
- visibility?: "private" | "public" | null;
- /**
- * The type of channel. This will determine what routes to use for creating content in a channel. For example, if this "chat", then one must use the routes for creating channel messages. For threads, this **must** be "chat" for now
- */
- type: "announcements" | "chat" | "calendar" | "forums" | "media" | "docs" | "voice" | "list" | "scheduling" | "stream";
- /**
- * The ID of the server. Optional if providing a `groupId`, `categoryId`, `parentId` or `messageId`
- */
- serverId?: string;
- /**
- * The ID of the group. If not provided, channel will be created in the "Server home" group from `serverId` _or_ in the group that corresponds to the `categoryId` parameter. Optional if providing a `groupId`, `categoryId`, `parentId` or `messageId`
- */
- groupId?: string;
- /**
- * The category that the channel exists in. Only relevant for server channels. If not provided, channel will be a top-level channel. Optional if providing a `parentId` or `messageId`
- */
- categoryId?: number;
- /**
- * ID of the **immediate** parent channel or thread in the channel hierarchy. Only applicable to "chat", "voice", and "stream" channels and indicates that this channel is a thread, if present. Optional if providing a `messageId`
- */
- parentId?: string;
- /**
- * The ID of the message that this channel was created off of. Only applicable to "chat", "voice", and "stream" channels and indicates that this channel is a thread, if present
- */
- messageId?: string;
- };
- }): CancelablePromise<{
- channel: ServerChannel;
- }> {
- return this.httpRequest.request({
- method: "POST",
- url: "/channels",
- body: requestBody,
- mediaType: "application/json",
- });
- }
+ /**
+ * Create a channel
+ * Only server channels are supported at this time (coming soonâ„¢: DM Channels!)
+ * @returns any Success
+ * @throws ApiError
+ */
+ public channelCreate({
+ requestBody,
+ }: {
+ requestBody: {
+ /**
+ * The name of the channel
+ */
+ name: string;
+ /**
+ * The topic of the channel. Not applicable to threads
+ */
+ topic?: string;
+ /**
+ * [DEPRECATED - use `visibility` instead] Whether the channel can be accessed from users who are not member of the server. Not applicable to threads
+ */
+ isPublic?: boolean;
+ /**
+ * What users can access the channel. Only applicable to server channels. If not present, this channel will respect normal permissions. `public` is accessible to everyone, even those who aren't of the server. `private` is only accessible to explicitly mentioned users. Currently, threads cannot be `public` and other channels cannot be `private`. Additionally, `private` threads can only exist with an associated `messageId` that is for a private message
+ */
+ visibility?:
+ | "private"
+ | "public"
+ | null;
+ /**
+ * The type of channel. This will determine what routes to use for creating content in a channel. For example, if this "chat", then one must use the routes for creating channel messages. For threads, this **must** be "chat" for now
+ */
+ type:
+ | "announcements"
+ | "chat"
+ | "calendar"
+ | "forums"
+ | "media"
+ | "docs"
+ | "voice"
+ | "list"
+ | "scheduling"
+ | "stream";
+ /**
+ * The ID of the server. Optional if providing a `groupId`, `categoryId`, `parentId` or `messageId`
+ */
+ serverId?: string;
+ /**
+ * The ID of the group. If not provided, channel will be created in the "Server home" group from `serverId` _or_ in the group that corresponds to the `categoryId` parameter. Optional if providing a `groupId`, `categoryId`, `parentId` or `messageId`
+ */
+ groupId?: string;
+ /**
+ * The category that the channel exists in. Only relevant for server channels. If not provided, channel will be a top-level channel. Optional if providing a `parentId` or `messageId`
+ */
+ categoryId?: number;
+ /**
+ * ID of the **immediate** parent channel or thread in the channel hierarchy. Only applicable to "chat", "voice", and "stream" channels and indicates that this channel is a thread, if present. Optional if providing a `messageId`
+ */
+ parentId?: string;
+ /**
+ * The ID of the message that this channel was created off of. Only applicable to "chat", "voice", and "stream" channels and indicates that this channel is a thread, if present
+ */
+ messageId?: string;
+ };
+ }): CancelablePromise<{
+ channel: ServerChannel;
+ }> {
+ return this.httpRequest.request(
+ {
+ method: "POST",
+ url: "/channels",
+ body: requestBody,
+ mediaType: "application/json",
+ },
+ );
+ }
- /**
- * Get a channel
- * Must be a member of the server to get the channel. Only server channels are supported at this time (coming soonâ„¢: DM Channels!)
- * @returns any Success
- * @throws ApiError
- */
- public channelRead({ channelId }: { channelId: string }): CancelablePromise<{
- channel: ServerChannel;
- }> {
- return this.httpRequest.request({
- method: "GET",
- url: "/channels/{channelId}",
- path: {
- channelId: channelId,
- },
- });
- }
+ /**
+ * Get a channel
+ * Must be a member of the server to get the channel. Only server channels are supported at this time (coming soonâ„¢: DM Channels!)
+ * @returns any Success
+ * @throws ApiError
+ */
+ public channelRead({
+ channelId,
+ }: {
+ channelId: string;
+ }): CancelablePromise<{
+ channel: ServerChannel;
+ }> {
+ return this.httpRequest.request(
+ {
+ method: "GET",
+ url: "/channels/{channelId}",
+ path: {
+ channelId: channelId,
+ },
+ },
+ );
+ }
- /**
- * Update a channel
- * Only server channels are supported at this time (coming soonâ„¢: DM Channels!)
- * @returns any Success
- * @throws ApiError
- */
- public channelUpdate({
- channelId,
- requestBody,
- }: {
- channelId: string;
- requestBody: {
- /**
- * The name of the channel or thread
- */
- name?: string;
- /**
- * The topic of the channel. Not applicable to threads
- */
- topic?: string | null;
- /**
- * [DEPRECATED - use `visibility` instead] Whether the channel can be accessed from users who are not member of the server. Not applicable to threads
- */
- isPublic?: boolean;
- /**
- * What users can access the channel. Only applicable to server channels. If not present, this channel will respect normal permissions. `public` is accessible to everyone, even those who aren't of the server. `private` is only accessible to explicitly mentioned users. Currently, threads cannot be `public` and other channels cannot be `private`. Additionally, `private` threads can only exist with an associated `messageId` that is for a private message. At this time, you cannot update the visibility on a channel to `private`; this must be set at creation
- */
- visibility?: "public" | null;
- };
- }): CancelablePromise<{
- channel: ServerChannel;
- }> {
- return this.httpRequest.request({
- method: "PATCH",
- url: "/channels/{channelId}",
- path: {
- channelId: channelId,
- },
- body: requestBody,
- mediaType: "application/json",
- });
- }
+ /**
+ * Update a channel
+ * Only server channels are supported at this time (coming soonâ„¢: DM Channels!)
+ * @returns any Success
+ * @throws ApiError
+ */
+ public channelUpdate({
+ channelId,
+ requestBody,
+ }: {
+ channelId: string;
+ requestBody: {
+ /**
+ * The name of the channel or thread
+ */
+ name?: string;
+ /**
+ * The topic of the channel. Not applicable to threads
+ */
+ topic?:
+ | string
+ | null;
+ /**
+ * [DEPRECATED - use `visibility` instead] Whether the channel can be accessed from users who are not member of the server. Not applicable to threads
+ */
+ isPublic?: boolean;
+ /**
+ * What users can access the channel. Only applicable to server channels. If not present, this channel will respect normal permissions. `public` is accessible to everyone, even those who aren't of the server. `private` is only accessible to explicitly mentioned users. Currently, threads cannot be `public` and other channels cannot be `private`. Additionally, `private` threads can only exist with an associated `messageId` that is for a private message. At this time, you cannot update the visibility on a channel to `private`; this must be set at creation
+ */
+ visibility?:
+ | "public"
+ | null;
+ };
+ }): CancelablePromise<{
+ channel: ServerChannel;
+ }> {
+ return this.httpRequest.request(
+ {
+ method: "PATCH",
+ url: "/channels/{channelId}",
+ path: {
+ channelId: channelId,
+ },
+ body: requestBody,
+ mediaType: "application/json",
+ },
+ );
+ }
- /**
- * Delete a channel
- * Only server channels are supported at this time (coming soonâ„¢: DM Channels!)
- * @returns void
- * @throws ApiError
- */
- public channelDelete({ channelId }: { channelId: string }): CancelablePromise {
- return this.httpRequest.request({
- method: "DELETE",
- url: "/channels/{channelId}",
- path: {
- channelId: channelId,
- },
- });
- }
+ /**
+ * Delete a channel
+ * Only server channels are supported at this time (coming soonâ„¢: DM Channels!)
+ * @returns void
+ * @throws ApiError
+ */
+ public channelDelete({
+ channelId,
+ }: {
+ channelId: string;
+ }): CancelablePromise {
+ return this.httpRequest.request(
+ {
+ method: "DELETE",
+ url: "/channels/{channelId}",
+ path: {
+ channelId: channelId,
+ },
+ },
+ );
+ }
- /**
- * Archive a channel
- * @returns void
- * @throws ApiError
- */
- public channelArchiveCreate({ channelId }: { channelId: string }): CancelablePromise {
- return this.httpRequest.request({
- method: "PUT",
- url: "/channels/{channelId}/archive",
- path: {
- channelId: channelId,
- },
- });
- }
+ /**
+ * Archive a channel
+ * @returns void
+ * @throws ApiError
+ */
+ public channelArchiveCreate({
+ channelId,
+ }: {
+ channelId: string;
+ }): CancelablePromise {
+ return this.httpRequest.request(
+ {
+ method: "PUT",
+ url: "/channels/{channelId}/archive",
+ path: {
+ channelId: channelId,
+ },
+ },
+ );
+ }
- /**
- * Restore an archived channel
- * @returns void
- * @throws ApiError
- */
- public channelArchiveDelete({ channelId }: { channelId: string }): CancelablePromise {
- return this.httpRequest.request({
- method: "DELETE",
- url: "/channels/{channelId}/archive",
- path: {
- channelId: channelId,
- },
- });
- }
+ /**
+ * Restore an archived channel
+ * @returns void
+ * @throws ApiError
+ */
+ public channelArchiveDelete({
+ channelId,
+ }: {
+ channelId: string;
+ }): CancelablePromise {
+ return this.httpRequest.request(
+ {
+ method: "DELETE",
+ url: "/channels/{channelId}/archive",
+ path: {
+ channelId: channelId,
+ },
+ },
+ );
+ }
}
diff --git a/packages/api/lib/generated/router/services/ChatService.ts b/packages/api/lib/generated/router/services/ChatService.ts
index 8e15d3db..9c69966f 100644
--- a/packages/api/lib/generated/router/services/ChatService.ts
+++ b/packages/api/lib/generated/router/services/ChatService.ts
@@ -6,275 +6,316 @@ import type { ChatEmbed } from "../models/ChatEmbed";
import type { ChatMessage } from "../models/ChatMessage";
import type { Mentions } from "../models/Mentions";
-import type { CancelablePromise } from "../core/CancelablePromise";
import type { BaseHttpRequest } from "../core/BaseHttpRequest";
+import type { CancelablePromise } from "../core/CancelablePromise";
export class ChatService {
- constructor(public readonly httpRequest: BaseHttpRequest) {}
+ constructor(
+ public readonly httpRequest: BaseHttpRequest,
+ ) {}
- /**
- * Create a channel message
- * @returns any Success
- * @throws ApiError
- */
- public channelMessageCreate({
- channelId,
- requestBody,
- }: {
- /**
- * Channel ID to create the message in
- */
- channelId: string;
- requestBody: {
- /**
- * If set, this message will only be seen by those mentioned or replied to
- */
- isPrivate?: boolean;
- /**
- * If set, this message will not notify any mentioned users or roles
- */
- isSilent?: boolean;
- /**
- * Message IDs to reply to
- */
- replyMessageIds?: Array;
- /**
- * The content of the message
- */
- content?: string;
- /**
- * At this time, only one embed is supported per message, and attachments are not supported. If you need to send more than one embed or upload attachments, consider creating the message via a webhook.
- */
- embeds?: Array;
- };
- }): CancelablePromise<{
- message: ChatMessage;
- }> {
- return this.httpRequest.request({
- method: "POST",
- url: "/channels/{channelId}/messages",
- path: {
- channelId: channelId,
- },
- body: requestBody,
- mediaType: "application/json",
- });
- }
+ /**
+ * Create a channel message
+ * @returns any Success
+ * @throws ApiError
+ */
+ public channelMessageCreate({
+ channelId,
+ requestBody,
+ }: {
+ /**
+ * Channel ID to create the message in
+ */
+ channelId: string;
+ requestBody: {
+ /**
+ * If set, this message will only be seen by those mentioned or replied to
+ */
+ isPrivate?: boolean;
+ /**
+ * If set, this message will not notify any mentioned users or roles
+ */
+ isSilent?: boolean;
+ /**
+ * Message IDs to reply to
+ */
+ replyMessageIds?: Array;
+ /**
+ * The content of the message
+ */
+ content?: string;
+ /**
+ * At this time, only one embed is supported per message, and attachments are not supported. If you need to send more than one embed or upload attachments, consider creating the message via a webhook.
+ */
+ embeds?: Array;
+ };
+ }): CancelablePromise<{
+ message: ChatMessage;
+ }> {
+ return this.httpRequest.request(
+ {
+ method: "POST",
+ url: "/channels/{channelId}/messages",
+ path: {
+ channelId: channelId,
+ },
+ body: requestBody,
+ mediaType: "application/json",
+ },
+ );
+ }
- /**
- * Get channel messages
- * Results returned will be ordered ascending by the message's `createdAt`. `before` and `after` will filter based on the message's `createdAt`
- * @returns any Success
- * @throws ApiError
- */
- public channelMessageReadMany({
- channelId,
- before,
- after,
- limit = 50,
- includePrivate = false,
- }: {
- /**
- * ID of the channel that the messages exist in
- */
- channelId: string;
- before?: string;
- /**
- * An ISO 8601 timestamp that will be used to filter out results for the current page. Order will be reversed when compared to `before` or when omitting this parameter altogether
- */
- after?: string;
- limit?: number;
- /**
- * Whether to include private messages between all users in response
- */
- includePrivate?: boolean;
- }): CancelablePromise<{
- messages: Array;
- }> {
- return this.httpRequest.request({
- method: "GET",
- url: "/channels/{channelId}/messages",
- path: {
- channelId: channelId,
- },
- query: {
- before: before,
- after: after,
- limit: limit,
- includePrivate: includePrivate,
- },
- });
- }
+ /**
+ * Get channel messages
+ * Results returned will be ordered ascending by the message's `createdAt`. `before` and `after` will filter based on the message's `createdAt`
+ * @returns any Success
+ * @throws ApiError
+ */
+ public channelMessageReadMany({
+ channelId,
+ before,
+ after,
+ limit = 50,
+ includePrivate = false,
+ }: {
+ /**
+ * ID of the channel that the messages exist in
+ */
+ channelId: string;
+ before?: string;
+ /**
+ * An ISO 8601 timestamp that will be used to filter out results for the current page. Order will be reversed when compared to `before` or when omitting this parameter altogether
+ */
+ after?: string;
+ limit?: number;
+ /**
+ * Whether to include private messages between all users in response
+ */
+ includePrivate?: boolean;
+ }): CancelablePromise<{
+ messages: Array;
+ }> {
+ return this.httpRequest.request(
+ {
+ method: "GET",
+ url: "/channels/{channelId}/messages",
+ path: {
+ channelId: channelId,
+ },
+ query: {
+ before: before,
+ after: after,
+ limit: limit,
+ includePrivate: includePrivate,
+ },
+ },
+ );
+ }
- /**
- * Get a channel message
- * Get details for a specific chat message from a chat channel.
- * @returns any Success
- * @throws ApiError
- */
- public channelMessageRead({
- channelId,
- messageId,
- }: {
- /**
- * ID of the channel that the message exists in
- */
- channelId: string;
- messageId: string;
- }): CancelablePromise<{
- message: ChatMessage;
- }> {
- return this.httpRequest.request({
- method: "GET",
- url: "/channels/{channelId}/messages/{messageId}",
- path: {
- channelId: channelId,
- messageId: messageId,
- },
- });
- }
+ /**
+ * Get a channel message
+ * Get details for a specific chat message from a chat channel.
+ * @returns any Success
+ * @throws ApiError
+ */
+ public channelMessageRead({
+ channelId,
+ messageId,
+ }: {
+ /**
+ * ID of the channel that the message exists in
+ */
+ channelId: string;
+ messageId: string;
+ }): CancelablePromise<{
+ message: ChatMessage;
+ }> {
+ return this.httpRequest.request(
+ {
+ method: "GET",
+ url: "/channels/{channelId}/messages/{messageId}",
+ path: {
+ channelId: channelId,
+ messageId: messageId,
+ },
+ },
+ );
+ }
- /**
- * Update a channel message
- * @returns any Success
- * @throws ApiError
- */
- public channelMessageUpdate({
- channelId,
- messageId,
- requestBody,
- }: {
- /**
- * ID of the channel that the message to be updated exists in
- */
- channelId: string;
- messageId: string;
- requestBody: {
- /**
- * The content of the message
- */
- content?: Record | string;
- /**
- * At this time, only one embed is supported per message, and attachments are not supported. If you need to send more than one embed or upload attachments, consider creating the message via a webhook.
- */
- embeds?: Array;
- };
- }): CancelablePromise<{
- message: ChatMessage & {
- /**
- * The ID of the message
- */
- id?: string;
- /**
- * The type of chat message. "system" messages are generated by Guilded, while "default" messages are user or bot-generated.
- */
- type?: "default" | "system";
- /**
- * The ID of the server
- */
- serverId?: string;
- /**
- * The ID of the group
- */
- groupId?: string;
- /**
- * The ID of the channel
- */
- channelId?: string;
- /**
- * The content of the message
- */
- content?: string;
- embeds?: Array;
- /**
- * Message IDs that were replied to
- */
- replyMessageIds?: Array;
- /**
- * If set, this message will only be seen by those mentioned or replied to
- */
- isPrivate?: boolean;
- /**
- * If set, this message did not notify mention or reply recipients
- */
- isSilent?: boolean;
- isPinned?: boolean;
- mentions?: Mentions;
- /**
- * The ISO 8601 timestamp that the message was created at
- */
- createdAt?: string;
- /**
- * The ID of the user who created this message (Note: If this event has `createdByWebhookId` present, this field will still be populated, but can be ignored. In this case, the value of this field will always be Ann6LewA)
- */
- createdBy?: string;
- /**
- * The ID of the webhook who created this message, if it was created by a webhook
- */
- createdByWebhookId?: string;
- /**
- * The ISO 8601 timestamp that the message was updated at, if relevant
- */
- updatedAt: string;
- };
- }> {
- return this.httpRequest.request({
- method: "PUT",
- url: "/channels/{channelId}/messages/{messageId}",
- path: {
- channelId: channelId,
- messageId: messageId,
- },
- body: requestBody,
- mediaType: "application/json",
- });
- }
+ /**
+ * Update a channel message
+ * @returns any Success
+ * @throws ApiError
+ */
+ public channelMessageUpdate({
+ channelId,
+ messageId,
+ requestBody,
+ }: {
+ /**
+ * ID of the channel that the message to be updated exists in
+ */
+ channelId: string;
+ messageId: string;
+ requestBody: {
+ /**
+ * The content of the message
+ */
+ content?:
+ | Record<
+ string,
+ any
+ >
+ | string;
+ /**
+ * At this time, only one embed is supported per message, and attachments are not supported. If you need to send more than one embed or upload attachments, consider creating the message via a webhook.
+ */
+ embeds?: Array;
+ };
+ }): CancelablePromise<{
+ message: ChatMessage & {
+ /**
+ * The ID of the message
+ */
+ id?: string;
+ /**
+ * The type of chat message. "system" messages are generated by Guilded, while "default" messages are user or bot-generated.
+ */
+ type?:
+ | "default"
+ | "system";
+ /**
+ * The ID of the server
+ */
+ serverId?: string;
+ /**
+ * The ID of the group
+ */
+ groupId?: string;
+ /**
+ * The ID of the channel
+ */
+ channelId?: string;
+ /**
+ * The content of the message
+ */
+ content?: string;
+ embeds?: Array;
+ /**
+ * Message IDs that were replied to
+ */
+ replyMessageIds?: Array;
+ /**
+ * If set, this message will only be seen by those mentioned or replied to
+ */
+ isPrivate?: boolean;
+ /**
+ * If set, this message did not notify mention or reply recipients
+ */
+ isSilent?: boolean;
+ isPinned?: boolean;
+ mentions?: Mentions;
+ /**
+ * The ISO 8601 timestamp that the message was created at
+ */
+ createdAt?: string;
+ /**
+ * The ID of the user who created this message (Note: If this event has `createdByWebhookId` present, this field will still be populated, but can be ignored. In this case, the value of this field will always be Ann6LewA)
+ */
+ createdBy?: string;
+ /**
+ * The ID of the webhook who created this message, if it was created by a webhook
+ */
+ createdByWebhookId?: string;
+ /**
+ * The ISO 8601 timestamp that the message was updated at, if relevant
+ */
+ updatedAt: string;
+ };
+ }> {
+ return this.httpRequest.request(
+ {
+ method: "PUT",
+ url: "/channels/{channelId}/messages/{messageId}",
+ path: {
+ channelId: channelId,
+ messageId: messageId,
+ },
+ body: requestBody,
+ mediaType: "application/json",
+ },
+ );
+ }
- /**
- * Delete a channel message
- * @returns void
- * @throws ApiError
- */
- public channelMessageDelete({ channelId, messageId }: { channelId: string; messageId: string }): CancelablePromise {
- return this.httpRequest.request({
- method: "DELETE",
- url: "/channels/{channelId}/messages/{messageId}",
- path: {
- channelId: channelId,
- messageId: messageId,
- },
- });
- }
+ /**
+ * Delete a channel message
+ * @returns void
+ * @throws ApiError
+ */
+ public channelMessageDelete({
+ channelId,
+ messageId,
+ }: {
+ channelId: string;
+ messageId: string;
+ }): CancelablePromise {
+ return this.httpRequest.request(
+ {
+ method: "DELETE",
+ url: "/channels/{channelId}/messages/{messageId}",
+ path: {
+ channelId: channelId,
+ messageId: messageId,
+ },
+ },
+ );
+ }
- /**
- * Pin a message
- * @returns void
- * @throws ApiError
- */
- public channelMessagePinCreate({ channelId, messageId }: { channelId: string; messageId: string }): CancelablePromise {
- return this.httpRequest.request({
- method: "POST",
- url: "/channels/{channelId}/messages/{messageId}/pin",
- path: {
- channelId: channelId,
- messageId: messageId,
- },
- });
- }
+ /**
+ * Pin a message
+ * @returns void
+ * @throws ApiError
+ */
+ public channelMessagePinCreate({
+ channelId,
+ messageId,
+ }: {
+ channelId: string;
+ messageId: string;
+ }): CancelablePromise {
+ return this.httpRequest.request(
+ {
+ method: "POST",
+ url: "/channels/{channelId}/messages/{messageId}/pin",
+ path: {
+ channelId: channelId,
+ messageId: messageId,
+ },
+ },
+ );
+ }
- /**
- * Unpin a message
- * @returns void
- * @throws ApiError
- */
- public channelMessagePinDelete({ channelId, messageId }: { channelId: string; messageId: string }): CancelablePromise {
- return this.httpRequest.request({
- method: "DELETE",
- url: "/channels/{channelId}/messages/{messageId}/pin",
- path: {
- channelId: channelId,
- messageId: messageId,
- },
- });
- }
+ /**
+ * Unpin a message
+ * @returns void
+ * @throws ApiError
+ */
+ public channelMessagePinDelete({
+ channelId,
+ messageId,
+ }: {
+ channelId: string;
+ messageId: string;
+ }): CancelablePromise {
+ return this.httpRequest.request(
+ {
+ method: "DELETE",
+ url: "/channels/{channelId}/messages/{messageId}/pin",
+ path: {
+ channelId: channelId,
+ messageId: messageId,
+ },
+ },
+ );
+ }
}
diff --git a/packages/api/lib/generated/router/services/DocCommentsService.ts b/packages/api/lib/generated/router/services/DocCommentsService.ts
index 919ab510..762e770e 100644
--- a/packages/api/lib/generated/router/services/DocCommentsService.ts
+++ b/packages/api/lib/generated/router/services/DocCommentsService.ts
@@ -4,132 +4,166 @@
/* eslint-disable */
import type { DocComment } from "../models/DocComment";
-import type { CancelablePromise } from "../core/CancelablePromise";
import type { BaseHttpRequest } from "../core/BaseHttpRequest";
+import type { CancelablePromise } from "../core/CancelablePromise";
export class DocCommentsService {
- constructor(public readonly httpRequest: BaseHttpRequest) {}
+ constructor(
+ public readonly httpRequest: BaseHttpRequest,
+ ) {}
- /**
- * Create a comment on a doc
- * @returns any Success
- * @throws ApiError
- */
- public docCommentCreate({
- channelId,
- docId,
- requestBody,
- }: {
- channelId: string;
- docId: number;
- requestBody: {
- /**
- * The content of the doc comment
- */
- content: string;
- };
- }): CancelablePromise<{
- docComment: DocComment;
- }> {
- return this.httpRequest.request({
- method: "POST",
- url: "/channels/{channelId}/docs/{docId}/comments",
- path: {
- channelId: channelId,
- docId: docId,
- },
- body: requestBody,
- mediaType: "application/json",
- });
- }
+ /**
+ * Create a comment on a doc
+ * @returns any Success
+ * @throws ApiError
+ */
+ public docCommentCreate({
+ channelId,
+ docId,
+ requestBody,
+ }: {
+ channelId: string;
+ docId: number;
+ requestBody: {
+ /**
+ * The content of the doc comment
+ */
+ content: string;
+ };
+ }): CancelablePromise<{
+ docComment: DocComment;
+ }> {
+ return this.httpRequest.request(
+ {
+ method: "POST",
+ url: "/channels/{channelId}/docs/{docId}/comments",
+ path: {
+ channelId: channelId,
+ docId: docId,
+ },
+ body: requestBody,
+ mediaType: "application/json",
+ },
+ );
+ }
- /**
- * Get a doc's comments
- * @returns any Success
- * @throws ApiError
- */
- public docCommentReadMany({ channelId, docId }: { channelId: string; docId: number }): CancelablePromise<{
- docComments: Array;
- }> {
- return this.httpRequest.request({
- method: "GET",
- url: "/channels/{channelId}/docs/{docId}/comments",
- path: {
- channelId: channelId,
- docId: docId,
- },
- });
- }
+ /**
+ * Get a doc's comments
+ * @returns any Success
+ * @throws ApiError
+ */
+ public docCommentReadMany({
+ channelId,
+ docId,
+ }: {
+ channelId: string;
+ docId: number;
+ }): CancelablePromise<{
+ docComments: Array;
+ }> {
+ return this.httpRequest.request(
+ {
+ method: "GET",
+ url: "/channels/{channelId}/docs/{docId}/comments",
+ path: {
+ channelId: channelId,
+ docId: docId,
+ },
+ },
+ );
+ }
- /**
- * Get a comment on a doc
- * @returns any Success
- * @throws ApiError
- */
- public docCommentRead({ channelId, docId, docCommentId }: { channelId: string; docId: number; docCommentId: number }): CancelablePromise<{
- docComment: DocComment;
- }> {
- return this.httpRequest.request({
- method: "GET",
- url: "/channels/{channelId}/docs/{docId}/comments/{docCommentId}",
- path: {
- channelId: channelId,
- docId: docId,
- docCommentId: docCommentId,
- },
- });
- }
+ /**
+ * Get a comment on a doc
+ * @returns any Success
+ * @throws ApiError
+ */
+ public docCommentRead({
+ channelId,
+ docId,
+ docCommentId,
+ }: {
+ channelId: string;
+ docId: number;
+ docCommentId: number;
+ }): CancelablePromise<{
+ docComment: DocComment;
+ }> {
+ return this.httpRequest.request(
+ {
+ method: "GET",
+ url: "/channels/{channelId}/docs/{docId}/comments/{docCommentId}",
+ path: {
+ channelId: channelId,
+ docId: docId,
+ docCommentId: docCommentId,
+ },
+ },
+ );
+ }
- /**
- * Update a doc comment
- * @returns any Success
- * @throws ApiError
- */
- public docCommentUpdate({
- channelId,
- docId,
- docCommentId,
- requestBody,
- }: {
- channelId: string;
- docId: number;
- docCommentId: number;
- requestBody: {
- /**
- * The content of the doc comment
- */
- content: string;
- };
- }): CancelablePromise<{
- docComment: DocComment;
- }> {
- return this.httpRequest.request({
- method: "PATCH",
- url: "/channels/{channelId}/docs/{docId}/comments/{docCommentId}",
- path: {
- channelId: channelId,
- docId: docId,
- docCommentId: docCommentId,
- },
- body: requestBody,
- mediaType: "application/json",
- });
- }
+ /**
+ * Update a doc comment
+ * @returns any Success
+ * @throws ApiError
+ */
+ public docCommentUpdate({
+ channelId,
+ docId,
+ docCommentId,
+ requestBody,
+ }: {
+ channelId: string;
+ docId: number;
+ docCommentId: number;
+ requestBody: {
+ /**
+ * The content of the doc comment
+ */
+ content: string;
+ };
+ }): CancelablePromise<{
+ docComment: DocComment;
+ }> {
+ return this.httpRequest.request(
+ {
+ method: "PATCH",
+ url: "/channels/{channelId}/docs/{docId}/comments/{docCommentId}",
+ path: {
+ channelId: channelId,
+ docId: docId,
+ docCommentId: docCommentId,
+ },
+ body: requestBody,
+ mediaType: "application/json",
+ },
+ );
+ }
- /**
- * Delete a doc comment
- * @returns void
- * @throws ApiError
- */
- public docCommentDelete({ channelId, docId, docCommentId }: { channelId: string; docId: number; docCommentId: number }): CancelablePromise {
- return this.httpRequest.request({
- method: "DELETE",
- url: "/channels/{channelId}/docs/{docId}/comments/{docCommentId}",
- path: {
- channelId: channelId,
- docId: docId,
- docCommentId: docCommentId,
- },
- });
- }
+ /**
+ * Delete a doc comment
+ * @returns void
+ * @throws ApiError
+ */
+ public docCommentDelete({
+ channelId,
+ docId,
+ docCommentId,
+ }: {
+ channelId: string;
+ docId: number;
+ docCommentId: number;
+ }): CancelablePromise {
+ return this.httpRequest.request(
+ {
+ method: "DELETE",
+ url: "/channels/{channelId}/docs/{docId}/comments/{docCommentId}",
+ path: {
+ channelId: channelId,
+ docId: docId,
+ docCommentId: docCommentId,
+ },
+ },
+ );
+ }
}
diff --git a/packages/api/lib/generated/router/services/DocsService.ts b/packages/api/lib/generated/router/services/DocsService.ts
index f9839393..9fb3749b 100644
--- a/packages/api/lib/generated/router/services/DocsService.ts
+++ b/packages/api/lib/generated/router/services/DocsService.ts
@@ -4,136 +4,173 @@
/* eslint-disable */
import type { Doc } from "../models/Doc";
-import type { CancelablePromise } from "../core/CancelablePromise";
import type { BaseHttpRequest } from "../core/BaseHttpRequest";
+import type { CancelablePromise } from "../core/CancelablePromise";
export class DocsService {
- constructor(public readonly httpRequest: BaseHttpRequest) {}
+ constructor(
+ public readonly httpRequest: BaseHttpRequest,
+ ) {}
- /**
- * Create a doc
- * @returns any Success
- * @throws ApiError
- */
- public docCreate({
- channelId,
- requestBody,
- }: {
- channelId: string;
- requestBody: {
- /**
- * The title of the doc
- */
- title: string;
- /**
- * The content of the doc
- */
- content: Record | string;
- };
- }): CancelablePromise<{
- doc: Doc;
- }> {
- return this.httpRequest.request({
- method: "POST",
- url: "/channels/{channelId}/docs",
- path: {
- channelId: channelId,
- },
- body: requestBody,
- mediaType: "application/json",
- });
- }
+ /**
+ * Create a doc
+ * @returns any Success
+ * @throws ApiError
+ */
+ public docCreate({
+ channelId,
+ requestBody,
+ }: {
+ channelId: string;
+ requestBody: {
+ /**
+ * The title of the doc
+ */
+ title: string;
+ /**
+ * The content of the doc
+ */
+ content:
+ | Record<
+ string,
+ any
+ >
+ | string;
+ };
+ }): CancelablePromise<{
+ doc: Doc;
+ }> {
+ return this.httpRequest.request(
+ {
+ method: "POST",
+ url: "/channels/{channelId}/docs",
+ path: {
+ channelId: channelId,
+ },
+ body: requestBody,
+ mediaType: "application/json",
+ },
+ );
+ }
- /**
- * Get docs
- * Results returned will be ordered descending by the doc's `updatedAt`. `before` will filter based on the doc's `updatedAt`
- * @returns any Success
- * @throws ApiError
- */
- public docReadMany({ channelId, before, limit = 25 }: { channelId: string; before?: string; limit?: number }): CancelablePromise<{
- docs: Array;
- }> {
- return this.httpRequest.request({
- method: "GET",
- url: "/channels/{channelId}/docs",
- path: {
- channelId: channelId,
- },
- query: {
- before: before,
- limit: limit,
- },
- });
- }
+ /**
+ * Get docs
+ * Results returned will be ordered descending by the doc's `updatedAt`. `before` will filter based on the doc's `updatedAt`
+ * @returns any Success
+ * @throws ApiError
+ */
+ public docReadMany({
+ channelId,
+ before,
+ limit = 25,
+ }: {
+ channelId: string;
+ before?: string;
+ limit?: number;
+ }): CancelablePromise<{
+ docs: Array;
+ }> {
+ return this.httpRequest.request(
+ {
+ method: "GET",
+ url: "/channels/{channelId}/docs",
+ path: {
+ channelId: channelId,
+ },
+ query: {
+ before: before,
+ limit: limit,
+ },
+ },
+ );
+ }
- /**
- * Get a doc
- * @returns any Success
- * @throws ApiError
- */
- public docRead({ channelId, docId }: { channelId: string; docId: number }): CancelablePromise<{
- doc: Doc;
- }> {
- return this.httpRequest.request({
- method: "GET",
- url: "/channels/{channelId}/docs/{docId}",
- path: {
- channelId: channelId,
- docId: docId,
- },
- });
- }
+ /**
+ * Get a doc
+ * @returns any Success
+ * @throws ApiError
+ */
+ public docRead({
+ channelId,
+ docId,
+ }: {
+ channelId: string;
+ docId: number;
+ }): CancelablePromise<{
+ doc: Doc;
+ }> {
+ return this.httpRequest.request(
+ {
+ method: "GET",
+ url: "/channels/{channelId}/docs/{docId}",
+ path: {
+ channelId: channelId,
+ docId: docId,
+ },
+ },
+ );
+ }
- /**
- * Update a doc
- * @returns any Success
- * @throws ApiError
- */
- public docUpdate({
- channelId,
- docId,
- requestBody,
- }: {
- channelId: string;
- docId: number;
- requestBody: {
- /**
- * The title of the doc
- */
- title: string;
- /**
- * The content of the doc
- */
- content: string;
- };
- }): CancelablePromise<{
- doc: Doc;
- }> {
- return this.httpRequest.request({
- method: "PUT",
- url: "/channels/{channelId}/docs/{docId}",
- path: {
- channelId: channelId,
- docId: docId,
- },
- body: requestBody,
- mediaType: "application/json",
- });
- }
+ /**
+ * Update a doc
+ * @returns any Success
+ * @throws ApiError
+ */
+ public docUpdate({
+ channelId,
+ docId,
+ requestBody,
+ }: {
+ channelId: string;
+ docId: number;
+ requestBody: {
+ /**
+ * The title of the doc
+ */
+ title: string;
+ /**
+ * The content of the doc
+ */
+ content: string;
+ };
+ }): CancelablePromise<{
+ doc: Doc;
+ }> {
+ return this.httpRequest.request(
+ {
+ method: "PUT",
+ url: "/channels/{channelId}/docs/{docId}",
+ path: {
+ channelId: channelId,
+ docId: docId,
+ },
+ body: requestBody,
+ mediaType: "application/json",
+ },
+ );
+ }
- /**
- * Delete a doc
- * @returns void
- * @throws ApiError
- */
- public docDelete({ channelId, docId }: { channelId: string; docId: number }): CancelablePromise {
- return this.httpRequest.request({
- method: "DELETE",
- url: "/channels/{channelId}/docs/{docId}",
- path: {
- channelId: channelId,
- docId: docId,
- },
- });
- }
+ /**
+ * Delete a doc
+ * @returns void
+ * @throws ApiError
+ */
+ public docDelete({
+ channelId,
+ docId,
+ }: {
+ channelId: string;
+ docId: number;
+ }): CancelablePromise {
+ return this.httpRequest.request(
+ {
+ method: "DELETE",
+ url: "/channels/{channelId}/docs/{docId}",
+ path: {
+ channelId: channelId,
+ docId: docId,
+ },
+ },
+ );
+ }
}
diff --git a/packages/api/lib/generated/router/services/ForumCommentsService.ts b/packages/api/lib/generated/router/services/ForumCommentsService.ts
index 481df100..5c5c5eb7 100644
--- a/packages/api/lib/generated/router/services/ForumCommentsService.ts
+++ b/packages/api/lib/generated/router/services/ForumCommentsService.ts
@@ -4,132 +4,166 @@
/* eslint-disable */
import type { ForumTopicComment } from "../models/ForumTopicComment";
-import type { CancelablePromise } from "../core/CancelablePromise";
import type { BaseHttpRequest } from "../core/BaseHttpRequest";
+import type { CancelablePromise } from "../core/CancelablePromise";
export class ForumCommentsService {
- constructor(public readonly httpRequest: BaseHttpRequest) {}
+ constructor(
+ public readonly httpRequest: BaseHttpRequest,
+ ) {}
- /**
- * Create a forum topic comment
- * @returns any Success
- * @throws ApiError
- */
- public forumTopicCommentCreate({
- channelId,
- forumTopicId,
- requestBody,
- }: {
- channelId: string;
- forumTopicId: number;
- requestBody: {
- /**
- * The content of the forum topic comment
- */
- content: string;
- };
- }): CancelablePromise<{
- forumTopicComment: ForumTopicComment;
- }> {
- return this.httpRequest.request({
- method: "POST",
- url: "/channels/{channelId}/topics/{forumTopicId}/comments",
- path: {
- channelId: channelId,
- forumTopicId: forumTopicId,
- },
- body: requestBody,
- mediaType: "application/json",
- });
- }
+ /**
+ * Create a forum topic comment
+ * @returns any Success
+ * @throws ApiError
+ */
+ public forumTopicCommentCreate({
+ channelId,
+ forumTopicId,
+ requestBody,
+ }: {
+ channelId: string;
+ forumTopicId: number;
+ requestBody: {
+ /**
+ * The content of the forum topic comment
+ */
+ content: string;
+ };
+ }): CancelablePromise<{
+ forumTopicComment: ForumTopicComment;
+ }> {
+ return this.httpRequest.request(
+ {
+ method: "POST",
+ url: "/channels/{channelId}/topics/{forumTopicId}/comments",
+ path: {
+ channelId: channelId,
+ forumTopicId: forumTopicId,
+ },
+ body: requestBody,
+ mediaType: "application/json",
+ },
+ );
+ }
- /**
- * Get a forum topic's comments
- * @returns any Success
- * @throws ApiError
- */
- public forumTopicCommentReadMany({ channelId, forumTopicId }: { channelId: string; forumTopicId: number }): CancelablePromise<{
- forumTopicComments: Array;
- }> {
- return this.httpRequest.request({
- method: "GET",
- url: "/channels/{channelId}/topics/{forumTopicId}/comments",
- path: {
- channelId: channelId,
- forumTopicId: forumTopicId,
- },
- });
- }
+ /**
+ * Get a forum topic's comments
+ * @returns any Success
+ * @throws ApiError
+ */
+ public forumTopicCommentReadMany({
+ channelId,
+ forumTopicId,
+ }: {
+ channelId: string;
+ forumTopicId: number;
+ }): CancelablePromise<{
+ forumTopicComments: Array;
+ }> {
+ return this.httpRequest.request(
+ {
+ method: "GET",
+ url: "/channels/{channelId}/topics/{forumTopicId}/comments",
+ path: {
+ channelId: channelId,
+ forumTopicId: forumTopicId,
+ },
+ },
+ );
+ }
- /**
- * Get a comment on a forum topic
- * @returns any Success
- * @throws ApiError
- */
- public forumTopicCommentRead({ channelId, forumTopicId, forumTopicCommentId }: { channelId: string; forumTopicId: number; forumTopicCommentId: number }): CancelablePromise<{
- forumTopicComment: ForumTopicComment;
- }> {
- return this.httpRequest.request({
- method: "GET",
- url: "/channels/{channelId}/topics/{forumTopicId}/comments/{forumTopicCommentId}",
- path: {
- channelId: channelId,
- forumTopicId: forumTopicId,
- forumTopicCommentId: forumTopicCommentId,
- },
- });
- }
+ /**
+ * Get a comment on a forum topic
+ * @returns any Success
+ * @throws ApiError
+ */
+ public forumTopicCommentRead({
+ channelId,
+ forumTopicId,
+ forumTopicCommentId,
+ }: {
+ channelId: string;
+ forumTopicId: number;
+ forumTopicCommentId: number;
+ }): CancelablePromise<{
+ forumTopicComment: ForumTopicComment;
+ }> {
+ return this.httpRequest.request(
+ {
+ method: "GET",
+ url: "/channels/{channelId}/topics/{forumTopicId}/comments/{forumTopicCommentId}",
+ path: {
+ channelId: channelId,
+ forumTopicId: forumTopicId,
+ forumTopicCommentId: forumTopicCommentId,
+ },
+ },
+ );
+ }
- /**
- * Update a forum topic comment
- * @returns any Success
- * @throws ApiError
- */
- public forumTopicCommentUpdate({
- channelId,
- forumTopicId,
- forumTopicCommentId,
- requestBody,
- }: {
- channelId: string;
- forumTopicId: number;
- forumTopicCommentId: number;
- requestBody: {
- /**
- * The content of the forum topic
- */
- content?: string;
- };
- }): CancelablePromise<{
- forumTopicComment: ForumTopicComment;
- }> {
- return this.httpRequest.request({
- method: "PATCH",
- url: "/channels/{channelId}/topics/{forumTopicId}/comments/{forumTopicCommentId}",
- path: {
- channelId: channelId,
- forumTopicId: forumTopicId,
- forumTopicCommentId: forumTopicCommentId,
- },
- body: requestBody,
- mediaType: "application/json",
- });
- }
+ /**
+ * Update a forum topic comment
+ * @returns any Success
+ * @throws ApiError
+ */
+ public forumTopicCommentUpdate({
+ channelId,
+ forumTopicId,
+ forumTopicCommentId,
+ requestBody,
+ }: {
+ channelId: string;
+ forumTopicId: number;
+ forumTopicCommentId: number;
+ requestBody: {
+ /**
+ * The content of the forum topic
+ */
+ content?: string;
+ };
+ }): CancelablePromise<{
+ forumTopicComment: ForumTopicComment;
+ }> {
+ return this.httpRequest.request(
+ {
+ method: "PATCH",
+ url: "/channels/{channelId}/topics/{forumTopicId}/comments/{forumTopicCommentId}",
+ path: {
+ channelId: channelId,
+ forumTopicId: forumTopicId,
+ forumTopicCommentId: forumTopicCommentId,
+ },
+ body: requestBody,
+ mediaType: "application/json",
+ },
+ );
+ }
- /**
- * Delete a forum topic comment
- * @returns void
- * @throws ApiError
- */
- public forumTopicCommentDelete({ channelId, forumTopicId, forumTopicCommentId }: { channelId: string; forumTopicId: number; forumTopicCommentId: number }): CancelablePromise {
- return this.httpRequest.request({
- method: "DELETE",
- url: "/channels/{channelId}/topics/{forumTopicId}/comments/{forumTopicCommentId}",
- path: {
- channelId: channelId,
- forumTopicId: forumTopicId,
- forumTopicCommentId: forumTopicCommentId,
- },
- });
- }
+ /**
+ * Delete a forum topic comment
+ * @returns void
+ * @throws ApiError
+ */
+ public forumTopicCommentDelete({
+ channelId,
+ forumTopicId,
+ forumTopicCommentId,
+ }: {
+ channelId: string;
+ forumTopicId: number;
+ forumTopicCommentId: number;
+ }): CancelablePromise {
+ return this.httpRequest.request(
+ {
+ method: "DELETE",
+ url: "/channels/{channelId}/topics/{forumTopicId}/comments/{forumTopicCommentId}",
+ path: {
+ channelId: channelId,
+ forumTopicId: forumTopicId,
+ forumTopicCommentId: forumTopicCommentId,
+ },
+ },
+ );
+ }
}
diff --git a/packages/api/lib/generated/router/services/ForumsService.ts b/packages/api/lib/generated/router/services/ForumsService.ts
index ddcdafa3..69d4b092 100644
--- a/packages/api/lib/generated/router/services/ForumsService.ts
+++ b/packages/api/lib/generated/router/services/ForumsService.ts
@@ -5,199 +5,268 @@
import type { ForumTopic } from "../models/ForumTopic";
import type { ForumTopicSummary } from "../models/ForumTopicSummary";
-import type { CancelablePromise } from "../core/CancelablePromise";
import type { BaseHttpRequest } from "../core/BaseHttpRequest";
+import type { CancelablePromise } from "../core/CancelablePromise";
export class ForumsService {
- constructor(public readonly httpRequest: BaseHttpRequest) {}
+ constructor(
+ public readonly httpRequest: BaseHttpRequest,
+ ) {}
- /**
- * Create a topic in a forum
- * @returns any Success
- * @throws ApiError
- */
- public forumTopicCreate({
- channelId,
- requestBody,
- }: {
- channelId: string;
- requestBody: {
- /**
- * The title of the forum topic
- */
- title: string;
- /**
- * The content of the forum topic
- */
- content: Record | string;
- };
- }): CancelablePromise<{
- forumTopic: ForumTopic;
- }> {
- return this.httpRequest.request({
- method: "POST",
- url: "/channels/{channelId}/topics",
- path: {
- channelId: channelId,
- },
- body: requestBody,
- mediaType: "application/json",
- });
- }
+ /**
+ * Create a topic in a forum
+ * @returns any Success
+ * @throws ApiError
+ */
+ public forumTopicCreate({
+ channelId,
+ requestBody,
+ }: {
+ channelId: string;
+ requestBody: {
+ /**
+ * The title of the forum topic
+ */
+ title: string;
+ /**
+ * The content of the forum topic
+ */
+ content:
+ | Record<
+ string,
+ any
+ >
+ | string;
+ };
+ }): CancelablePromise<{
+ forumTopic: ForumTopic;
+ }> {
+ return this.httpRequest.request(
+ {
+ method: "POST",
+ url: "/channels/{channelId}/topics",
+ path: {
+ channelId: channelId,
+ },
+ body: requestBody,
+ mediaType: "application/json",
+ },
+ );
+ }
- /**
- * Get forum topics
- * @returns any Success
- * @throws ApiError
- */
- public forumTopicReadMany({ channelId, before, limit = 25 }: { channelId: string; before?: string; limit?: number }): CancelablePromise<{
- forumTopics: Array;
- }> {
- return this.httpRequest.request({
- method: "GET",
- url: "/channels/{channelId}/topics",
- path: {
- channelId: channelId,
- },
- query: {
- before: before,
- limit: limit,
- },
- });
- }
+ /**
+ * Get forum topics
+ * @returns any Success
+ * @throws ApiError
+ */
+ public forumTopicReadMany({
+ channelId,
+ before,
+ limit = 25,
+ }: {
+ channelId: string;
+ before?: string;
+ limit?: number;
+ }): CancelablePromise<{
+ forumTopics: Array;
+ }> {
+ return this.httpRequest.request(
+ {
+ method: "GET",
+ url: "/channels/{channelId}/topics",
+ path: {
+ channelId: channelId,
+ },
+ query: {
+ before: before,
+ limit: limit,
+ },
+ },
+ );
+ }
- /**
- * Get a forum topic
- * @returns any Success
- * @throws ApiError
- */
- public forumTopicRead({ channelId, forumTopicId }: { channelId: string; forumTopicId: number }): CancelablePromise<{
- forumTopic: ForumTopic;
- }> {
- return this.httpRequest.request({
- method: "GET",
- url: "/channels/{channelId}/topics/{forumTopicId}",
- path: {
- channelId: channelId,
- forumTopicId: forumTopicId,
- },
- });
- }
+ /**
+ * Get a forum topic
+ * @returns any Success
+ * @throws ApiError
+ */
+ public forumTopicRead({
+ channelId,
+ forumTopicId,
+ }: {
+ channelId: string;
+ forumTopicId: number;
+ }): CancelablePromise<{
+ forumTopic: ForumTopic;
+ }> {
+ return this.httpRequest.request(
+ {
+ method: "GET",
+ url: "/channels/{channelId}/topics/{forumTopicId}",
+ path: {
+ channelId: channelId,
+ forumTopicId: forumTopicId,
+ },
+ },
+ );
+ }
- /**
- * Update a forum topic
- * @returns any Success
- * @throws ApiError
- */
- public forumTopicUpdate({
- channelId,
- forumTopicId,
- requestBody,
- }: {
- channelId: string;
- forumTopicId: number;
- requestBody: {
- /**
- * The title of the forum topic
- */
- title?: string;
- /**
- * The content of the forum topic
- */
- content?: string;
- };
- }): CancelablePromise<{
- forumTopic: ForumTopic;
- }> {
- return this.httpRequest.request({
- method: "PATCH",
- url: "/channels/{channelId}/topics/{forumTopicId}",
- path: {
- channelId: channelId,
- forumTopicId: forumTopicId,
- },
- body: requestBody,
- mediaType: "application/json",
- });
- }
+ /**
+ * Update a forum topic
+ * @returns any Success
+ * @throws ApiError
+ */
+ public forumTopicUpdate({
+ channelId,
+ forumTopicId,
+ requestBody,
+ }: {
+ channelId: string;
+ forumTopicId: number;
+ requestBody: {
+ /**
+ * The title of the forum topic
+ */
+ title?: string;
+ /**
+ * The content of the forum topic
+ */
+ content?: string;
+ };
+ }): CancelablePromise<{
+ forumTopic: ForumTopic;
+ }> {
+ return this.httpRequest.request(
+ {
+ method: "PATCH",
+ url: "/channels/{channelId}/topics/{forumTopicId}",
+ path: {
+ channelId: channelId,
+ forumTopicId: forumTopicId,
+ },
+ body: requestBody,
+ mediaType: "application/json",
+ },
+ );
+ }
- /**
- * Delete a forum topic
- * @returns void
- * @throws ApiError
- */
- public forumTopicDelete({ channelId, forumTopicId }: { channelId: string; forumTopicId: number }): CancelablePromise {
- return this.httpRequest.request({
- method: "DELETE",
- url: "/channels/{channelId}/topics/{forumTopicId}",
- path: {
- channelId: channelId,
- forumTopicId: forumTopicId,
- },
- });
- }
+ /**
+ * Delete a forum topic
+ * @returns void
+ * @throws ApiError
+ */
+ public forumTopicDelete({
+ channelId,
+ forumTopicId,
+ }: {
+ channelId: string;
+ forumTopicId: number;
+ }): CancelablePromise {
+ return this.httpRequest.request(
+ {
+ method: "DELETE",
+ url: "/channels/{channelId}/topics/{forumTopicId}",
+ path: {
+ channelId: channelId,
+ forumTopicId: forumTopicId,
+ },
+ },
+ );
+ }
- /**
- * Pin a forum topic
- * @returns void
- * @throws ApiError
- */
- public forumTopicPin({ channelId, forumTopicId }: { channelId: string; forumTopicId: number }): CancelablePromise {
- return this.httpRequest.request({
- method: "PUT",
- url: "/channels/{channelId}/topics/{forumTopicId}/pin",
- path: {
- channelId: channelId,
- forumTopicId: forumTopicId,
- },
- });
- }
+ /**
+ * Pin a forum topic
+ * @returns void
+ * @throws ApiError
+ */
+ public forumTopicPin({
+ channelId,
+ forumTopicId,
+ }: {
+ channelId: string;
+ forumTopicId: number;
+ }): CancelablePromise {
+ return this.httpRequest.request(
+ {
+ method: "PUT",
+ url: "/channels/{channelId}/topics/{forumTopicId}/pin",
+ path: {
+ channelId: channelId,
+ forumTopicId: forumTopicId,
+ },
+ },
+ );
+ }
- /**
- * Unpin a forum topic
- * @returns void
- * @throws ApiError
- */
- public forumTopicUnpin({ channelId, forumTopicId }: { channelId: string; forumTopicId: number }): CancelablePromise {
- return this.httpRequest.request({
- method: "DELETE",
- url: "/channels/{channelId}/topics/{forumTopicId}/pin",
- path: {
- channelId: channelId,
- forumTopicId: forumTopicId,
- },
- });
- }
+ /**
+ * Unpin a forum topic
+ * @returns void
+ * @throws ApiError
+ */
+ public forumTopicUnpin({
+ channelId,
+ forumTopicId,
+ }: {
+ channelId: string;
+ forumTopicId: number;
+ }): CancelablePromise {
+ return this.httpRequest.request(
+ {
+ method: "DELETE",
+ url: "/channels/{channelId}/topics/{forumTopicId}/pin",
+ path: {
+ channelId: channelId,
+ forumTopicId: forumTopicId,
+ },
+ },
+ );
+ }
- /**
- * Lock a forum topic
- * @returns void
- * @throws ApiError
- */
- public forumTopicLock({ channelId, forumTopicId }: { channelId: string; forumTopicId: number }): CancelablePromise {
- return this.httpRequest.request({
- method: "PUT",
- url: "/channels/{channelId}/topics/{forumTopicId}/lock",
- path: {
- channelId: channelId,
- forumTopicId: forumTopicId,
- },
- });
- }
+ /**
+ * Lock a forum topic
+ * @returns void
+ * @throws ApiError
+ */
+ public forumTopicLock({
+ channelId,
+ forumTopicId,
+ }: {
+ channelId: string;
+ forumTopicId: number;
+ }): CancelablePromise {
+ return this.httpRequest.request(
+ {
+ method: "PUT",
+ url: "/channels/{channelId}/topics/{forumTopicId}/lock",
+ path: {
+ channelId: channelId,
+ forumTopicId: forumTopicId,
+ },
+ },
+ );
+ }
- /**
- * Unlock a forum topic
- * @returns void
- * @throws ApiError
- */
- public forumTopicUnlock({ channelId, forumTopicId }: { channelId: string; forumTopicId: number }): CancelablePromise {
- return this.httpRequest.request({
- method: "DELETE",
- url: "/channels/{channelId}/topics/{forumTopicId}/lock",
- path: {
- channelId: channelId,
- forumTopicId: forumTopicId,
- },
- });
- }
+ /**
+ * Unlock a forum topic
+ * @returns void
+ * @throws ApiError
+ */
+ public forumTopicUnlock({
+ channelId,
+ forumTopicId,
+ }: {
+ channelId: string;
+ forumTopicId: number;
+ }): CancelablePromise {
+ return this.httpRequest.request(
+ {
+ method: "DELETE",
+ url: "/channels/{channelId}/topics/{forumTopicId}/lock",
+ path: {
+ channelId: channelId,
+ forumTopicId: forumTopicId,
+ },
+ },
+ );
+ }
}
diff --git a/packages/api/lib/generated/router/services/GroupMembershipService.ts b/packages/api/lib/generated/router/services/GroupMembershipService.ts
index 9776e48e..bfd86861 100644
--- a/packages/api/lib/generated/router/services/GroupMembershipService.ts
+++ b/packages/api/lib/generated/router/services/GroupMembershipService.ts
@@ -1,66 +1,76 @@
+import type { BaseHttpRequest } from "../core/BaseHttpRequest";
/* generated using openapi-typescript-codegen -- do no edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { CancelablePromise } from "../core/CancelablePromise";
-import type { BaseHttpRequest } from "../core/BaseHttpRequest";
export class GroupMembershipService {
- constructor(public readonly httpRequest: BaseHttpRequest) {}
+ constructor(
+ public readonly httpRequest: BaseHttpRequest,
+ ) {}
- /**
- * Add member to group
- * @returns void
- * @throws ApiError
- */
- public groupMembershipCreate({
- groupId,
- userId,
- }: {
- /**
- * Group ID to add the member to
- */
- groupId: string;
- /**
- * Member ID to add to the group
- */
- userId: string | "@me";
- }): CancelablePromise {
- return this.httpRequest.request({
- method: "PUT",
- url: "/groups/{groupId}/members/{userId}",
- path: {
- groupId: groupId,
- userId: userId,
- },
- });
- }
+ /**
+ * Add member to group
+ * @returns void
+ * @throws ApiError
+ */
+ public groupMembershipCreate({
+ groupId,
+ userId,
+ }: {
+ /**
+ * Group ID to add the member to
+ */
+ groupId: string;
+ /**
+ * Member ID to add to the group
+ */
+ userId:
+ | string
+ | "@me";
+ }): CancelablePromise {
+ return this.httpRequest.request(
+ {
+ method: "PUT",
+ url: "/groups/{groupId}/members/{userId}",
+ path: {
+ groupId: groupId,
+ userId: userId,
+ },
+ },
+ );
+ }
- /**
- * Remove member from group
- * @returns void
- * @throws ApiError
- */
- public groupMembershipDelete({
- groupId,
- userId,
- }: {
- /**
- * Group ID to remove the member from
- */
- groupId: string;
- /**
- * Member ID to remove from the group
- */
- userId: string | "@me";
- }): CancelablePromise {
- return this.httpRequest.request({
- method: "DELETE",
- url: "/groups/{groupId}/members/{userId}",
- path: {
- groupId: groupId,
- userId: userId,
- },
- });
- }
+ /**
+ * Remove member from group
+ * @returns void
+ * @throws ApiError
+ */
+ public groupMembershipDelete({
+ groupId,
+ userId,
+ }: {
+ /**
+ * Group ID to remove the member from
+ */
+ groupId: string;
+ /**
+ * Member ID to remove from the group
+ */
+ userId:
+ | string
+ | "@me";
+ }): CancelablePromise {
+ return this.httpRequest.request(
+ {
+ method: "DELETE",
+ url: "/groups/{groupId}/members/{userId}",
+ path: {
+ groupId: groupId,
+ userId: userId,
+ },
+ },
+ );
+ }
}
diff --git a/packages/api/lib/generated/router/services/GroupsService.ts b/packages/api/lib/generated/router/services/GroupsService.ts
index 92217389..bda03b9a 100644
--- a/packages/api/lib/generated/router/services/GroupsService.ts
+++ b/packages/api/lib/generated/router/services/GroupsService.ts
@@ -4,151 +4,179 @@
/* eslint-disable */
import type { Group } from "../models/Group";
-import type { CancelablePromise } from "../core/CancelablePromise";
import type { BaseHttpRequest } from "../core/BaseHttpRequest";
+import type { CancelablePromise } from "../core/CancelablePromise";
export class GroupsService {
- constructor(public readonly httpRequest: BaseHttpRequest) {}
+ constructor(
+ public readonly httpRequest: BaseHttpRequest,
+ ) {}
- /**
- * Create a group
- * Note: only 100 unarchived groups can exist on a server at any time
- * @returns any Success
- * @throws ApiError
- */
- public groupCreate({
- serverId,
- requestBody,
- }: {
- serverId: string;
- requestBody: {
- /**
- * The name of the group
- */
- name: string;
- /**
- * The description associated with the group
- */
- description?: string;
- /**
- * The emote to associate with the group
- */
- emoteId?: number;
- /**
- * Is this group open for anyone to join?
- */
- isPublic?: boolean;
- };
- }): CancelablePromise<{
- group: Group;
- }> {
- return this.httpRequest.request({
- method: "POST",
- url: "/servers/{serverId}/groups",
- path: {
- serverId: serverId,
- },
- body: requestBody,
- mediaType: "application/json",
- });
- }
+ /**
+ * Create a group
+ * Note: only 100 unarchived groups can exist on a server at any time
+ * @returns any Success
+ * @throws ApiError
+ */
+ public groupCreate({
+ serverId,
+ requestBody,
+ }: {
+ serverId: string;
+ requestBody: {
+ /**
+ * The name of the group
+ */
+ name: string;
+ /**
+ * The description associated with the group
+ */
+ description?: string;
+ /**
+ * The emote to associate with the group
+ */
+ emoteId?: number;
+ /**
+ * Is this group open for anyone to join?
+ */
+ isPublic?: boolean;
+ };
+ }): CancelablePromise<{
+ group: Group;
+ }> {
+ return this.httpRequest.request(
+ {
+ method: "POST",
+ url: "/servers/{serverId}/groups",
+ path: {
+ serverId: serverId,
+ },
+ body: requestBody,
+ mediaType: "application/json",
+ },
+ );
+ }
- /**
- * Get groups
- * @returns any Success
- * @throws ApiError
- */
- public groupReadMany({ serverId }: { serverId: string }): CancelablePromise<{
- groups: Array;
- }> {
- return this.httpRequest.request({
- method: "GET",
- url: "/servers/{serverId}/groups",
- path: {
- serverId: serverId,
- },
- });
- }
+ /**
+ * Get groups
+ * @returns any Success
+ * @throws ApiError
+ */
+ public groupReadMany({
+ serverId,
+ }: {
+ serverId: string;
+ }): CancelablePromise<{
+ groups: Array;
+ }> {
+ return this.httpRequest.request(
+ {
+ method: "GET",
+ url: "/servers/{serverId}/groups",
+ path: {
+ serverId: serverId,
+ },
+ },
+ );
+ }
- /**
- * Get a group
- * @returns any Success
- * @throws ApiError
- */
- public groupRead({ serverId, groupId }: { serverId: string; groupId: string }): CancelablePromise<{
- group: Group;
- }> {
- return this.httpRequest.request({
- method: "GET",
- url: "/servers/{serverId}/groups/{groupId}",
- path: {
- serverId: serverId,
- groupId: groupId,
- },
- });
- }
+ /**
+ * Get a group
+ * @returns any Success
+ * @throws ApiError
+ */
+ public groupRead({
+ serverId,
+ groupId,
+ }: {
+ serverId: string;
+ groupId: string;
+ }): CancelablePromise<{
+ group: Group;
+ }> {
+ return this.httpRequest.request(
+ {
+ method: "GET",
+ url: "/servers/{serverId}/groups/{groupId}",
+ path: {
+ serverId: serverId,
+ groupId: groupId,
+ },
+ },
+ );
+ }
- /**
- * Update a group
- * @returns any Success
- * @throws ApiError
- */
- public groupUpdate({
- serverId,
- groupId,
- requestBody,
- }: {
- serverId: string;
- groupId: string;
- requestBody: {
- /**
- * The name of the group
- */
- name?: string;
- /**
- * The description associated with the group
- * **Note** - this property cannot be modified on a home group
- */
- description?: string;
- /**
- * The emote to associate with the group
- */
- emoteId?: number;
- /**
- * Is this group open for anyone to join?
- * **Note** - this property cannot be modified on a home group
- */
- isPublic?: boolean;
- };
- }): CancelablePromise<{
- group: Group;
- }> {
- return this.httpRequest.request({
- method: "PATCH",
- url: "/servers/{serverId}/groups/{groupId}",
- path: {
- serverId: serverId,
- groupId: groupId,
- },
- body: requestBody,
- mediaType: "application/json",
- });
- }
+ /**
+ * Update a group
+ * @returns any Success
+ * @throws ApiError
+ */
+ public groupUpdate({
+ serverId,
+ groupId,
+ requestBody,
+ }: {
+ serverId: string;
+ groupId: string;
+ requestBody: {
+ /**
+ * The name of the group
+ */
+ name?: string;
+ /**
+ * The description associated with the group
+ * **Note** - this property cannot be modified on a home group
+ */
+ description?: string;
+ /**
+ * The emote to associate with the group
+ */
+ emoteId?: number;
+ /**
+ * Is this group open for anyone to join?
+ * **Note** - this property cannot be modified on a home group
+ */
+ isPublic?: boolean;
+ };
+ }): CancelablePromise<{
+ group: Group;
+ }> {
+ return this.httpRequest.request(
+ {
+ method: "PATCH",
+ url: "/servers/{serverId}/groups/{groupId}",
+ path: {
+ serverId: serverId,
+ groupId: groupId,
+ },
+ body: requestBody,
+ mediaType: "application/json",
+ },
+ );
+ }
- /**
- * Delete a group
- * Note: you cannot delete the home group
- * @returns void
- * @throws ApiError
- */
- public groupDelete({ serverId, groupId }: { serverId: string; groupId: string }): CancelablePromise {
- return this.httpRequest.request({
- method: "DELETE",
- url: "/servers/{serverId}/groups/{groupId}",
- path: {
- serverId: serverId,
- groupId: groupId,
- },
- });
- }
+ /**
+ * Delete a group
+ * Note: you cannot delete the home group
+ * @returns void
+ * @throws ApiError
+ */
+ public groupDelete({
+ serverId,
+ groupId,
+ }: {
+ serverId: string;
+ groupId: string;
+ }): CancelablePromise {
+ return this.httpRequest.request(
+ {
+ method: "DELETE",
+ url: "/servers/{serverId}/groups/{groupId}",
+ path: {
+ serverId: serverId,
+ groupId: groupId,
+ },
+ },
+ );
+ }
}
diff --git a/packages/api/lib/generated/router/services/ListItemsService.ts b/packages/api/lib/generated/router/services/ListItemsService.ts
index 2e2cc687..5975b092 100644
--- a/packages/api/lib/generated/router/services/ListItemsService.ts
+++ b/packages/api/lib/generated/router/services/ListItemsService.ts
@@ -5,167 +5,221 @@
import type { ListItem } from "../models/ListItem";
import type { ListItemSummary } from "../models/ListItemSummary";
-import type { CancelablePromise } from "../core/CancelablePromise";
import type { BaseHttpRequest } from "../core/BaseHttpRequest";
+import type { CancelablePromise } from "../core/CancelablePromise";
export class ListItemsService {
- constructor(public readonly httpRequest: BaseHttpRequest) {}
+ constructor(
+ public readonly httpRequest: BaseHttpRequest,
+ ) {}
- /**
- * Create a list item
- * @returns any Success
- * @throws ApiError
- */
- public listItemCreate({
- channelId,
- requestBody,
- }: {
- channelId: string;
- requestBody: {
- /**
- * The message of the list item
- */
- message: Record | string;
- note?: {
- /**
- * The note of the list item
- */
- content: Record | string;
- };
- };
- }): CancelablePromise<{
- listItem: ListItem;
- }> {
- return this.httpRequest.request({
- method: "POST",
- url: "/channels/{channelId}/items",
- path: {
- channelId: channelId,
- },
- body: requestBody,
- mediaType: "application/json",
- });
- }
+ /**
+ * Create a list item
+ * @returns any Success
+ * @throws ApiError
+ */
+ public listItemCreate({
+ channelId,
+ requestBody,
+ }: {
+ channelId: string;
+ requestBody: {
+ /**
+ * The message of the list item
+ */
+ message:
+ | Record<
+ string,
+ any
+ >
+ | string;
+ note?: {
+ /**
+ * The note of the list item
+ */
+ content:
+ | Record<
+ string,
+ any
+ >
+ | string;
+ };
+ };
+ }): CancelablePromise<{
+ listItem: ListItem;
+ }> {
+ return this.httpRequest.request(
+ {
+ method: "POST",
+ url: "/channels/{channelId}/items",
+ path: {
+ channelId: channelId,
+ },
+ body: requestBody,
+ mediaType: "application/json",
+ },
+ );
+ }
- /**
- * Get list items within a channel
- * @returns any Success
- * @throws ApiError
- */
- public listItemReadMany({ channelId }: { channelId: string }): CancelablePromise<{
- listItems: Array;
- }> {
- return this.httpRequest.request({
- method: "GET",
- url: "/channels/{channelId}/items",
- path: {
- channelId: channelId,
- },
- });
- }
+ /**
+ * Get list items within a channel
+ * @returns any Success
+ * @throws ApiError
+ */
+ public listItemReadMany({
+ channelId,
+ }: {
+ channelId: string;
+ }): CancelablePromise<{
+ listItems: Array;
+ }> {
+ return this.httpRequest.request(
+ {
+ method: "GET",
+ url: "/channels/{channelId}/items",
+ path: {
+ channelId: channelId,
+ },
+ },
+ );
+ }
- /**
- * Get a list item
- * @returns any Success
- * @throws ApiError
- */
- public listItemRead({ channelId, listItemId }: { channelId: string; listItemId: string }): CancelablePromise<{
- listItem: ListItem;
- }> {
- return this.httpRequest.request({
- method: "GET",
- url: "/channels/{channelId}/items/{listItemId}",
- path: {
- channelId: channelId,
- listItemId: listItemId,
- },
- });
- }
+ /**
+ * Get a list item
+ * @returns any Success
+ * @throws ApiError
+ */
+ public listItemRead({
+ channelId,
+ listItemId,
+ }: {
+ channelId: string;
+ listItemId: string;
+ }): CancelablePromise<{
+ listItem: ListItem;
+ }> {
+ return this.httpRequest.request(
+ {
+ method: "GET",
+ url: "/channels/{channelId}/items/{listItemId}",
+ path: {
+ channelId: channelId,
+ listItemId: listItemId,
+ },
+ },
+ );
+ }
- /**
- * Update a list item
- * @returns any Success
- * @throws ApiError
- */
- public listItemUpdate({
- channelId,
- listItemId,
- requestBody,
- }: {
- channelId: string;
- listItemId: string;
- requestBody: {
- /**
- * The message of the list item
- */
- message?: string;
- note?: {
- /**
- * The note of the list item
- */
- content: string;
- } | null;
- };
- }): CancelablePromise<{
- listItem: ListItem;
- }> {
- return this.httpRequest.request({
- method: "PATCH",
- url: "/channels/{channelId}/items/{listItemId}",
- path: {
- channelId: channelId,
- listItemId: listItemId,
- },
- body: requestBody,
- mediaType: "application/json",
- });
- }
+ /**
+ * Update a list item
+ * @returns any Success
+ * @throws ApiError
+ */
+ public listItemUpdate({
+ channelId,
+ listItemId,
+ requestBody,
+ }: {
+ channelId: string;
+ listItemId: string;
+ requestBody: {
+ /**
+ * The message of the list item
+ */
+ message?: string;
+ note?: {
+ /**
+ * The note of the list item
+ */
+ content: string;
+ } | null;
+ };
+ }): CancelablePromise<{
+ listItem: ListItem;
+ }> {
+ return this.httpRequest.request(
+ {
+ method: "PATCH",
+ url: "/channels/{channelId}/items/{listItemId}",
+ path: {
+ channelId: channelId,
+ listItemId: listItemId,
+ },
+ body: requestBody,
+ mediaType: "application/json",
+ },
+ );
+ }
- /**
- * Delete a list item
- * @returns void
- * @throws ApiError
- */
- public listItemDelete({ channelId, listItemId }: { channelId: string; listItemId: string }): CancelablePromise {
- return this.httpRequest.request({
- method: "DELETE",
- url: "/channels/{channelId}/items/{listItemId}",
- path: {
- channelId: channelId,
- listItemId: listItemId,
- },
- });
- }
+ /**
+ * Delete a list item
+ * @returns void
+ * @throws ApiError
+ */
+ public listItemDelete({
+ channelId,
+ listItemId,
+ }: {
+ channelId: string;
+ listItemId: string;
+ }): CancelablePromise {
+ return this.httpRequest.request(
+ {
+ method: "DELETE",
+ url: "/channels/{channelId}/items/{listItemId}",
+ path: {
+ channelId: channelId,
+ listItemId: listItemId,
+ },
+ },
+ );
+ }
- /**
- * Complete a list item
- * @returns void
- * @throws ApiError
- */
- public listItemCompleteCreate({ channelId, listItemId }: { channelId: string; listItemId: string }): CancelablePromise {
- return this.httpRequest.request({
- method: "POST",
- url: "/channels/{channelId}/items/{listItemId}/complete",
- path: {
- channelId: channelId,
- listItemId: listItemId,
- },
- });
- }
+ /**
+ * Complete a list item
+ * @returns void
+ * @throws ApiError
+ */
+ public listItemCompleteCreate({
+ channelId,
+ listItemId,
+ }: {
+ channelId: string;
+ listItemId: string;
+ }): CancelablePromise {
+ return this.httpRequest.request(
+ {
+ method: "POST",
+ url: "/channels/{channelId}/items/{listItemId}/complete",
+ path: {
+ channelId: channelId,
+ listItemId: listItemId,
+ },
+ },
+ );
+ }
- /**
- * Uncomplete a list item
- * @returns void
- * @throws ApiError
- */
- public listItemCompleteDelete({ channelId, listItemId }: { channelId: string; listItemId: string }): CancelablePromise {
- return this.httpRequest.request({
- method: "DELETE",
- url: "/channels/{channelId}/items/{listItemId}/complete",
- path: {
- channelId: channelId,
- listItemId: listItemId,
- },
- });
- }
+ /**
+ * Uncomplete a list item
+ * @returns void
+ * @throws ApiError
+ */
+ public listItemCompleteDelete({
+ channelId,
+ listItemId,
+ }: {
+ channelId: string;
+ listItemId: string;
+ }): CancelablePromise {
+ return this.httpRequest.request(
+ {
+ method: "DELETE",
+ url: "/channels/{channelId}/items/{listItemId}/complete",
+ path: {
+ channelId: channelId,
+ listItemId: listItemId,
+ },
+ },
+ );
+ }
}
diff --git a/packages/api/lib/generated/router/services/MemberBansService.ts b/packages/api/lib/generated/router/services/MemberBansService.ts
index 003d8c1b..f0d24702 100644
--- a/packages/api/lib/generated/router/services/MemberBansService.ts
+++ b/packages/api/lib/generated/router/services/MemberBansService.ts
@@ -4,116 +4,136 @@
/* eslint-disable */
import type { ServerMemberBan } from "../models/ServerMemberBan";
-import type { CancelablePromise } from "../core/CancelablePromise";
import type { BaseHttpRequest } from "../core/BaseHttpRequest";
+import type { CancelablePromise } from "../core/CancelablePromise";
export class MemberBansService {
- constructor(public readonly httpRequest: BaseHttpRequest) {}
+ constructor(
+ public readonly httpRequest: BaseHttpRequest,
+ ) {}
- /**
- * Create a server ban
- * Also known as banning a server member
- * @returns any Success
- * @throws ApiError
- */
- public serverMemberBanCreate({
- serverId,
- userId,
- requestBody,
- }: {
- serverId: string;
- /**
- * The ID of the user to ban from this server
- */
- userId: string | "@me";
- requestBody?: {
- /**
- * The reason for the ban
- */
- reason?: string;
- };
- }): CancelablePromise<{
- serverMemberBan: ServerMemberBan;
- }> {
- return this.httpRequest.request({
- method: "POST",
- url: "/servers/{serverId}/bans/{userId}",
- path: {
- serverId: serverId,
- userId: userId,
- },
- body: requestBody,
- mediaType: "application/json",
- });
- }
+ /**
+ * Create a server ban
+ * Also known as banning a server member
+ * @returns any Success
+ * @throws ApiError
+ */
+ public serverMemberBanCreate({
+ serverId,
+ userId,
+ requestBody,
+ }: {
+ serverId: string;
+ /**
+ * The ID of the user to ban from this server
+ */
+ userId:
+ | string
+ | "@me";
+ requestBody?: {
+ /**
+ * The reason for the ban
+ */
+ reason?: string;
+ };
+ }): CancelablePromise<{
+ serverMemberBan: ServerMemberBan;
+ }> {
+ return this.httpRequest.request(
+ {
+ method: "POST",
+ url: "/servers/{serverId}/bans/{userId}",
+ path: {
+ serverId: serverId,
+ userId: userId,
+ },
+ body: requestBody,
+ mediaType: "application/json",
+ },
+ );
+ }
- /**
- * Get a server ban
- * @returns any Success
- * @throws ApiError
- */
- public serverMemberBanRead({
- serverId,
- userId,
- }: {
- serverId: string;
- /**
- * The ID of the user to get a server ban for
- */
- userId: string | "@me";
- }): CancelablePromise<{
- serverMemberBan: ServerMemberBan;
- }> {
- return this.httpRequest.request({
- method: "GET",
- url: "/servers/{serverId}/bans/{userId}",
- path: {
- serverId: serverId,
- userId: userId,
- },
- });
- }
+ /**
+ * Get a server ban
+ * @returns any Success
+ * @throws ApiError
+ */
+ public serverMemberBanRead({
+ serverId,
+ userId,
+ }: {
+ serverId: string;
+ /**
+ * The ID of the user to get a server ban for
+ */
+ userId:
+ | string
+ | "@me";
+ }): CancelablePromise<{
+ serverMemberBan: ServerMemberBan;
+ }> {
+ return this.httpRequest.request(
+ {
+ method: "GET",
+ url: "/servers/{serverId}/bans/{userId}",
+ path: {
+ serverId: serverId,
+ userId: userId,
+ },
+ },
+ );
+ }
- /**
- * Delete a server ban
- * Also known as unbanning a server member
- * @returns void
- * @throws ApiError
- */
- public serverMemberBanDelete({
- serverId,
- userId,
- }: {
- serverId: string;
- /**
- * The ID of the user to unban from this server
- */
- userId: string | "@me";
- }): CancelablePromise {
- return this.httpRequest.request({
- method: "DELETE",
- url: "/servers/{serverId}/bans/{userId}",
- path: {
- serverId: serverId,
- userId: userId,
- },
- });
- }
+ /**
+ * Delete a server ban
+ * Also known as unbanning a server member
+ * @returns void
+ * @throws ApiError
+ */
+ public serverMemberBanDelete({
+ serverId,
+ userId,
+ }: {
+ serverId: string;
+ /**
+ * The ID of the user to unban from this server
+ */
+ userId:
+ | string
+ | "@me";
+ }): CancelablePromise {
+ return this.httpRequest.request(
+ {
+ method: "DELETE",
+ url: "/servers/{serverId}/bans/{userId}",
+ path: {
+ serverId: serverId,
+ userId: userId,
+ },
+ },
+ );
+ }
- /**
- * Get server bans
- * @returns any Success
- * @throws ApiError
- */
- public serverMemberBanReadMany({ serverId }: { serverId: string }): CancelablePromise<{
- serverMemberBans: Array;
- }> {
- return this.httpRequest.request({
- method: "GET",
- url: "/servers/{serverId}/bans",
- path: {
- serverId: serverId,
- },
- });
- }
+ /**
+ * Get server bans
+ * @returns any Success
+ * @throws ApiError
+ */
+ public serverMemberBanReadMany({
+ serverId,
+ }: {
+ serverId: string;
+ }): CancelablePromise<{
+ serverMemberBans: Array;
+ }> {
+ return this.httpRequest.request(
+ {
+ method: "GET",
+ url: "/servers/{serverId}/bans",
+ path: {
+ serverId: serverId,
+ },
+ },
+ );
+ }
}
diff --git a/packages/api/lib/generated/router/services/MembersService.ts b/packages/api/lib/generated/router/services/MembersService.ts
index 32189b5a..e301d43c 100644
--- a/packages/api/lib/generated/router/services/MembersService.ts
+++ b/packages/api/lib/generated/router/services/MembersService.ts
@@ -5,138 +5,168 @@
import type { ServerMember } from "../models/ServerMember";
import type { ServerMemberSummary } from "../models/ServerMemberSummary";
-import type { CancelablePromise } from "../core/CancelablePromise";
import type { BaseHttpRequest } from "../core/BaseHttpRequest";
+import type { CancelablePromise } from "../core/CancelablePromise";
export class MembersService {
- constructor(public readonly httpRequest: BaseHttpRequest) {}
+ constructor(
+ public readonly httpRequest: BaseHttpRequest,
+ ) {}
- /**
- * Update a member's nickname
- * @returns any Success
- * @throws ApiError
- */
- public memberNicknameUpdate({
- serverId,
- userId,
- requestBody,
- }: {
- serverId: string;
- /**
- * The ID of the user to update nickname for
- */
- userId: string | "@me";
- requestBody: {
- /**
- * The nickname to assign to the member
- */
- nickname: string;
- };
- }): CancelablePromise<{
- /**
- * The nickname that was assigned to the member
- */
- nickname: string;
- }> {
- return this.httpRequest.request({
- method: "PUT",
- url: "/servers/{serverId}/members/{userId}/nickname",
- path: {
- serverId: serverId,
- userId: userId,
- },
- body: requestBody,
- mediaType: "application/json",
- });
- }
+ /**
+ * Update a member's nickname
+ * @returns any Success
+ * @throws ApiError
+ */
+ public memberNicknameUpdate({
+ serverId,
+ userId,
+ requestBody,
+ }: {
+ serverId: string;
+ /**
+ * The ID of the user to update nickname for
+ */
+ userId:
+ | string
+ | "@me";
+ requestBody: {
+ /**
+ * The nickname to assign to the member
+ */
+ nickname: string;
+ };
+ }): CancelablePromise<{
+ /**
+ * The nickname that was assigned to the member
+ */
+ nickname: string;
+ }> {
+ return this.httpRequest.request(
+ {
+ method: "PUT",
+ url: "/servers/{serverId}/members/{userId}/nickname",
+ path: {
+ serverId: serverId,
+ userId: userId,
+ },
+ body: requestBody,
+ mediaType: "application/json",
+ },
+ );
+ }
- /**
- * Delete a member's nickname
- * @returns void
- * @throws ApiError
- */
- public memberNicknameDelete({
- serverId,
- userId,
- }: {
- serverId: string;
- /**
- * The ID of the user to remove nickname from
- */
- userId: string | "@me";
- }): CancelablePromise {
- return this.httpRequest.request({
- method: "DELETE",
- url: "/servers/{serverId}/members/{userId}/nickname",
- path: {
- serverId: serverId,
- userId: userId,
- },
- });
- }
+ /**
+ * Delete a member's nickname
+ * @returns void
+ * @throws ApiError
+ */
+ public memberNicknameDelete({
+ serverId,
+ userId,
+ }: {
+ serverId: string;
+ /**
+ * The ID of the user to remove nickname from
+ */
+ userId:
+ | string
+ | "@me";
+ }): CancelablePromise {
+ return this.httpRequest.request(
+ {
+ method: "DELETE",
+ url: "/servers/{serverId}/members/{userId}/nickname",
+ path: {
+ serverId: serverId,
+ userId: userId,
+ },
+ },
+ );
+ }
- /**
- * Get a server member
- * @returns any Success
- * @throws ApiError
- */
- public serverMemberRead({ serverId, userId }: { serverId: string; userId: string | "@me" }): CancelablePromise<{
- member: ServerMember;
- }> {
- return this.httpRequest.request({
- method: "GET",
- url: "/servers/{serverId}/members/{userId}",
- path: {
- serverId: serverId,
- userId: userId,
- },
- });
- }
+ /**
+ * Get a server member
+ * @returns any Success
+ * @throws ApiError
+ */
+ public serverMemberRead({
+ serverId,
+ userId,
+ }: {
+ serverId: string;
+ userId:
+ | string
+ | "@me";
+ }): CancelablePromise<{
+ member: ServerMember;
+ }> {
+ return this.httpRequest.request(
+ {
+ method: "GET",
+ url: "/servers/{serverId}/members/{userId}",
+ path: {
+ serverId: serverId,
+ userId: userId,
+ },
+ },
+ );
+ }
- /**
- * Kick a server member
- * This route can be used to leave servers by passing in your own user ID or `@me` for `userId`
- * @returns void
- * @throws ApiError
- */
- public serverMemberDelete({
- serverId,
- userId,
- }: {
- /**
- * The ID of the server to kick the user from
- */
- serverId: string;
- /**
- * The ID of the user to kick. If the value provided here is your own user's ID, the request will attempt to make you leave the server
- */
- userId: string | "@me";
- }): CancelablePromise {
- return this.httpRequest.request({
- method: "DELETE",
- url: "/servers/{serverId}/members/{userId}",
- path: {
- serverId: serverId,
- userId: userId,
- },
- });
- }
+ /**
+ * Kick a server member
+ * This route can be used to leave servers by passing in your own user ID or `@me` for `userId`
+ * @returns void
+ * @throws ApiError
+ */
+ public serverMemberDelete({
+ serverId,
+ userId,
+ }: {
+ /**
+ * The ID of the server to kick the user from
+ */
+ serverId: string;
+ /**
+ * The ID of the user to kick. If the value provided here is your own user's ID, the request will attempt to make you leave the server
+ */
+ userId:
+ | string
+ | "@me";
+ }): CancelablePromise {
+ return this.httpRequest.request(
+ {
+ method: "DELETE",
+ url: "/servers/{serverId}/members/{userId}",
+ path: {
+ serverId: serverId,
+ userId: userId,
+ },
+ },
+ );
+ }
- /**
- * Get members of a server
- * Results returned will be ordered ascending by the member's `joinedAt`
- * @returns any Success
- * @throws ApiError
- */
- public serverMemberReadMany({ serverId }: { serverId: string }): CancelablePromise<{
- members: Array;
- }> {
- return this.httpRequest.request({
- method: "GET",
- url: "/servers/{serverId}/members",
- path: {
- serverId: serverId,
- },
- });
- }
+ /**
+ * Get members of a server
+ * Results returned will be ordered ascending by the member's `joinedAt`
+ * @returns any Success
+ * @throws ApiError
+ */
+ public serverMemberReadMany({
+ serverId,
+ }: {
+ serverId: string;
+ }): CancelablePromise<{
+ members: Array;
+ }> {
+ return this.httpRequest.request(
+ {
+ method: "GET",
+ url: "/servers/{serverId}/members",
+ path: {
+ serverId: serverId,
+ },
+ },
+ );
+ }
}
diff --git a/packages/api/lib/generated/router/services/ReactionsService.ts b/packages/api/lib/generated/router/services/ReactionsService.ts
index 3651b8f8..96af8afc 100644
--- a/packages/api/lib/generated/router/services/ReactionsService.ts
+++ b/packages/api/lib/generated/router/services/ReactionsService.ts
@@ -1,480 +1,600 @@
+import type { BaseHttpRequest } from "../core/BaseHttpRequest";
/* generated using openapi-typescript-codegen -- do no edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { CancelablePromise } from "../core/CancelablePromise";
-import type { BaseHttpRequest } from "../core/BaseHttpRequest";
export class ReactionsService {
- constructor(public readonly httpRequest: BaseHttpRequest) {}
+ constructor(
+ public readonly httpRequest: BaseHttpRequest,
+ ) {}
- /**
- * Create forum topic reaction
- * @returns void
- * @throws ApiError
- */
- public forumTopicReactionCreate({
- channelId,
- forumTopicId,
- emoteId,
- }: {
- /**
- * Channel ID where the forum topic exists
- */
- channelId: string;
- /**
- * Forum Topic ID
- */
- forumTopicId: number;
- /**
- * Emote ID to apply
- */
- emoteId: number;
- }): CancelablePromise {
- return this.httpRequest.request({
- method: "PUT",
- url: "/channels/{channelId}/topics/{forumTopicId}/emotes/{emoteId}",
- path: {
- channelId: channelId,
- forumTopicId: forumTopicId,
- emoteId: emoteId,
- },
- });
- }
+ /**
+ * Create forum topic reaction
+ * @returns void
+ * @throws ApiError
+ */
+ public forumTopicReactionCreate({
+ channelId,
+ forumTopicId,
+ emoteId,
+ }: {
+ /**
+ * Channel ID where the forum topic exists
+ */
+ channelId: string;
+ /**
+ * Forum Topic ID
+ */
+ forumTopicId: number;
+ /**
+ * Emote ID to apply
+ */
+ emoteId: number;
+ }): CancelablePromise {
+ return this.httpRequest.request(
+ {
+ method: "PUT",
+ url: "/channels/{channelId}/topics/{forumTopicId}/emotes/{emoteId}",
+ path: {
+ channelId: channelId,
+ forumTopicId: forumTopicId,
+ emoteId: emoteId,
+ },
+ },
+ );
+ }
- /**
- * Delete forum topic reaction
- * @returns void
- * @throws ApiError
- */
- public forumTopicReactionDelete({
- channelId,
- forumTopicId,
- emoteId,
- }: {
- /**
- * Channel ID where the forum topic exists
- */
- channelId: string;
- /**
- * Forum Topic ID
- */
- forumTopicId: number;
- /**
- * Emote ID to remove
- */
- emoteId: number;
- }): CancelablePromise {
- return this.httpRequest.request({
- method: "DELETE",
- url: "/channels/{channelId}/topics/{forumTopicId}/emotes/{emoteId}",
- path: {
- channelId: channelId,
- forumTopicId: forumTopicId,
- emoteId: emoteId,
- },
- });
- }
+ /**
+ * Delete forum topic reaction
+ * @returns void
+ * @throws ApiError
+ */
+ public forumTopicReactionDelete({
+ channelId,
+ forumTopicId,
+ emoteId,
+ }: {
+ /**
+ * Channel ID where the forum topic exists
+ */
+ channelId: string;
+ /**
+ * Forum Topic ID
+ */
+ forumTopicId: number;
+ /**
+ * Emote ID to remove
+ */
+ emoteId: number;
+ }): CancelablePromise {
+ return this.httpRequest.request(
+ {
+ method: "DELETE",
+ url: "/channels/{channelId}/topics/{forumTopicId}/emotes/{emoteId}",
+ path: {
+ channelId: channelId,
+ forumTopicId: forumTopicId,
+ emoteId: emoteId,
+ },
+ },
+ );
+ }
- /**
- * Create forum topic comment reaction
- * @returns void
- * @throws ApiError
- */
- public forumTopicCommentReactionCreate({
- channelId,
- forumTopicId,
- forumTopicCommentId,
- emoteId,
- }: {
- /**
- * Channel ID where the forum topic exists
- */
- channelId: string;
- forumTopicId: number;
- forumTopicCommentId: number;
- emoteId: number;
- }): CancelablePromise {
- return this.httpRequest.request({
- method: "PUT",
- url: "/channels/{channelId}/topics/{forumTopicId}/comments/{forumTopicCommentId}/emotes/{emoteId}",
- path: {
- channelId: channelId,
- forumTopicId: forumTopicId,
- forumTopicCommentId: forumTopicCommentId,
- emoteId: emoteId,
- },
- });
- }
+ /**
+ * Create forum topic comment reaction
+ * @returns void
+ * @throws ApiError
+ */
+ public forumTopicCommentReactionCreate({
+ channelId,
+ forumTopicId,
+ forumTopicCommentId,
+ emoteId,
+ }: {
+ /**
+ * Channel ID where the forum topic exists
+ */
+ channelId: string;
+ forumTopicId: number;
+ forumTopicCommentId: number;
+ emoteId: number;
+ }): CancelablePromise {
+ return this.httpRequest.request(
+ {
+ method: "PUT",
+ url: "/channels/{channelId}/topics/{forumTopicId}/comments/{forumTopicCommentId}/emotes/{emoteId}",
+ path: {
+ channelId: channelId,
+ forumTopicId: forumTopicId,
+ forumTopicCommentId: forumTopicCommentId,
+ emoteId: emoteId,
+ },
+ },
+ );
+ }
- /**
- * Delete forum topic comment reaction
- * @returns void
- * @throws ApiError
- */
- public forumTopicCommentReactionDelete({
- channelId,
- forumTopicId,
- forumTopicCommentId,
- emoteId,
- }: {
- /**
- * Channel ID where the forum topic exists
- */
- channelId: string;
- forumTopicId: number;
- forumTopicCommentId: number;
- emoteId: number;
- }): CancelablePromise {
- return this.httpRequest.request({
- method: "DELETE",
- url: "/channels/{channelId}/topics/{forumTopicId}/comments/{forumTopicCommentId}/emotes/{emoteId}",
- path: {
- channelId: channelId,
- forumTopicId: forumTopicId,
- forumTopicCommentId: forumTopicCommentId,
- emoteId: emoteId,
- },
- });
- }
+ /**
+ * Delete forum topic comment reaction
+ * @returns void
+ * @throws ApiError
+ */
+ public forumTopicCommentReactionDelete({
+ channelId,
+ forumTopicId,
+ forumTopicCommentId,
+ emoteId,
+ }: {
+ /**
+ * Channel ID where the forum topic exists
+ */
+ channelId: string;
+ forumTopicId: number;
+ forumTopicCommentId: number;
+ emoteId: number;
+ }): CancelablePromise {
+ return this.httpRequest.request(
+ {
+ method: "DELETE",
+ url: "/channels/{channelId}/topics/{forumTopicId}/comments/{forumTopicCommentId}/emotes/{emoteId}",
+ path: {
+ channelId: channelId,
+ forumTopicId: forumTopicId,
+ forumTopicCommentId: forumTopicCommentId,
+ emoteId: emoteId,
+ },
+ },
+ );
+ }
- /**
- * Create calendar event reaction
- * @returns void
- * @throws ApiError
- */
- public calendarEventReactionCreate({ channelId, calendarEventId, emoteId }: { channelId: string; calendarEventId: number; emoteId: number }): CancelablePromise {
- return this.httpRequest.request({
- method: "PUT",
- url: "/channels/{channelId}/events/{calendarEventId}/emotes/{emoteId}",
- path: {
- channelId: channelId,
- calendarEventId: calendarEventId,
- emoteId: emoteId,
- },
- });
- }
+ /**
+ * Create calendar event reaction
+ * @returns void
+ * @throws ApiError
+ */
+ public calendarEventReactionCreate({
+ channelId,
+ calendarEventId,
+ emoteId,
+ }: {
+ channelId: string;
+ calendarEventId: number;
+ emoteId: number;
+ }): CancelablePromise {
+ return this.httpRequest.request(
+ {
+ method: "PUT",
+ url: "/channels/{channelId}/events/{calendarEventId}/emotes/{emoteId}",
+ path: {
+ channelId: channelId,
+ calendarEventId: calendarEventId,
+ emoteId: emoteId,
+ },
+ },
+ );
+ }
- /**
- * Delete calendar event reaction
- * @returns void
- * @throws ApiError
- */
- public calendarEventReactionDelete({ channelId, calendarEventId, emoteId }: { channelId: string; calendarEventId: number; emoteId: number }): CancelablePromise {
- return this.httpRequest.request({
- method: "DELETE",
- url: "/channels/{channelId}/events/{calendarEventId}/emotes/{emoteId}",
- path: {
- channelId: channelId,
- calendarEventId: calendarEventId,
- emoteId: emoteId,
- },
- });
- }
+ /**
+ * Delete calendar event reaction
+ * @returns void
+ * @throws ApiError
+ */
+ public calendarEventReactionDelete({
+ channelId,
+ calendarEventId,
+ emoteId,
+ }: {
+ channelId: string;
+ calendarEventId: number;
+ emoteId: number;
+ }): CancelablePromise {
+ return this.httpRequest.request(
+ {
+ method: "DELETE",
+ url: "/channels/{channelId}/events/{calendarEventId}/emotes/{emoteId}",
+ path: {
+ channelId: channelId,
+ calendarEventId: calendarEventId,
+ emoteId: emoteId,
+ },
+ },
+ );
+ }
- /**
- * Create calendar event comment reaction
- * @returns void
- * @throws ApiError
- */
- public calendarEventCommentReactionCreate({
- channelId,
- calendarEventId,
- calendarEventCommentId,
- emoteId,
- }: {
- channelId: string;
- calendarEventId: number;
- calendarEventCommentId: number;
- emoteId: number;
- }): CancelablePromise {
- return this.httpRequest.request({
- method: "PUT",
- url: "/channels/{channelId}/events/{calendarEventId}/comments/{calendarEventCommentId}/emotes/{emoteId}",
- path: {
- channelId: channelId,
- calendarEventId: calendarEventId,
- calendarEventCommentId: calendarEventCommentId,
- emoteId: emoteId,
- },
- });
- }
+ /**
+ * Create calendar event comment reaction
+ * @returns void
+ * @throws ApiError
+ */
+ public calendarEventCommentReactionCreate({
+ channelId,
+ calendarEventId,
+ calendarEventCommentId,
+ emoteId,
+ }: {
+ channelId: string;
+ calendarEventId: number;
+ calendarEventCommentId: number;
+ emoteId: number;
+ }): CancelablePromise {
+ return this.httpRequest.request(
+ {
+ method: "PUT",
+ url: "/channels/{channelId}/events/{calendarEventId}/comments/{calendarEventCommentId}/emotes/{emoteId}",
+ path: {
+ channelId: channelId,
+ calendarEventId: calendarEventId,
+ calendarEventCommentId: calendarEventCommentId,
+ emoteId: emoteId,
+ },
+ },
+ );
+ }
- /**
- * Delete calendar event comment reaction
- * @returns void
- * @throws ApiError
- */
- public calendarEventCommentReactionDelete({
- channelId,
- calendarEventId,
- calendarEventCommentId,
- emoteId,
- }: {
- channelId: string;
- calendarEventId: number;
- calendarEventCommentId: number;
- emoteId: number;
- }): CancelablePromise {
- return this.httpRequest.request({
- method: "DELETE",
- url: "/channels/{channelId}/events/{calendarEventId}/comments/{calendarEventCommentId}/emotes/{emoteId}",
- path: {
- channelId: channelId,
- calendarEventId: calendarEventId,
- calendarEventCommentId: calendarEventCommentId,
- emoteId: emoteId,
- },
- });
- }
+ /**
+ * Delete calendar event comment reaction
+ * @returns void
+ * @throws ApiError
+ */
+ public calendarEventCommentReactionDelete({
+ channelId,
+ calendarEventId,
+ calendarEventCommentId,
+ emoteId,
+ }: {
+ channelId: string;
+ calendarEventId: number;
+ calendarEventCommentId: number;
+ emoteId: number;
+ }): CancelablePromise {
+ return this.httpRequest.request(
+ {
+ method: "DELETE",
+ url: "/channels/{channelId}/events/{calendarEventId}/comments/{calendarEventCommentId}/emotes/{emoteId}",
+ path: {
+ channelId: channelId,
+ calendarEventId: calendarEventId,
+ calendarEventCommentId: calendarEventCommentId,
+ emoteId: emoteId,
+ },
+ },
+ );
+ }
- /**
- * Create doc reaction
- * @returns void
- * @throws ApiError
- */
- public docReactionCreate({ channelId, docId, emoteId }: { channelId: string; docId: number; emoteId: number }): CancelablePromise {
- return this.httpRequest.request({
- method: "PUT",
- url: "/channels/{channelId}/docs/{docId}/emotes/{emoteId}",
- path: {
- channelId: channelId,
- docId: docId,
- emoteId: emoteId,
- },
- });
- }
+ /**
+ * Create doc reaction
+ * @returns void
+ * @throws ApiError
+ */
+ public docReactionCreate({
+ channelId,
+ docId,
+ emoteId,
+ }: {
+ channelId: string;
+ docId: number;
+ emoteId: number;
+ }): CancelablePromise {
+ return this.httpRequest.request(
+ {
+ method: "PUT",
+ url: "/channels/{channelId}/docs/{docId}/emotes/{emoteId}",
+ path: {
+ channelId: channelId,
+ docId: docId,
+ emoteId: emoteId,
+ },
+ },
+ );
+ }
- /**
- * Delete doc reaction
- * @returns void
- * @throws ApiError
- */
- public docReactionDelete({ channelId, docId, emoteId }: { channelId: string; docId: number; emoteId: number }): CancelablePromise {
- return this.httpRequest.request({
- method: "DELETE",
- url: "/channels/{channelId}/docs/{docId}/emotes/{emoteId}",
- path: {
- channelId: channelId,
- docId: docId,
- emoteId: emoteId,
- },
- });
- }
+ /**
+ * Delete doc reaction
+ * @returns void
+ * @throws ApiError
+ */
+ public docReactionDelete({
+ channelId,
+ docId,
+ emoteId,
+ }: {
+ channelId: string;
+ docId: number;
+ emoteId: number;
+ }): CancelablePromise {
+ return this.httpRequest.request(
+ {
+ method: "DELETE",
+ url: "/channels/{channelId}/docs/{docId}/emotes/{emoteId}",
+ path: {
+ channelId: channelId,
+ docId: docId,
+ emoteId: emoteId,
+ },
+ },
+ );
+ }
- /**
- * Create doc comment reaction
- * @returns void
- * @throws ApiError
- */
- public docCommentReactionCreate({ channelId, docId, docCommentId, emoteId }: { channelId: string; docId: number; docCommentId: number; emoteId: number }): CancelablePromise {
- return this.httpRequest.request({
- method: "PUT",
- url: "/channels/{channelId}/docs/{docId}/comments/{docCommentId}/emotes/{emoteId}",
- path: {
- channelId: channelId,
- docId: docId,
- docCommentId: docCommentId,
- emoteId: emoteId,
- },
- });
- }
+ /**
+ * Create doc comment reaction
+ * @returns void
+ * @throws ApiError
+ */
+ public docCommentReactionCreate({
+ channelId,
+ docId,
+ docCommentId,
+ emoteId,
+ }: {
+ channelId: string;
+ docId: number;
+ docCommentId: number;
+ emoteId: number;
+ }): CancelablePromise {
+ return this.httpRequest.request(
+ {
+ method: "PUT",
+ url: "/channels/{channelId}/docs/{docId}/comments/{docCommentId}/emotes/{emoteId}",
+ path: {
+ channelId: channelId,
+ docId: docId,
+ docCommentId: docCommentId,
+ emoteId: emoteId,
+ },
+ },
+ );
+ }
- /**
- * Delete doc comment reaction
- * @returns void
- * @throws ApiError
- */
- public docCommentReactionDelete({ channelId, docId, docCommentId, emoteId }: { channelId: string; docId: number; docCommentId: number; emoteId: number }): CancelablePromise {
- return this.httpRequest.request({
- method: "DELETE",
- url: "/channels/{channelId}/docs/{docId}/comments/{docCommentId}/emotes/{emoteId}",
- path: {
- channelId: channelId,
- docId: docId,
- docCommentId: docCommentId,
- emoteId: emoteId,
- },
- });
- }
+ /**
+ * Delete doc comment reaction
+ * @returns void
+ * @throws ApiError
+ */
+ public docCommentReactionDelete({
+ channelId,
+ docId,
+ docCommentId,
+ emoteId,
+ }: {
+ channelId: string;
+ docId: number;
+ docCommentId: number;
+ emoteId: number;
+ }): CancelablePromise {
+ return this.httpRequest.request(
+ {
+ method: "DELETE",
+ url: "/channels/{channelId}/docs/{docId}/comments/{docCommentId}/emotes/{emoteId}",
+ path: {
+ channelId: channelId,
+ docId: docId,
+ docCommentId: docCommentId,
+ emoteId: emoteId,
+ },
+ },
+ );
+ }
- /**
- * Create announcement reaction
- * @returns void
- * @throws ApiError
- */
- public announcementReactionCreate({
- channelId,
- announcementId,
- emoteId,
- }: {
- channelId: string;
- announcementId: string;
- /**
- * Emote ID to apply
- */
- emoteId: number;
- }): CancelablePromise {
- return this.httpRequest.request({
- method: "PUT",
- url: "/channels/{channelId}/announcements/{announcementId}/emotes/{emoteId}",
- path: {
- channelId: channelId,
- announcementId: announcementId,
- emoteId: emoteId,
- },
- });
- }
+ /**
+ * Create announcement reaction
+ * @returns void
+ * @throws ApiError
+ */
+ public announcementReactionCreate({
+ channelId,
+ announcementId,
+ emoteId,
+ }: {
+ channelId: string;
+ announcementId: string;
+ /**
+ * Emote ID to apply
+ */
+ emoteId: number;
+ }): CancelablePromise {
+ return this.httpRequest.request(
+ {
+ method: "PUT",
+ url: "/channels/{channelId}/announcements/{announcementId}/emotes/{emoteId}",
+ path: {
+ channelId: channelId,
+ announcementId: announcementId,
+ emoteId: emoteId,
+ },
+ },
+ );
+ }
- /**
- * Delete announcement reaction
- * @returns void
- * @throws ApiError
- */
- public announcementReactionDelete({
- channelId,
- announcementId,
- emoteId,
- }: {
- channelId: string;
- announcementId: string;
- /**
- * Emote ID to apply
- */
- emoteId: number;
- }): CancelablePromise {
- return this.httpRequest.request({
- method: "DELETE",
- url: "/channels/{channelId}/announcements/{announcementId}/emotes/{emoteId}",
- path: {
- channelId: channelId,
- announcementId: announcementId,
- emoteId: emoteId,
- },
- });
- }
+ /**
+ * Delete announcement reaction
+ * @returns void
+ * @throws ApiError
+ */
+ public announcementReactionDelete({
+ channelId,
+ announcementId,
+ emoteId,
+ }: {
+ channelId: string;
+ announcementId: string;
+ /**
+ * Emote ID to apply
+ */
+ emoteId: number;
+ }): CancelablePromise {
+ return this.httpRequest.request(
+ {
+ method: "DELETE",
+ url: "/channels/{channelId}/announcements/{announcementId}/emotes/{emoteId}",
+ path: {
+ channelId: channelId,
+ announcementId: announcementId,
+ emoteId: emoteId,
+ },
+ },
+ );
+ }
- /**
- * Create an announcement comment reaction
- * @returns void
- * @throws ApiError
- */
- public announcementCommentReactionCreate({
- channelId,
- announcementId,
- announcementCommentId,
- emoteId,
- }: {
- /**
- * Channel ID where the announcement comment exists
- */
- channelId: string;
- announcementId: string;
- announcementCommentId: number;
- /**
- * Emote ID to apply
- */
- emoteId: number;
- }): CancelablePromise {
- return this.httpRequest.request({
- method: "PUT",
- url: "/channels/{channelId}/announcements/{announcementId}/comments/{announcementCommentId}/emotes/{emoteId}",
- path: {
- channelId: channelId,
- announcementId: announcementId,
- announcementCommentId: announcementCommentId,
- emoteId: emoteId,
- },
- });
- }
+ /**
+ * Create an announcement comment reaction
+ * @returns void
+ * @throws ApiError
+ */
+ public announcementCommentReactionCreate({
+ channelId,
+ announcementId,
+ announcementCommentId,
+ emoteId,
+ }: {
+ /**
+ * Channel ID where the announcement comment exists
+ */
+ channelId: string;
+ announcementId: string;
+ announcementCommentId: number;
+ /**
+ * Emote ID to apply
+ */
+ emoteId: number;
+ }): CancelablePromise {
+ return this.httpRequest.request(
+ {
+ method: "PUT",
+ url: "/channels/{channelId}/announcements/{announcementId}/comments/{announcementCommentId}/emotes/{emoteId}",
+ path: {
+ channelId: channelId,
+ announcementId: announcementId,
+ announcementCommentId: announcementCommentId,
+ emoteId: emoteId,
+ },
+ },
+ );
+ }
- /**
- * Delete an announcement comment reaction
- * @returns void
- * @throws ApiError
- */
- public announcementCommentReactionDelete({
- channelId,
- announcementId,
- announcementCommentId,
- emoteId,
- }: {
- /**
- * Channel ID where the announcement comment exists
- */
- channelId: string;
- announcementId: string;
- announcementCommentId: number;
- /**
- * Emote ID to apply
- */
- emoteId: number;
- }): CancelablePromise {
- return this.httpRequest.request({
- method: "DELETE",
- url: "/channels/{channelId}/announcements/{announcementId}/comments/{announcementCommentId}/emotes/{emoteId}",
- path: {
- channelId: channelId,
- announcementId: announcementId,
- announcementCommentId: announcementCommentId,
- emoteId: emoteId,
- },
- });
- }
+ /**
+ * Delete an announcement comment reaction
+ * @returns void
+ * @throws ApiError
+ */
+ public announcementCommentReactionDelete({
+ channelId,
+ announcementId,
+ announcementCommentId,
+ emoteId,
+ }: {
+ /**
+ * Channel ID where the announcement comment exists
+ */
+ channelId: string;
+ announcementId: string;
+ announcementCommentId: number;
+ /**
+ * Emote ID to apply
+ */
+ emoteId: number;
+ }): CancelablePromise {
+ return this.httpRequest.request(
+ {
+ method: "DELETE",
+ url: "/channels/{channelId}/announcements/{announcementId}/comments/{announcementCommentId}/emotes/{emoteId}",
+ path: {
+ channelId: channelId,
+ announcementId: announcementId,
+ announcementCommentId: announcementCommentId,
+ emoteId: emoteId,
+ },
+ },
+ );
+ }
- /**
- * Create a message reaction
- * @returns void
- * @throws ApiError
- */
- public channelMessageReactionCreate({ channelId, messageId, emoteId }: { channelId: string; messageId: string; emoteId: number }): CancelablePromise {
- return this.httpRequest.request({
- method: "PUT",
- url: "/channels/{channelId}/messages/{messageId}/emotes/{emoteId}",
- path: {
- channelId: channelId,
- messageId: messageId,
- emoteId: emoteId,
- },
- });
- }
+ /**
+ * Create a message reaction
+ * @returns void
+ * @throws ApiError
+ */
+ public channelMessageReactionCreate({
+ channelId,
+ messageId,
+ emoteId,
+ }: {
+ channelId: string;
+ messageId: string;
+ emoteId: number;
+ }): CancelablePromise {
+ return this.httpRequest.request(
+ {
+ method: "PUT",
+ url: "/channels/{channelId}/messages/{messageId}/emotes/{emoteId}",
+ path: {
+ channelId: channelId,
+ messageId: messageId,
+ emoteId: emoteId,
+ },
+ },
+ );
+ }
- /**
- * Delete a message reaction
- * @returns void
- * @throws ApiError
- */
- public channelMessageReactionDelete({ channelId, messageId, emoteId, userId }: { channelId: string; messageId: string; emoteId: number; userId?: string | "@me" }): CancelablePromise {
- return this.httpRequest.request({
- method: "DELETE",
- url: "/channels/{channelId}/messages/{messageId}/emotes/{emoteId}",
- path: {
- channelId: channelId,
- messageId: messageId,
- emoteId: emoteId,
- },
- query: {
- userId: userId,
- },
- });
- }
+ /**
+ * Delete a message reaction
+ * @returns void
+ * @throws ApiError
+ */
+ public channelMessageReactionDelete({
+ channelId,
+ messageId,
+ emoteId,
+ userId,
+ }: {
+ channelId: string;
+ messageId: string;
+ emoteId: number;
+ userId?:
+ | string
+ | "@me";
+ }): CancelablePromise {
+ return this.httpRequest.request(
+ {
+ method: "DELETE",
+ url: "/channels/{channelId}/messages/{messageId}/emotes/{emoteId}",
+ path: {
+ channelId: channelId,
+ messageId: messageId,
+ emoteId: emoteId,
+ },
+ query: {
+ userId: userId,
+ },
+ },
+ );
+ }
- /**
- * Bulk delete a message's reactions
- * @returns void
- * @throws ApiError
- */
- public channelMessageReactionDeleteMany({ channelId, messageId, emoteId }: { channelId: string; messageId: string; emoteId?: number }): CancelablePromise {
- return this.httpRequest.request({
- method: "DELETE",
- url: "/channels/{channelId}/messages/{messageId}/emotes",
- path: {
- channelId: channelId,
- messageId: messageId,
- },
- query: {
- emoteId: emoteId,
- },
- });
- }
+ /**
+ * Bulk delete a message's reactions
+ * @returns void
+ * @throws ApiError
+ */
+ public channelMessageReactionDeleteMany({
+ channelId,
+ messageId,
+ emoteId,
+ }: {
+ channelId: string;
+ messageId: string;
+ emoteId?: number;
+ }): CancelablePromise {
+ return this.httpRequest.request(
+ {
+ method: "DELETE",
+ url: "/channels/{channelId}/messages/{messageId}/emotes",
+ path: {
+ channelId: channelId,
+ messageId: messageId,
+ },
+ query: {
+ emoteId: emoteId,
+ },
+ },
+ );
+ }
}
diff --git a/packages/api/lib/generated/router/services/RoleMembershipService.ts b/packages/api/lib/generated/router/services/RoleMembershipService.ts
index 3be02a9a..4c7728ce 100644
--- a/packages/api/lib/generated/router/services/RoleMembershipService.ts
+++ b/packages/api/lib/generated/router/services/RoleMembershipService.ts
@@ -1,103 +1,117 @@
+import type { BaseHttpRequest } from "../core/BaseHttpRequest";
/* generated using openapi-typescript-codegen -- do no edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { CancelablePromise } from "../core/CancelablePromise";
-import type { BaseHttpRequest } from "../core/BaseHttpRequest";
export class RoleMembershipService {
- constructor(public readonly httpRequest: BaseHttpRequest) {}
+ constructor(
+ public readonly httpRequest: BaseHttpRequest,
+ ) {}
- /**
- * Assign role to member
- * @returns void
- * @throws ApiError
- */
- public roleMembershipCreate({
- serverId,
- userId,
- roleId,
- }: {
- serverId: string;
- /**
- * The ID of the member that the role should be assigned to
- */
- userId: string | "@me";
- /**
- * The role ID to apply to the user
- */
- roleId: number;
- }): CancelablePromise {
- return this.httpRequest.request({
- method: "PUT",
- url: "/servers/{serverId}/members/{userId}/roles/{roleId}",
- path: {
- serverId: serverId,
- userId: userId,
- roleId: roleId,
- },
- });
- }
+ /**
+ * Assign role to member
+ * @returns void
+ * @throws ApiError
+ */
+ public roleMembershipCreate({
+ serverId,
+ userId,
+ roleId,
+ }: {
+ serverId: string;
+ /**
+ * The ID of the member that the role should be assigned to
+ */
+ userId:
+ | string
+ | "@me";
+ /**
+ * The role ID to apply to the user
+ */
+ roleId: number;
+ }): CancelablePromise {
+ return this.httpRequest.request(
+ {
+ method: "PUT",
+ url: "/servers/{serverId}/members/{userId}/roles/{roleId}",
+ path: {
+ serverId: serverId,
+ userId: userId,
+ roleId: roleId,
+ },
+ },
+ );
+ }
- /**
- * Remove role from member
- * @returns void
- * @throws ApiError
- */
- public roleMembershipDelete({
- serverId,
- userId,
- roleId,
- }: {
- serverId: string;
- /**
- * The ID of the member that the role should be removed from
- */
- userId: string | "@me";
- /**
- * The role ID to remove from the user
- */
- roleId: number;
- }): CancelablePromise {
- return this.httpRequest.request({
- method: "DELETE",
- url: "/servers/{serverId}/members/{userId}/roles/{roleId}",
- path: {
- serverId: serverId,
- userId: userId,
- roleId: roleId,
- },
- });
- }
+ /**
+ * Remove role from member
+ * @returns void
+ * @throws ApiError
+ */
+ public roleMembershipDelete({
+ serverId,
+ userId,
+ roleId,
+ }: {
+ serverId: string;
+ /**
+ * The ID of the member that the role should be removed from
+ */
+ userId:
+ | string
+ | "@me";
+ /**
+ * The role ID to remove from the user
+ */
+ roleId: number;
+ }): CancelablePromise {
+ return this.httpRequest.request(
+ {
+ method: "DELETE",
+ url: "/servers/{serverId}/members/{userId}/roles/{roleId}",
+ path: {
+ serverId: serverId,
+ userId: userId,
+ roleId: roleId,
+ },
+ },
+ );
+ }
- /**
- * Get member roles
- * Get a list of the roles assigned to a member
- * @returns any Success
- * @throws ApiError
- */
- public roleMembershipReadMany({
- serverId,
- userId,
- }: {
- serverId: string;
- /**
- * The ID of the member to obtain roles from
- */
- userId: string | "@me";
- }): CancelablePromise<{
- /**
- * The IDs of the roles that the member currently has
- */
- roleIds: Array;
- }> {
- return this.httpRequest.request({
- method: "GET",
- url: "/servers/{serverId}/members/{userId}/roles",
- path: {
- serverId: serverId,
- userId: userId,
- },
- });
- }
+ /**
+ * Get member roles
+ * Get a list of the roles assigned to a member
+ * @returns any Success
+ * @throws ApiError
+ */
+ public roleMembershipReadMany({
+ serverId,
+ userId,
+ }: {
+ serverId: string;
+ /**
+ * The ID of the member to obtain roles from
+ */
+ userId:
+ | string
+ | "@me";
+ }): CancelablePromise<{
+ /**
+ * The IDs of the roles that the member currently has
+ */
+ roleIds: Array;
+ }> {
+ return this.httpRequest.request(
+ {
+ method: "GET",
+ url: "/servers/{serverId}/members/{userId}/roles",
+ path: {
+ serverId: serverId,
+ userId: userId,
+ },
+ },
+ );
+ }
}
diff --git a/packages/api/lib/generated/router/services/RolesService.ts b/packages/api/lib/generated/router/services/RolesService.ts
index a15e5cb1..c6b31419 100644
--- a/packages/api/lib/generated/router/services/RolesService.ts
+++ b/packages/api/lib/generated/router/services/RolesService.ts
@@ -4,319 +4,356 @@
/* eslint-disable */
import type { Role } from "../models/Role";
-import type { CancelablePromise } from "../core/CancelablePromise";
import type { BaseHttpRequest } from "../core/BaseHttpRequest";
+import type { CancelablePromise } from "../core/CancelablePromise";
export class RolesService {
- constructor(public readonly httpRequest: BaseHttpRequest) {}
+ constructor(
+ public readonly httpRequest: BaseHttpRequest,
+ ) {}
- /**
- * Get a role
- * @returns any Success
- * @throws ApiError
- */
- public roleRead({ serverId, roleId }: { serverId: string; roleId: number }): CancelablePromise<{
- role: Role;
- }> {
- return this.httpRequest.request({
- method: "GET",
- url: "/servers/{serverId}/roles/{roleId}",
- path: {
- serverId: serverId,
- roleId: roleId,
- },
- });
- }
+ /**
+ * Get a role
+ * @returns any Success
+ * @throws ApiError
+ */
+ public roleRead({
+ serverId,
+ roleId,
+ }: {
+ serverId: string;
+ roleId: number;
+ }): CancelablePromise<{
+ role: Role;
+ }> {
+ return this.httpRequest.request(
+ {
+ method: "GET",
+ url: "/servers/{serverId}/roles/{roleId}",
+ path: {
+ serverId: serverId,
+ roleId: roleId,
+ },
+ },
+ );
+ }
- /**
- * Delete a role
- * @returns any Success
- * @throws ApiError
- */
- public roleDelete({ serverId, roleId }: { serverId: string; roleId: number }): CancelablePromise<{
- role: Role;
- }> {
- return this.httpRequest.request({
- method: "DELETE",
- url: "/servers/{serverId}/roles/{roleId}",
- path: {
- serverId: serverId,
- roleId: roleId,
- },
- });
- }
+ /**
+ * Delete a role
+ * @returns any Success
+ * @throws ApiError
+ */
+ public roleDelete({
+ serverId,
+ roleId,
+ }: {
+ serverId: string;
+ roleId: number;
+ }): CancelablePromise<{
+ role: Role;
+ }> {
+ return this.httpRequest.request(
+ {
+ method: "DELETE",
+ url: "/servers/{serverId}/roles/{roleId}",
+ path: {
+ serverId: serverId,
+ roleId: roleId,
+ },
+ },
+ );
+ }
- /**
- * Update a role
- * @returns any Success
- * @throws ApiError
- */
- public roleUpdate({
- serverId,
- roleId,
- requestBody,
- }: {
- serverId: string;
- roleId: number;
- requestBody: {
- /**
- * The role's name
- */
- name?: string;
- /**
- * If set, the role will be displayed separately in the channel member list
- */
- isDisplayedSeparately?: boolean;
- /**
- * If set, this roll will be self assigned
- */
- isSelfAssignable?: boolean;
- /**
- * If set, this role can be mentioned
- */
- isMentionable?: boolean;
- /**
- * Permissions must be a collection of valid permissions as defined in the [Enums/Permissions](https://www.guilded.gg/docs/api/Permissions) section
- */
- permissions?: Array;
- /**
- * An array of integer values corresponding to the decimal RGB representation for a color. The first color is solid, and a second color indicates a gradient
- */
- colors?: Array;
- };
- }): CancelablePromise<{
- role: Role;
- }> {
- return this.httpRequest.request({
- method: "PATCH",
- url: "/servers/{serverId}/roles/{roleId}",
- path: {
- serverId: serverId,
- roleId: roleId,
- },
- body: requestBody,
- mediaType: "application/json",
- });
- }
+ /**
+ * Update a role
+ * @returns any Success
+ * @throws ApiError
+ */
+ public roleUpdate({
+ serverId,
+ roleId,
+ requestBody,
+ }: {
+ serverId: string;
+ roleId: number;
+ requestBody: {
+ /**
+ * The role's name
+ */
+ name?: string;
+ /**
+ * If set, the role will be displayed separately in the channel member list
+ */
+ isDisplayedSeparately?: boolean;
+ /**
+ * If set, this roll will be self assigned
+ */
+ isSelfAssignable?: boolean;
+ /**
+ * If set, this role can be mentioned
+ */
+ isMentionable?: boolean;
+ /**
+ * Permissions must be a collection of valid permissions as defined in the [Enums/Permissions](https://www.guilded.gg/docs/api/Permissions) section
+ */
+ permissions?: Array;
+ /**
+ * An array of integer values corresponding to the decimal RGB representation for a color. The first color is solid, and a second color indicates a gradient
+ */
+ colors?: Array;
+ };
+ }): CancelablePromise<{
+ role: Role;
+ }> {
+ return this.httpRequest.request(
+ {
+ method: "PATCH",
+ url: "/servers/{serverId}/roles/{roleId}",
+ path: {
+ serverId: serverId,
+ roleId: roleId,
+ },
+ body: requestBody,
+ mediaType: "application/json",
+ },
+ );
+ }
- /**
- * Get roles
- * @returns any Success
- * @throws ApiError
- */
- public roleReadMany({ serverId }: { serverId: string }): CancelablePromise<{
- roles: Array;
- }> {
- return this.httpRequest.request({
- method: "GET",
- url: "/servers/{serverId}/roles",
- path: {
- serverId: serverId,
- },
- });
- }
+ /**
+ * Get roles
+ * @returns any Success
+ * @throws ApiError
+ */
+ public roleReadMany({
+ serverId,
+ }: {
+ serverId: string;
+ }): CancelablePromise<{
+ roles: Array;
+ }> {
+ return this.httpRequest.request(
+ {
+ method: "GET",
+ url: "/servers/{serverId}/roles",
+ path: {
+ serverId: serverId,
+ },
+ },
+ );
+ }
- /**
- * Create a role
- * @returns any Success
- * @throws ApiError
- */
- public roleCreate({
- serverId,
- requestBody,
- }: {
- serverId: string;
- requestBody: {
- /**
- * The role's name
- */
- name: string;
- /**
- * If set, the role will be displayed separately in the channel member list
- */
- isDisplayedSeparately?: boolean;
- /**
- * If set, this roll will be self assigned
- */
- isSelfAssignable?: boolean;
- /**
- * If set, this role can be mentioned
- */
- isMentionable?: boolean;
- /**
- * Permissions must be a collection of valid permissions as defined in the [Enums/Permissions](https://www.guilded.gg/docs/api/Permissions) section
- */
- permissions: Array;
- /**
- * An array of integer values corresponding to the decimal RGB representation for a color. The first color is solid, and a second color indicates a gradient
- */
- colors?: Array;
- };
- }): CancelablePromise<{
- role: Role;
- }> {
- return this.httpRequest.request({
- method: "POST",
- url: "/servers/{serverId}/roles",
- path: {
- serverId: serverId,
- },
- body: requestBody,
- mediaType: "application/json",
- });
- }
+ /**
+ * Create a role
+ * @returns any Success
+ * @throws ApiError
+ */
+ public roleCreate({
+ serverId,
+ requestBody,
+ }: {
+ serverId: string;
+ requestBody: {
+ /**
+ * The role's name
+ */
+ name: string;
+ /**
+ * If set, the role will be displayed separately in the channel member list
+ */
+ isDisplayedSeparately?: boolean;
+ /**
+ * If set, this roll will be self assigned
+ */
+ isSelfAssignable?: boolean;
+ /**
+ * If set, this role can be mentioned
+ */
+ isMentionable?: boolean;
+ /**
+ * Permissions must be a collection of valid permissions as defined in the [Enums/Permissions](https://www.guilded.gg/docs/api/Permissions) section
+ */
+ permissions: Array;
+ /**
+ * An array of integer values corresponding to the decimal RGB representation for a color. The first color is solid, and a second color indicates a gradient
+ */
+ colors?: Array;
+ };
+ }): CancelablePromise<{
+ role: Role;
+ }> {
+ return this.httpRequest.request(
+ {
+ method: "POST",
+ url: "/servers/{serverId}/roles",
+ path: {
+ serverId: serverId,
+ },
+ body: requestBody,
+ mediaType: "application/json",
+ },
+ );
+ }
- /**
- * Update a role permission
- * @returns any Success
- * @throws ApiError
- */
- public rolePermissionUpdate({
- serverId,
- roleId,
- requestBody,
- }: {
- serverId: string;
- roleId: number;
- requestBody: {
- /**
- * A JSON object of [Enums/Permissions](https://www.guilded.gg/docs/api/Permissions) with `true` or `false` values.
- */
- permissions: Record;
- };
- }): CancelablePromise<{
- role: Role;
- }> {
- return this.httpRequest.request({
- method: "PATCH",
- url: "/servers/{serverId}/roles/{roleId}/permissions",
- path: {
- serverId: serverId,
- roleId: roleId,
- },
- body: requestBody,
- mediaType: "application/json",
- });
- }
+ /**
+ * Update a role permission
+ * @returns any Success
+ * @throws ApiError
+ */
+ public rolePermissionUpdate({
+ serverId,
+ roleId,
+ requestBody,
+ }: {
+ serverId: string;
+ roleId: number;
+ requestBody: {
+ /**
+ * A JSON object of [Enums/Permissions](https://www.guilded.gg/docs/api/Permissions) with `true` or `false` values.
+ */
+ permissions: Record<
+ string,
+ any
+ >;
+ };
+ }): CancelablePromise<{
+ role: Role;
+ }> {
+ return this.httpRequest.request(
+ {
+ method: "PATCH",
+ url: "/servers/{serverId}/roles/{roleId}/permissions",
+ path: {
+ serverId: serverId,
+ roleId: roleId,
+ },
+ body: requestBody,
+ mediaType: "application/json",
+ },
+ );
+ }
- /**
- * Read a server member's permissions
- * If the user has *all* of the permissions passed, the HTTP status code will be 200; if user is missing one or more permissions passed, the HTTP status code will be [418](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/418) with a `meta` property containing `missingPermissions` of the permissions the user does not have (this is a 418 to differentiate from a 403 if the _bot_ did not have permissions to perform the request, not the _user_). Tip: Use the `HEAD` HTTP method for this route if you only care about if the user has permissions and not the response body containing what's missing.
- * @returns any Success
- * @throws ApiError
- */
- public serverMemberPermissionsRead({
- serverId,
- userId,
- ids,
- }: {
- serverId: string;
- userId: string | "@me";
- /**
- * A queryString array of `ids[]` representing [Enums/Permissions](https://www.guilded.gg/docs/api/Permissions)
- */
- ids?: Array<
- | "CanCreateTopics"
- | "CanCreateTopicReplies"
- | "CanDeleteTopics"
- | "CanStickyTopics"
- | "CanLockTopics"
- | "CanManageEmotes"
- | "CanViewFormResponses"
- | "CanUpdateListItems"
- | "CanManageServerXp"
- | "CanCreateThreads"
- | "CanCreateThreadMessages"
- | "CanManageThreads"
- | "CanCreateAnnouncements"
- | "CanUpdateServer"
- | "CanManageRoles"
- | "CanInviteMembers"
- | "CanKickMembers"
- | "CanManageGroups"
- | "CanManageChannels"
- | "CanManageWebhooks"
- | "CanMentionEveryone"
- | "CanModerateChannels"
- | "CanBypassSlowMode"
- | "CanReadApplications"
- | "CanApproveApplications"
- | "CanEditApplicationForm"
- | "CanIndicateLfmInterest"
- | "CanModifyLfmStatus"
- | "CanReadAnnouncements"
- | "CanManageAnnouncements"
- | "CanReadChats"
- | "CanCreateChats"
- | "CanUploadChatMedia"
- | "CanCreatePrivateMessages"
- | "CanManageChats"
- | "CanReadEvents"
- | "CanCreateEvents"
- | "CanEditEvents"
- | "CanDeleteEvents"
- | "CanEditEventRsvps"
- | "CanReadForums"
- | "CanReadDocs"
- | "CanCreateDocs"
- | "CanEditDocs"
- | "CanDeleteDocs"
- | "CanReadMedia"
- | "CanAddMedia"
- | "CanEditMedia"
- | "CanDeleteMedia"
- | "CanListenVoice"
- | "CanAddVoice"
- | "CanManageVoiceGroups"
- | "CanAssignVoiceGroup"
- | "CanBroadcastVoice"
- | "CanDirectVoice"
- | "CanPrioritizeVoice"
- | "CanUseVoiceActivity"
- | "CanMuteMembers"
- | "CanDeafenMembers"
- | "CanSendVoiceMessages"
- | "CanCreateScrims"
- | "CanManageTournaments"
- | "CanRegisterForTournaments"
- | "CanChangeNickname"
- | "CanManageNicknames"
- | "CanViewPollResponses"
- | "CanReadListItems"
- | "CanCreateListItems"
- | "CanDeleteListItems"
- | "CanCompleteListItems"
- | "CanReorderListItems"
- | "CanViewBracket"
- | "CanReportScores"
- | "CanReadSchedules"
- | "CanCreateSchedule"
- | "CanDeleteSchedule"
- | "CanManageBots"
- | "CanReadStreams"
- | "CanJoinStreamVoice"
- | "CanCreateStreams"
- | "CanSendStreamMessages"
- | "CanAddStreamVoice"
- | "CanUseVoiceActivityInStream"
- | "CanReceiveAllSocketEvents"
- >;
- }): CancelablePromise<{
- /**
- * A list of [Enums/Permissions](https://www.guilded.gg/docs/api/Permissions) the User has in the success case
- */
- permissions: Array;
- }> {
- return this.httpRequest.request({
- method: "GET",
- url: "/servers/{serverId}/members/{userId}/permissions",
- path: {
- serverId: serverId,
- userId: userId,
- },
- query: {
- ids: ids,
- },
- });
- }
+ /**
+ * Read a server member's permissions
+ * If the user has *all* of the permissions passed, the HTTP status code will be 200; if user is missing one or more permissions passed, the HTTP status code will be [418](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/418) with a `meta` property containing `missingPermissions` of the permissions the user does not have (this is a 418 to differentiate from a 403 if the _bot_ did not have permissions to perform the request, not the _user_). Tip: Use the `HEAD` HTTP method for this route if you only care about if the user has permissions and not the response body containing what's missing.
+ * @returns any Success
+ * @throws ApiError
+ */
+ public serverMemberPermissionsRead({
+ serverId,
+ userId,
+ ids,
+ }: {
+ serverId: string;
+ userId:
+ | string
+ | "@me";
+ /**
+ * A queryString array of `ids[]` representing [Enums/Permissions](https://www.guilded.gg/docs/api/Permissions)
+ */
+ ids?: Array<
+ | "CanCreateTopics"
+ | "CanCreateTopicReplies"
+ | "CanDeleteTopics"
+ | "CanStickyTopics"
+ | "CanLockTopics"
+ | "CanManageEmotes"
+ | "CanViewFormResponses"
+ | "CanUpdateListItems"
+ | "CanManageServerXp"
+ | "CanCreateThreads"
+ | "CanCreateThreadMessages"
+ | "CanManageThreads"
+ | "CanCreateAnnouncements"
+ | "CanUpdateServer"
+ | "CanManageRoles"
+ | "CanInviteMembers"
+ | "CanKickMembers"
+ | "CanManageGroups"
+ | "CanManageChannels"
+ | "CanManageWebhooks"
+ | "CanMentionEveryone"
+ | "CanModerateChannels"
+ | "CanBypassSlowMode"
+ | "CanReadApplications"
+ | "CanApproveApplications"
+ | "CanEditApplicationForm"
+ | "CanIndicateLfmInterest"
+ | "CanModifyLfmStatus"
+ | "CanReadAnnouncements"
+ | "CanManageAnnouncements"
+ | "CanReadChats"
+ | "CanCreateChats"
+ | "CanUploadChatMedia"
+ | "CanCreatePrivateMessages"
+ | "CanManageChats"
+ | "CanReadEvents"
+ | "CanCreateEvents"
+ | "CanEditEvents"
+ | "CanDeleteEvents"
+ | "CanEditEventRsvps"
+ | "CanReadForums"
+ | "CanReadDocs"
+ | "CanCreateDocs"
+ | "CanEditDocs"
+ | "CanDeleteDocs"
+ | "CanReadMedia"
+ | "CanAddMedia"
+ | "CanEditMedia"
+ | "CanDeleteMedia"
+ | "CanListenVoice"
+ | "CanAddVoice"
+ | "CanManageVoiceGroups"
+ | "CanAssignVoiceGroup"
+ | "CanBroadcastVoice"
+ | "CanDirectVoice"
+ | "CanPrioritizeVoice"
+ | "CanUseVoiceActivity"
+ | "CanMuteMembers"
+ | "CanDeafenMembers"
+ | "CanSendVoiceMessages"
+ | "CanCreateScrims"
+ | "CanManageTournaments"
+ | "CanRegisterForTournaments"
+ | "CanChangeNickname"
+ | "CanManageNicknames"
+ | "CanViewPollResponses"
+ | "CanReadListItems"
+ | "CanCreateListItems"
+ | "CanDeleteListItems"
+ | "CanCompleteListItems"
+ | "CanReorderListItems"
+ | "CanViewBracket"
+ | "CanReportScores"
+ | "CanReadSchedules"
+ | "CanCreateSchedule"
+ | "CanDeleteSchedule"
+ | "CanManageBots"
+ | "CanReadStreams"
+ | "CanJoinStreamVoice"
+ | "CanCreateStreams"
+ | "CanSendStreamMessages"
+ | "CanAddStreamVoice"
+ | "CanUseVoiceActivityInStream"
+ | "CanReceiveAllSocketEvents"
+ >;
+ }): CancelablePromise<{
+ /**
+ * A list of [Enums/Permissions](https://www.guilded.gg/docs/api/Permissions) the User has in the success case
+ */
+ permissions: Array;
+ }> {
+ return this.httpRequest.request(
+ {
+ method: "GET",
+ url: "/servers/{serverId}/members/{userId}/permissions",
+ path: {
+ serverId: serverId,
+ userId: userId,
+ },
+ query: {
+ ids: ids,
+ },
+ },
+ );
+ }
}
diff --git a/packages/api/lib/generated/router/services/ServerSubscriptionService.ts b/packages/api/lib/generated/router/services/ServerSubscriptionService.ts
index 909084f7..034b200e 100644
--- a/packages/api/lib/generated/router/services/ServerSubscriptionService.ts
+++ b/packages/api/lib/generated/router/services/ServerSubscriptionService.ts
@@ -4,44 +4,63 @@
/* eslint-disable */
import type { ServerSubscriptionTier } from "../models/ServerSubscriptionTier";
-import type { CancelablePromise } from "../core/CancelablePromise";
import type { BaseHttpRequest } from "../core/BaseHttpRequest";
+import type { CancelablePromise } from "../core/CancelablePromise";
export class ServerSubscriptionService {
- constructor(public readonly httpRequest: BaseHttpRequest) {}
+ constructor(
+ public readonly httpRequest: BaseHttpRequest,
+ ) {}
- /**
- * Get a server subscription tier
- * @returns any Success
- * @throws ApiError
- */
- public serverSubscriptionTierRead({ serverId, serverSubscriptionTierType }: { serverId: string; serverSubscriptionTierType: "Gold" | "Silver" | "Copper" }): CancelablePromise<{
- serverSubscriptionTier: ServerSubscriptionTier;
- }> {
- return this.httpRequest.request({
- method: "GET",
- url: "/servers/{serverId}/subscriptions/tiers/{serverSubscriptionTierType}",
- path: {
- serverId: serverId,
- serverSubscriptionTierType: serverSubscriptionTierType,
- },
- });
- }
+ /**
+ * Get a server subscription tier
+ * @returns any Success
+ * @throws ApiError
+ */
+ public serverSubscriptionTierRead({
+ serverId,
+ serverSubscriptionTierType,
+ }: {
+ serverId: string;
+ serverSubscriptionTierType:
+ | "Gold"
+ | "Silver"
+ | "Copper";
+ }): CancelablePromise<{
+ serverSubscriptionTier: ServerSubscriptionTier;
+ }> {
+ return this.httpRequest.request(
+ {
+ method: "GET",
+ url: "/servers/{serverId}/subscriptions/tiers/{serverSubscriptionTierType}",
+ path: {
+ serverId: serverId,
+ serverSubscriptionTierType: serverSubscriptionTierType,
+ },
+ },
+ );
+ }
- /**
- * Get server subscription tiers
- * @returns any Success
- * @throws ApiError
- */
- public serverSubscriptionTierReadMany({ serverId }: { serverId: string }): CancelablePromise<{
- serverSubscriptionTiers: Array;
- }> {
- return this.httpRequest.request({
- method: "GET",
- url: "/servers/{serverId}/subscriptions/tiers",
- path: {
- serverId: serverId,
- },
- });
- }
+ /**
+ * Get server subscription tiers
+ * @returns any Success
+ * @throws ApiError
+ */
+ public serverSubscriptionTierReadMany({
+ serverId,
+ }: {
+ serverId: string;
+ }): CancelablePromise<{
+ serverSubscriptionTiers: Array;
+ }> {
+ return this.httpRequest.request(
+ {
+ method: "GET",
+ url: "/servers/{serverId}/subscriptions/tiers",
+ path: {
+ serverId: serverId,
+ },
+ },
+ );
+ }
}
diff --git a/packages/api/lib/generated/router/services/ServerXpService.ts b/packages/api/lib/generated/router/services/ServerXpService.ts
index 5cb1a9e9..6a7c0d14 100644
--- a/packages/api/lib/generated/router/services/ServerXpService.ts
+++ b/packages/api/lib/generated/router/services/ServerXpService.ts
@@ -1,193 +1,221 @@
+import type { BaseHttpRequest } from "../core/BaseHttpRequest";
/* generated using openapi-typescript-codegen -- do no edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { CancelablePromise } from "../core/CancelablePromise";
-import type { BaseHttpRequest } from "../core/BaseHttpRequest";
export class ServerXpService {
- constructor(public readonly httpRequest: BaseHttpRequest) {}
+ constructor(
+ public readonly httpRequest: BaseHttpRequest,
+ ) {}
- /**
- * Award XP to a member
- * @returns any Success
- * @throws ApiError
- */
- public serverXpForUserCreate({
- serverId,
- userId,
- requestBody,
- }: {
- serverId: string;
- /**
- * Member ID to award XP to
- */
- userId: string | "@me";
- requestBody: {
- /**
- * The amount of XP to award
- */
- amount: number;
- };
- }): CancelablePromise<{
- /**
- * The total XP after this operation
- */
- total: number;
- }> {
- return this.httpRequest.request({
- method: "POST",
- url: "/servers/{serverId}/members/{userId}/xp",
- path: {
- serverId: serverId,
- userId: userId,
- },
- body: requestBody,
- mediaType: "application/json",
- });
- }
+ /**
+ * Award XP to a member
+ * @returns any Success
+ * @throws ApiError
+ */
+ public serverXpForUserCreate({
+ serverId,
+ userId,
+ requestBody,
+ }: {
+ serverId: string;
+ /**
+ * Member ID to award XP to
+ */
+ userId:
+ | string
+ | "@me";
+ requestBody: {
+ /**
+ * The amount of XP to award
+ */
+ amount: number;
+ };
+ }): CancelablePromise<{
+ /**
+ * The total XP after this operation
+ */
+ total: number;
+ }> {
+ return this.httpRequest.request(
+ {
+ method: "POST",
+ url: "/servers/{serverId}/members/{userId}/xp",
+ path: {
+ serverId: serverId,
+ userId: userId,
+ },
+ body: requestBody,
+ mediaType: "application/json",
+ },
+ );
+ }
- /**
- * Set a member's XP
- * @returns any Success
- * @throws ApiError
- */
- public serverXpForUserUpdate({
- serverId,
- userId,
- requestBody,
- }: {
- serverId: string;
- /**
- * Member ID to set XP to
- */
- userId: string | "@me";
- requestBody: {
- /**
- * The total XP to set on the user
- */
- total: number;
- };
- }): CancelablePromise<{
- /**
- * The total XP after this operation
- */
- total: number;
- }> {
- return this.httpRequest.request({
- method: "PUT",
- url: "/servers/{serverId}/members/{userId}/xp",
- path: {
- serverId: serverId,
- userId: userId,
- },
- body: requestBody,
- mediaType: "application/json",
- });
- }
+ /**
+ * Set a member's XP
+ * @returns any Success
+ * @throws ApiError
+ */
+ public serverXpForUserUpdate({
+ serverId,
+ userId,
+ requestBody,
+ }: {
+ serverId: string;
+ /**
+ * Member ID to set XP to
+ */
+ userId:
+ | string
+ | "@me";
+ requestBody: {
+ /**
+ * The total XP to set on the user
+ */
+ total: number;
+ };
+ }): CancelablePromise<{
+ /**
+ * The total XP after this operation
+ */
+ total: number;
+ }> {
+ return this.httpRequest.request(
+ {
+ method: "PUT",
+ url: "/servers/{serverId}/members/{userId}/xp",
+ path: {
+ serverId: serverId,
+ userId: userId,
+ },
+ body: requestBody,
+ mediaType: "application/json",
+ },
+ );
+ }
- /**
- * Bulk award XP to members
- * Take note of the max number of `userIds` that can be submitted on each request. If you require more, please batch your requests
- * @returns any Success
- * @throws ApiError
- */
- public serverXpForUserCreateMany({
- serverId,
- requestBody,
- }: {
- serverId: string;
- requestBody: {
- /**
- * The amount of XP to award
- */
- amount: number;
- userIds: Array;
- };
- }): CancelablePromise<{
- /**
- * Each key of the object will be a user ID, and its value will be the total for that user after this operation
- */
- totalsByUserId: Record;
- }> {
- return this.httpRequest.request({
- method: "POST",
- url: "/servers/{serverId}/xp",
- path: {
- serverId: serverId,
- },
- body: requestBody,
- mediaType: "application/json",
- });
- }
+ /**
+ * Bulk award XP to members
+ * Take note of the max number of `userIds` that can be submitted on each request. If you require more, please batch your requests
+ * @returns any Success
+ * @throws ApiError
+ */
+ public serverXpForUserCreateMany({
+ serverId,
+ requestBody,
+ }: {
+ serverId: string;
+ requestBody: {
+ /**
+ * The amount of XP to award
+ */
+ amount: number;
+ userIds: Array<
+ | string
+ | "@me"
+ >;
+ };
+ }): CancelablePromise<{
+ /**
+ * Each key of the object will be a user ID, and its value will be the total for that user after this operation
+ */
+ totalsByUserId: Record<
+ string,
+ number
+ >;
+ }> {
+ return this.httpRequest.request(
+ {
+ method: "POST",
+ url: "/servers/{serverId}/xp",
+ path: {
+ serverId: serverId,
+ },
+ body: requestBody,
+ mediaType: "application/json",
+ },
+ );
+ }
- /**
- * Bulk set members' XP
- * Take note of the max number of `userIds` that can be submitted on each request. If you require more, please batch your requests
- * @returns any Success
- * @throws ApiError
- */
- public serverXpForUserUpdateMany({
- serverId,
- requestBody,
- }: {
- serverId: string;
- requestBody: {
- /**
- * The total XP to set on each user
- */
- total?: number;
- userIds: Array;
- };
- }): CancelablePromise<{
- /**
- * Each key of the object will be a user ID, and its value will be the total for that user after this operation
- */
- totalsByUserId: Record;
- }> {
- return this.httpRequest.request({
- method: "PUT",
- url: "/servers/{serverId}/xp",
- path: {
- serverId: serverId,
- },
- body: requestBody,
- mediaType: "application/json",
- });
- }
+ /**
+ * Bulk set members' XP
+ * Take note of the max number of `userIds` that can be submitted on each request. If you require more, please batch your requests
+ * @returns any Success
+ * @throws ApiError
+ */
+ public serverXpForUserUpdateMany({
+ serverId,
+ requestBody,
+ }: {
+ serverId: string;
+ requestBody: {
+ /**
+ * The total XP to set on each user
+ */
+ total?: number;
+ userIds: Array<
+ | string
+ | "@me"
+ >;
+ };
+ }): CancelablePromise<{
+ /**
+ * Each key of the object will be a user ID, and its value will be the total for that user after this operation
+ */
+ totalsByUserId: Record<
+ string,
+ number
+ >;
+ }> {
+ return this.httpRequest.request(
+ {
+ method: "PUT",
+ url: "/servers/{serverId}/xp",
+ path: {
+ serverId: serverId,
+ },
+ body: requestBody,
+ mediaType: "application/json",
+ },
+ );
+ }
- /**
- * Award XP to role
- * Award XP to all members with a particular role.
- * @returns void
- * @throws ApiError
- */
- public serverXpForRoleCreate({
- serverId,
- roleId,
- requestBody,
- }: {
- serverId: string;
- /**
- * Role ID to award XP to
- */
- roleId: number;
- requestBody: {
- /**
- * The amount of XP to award
- */
- amount: number;
- };
- }): CancelablePromise {
- return this.httpRequest.request({
- method: "POST",
- url: "/servers/{serverId}/roles/{roleId}/xp",
- path: {
- serverId: serverId,
- roleId: roleId,
- },
- body: requestBody,
- mediaType: "application/json",
- });
- }
+ /**
+ * Award XP to role
+ * Award XP to all members with a particular role.
+ * @returns void
+ * @throws ApiError
+ */
+ public serverXpForRoleCreate({
+ serverId,
+ roleId,
+ requestBody,
+ }: {
+ serverId: string;
+ /**
+ * Role ID to award XP to
+ */
+ roleId: number;
+ requestBody: {
+ /**
+ * The amount of XP to award
+ */
+ amount: number;
+ };
+ }): CancelablePromise {
+ return this.httpRequest.request(
+ {
+ method: "POST",
+ url: "/servers/{serverId}/roles/{roleId}/xp",
+ path: {
+ serverId: serverId,
+ roleId: roleId,
+ },
+ body: requestBody,
+ mediaType: "application/json",
+ },
+ );
+ }
}
diff --git a/packages/api/lib/generated/router/services/ServersService.ts b/packages/api/lib/generated/router/services/ServersService.ts
index 66e0ca99..1fc76d46 100644
--- a/packages/api/lib/generated/router/services/ServersService.ts
+++ b/packages/api/lib/generated/router/services/ServersService.ts
@@ -4,27 +4,35 @@
/* eslint-disable */
import type { Server } from "../models/Server";
-import type { CancelablePromise } from "../core/CancelablePromise";
import type { BaseHttpRequest } from "../core/BaseHttpRequest";
+import type { CancelablePromise } from "../core/CancelablePromise";
export class ServersService {
- constructor(public readonly httpRequest: BaseHttpRequest) {}
+ constructor(
+ public readonly httpRequest: BaseHttpRequest,
+ ) {}
- /**
- * Get a server
- * Fetch various information about a given server. Currently, the bot must be a member of the server in order to fetch its information.
- * @returns any Success
- * @throws ApiError
- */
- public serverRead({ serverId }: { serverId: string }): CancelablePromise<{
- server: Server;
- }> {
- return this.httpRequest.request({
- method: "GET",
- url: "/servers/{serverId}",
- path: {
- serverId: serverId,
- },
- });
- }
+ /**
+ * Get a server
+ * Fetch various information about a given server. Currently, the bot must be a member of the server in order to fetch its information.
+ * @returns any Success
+ * @throws ApiError
+ */
+ public serverRead({
+ serverId,
+ }: {
+ serverId: string;
+ }): CancelablePromise<{
+ server: Server;
+ }> {
+ return this.httpRequest.request(
+ {
+ method: "GET",
+ url: "/servers/{serverId}",
+ path: {
+ serverId: serverId,
+ },
+ },
+ );
+ }
}
diff --git a/packages/api/lib/generated/router/services/SocialLinksService.ts b/packages/api/lib/generated/router/services/SocialLinksService.ts
index 59c50a5e..b2361563 100644
--- a/packages/api/lib/generated/router/services/SocialLinksService.ts
+++ b/packages/api/lib/generated/router/services/SocialLinksService.ts
@@ -4,39 +4,58 @@
/* eslint-disable */
import type { SocialLink } from "../models/SocialLink";
-import type { CancelablePromise } from "../core/CancelablePromise";
import type { BaseHttpRequest } from "../core/BaseHttpRequest";
+import type { CancelablePromise } from "../core/CancelablePromise";
export class SocialLinksService {
- constructor(public readonly httpRequest: BaseHttpRequest) {}
+ constructor(
+ public readonly httpRequest: BaseHttpRequest,
+ ) {}
- /**
- * Retrieves a member's public social links
- * @returns any Success
- * @throws ApiError
- */
- public memberSocialLinkRead({
- serverId,
- userId,
- socialLinkType,
- }: {
- serverId: string;
- userId: string | "@me";
- /**
- * The type of social link to retrieve
- */
- socialLinkType: "twitch" | "bnet" | "psn" | "xbox" | "steam" | "origin" | "youtube" | "twitter" | "facebook" | "switch" | "patreon" | "roblox" | "epic";
- }): CancelablePromise<{
- socialLink: SocialLink;
- }> {
- return this.httpRequest.request({
- method: "GET",
- url: "/servers/{serverId}/members/{userId}/social-links/{socialLinkType}",
- path: {
- serverId: serverId,
- userId: userId,
- socialLinkType: socialLinkType,
- },
- });
- }
+ /**
+ * Retrieves a member's public social links
+ * @returns any Success
+ * @throws ApiError
+ */
+ public memberSocialLinkRead({
+ serverId,
+ userId,
+ socialLinkType,
+ }: {
+ serverId: string;
+ userId:
+ | string
+ | "@me";
+ /**
+ * The type of social link to retrieve
+ */
+ socialLinkType:
+ | "twitch"
+ | "bnet"
+ | "psn"
+ | "xbox"
+ | "steam"
+ | "origin"
+ | "youtube"
+ | "twitter"
+ | "facebook"
+ | "switch"
+ | "patreon"
+ | "roblox"
+ | "epic";
+ }): CancelablePromise<{
+ socialLink: SocialLink;
+ }> {
+ return this.httpRequest.request(
+ {
+ method: "GET",
+ url: "/servers/{serverId}/members/{userId}/social-links/{socialLinkType}",
+ path: {
+ serverId: serverId,
+ userId: userId,
+ socialLinkType: socialLinkType,
+ },
+ },
+ );
+ }
}
diff --git a/packages/api/lib/generated/router/services/UserStatusService.ts b/packages/api/lib/generated/router/services/UserStatusService.ts
index 68417e77..d499eac4 100644
--- a/packages/api/lib/generated/router/services/UserStatusService.ts
+++ b/packages/api/lib/generated/router/services/UserStatusService.ts
@@ -1,63 +1,77 @@
+import type { BaseHttpRequest } from "../core/BaseHttpRequest";
/* generated using openapi-typescript-codegen -- do no edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { CancelablePromise } from "../core/CancelablePromise";
-import type { BaseHttpRequest } from "../core/BaseHttpRequest";
export class UserStatusService {
- constructor(public readonly httpRequest: BaseHttpRequest) {}
+ constructor(
+ public readonly httpRequest: BaseHttpRequest,
+ ) {}
- /**
- * Update your status
- * This value can be a max of 24 hours into the futre. If you are wanting a longer expiration, set this value to null so that it never expires. **Note** - at this time, you can only set a status on your own user
- * @returns void
- * @throws ApiError
- */
- public userStatusCreate({
- userId,
- requestBody,
- }: {
- userId: string | "@me";
- requestBody: {
- /**
- * The content of the user status. The supported markdown for this content only includes reactions and plaintext for now
- */
- content?: string;
- /**
- * Emote ID to apply
- */
- emoteId: number;
- /**
- * An ISO 8601 timestamp that will be used to indicate when an expiration occurs. Expiration usually will not occur exactly at this time. Bot logic should not expect a guarantee of timing as a result, but can expect that it'll happen very shortly afterwards
- */
- expiresAt?: string;
- };
- }): CancelablePromise {
- return this.httpRequest.request({
- method: "PUT",
- url: "/users/{userId}/status",
- path: {
- userId: userId,
- },
- body: requestBody,
- mediaType: "application/json",
- });
- }
+ /**
+ * Update your status
+ * This value can be a max of 24 hours into the futre. If you are wanting a longer expiration, set this value to null so that it never expires. **Note** - at this time, you can only set a status on your own user
+ * @returns void
+ * @throws ApiError
+ */
+ public userStatusCreate({
+ userId,
+ requestBody,
+ }: {
+ userId:
+ | string
+ | "@me";
+ requestBody: {
+ /**
+ * The content of the user status. The supported markdown for this content only includes reactions and plaintext for now
+ */
+ content?: string;
+ /**
+ * Emote ID to apply
+ */
+ emoteId: number;
+ /**
+ * An ISO 8601 timestamp that will be used to indicate when an expiration occurs. Expiration usually will not occur exactly at this time. Bot logic should not expect a guarantee of timing as a result, but can expect that it'll happen very shortly afterwards
+ */
+ expiresAt?: string;
+ };
+ }): CancelablePromise {
+ return this.httpRequest.request(
+ {
+ method: "PUT",
+ url: "/users/{userId}/status",
+ path: {
+ userId: userId,
+ },
+ body: requestBody,
+ mediaType: "application/json",
+ },
+ );
+ }
- /**
- * Delete your status
- * **Note** - at this time, you can only set a status on your own user
- * @returns void
- * @throws ApiError
- */
- public userStatusDelete({ userId }: { userId: string | "@me" }): CancelablePromise {
- return this.httpRequest.request({
- method: "DELETE",
- url: "/users/{userId}/status",
- path: {
- userId: userId,
- },
- });
- }
+ /**
+ * Delete your status
+ * **Note** - at this time, you can only set a status on your own user
+ * @returns void
+ * @throws ApiError
+ */
+ public userStatusDelete({
+ userId,
+ }: {
+ userId:
+ | string
+ | "@me";
+ }): CancelablePromise {
+ return this.httpRequest.request(
+ {
+ method: "DELETE",
+ url: "/users/{userId}/status",
+ path: {
+ userId: userId,
+ },
+ },
+ );
+ }
}
diff --git a/packages/api/lib/generated/router/services/UsersService.ts b/packages/api/lib/generated/router/services/UsersService.ts
index 997fab0a..8b182118 100644
--- a/packages/api/lib/generated/router/services/UsersService.ts
+++ b/packages/api/lib/generated/router/services/UsersService.ts
@@ -5,45 +5,63 @@
import type { Server } from "../models/Server";
import type { User } from "../models/User";
-import type { CancelablePromise } from "../core/CancelablePromise";
import type { BaseHttpRequest } from "../core/BaseHttpRequest";
+import type { CancelablePromise } from "../core/CancelablePromise";
export class UsersService {
- constructor(public readonly httpRequest: BaseHttpRequest) {}
+ constructor(
+ public readonly httpRequest: BaseHttpRequest,
+ ) {}
- /**
- * Get a user
- * **Note** - at this time, you can only retrieve your own user
- * @returns any Success
- * @throws ApiError
- */
- public userRead({ userId }: { userId: string | "@me" }): CancelablePromise<{
- user: User;
- }> {
- return this.httpRequest.request({
- method: "GET",
- url: "/users/{userId}",
- path: {
- userId: userId,
- },
- });
- }
+ /**
+ * Get a user
+ * **Note** - at this time, you can only retrieve your own user
+ * @returns any Success
+ * @throws ApiError
+ */
+ public userRead({
+ userId,
+ }: {
+ userId:
+ | string
+ | "@me";
+ }): CancelablePromise<{
+ user: User;
+ }> {
+ return this.httpRequest.request(
+ {
+ method: "GET",
+ url: "/users/{userId}",
+ path: {
+ userId: userId,
+ },
+ },
+ );
+ }
- /**
- * Get a users servers
- * **Note** - at this time, you can only retrieve your own servers
- * @returns any Success
- * @throws ApiError
- */
- public userServerReadMany({ userId }: { userId: string | "@me" }): CancelablePromise<{
- servers: Array;
- }> {
- return this.httpRequest.request({
- method: "GET",
- url: "/users/{userId}/servers",
- path: {
- userId: userId,
- },
- });
- }
+ /**
+ * Get a users servers
+ * **Note** - at this time, you can only retrieve your own servers
+ * @returns any Success
+ * @throws ApiError
+ */
+ public userServerReadMany({
+ userId,
+ }: {
+ userId:
+ | string
+ | "@me";
+ }): CancelablePromise<{
+ servers: Array;
+ }> {
+ return this.httpRequest.request(
+ {
+ method: "GET",
+ url: "/users/{userId}/servers",
+ path: {
+ userId: userId,
+ },
+ },
+ );
+ }
}
diff --git a/packages/api/lib/generated/router/services/WebhookService.ts b/packages/api/lib/generated/router/services/WebhookService.ts
index 7bd92f8b..b9379c0c 100644
--- a/packages/api/lib/generated/router/services/WebhookService.ts
+++ b/packages/api/lib/generated/router/services/WebhookService.ts
@@ -4,144 +4,168 @@
/* eslint-disable */
import type { Webhook } from "../models/Webhook";
-import type { CancelablePromise } from "../core/CancelablePromise";
import type { BaseHttpRequest } from "../core/BaseHttpRequest";
+import type { CancelablePromise } from "../core/CancelablePromise";
export class WebhookService {
- constructor(public readonly httpRequest: BaseHttpRequest) {}
+ constructor(
+ public readonly httpRequest: BaseHttpRequest,
+ ) {}
- /**
- * Create a webhook
- * @returns any Success
- * @throws ApiError
- */
- public webhookCreate({
- serverId,
- requestBody,
- }: {
- serverId: string;
- requestBody: {
- /**
- * The name of the webhook
- */
- name: string;
- /**
- * Channel ID to create the webhook in
- */
- channelId: string;
- };
- }): CancelablePromise<{
- webhook: Webhook;
- }> {
- return this.httpRequest.request({
- method: "POST",
- url: "/servers/{serverId}/webhooks",
- path: {
- serverId: serverId,
- },
- body: requestBody,
- mediaType: "application/json",
- });
- }
+ /**
+ * Create a webhook
+ * @returns any Success
+ * @throws ApiError
+ */
+ public webhookCreate({
+ serverId,
+ requestBody,
+ }: {
+ serverId: string;
+ requestBody: {
+ /**
+ * The name of the webhook
+ */
+ name: string;
+ /**
+ * Channel ID to create the webhook in
+ */
+ channelId: string;
+ };
+ }): CancelablePromise<{
+ webhook: Webhook;
+ }> {
+ return this.httpRequest.request(
+ {
+ method: "POST",
+ url: "/servers/{serverId}/webhooks",
+ path: {
+ serverId: serverId,
+ },
+ body: requestBody,
+ mediaType: "application/json",
+ },
+ );
+ }
- /**
- * Get a server's webhooks
- * Get a list of webhooks from a server.
- * @returns any Success
- * @throws ApiError
- */
- public webhookReadMany({
- serverId,
- channelId,
- }: {
- serverId: string;
- /**
- * ID of the channel you want to filter for webhooks
- */
- channelId: string;
- }): CancelablePromise<{
- webhooks: Array;
- }> {
- return this.httpRequest.request({
- method: "GET",
- url: "/servers/{serverId}/webhooks",
- path: {
- serverId: serverId,
- },
- query: {
- channelId: channelId,
- },
- });
- }
+ /**
+ * Get a server's webhooks
+ * Get a list of webhooks from a server.
+ * @returns any Success
+ * @throws ApiError
+ */
+ public webhookReadMany({
+ serverId,
+ channelId,
+ }: {
+ serverId: string;
+ /**
+ * ID of the channel you want to filter for webhooks
+ */
+ channelId: string;
+ }): CancelablePromise<{
+ webhooks: Array;
+ }> {
+ return this.httpRequest.request(
+ {
+ method: "GET",
+ url: "/servers/{serverId}/webhooks",
+ path: {
+ serverId: serverId,
+ },
+ query: {
+ channelId: channelId,
+ },
+ },
+ );
+ }
- /**
- * Get a server's webhook
- * @returns any Success
- * @throws ApiError
- */
- public webhookRead({ serverId, webhookId }: { serverId: string; webhookId: string }): CancelablePromise<{
- webhook: Webhook;
- }> {
- return this.httpRequest.request({
- method: "GET",
- url: "/servers/{serverId}/webhooks/{webhookId}",
- path: {
- serverId: serverId,
- webhookId: webhookId,
- },
- });
- }
+ /**
+ * Get a server's webhook
+ * @returns any Success
+ * @throws ApiError
+ */
+ public webhookRead({
+ serverId,
+ webhookId,
+ }: {
+ serverId: string;
+ webhookId: string;
+ }): CancelablePromise<{
+ webhook: Webhook;
+ }> {
+ return this.httpRequest.request(
+ {
+ method: "GET",
+ url: "/servers/{serverId}/webhooks/{webhookId}",
+ path: {
+ serverId: serverId,
+ webhookId: webhookId,
+ },
+ },
+ );
+ }
- /**
- * Update a webhook
- * @returns any Success
- * @throws ApiError
- */
- public webhookUpdate({
- serverId,
- webhookId,
- requestBody,
- }: {
- serverId: string;
- webhookId: string;
- requestBody: {
- /**
- * The name of the webhook
- */
- name: string;
- /**
- * The ID of the channel
- */
- channelId?: string;
- };
- }): CancelablePromise<{
- webhook: Webhook;
- }> {
- return this.httpRequest.request({
- method: "PUT",
- url: "/servers/{serverId}/webhooks/{webhookId}",
- path: {
- serverId: serverId,
- webhookId: webhookId,
- },
- body: requestBody,
- mediaType: "application/json",
- });
- }
+ /**
+ * Update a webhook
+ * @returns any Success
+ * @throws ApiError
+ */
+ public webhookUpdate({
+ serverId,
+ webhookId,
+ requestBody,
+ }: {
+ serverId: string;
+ webhookId: string;
+ requestBody: {
+ /**
+ * The name of the webhook
+ */
+ name: string;
+ /**
+ * The ID of the channel
+ */
+ channelId?: string;
+ };
+ }): CancelablePromise<{
+ webhook: Webhook;
+ }> {
+ return this.httpRequest.request(
+ {
+ method: "PUT",
+ url: "/servers/{serverId}/webhooks/{webhookId}",
+ path: {
+ serverId: serverId,
+ webhookId: webhookId,
+ },
+ body: requestBody,
+ mediaType: "application/json",
+ },
+ );
+ }
- /**
- * Delete a server webhook
- * @returns void
- * @throws ApiError
- */
- public webhookDelete({ serverId, webhookId }: { serverId: string; webhookId: string }): CancelablePromise {
- return this.httpRequest.request({
- method: "DELETE",
- url: "/servers/{serverId}/webhooks/{webhookId}",
- path: {
- serverId: serverId,
- webhookId: webhookId,
- },
- });
- }
+ /**
+ * Delete a server webhook
+ * @returns void
+ * @throws ApiError
+ */
+ public webhookDelete({
+ serverId,
+ webhookId,
+ }: {
+ serverId: string;
+ webhookId: string;
+ }): CancelablePromise {
+ return this.httpRequest.request(
+ {
+ method: "DELETE",
+ url: "/servers/{serverId}/webhooks/{webhookId}",
+ path: {
+ serverId: serverId,
+ webhookId: webhookId,
+ },
+ },
+ );
+ }
}
diff --git a/packages/api/lib/rest/RestManager.ts b/packages/api/lib/rest/RestManager.ts
index a56c110f..08d07a5a 100644
--- a/packages/api/lib/rest/RestManager.ts
+++ b/packages/api/lib/rest/RestManager.ts
@@ -13,7 +13,7 @@ import type { RestOptions } from "./typings";
let HTTPFetch = globalThis.fetch;
if (!HTTPFetch) {
- HTTPFetch = require("node-fetch");
+ HTTPFetch = require("node-fetch");
}
const packageDetails = require("../../package.json");
@@ -21,248 +21,260 @@ const packageDetails = require("../../package.json");
const sleep = async (ms: number): Promise => new Promise((resolve) => setTimeout(resolve, ms));
export type RequestOptions = {
- body?: BodyInit | Buffer;
- headers: Record;
- method: HTTPMethods;
- url: string;
+ body?: BodyInit | Buffer;
+ headers: Record;
+ method: HTTPMethods;
+ url: string;
};
export type ResponseDetails = {
- body: JSONB | string;
- headers: Record