Added license to all the files

This commit is contained in:
Toastie 2024-09-26 23:01:06 +12:00
parent 333cc04e26
commit 4974c68cdf
Signed by: toastie_t0ast
GPG key ID: 27F3B6855AFD40A4
566 changed files with 9622 additions and 0 deletions

View file

@ -1,3 +1,20 @@
/*
ValkyrieChat: A re-implementation and extension of the Discord.com backend.
Copyright (C) 2024 ValkyrieChat
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
require("module-alias/register");
const getRouteDescriptions = require("./util/getRouteDescriptions");
const path = require("path");

View file

@ -1,3 +1,20 @@
/*
ValkyrieChat: A re-implementation and extension of the Discord.com backend.
Copyright (C) 2024 ValkyrieChat
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
/*
Calculates a discord.com-like rights value.
*/

View file

@ -1,3 +1,20 @@
/*
ValkyrieChat: A re-implementation and extension of the Discord.com backend.
Copyright (C) 2024 ValkyrieChat
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
const path = require("path");
const fs = require("fs");
const TJS = require("typescript-json-schema");

View file

@ -1,3 +1,20 @@
/*
ValkyrieChat: A re-implementation and extension of the Discord.com backend.
Copyright (C) 2024 ValkyrieChat
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
const { DataSourceOptions, DatabaseType, initDatabase } = require("../..");
const path = require("path");

View file

@ -1,3 +1,20 @@
/*
ValkyrieChat: A re-implementation and extension of the Discord.com backend.
Copyright (C) 2024 ValkyrieChat
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
const { MigrationInterface, QueryRunner } = require("typeorm");
module.exports = class staging1672833135670 {

View file

@ -1,3 +1,20 @@
/*
ValkyrieChat: A re-implementation and extension of the Discord.com backend.
Copyright (C) 2024 ValkyrieChat
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
const { MigrationInterface, QueryRunner } = require("typeorm");
module.exports = class staging1672833135670 {

View file

@ -1,3 +1,20 @@
/*
ValkyrieChat: A re-implementation and extension of the Discord.com backend.
Copyright (C) 2024 ValkyrieChat
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
const { MigrationInterface, QueryRunner } = require("typeorm");
module.exports = class staging1672815835837 {

View file

@ -1,3 +1,20 @@
/*
ValkyrieChat: A re-implementation and extension of the Discord.com backend.
Copyright (C) 2024 ValkyrieChat
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
/* eslint-env node */
require("dotenv").config();

View file

@ -1,3 +1,20 @@
/*
ValkyrieChat: A re-implementation and extension of the Discord.com backend.
Copyright (C) 2024 ValkyrieChat
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
const fetch = require("node-fetch");
const ENDPOINT = process.env.API || "http://localhost:3001";

View file

@ -1,3 +1,20 @@
/*
ValkyrieChat: A re-implementation and extension of the Discord.com backend.
Copyright (C) 2024 ValkyrieChat
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
require("dotenv").config();
const fetch = require("node-fetch");
const count = Number(process.env.COUNT) || 50;

View file

@ -1,3 +1,20 @@
/*
ValkyrieChat: A re-implementation and extension of the Discord.com backend.
Copyright (C) 2024 ValkyrieChat
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
/*
"Why?" I hear you say! "Why don't you just use `typeorm schema:sync`?"!
Because we have a lot ( like, 30? ) cyclic imports in the entities folder,

View file

@ -1,3 +1,20 @@
/*
ValkyrieChat: A re-implementation and extension of the Discord.com backend.
Copyright (C) 2024 ValkyrieChat
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
/*
Super simple script to check if the server starts at all, for use in gh actions.
Not a proper test framework by any means.

View file

@ -1,3 +1,20 @@
/*
ValkyrieChat: A re-implementation and extension of the Discord.com backend.
Copyright (C) 2024 ValkyrieChat
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
const express = require("express");
const path = require("path");
const { traverseDirectory } = require("lambert-server");

View file

@ -1,3 +1,20 @@
/*
ValkyrieChat: A re-implementation and extension of the Discord.com backend.
Copyright (C) 2024 ValkyrieChat
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
const fs = require("fs");
/** dir: string. types: string[] ( file types ) */

