Added license to all the files
This commit is contained in:
parent
333cc04e26
commit
4974c68cdf
566 changed files with 9622 additions and 0 deletions
|
@ -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");
|
||||
|
|
|
@ -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.
|
||||
*/
|
||||
|
|
|
@ -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");
|
||||
|
|
|
@ -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");
|
||||
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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";
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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");
|
||||
|
|
|
@ -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 ) */
|
||||
|
|
|
@ -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
17
src/api/global.d.ts
vendored
|
@ -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 {
|
||||
|
|
|
@ -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/";
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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";
|
||||
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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";
|
||||
|
||||
|
|
|
@ -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";
|
||||
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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";
|
||||
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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";
|
||||
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -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";
|
||||
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -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";
|
||||
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -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
Loading…
Reference in a new issue