View file

@ -1,3 +1,20 @@
/*
ValkyrieChat: A re-implementation and extension of the Discord.com backend.
Copyright (C) 2024 ValkyrieChat
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
import {
Config,
ConnectionConfig,

17
src/api/global.d.ts vendored
View file

@ -1,3 +1,20 @@
/*
ValkyrieChat: A re-implementation and extension of the Discord.com backend.
Copyright (C) 2024 ValkyrieChat
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
// declare global {
// namespace Express {
// interface Request {

View file

@ -1,3 +1,20 @@
/*
ValkyrieChat: A re-implementation and extension of the Discord.com backend.
Copyright (C) 2024 ValkyrieChat
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
export * from "./Server";
export * from "./middlewares/";
export * from "./util/";

View file

@ -1,3 +1,20 @@
/*
ValkyrieChat: A re-implementation and extension of the Discord.com backend.
Copyright (C) 2024 ValkyrieChat
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
import * as Sentry from "@sentry/node";
import { checkToken, Rights } from "@valkyrie/util";
import { NextFunction, Request, Response } from "express";

View file

@ -1,3 +1,20 @@
/*
ValkyrieChat: A re-implementation and extension of the Discord.com backend.
Copyright (C) 2024 ValkyrieChat
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
import bodyParser, { OptionsJson } from "body-parser";
import { NextFunction, Request, Response } from "express";
import { HTTPError } from "lambert-server";

View file

@ -1,3 +1,20 @@
/*
ValkyrieChat: A re-implementation and extension of the Discord.com backend.
Copyright (C) 2024 ValkyrieChat
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
import { NextFunction, Request, Response } from "express";
// TODO: config settings

View file

@ -1,3 +1,20 @@
/*
ValkyrieChat: A re-implementation and extension of the Discord.com backend.
Copyright (C) 2024 ValkyrieChat
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
import { NextFunction, Request, Response } from "express";
import { HTTPError } from "lambert-server";
import { ApiError, FieldError } from "@valkyrie/util";

View file

@ -1,3 +1,20 @@
/*
ValkyrieChat: A re-implementation and extension of the Discord.com backend.
Copyright (C) 2024 ValkyrieChat
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
import { Config, JimpType } from "@valkyrie/util";
import { Request, Response } from "express";
import { yellow } from "picocolors";

View file

@ -1,3 +1,20 @@
/*
ValkyrieChat: A re-implementation and extension of the Discord.com backend.
Copyright (C) 2024 ValkyrieChat
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
import { getIpAdress } from "@valkyrie/api";
import { Config, getRights, listenEvent } from "@valkyrie/util";
import { NextFunction, Request, Response, Router } from "express";

View file

@ -1,3 +1,20 @@
/*
ValkyrieChat: A re-implementation and extension of the Discord.com backend.
Copyright (C) 2024 ValkyrieChat
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
import fs from "fs";
import path from "path";
import i18next from "i18next";

View file

@ -1,3 +1,20 @@
/*
ValkyrieChat: A re-implementation and extension of the Discord.com backend.
Copyright (C) 2024 ValkyrieChat
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
export * from "./Authentication";
export * from "./BodyParser";
export * from "./CORS";

View file

@ -1,3 +1,20 @@
/*
ValkyrieChat: A re-implementation and extension of the Discord.com backend.
Copyright (C) 2024 ValkyrieChat
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
import { Router, Response, Request } from "express";
import { route } from "@valkyrie/api";
import { getDatabase } from "@valkyrie/util";

View file

@ -1,3 +1,20 @@
/*
ValkyrieChat: A re-implementation and extension of the Discord.com backend.
Copyright (C) 2024 ValkyrieChat
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
import { Router, Response, Request } from "express";
import { route } from "@valkyrie/api";
import { getDatabase } from "@valkyrie/util";

View file

@ -1,3 +1,20 @@
/*
ValkyrieChat: A re-implementation and extension of the Discord.com backend.
Copyright (C) 2024 ValkyrieChat
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
import { route } from "@valkyrie/api";
import {
Application,

View file

@ -1,3 +1,20 @@
/*
ValkyrieChat: A re-implementation and extension of the Discord.com backend.
Copyright (C) 2024 ValkyrieChat
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
import { route } from "@valkyrie/api";
import { Request, Response, Router } from "express";

View file

@ -1,3 +1,20 @@
/*
ValkyrieChat: A re-implementation and extension of the Discord.com backend.
Copyright (C) 2024 ValkyrieChat
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
import { route } from "@valkyrie/api";
import {
Application,

View file

@ -1,3 +1,20 @@
/*
ValkyrieChat: A re-implementation and extension of the Discord.com backend.
Copyright (C) 2024 ValkyrieChat
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
import { route } from "@valkyrie/api";
import { Request, Response, Router } from "express";

View file

@ -1,3 +1,20 @@
/*
ValkyrieChat: A re-implementation and extension of the Discord.com backend.
Copyright (C) 2024 ValkyrieChat
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
import { route } from "@valkyrie/api";
import { Request, Response, Router } from "express";

View file

@ -1,3 +1,20 @@
/*
ValkyrieChat: A re-implementation and extension of the Discord.com backend.
Copyright (C) 2024 ValkyrieChat
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
import { route } from "@valkyrie/api";
import {
Application,

View file

@ -1,3 +1,20 @@
/*
ValkyrieChat: A re-implementation and extension of the Discord.com backend.
Copyright (C) 2024 ValkyrieChat
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
import { getIpAdress, route, verifyCaptcha } from "@valkyrie/api";
import { Config, Email, ForgotPasswordSchema, User } from "@valkyrie/util";
import { Request, Response, Router } from "express";

View file

@ -1,3 +1,20 @@
/*
ValkyrieChat: A re-implementation and extension of the Discord.com backend.
Copyright (C) 2024 ValkyrieChat
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
import { random, route } from "@valkyrie/api";
import { Config, ValidRegistrationToken } from "@valkyrie/util";
import { Request, Response, Router } from "express";

View file

@ -1,3 +1,20 @@
/*
ValkyrieChat: A re-implementation and extension of the Discord.com backend.
Copyright (C) 2024 ValkyrieChat
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
import { IPAnalysis, getIpAdress, route } from "@valkyrie/api";
import { Request, Response, Router } from "express";
const router = Router();

View file

@ -1,3 +1,20 @@
/*
ValkyrieChat: A re-implementation and extension of the Discord.com backend.
Copyright (C) 2024 ValkyrieChat
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
import { getIpAdress, route, verifyCaptcha } from "@valkyrie/api";
import {
Config,

View file

@ -1,3 +1,20 @@
/*
ValkyrieChat: A re-implementation and extension of the Discord.com backend.
Copyright (C) 2024 ValkyrieChat
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
import { route } from "@valkyrie/api";
import { Request, Response, Router } from "express";

View file

@ -1,3 +1,20 @@
/*
ValkyrieChat: A re-implementation and extension of the Discord.com backend.
Copyright (C) 2024 ValkyrieChat
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
import { route } from "@valkyrie/api";
import { BackupCode, TotpSchema, User, generateToken } from "@valkyrie/util";
import { Request, Response, Router } from "express";

View file

@ -1,3 +1,20 @@
/*
ValkyrieChat: A re-implementation and extension of the Discord.com backend.
Copyright (C) 2024 ValkyrieChat
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
import { route } from "@valkyrie/api";
import {
generateToken,

View file

@ -1,3 +1,20 @@
/*
ValkyrieChat: A re-implementation and extension of the Discord.com backend.
Copyright (C) 2024 ValkyrieChat
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
import {
IPAnalysis,
getIpAdress,

View file

@ -1,3 +1,20 @@
/*
ValkyrieChat: A re-implementation and extension of the Discord.com backend.
Copyright (C) 2024 ValkyrieChat
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
import { route } from "@valkyrie/api";
import {
checkToken,

View file

@ -1,3 +1,20 @@
/*
ValkyrieChat: A re-implementation and extension of the Discord.com backend.
Copyright (C) 2024 ValkyrieChat
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
import { getIpAdress, route, verifyCaptcha } from "@valkyrie/api";
import {
checkToken,

View file

@ -1,3 +1,20 @@
/*
ValkyrieChat: A re-implementation and extension of the Discord.com backend.
Copyright (C) 2024 ValkyrieChat
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
import { route } from "@valkyrie/api";
import { Email, User } from "@valkyrie/util";
import { Request, Response, Router } from "express";

View file

@ -1,3 +1,20 @@
/*
ValkyrieChat: A re-implementation and extension of the Discord.com backend.
Copyright (C) 2024 ValkyrieChat
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
import { route } from "@valkyrie/api";
import { BackupCodesChallengeSchema, FieldErrors, User } from "@valkyrie/util";
import bcrypt from "bcrypt";

View file

@ -1,3 +1,20 @@
/*
ValkyrieChat: A re-implementation and extension of the Discord.com backend.
Copyright (C) 2024 ValkyrieChat
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
import { Router } from "express";
const router: Router = Router();
// TODO:

View file

@ -1,3 +1,20 @@
/*
ValkyrieChat: A re-implementation and extension of the Discord.com backend.
Copyright (C) 2024 ValkyrieChat
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
import { route } from "@valkyrie/api";
import {
Channel,

View file

@ -1,3 +1,20 @@
/*
ValkyrieChat: A re-implementation and extension of the Discord.com backend.
Copyright (C) 2024 ValkyrieChat
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
import { random, route } from "@valkyrie/api";
import {
Channel,

View file

@ -1,3 +1,20 @@
/*
ValkyrieChat: A re-implementation and extension of the Discord.com backend.
Copyright (C) 2024 ValkyrieChat
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
import { route } from "@valkyrie/api";
import {
emitEvent,

View file

@ -1,3 +1,20 @@
/*
ValkyrieChat: A re-implementation and extension of the Discord.com backend.
Copyright (C) 2024 ValkyrieChat
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
import { route } from "@valkyrie/api";
import { Request, Response, Router } from "express";

View file

@ -1,3 +1,20 @@
/*
ValkyrieChat: A re-implementation and extension of the Discord.com backend.
Copyright (C) 2024 ValkyrieChat
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
import {
Attachment,
Channel,

View file

@ -1,3 +1,20 @@
/*
ValkyrieChat: A re-implementation and extension of the Discord.com backend.
Copyright (C) 2024 ValkyrieChat
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
import { route } from "@valkyrie/api";
import {
Channel,

View file

@ -1,3 +1,20 @@
/*
ValkyrieChat: A re-implementation and extension of the Discord.com backend.
Copyright (C) 2024 ValkyrieChat
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
import { route } from "@valkyrie/api";
import {
Channel,

View file

@ -1,3 +1,20 @@
/*
ValkyrieChat: A re-implementation and extension of the Discord.com backend.
Copyright (C) 2024 ValkyrieChat
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
import { handleMessage, postHandleMessage, route } from "@valkyrie/api";
import {
Attachment,

View file

@ -1,3 +1,20 @@
/*
ValkyrieChat: A re-implementation and extension of the Discord.com backend.
Copyright (C) 2024 ValkyrieChat
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
import {
Channel,
ChannelPermissionOverwrite,

View file

@ -1,3 +1,20 @@
/*
ValkyrieChat: A re-implementation and extension of the Discord.com backend.
Copyright (C) 2024 ValkyrieChat
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
import { route } from "@valkyrie/api";
import {
ChannelPinsUpdateEvent,

View file

@ -1,3 +1,20 @@
/*
ValkyrieChat: A re-implementation and extension of the Discord.com backend.
Copyright (C) 2024 ValkyrieChat
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
import { route } from "@valkyrie/api";
import {
Channel,

View file

@ -1,3 +1,20 @@
/*
ValkyrieChat: A re-implementation and extension of the Discord.com backend.
Copyright (C) 2024 ValkyrieChat
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
import { route } from "@valkyrie/api";
import {
Channel,

View file

@ -1,3 +1,20 @@
/*
ValkyrieChat: A re-implementation and extension of the Discord.com backend.
Copyright (C) 2024 ValkyrieChat
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
import { route } from "@valkyrie/api";
import { Channel, emitEvent, Member, TypingStartEvent } from "@valkyrie/util";
import { Request, Response, Router } from "express";

View file

@ -1,3 +1,20 @@
/*
ValkyrieChat: A re-implementation and extension of the Discord.com backend.
Copyright (C) 2024 ValkyrieChat
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
import { route } from "@valkyrie/api";
import {
Channel,

View file

@ -1,3 +1,20 @@
/*
ValkyrieChat: A re-implementation and extension of the Discord.com backend.
Copyright (C) 2024 ValkyrieChat
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
import { route } from "@valkyrie/api";
import { Request, Response, Router } from "express";
const router = Router();

View file

@ -1,3 +1,20 @@
/*
ValkyrieChat: A re-implementation and extension of the Discord.com backend.
Copyright (C) 2024 ValkyrieChat
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
import { route } from "@valkyrie/api";
import { Request, Response, Router } from "express";
import { ConnectionStore, FieldErrors } from "../../../../util";

View file

@ -1,3 +1,20 @@
/*
ValkyrieChat: A re-implementation and extension of the Discord.com backend.
Copyright (C) 2024 ValkyrieChat
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
import { route } from "@valkyrie/api";
import {
ConnectionCallbackSchema,

View file

@ -1,3 +1,20 @@
/*
ValkyrieChat: A re-implementation and extension of the Discord.com backend.
Copyright (C) 2024 ValkyrieChat
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
import { route } from "@valkyrie/api";
import { ConnectionConfig } from "@valkyrie/util";
import { Request, Response, Router } from "express";

View file

@ -1,3 +1,20 @@
/*
ValkyrieChat: A re-implementation and extension of the Discord.com backend.
Copyright (C) 2024 ValkyrieChat
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
import { Config, Guild } from "@valkyrie/util";
import { route } from "@valkyrie/api";

View file

@ -1,3 +1,20 @@
/*
ValkyrieChat: A re-implementation and extension of the Discord.com backend.
Copyright (C) 2024 ValkyrieChat
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
import { route } from "@valkyrie/api";
import { Categories } from "@valkyrie/util";
import { Request, Response, Router } from "express";

View file

@ -1,3 +1,20 @@
/*
ValkyrieChat: A re-implementation and extension of the Discord.com backend.
Copyright (C) 2024 ValkyrieChat
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
import { route } from "@valkyrie/api";
import { FieldErrors, Release } from "@valkyrie/util";
import { Request, Response, Router } from "express";

View file

@ -1,3 +1,20 @@
/*
ValkyrieChat: A re-implementation and extension of the Discord.com backend.
Copyright (C) 2024 ValkyrieChat
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
import { Router, Response, Request } from "express";
import { route } from "@valkyrie/api";

View file

@ -1,3 +1,20 @@
/*
ValkyrieChat: A re-implementation and extension of the Discord.com backend.
Copyright (C) 2024 ValkyrieChat
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
import { route } from "@valkyrie/api";
import { Config } from "@valkyrie/util";
import { Request, Response, Router } from "express";

View file

@ -1,3 +1,20 @@
/*
ValkyrieChat: A re-implementation and extension of the Discord.com backend.
Copyright (C) 2024 ValkyrieChat
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
import { route } from "@valkyrie/api";
import { Config } from "@valkyrie/util";
import { Request, Response, Router } from "express";

View file

@ -1,3 +1,20 @@
/*
ValkyrieChat: A re-implementation and extension of the Discord.com backend.
Copyright (C) 2024 ValkyrieChat
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
import { route } from "@valkyrie/api";
import { TenorMediaTypes, getGifApiKey, parseGifResult } from "@valkyrie/util";
import { Request, Response, Router } from "express";

View file

@ -1,3 +1,20 @@
/*
ValkyrieChat: A re-implementation and extension of the Discord.com backend.
Copyright (C) 2024 ValkyrieChat
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
import { route } from "@valkyrie/api";
import { TenorMediaTypes, getGifApiKey, parseGifResult } from "@valkyrie/util";
import { Request, Response, Router } from "express";

View file

@ -1,3 +1,20 @@
/*
ValkyrieChat: A re-implementation and extension of the Discord.com backend.
Copyright (C) 2024 ValkyrieChat
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
import { route } from "@valkyrie/api";
import {
TenorCategoriesResults,

View file

@ -1,3 +1,20 @@
/*
ValkyrieChat: A re-implementation and extension of the Discord.com backend.
Copyright (C) 2024 ValkyrieChat
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
import { Config, Guild } from "@valkyrie/util";
import { route } from "@valkyrie/api";

View file

@ -1,3 +1,20 @@
/*
ValkyrieChat: A re-implementation and extension of the Discord.com backend.
Copyright (C) 2024 ValkyrieChat
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
import { Router, Response, Request } from "express";
import { route } from "@valkyrie/api";
const router = Router();

View file

@ -1,3 +1,20 @@
/*
ValkyrieChat: A re-implementation and extension of the Discord.com backend.
Copyright (C) 2024 ValkyrieChat
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
import { getIpAdress, route } from "@valkyrie/api";
import {
Ban,

View file

@ -1,3 +1,20 @@
/*
ValkyrieChat: A re-implementation and extension of the Discord.com backend.
Copyright (C) 2024 ValkyrieChat
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
import { getIpAdress, route } from "@valkyrie/api";
import {
Ban,

View file

@ -1,3 +1,20 @@
/*
ValkyrieChat: A re-implementation and extension of the Discord.com backend.
Copyright (C) 2024 ValkyrieChat
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
import { route } from "@valkyrie/api";
import {
Channel,

View file

@ -1,3 +1,20 @@
/*
ValkyrieChat: A re-implementation and extension of the Discord.com backend.
Copyright (C) 2024 ValkyrieChat
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
import { route } from "@valkyrie/api";
import { Guild, GuildDeleteEvent, emitEvent } from "@valkyrie/util";
import { Request, Response, Router } from "express";

View file

@ -1,3 +1,20 @@
/*
ValkyrieChat: A re-implementation and extension of the Discord.com backend.
Copyright (C) 2024 ValkyrieChat
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
import { route } from "@valkyrie/api";
import { Request, Response, Router } from "express";

View file

@ -1,3 +1,20 @@
/*
ValkyrieChat: A re-implementation and extension of the Discord.com backend.
Copyright (C) 2024 ValkyrieChat
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
import { route } from "@valkyrie/api";
import {
Config,

View file

@ -1,3 +1,20 @@
/*
ValkyrieChat: A re-implementation and extension of the Discord.com backend.
Copyright (C) 2024 ValkyrieChat
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
import { route } from "@valkyrie/api";
import {
Channel,

View file

@ -1,3 +1,20 @@
/*
ValkyrieChat: A re-implementation and extension of the Discord.com backend.
Copyright (C) 2024 ValkyrieChat
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
import { Router, Response, Request } from "express";
import { route } from "@valkyrie/api";
const router = Router();

View file

@ -1,3 +1,20 @@
/*
ValkyrieChat: A re-implementation and extension of the Discord.com backend.
Copyright (C) 2024 ValkyrieChat
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
import { route } from "@valkyrie/api";
import { Invite, PublicInviteRelation } from "@valkyrie/util";
import { Request, Response, Router } from "express";

View file

@ -1,3 +1,20 @@
/*
ValkyrieChat: A re-implementation and extension of the Discord.com backend.
Copyright (C) 2024 ValkyrieChat
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
import { route } from "@valkyrie/api";
import { Request, Response, Router } from "express";
const router = Router();

View file

@ -1,3 +1,20 @@
/*
ValkyrieChat: A re-implementation and extension of the Discord.com backend.
Copyright (C) 2024 ValkyrieChat
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
import { route } from "@valkyrie/api";
import {
DiscordApiErrors,

View file

@ -1,3 +1,20 @@
/*
ValkyrieChat: A re-implementation and extension of the Discord.com backend.
Copyright (C) 2024 ValkyrieChat
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
import { route } from "@valkyrie/api";
import { getPermission, Member, PermissionResolvable } from "@valkyrie/util";
import { Request, Response, Router } from "express";

View file

@ -1,3 +1,20 @@
/*
ValkyrieChat: A re-implementation and extension of the Discord.com backend.
Copyright (C) 2024 ValkyrieChat
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
import { route } from "@valkyrie/api";
import { Member } from "@valkyrie/util";
import { Request, Response, Router } from "express";

View file

@ -1,3 +1,20 @@
/*
ValkyrieChat: A re-implementation and extension of the Discord.com backend.
Copyright (C) 2024 ValkyrieChat
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
import { route } from "@valkyrie/api";
import { Member, PublicMemberProjection } from "@valkyrie/util";
import { Request, Response, Router } from "express";

View file

@ -1,3 +1,20 @@
/*
ValkyrieChat: A re-implementation and extension of the Discord.com backend.
Copyright (C) 2024 ValkyrieChat
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
/* eslint-disable @typescript-eslint/ban-ts-comment */
import { route } from "@valkyrie/api";

View file

@ -1,3 +1,20 @@
/*
ValkyrieChat: A re-implementation and extension of the Discord.com backend.
Copyright (C) 2024 ValkyrieChat
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
import { Router, Request, Response } from "express";
import { route } from "@valkyrie/api";
const router = Router();

View file

@ -1,3 +1,20 @@
/*
ValkyrieChat: A re-implementation and extension of the Discord.com backend.
Copyright (C) 2024 ValkyrieChat
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
import { route } from "@valkyrie/api";
import {
emitEvent,

View file

@ -1,3 +1,20 @@
/*
ValkyrieChat: A re-implementation and extension of the Discord.com backend.
Copyright (C) 2024 ValkyrieChat
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
import { route } from "@valkyrie/api";
import { Guild, Member, Snowflake } from "@valkyrie/util";
import { Request, Response, Router } from "express";

View file

@ -1,3 +1,20 @@
/*
ValkyrieChat: A re-implementation and extension of the Discord.com backend.
Copyright (C) 2024 ValkyrieChat
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
import { getIpAdress, getVoiceRegions, route } from "@valkyrie/api";
import { Guild } from "@valkyrie/util";
import { Request, Response, Router } from "express";

View file

@ -1,3 +1,20 @@
/*
ValkyrieChat: A re-implementation and extension of the Discord.com backend.
Copyright (C) 2024 ValkyrieChat
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
import { route } from "@valkyrie/api";
import {
emitEvent,

View file

@ -1,3 +1,20 @@
/*
ValkyrieChat: A re-implementation and extension of the Discord.com backend.
Copyright (C) 2024 ValkyrieChat
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
import { Router, Request, Response } from "express";
import { Member } from "@valkyrie/util";
import { route } from "@valkyrie/api";

View file

@ -1,3 +1,20 @@
/*
ValkyrieChat: A re-implementation and extension of the Discord.com backend.
Copyright (C) 2024 ValkyrieChat
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
import { Router, Request, Response } from "express";
import { DiscordApiErrors, Member, partition } from "@valkyrie/util";
import { route } from "@valkyrie/api";

View file

@ -1,3 +1,20 @@
/*
ValkyrieChat: A re-implementation and extension of the Discord.com backend.
Copyright (C) 2024 ValkyrieChat
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
import { route } from "@valkyrie/api";
import {
Config,

View file

@ -1,3 +1,20 @@
/*
ValkyrieChat: A re-implementation and extension of the Discord.com backend.
Copyright (C) 2024 ValkyrieChat
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
import { Request, Response, Router } from "express";
import { Role, Member } from "@valkyrie/util";
import { route } from "@valkyrie/api";

View file

@ -1,3 +1,20 @@
/*
ValkyrieChat: A re-implementation and extension of the Discord.com backend.
Copyright (C) 2024 ValkyrieChat
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
import { route } from "@valkyrie/api";
import {
GuildStickersUpdateEvent,

Some files were not shown because too many files have changed in this diff Show more