From 4974c68cdfe4c86689038a583cf8689e860e5a3d Mon Sep 17 00:00:00 2001 From: Toastie Date: Thu, 26 Sep 2024 23:01:06 +1200 Subject: [PATCH] Added license to all the files --- scripts/openapi.js | 17 +++++++++++++++++ scripts/rights.js | 17 +++++++++++++++++ scripts/schema.js | 17 +++++++++++++++++ scripts/stagingMigration/index.js | 17 +++++++++++++++++ .../maria/1672833135670-staging.js | 17 +++++++++++++++++ .../mysql/1672833135670-staging.js | 17 +++++++++++++++++ .../postgres/1672815835837-staging.js | 17 +++++++++++++++++ scripts/stress/identify.js | 17 +++++++++++++++++ scripts/stress/login.js | 17 +++++++++++++++++ scripts/stress/users.js | 17 +++++++++++++++++ scripts/syncronise.js | 17 +++++++++++++++++ scripts/test.js | 17 +++++++++++++++++ scripts/util/getRouteDescriptions.js | 17 +++++++++++++++++ scripts/util/walk.js | 17 +++++++++++++++++ src/api/Server.ts | 17 +++++++++++++++++ src/api/global.d.ts | 17 +++++++++++++++++ src/api/index.ts | 17 +++++++++++++++++ src/api/middlewares/Authentication.ts | 17 +++++++++++++++++ src/api/middlewares/BodyParser.ts | 17 +++++++++++++++++ src/api/middlewares/CORS.ts | 17 +++++++++++++++++ src/api/middlewares/ErrorHandler.ts | 17 +++++++++++++++++ src/api/middlewares/ImageProxy.ts | 17 +++++++++++++++++ src/api/middlewares/RateLimit.ts | 17 +++++++++++++++++ src/api/middlewares/Translation.ts | 17 +++++++++++++++++ src/api/middlewares/index.ts | 17 +++++++++++++++++ src/api/routes/-/healthz.ts | 17 +++++++++++++++++ src/api/routes/-/readyz.ts | 17 +++++++++++++++++ src/api/routes/applications/#id/bot/index.ts | 17 +++++++++++++++++ src/api/routes/applications/#id/entitlements.ts | 17 +++++++++++++++++ src/api/routes/applications/#id/index.ts | 17 +++++++++++++++++ src/api/routes/applications/#id/skus.ts | 17 +++++++++++++++++ src/api/routes/applications/detectable.ts | 17 +++++++++++++++++ src/api/routes/applications/index.ts | 17 +++++++++++++++++ src/api/routes/auth/forgot.ts | 17 +++++++++++++++++ .../routes/auth/generate-registration-tokens.ts | 17 +++++++++++++++++ src/api/routes/auth/location-metadata.ts | 17 +++++++++++++++++ src/api/routes/auth/login.ts | 17 +++++++++++++++++ src/api/routes/auth/logout.ts | 17 +++++++++++++++++ src/api/routes/auth/mfa/totp.ts | 17 +++++++++++++++++ src/api/routes/auth/mfa/webauthn.ts | 17 +++++++++++++++++ src/api/routes/auth/register.ts | 17 +++++++++++++++++ src/api/routes/auth/reset.ts | 17 +++++++++++++++++ src/api/routes/auth/verify/index.ts | 17 +++++++++++++++++ src/api/routes/auth/verify/resend.ts | 17 +++++++++++++++++ .../auth/verify/view-backup-codes-challenge.ts | 17 +++++++++++++++++ .../routes/channels/#channel_id/followers.ts | 17 +++++++++++++++++ src/api/routes/channels/#channel_id/index.ts | 17 +++++++++++++++++ src/api/routes/channels/#channel_id/invites.ts | 17 +++++++++++++++++ .../#channel_id/messages/#message_id/ack.ts | 17 +++++++++++++++++ .../messages/#message_id/crosspost.ts | 17 +++++++++++++++++ .../#channel_id/messages/#message_id/index.ts | 17 +++++++++++++++++ .../messages/#message_id/reactions.ts | 17 +++++++++++++++++ .../#channel_id/messages/bulk-delete.ts | 17 +++++++++++++++++ .../channels/#channel_id/messages/index.ts | 17 +++++++++++++++++ .../routes/channels/#channel_id/permissions.ts | 17 +++++++++++++++++ src/api/routes/channels/#channel_id/pins.ts | 17 +++++++++++++++++ src/api/routes/channels/#channel_id/purge.ts | 17 +++++++++++++++++ .../routes/channels/#channel_id/recipients.ts | 17 +++++++++++++++++ src/api/routes/channels/#channel_id/typing.ts | 17 +++++++++++++++++ src/api/routes/channels/#channel_id/webhooks.ts | 17 +++++++++++++++++ .../#connection_name/#connection_id/refresh.ts | 17 +++++++++++++++++ .../connections/#connection_name/authorize.ts | 17 +++++++++++++++++ .../connections/#connection_name/callback.ts | 17 +++++++++++++++++ src/api/routes/connections/index.ts | 17 +++++++++++++++++ src/api/routes/discoverable-guilds.ts | 17 +++++++++++++++++ src/api/routes/discovery.ts | 17 +++++++++++++++++ src/api/routes/download.ts | 17 +++++++++++++++++ src/api/routes/experiments.ts | 17 +++++++++++++++++ src/api/routes/gateway/bot.ts | 17 +++++++++++++++++ src/api/routes/gateway/index.ts | 17 +++++++++++++++++ src/api/routes/gifs/search.ts | 17 +++++++++++++++++ src/api/routes/gifs/trending-gifs.ts | 17 +++++++++++++++++ src/api/routes/gifs/trending.ts | 17 +++++++++++++++++ src/api/routes/guild-recommendations.ts | 17 +++++++++++++++++ src/api/routes/guilds/#guild_id/audit-logs.ts | 17 +++++++++++++++++ src/api/routes/guilds/#guild_id/bans.ts | 17 +++++++++++++++++ src/api/routes/guilds/#guild_id/bulk-ban.ts | 17 +++++++++++++++++ src/api/routes/guilds/#guild_id/channels.ts | 17 +++++++++++++++++ src/api/routes/guilds/#guild_id/delete.ts | 17 +++++++++++++++++ .../guilds/#guild_id/discovery-requirements.ts | 17 +++++++++++++++++ src/api/routes/guilds/#guild_id/emojis.ts | 17 +++++++++++++++++ src/api/routes/guilds/#guild_id/index.ts | 17 +++++++++++++++++ src/api/routes/guilds/#guild_id/integrations.ts | 17 +++++++++++++++++ src/api/routes/guilds/#guild_id/invites.ts | 17 +++++++++++++++++ .../guilds/#guild_id/member-verification.ts | 17 +++++++++++++++++ .../#guild_id/members/#member_id/index.ts | 17 +++++++++++++++++ .../guilds/#guild_id/members/#member_id/nick.ts | 17 +++++++++++++++++ .../members/#member_id/roles/#role_id/index.ts | 17 +++++++++++++++++ .../routes/guilds/#guild_id/members/index.ts | 17 +++++++++++++++++ .../routes/guilds/#guild_id/messages/search.ts | 17 +++++++++++++++++ src/api/routes/guilds/#guild_id/premium.ts | 17 +++++++++++++++++ .../routes/guilds/#guild_id/profile/index.ts | 17 +++++++++++++++++ src/api/routes/guilds/#guild_id/prune.ts | 17 +++++++++++++++++ src/api/routes/guilds/#guild_id/regions.ts | 17 +++++++++++++++++ .../guilds/#guild_id/roles/#role_id/index.ts | 17 +++++++++++++++++ .../#guild_id/roles/#role_id/member-ids.ts | 17 +++++++++++++++++ .../guilds/#guild_id/roles/#role_id/members.ts | 17 +++++++++++++++++ src/api/routes/guilds/#guild_id/roles/index.ts | 17 +++++++++++++++++ .../guilds/#guild_id/roles/member-counts.ts | 17 +++++++++++++++++ src/api/routes/guilds/#guild_id/stickers.ts | 17 +++++++++++++++++ src/api/routes/guilds/#guild_id/templates.ts | 17 +++++++++++++++++ src/api/routes/guilds/#guild_id/vanity-url.ts | 17 +++++++++++++++++ .../#guild_id/voice-states/#user_id/index.ts | 17 +++++++++++++++++ src/api/routes/guilds/#guild_id/webhooks.ts | 17 +++++++++++++++++ .../routes/guilds/#guild_id/welcome-screen.ts | 17 +++++++++++++++++ src/api/routes/guilds/#guild_id/widget.json.ts | 17 +++++++++++++++++ src/api/routes/guilds/#guild_id/widget.png.ts | 17 +++++++++++++++++ src/api/routes/guilds/#guild_id/widget.ts | 17 +++++++++++++++++ src/api/routes/guilds/index.ts | 17 +++++++++++++++++ src/api/routes/guilds/templates/index.ts | 17 +++++++++++++++++ src/api/routes/invites/index.ts | 17 +++++++++++++++++ src/api/routes/oauth2/applications/@me.ts | 17 +++++++++++++++++ src/api/routes/oauth2/authorize.ts | 17 +++++++++++++++++ src/api/routes/oauth2/tokens.ts | 17 +++++++++++++++++ src/api/routes/outbound-promotions.ts | 17 +++++++++++++++++ .../routes/partners/#guild_id/requirements.ts | 17 +++++++++++++++++ src/api/routes/ping.ts | 17 +++++++++++++++++ src/api/routes/policies/instance/domains.ts | 17 +++++++++++++++++ src/api/routes/policies/instance/index.ts | 17 +++++++++++++++++ src/api/routes/policies/instance/limits.ts | 17 +++++++++++++++++ src/api/routes/policies/stats.ts | 17 +++++++++++++++++ src/api/routes/read-states/ack-bulk.ts | 17 +++++++++++++++++ .../scheduled-maintenances/upcoming.json.ts | 17 +++++++++++++++++ src/api/routes/science.ts | 17 +++++++++++++++++ src/api/routes/stage-instances.ts | 17 +++++++++++++++++ src/api/routes/sticker-packs/index.ts | 17 +++++++++++++++++ src/api/routes/stickers/#sticker_id/index.ts | 17 +++++++++++++++++ src/api/routes/stop.ts | 17 +++++++++++++++++ .../store/published-listings/applications.ts | 17 +++++++++++++++++ .../applications/#id/subscription-plans.ts | 17 +++++++++++++++++ src/api/routes/store/published-listings/skus.ts | 17 +++++++++++++++++ .../skus/#sku_id/subscription-plans.ts | 17 +++++++++++++++++ src/api/routes/teams.ts | 17 +++++++++++++++++ src/api/routes/track.ts | 17 +++++++++++++++++ src/api/routes/updates.ts | 17 +++++++++++++++++ src/api/routes/users/#id/delete.ts | 17 +++++++++++++++++ src/api/routes/users/#id/index.ts | 17 +++++++++++++++++ src/api/routes/users/#id/profile.ts | 17 +++++++++++++++++ src/api/routes/users/#id/relationships.ts | 17 +++++++++++++++++ .../@me/activities/statistics/applications.ts | 17 +++++++++++++++++ src/api/routes/users/@me/affinities/guilds.ts | 17 +++++++++++++++++ src/api/routes/users/@me/affinities/users.ts | 17 +++++++++++++++++ .../@me/applications/#app_id/entitlements.ts | 17 +++++++++++++++++ .../routes/users/@me/billing/country-code.ts | 17 +++++++++++++++++ .../routes/users/@me/billing/payment-sources.ts | 17 +++++++++++++++++ .../routes/users/@me/billing/subscriptions.ts | 17 +++++++++++++++++ src/api/routes/users/@me/channels.ts | 17 +++++++++++++++++ .../#connection_id/access-token.ts | 17 +++++++++++++++++ .../#connection_name/#connection_id/index.ts | 17 +++++++++++++++++ src/api/routes/users/@me/connections/index.ts | 17 +++++++++++++++++ src/api/routes/users/@me/delete.ts | 17 +++++++++++++++++ src/api/routes/users/@me/devices.ts | 17 +++++++++++++++++ src/api/routes/users/@me/disable.ts | 17 +++++++++++++++++ src/api/routes/users/@me/email-settings.ts | 17 +++++++++++++++++ src/api/routes/users/@me/entitlements.ts | 17 +++++++++++++++++ src/api/routes/users/@me/guilds.ts | 17 +++++++++++++++++ .../users/@me/guilds/#guild_id/settings.ts | 17 +++++++++++++++++ .../@me/guilds/premium/subscription-slots.ts | 17 +++++++++++++++++ src/api/routes/users/@me/index.ts | 17 +++++++++++++++++ src/api/routes/users/@me/library.ts | 17 +++++++++++++++++ .../routes/users/@me/mfa/codes-verification.ts | 17 +++++++++++++++++ src/api/routes/users/@me/mfa/codes.ts | 17 +++++++++++++++++ src/api/routes/users/@me/mfa/totp/disable.ts | 17 +++++++++++++++++ src/api/routes/users/@me/mfa/totp/enable.ts | 17 +++++++++++++++++ .../mfa/webauthn/credentials/#key_id/index.ts | 17 +++++++++++++++++ .../users/@me/mfa/webauthn/credentials/index.ts | 17 +++++++++++++++++ src/api/routes/users/@me/notes.ts | 17 +++++++++++++++++ src/api/routes/users/@me/relationships.ts | 17 +++++++++++++++++ src/api/routes/users/@me/settings.ts | 17 +++++++++++++++++ src/api/routes/voice/regions.ts | 17 +++++++++++++++++ .../routes/webhooks/#webhook_id/#token/index.ts | 17 +++++++++++++++++ src/api/routes/webhooks/#webhook_id/index.ts | 17 +++++++++++++++++ src/api/start.ts | 17 +++++++++++++++++ src/api/util/handlers/Instance.ts | 17 +++++++++++++++++ src/api/util/handlers/Message.ts | 17 +++++++++++++++++ src/api/util/handlers/Voice.ts | 17 +++++++++++++++++ src/api/util/handlers/route.ts | 17 +++++++++++++++++ src/api/util/index.ts | 17 +++++++++++++++++ src/api/util/utility/Base64.ts | 17 +++++++++++++++++ src/api/util/utility/EmbedHandlers.ts | 17 +++++++++++++++++ src/api/util/utility/RandomInviteID.ts | 17 +++++++++++++++++ src/api/util/utility/String.ts | 17 +++++++++++++++++ src/api/util/utility/captcha.ts | 17 +++++++++++++++++ src/api/util/utility/ipAddress.ts | 17 +++++++++++++++++ src/api/util/utility/passwordStrength.ts | 17 +++++++++++++++++ src/bundle/Server.ts | 17 +++++++++++++++++ src/bundle/index.ts | 17 +++++++++++++++++ src/bundle/start.ts | 17 +++++++++++++++++ src/bundle/stats.ts | 17 +++++++++++++++++ src/cdn/Server.ts | 17 +++++++++++++++++ src/cdn/index.ts | 17 +++++++++++++++++ src/cdn/routes/attachments.ts | 17 +++++++++++++++++ src/cdn/routes/avatars.ts | 17 +++++++++++++++++ src/cdn/routes/badge-icons.ts | 17 +++++++++++++++++ src/cdn/routes/embed.ts | 17 +++++++++++++++++ src/cdn/routes/guild-profiles.ts | 17 +++++++++++++++++ src/cdn/routes/ping.ts | 17 +++++++++++++++++ src/cdn/routes/role-icons.ts | 17 +++++++++++++++++ src/cdn/util/FileStorage.ts | 17 +++++++++++++++++ src/cdn/util/S3Storage.ts | 17 +++++++++++++++++ src/cdn/util/Storage.ts | 17 +++++++++++++++++ src/cdn/util/index.ts | 17 +++++++++++++++++ src/cdn/util/multer.ts | 17 +++++++++++++++++ src/connections/BattleNet/BattleNetSettings.ts | 17 +++++++++++++++++ src/connections/BattleNet/index.ts | 17 +++++++++++++++++ src/connections/Discord/DiscordSettings.ts | 17 +++++++++++++++++ src/connections/Discord/index.ts | 17 +++++++++++++++++ src/connections/EpicGames/EpicGamesSettings.ts | 17 +++++++++++++++++ src/connections/EpicGames/index.ts | 17 +++++++++++++++++ src/connections/Facebook/FacebookSettings.ts | 17 +++++++++++++++++ src/connections/Facebook/index.ts | 17 +++++++++++++++++ src/connections/GitHub/GitHubSettings.ts | 17 +++++++++++++++++ src/connections/GitHub/index.ts | 17 +++++++++++++++++ src/connections/Reddit/RedditSettings.ts | 17 +++++++++++++++++ src/connections/Reddit/index.ts | 17 +++++++++++++++++ src/connections/Spotify/SpotifySettings.ts | 17 +++++++++++++++++ src/connections/Spotify/index.ts | 17 +++++++++++++++++ src/connections/Twitch/TwitchSettings.ts | 17 +++++++++++++++++ src/connections/Twitch/index.ts | 17 +++++++++++++++++ src/connections/Twitter/TwitterSettings.ts | 17 +++++++++++++++++ src/connections/Twitter/index.ts | 17 +++++++++++++++++ src/connections/Xbox/XboxSettings.ts | 17 +++++++++++++++++ src/connections/Xbox/index.ts | 17 +++++++++++++++++ src/connections/Youtube/YoutubeSettings.ts | 17 +++++++++++++++++ src/connections/Youtube/index.ts | 17 +++++++++++++++++ src/gateway/Server.ts | 17 +++++++++++++++++ src/gateway/events/Close.ts | 17 +++++++++++++++++ src/gateway/events/Connection.ts | 17 +++++++++++++++++ src/gateway/events/Message.ts | 17 +++++++++++++++++ src/gateway/index.ts | 17 +++++++++++++++++ src/gateway/listener/listener.ts | 17 +++++++++++++++++ src/gateway/opcodes/Heartbeat.ts | 17 +++++++++++++++++ src/gateway/opcodes/Identify.ts | 17 +++++++++++++++++ src/gateway/opcodes/LazyRequest.ts | 17 +++++++++++++++++ src/gateway/opcodes/PresenceUpdate.ts | 17 +++++++++++++++++ src/gateway/opcodes/RequestGuildMembers.ts | 17 +++++++++++++++++ src/gateway/opcodes/Resume.ts | 17 +++++++++++++++++ src/gateway/opcodes/VoiceStateUpdate.ts | 17 +++++++++++++++++ src/gateway/opcodes/index.ts | 17 +++++++++++++++++ src/gateway/opcodes/instanceOf.ts | 17 +++++++++++++++++ src/gateway/start.ts | 17 +++++++++++++++++ src/gateway/util/Capabilities.ts | 17 +++++++++++++++++ src/gateway/util/Constants.ts | 17 +++++++++++++++++ src/gateway/util/Heartbeat.ts | 17 +++++++++++++++++ src/gateway/util/Send.ts | 17 +++++++++++++++++ src/gateway/util/SessionUtils.ts | 17 +++++++++++++++++ src/gateway/util/WebSocket.ts | 17 +++++++++++++++++ src/gateway/util/index.ts | 17 +++++++++++++++++ src/util/config/Config.ts | 17 +++++++++++++++++ src/util/config/index.ts | 17 +++++++++++++++++ src/util/config/types/ApiConfiguration.ts | 17 +++++++++++++++++ src/util/config/types/CdnConfiguration.ts | 17 +++++++++++++++++ src/util/config/types/DefaultsConfiguration.ts | 17 +++++++++++++++++ src/util/config/types/EmailConfiguration.ts | 17 +++++++++++++++++ src/util/config/types/EndpointConfiguration.ts | 17 +++++++++++++++++ .../config/types/ExternalTokensConfiguration.ts | 17 +++++++++++++++++ src/util/config/types/GeneralConfiguration.ts | 17 +++++++++++++++++ src/util/config/types/GifConfiguration.ts | 17 +++++++++++++++++ src/util/config/types/GuildConfiguration.ts | 17 +++++++++++++++++ src/util/config/types/KafkaConfiguration.ts | 17 +++++++++++++++++ src/util/config/types/LimitConfigurations.ts | 17 +++++++++++++++++ src/util/config/types/LoginConfiguration.ts | 17 +++++++++++++++++ src/util/config/types/MetricsConfiguration.ts | 17 +++++++++++++++++ .../config/types/PasswordResetConfiguration.ts | 17 +++++++++++++++++ src/util/config/types/RabbitMQConfiguration.ts | 17 +++++++++++++++++ src/util/config/types/RegionConfiguration.ts | 17 +++++++++++++++++ src/util/config/types/RegisterConfiguration.ts | 17 +++++++++++++++++ src/util/config/types/SecurityConfiguration.ts | 17 +++++++++++++++++ src/util/config/types/SentryConfiguration.ts | 17 +++++++++++++++++ src/util/config/types/TemplateConfiguration.ts | 17 +++++++++++++++++ src/util/config/types/index.ts | 17 +++++++++++++++++ .../client/ClientReleaseConfiguration.ts | 17 +++++++++++++++++ .../types/subconfigurations/client/index.ts | 17 +++++++++++++++++ .../subconfigurations/defaults/GuildDefaults.ts | 17 +++++++++++++++++ .../subconfigurations/defaults/UserDefaults.ts | 17 +++++++++++++++++ .../types/subconfigurations/defaults/index.ts | 17 +++++++++++++++++ .../types/subconfigurations/email/MailGun.ts | 17 +++++++++++++++++ .../types/subconfigurations/email/MailJet.ts | 17 +++++++++++++++++ .../types/subconfigurations/email/SMTP.ts | 17 +++++++++++++++++ .../types/subconfigurations/email/SendGrid.ts | 17 +++++++++++++++++ .../types/subconfigurations/email/index.ts | 17 +++++++++++++++++ .../types/subconfigurations/guild/AutoJoin.ts | 17 +++++++++++++++++ .../types/subconfigurations/guild/Discovery.ts | 17 +++++++++++++++++ .../types/subconfigurations/guild/index.ts | 17 +++++++++++++++++ .../config/types/subconfigurations/index.ts | 17 +++++++++++++++++ .../subconfigurations/kafka/KafkaBroker.ts | 17 +++++++++++++++++ .../types/subconfigurations/kafka/index.ts | 17 +++++++++++++++++ .../subconfigurations/limits/ChannelLimits.ts | 17 +++++++++++++++++ .../limits/GlobalRateLimits.ts | 17 +++++++++++++++++ .../subconfigurations/limits/GuildLimits.ts | 17 +++++++++++++++++ .../subconfigurations/limits/MessageLimits.ts | 17 +++++++++++++++++ .../subconfigurations/limits/RateLimits.ts | 17 +++++++++++++++++ .../subconfigurations/limits/UserLimits.ts | 17 +++++++++++++++++ .../types/subconfigurations/limits/index.ts | 17 +++++++++++++++++ .../subconfigurations/limits/ratelimits/Auth.ts | 17 +++++++++++++++++ .../limits/ratelimits/RateLimitOptions.ts | 17 +++++++++++++++++ .../limits/ratelimits/Route.ts | 17 +++++++++++++++++ .../limits/ratelimits/index.ts | 17 +++++++++++++++++ .../types/subconfigurations/region/Region.ts | 17 +++++++++++++++++ .../types/subconfigurations/region/index.ts | 17 +++++++++++++++++ .../subconfigurations/register/DateOfBirth.ts | 17 +++++++++++++++++ .../types/subconfigurations/register/Email.ts | 17 +++++++++++++++++ .../subconfigurations/register/Password.ts | 17 +++++++++++++++++ .../types/subconfigurations/register/index.ts | 17 +++++++++++++++++ .../types/subconfigurations/security/Captcha.ts | 17 +++++++++++++++++ .../subconfigurations/security/TwoFactor.ts | 17 +++++++++++++++++ .../types/subconfigurations/security/index.ts | 17 +++++++++++++++++ src/util/connections/Connection.ts | 17 +++++++++++++++++ src/util/connections/ConnectionConfig.ts | 17 +++++++++++++++++ src/util/connections/ConnectionLoader.ts | 17 +++++++++++++++++ src/util/connections/ConnectionStore.ts | 17 +++++++++++++++++ src/util/connections/RefreshableConnection.ts | 17 +++++++++++++++++ src/util/connections/index.ts | 17 +++++++++++++++++ src/util/dtos/ConnectedAccountDTO.ts | 17 +++++++++++++++++ src/util/dtos/DmChannelDTO.ts | 17 +++++++++++++++++ src/util/dtos/ReadyGuildDTO.ts | 17 +++++++++++++++++ src/util/dtos/UserDTO.ts | 17 +++++++++++++++++ src/util/dtos/index.ts | 17 +++++++++++++++++ src/util/entities/Application.ts | 17 +++++++++++++++++ src/util/entities/Attachment.ts | 17 +++++++++++++++++ src/util/entities/AuditLog.ts | 17 +++++++++++++++++ src/util/entities/BackupCodes.ts | 17 +++++++++++++++++ src/util/entities/Badge.ts | 17 +++++++++++++++++ src/util/entities/Ban.ts | 17 +++++++++++++++++ src/util/entities/BaseClass.ts | 17 +++++++++++++++++ src/util/entities/Categories.ts | 17 +++++++++++++++++ src/util/entities/Channel.ts | 17 +++++++++++++++++ src/util/entities/ClientRelease.ts | 17 +++++++++++++++++ src/util/entities/Config.ts | 17 +++++++++++++++++ src/util/entities/ConnectedAccount.ts | 17 +++++++++++++++++ src/util/entities/ConnectionConfigEntity.ts | 17 +++++++++++++++++ src/util/entities/EmbedCache.ts | 17 +++++++++++++++++ src/util/entities/Emoji.ts | 17 +++++++++++++++++ src/util/entities/Encryption.ts | 17 +++++++++++++++++ src/util/entities/Guild.ts | 17 +++++++++++++++++ src/util/entities/Invite.ts | 17 +++++++++++++++++ src/util/entities/Member.ts | 17 +++++++++++++++++ src/util/entities/Message.ts | 17 +++++++++++++++++ src/util/entities/Migration.ts | 17 +++++++++++++++++ src/util/entities/Note.ts | 17 +++++++++++++++++ src/util/entities/RateLimit.ts | 17 +++++++++++++++++ src/util/entities/ReadState.ts | 17 +++++++++++++++++ src/util/entities/Recipient.ts | 17 +++++++++++++++++ src/util/entities/Relationship.ts | 17 +++++++++++++++++ src/util/entities/Role.ts | 17 +++++++++++++++++ src/util/entities/SecurityKey.ts | 17 +++++++++++++++++ src/util/entities/Session.ts | 17 +++++++++++++++++ src/util/entities/Sticker.ts | 17 +++++++++++++++++ src/util/entities/StickerPack.ts | 17 +++++++++++++++++ src/util/entities/Team.ts | 17 +++++++++++++++++ src/util/entities/TeamMember.ts | 17 +++++++++++++++++ src/util/entities/Template.ts | 17 +++++++++++++++++ src/util/entities/User.ts | 17 +++++++++++++++++ src/util/entities/UserSettings.ts | 17 +++++++++++++++++ src/util/entities/ValidRegistrationTokens.ts | 17 +++++++++++++++++ src/util/entities/VoiceState.ts | 17 +++++++++++++++++ src/util/entities/Webhook.ts | 17 +++++++++++++++++ src/util/entities/index.ts | 17 +++++++++++++++++ src/util/imports/Jimp.ts | 17 +++++++++++++++++ src/util/imports/index.ts | 17 +++++++++++++++++ src/util/index.ts | 17 +++++++++++++++++ src/util/interfaces/Activity.ts | 17 +++++++++++++++++ src/util/interfaces/ConnectedAccount.ts | 17 +++++++++++++++++ src/util/interfaces/Event.ts | 17 +++++++++++++++++ src/util/interfaces/GuildWelcomeScreen.ts | 17 +++++++++++++++++ src/util/interfaces/Interaction.ts | 17 +++++++++++++++++ src/util/interfaces/Presence.ts | 17 +++++++++++++++++ src/util/interfaces/Status.ts | 17 +++++++++++++++++ src/util/interfaces/index.ts | 17 +++++++++++++++++ .../1673609465036-templateDeleteCascade.ts | 17 +++++++++++++++++ .../migration/mariadb/1675045120206-webauthn.ts | 17 +++++++++++++++++ .../1696420827239-guildChannelOrdering.ts | 17 +++++++++++++++++ .../1713116476900-messageFlagsNotNull.ts | 17 +++++++++++++++++ .../mariadb/1719776735000-newUserSettings.ts | 17 +++++++++++++++++ .../mariadb/1720157926878-messagePollObject.ts | 17 +++++++++++++++++ .../migration/mariadb/1720628601997-badges.ts | 17 +++++++++++++++++ .../1721298824927-webhookMessageProperties.ts | 17 +++++++++++++++++ .../mariadb/1723347738541-client_status.ts | 17 +++++++++++++++++ .../1723577874393-discoveryCategoryIcon.ts | 17 +++++++++++++++++ .../1723644478176-webhookSourceChannel.ts | 17 +++++++++++++++++ .../mariadb/1724477620293-teamMemberRole.ts | 17 +++++++++++++++++ .../1725090962922-applicationProperties.ts | 17 +++++++++++++++++ .../1673609465036-templateDeleteCascade.ts | 17 +++++++++++++++++ .../migration/mysql/1675045120206-webauthn.ts | 17 +++++++++++++++++ .../mysql/1696420827239-guildChannelOrdering.ts | 17 +++++++++++++++++ .../mysql/1713116476900-messageFlagsNotNull.ts | 17 +++++++++++++++++ .../mysql/1719776735000-newUserSettings.ts | 17 +++++++++++++++++ .../mysql/1720157926878-messagePollObject.ts | 17 +++++++++++++++++ .../migration/mysql/1720628601997-badges.ts | 17 +++++++++++++++++ .../1721298824927-webhookMessageProperties.ts | 17 +++++++++++++++++ .../mysql/1723347738541-client_status.ts | 17 +++++++++++++++++ .../1723577874393-discoveryCategoryIcon.ts | 17 +++++++++++++++++ .../mysql/1723644478176-webhookSourceChannel.ts | 17 +++++++++++++++++ .../mysql/1724477620293-teamMemberRole.ts | 17 +++++++++++++++++ .../1725090962922-applicationProperties.ts | 17 +++++++++++++++++ .../1673609867556-templateDeleteCascade.ts | 17 +++++++++++++++++ .../postgres/1675044825710-webauthn.ts | 17 +++++++++++++++++ .../1696420827239-guildChannelOrdering.ts | 17 +++++++++++++++++ .../1713116476900-messageFlagsNotNull.ts | 17 +++++++++++++++++ .../postgres/1719776735000-newUserSettings.ts | 17 +++++++++++++++++ .../postgres/1720157926878-messagePollObject.ts | 17 +++++++++++++++++ .../migration/postgres/1720628601997-badges.ts | 17 +++++++++++++++++ .../1721298824927-webhookMessageProperties.ts | 17 +++++++++++++++++ .../postgres/1723347738541-client_status.ts | 17 +++++++++++++++++ .../1723577874393-discoveryCategoryIcon.ts | 17 +++++++++++++++++ .../1723644478176-webhookSourceChannel.ts | 17 +++++++++++++++++ .../postgres/1724477620293-teamMemberRole.ts | 17 +++++++++++++++++ .../1725090962922-applicationProperties.ts | 17 +++++++++++++++++ src/util/schemas/AckBulkSchema.ts | 17 +++++++++++++++++ src/util/schemas/ActivitySchema.ts | 17 +++++++++++++++++ src/util/schemas/ApplicationAuthorizeSchema.ts | 17 +++++++++++++++++ src/util/schemas/ApplicationCreateSchema.ts | 17 +++++++++++++++++ src/util/schemas/ApplicationModifySchema.ts | 17 +++++++++++++++++ src/util/schemas/BackupCodesChallengeSchema.ts | 17 +++++++++++++++++ src/util/schemas/BanCreateSchema.ts | 17 +++++++++++++++++ src/util/schemas/BanModeratorSchema.ts | 17 +++++++++++++++++ src/util/schemas/BanRegistrySchema.ts | 17 +++++++++++++++++ src/util/schemas/BotModifySchema.ts | 17 +++++++++++++++++ src/util/schemas/BulkBanSchema.ts | 17 +++++++++++++++++ src/util/schemas/BulkDeleteSchema.ts | 17 +++++++++++++++++ src/util/schemas/ChannelModifySchema.ts | 17 +++++++++++++++++ .../schemas/ChannelPermissionOverwriteSchema.ts | 17 +++++++++++++++++ src/util/schemas/ChannelReorderSchema.ts | 17 +++++++++++++++++ src/util/schemas/CodesVerificationSchema.ts | 17 +++++++++++++++++ src/util/schemas/ConnectedAccountSchema.ts | 17 +++++++++++++++++ src/util/schemas/ConnectionCallbackSchema.ts | 17 +++++++++++++++++ src/util/schemas/ConnectionUpdateSchema.ts | 17 +++++++++++++++++ src/util/schemas/DmChannelCreateSchema.ts | 17 +++++++++++++++++ src/util/schemas/EmojiCreateSchema.ts | 17 +++++++++++++++++ src/util/schemas/EmojiModifySchema.ts | 17 +++++++++++++++++ src/util/schemas/ForgotPasswordSchema.ts | 17 +++++++++++++++++ src/util/schemas/GatewayBotResponse.ts | 17 +++++++++++++++++ src/util/schemas/GatewayPayloadSchema.ts | 17 +++++++++++++++++ src/util/schemas/GatewayResponse.ts | 17 +++++++++++++++++ src/util/schemas/GuildCreateSchema.ts | 17 +++++++++++++++++ src/util/schemas/GuildTemplateCreateSchema.ts | 17 +++++++++++++++++ src/util/schemas/GuildUpdateSchema.ts | 17 +++++++++++++++++ .../schemas/GuildUpdateWelcomeScreenSchema.ts | 17 +++++++++++++++++ src/util/schemas/IdentifySchema.ts | 17 +++++++++++++++++ src/util/schemas/InviteCreateSchema.ts | 17 +++++++++++++++++ src/util/schemas/LazyRequestSchema.ts | 17 +++++++++++++++++ src/util/schemas/LoginResponse.ts | 17 +++++++++++++++++ src/util/schemas/LoginSchema.ts | 17 +++++++++++++++++ src/util/schemas/MemberChangeProfileSchema.ts | 17 +++++++++++++++++ src/util/schemas/MemberChangeSchema.ts | 17 +++++++++++++++++ src/util/schemas/MemberNickChangeSchema.ts | 17 +++++++++++++++++ src/util/schemas/MessageAcknowledgeSchema.ts | 17 +++++++++++++++++ src/util/schemas/MessageCreateSchema.ts | 17 +++++++++++++++++ src/util/schemas/MessageEditSchema.ts | 17 +++++++++++++++++ src/util/schemas/MfaCodesSchema.ts | 17 +++++++++++++++++ src/util/schemas/ModifyGuildStickerSchema.ts | 17 +++++++++++++++++ src/util/schemas/PasswordResetSchema.ts | 17 +++++++++++++++++ src/util/schemas/PruneSchema.ts | 17 +++++++++++++++++ src/util/schemas/PurgeSchema.ts | 17 +++++++++++++++++ src/util/schemas/RegisterSchema.ts | 17 +++++++++++++++++ src/util/schemas/RelationshipPostSchema.ts | 17 +++++++++++++++++ src/util/schemas/RelationshipPutSchema.ts | 17 +++++++++++++++++ src/util/schemas/RequestGuildMembersSchema.ts | 17 +++++++++++++++++ src/util/schemas/RoleModifySchema.ts | 17 +++++++++++++++++ src/util/schemas/RolePositionUpdateSchema.ts | 17 +++++++++++++++++ src/util/schemas/SelectProtocolSchema.ts | 17 +++++++++++++++++ src/util/schemas/TeamCreateSchema.ts | 17 +++++++++++++++++ src/util/schemas/TemplateCreateSchema.ts | 17 +++++++++++++++++ src/util/schemas/TemplateModifySchema.ts | 17 +++++++++++++++++ src/util/schemas/TotpDisableSchema.ts | 17 +++++++++++++++++ src/util/schemas/TotpEnableSchema.ts | 17 +++++++++++++++++ src/util/schemas/TotpSchema.ts | 17 +++++++++++++++++ src/util/schemas/UserDeleteSchema.ts | 17 +++++++++++++++++ src/util/schemas/UserGuildSettingsSchema.ts | 17 +++++++++++++++++ src/util/schemas/UserModifySchema.ts | 17 +++++++++++++++++ src/util/schemas/UserNoteUpdateSchema.ts | 17 +++++++++++++++++ src/util/schemas/UserProfileModifySchema.ts | 17 +++++++++++++++++ src/util/schemas/UserSettingsSchema.ts | 17 +++++++++++++++++ src/util/schemas/Validator.ts | 17 +++++++++++++++++ src/util/schemas/VanityUrlSchema.ts | 17 +++++++++++++++++ src/util/schemas/VerifyEmailSchema.ts | 17 +++++++++++++++++ src/util/schemas/VoiceIdentifySchema.ts | 17 +++++++++++++++++ src/util/schemas/VoiceStateUpdateSchema.ts | 17 +++++++++++++++++ src/util/schemas/VoiceVideoSchema.ts | 17 +++++++++++++++++ src/util/schemas/WebAuthnSchema.ts | 17 +++++++++++++++++ src/util/schemas/WebhookCreateSchema.ts | 17 +++++++++++++++++ src/util/schemas/WebhookExecuteSchema.ts | 17 +++++++++++++++++ src/util/schemas/WidgetModifySchema.ts | 17 +++++++++++++++++ src/util/schemas/index.ts | 17 +++++++++++++++++ .../responses/APIErrorOrCaptchaResponse.ts | 17 +++++++++++++++++ src/util/schemas/responses/APIErrorResponse.ts | 17 +++++++++++++++++ .../responses/BackupCodesChallengeResponse.ts | 17 +++++++++++++++++ .../responses/CaptchaRequiredResponse.ts | 17 +++++++++++++++++ .../responses/DiscoverableGuildsResponse.ts | 17 +++++++++++++++++ .../schemas/responses/GatewayBotResponse.ts | 17 +++++++++++++++++ src/util/schemas/responses/GatewayResponse.ts | 17 +++++++++++++++++ .../GenerateRegistrationTokensResponse.ts | 17 +++++++++++++++++ src/util/schemas/responses/GuildBansResponse.ts | 17 +++++++++++++++++ .../schemas/responses/GuildCreateResponse.ts | 17 +++++++++++++++++ .../responses/GuildDiscoveryRequirements.ts | 17 +++++++++++++++++ .../responses/GuildMessagesSearchResponse.ts | 17 +++++++++++++++++ .../schemas/responses/GuildPruneResponse.ts | 17 +++++++++++++++++ .../responses/GuildRecommendationsResponse.ts | 17 +++++++++++++++++ src/util/schemas/responses/GuildVanityUrl.ts | 17 +++++++++++++++++ .../responses/GuildVoiceRegionsResponse.ts | 17 +++++++++++++++++ .../responses/GuildWidgetJsonResponse.ts | 17 +++++++++++++++++ .../responses/GuildWidgetSettingsResponse.ts | 17 +++++++++++++++++ .../responses/InstanceDomainsResponse.ts | 17 +++++++++++++++++ .../schemas/responses/InstancePingResponse.ts | 17 +++++++++++++++++ .../schemas/responses/InstanceStatsResponse.ts | 17 +++++++++++++++++ .../responses/LocationMetadataResponse.ts | 17 +++++++++++++++++ .../responses/MemberJoinGuildResponse.ts | 17 +++++++++++++++++ .../schemas/responses/OAuthAuthorizeResponse.ts | 17 +++++++++++++++++ src/util/schemas/responses/TeamListResponse.ts | 17 +++++++++++++++++ src/util/schemas/responses/Tenor.ts | 17 +++++++++++++++++ src/util/schemas/responses/TokenResponse.ts | 17 +++++++++++++++++ src/util/schemas/responses/TypedResponses.ts | 17 +++++++++++++++++ src/util/schemas/responses/UpdatesResponse.ts | 17 +++++++++++++++++ src/util/schemas/responses/UserNoteResponse.ts | 17 +++++++++++++++++ .../schemas/responses/UserProfileResponse.ts | 17 +++++++++++++++++ .../schemas/responses/UserRelationsResponse.ts | 17 +++++++++++++++++ .../responses/UserRelationshipsResponse.ts | 17 +++++++++++++++++ .../schemas/responses/WebAuthnCreateResponse.ts | 17 +++++++++++++++++ .../schemas/responses/WebhookCreateResponse.ts | 17 +++++++++++++++++ src/util/schemas/responses/index.ts | 17 +++++++++++++++++ src/util/util/ApiError.ts | 17 +++++++++++++++++ src/util/util/Application.ts | 17 +++++++++++++++++ src/util/util/Array.ts | 17 +++++++++++++++++ src/util/util/AutoUpdate.ts | 17 +++++++++++++++++ src/util/util/Categories.ts | 17 +++++++++++++++++ src/util/util/Config.ts | 17 +++++++++++++++++ src/util/util/Constants.ts | 17 +++++++++++++++++ src/util/util/Database.ts | 17 +++++++++++++++++ src/util/util/Event.ts | 17 +++++++++++++++++ src/util/util/FieldError.ts | 17 +++++++++++++++++ src/util/util/Gifs.ts | 17 +++++++++++++++++ src/util/util/Intents.ts | 17 +++++++++++++++++ src/util/util/InvisibleCharacters.ts | 17 +++++++++++++++++ src/util/util/JSON.ts | 17 +++++++++++++++++ src/util/util/RabbitMQ.ts | 17 +++++++++++++++++ src/util/util/Regex.ts | 17 +++++++++++++++++ src/util/util/Rights.ts | 17 +++++++++++++++++ src/util/util/Sentry.ts | 17 +++++++++++++++++ src/util/util/String.ts | 17 +++++++++++++++++ src/util/util/Token.ts | 17 +++++++++++++++++ src/util/util/TraverseDirectory.ts | 17 +++++++++++++++++ src/util/util/WebAuthn.ts | 17 +++++++++++++++++ src/util/util/cdn.ts | 17 +++++++++++++++++ src/util/util/email/index.ts | 17 +++++++++++++++++ src/util/util/email/transports/MailGun.ts | 17 +++++++++++++++++ src/util/util/email/transports/MailJet.ts | 17 +++++++++++++++++ src/util/util/email/transports/SMTP.ts | 17 +++++++++++++++++ src/util/util/email/transports/SendGrid.ts | 17 +++++++++++++++++ src/util/util/email/transports/index.ts | 17 +++++++++++++++++ src/util/util/index.ts | 17 +++++++++++++++++ src/webrtc/Server.ts | 17 +++++++++++++++++ src/webrtc/events/Close.ts | 17 +++++++++++++++++ src/webrtc/events/Connection.ts | 17 +++++++++++++++++ src/webrtc/events/Message.ts | 17 +++++++++++++++++ src/webrtc/index.ts | 17 +++++++++++++++++ src/webrtc/opcodes/BackendVersion.ts | 17 +++++++++++++++++ src/webrtc/opcodes/Heartbeat.ts | 17 +++++++++++++++++ src/webrtc/opcodes/Identify.ts | 17 +++++++++++++++++ src/webrtc/opcodes/SelectProtocol.ts | 17 +++++++++++++++++ src/webrtc/opcodes/Speaking.ts | 17 +++++++++++++++++ src/webrtc/opcodes/Video.ts | 17 +++++++++++++++++ src/webrtc/opcodes/index.ts | 17 +++++++++++++++++ src/webrtc/start.ts | 17 +++++++++++++++++ src/webrtc/util/Constants.ts | 17 +++++++++++++++++ src/webrtc/util/MediaServer.ts | 17 +++++++++++++++++ src/webrtc/util/index.ts | 17 +++++++++++++++++ 566 files changed, 9622 insertions(+) diff --git a/scripts/openapi.js b/scripts/openapi.js index 11d14b3..ead4e2e 100644 --- a/scripts/openapi.js +++ b/scripts/openapi.js @@ -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"); diff --git a/scripts/rights.js b/scripts/rights.js index 66b97a4..63c41d1 100644 --- a/scripts/rights.js +++ b/scripts/rights.js @@ -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. */ diff --git a/scripts/schema.js b/scripts/schema.js index 38e8b1e..2d49404 100644 --- a/scripts/schema.js +++ b/scripts/schema.js @@ -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"); diff --git a/scripts/stagingMigration/index.js b/scripts/stagingMigration/index.js index a1acaab..81fe2b2 100644 --- a/scripts/stagingMigration/index.js +++ b/scripts/stagingMigration/index.js @@ -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"); diff --git a/scripts/stagingMigration/maria/1672833135670-staging.js b/scripts/stagingMigration/maria/1672833135670-staging.js index ce0c1ed..1fa1bd5 100644 --- a/scripts/stagingMigration/maria/1672833135670-staging.js +++ b/scripts/stagingMigration/maria/1672833135670-staging.js @@ -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 { diff --git a/scripts/stagingMigration/mysql/1672833135670-staging.js b/scripts/stagingMigration/mysql/1672833135670-staging.js index ce0c1ed..1fa1bd5 100644 --- a/scripts/stagingMigration/mysql/1672833135670-staging.js +++ b/scripts/stagingMigration/mysql/1672833135670-staging.js @@ -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 { diff --git a/scripts/stagingMigration/postgres/1672815835837-staging.js b/scripts/stagingMigration/postgres/1672815835837-staging.js index e854f5c..f69bd2b 100644 --- a/scripts/stagingMigration/postgres/1672815835837-staging.js +++ b/scripts/stagingMigration/postgres/1672815835837-staging.js @@ -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 { diff --git a/scripts/stress/identify.js b/scripts/stress/identify.js index 2a271bb..dd231a0 100644 --- a/scripts/stress/identify.js +++ b/scripts/stress/identify.js @@ -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(); diff --git a/scripts/stress/login.js b/scripts/stress/login.js index 473e2e9..a5d2b20 100644 --- a/scripts/stress/login.js +++ b/scripts/stress/login.js @@ -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"; diff --git a/scripts/stress/users.js b/scripts/stress/users.js index bce67bf..95d9a23 100644 --- a/scripts/stress/users.js +++ b/scripts/stress/users.js @@ -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; diff --git a/scripts/syncronise.js b/scripts/syncronise.js index 3889566..e74a446 100644 --- a/scripts/syncronise.js +++ b/scripts/syncronise.js @@ -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, diff --git a/scripts/test.js b/scripts/test.js index f30843d..92fe8a5 100644 --- a/scripts/test.js +++ b/scripts/test.js @@ -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. diff --git a/scripts/util/getRouteDescriptions.js b/scripts/util/getRouteDescriptions.js index a79dac9..c14e884 100644 --- a/scripts/util/getRouteDescriptions.js +++ b/scripts/util/getRouteDescriptions.js @@ -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"); diff --git a/scripts/util/walk.js b/scripts/util/walk.js index b7c4b9c..12442da 100644 --- a/scripts/util/walk.js +++ b/scripts/util/walk.js @@ -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 ) */ diff --git a/src/api/Server.ts b/src/api/Server.ts index a21dad8..d424a6a 100644 --- a/src/api/Server.ts +++ b/src/api/Server.ts @@ -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, diff --git a/src/api/global.d.ts b/src/api/global.d.ts index ed23cac..c8ca9aa 100644 --- a/src/api/global.d.ts +++ b/src/api/global.d.ts @@ -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 { diff --git a/src/api/index.ts b/src/api/index.ts index adc7649..13e78ee 100644 --- a/src/api/index.ts +++ b/src/api/index.ts @@ -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/"; diff --git a/src/api/middlewares/Authentication.ts b/src/api/middlewares/Authentication.ts index c0b0e98..5a8b018 100644 --- a/src/api/middlewares/Authentication.ts +++ b/src/api/middlewares/Authentication.ts @@ -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"; diff --git a/src/api/middlewares/BodyParser.ts b/src/api/middlewares/BodyParser.ts index 889eae3..a310ac2 100644 --- a/src/api/middlewares/BodyParser.ts +++ b/src/api/middlewares/BodyParser.ts @@ -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"; diff --git a/src/api/middlewares/CORS.ts b/src/api/middlewares/CORS.ts index 2dce51c..ae9bbcd 100644 --- a/src/api/middlewares/CORS.ts +++ b/src/api/middlewares/CORS.ts @@ -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 diff --git a/src/api/middlewares/ErrorHandler.ts b/src/api/middlewares/ErrorHandler.ts index a786da7..c7ecda3 100644 --- a/src/api/middlewares/ErrorHandler.ts +++ b/src/api/middlewares/ErrorHandler.ts @@ -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"; diff --git a/src/api/middlewares/ImageProxy.ts b/src/api/middlewares/ImageProxy.ts index 3ce825b..8b5dfe7 100644 --- a/src/api/middlewares/ImageProxy.ts +++ b/src/api/middlewares/ImageProxy.ts @@ -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"; diff --git a/src/api/middlewares/RateLimit.ts b/src/api/middlewares/RateLimit.ts index 2511f0f..c6b2c85 100644 --- a/src/api/middlewares/RateLimit.ts +++ b/src/api/middlewares/RateLimit.ts @@ -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"; diff --git a/src/api/middlewares/Translation.ts b/src/api/middlewares/Translation.ts index 1d86df9..8c58c30 100644 --- a/src/api/middlewares/Translation.ts +++ b/src/api/middlewares/Translation.ts @@ -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"; diff --git a/src/api/middlewares/index.ts b/src/api/middlewares/index.ts index 9449716..bb6bb81 100644 --- a/src/api/middlewares/index.ts +++ b/src/api/middlewares/index.ts @@ -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"; diff --git a/src/api/routes/-/healthz.ts b/src/api/routes/-/healthz.ts index f659291..a9c9bd0 100644 --- a/src/api/routes/-/healthz.ts +++ b/src/api/routes/-/healthz.ts @@ -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"; diff --git a/src/api/routes/-/readyz.ts b/src/api/routes/-/readyz.ts index f659291..a9c9bd0 100644 --- a/src/api/routes/-/readyz.ts +++ b/src/api/routes/-/readyz.ts @@ -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"; diff --git a/src/api/routes/applications/#id/bot/index.ts b/src/api/routes/applications/#id/bot/index.ts index ba47ef6..7a805c4 100644 --- a/src/api/routes/applications/#id/bot/index.ts +++ b/src/api/routes/applications/#id/bot/index.ts @@ -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, diff --git a/src/api/routes/applications/#id/entitlements.ts b/src/api/routes/applications/#id/entitlements.ts index 59bfa42..f34ef08 100644 --- a/src/api/routes/applications/#id/entitlements.ts +++ b/src/api/routes/applications/#id/entitlements.ts @@ -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"; diff --git a/src/api/routes/applications/#id/index.ts b/src/api/routes/applications/#id/index.ts index dfc67fe..cbe3fb4 100644 --- a/src/api/routes/applications/#id/index.ts +++ b/src/api/routes/applications/#id/index.ts @@ -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, diff --git a/src/api/routes/applications/#id/skus.ts b/src/api/routes/applications/#id/skus.ts index 06dd890..674a4dd 100644 --- a/src/api/routes/applications/#id/skus.ts +++ b/src/api/routes/applications/#id/skus.ts @@ -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"; diff --git a/src/api/routes/applications/detectable.ts b/src/api/routes/applications/detectable.ts index ef29d28..96f8827 100644 --- a/src/api/routes/applications/detectable.ts +++ b/src/api/routes/applications/detectable.ts @@ -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"; diff --git a/src/api/routes/applications/index.ts b/src/api/routes/applications/index.ts index 86c78f5..e7df0c6 100644 --- a/src/api/routes/applications/index.ts +++ b/src/api/routes/applications/index.ts @@ -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, diff --git a/src/api/routes/auth/forgot.ts b/src/api/routes/auth/forgot.ts index e1db68a..dfc58a8 100644 --- a/src/api/routes/auth/forgot.ts +++ b/src/api/routes/auth/forgot.ts @@ -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"; diff --git a/src/api/routes/auth/generate-registration-tokens.ts b/src/api/routes/auth/generate-registration-tokens.ts index 8640c2e..afaf370 100644 --- a/src/api/routes/auth/generate-registration-tokens.ts +++ b/src/api/routes/auth/generate-registration-tokens.ts @@ -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"; diff --git a/src/api/routes/auth/location-metadata.ts b/src/api/routes/auth/location-metadata.ts index 70db017..5bed64d 100644 --- a/src/api/routes/auth/location-metadata.ts +++ b/src/api/routes/auth/location-metadata.ts @@ -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(); diff --git a/src/api/routes/auth/login.ts b/src/api/routes/auth/login.ts index 3c61338..4c79037 100644 --- a/src/api/routes/auth/login.ts +++ b/src/api/routes/auth/login.ts @@ -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, diff --git a/src/api/routes/auth/logout.ts b/src/api/routes/auth/logout.ts index 2c09226..1bb1733 100644 --- a/src/api/routes/auth/logout.ts +++ b/src/api/routes/auth/logout.ts @@ -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"; diff --git a/src/api/routes/auth/mfa/totp.ts b/src/api/routes/auth/mfa/totp.ts index 8d7a20c..4a34068 100644 --- a/src/api/routes/auth/mfa/totp.ts +++ b/src/api/routes/auth/mfa/totp.ts @@ -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"; diff --git a/src/api/routes/auth/mfa/webauthn.ts b/src/api/routes/auth/mfa/webauthn.ts index 62e16bf..b7c9977 100644 --- a/src/api/routes/auth/mfa/webauthn.ts +++ b/src/api/routes/auth/mfa/webauthn.ts @@ -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, diff --git a/src/api/routes/auth/register.ts b/src/api/routes/auth/register.ts index 8171e07..b032aca 100644 --- a/src/api/routes/auth/register.ts +++ b/src/api/routes/auth/register.ts @@ -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, diff --git a/src/api/routes/auth/reset.ts b/src/api/routes/auth/reset.ts index 05f1eed..a470b44 100644 --- a/src/api/routes/auth/reset.ts +++ b/src/api/routes/auth/reset.ts @@ -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, diff --git a/src/api/routes/auth/verify/index.ts b/src/api/routes/auth/verify/index.ts index 9be8a4d..b4d758a 100644 --- a/src/api/routes/auth/verify/index.ts +++ b/src/api/routes/auth/verify/index.ts @@ -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, diff --git a/src/api/routes/auth/verify/resend.ts b/src/api/routes/auth/verify/resend.ts index 9582607..0337da4 100644 --- a/src/api/routes/auth/verify/resend.ts +++ b/src/api/routes/auth/verify/resend.ts @@ -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"; diff --git a/src/api/routes/auth/verify/view-backup-codes-challenge.ts b/src/api/routes/auth/verify/view-backup-codes-challenge.ts index a7f5c75..9b03f55 100644 --- a/src/api/routes/auth/verify/view-backup-codes-challenge.ts +++ b/src/api/routes/auth/verify/view-backup-codes-challenge.ts @@ -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"; diff --git a/src/api/routes/channels/#channel_id/followers.ts b/src/api/routes/channels/#channel_id/followers.ts index c06db61..b664533 100644 --- a/src/api/routes/channels/#channel_id/followers.ts +++ b/src/api/routes/channels/#channel_id/followers.ts @@ -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: diff --git a/src/api/routes/channels/#channel_id/index.ts b/src/api/routes/channels/#channel_id/index.ts index 53df8ee..16b5501 100644 --- a/src/api/routes/channels/#channel_id/index.ts +++ b/src/api/routes/channels/#channel_id/index.ts @@ -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, diff --git a/src/api/routes/channels/#channel_id/invites.ts b/src/api/routes/channels/#channel_id/invites.ts index e013c8a..4513905 100644 --- a/src/api/routes/channels/#channel_id/invites.ts +++ b/src/api/routes/channels/#channel_id/invites.ts @@ -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, diff --git a/src/api/routes/channels/#channel_id/messages/#message_id/ack.ts b/src/api/routes/channels/#channel_id/messages/#message_id/ack.ts index 329edab..2165a37 100644 --- a/src/api/routes/channels/#channel_id/messages/#message_id/ack.ts +++ b/src/api/routes/channels/#channel_id/messages/#message_id/ack.ts @@ -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, diff --git a/src/api/routes/channels/#channel_id/messages/#message_id/crosspost.ts b/src/api/routes/channels/#channel_id/messages/#message_id/crosspost.ts index e5a409b..19f9216 100644 --- a/src/api/routes/channels/#channel_id/messages/#message_id/crosspost.ts +++ b/src/api/routes/channels/#channel_id/messages/#message_id/crosspost.ts @@ -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"; diff --git a/src/api/routes/channels/#channel_id/messages/#message_id/index.ts b/src/api/routes/channels/#channel_id/messages/#message_id/index.ts index be75d03..6cf1821 100644 --- a/src/api/routes/channels/#channel_id/messages/#message_id/index.ts +++ b/src/api/routes/channels/#channel_id/messages/#message_id/index.ts @@ -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, diff --git a/src/api/routes/channels/#channel_id/messages/#message_id/reactions.ts b/src/api/routes/channels/#channel_id/messages/#message_id/reactions.ts index 684f4d5..92a5afb 100644 --- a/src/api/routes/channels/#channel_id/messages/#message_id/reactions.ts +++ b/src/api/routes/channels/#channel_id/messages/#message_id/reactions.ts @@ -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, diff --git a/src/api/routes/channels/#channel_id/messages/bulk-delete.ts b/src/api/routes/channels/#channel_id/messages/bulk-delete.ts index e24cfef..1c6a9a0 100644 --- a/src/api/routes/channels/#channel_id/messages/bulk-delete.ts +++ b/src/api/routes/channels/#channel_id/messages/bulk-delete.ts @@ -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, diff --git a/src/api/routes/channels/#channel_id/messages/index.ts b/src/api/routes/channels/#channel_id/messages/index.ts index 02fff72..294e46c 100644 --- a/src/api/routes/channels/#channel_id/messages/index.ts +++ b/src/api/routes/channels/#channel_id/messages/index.ts @@ -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, diff --git a/src/api/routes/channels/#channel_id/permissions.ts b/src/api/routes/channels/#channel_id/permissions.ts index 57827ad..e055215 100644 --- a/src/api/routes/channels/#channel_id/permissions.ts +++ b/src/api/routes/channels/#channel_id/permissions.ts @@ -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, diff --git a/src/api/routes/channels/#channel_id/pins.ts b/src/api/routes/channels/#channel_id/pins.ts index 1f8ca57..eddd688 100644 --- a/src/api/routes/channels/#channel_id/pins.ts +++ b/src/api/routes/channels/#channel_id/pins.ts @@ -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, diff --git a/src/api/routes/channels/#channel_id/purge.ts b/src/api/routes/channels/#channel_id/purge.ts index f0a53aa..443b26f 100644 --- a/src/api/routes/channels/#channel_id/purge.ts +++ b/src/api/routes/channels/#channel_id/purge.ts @@ -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, diff --git a/src/api/routes/channels/#channel_id/recipients.ts b/src/api/routes/channels/#channel_id/recipients.ts index 48f497b..a5f6472 100644 --- a/src/api/routes/channels/#channel_id/recipients.ts +++ b/src/api/routes/channels/#channel_id/recipients.ts @@ -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, diff --git a/src/api/routes/channels/#channel_id/typing.ts b/src/api/routes/channels/#channel_id/typing.ts index ae67106..1615c34 100644 --- a/src/api/routes/channels/#channel_id/typing.ts +++ b/src/api/routes/channels/#channel_id/typing.ts @@ -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"; diff --git a/src/api/routes/channels/#channel_id/webhooks.ts b/src/api/routes/channels/#channel_id/webhooks.ts index 265775a..00d6387 100644 --- a/src/api/routes/channels/#channel_id/webhooks.ts +++ b/src/api/routes/channels/#channel_id/webhooks.ts @@ -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, diff --git a/src/api/routes/connections/#connection_name/#connection_id/refresh.ts b/src/api/routes/connections/#connection_name/#connection_id/refresh.ts index b6526b2..0be5803 100644 --- a/src/api/routes/connections/#connection_name/#connection_id/refresh.ts +++ b/src/api/routes/connections/#connection_name/#connection_id/refresh.ts @@ -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(); diff --git a/src/api/routes/connections/#connection_name/authorize.ts b/src/api/routes/connections/#connection_name/authorize.ts index d7b9e37..fa9f089 100644 --- a/src/api/routes/connections/#connection_name/authorize.ts +++ b/src/api/routes/connections/#connection_name/authorize.ts @@ -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"; diff --git a/src/api/routes/connections/#connection_name/callback.ts b/src/api/routes/connections/#connection_name/callback.ts index b6010b8..637bb4a 100644 --- a/src/api/routes/connections/#connection_name/callback.ts +++ b/src/api/routes/connections/#connection_name/callback.ts @@ -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, diff --git a/src/api/routes/connections/index.ts b/src/api/routes/connections/index.ts index 5d88a2c..36ff529 100644 --- a/src/api/routes/connections/index.ts +++ b/src/api/routes/connections/index.ts @@ -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"; diff --git a/src/api/routes/discoverable-guilds.ts b/src/api/routes/discoverable-guilds.ts index acdd881..367a4b4 100644 --- a/src/api/routes/discoverable-guilds.ts +++ b/src/api/routes/discoverable-guilds.ts @@ -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"; diff --git a/src/api/routes/discovery.ts b/src/api/routes/discovery.ts index 0eeb51b..46bff18 100644 --- a/src/api/routes/discovery.ts +++ b/src/api/routes/discovery.ts @@ -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"; diff --git a/src/api/routes/download.ts b/src/api/routes/download.ts index 60c84ae..45ef2ba 100644 --- a/src/api/routes/download.ts +++ b/src/api/routes/download.ts @@ -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"; diff --git a/src/api/routes/experiments.ts b/src/api/routes/experiments.ts index 5127806..063cc04 100644 --- a/src/api/routes/experiments.ts +++ b/src/api/routes/experiments.ts @@ -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"; diff --git a/src/api/routes/gateway/bot.ts b/src/api/routes/gateway/bot.ts index 3f83a2b..6b393af 100644 --- a/src/api/routes/gateway/bot.ts +++ b/src/api/routes/gateway/bot.ts @@ -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"; diff --git a/src/api/routes/gateway/index.ts b/src/api/routes/gateway/index.ts index 4d68436..650df19 100644 --- a/src/api/routes/gateway/index.ts +++ b/src/api/routes/gateway/index.ts @@ -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"; diff --git a/src/api/routes/gifs/search.ts b/src/api/routes/gifs/search.ts index 5d80493..889a4f9 100644 --- a/src/api/routes/gifs/search.ts +++ b/src/api/routes/gifs/search.ts @@ -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"; diff --git a/src/api/routes/gifs/trending-gifs.ts b/src/api/routes/gifs/trending-gifs.ts index b871912..09b40fc 100644 --- a/src/api/routes/gifs/trending-gifs.ts +++ b/src/api/routes/gifs/trending-gifs.ts @@ -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"; diff --git a/src/api/routes/gifs/trending.ts b/src/api/routes/gifs/trending.ts index b22fc69..c7281d4 100644 --- a/src/api/routes/gifs/trending.ts +++ b/src/api/routes/gifs/trending.ts @@ -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, diff --git a/src/api/routes/guild-recommendations.ts b/src/api/routes/guild-recommendations.ts index 628bf4c..5f5b13b 100644 --- a/src/api/routes/guild-recommendations.ts +++ b/src/api/routes/guild-recommendations.ts @@ -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"; diff --git a/src/api/routes/guilds/#guild_id/audit-logs.ts b/src/api/routes/guilds/#guild_id/audit-logs.ts index 7c4d4c9..ee07740 100644 --- a/src/api/routes/guilds/#guild_id/audit-logs.ts +++ b/src/api/routes/guilds/#guild_id/audit-logs.ts @@ -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(); diff --git a/src/api/routes/guilds/#guild_id/bans.ts b/src/api/routes/guilds/#guild_id/bans.ts index f42ca29..b1a7258 100644 --- a/src/api/routes/guilds/#guild_id/bans.ts +++ b/src/api/routes/guilds/#guild_id/bans.ts @@ -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, diff --git a/src/api/routes/guilds/#guild_id/bulk-ban.ts b/src/api/routes/guilds/#guild_id/bulk-ban.ts index bb25b15..501fc92 100644 --- a/src/api/routes/guilds/#guild_id/bulk-ban.ts +++ b/src/api/routes/guilds/#guild_id/bulk-ban.ts @@ -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, diff --git a/src/api/routes/guilds/#guild_id/channels.ts b/src/api/routes/guilds/#guild_id/channels.ts index 26eee88..74a258d 100644 --- a/src/api/routes/guilds/#guild_id/channels.ts +++ b/src/api/routes/guilds/#guild_id/channels.ts @@ -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, diff --git a/src/api/routes/guilds/#guild_id/delete.ts b/src/api/routes/guilds/#guild_id/delete.ts index 775c2ce..63733e1 100644 --- a/src/api/routes/guilds/#guild_id/delete.ts +++ b/src/api/routes/guilds/#guild_id/delete.ts @@ -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"; diff --git a/src/api/routes/guilds/#guild_id/discovery-requirements.ts b/src/api/routes/guilds/#guild_id/discovery-requirements.ts index e2f9385..967fbfc 100644 --- a/src/api/routes/guilds/#guild_id/discovery-requirements.ts +++ b/src/api/routes/guilds/#guild_id/discovery-requirements.ts @@ -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"; diff --git a/src/api/routes/guilds/#guild_id/emojis.ts b/src/api/routes/guilds/#guild_id/emojis.ts index a984b11..f0b7e57 100644 --- a/src/api/routes/guilds/#guild_id/emojis.ts +++ b/src/api/routes/guilds/#guild_id/emojis.ts @@ -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, diff --git a/src/api/routes/guilds/#guild_id/index.ts b/src/api/routes/guilds/#guild_id/index.ts index d98edaa..e699570 100644 --- a/src/api/routes/guilds/#guild_id/index.ts +++ b/src/api/routes/guilds/#guild_id/index.ts @@ -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, diff --git a/src/api/routes/guilds/#guild_id/integrations.ts b/src/api/routes/guilds/#guild_id/integrations.ts index bd8b544..89d567b 100644 --- a/src/api/routes/guilds/#guild_id/integrations.ts +++ b/src/api/routes/guilds/#guild_id/integrations.ts @@ -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(); diff --git a/src/api/routes/guilds/#guild_id/invites.ts b/src/api/routes/guilds/#guild_id/invites.ts index 612d7d0..6012353 100644 --- a/src/api/routes/guilds/#guild_id/invites.ts +++ b/src/api/routes/guilds/#guild_id/invites.ts @@ -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"; diff --git a/src/api/routes/guilds/#guild_id/member-verification.ts b/src/api/routes/guilds/#guild_id/member-verification.ts index 0e82dd6..95fc290 100644 --- a/src/api/routes/guilds/#guild_id/member-verification.ts +++ b/src/api/routes/guilds/#guild_id/member-verification.ts @@ -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(); diff --git a/src/api/routes/guilds/#guild_id/members/#member_id/index.ts b/src/api/routes/guilds/#guild_id/members/#member_id/index.ts index 99b75a9..f21de1a 100644 --- a/src/api/routes/guilds/#guild_id/members/#member_id/index.ts +++ b/src/api/routes/guilds/#guild_id/members/#member_id/index.ts @@ -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, diff --git a/src/api/routes/guilds/#guild_id/members/#member_id/nick.ts b/src/api/routes/guilds/#guild_id/members/#member_id/nick.ts index 35d9c76..e0b3754 100644 --- a/src/api/routes/guilds/#guild_id/members/#member_id/nick.ts +++ b/src/api/routes/guilds/#guild_id/members/#member_id/nick.ts @@ -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"; diff --git a/src/api/routes/guilds/#guild_id/members/#member_id/roles/#role_id/index.ts b/src/api/routes/guilds/#guild_id/members/#member_id/roles/#role_id/index.ts index b6caaaf..2468c90 100644 --- a/src/api/routes/guilds/#guild_id/members/#member_id/roles/#role_id/index.ts +++ b/src/api/routes/guilds/#guild_id/members/#member_id/roles/#role_id/index.ts @@ -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"; diff --git a/src/api/routes/guilds/#guild_id/members/index.ts b/src/api/routes/guilds/#guild_id/members/index.ts index e1d47ad..361027b 100644 --- a/src/api/routes/guilds/#guild_id/members/index.ts +++ b/src/api/routes/guilds/#guild_id/members/index.ts @@ -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"; diff --git a/src/api/routes/guilds/#guild_id/messages/search.ts b/src/api/routes/guilds/#guild_id/messages/search.ts index 757e3b1..cf22a8d 100644 --- a/src/api/routes/guilds/#guild_id/messages/search.ts +++ b/src/api/routes/guilds/#guild_id/messages/search.ts @@ -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"; diff --git a/src/api/routes/guilds/#guild_id/premium.ts b/src/api/routes/guilds/#guild_id/premium.ts index 5967771..8128ee8 100644 --- a/src/api/routes/guilds/#guild_id/premium.ts +++ b/src/api/routes/guilds/#guild_id/premium.ts @@ -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(); diff --git a/src/api/routes/guilds/#guild_id/profile/index.ts b/src/api/routes/guilds/#guild_id/profile/index.ts index 9c91e5e..078e8e7 100644 --- a/src/api/routes/guilds/#guild_id/profile/index.ts +++ b/src/api/routes/guilds/#guild_id/profile/index.ts @@ -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, diff --git a/src/api/routes/guilds/#guild_id/prune.ts b/src/api/routes/guilds/#guild_id/prune.ts index c99274f..eee0b1b 100644 --- a/src/api/routes/guilds/#guild_id/prune.ts +++ b/src/api/routes/guilds/#guild_id/prune.ts @@ -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"; diff --git a/src/api/routes/guilds/#guild_id/regions.ts b/src/api/routes/guilds/#guild_id/regions.ts index 36e2cff..b9aeeaf 100644 --- a/src/api/routes/guilds/#guild_id/regions.ts +++ b/src/api/routes/guilds/#guild_id/regions.ts @@ -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"; diff --git a/src/api/routes/guilds/#guild_id/roles/#role_id/index.ts b/src/api/routes/guilds/#guild_id/roles/#role_id/index.ts index 6c77ca3..4d3295c 100644 --- a/src/api/routes/guilds/#guild_id/roles/#role_id/index.ts +++ b/src/api/routes/guilds/#guild_id/roles/#role_id/index.ts @@ -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, diff --git a/src/api/routes/guilds/#guild_id/roles/#role_id/member-ids.ts b/src/api/routes/guilds/#guild_id/roles/#role_id/member-ids.ts index c068ecd..52be195 100644 --- a/src/api/routes/guilds/#guild_id/roles/#role_id/member-ids.ts +++ b/src/api/routes/guilds/#guild_id/roles/#role_id/member-ids.ts @@ -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"; diff --git a/src/api/routes/guilds/#guild_id/roles/#role_id/members.ts b/src/api/routes/guilds/#guild_id/roles/#role_id/members.ts index 7851931..9eccaad 100644 --- a/src/api/routes/guilds/#guild_id/roles/#role_id/members.ts +++ b/src/api/routes/guilds/#guild_id/roles/#role_id/members.ts @@ -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"; diff --git a/src/api/routes/guilds/#guild_id/roles/index.ts b/src/api/routes/guilds/#guild_id/roles/index.ts index 9d478b6..cc1910a 100644 --- a/src/api/routes/guilds/#guild_id/roles/index.ts +++ b/src/api/routes/guilds/#guild_id/roles/index.ts @@ -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, diff --git a/src/api/routes/guilds/#guild_id/roles/member-counts.ts b/src/api/routes/guilds/#guild_id/roles/member-counts.ts index a3e40b9..be700c4 100644 --- a/src/api/routes/guilds/#guild_id/roles/member-counts.ts +++ b/src/api/routes/guilds/#guild_id/roles/member-counts.ts @@ -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"; diff --git a/src/api/routes/guilds/#guild_id/stickers.ts b/src/api/routes/guilds/#guild_id/stickers.ts index fe00a4d..041b9e4 100644 --- a/src/api/routes/guilds/#guild_id/stickers.ts +++ b/src/api/routes/guilds/#guild_id/stickers.ts @@ -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, diff --git a/src/api/routes/guilds/#guild_id/templates.ts b/src/api/routes/guilds/#guild_id/templates.ts index 9940cd5..3b59f9b 100644 --- a/src/api/routes/guilds/#guild_id/templates.ts +++ b/src/api/routes/guilds/#guild_id/templates.ts @@ -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 { generateCode, route } from "@valkyrie/api"; import { Guild, Template } from "@valkyrie/util"; import { Request, Response, Router } from "express"; diff --git a/src/api/routes/guilds/#guild_id/vanity-url.ts b/src/api/routes/guilds/#guild_id/vanity-url.ts index 6952b3c..f332745 100644 --- a/src/api/routes/guilds/#guild_id/vanity-url.ts +++ b/src/api/routes/guilds/#guild_id/vanity-url.ts @@ -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, diff --git a/src/api/routes/guilds/#guild_id/voice-states/#user_id/index.ts b/src/api/routes/guilds/#guild_id/voice-states/#user_id/index.ts index ea2edd9..5ef416c 100644 --- a/src/api/routes/guilds/#guild_id/voice-states/#user_id/index.ts +++ b/src/api/routes/guilds/#guild_id/voice-states/#user_id/index.ts @@ -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, diff --git a/src/api/routes/guilds/#guild_id/webhooks.ts b/src/api/routes/guilds/#guild_id/webhooks.ts index b147bac..80e249c 100644 --- a/src/api/routes/guilds/#guild_id/webhooks.ts +++ b/src/api/routes/guilds/#guild_id/webhooks.ts @@ -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, Webhook } from "@valkyrie/util"; import { Request, Response, Router } from "express"; diff --git a/src/api/routes/guilds/#guild_id/welcome-screen.ts b/src/api/routes/guilds/#guild_id/welcome-screen.ts index a990c77..75fc8e8 100644 --- a/src/api/routes/guilds/#guild_id/welcome-screen.ts +++ b/src/api/routes/guilds/#guild_id/welcome-screen.ts @@ -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, diff --git a/src/api/routes/guilds/#guild_id/widget.json.ts b/src/api/routes/guilds/#guild_id/widget.json.ts index 9de96e7..7ccdff1 100644 --- a/src/api/routes/guilds/#guild_id/widget.json.ts +++ b/src/api/routes/guilds/#guild_id/widget.json.ts @@ -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, diff --git a/src/api/routes/guilds/#guild_id/widget.png.ts b/src/api/routes/guilds/#guild_id/widget.png.ts index 966ea13..5e64a9e 100644 --- a/src/api/routes/guilds/#guild_id/widget.png.ts +++ b/src/api/routes/guilds/#guild_id/widget.png.ts @@ -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/no-explicit-any */ import { route } from "@valkyrie/api"; diff --git a/src/api/routes/guilds/#guild_id/widget.ts b/src/api/routes/guilds/#guild_id/widget.ts index 4bb7e29..98c15cc 100644 --- a/src/api/routes/guilds/#guild_id/widget.ts +++ b/src/api/routes/guilds/#guild_id/widget.ts @@ -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, WidgetModifySchema } from "@valkyrie/util"; import { Request, Response, Router } from "express"; diff --git a/src/api/routes/guilds/index.ts b/src/api/routes/guilds/index.ts index 703411a..232d238 100644 --- a/src/api/routes/guilds/index.ts +++ b/src/api/routes/guilds/index.ts @@ -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, diff --git a/src/api/routes/guilds/templates/index.ts b/src/api/routes/guilds/templates/index.ts index 15af6ed..7f48597 100644 --- a/src/api/routes/guilds/templates/index.ts +++ b/src/api/routes/guilds/templates/index.ts @@ -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, diff --git a/src/api/routes/invites/index.ts b/src/api/routes/invites/index.ts index 2c0454e..816a44d 100644 --- a/src/api/routes/invites/index.ts +++ b/src/api/routes/invites/index.ts @@ -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, diff --git a/src/api/routes/oauth2/applications/@me.ts b/src/api/routes/oauth2/applications/@me.ts index b4d9699..bde1922 100644 --- a/src/api/routes/oauth2/applications/@me.ts +++ b/src/api/routes/oauth2/applications/@me.ts @@ -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, diff --git a/src/api/routes/oauth2/authorize.ts b/src/api/routes/oauth2/authorize.ts index 43da855..bcb9ec6 100644 --- a/src/api/routes/oauth2/authorize.ts +++ b/src/api/routes/oauth2/authorize.ts @@ -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 { ApiError, diff --git a/src/api/routes/oauth2/tokens.ts b/src/api/routes/oauth2/tokens.ts index c1157ce..b5a935a 100644 --- a/src/api/routes/oauth2/tokens.ts +++ b/src/api/routes/oauth2/tokens.ts @@ -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(); diff --git a/src/api/routes/outbound-promotions.ts b/src/api/routes/outbound-promotions.ts index 4206868..4cbbaa8 100644 --- a/src/api/routes/outbound-promotions.ts +++ b/src/api/routes/outbound-promotions.ts @@ -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 { route } from "@valkyrie/api"; diff --git a/src/api/routes/partners/#guild_id/requirements.ts b/src/api/routes/partners/#guild_id/requirements.ts index 01a7760..965beb5 100644 --- a/src/api/routes/partners/#guild_id/requirements.ts +++ b/src/api/routes/partners/#guild_id/requirements.ts @@ -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"; diff --git a/src/api/routes/ping.ts b/src/api/routes/ping.ts index 73ac724..8ab39bb 100644 --- a/src/api/routes/ping.ts +++ b/src/api/routes/ping.ts @@ -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"; diff --git a/src/api/routes/policies/instance/domains.ts b/src/api/routes/policies/instance/domains.ts index ef8ccc7..404f2ff 100644 --- a/src/api/routes/policies/instance/domains.ts +++ b/src/api/routes/policies/instance/domains.ts @@ -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"; diff --git a/src/api/routes/policies/instance/index.ts b/src/api/routes/policies/instance/index.ts index c3d7eff..3e124b5 100644 --- a/src/api/routes/policies/instance/index.ts +++ b/src/api/routes/policies/instance/index.ts @@ -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"; diff --git a/src/api/routes/policies/instance/limits.ts b/src/api/routes/policies/instance/limits.ts index 41909ec..6fca344 100644 --- a/src/api/routes/policies/instance/limits.ts +++ b/src/api/routes/policies/instance/limits.ts @@ -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"; diff --git a/src/api/routes/policies/stats.ts b/src/api/routes/policies/stats.ts index 7937f1f..4083641 100644 --- a/src/api/routes/policies/stats.ts +++ b/src/api/routes/policies/stats.ts @@ -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, diff --git a/src/api/routes/read-states/ack-bulk.ts b/src/api/routes/read-states/ack-bulk.ts index 25819a3..4771702 100644 --- a/src/api/routes/read-states/ack-bulk.ts +++ b/src/api/routes/read-states/ack-bulk.ts @@ -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 { AckBulkSchema, ReadState } from "@valkyrie/util"; import { Request, Response, Router } from "express"; diff --git a/src/api/routes/scheduled-maintenances/upcoming.json.ts b/src/api/routes/scheduled-maintenances/upcoming.json.ts index d518969..568736a 100644 --- a/src/api/routes/scheduled-maintenances/upcoming.json.ts +++ b/src/api/routes/scheduled-maintenances/upcoming.json.ts @@ -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(); diff --git a/src/api/routes/science.ts b/src/api/routes/science.ts index 159f709..ca2d001 100644 --- a/src/api/routes/science.ts +++ b/src/api/routes/science.ts @@ -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"; diff --git a/src/api/routes/stage-instances.ts b/src/api/routes/stage-instances.ts index 4206868..4cbbaa8 100644 --- a/src/api/routes/stage-instances.ts +++ b/src/api/routes/stage-instances.ts @@ -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 { route } from "@valkyrie/api"; diff --git a/src/api/routes/sticker-packs/index.ts b/src/api/routes/sticker-packs/index.ts index 7929d41..b1b1371 100644 --- a/src/api/routes/sticker-packs/index.ts +++ b/src/api/routes/sticker-packs/index.ts @@ -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 { StickerPack } from "@valkyrie/util"; import { Request, Response, Router } from "express"; diff --git a/src/api/routes/stickers/#sticker_id/index.ts b/src/api/routes/stickers/#sticker_id/index.ts index e44e29e..78befe6 100644 --- a/src/api/routes/stickers/#sticker_id/index.ts +++ b/src/api/routes/stickers/#sticker_id/index.ts @@ -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 { Sticker } from "@valkyrie/util"; import { Request, Response, Router } from "express"; diff --git a/src/api/routes/stop.ts b/src/api/routes/stop.ts index 7844122..80e8716 100644 --- a/src/api/routes/stop.ts +++ b/src/api/routes/stop.ts @@ -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"; diff --git a/src/api/routes/store/published-listings/applications.ts b/src/api/routes/store/published-listings/applications.ts index 2536fe0..2244b9e 100644 --- a/src/api/routes/store/published-listings/applications.ts +++ b/src/api/routes/store/published-listings/applications.ts @@ -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 { route } from "@valkyrie/api"; diff --git a/src/api/routes/store/published-listings/applications/#id/subscription-plans.ts b/src/api/routes/store/published-listings/applications/#id/subscription-plans.ts index 902dbdd..b2f40eb 100644 --- a/src/api/routes/store/published-listings/applications/#id/subscription-plans.ts +++ b/src/api/routes/store/published-listings/applications/#id/subscription-plans.ts @@ -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 { route } from "@valkyrie/api"; diff --git a/src/api/routes/store/published-listings/skus.ts b/src/api/routes/store/published-listings/skus.ts index 2536fe0..2244b9e 100644 --- a/src/api/routes/store/published-listings/skus.ts +++ b/src/api/routes/store/published-listings/skus.ts @@ -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 { route } from "@valkyrie/api"; diff --git a/src/api/routes/store/published-listings/skus/#sku_id/subscription-plans.ts b/src/api/routes/store/published-listings/skus/#sku_id/subscription-plans.ts index e7c284e..d4c0e21 100644 --- a/src/api/routes/store/published-listings/skus/#sku_id/subscription-plans.ts +++ b/src/api/routes/store/published-listings/skus/#sku_id/subscription-plans.ts @@ -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 { route } from "@valkyrie/api"; diff --git a/src/api/routes/teams.ts b/src/api/routes/teams.ts index e84003a..307feb9 100644 --- a/src/api/routes/teams.ts +++ b/src/api/routes/teams.ts @@ -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 { route } from "@valkyrie/api"; import { diff --git a/src/api/routes/track.ts b/src/api/routes/track.ts index b32d82a..4a9f2a1 100644 --- a/src/api/routes/track.ts +++ b/src/api/routes/track.ts @@ -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"; diff --git a/src/api/routes/updates.ts b/src/api/routes/updates.ts index 0f456d7..58a7e42 100644 --- a/src/api/routes/updates.ts +++ b/src/api/routes/updates.ts @@ -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"; diff --git a/src/api/routes/users/#id/delete.ts b/src/api/routes/users/#id/delete.ts index 757c271..cd387cc 100644 --- a/src/api/routes/users/#id/delete.ts +++ b/src/api/routes/users/#id/delete.ts @@ -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, diff --git a/src/api/routes/users/#id/index.ts b/src/api/routes/users/#id/index.ts index ff0d81b..316fa6a 100644 --- a/src/api/routes/users/#id/index.ts +++ b/src/api/routes/users/#id/index.ts @@ -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 { User } from "@valkyrie/util"; import { Request, Response, Router } from "express"; diff --git a/src/api/routes/users/#id/profile.ts b/src/api/routes/users/#id/profile.ts index c988f07..78babd4 100644 --- a/src/api/routes/users/#id/profile.ts +++ b/src/api/routes/users/#id/profile.ts @@ -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 { Badge, diff --git a/src/api/routes/users/#id/relationships.ts b/src/api/routes/users/#id/relationships.ts index 1ffcced..931d0aa 100644 --- a/src/api/routes/users/#id/relationships.ts +++ b/src/api/routes/users/#id/relationships.ts @@ -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 { User, UserRelationsResponse } from "@valkyrie/util"; import { Request, Response, Router } from "express"; diff --git a/src/api/routes/users/@me/activities/statistics/applications.ts b/src/api/routes/users/@me/activities/statistics/applications.ts index 3204cc7..6298cf9 100644 --- a/src/api/routes/users/@me/activities/statistics/applications.ts +++ b/src/api/routes/users/@me/activities/statistics/applications.ts @@ -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"; diff --git a/src/api/routes/users/@me/affinities/guilds.ts b/src/api/routes/users/@me/affinities/guilds.ts index 31e14ce..5d06407 100644 --- a/src/api/routes/users/@me/affinities/guilds.ts +++ b/src/api/routes/users/@me/affinities/guilds.ts @@ -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"; diff --git a/src/api/routes/users/@me/affinities/users.ts b/src/api/routes/users/@me/affinities/users.ts index 4659799..95820db 100644 --- a/src/api/routes/users/@me/affinities/users.ts +++ b/src/api/routes/users/@me/affinities/users.ts @@ -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"; diff --git a/src/api/routes/users/@me/applications/#app_id/entitlements.ts b/src/api/routes/users/@me/applications/#app_id/entitlements.ts index 4206868..4cbbaa8 100644 --- a/src/api/routes/users/@me/applications/#app_id/entitlements.ts +++ b/src/api/routes/users/@me/applications/#app_id/entitlements.ts @@ -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 { route } from "@valkyrie/api"; diff --git a/src/api/routes/users/@me/billing/country-code.ts b/src/api/routes/users/@me/billing/country-code.ts index f59f019..09d8bcc 100644 --- a/src/api/routes/users/@me/billing/country-code.ts +++ b/src/api/routes/users/@me/billing/country-code.ts @@ -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 { route } from "@valkyrie/api"; diff --git a/src/api/routes/users/@me/billing/payment-sources.ts b/src/api/routes/users/@me/billing/payment-sources.ts index 3204cc7..6298cf9 100644 --- a/src/api/routes/users/@me/billing/payment-sources.ts +++ b/src/api/routes/users/@me/billing/payment-sources.ts @@ -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"; diff --git a/src/api/routes/users/@me/billing/subscriptions.ts b/src/api/routes/users/@me/billing/subscriptions.ts index 4206868..4cbbaa8 100644 --- a/src/api/routes/users/@me/billing/subscriptions.ts +++ b/src/api/routes/users/@me/billing/subscriptions.ts @@ -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 { route } from "@valkyrie/api"; diff --git a/src/api/routes/users/@me/channels.ts b/src/api/routes/users/@me/channels.ts index 18c5154..d91ff99 100644 --- a/src/api/routes/users/@me/channels.ts +++ b/src/api/routes/users/@me/channels.ts @@ -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, diff --git a/src/api/routes/users/@me/connections/#connection_name/#connection_id/access-token.ts b/src/api/routes/users/@me/connections/#connection_name/#connection_id/access-token.ts index 52a4e8f..14a782b 100644 --- a/src/api/routes/users/@me/connections/#connection_name/#connection_id/access-token.ts +++ b/src/api/routes/users/@me/connections/#connection_name/#connection_id/access-token.ts @@ -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 { ApiError, diff --git a/src/api/routes/users/@me/connections/#connection_name/#connection_id/index.ts b/src/api/routes/users/@me/connections/#connection_name/#connection_id/index.ts index aacabc8..4f565ff 100644 --- a/src/api/routes/users/@me/connections/#connection_name/#connection_id/index.ts +++ b/src/api/routes/users/@me/connections/#connection_name/#connection_id/index.ts @@ -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 { ConnectedAccount, diff --git a/src/api/routes/users/@me/connections/index.ts b/src/api/routes/users/@me/connections/index.ts index c06c29f..afcadec 100644 --- a/src/api/routes/users/@me/connections/index.ts +++ b/src/api/routes/users/@me/connections/index.ts @@ -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 { route } from "@valkyrie/api"; import { ConnectedAccount, ConnectedAccountDTO } from "@valkyrie/util"; diff --git a/src/api/routes/users/@me/delete.ts b/src/api/routes/users/@me/delete.ts index 644e705..0340967 100644 --- a/src/api/routes/users/@me/delete.ts +++ b/src/api/routes/users/@me/delete.ts @@ -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, User } from "@valkyrie/util"; import bcrypt from "bcrypt"; diff --git a/src/api/routes/users/@me/devices.ts b/src/api/routes/users/@me/devices.ts index b32d82a..4a9f2a1 100644 --- a/src/api/routes/users/@me/devices.ts +++ b/src/api/routes/users/@me/devices.ts @@ -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"; diff --git a/src/api/routes/users/@me/disable.ts b/src/api/routes/users/@me/disable.ts index 1bf4c97..535c4ae 100644 --- a/src/api/routes/users/@me/disable.ts +++ b/src/api/routes/users/@me/disable.ts @@ -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 { User } from "@valkyrie/util"; import bcrypt from "bcrypt"; diff --git a/src/api/routes/users/@me/email-settings.ts b/src/api/routes/users/@me/email-settings.ts index 50c5bdd..4aea4be 100644 --- a/src/api/routes/users/@me/email-settings.ts +++ b/src/api/routes/users/@me/email-settings.ts @@ -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"; diff --git a/src/api/routes/users/@me/entitlements.ts b/src/api/routes/users/@me/entitlements.ts index a57f986..0ec3c36 100644 --- a/src/api/routes/users/@me/entitlements.ts +++ b/src/api/routes/users/@me/entitlements.ts @@ -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"; diff --git a/src/api/routes/users/@me/guilds.ts b/src/api/routes/users/@me/guilds.ts index d6925ca..6a9a2de 100644 --- a/src/api/routes/users/@me/guilds.ts +++ b/src/api/routes/users/@me/guilds.ts @@ -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, diff --git a/src/api/routes/users/@me/guilds/#guild_id/settings.ts b/src/api/routes/users/@me/guilds/#guild_id/settings.ts index 2e82d4c..4b586b5 100644 --- a/src/api/routes/users/@me/guilds/#guild_id/settings.ts +++ b/src/api/routes/users/@me/guilds/#guild_id/settings.ts @@ -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, diff --git a/src/api/routes/users/@me/guilds/premium/subscription-slots.ts b/src/api/routes/users/@me/guilds/premium/subscription-slots.ts index 3204cc7..6298cf9 100644 --- a/src/api/routes/users/@me/guilds/premium/subscription-slots.ts +++ b/src/api/routes/users/@me/guilds/premium/subscription-slots.ts @@ -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"; diff --git a/src/api/routes/users/@me/index.ts b/src/api/routes/users/@me/index.ts index 9e013d6..ddfa948 100644 --- a/src/api/routes/users/@me/index.ts +++ b/src/api/routes/users/@me/index.ts @@ -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, diff --git a/src/api/routes/users/@me/library.ts b/src/api/routes/users/@me/library.ts index c52e06b..822abe0 100644 --- a/src/api/routes/users/@me/library.ts +++ b/src/api/routes/users/@me/library.ts @@ -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"; diff --git a/src/api/routes/users/@me/mfa/codes-verification.ts b/src/api/routes/users/@me/mfa/codes-verification.ts index f8f0c0b..503e6c8 100644 --- a/src/api/routes/users/@me/mfa/codes-verification.ts +++ b/src/api/routes/users/@me/mfa/codes-verification.ts @@ -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, diff --git a/src/api/routes/users/@me/mfa/codes.ts b/src/api/routes/users/@me/mfa/codes.ts index 64dcb24..27f46f6 100644 --- a/src/api/routes/users/@me/mfa/codes.ts +++ b/src/api/routes/users/@me/mfa/codes.ts @@ -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, diff --git a/src/api/routes/users/@me/mfa/totp/disable.ts b/src/api/routes/users/@me/mfa/totp/disable.ts index 5c5edbb..25d2e8f 100644 --- a/src/api/routes/users/@me/mfa/totp/disable.ts +++ b/src/api/routes/users/@me/mfa/totp/disable.ts @@ -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, diff --git a/src/api/routes/users/@me/mfa/totp/enable.ts b/src/api/routes/users/@me/mfa/totp/enable.ts index 7bd3522..514a4c8 100644 --- a/src/api/routes/users/@me/mfa/totp/enable.ts +++ b/src/api/routes/users/@me/mfa/totp/enable.ts @@ -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 { TotpEnableSchema, diff --git a/src/api/routes/users/@me/mfa/webauthn/credentials/#key_id/index.ts b/src/api/routes/users/@me/mfa/webauthn/credentials/#key_id/index.ts index eb8e720..c690ac9 100644 --- a/src/api/routes/users/@me/mfa/webauthn/credentials/#key_id/index.ts +++ b/src/api/routes/users/@me/mfa/webauthn/credentials/#key_id/index.ts @@ -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 { SecurityKey, User } from "@valkyrie/util"; import { Request, Response, Router } from "express"; diff --git a/src/api/routes/users/@me/mfa/webauthn/credentials/index.ts b/src/api/routes/users/@me/mfa/webauthn/credentials/index.ts index 6268a3c..16e4c9c 100644 --- a/src/api/routes/users/@me/mfa/webauthn/credentials/index.ts +++ b/src/api/routes/users/@me/mfa/webauthn/credentials/index.ts @@ -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 { CreateWebAuthnCredentialSchema, diff --git a/src/api/routes/users/@me/notes.ts b/src/api/routes/users/@me/notes.ts index 09fc680..8136e05 100644 --- a/src/api/routes/users/@me/notes.ts +++ b/src/api/routes/users/@me/notes.ts @@ -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 { Note, Snowflake, User, emitEvent } from "@valkyrie/util"; import { Request, Response, Router } from "express"; diff --git a/src/api/routes/users/@me/relationships.ts b/src/api/routes/users/@me/relationships.ts index 11e961a..d37fbaa 100644 --- a/src/api/routes/users/@me/relationships.ts +++ b/src/api/routes/users/@me/relationships.ts @@ -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, diff --git a/src/api/routes/users/@me/settings.ts b/src/api/routes/users/@me/settings.ts index 60e6c2a..90a451e 100644 --- a/src/api/routes/users/@me/settings.ts +++ b/src/api/routes/users/@me/settings.ts @@ -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 { User, UserSettingsSchema } from "@valkyrie/util"; import { Request, Response, Router } from "express"; diff --git a/src/api/routes/voice/regions.ts b/src/api/routes/voice/regions.ts index 983bf6b..9d01dae 100644 --- a/src/api/routes/voice/regions.ts +++ b/src/api/routes/voice/regions.ts @@ -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 { Request, Response, Router } from "express"; diff --git a/src/api/routes/webhooks/#webhook_id/#token/index.ts b/src/api/routes/webhooks/#webhook_id/#token/index.ts index b53625a..ef283c2 100644 --- a/src/api/routes/webhooks/#webhook_id/#token/index.ts +++ b/src/api/routes/webhooks/#webhook_id/#token/index.ts @@ -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, diff --git a/src/api/routes/webhooks/#webhook_id/index.ts b/src/api/routes/webhooks/#webhook_id/index.ts index f20de64..007cdc8 100644 --- a/src/api/routes/webhooks/#webhook_id/index.ts +++ b/src/api/routes/webhooks/#webhook_id/index.ts @@ -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, diff --git a/src/api/start.ts b/src/api/start.ts index fceab3d..61f4b96 100644 --- a/src/api/start.ts +++ b/src/api/start.ts @@ -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"); process.on("uncaughtException", console.error); process.on("unhandledRejection", console.error); diff --git a/src/api/util/handlers/Instance.ts b/src/api/util/handlers/Instance.ts index 67dab0c..364738e 100644 --- a/src/api/util/handlers/Instance.ts +++ b/src/api/util/handlers/Instance.ts @@ -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 { Session } from "@valkyrie/util"; export async function initInstance() { diff --git a/src/api/util/handlers/Message.ts b/src/api/util/handlers/Message.ts index 059500a..6f8c7f9 100644 --- a/src/api/util/handlers/Message.ts +++ b/src/api/util/handlers/Message.ts @@ -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 { EmbedHandlers } from "@valkyrie/api"; import { diff --git a/src/api/util/handlers/Voice.ts b/src/api/util/handlers/Voice.ts index ebc9982..9999aeb 100644 --- a/src/api/util/handlers/Voice.ts +++ b/src/api/util/handlers/Voice.ts @@ -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 } from "@valkyrie/util"; import { distanceBetweenLocations, IPAnalysis } from "../utility/ipAddress"; diff --git a/src/api/util/handlers/route.ts b/src/api/util/handlers/route.ts index 9c36a9c..5e65342 100644 --- a/src/api/util/handlers/route.ts +++ b/src/api/util/handlers/route.ts @@ -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 { DiscordApiErrors, EVENT, diff --git a/src/api/util/index.ts b/src/api/util/index.ts index 5921f01..2139857 100644 --- a/src/api/util/index.ts +++ b/src/api/util/index.ts @@ -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 "./utility/Base64"; export * from "./utility/ipAddress"; export * from "./handlers/Message"; diff --git a/src/api/util/utility/Base64.ts b/src/api/util/utility/Base64.ts index c10176f..5ece140 100644 --- a/src/api/util/utility/Base64.ts +++ b/src/api/util/utility/Base64.ts @@ -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 alphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+"; diff --git a/src/api/util/utility/EmbedHandlers.ts b/src/api/util/utility/EmbedHandlers.ts index d04258a..a87945a 100644 --- a/src/api/util/utility/EmbedHandlers.ts +++ b/src/api/util/utility/EmbedHandlers.ts @@ -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, Embed, EmbedImage, EmbedType } from "@valkyrie/util"; import * as cheerio from "cheerio"; import crypto from "crypto"; diff --git a/src/api/util/utility/RandomInviteID.ts b/src/api/util/utility/RandomInviteID.ts index 988d510..57c2e68 100644 --- a/src/api/util/utility/RandomInviteID.ts +++ b/src/api/util/utility/RandomInviteID.ts @@ -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 { Snowflake } from "@valkyrie/util"; import crypto from "crypto"; diff --git a/src/api/util/utility/String.ts b/src/api/util/utility/String.ts index 95ebcd7..68557e1 100644 --- a/src/api/util/utility/String.ts +++ b/src/api/util/utility/String.ts @@ -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 } from "express"; import { ntob } from "./Base64"; import { FieldErrors } from "@valkyrie/util"; diff --git a/src/api/util/utility/captcha.ts b/src/api/util/utility/captcha.ts index 07aaca9..7f76f88 100644 --- a/src/api/util/utility/captcha.ts +++ b/src/api/util/utility/captcha.ts @@ -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 } from "@valkyrie/util"; import fetch from "node-fetch"; diff --git a/src/api/util/utility/ipAddress.ts b/src/api/util/utility/ipAddress.ts index 2aaaaa8..6f80e2b 100644 --- a/src/api/util/utility/ipAddress.ts +++ b/src/api/util/utility/ipAddress.ts @@ -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 } from "@valkyrie/util"; import { Request } from "express"; // use ipdata package instead of simple fetch because of integrated caching diff --git a/src/api/util/utility/passwordStrength.ts b/src/api/util/utility/passwordStrength.ts index 9b11634..ded282d 100644 --- a/src/api/util/utility/passwordStrength.ts +++ b/src/api/util/utility/passwordStrength.ts @@ -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 } from "@valkyrie/util"; import "missing-native-js-functions"; diff --git a/src/bundle/Server.ts b/src/bundle/Server.ts index f796c4a..4cd4181 100644 --- a/src/bundle/Server.ts +++ b/src/bundle/Server.ts @@ -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. +*/ + process.on("unhandledRejection", console.error); process.on("uncaughtException", console.error); diff --git a/src/bundle/index.ts b/src/bundle/index.ts index 9363f8f..876f24c 100644 --- a/src/bundle/index.ts +++ b/src/bundle/index.ts @@ -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 "@valkyrie/api"; export * from "@valkyrie/util"; export * from "@valkyrie/gateway"; diff --git a/src/bundle/start.ts b/src/bundle/start.ts index ca218ed..d33f09c 100644 --- a/src/bundle/start.ts +++ b/src/bundle/start.ts @@ -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. +*/ + // process.env.MONGOMS_DEBUG = "true"; require("module-alias/register"); import "reflect-metadata"; diff --git a/src/bundle/stats.ts b/src/bundle/stats.ts index a4daecc..8026b55 100644 --- a/src/bundle/stats.ts +++ b/src/bundle/stats.ts @@ -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 os from "os"; import osu from "node-os-utils"; import { red } from "picocolors"; diff --git a/src/cdn/Server.ts b/src/cdn/Server.ts index 0ae4968..24116c6 100644 --- a/src/cdn/Server.ts +++ b/src/cdn/Server.ts @@ -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 { Server, ServerOptions } from "lambert-server"; import { Config, initDatabase, registerRoutes, Sentry } from "@valkyrie/util"; import path from "path"; diff --git a/src/cdn/index.ts b/src/cdn/index.ts index a24300d..cb8e7eb 100644 --- a/src/cdn/index.ts +++ b/src/cdn/index.ts @@ -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 "./util/FileStorage"; export * from "./util/Storage"; diff --git a/src/cdn/routes/attachments.ts b/src/cdn/routes/attachments.ts index b85e307..64a31e4 100644 --- a/src/cdn/routes/attachments.ts +++ b/src/cdn/routes/attachments.ts @@ -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 { Config, Snowflake } from "@valkyrie/util"; import { storage } from "../util/Storage"; diff --git a/src/cdn/routes/avatars.ts b/src/cdn/routes/avatars.ts index a942639..91546d5 100644 --- a/src/cdn/routes/avatars.ts +++ b/src/cdn/routes/avatars.ts @@ -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 { Config, Snowflake } from "@valkyrie/util"; import { storage } from "../util/Storage"; diff --git a/src/cdn/routes/badge-icons.ts b/src/cdn/routes/badge-icons.ts index 0ddf220..a9c4b15 100644 --- a/src/cdn/routes/badge-icons.ts +++ b/src/cdn/routes/badge-icons.ts @@ -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 { storage } from "../util/Storage"; import FileType from "file-type"; diff --git a/src/cdn/routes/embed.ts b/src/cdn/routes/embed.ts index 9bbea27..9ac94c5 100644 --- a/src/cdn/routes/embed.ts +++ b/src/cdn/routes/embed.ts @@ -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 FileType from "file-type"; import fs from "fs/promises"; diff --git a/src/cdn/routes/guild-profiles.ts b/src/cdn/routes/guild-profiles.ts index 996fb37..98923a0 100644 --- a/src/cdn/routes/guild-profiles.ts +++ b/src/cdn/routes/guild-profiles.ts @@ -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, Snowflake } from "@valkyrie/util"; import crypto from "crypto"; import { Request, Response, Router } from "express"; diff --git a/src/cdn/routes/ping.ts b/src/cdn/routes/ping.ts index 38daf81..8dc7197 100644 --- a/src/cdn/routes/ping.ts +++ b/src/cdn/routes/ping.ts @@ -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"; const router = Router(); diff --git a/src/cdn/routes/role-icons.ts b/src/cdn/routes/role-icons.ts index 9bea5ff..fb79ebb 100644 --- a/src/cdn/routes/role-icons.ts +++ b/src/cdn/routes/role-icons.ts @@ -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 { Config, Snowflake } from "@valkyrie/util"; import { storage } from "../util/Storage"; diff --git a/src/cdn/util/FileStorage.ts b/src/cdn/util/FileStorage.ts index 751d1e7..a603fe0 100644 --- a/src/cdn/util/FileStorage.ts +++ b/src/cdn/util/FileStorage.ts @@ -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 { Storage } from "./Storage"; import fs from "fs"; import { join, dirname } from "path"; diff --git a/src/cdn/util/S3Storage.ts b/src/cdn/util/S3Storage.ts index 33c1126..ce1a61c 100644 --- a/src/cdn/util/S3Storage.ts +++ b/src/cdn/util/S3Storage.ts @@ -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 { S3 } from "@aws-sdk/client-s3"; import { Readable } from "stream"; import { Storage } from "./Storage"; diff --git a/src/cdn/util/Storage.ts b/src/cdn/util/Storage.ts index 5273922..c707b0a 100644 --- a/src/cdn/util/Storage.ts +++ b/src/cdn/util/Storage.ts @@ -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 { FileStorage } from "./FileStorage"; import path from "path"; import fs from "fs"; diff --git a/src/cdn/util/index.ts b/src/cdn/util/index.ts index 07a5c31..04c7814 100644 --- a/src/cdn/util/index.ts +++ b/src/cdn/util/index.ts @@ -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 "./FileStorage"; export * from "./multer"; export * from "./Storage"; diff --git a/src/cdn/util/multer.ts b/src/cdn/util/multer.ts index 94d624e..26fa011 100644 --- a/src/cdn/util/multer.ts +++ b/src/cdn/util/multer.ts @@ -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 multerConfig from "multer"; export const multer = multerConfig({ diff --git a/src/connections/BattleNet/BattleNetSettings.ts b/src/connections/BattleNet/BattleNetSettings.ts index 75e5c3a..930e328 100644 --- a/src/connections/BattleNet/BattleNetSettings.ts +++ b/src/connections/BattleNet/BattleNetSettings.ts @@ -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 class BattleNetSettings { enabled: boolean = false; clientId: string | null = null; diff --git a/src/connections/BattleNet/index.ts b/src/connections/BattleNet/index.ts index 5e91c4d..0984604 100644 --- a/src/connections/BattleNet/index.ts +++ b/src/connections/BattleNet/index.ts @@ -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 { ConnectedAccount, ConnectedAccountCommonOAuthTokenResponse, diff --git a/src/connections/Discord/DiscordSettings.ts b/src/connections/Discord/DiscordSettings.ts index 3751b04..daa4fca 100644 --- a/src/connections/Discord/DiscordSettings.ts +++ b/src/connections/Discord/DiscordSettings.ts @@ -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 class DiscordSettings { enabled: boolean = false; clientId: string | null = null; diff --git a/src/connections/Discord/index.ts b/src/connections/Discord/index.ts index 172b717..707073f 100644 --- a/src/connections/Discord/index.ts +++ b/src/connections/Discord/index.ts @@ -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 { ConnectedAccount, ConnectedAccountCommonOAuthTokenResponse, diff --git a/src/connections/EpicGames/EpicGamesSettings.ts b/src/connections/EpicGames/EpicGamesSettings.ts index 4820a88..a165534 100644 --- a/src/connections/EpicGames/EpicGamesSettings.ts +++ b/src/connections/EpicGames/EpicGamesSettings.ts @@ -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 class EpicGamesSettings { enabled: boolean = false; clientId: string | null = null; diff --git a/src/connections/EpicGames/index.ts b/src/connections/EpicGames/index.ts index ce8978e..ee05577 100644 --- a/src/connections/EpicGames/index.ts +++ b/src/connections/EpicGames/index.ts @@ -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 { ConnectedAccount, ConnectedAccountCommonOAuthTokenResponse, diff --git a/src/connections/Facebook/FacebookSettings.ts b/src/connections/Facebook/FacebookSettings.ts index cc3e340..19c555f 100644 --- a/src/connections/Facebook/FacebookSettings.ts +++ b/src/connections/Facebook/FacebookSettings.ts @@ -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 class FacebookSettings { enabled: boolean = false; clientId: string | null = null; diff --git a/src/connections/Facebook/index.ts b/src/connections/Facebook/index.ts index 6ee1ddc..21b34ec 100644 --- a/src/connections/Facebook/index.ts +++ b/src/connections/Facebook/index.ts @@ -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 { ConnectedAccount, ConnectedAccountCommonOAuthTokenResponse, diff --git a/src/connections/GitHub/GitHubSettings.ts b/src/connections/GitHub/GitHubSettings.ts index 1b4070d..7e108f1 100644 --- a/src/connections/GitHub/GitHubSettings.ts +++ b/src/connections/GitHub/GitHubSettings.ts @@ -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 class GitHubSettings { enabled: boolean = false; clientId: string | null = null; diff --git a/src/connections/GitHub/index.ts b/src/connections/GitHub/index.ts index b9bf00c..891dada 100644 --- a/src/connections/GitHub/index.ts +++ b/src/connections/GitHub/index.ts @@ -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 { ConnectedAccount, ConnectedAccountCommonOAuthTokenResponse, diff --git a/src/connections/Reddit/RedditSettings.ts b/src/connections/Reddit/RedditSettings.ts index 13208fb..580dcd6 100644 --- a/src/connections/Reddit/RedditSettings.ts +++ b/src/connections/Reddit/RedditSettings.ts @@ -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 class RedditSettings { enabled: boolean = false; clientId: string | null = null; diff --git a/src/connections/Reddit/index.ts b/src/connections/Reddit/index.ts index 6e4275a..65f396f 100644 --- a/src/connections/Reddit/index.ts +++ b/src/connections/Reddit/index.ts @@ -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 { ConnectedAccount, ConnectedAccountCommonOAuthTokenResponse, diff --git a/src/connections/Spotify/SpotifySettings.ts b/src/connections/Spotify/SpotifySettings.ts index e73c030..cd5da0f 100644 --- a/src/connections/Spotify/SpotifySettings.ts +++ b/src/connections/Spotify/SpotifySettings.ts @@ -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 class SpotifySettings { enabled: boolean = false; clientId: string | null = null; diff --git a/src/connections/Spotify/index.ts b/src/connections/Spotify/index.ts index 68ffe56..18b7560 100644 --- a/src/connections/Spotify/index.ts +++ b/src/connections/Spotify/index.ts @@ -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 { ConnectedAccount, ConnectedAccountCommonOAuthTokenResponse, diff --git a/src/connections/Twitch/TwitchSettings.ts b/src/connections/Twitch/TwitchSettings.ts index eb732c8..4ddb25f 100644 --- a/src/connections/Twitch/TwitchSettings.ts +++ b/src/connections/Twitch/TwitchSettings.ts @@ -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 class TwitchSettings { enabled: boolean = false; clientId: string | null = null; diff --git a/src/connections/Twitch/index.ts b/src/connections/Twitch/index.ts index 5ce0854..058f54d 100644 --- a/src/connections/Twitch/index.ts +++ b/src/connections/Twitch/index.ts @@ -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 { ConnectedAccount, ConnectedAccountCommonOAuthTokenResponse, diff --git a/src/connections/Twitter/TwitterSettings.ts b/src/connections/Twitter/TwitterSettings.ts index e4aa58e..f6e4af1 100644 --- a/src/connections/Twitter/TwitterSettings.ts +++ b/src/connections/Twitter/TwitterSettings.ts @@ -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 class TwitterSettings { enabled: boolean = false; clientId: string | null = null; diff --git a/src/connections/Twitter/index.ts b/src/connections/Twitter/index.ts index a6a95a8..41406a7 100644 --- a/src/connections/Twitter/index.ts +++ b/src/connections/Twitter/index.ts @@ -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 { ConnectedAccount, ConnectedAccountCommonOAuthTokenResponse, diff --git a/src/connections/Xbox/XboxSettings.ts b/src/connections/Xbox/XboxSettings.ts index c1a4105..b54f1c0 100644 --- a/src/connections/Xbox/XboxSettings.ts +++ b/src/connections/Xbox/XboxSettings.ts @@ -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 class XboxSettings { enabled: boolean = false; clientId: string | null = null; diff --git a/src/connections/Xbox/index.ts b/src/connections/Xbox/index.ts index 421501e..ae12c40 100644 --- a/src/connections/Xbox/index.ts +++ b/src/connections/Xbox/index.ts @@ -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 { ConnectedAccount, ConnectedAccountCommonOAuthTokenResponse, diff --git a/src/connections/Youtube/YoutubeSettings.ts b/src/connections/Youtube/YoutubeSettings.ts index 5d11fa4..e97204d 100644 --- a/src/connections/Youtube/YoutubeSettings.ts +++ b/src/connections/Youtube/YoutubeSettings.ts @@ -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 class YoutubeSettings { enabled: boolean = false; clientId: string | null = null; diff --git a/src/connections/Youtube/index.ts b/src/connections/Youtube/index.ts index 035ca75..836098e 100644 --- a/src/connections/Youtube/index.ts +++ b/src/connections/Youtube/index.ts @@ -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 { ConnectedAccount, ConnectedAccountCommonOAuthTokenResponse, diff --git a/src/gateway/Server.ts b/src/gateway/Server.ts index 19aac59..63a8dd7 100644 --- a/src/gateway/Server.ts +++ b/src/gateway/Server.ts @@ -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 "missing-native-js-functions"; import dotenv from "dotenv"; dotenv.config(); diff --git a/src/gateway/events/Close.ts b/src/gateway/events/Close.ts index f58ebbc..e6cb28d 100644 --- a/src/gateway/events/Close.ts +++ b/src/gateway/events/Close.ts @@ -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 { WebSocket } from "@valkyrie/gateway"; import { emitEvent, diff --git a/src/gateway/events/Connection.ts b/src/gateway/events/Connection.ts index d6eba62..a467193 100644 --- a/src/gateway/events/Connection.ts +++ b/src/gateway/events/Connection.ts @@ -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 WS from "ws"; import { genSessionId, WebSocket } from "@valkyrie/gateway"; diff --git a/src/gateway/events/Message.ts b/src/gateway/events/Message.ts index ae8ca4f..07059b0 100644 --- a/src/gateway/events/Message.ts +++ b/src/gateway/events/Message.ts @@ -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 { CLOSECODES, OPCODES, Payload, WebSocket } from "@valkyrie/gateway"; import { ErlpackType, PayloadSchema } from "@valkyrie/util"; diff --git a/src/gateway/index.ts b/src/gateway/index.ts index d77ce93..599ce75 100644 --- a/src/gateway/index.ts +++ b/src/gateway/index.ts @@ -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 "./util/"; export * from "./opcodes/"; diff --git a/src/gateway/listener/listener.ts b/src/gateway/listener/listener.ts index 5b651a3..c3f35da 100644 --- a/src/gateway/listener/listener.ts +++ b/src/gateway/listener/listener.ts @@ -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 { getPermission, Permissions, diff --git a/src/gateway/opcodes/Heartbeat.ts b/src/gateway/opcodes/Heartbeat.ts index 6d5d017..5f451a6 100644 --- a/src/gateway/opcodes/Heartbeat.ts +++ b/src/gateway/opcodes/Heartbeat.ts @@ -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 { WebSocket } from "@valkyrie/gateway"; import { setHeartbeat } from "../util/Heartbeat"; import { Send } from "../util/Send"; diff --git a/src/gateway/opcodes/Identify.ts b/src/gateway/opcodes/Identify.ts index e2cb17f..a222302 100644 --- a/src/gateway/opcodes/Identify.ts +++ b/src/gateway/opcodes/Identify.ts @@ -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 { CLOSECODES, Capabilities, diff --git a/src/gateway/opcodes/LazyRequest.ts b/src/gateway/opcodes/LazyRequest.ts index 3c16b0b..e2cbc68 100644 --- a/src/gateway/opcodes/LazyRequest.ts +++ b/src/gateway/opcodes/LazyRequest.ts @@ -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 { getDatabase, getPermission, diff --git a/src/gateway/opcodes/PresenceUpdate.ts b/src/gateway/opcodes/PresenceUpdate.ts index 69c796b..4137e0c 100644 --- a/src/gateway/opcodes/PresenceUpdate.ts +++ b/src/gateway/opcodes/PresenceUpdate.ts @@ -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 { WebSocket, Payload } from "@valkyrie/gateway"; import { emitEvent, diff --git a/src/gateway/opcodes/RequestGuildMembers.ts b/src/gateway/opcodes/RequestGuildMembers.ts index d2cec04..8b52518 100644 --- a/src/gateway/opcodes/RequestGuildMembers.ts +++ b/src/gateway/opcodes/RequestGuildMembers.ts @@ -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 { getDatabase, getPermission, diff --git a/src/gateway/opcodes/Resume.ts b/src/gateway/opcodes/Resume.ts index ed8001f..5222e26 100644 --- a/src/gateway/opcodes/Resume.ts +++ b/src/gateway/opcodes/Resume.ts @@ -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 { WebSocket } from "@valkyrie/gateway"; import { Send } from "../util/Send"; diff --git a/src/gateway/opcodes/VoiceStateUpdate.ts b/src/gateway/opcodes/VoiceStateUpdate.ts index 2bdd800..301a02d 100644 --- a/src/gateway/opcodes/VoiceStateUpdate.ts +++ b/src/gateway/opcodes/VoiceStateUpdate.ts @@ -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 { Payload, WebSocket } from "@valkyrie/gateway"; import { genVoiceToken } from "../util/SessionUtils"; import { check } from "./instanceOf"; diff --git a/src/gateway/opcodes/index.ts b/src/gateway/opcodes/index.ts index f291c3a..aaca27d 100644 --- a/src/gateway/opcodes/index.ts +++ b/src/gateway/opcodes/index.ts @@ -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 { WebSocket, Payload } from "@valkyrie/gateway"; import { onHeartbeat } from "./Heartbeat"; import { onIdentify } from "./Identify"; diff --git a/src/gateway/opcodes/instanceOf.ts b/src/gateway/opcodes/instanceOf.ts index d17fdf1..cd500da 100644 --- a/src/gateway/opcodes/instanceOf.ts +++ b/src/gateway/opcodes/instanceOf.ts @@ -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 { instanceOf } from "lambert-server"; import { WebSocket } from "@valkyrie/gateway"; import { CLOSECODES } from "../util/Constants"; diff --git a/src/gateway/start.ts b/src/gateway/start.ts index 70c9f1a..36e5e73 100644 --- a/src/gateway/start.ts +++ b/src/gateway/start.ts @@ -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"); process.on("uncaughtException", console.error); process.on("unhandledRejection", console.error); diff --git a/src/gateway/util/Capabilities.ts b/src/gateway/util/Capabilities.ts index 908e9e7..2989461 100644 --- a/src/gateway/util/Capabilities.ts +++ b/src/gateway/util/Capabilities.ts @@ -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 { BitField, BitFieldResolvable, BitFlag } from "@valkyrie/util"; export type CapabilityResolvable = BitFieldResolvable | CapabilityString; diff --git a/src/gateway/util/Constants.ts b/src/gateway/util/Constants.ts index 060d243..c42a04e 100644 --- a/src/gateway/util/Constants.ts +++ b/src/gateway/util/Constants.ts @@ -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 { VoiceOPCodes } from "@valkyrie/webrtc"; export enum OPCODES { diff --git a/src/gateway/util/Heartbeat.ts b/src/gateway/util/Heartbeat.ts index f6871cf..ec8923f 100644 --- a/src/gateway/util/Heartbeat.ts +++ b/src/gateway/util/Heartbeat.ts @@ -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 { CLOSECODES } from "./Constants"; import { WebSocket } from "./WebSocket"; diff --git a/src/gateway/util/Send.ts b/src/gateway/util/Send.ts index f3a67fc..10530ea 100644 --- a/src/gateway/util/Send.ts +++ b/src/gateway/util/Send.ts @@ -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 { Payload, WebSocket } from "@valkyrie/gateway"; import fs from "fs/promises"; import path from "path"; diff --git a/src/gateway/util/SessionUtils.ts b/src/gateway/util/SessionUtils.ts index bf85404..b253cb3 100644 --- a/src/gateway/util/SessionUtils.ts +++ b/src/gateway/util/SessionUtils.ts @@ -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 function genSessionId() { return genRanHex(32); } diff --git a/src/gateway/util/WebSocket.ts b/src/gateway/util/WebSocket.ts index 918e120..31a3f9c 100644 --- a/src/gateway/util/WebSocket.ts +++ b/src/gateway/util/WebSocket.ts @@ -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 { Intents, ListenEventOpts, Permissions } from "@valkyrie/util"; import WS from "ws"; import { Deflate, Inflate } from "fast-zlib"; diff --git a/src/gateway/util/index.ts b/src/gateway/util/index.ts index 6f5be59..2d28a07 100644 --- a/src/gateway/util/index.ts +++ b/src/gateway/util/index.ts @@ -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 "./Constants"; export * from "./Send"; export * from "./SessionUtils"; diff --git a/src/util/config/Config.ts b/src/util/config/Config.ts index 6747d64..0c1f566 100644 --- a/src/util/config/Config.ts +++ b/src/util/config/Config.ts @@ -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 { ApiConfiguration, CdnConfiguration, diff --git a/src/util/config/index.ts b/src/util/config/index.ts index adb6984..f49f62f 100644 --- a/src/util/config/index.ts +++ b/src/util/config/index.ts @@ -1,2 +1,19 @@ +/* + 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 "./Config"; export * from "./types"; diff --git a/src/util/config/types/ApiConfiguration.ts b/src/util/config/types/ApiConfiguration.ts index c2c8466..c4d929f 100644 --- a/src/util/config/types/ApiConfiguration.ts +++ b/src/util/config/types/ApiConfiguration.ts @@ -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 class ApiConfiguration { defaultVersion: string = "9"; activeVersions: string[] = ["6", "7", "8", "9"]; diff --git a/src/util/config/types/CdnConfiguration.ts b/src/util/config/types/CdnConfiguration.ts index 3849709..1691706 100644 --- a/src/util/config/types/CdnConfiguration.ts +++ b/src/util/config/types/CdnConfiguration.ts @@ -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 { EndpointConfiguration } from "./EndpointConfiguration"; export class CdnConfiguration extends EndpointConfiguration { diff --git a/src/util/config/types/DefaultsConfiguration.ts b/src/util/config/types/DefaultsConfiguration.ts index d5ee39e..44550d3 100644 --- a/src/util/config/types/DefaultsConfiguration.ts +++ b/src/util/config/types/DefaultsConfiguration.ts @@ -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 { GuildDefaults, UserDefaults } from "."; export class DefaultsConfiguration { diff --git a/src/util/config/types/EmailConfiguration.ts b/src/util/config/types/EmailConfiguration.ts index 81a25d7..8c6a400 100644 --- a/src/util/config/types/EmailConfiguration.ts +++ b/src/util/config/types/EmailConfiguration.ts @@ -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 { MailGunConfiguration, MailJetConfiguration, diff --git a/src/util/config/types/EndpointConfiguration.ts b/src/util/config/types/EndpointConfiguration.ts index 5e5e8ca..4149438 100644 --- a/src/util/config/types/EndpointConfiguration.ts +++ b/src/util/config/types/EndpointConfiguration.ts @@ -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 class EndpointConfiguration { endpointClient: string | null = null; endpointPrivate: string | null = null; diff --git a/src/util/config/types/ExternalTokensConfiguration.ts b/src/util/config/types/ExternalTokensConfiguration.ts index 22c8b86..0fcb8f9 100644 --- a/src/util/config/types/ExternalTokensConfiguration.ts +++ b/src/util/config/types/ExternalTokensConfiguration.ts @@ -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 class ExternalTokensConfiguration { twitter: string | null = null; } diff --git a/src/util/config/types/GeneralConfiguration.ts b/src/util/config/types/GeneralConfiguration.ts index d66c302..fed46fd 100644 --- a/src/util/config/types/GeneralConfiguration.ts +++ b/src/util/config/types/GeneralConfiguration.ts @@ -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 { Snowflake } from "@valkyrie/util"; export class GeneralConfiguration { diff --git a/src/util/config/types/GifConfiguration.ts b/src/util/config/types/GifConfiguration.ts index 8521352..8d2f985 100644 --- a/src/util/config/types/GifConfiguration.ts +++ b/src/util/config/types/GifConfiguration.ts @@ -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 class GifConfiguration { enabled: boolean = true; provider = "tenor" as const; // more coming soon diff --git a/src/util/config/types/GuildConfiguration.ts b/src/util/config/types/GuildConfiguration.ts index 42ce204..d7a2740 100644 --- a/src/util/config/types/GuildConfiguration.ts +++ b/src/util/config/types/GuildConfiguration.ts @@ -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 { DiscoveryConfiguration, AutoJoinConfiguration } from "."; export class GuildConfiguration { diff --git a/src/util/config/types/KafkaConfiguration.ts b/src/util/config/types/KafkaConfiguration.ts index a3aa805..49ab98a 100644 --- a/src/util/config/types/KafkaConfiguration.ts +++ b/src/util/config/types/KafkaConfiguration.ts @@ -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 { KafkaBroker } from "."; export class KafkaConfiguration { diff --git a/src/util/config/types/LimitConfigurations.ts b/src/util/config/types/LimitConfigurations.ts index 912d6a4..11a37a2 100644 --- a/src/util/config/types/LimitConfigurations.ts +++ b/src/util/config/types/LimitConfigurations.ts @@ -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 { ChannelLimits, GlobalRateLimits, diff --git a/src/util/config/types/LoginConfiguration.ts b/src/util/config/types/LoginConfiguration.ts index 83f0b29..a17ce21 100644 --- a/src/util/config/types/LoginConfiguration.ts +++ b/src/util/config/types/LoginConfiguration.ts @@ -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 class LoginConfiguration { requireCaptcha: boolean = false; requireVerification: boolean = false; diff --git a/src/util/config/types/MetricsConfiguration.ts b/src/util/config/types/MetricsConfiguration.ts index f6b1d8e..4fc208c 100644 --- a/src/util/config/types/MetricsConfiguration.ts +++ b/src/util/config/types/MetricsConfiguration.ts @@ -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 class MetricsConfiguration { timeout: number = 30000; } diff --git a/src/util/config/types/PasswordResetConfiguration.ts b/src/util/config/types/PasswordResetConfiguration.ts index 7715f98..24e10df 100644 --- a/src/util/config/types/PasswordResetConfiguration.ts +++ b/src/util/config/types/PasswordResetConfiguration.ts @@ -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 class PasswordResetConfiguration { requireCaptcha: boolean = false; } diff --git a/src/util/config/types/RabbitMQConfiguration.ts b/src/util/config/types/RabbitMQConfiguration.ts index bd4b6ca..31c9192 100644 --- a/src/util/config/types/RabbitMQConfiguration.ts +++ b/src/util/config/types/RabbitMQConfiguration.ts @@ -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 class RabbitMQConfiguration { host: string | null = null; } diff --git a/src/util/config/types/RegionConfiguration.ts b/src/util/config/types/RegionConfiguration.ts index f058cf0..4e06891 100644 --- a/src/util/config/types/RegionConfiguration.ts +++ b/src/util/config/types/RegionConfiguration.ts @@ -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 { Region } from "."; export class RegionConfiguration { diff --git a/src/util/config/types/RegisterConfiguration.ts b/src/util/config/types/RegisterConfiguration.ts index 19186d6..c4b3392 100644 --- a/src/util/config/types/RegisterConfiguration.ts +++ b/src/util/config/types/RegisterConfiguration.ts @@ -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 { DateOfBirthConfiguration, PasswordConfiguration, diff --git a/src/util/config/types/SecurityConfiguration.ts b/src/util/config/types/SecurityConfiguration.ts index bd362be..5d51701 100644 --- a/src/util/config/types/SecurityConfiguration.ts +++ b/src/util/config/types/SecurityConfiguration.ts @@ -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 crypto from "crypto"; import { CaptchaConfiguration, TwoFactorConfiguration } from "."; diff --git a/src/util/config/types/SentryConfiguration.ts b/src/util/config/types/SentryConfiguration.ts index 08ff87c..be545a2 100644 --- a/src/util/config/types/SentryConfiguration.ts +++ b/src/util/config/types/SentryConfiguration.ts @@ -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 { hostname } from "os"; export class SentryConfiguration { diff --git a/src/util/config/types/TemplateConfiguration.ts b/src/util/config/types/TemplateConfiguration.ts index aade293..00902a4 100644 --- a/src/util/config/types/TemplateConfiguration.ts +++ b/src/util/config/types/TemplateConfiguration.ts @@ -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 class TemplateConfiguration { enabled: boolean = true; allowTemplateCreation: boolean = true; diff --git a/src/util/config/types/index.ts b/src/util/config/types/index.ts index 52a7af4..2286369 100644 --- a/src/util/config/types/index.ts +++ b/src/util/config/types/index.ts @@ -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 "./ApiConfiguration"; export * from "./CdnConfiguration"; export * from "./DefaultsConfiguration"; diff --git a/src/util/config/types/subconfigurations/client/ClientReleaseConfiguration.ts b/src/util/config/types/subconfigurations/client/ClientReleaseConfiguration.ts index b082b71..18fbfe2 100644 --- a/src/util/config/types/subconfigurations/client/ClientReleaseConfiguration.ts +++ b/src/util/config/types/subconfigurations/client/ClientReleaseConfiguration.ts @@ -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 class ClientReleaseConfiguration { useLocalRelease: boolean = true; //TODO upstreamVersion: string = "0.0.264"; diff --git a/src/util/config/types/subconfigurations/client/index.ts b/src/util/config/types/subconfigurations/client/index.ts index 96bbb0c..b7e85ad 100644 --- a/src/util/config/types/subconfigurations/client/index.ts +++ b/src/util/config/types/subconfigurations/client/index.ts @@ -1 +1,18 @@ +/* + 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 "./ClientReleaseConfiguration"; diff --git a/src/util/config/types/subconfigurations/defaults/GuildDefaults.ts b/src/util/config/types/subconfigurations/defaults/GuildDefaults.ts index 576cc3b..7c4e364 100644 --- a/src/util/config/types/subconfigurations/defaults/GuildDefaults.ts +++ b/src/util/config/types/subconfigurations/defaults/GuildDefaults.ts @@ -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 class GuildDefaults { maxPresences: number = 250000; maxVideoChannelUsers: number = 200; diff --git a/src/util/config/types/subconfigurations/defaults/UserDefaults.ts b/src/util/config/types/subconfigurations/defaults/UserDefaults.ts index 2c2f004..0c8c34e 100644 --- a/src/util/config/types/subconfigurations/defaults/UserDefaults.ts +++ b/src/util/config/types/subconfigurations/defaults/UserDefaults.ts @@ -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 class UserDefaults { premium: boolean = true; premiumType: number = 2; diff --git a/src/util/config/types/subconfigurations/defaults/index.ts b/src/util/config/types/subconfigurations/defaults/index.ts index 50258d1..b1b7816 100644 --- a/src/util/config/types/subconfigurations/defaults/index.ts +++ b/src/util/config/types/subconfigurations/defaults/index.ts @@ -1,2 +1,19 @@ +/* + 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 "./GuildDefaults"; export * from "./UserDefaults"; diff --git a/src/util/config/types/subconfigurations/email/MailGun.ts b/src/util/config/types/subconfigurations/email/MailGun.ts index ffe9dca..4b03c0e 100644 --- a/src/util/config/types/subconfigurations/email/MailGun.ts +++ b/src/util/config/types/subconfigurations/email/MailGun.ts @@ -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 class MailGunConfiguration { apiKey: string | null = null; domain: string | null = null; diff --git a/src/util/config/types/subconfigurations/email/MailJet.ts b/src/util/config/types/subconfigurations/email/MailJet.ts index 3936f62..303a4b8 100644 --- a/src/util/config/types/subconfigurations/email/MailJet.ts +++ b/src/util/config/types/subconfigurations/email/MailJet.ts @@ -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 class MailJetConfiguration { apiKey: string | null = null; apiSecret: string | null = null; diff --git a/src/util/config/types/subconfigurations/email/SMTP.ts b/src/util/config/types/subconfigurations/email/SMTP.ts index e833376..7fc0ba7 100644 --- a/src/util/config/types/subconfigurations/email/SMTP.ts +++ b/src/util/config/types/subconfigurations/email/SMTP.ts @@ -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 class SMTPConfiguration { host: string | null = null; port: number | null = null; diff --git a/src/util/config/types/subconfigurations/email/SendGrid.ts b/src/util/config/types/subconfigurations/email/SendGrid.ts index 59d50ed..4a313f7 100644 --- a/src/util/config/types/subconfigurations/email/SendGrid.ts +++ b/src/util/config/types/subconfigurations/email/SendGrid.ts @@ -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 class SendGridConfiguration { apiKey: string | null = null; } diff --git a/src/util/config/types/subconfigurations/email/index.ts b/src/util/config/types/subconfigurations/email/index.ts index 291557b..0375c5e 100644 --- a/src/util/config/types/subconfigurations/email/index.ts +++ b/src/util/config/types/subconfigurations/email/index.ts @@ -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 "./MailGun"; export * from "./MailJet"; export * from "./SMTP"; diff --git a/src/util/config/types/subconfigurations/guild/AutoJoin.ts b/src/util/config/types/subconfigurations/guild/AutoJoin.ts index 4d7af35..bad8bf5 100644 --- a/src/util/config/types/subconfigurations/guild/AutoJoin.ts +++ b/src/util/config/types/subconfigurations/guild/AutoJoin.ts @@ -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 class AutoJoinConfiguration { enabled: boolean = true; guilds: string[] = []; diff --git a/src/util/config/types/subconfigurations/guild/Discovery.ts b/src/util/config/types/subconfigurations/guild/Discovery.ts index a7cb81d..643dbf7 100644 --- a/src/util/config/types/subconfigurations/guild/Discovery.ts +++ b/src/util/config/types/subconfigurations/guild/Discovery.ts @@ -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 class DiscoveryConfiguration { showAllGuilds: boolean = false; useRecommendation: boolean = false; // TODO: Recommendation, privacy concern? diff --git a/src/util/config/types/subconfigurations/guild/index.ts b/src/util/config/types/subconfigurations/guild/index.ts index e961485..8653c2c 100644 --- a/src/util/config/types/subconfigurations/guild/index.ts +++ b/src/util/config/types/subconfigurations/guild/index.ts @@ -1,2 +1,19 @@ +/* + 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 "./AutoJoin"; export * from "./Discovery"; diff --git a/src/util/config/types/subconfigurations/index.ts b/src/util/config/types/subconfigurations/index.ts index 5bd6091..d5ed05d 100644 --- a/src/util/config/types/subconfigurations/index.ts +++ b/src/util/config/types/subconfigurations/index.ts @@ -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 "./client"; export * from "./defaults"; export * from "./guild"; diff --git a/src/util/config/types/subconfigurations/kafka/KafkaBroker.ts b/src/util/config/types/subconfigurations/kafka/KafkaBroker.ts index f7dc1cf..0f47e3b 100644 --- a/src/util/config/types/subconfigurations/kafka/KafkaBroker.ts +++ b/src/util/config/types/subconfigurations/kafka/KafkaBroker.ts @@ -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 interface KafkaBroker { ip: string; port: number; diff --git a/src/util/config/types/subconfigurations/kafka/index.ts b/src/util/config/types/subconfigurations/kafka/index.ts index 2c63395..ce78e70 100644 --- a/src/util/config/types/subconfigurations/kafka/index.ts +++ b/src/util/config/types/subconfigurations/kafka/index.ts @@ -1 +1,18 @@ +/* + 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 "./KafkaBroker"; diff --git a/src/util/config/types/subconfigurations/limits/ChannelLimits.ts b/src/util/config/types/subconfigurations/limits/ChannelLimits.ts index 76eeeb4..2efd56a 100644 --- a/src/util/config/types/subconfigurations/limits/ChannelLimits.ts +++ b/src/util/config/types/subconfigurations/limits/ChannelLimits.ts @@ -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 class ChannelLimits { maxPins: number = 500; maxTopic: number = 1024; diff --git a/src/util/config/types/subconfigurations/limits/GlobalRateLimits.ts b/src/util/config/types/subconfigurations/limits/GlobalRateLimits.ts index d7c8a84..05bbb8a 100644 --- a/src/util/config/types/subconfigurations/limits/GlobalRateLimits.ts +++ b/src/util/config/types/subconfigurations/limits/GlobalRateLimits.ts @@ -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 class GlobalRateLimits { register: GlobalRateLimit = { limit: 25, diff --git a/src/util/config/types/subconfigurations/limits/GuildLimits.ts b/src/util/config/types/subconfigurations/limits/GuildLimits.ts index 6422aa0..a6562d8 100644 --- a/src/util/config/types/subconfigurations/limits/GuildLimits.ts +++ b/src/util/config/types/subconfigurations/limits/GuildLimits.ts @@ -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 class GuildLimits { maxRoles: number = 1000; maxEmojis: number = 2000; diff --git a/src/util/config/types/subconfigurations/limits/MessageLimits.ts b/src/util/config/types/subconfigurations/limits/MessageLimits.ts index 684a505..ba0a68b 100644 --- a/src/util/config/types/subconfigurations/limits/MessageLimits.ts +++ b/src/util/config/types/subconfigurations/limits/MessageLimits.ts @@ -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 class MessageLimits { maxCharacters: number = 1048576; maxTTSCharacters: number = 160; diff --git a/src/util/config/types/subconfigurations/limits/RateLimits.ts b/src/util/config/types/subconfigurations/limits/RateLimits.ts index fedd0e2..78c7501 100644 --- a/src/util/config/types/subconfigurations/limits/RateLimits.ts +++ b/src/util/config/types/subconfigurations/limits/RateLimits.ts @@ -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 { RateLimitOptions, RouteRateLimit } from "."; export class RateLimits { diff --git a/src/util/config/types/subconfigurations/limits/UserLimits.ts b/src/util/config/types/subconfigurations/limits/UserLimits.ts index b42d805..e0870e0 100644 --- a/src/util/config/types/subconfigurations/limits/UserLimits.ts +++ b/src/util/config/types/subconfigurations/limits/UserLimits.ts @@ -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 class UserLimits { maxGuilds: number = 1048576; maxUsername: number = 32; diff --git a/src/util/config/types/subconfigurations/limits/index.ts b/src/util/config/types/subconfigurations/limits/index.ts index ab7d9a5..9b9704b 100644 --- a/src/util/config/types/subconfigurations/limits/index.ts +++ b/src/util/config/types/subconfigurations/limits/index.ts @@ -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 "./ChannelLimits"; export * from "./GlobalRateLimits"; export * from "./GuildLimits"; diff --git a/src/util/config/types/subconfigurations/limits/ratelimits/Auth.ts b/src/util/config/types/subconfigurations/limits/ratelimits/Auth.ts index bd45c34..2c9665f 100644 --- a/src/util/config/types/subconfigurations/limits/ratelimits/Auth.ts +++ b/src/util/config/types/subconfigurations/limits/ratelimits/Auth.ts @@ -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 { RateLimitOptions } from "./RateLimitOptions"; export class AuthRateLimit { diff --git a/src/util/config/types/subconfigurations/limits/ratelimits/RateLimitOptions.ts b/src/util/config/types/subconfigurations/limits/ratelimits/RateLimitOptions.ts index 829813f..1312d65 100644 --- a/src/util/config/types/subconfigurations/limits/ratelimits/RateLimitOptions.ts +++ b/src/util/config/types/subconfigurations/limits/ratelimits/RateLimitOptions.ts @@ -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 interface RateLimitOptions { bot?: number; count: number; diff --git a/src/util/config/types/subconfigurations/limits/ratelimits/Route.ts b/src/util/config/types/subconfigurations/limits/ratelimits/Route.ts index 5235334..5f2d10b 100644 --- a/src/util/config/types/subconfigurations/limits/ratelimits/Route.ts +++ b/src/util/config/types/subconfigurations/limits/ratelimits/Route.ts @@ -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 { AuthRateLimit } from "."; import { RateLimitOptions } from "./RateLimitOptions"; diff --git a/src/util/config/types/subconfigurations/limits/ratelimits/index.ts b/src/util/config/types/subconfigurations/limits/ratelimits/index.ts index 432eb60..c7b0553 100644 --- a/src/util/config/types/subconfigurations/limits/ratelimits/index.ts +++ b/src/util/config/types/subconfigurations/limits/ratelimits/index.ts @@ -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 "./Auth"; export * from "./RateLimitOptions"; export * from "./Route"; diff --git a/src/util/config/types/subconfigurations/region/Region.ts b/src/util/config/types/subconfigurations/region/Region.ts index c1bcfd0..a0766af 100644 --- a/src/util/config/types/subconfigurations/region/Region.ts +++ b/src/util/config/types/subconfigurations/region/Region.ts @@ -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 interface Region { id: string; name: string; diff --git a/src/util/config/types/subconfigurations/region/index.ts b/src/util/config/types/subconfigurations/region/index.ts index 2beb8de..bb0a00b 100644 --- a/src/util/config/types/subconfigurations/region/index.ts +++ b/src/util/config/types/subconfigurations/region/index.ts @@ -1 +1,18 @@ +/* + 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 "./Region"; diff --git a/src/util/config/types/subconfigurations/register/DateOfBirth.ts b/src/util/config/types/subconfigurations/register/DateOfBirth.ts index 4831a4b..761e34b 100644 --- a/src/util/config/types/subconfigurations/register/DateOfBirth.ts +++ b/src/util/config/types/subconfigurations/register/DateOfBirth.ts @@ -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 class DateOfBirthConfiguration { required: boolean = true; minimum: number = 13; // in years diff --git a/src/util/config/types/subconfigurations/register/Email.ts b/src/util/config/types/subconfigurations/register/Email.ts index d308997..be496aa 100644 --- a/src/util/config/types/subconfigurations/register/Email.ts +++ b/src/util/config/types/subconfigurations/register/Email.ts @@ -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 class RegistrationEmailConfiguration { required: boolean = false; allowlist: boolean = false; diff --git a/src/util/config/types/subconfigurations/register/Password.ts b/src/util/config/types/subconfigurations/register/Password.ts index 383bdcf..06107fa 100644 --- a/src/util/config/types/subconfigurations/register/Password.ts +++ b/src/util/config/types/subconfigurations/register/Password.ts @@ -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 class PasswordConfiguration { required: boolean = false; minLength: number = 8; diff --git a/src/util/config/types/subconfigurations/register/index.ts b/src/util/config/types/subconfigurations/register/index.ts index d973812..7f52e29 100644 --- a/src/util/config/types/subconfigurations/register/index.ts +++ b/src/util/config/types/subconfigurations/register/index.ts @@ -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 "./DateOfBirth"; export * from "./Email"; export * from "./Password"; diff --git a/src/util/config/types/subconfigurations/security/Captcha.ts b/src/util/config/types/subconfigurations/security/Captcha.ts index 21c4ef4..e673779 100644 --- a/src/util/config/types/subconfigurations/security/Captcha.ts +++ b/src/util/config/types/subconfigurations/security/Captcha.ts @@ -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 class CaptchaConfiguration { enabled: boolean = false; service: "recaptcha" | "hcaptcha" | null = null; // TODO: hcaptcha, custom diff --git a/src/util/config/types/subconfigurations/security/TwoFactor.ts b/src/util/config/types/subconfigurations/security/TwoFactor.ts index 20d2f9a..0cab0e6 100644 --- a/src/util/config/types/subconfigurations/security/TwoFactor.ts +++ b/src/util/config/types/subconfigurations/security/TwoFactor.ts @@ -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 class TwoFactorConfiguration { generateBackupCodes: boolean = true; } diff --git a/src/util/config/types/subconfigurations/security/index.ts b/src/util/config/types/subconfigurations/security/index.ts index 1761958..9d9981e 100644 --- a/src/util/config/types/subconfigurations/security/index.ts +++ b/src/util/config/types/subconfigurations/security/index.ts @@ -1,2 +1,19 @@ +/* + 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 "./Captcha"; export * from "./TwoFactor"; diff --git a/src/util/connections/Connection.ts b/src/util/connections/Connection.ts index 0223cbc..8bf2594 100644 --- a/src/util/connections/Connection.ts +++ b/src/util/connections/Connection.ts @@ -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 crypto from "crypto"; import { ConnectedAccount } from "../entities"; import { ConnectedAccountSchema, ConnectionCallbackSchema } from "../schemas"; diff --git a/src/util/connections/ConnectionConfig.ts b/src/util/connections/ConnectionConfig.ts index 7d1f985..3a09d7a 100644 --- a/src/util/connections/ConnectionConfig.ts +++ b/src/util/connections/ConnectionConfig.ts @@ -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/no-explicit-any */ import { ConnectionConfigEntity } from "../entities/ConnectionConfigEntity"; diff --git a/src/util/connections/ConnectionLoader.ts b/src/util/connections/ConnectionLoader.ts index 128f94e..b70229a 100644 --- a/src/util/connections/ConnectionLoader.ts +++ b/src/util/connections/ConnectionLoader.ts @@ -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 { Connection } from "@valkyrie/util"; import fs from "fs"; import path from "path"; diff --git a/src/util/connections/ConnectionStore.ts b/src/util/connections/ConnectionStore.ts index 87b986c..2cc39b7 100644 --- a/src/util/connections/ConnectionStore.ts +++ b/src/util/connections/ConnectionStore.ts @@ -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 { Connection } from "./Connection"; import { RefreshableConnection } from "./RefreshableConnection"; diff --git a/src/util/connections/RefreshableConnection.ts b/src/util/connections/RefreshableConnection.ts index 9a70f09..8689e32 100644 --- a/src/util/connections/RefreshableConnection.ts +++ b/src/util/connections/RefreshableConnection.ts @@ -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 { ConnectedAccount } from "../entities"; import { ConnectedAccountCommonOAuthTokenResponse } from "../interfaces"; import { Connection } from "./Connection"; diff --git a/src/util/connections/index.ts b/src/util/connections/index.ts index 8d20bf2..b27a212 100644 --- a/src/util/connections/index.ts +++ b/src/util/connections/index.ts @@ -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 "./Connection"; export * from "./ConnectionConfig"; export * from "./ConnectionLoader"; diff --git a/src/util/dtos/ConnectedAccountDTO.ts b/src/util/dtos/ConnectedAccountDTO.ts index 9c80b8b..26b7158 100644 --- a/src/util/dtos/ConnectedAccountDTO.ts +++ b/src/util/dtos/ConnectedAccountDTO.ts @@ -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 { ConnectedAccount } from "../entities"; export class ConnectedAccountDTO { diff --git a/src/util/dtos/DmChannelDTO.ts b/src/util/dtos/DmChannelDTO.ts index 72fe414..8b12ef5 100644 --- a/src/util/dtos/DmChannelDTO.ts +++ b/src/util/dtos/DmChannelDTO.ts @@ -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 { MinimalPublicUserDTO } from "./UserDTO"; import { Channel, PublicUserProjection, User } from "../entities"; diff --git a/src/util/dtos/ReadyGuildDTO.ts b/src/util/dtos/ReadyGuildDTO.ts index a0001f0..624a0a1 100644 --- a/src/util/dtos/ReadyGuildDTO.ts +++ b/src/util/dtos/ReadyGuildDTO.ts @@ -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, ChannelOverride, diff --git a/src/util/dtos/UserDTO.ts b/src/util/dtos/UserDTO.ts index 4a23bbd..7361d1b 100644 --- a/src/util/dtos/UserDTO.ts +++ b/src/util/dtos/UserDTO.ts @@ -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 { User } from "../entities"; export class MinimalPublicUserDTO { diff --git a/src/util/dtos/index.ts b/src/util/dtos/index.ts index a9b6be1..fbebedb 100644 --- a/src/util/dtos/index.ts +++ b/src/util/dtos/index.ts @@ -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 "./ConnectedAccountDTO"; export * from "./DmChannelDTO"; export * from "./ReadyGuildDTO"; diff --git a/src/util/entities/Application.ts b/src/util/entities/Application.ts index d56e8c5..c5c0ce6 100644 --- a/src/util/entities/Application.ts +++ b/src/util/entities/Application.ts @@ -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 { Column, Entity, diff --git a/src/util/entities/Attachment.ts b/src/util/entities/Attachment.ts index 894da25..59fa4c3 100644 --- a/src/util/entities/Attachment.ts +++ b/src/util/entities/Attachment.ts @@ -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 { BeforeRemove, Column, diff --git a/src/util/entities/AuditLog.ts b/src/util/entities/AuditLog.ts index 20cc5a4..7c28bf2 100644 --- a/src/util/entities/AuditLog.ts +++ b/src/util/entities/AuditLog.ts @@ -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 { Column, Entity, JoinColumn, ManyToOne, RelationId } from "typeorm"; import { BaseClass } from "./BaseClass"; import { ChannelPermissionOverwrite } from "./Channel"; diff --git a/src/util/entities/BackupCodes.ts b/src/util/entities/BackupCodes.ts index 03e7f79..19c48a0 100644 --- a/src/util/entities/BackupCodes.ts +++ b/src/util/entities/BackupCodes.ts @@ -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 { Column, Entity, JoinColumn, ManyToOne } from "typeorm"; import { BaseClass } from "./BaseClass"; import { User } from "./User"; diff --git a/src/util/entities/Badge.ts b/src/util/entities/Badge.ts index ce61028..a5ad1ad 100644 --- a/src/util/entities/Badge.ts +++ b/src/util/entities/Badge.ts @@ -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 { Column, Entity } from "typeorm"; import { BaseClassWithoutId } from "./BaseClass"; import { dbEngine } from "../util/Database"; diff --git a/src/util/entities/Ban.ts b/src/util/entities/Ban.ts index 4066049..6fb6481 100644 --- a/src/util/entities/Ban.ts +++ b/src/util/entities/Ban.ts @@ -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 { Column, Entity, JoinColumn, ManyToOne, RelationId } from "typeorm"; import { BaseClass } from "./BaseClass"; import { Guild } from "./Guild"; diff --git a/src/util/entities/BaseClass.ts b/src/util/entities/BaseClass.ts index 903869a..3d38757 100644 --- a/src/util/entities/BaseClass.ts +++ b/src/util/entities/BaseClass.ts @@ -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 { BaseEntity, BeforeInsert, diff --git a/src/util/entities/Categories.ts b/src/util/entities/Categories.ts index af5779e..3241b3e 100644 --- a/src/util/entities/Categories.ts +++ b/src/util/entities/Categories.ts @@ -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 { Column, Entity } from "typeorm"; import { BaseClassWithoutId, PrimaryIdColumn } from "./BaseClass"; import { dbEngine } from "../util/Database"; diff --git a/src/util/entities/Channel.ts b/src/util/entities/Channel.ts index a330b2a..f2081db 100644 --- a/src/util/entities/Channel.ts +++ b/src/util/entities/Channel.ts @@ -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 { HTTPError } from "lambert-server"; import { Column, diff --git a/src/util/entities/ClientRelease.ts b/src/util/entities/ClientRelease.ts index 7ba8099..fe45e63 100644 --- a/src/util/entities/ClientRelease.ts +++ b/src/util/entities/ClientRelease.ts @@ -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 { Column, Entity } from "typeorm"; import { BaseClass } from "./BaseClass"; import { dbEngine } from "../util/Database"; diff --git a/src/util/entities/Config.ts b/src/util/entities/Config.ts index 10b39bb..9ee9ff5 100644 --- a/src/util/entities/Config.ts +++ b/src/util/entities/Config.ts @@ -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 { Column, Entity } from "typeorm"; import { BaseClassWithoutId, PrimaryIdColumn } from "./BaseClass"; import { dbEngine } from "../util/Database"; diff --git a/src/util/entities/ConnectedAccount.ts b/src/util/entities/ConnectedAccount.ts index dec11a5..797dfce 100644 --- a/src/util/entities/ConnectedAccount.ts +++ b/src/util/entities/ConnectedAccount.ts @@ -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 { Column, Entity, JoinColumn, ManyToOne, RelationId } from "typeorm"; import { ConnectedAccountTokenData } from "../interfaces"; import { BaseClass } from "./BaseClass"; diff --git a/src/util/entities/ConnectionConfigEntity.ts b/src/util/entities/ConnectionConfigEntity.ts index b37b1e4..3942c3b 100644 --- a/src/util/entities/ConnectionConfigEntity.ts +++ b/src/util/entities/ConnectionConfigEntity.ts @@ -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 { Column, Entity } from "typeorm"; import { BaseClassWithoutId, PrimaryIdColumn } from "./BaseClass"; import { dbEngine } from "../util/Database"; diff --git a/src/util/entities/EmbedCache.ts b/src/util/entities/EmbedCache.ts index 2856617..a8af453 100644 --- a/src/util/entities/EmbedCache.ts +++ b/src/util/entities/EmbedCache.ts @@ -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 { BaseClass } from "./BaseClass"; import { Entity, Column } from "typeorm"; import { Embed } from "./Message"; diff --git a/src/util/entities/Emoji.ts b/src/util/entities/Emoji.ts index 347abd1..a0517ef 100644 --- a/src/util/entities/Emoji.ts +++ b/src/util/entities/Emoji.ts @@ -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 { Column, Entity, JoinColumn, ManyToOne, RelationId } from "typeorm"; import { User } from "."; import { BaseClass } from "./BaseClass"; diff --git a/src/util/entities/Encryption.ts b/src/util/entities/Encryption.ts index 6af8c70..90af5ca 100644 --- a/src/util/entities/Encryption.ts +++ b/src/util/entities/Encryption.ts @@ -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 { Column, Entity } from "typeorm"; import { BaseClass } from "./BaseClass"; import { dbEngine } from "../util/Database"; diff --git a/src/util/entities/Guild.ts b/src/util/entities/Guild.ts index 9fb5d06..6527155 100644 --- a/src/util/entities/Guild.ts +++ b/src/util/entities/Guild.ts @@ -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 { Column, Entity, diff --git a/src/util/entities/Invite.ts b/src/util/entities/Invite.ts index d457ff0..b821adc 100644 --- a/src/util/entities/Invite.ts +++ b/src/util/entities/Invite.ts @@ -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 { Column, Entity, JoinColumn, ManyToOne, RelationId } from "typeorm"; import { BaseClassWithoutId, PrimaryIdColumn } from "./BaseClass"; import { Channel } from "./Channel"; diff --git a/src/util/entities/Member.ts b/src/util/entities/Member.ts index c75a81b..37e5066 100644 --- a/src/util/entities/Member.ts +++ b/src/util/entities/Member.ts @@ -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 { HTTPError } from "lambert-server"; import { BeforeInsert, diff --git a/src/util/entities/Message.ts b/src/util/entities/Message.ts index a25d48b..56184c6 100644 --- a/src/util/entities/Message.ts +++ b/src/util/entities/Message.ts @@ -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 { User } from "./User"; import { Member } from "./Member"; import { Role } from "./Role"; diff --git a/src/util/entities/Migration.ts b/src/util/entities/Migration.ts index 793ab85..3249c0f 100644 --- a/src/util/entities/Migration.ts +++ b/src/util/entities/Migration.ts @@ -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 { Column, Entity, diff --git a/src/util/entities/Note.ts b/src/util/entities/Note.ts index 7e6c2dc..ec54499 100644 --- a/src/util/entities/Note.ts +++ b/src/util/entities/Note.ts @@ -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 { Column, Entity, JoinColumn, ManyToOne, Unique } from "typeorm"; import { BaseClass } from "./BaseClass"; import { User } from "./User"; diff --git a/src/util/entities/RateLimit.ts b/src/util/entities/RateLimit.ts index e26d457..b6e8005 100644 --- a/src/util/entities/RateLimit.ts +++ b/src/util/entities/RateLimit.ts @@ -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 { Column, Entity } from "typeorm"; import { BaseClass } from "./BaseClass"; import { dbEngine } from "../util/Database"; diff --git a/src/util/entities/ReadState.ts b/src/util/entities/ReadState.ts index c436bb8..9365363 100644 --- a/src/util/entities/ReadState.ts +++ b/src/util/entities/ReadState.ts @@ -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 { Column, Entity, diff --git a/src/util/entities/Recipient.ts b/src/util/entities/Recipient.ts index 5fd310d..a19af67 100644 --- a/src/util/entities/Recipient.ts +++ b/src/util/entities/Recipient.ts @@ -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 { Column, Entity, JoinColumn, ManyToOne, RelationId } from "typeorm"; import { BaseClass } from "./BaseClass"; import { dbEngine } from "../util/Database"; diff --git a/src/util/entities/Relationship.ts b/src/util/entities/Relationship.ts index 27834d4..ab2db8e 100644 --- a/src/util/entities/Relationship.ts +++ b/src/util/entities/Relationship.ts @@ -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 { Column, Entity, diff --git a/src/util/entities/Role.ts b/src/util/entities/Role.ts index de4ad51..b441148 100644 --- a/src/util/entities/Role.ts +++ b/src/util/entities/Role.ts @@ -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 { Column, Entity, JoinColumn, ManyToOne, RelationId } from "typeorm"; import { BaseClass } from "./BaseClass"; diff --git a/src/util/entities/SecurityKey.ts b/src/util/entities/SecurityKey.ts index 62e8adf..7bf02df 100644 --- a/src/util/entities/SecurityKey.ts +++ b/src/util/entities/SecurityKey.ts @@ -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 { Column, Entity, JoinColumn, ManyToOne, RelationId } from "typeorm"; import { BaseClass } from "./BaseClass"; import { User } from "./User"; diff --git a/src/util/entities/Session.ts b/src/util/entities/Session.ts index 396b3a7..161e895 100644 --- a/src/util/entities/Session.ts +++ b/src/util/entities/Session.ts @@ -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 { User } from "./User"; import { BaseClass } from "./BaseClass"; import { Column, Entity, JoinColumn, ManyToOne, RelationId } from "typeorm"; diff --git a/src/util/entities/Sticker.ts b/src/util/entities/Sticker.ts index e5f0631..fd5fbb9 100644 --- a/src/util/entities/Sticker.ts +++ b/src/util/entities/Sticker.ts @@ -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 { Column, Entity, JoinColumn, ManyToOne, RelationId } from "typeorm"; import { BaseClass } from "./BaseClass"; import { Guild } from "./Guild"; diff --git a/src/util/entities/StickerPack.ts b/src/util/entities/StickerPack.ts index 61a4a96..61833ad 100644 --- a/src/util/entities/StickerPack.ts +++ b/src/util/entities/StickerPack.ts @@ -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 { Column, Entity, diff --git a/src/util/entities/Team.ts b/src/util/entities/Team.ts index 9ad9906..7adcd34 100644 --- a/src/util/entities/Team.ts +++ b/src/util/entities/Team.ts @@ -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 { Column, Entity, diff --git a/src/util/entities/TeamMember.ts b/src/util/entities/TeamMember.ts index fb76fc3..ca0273d 100644 --- a/src/util/entities/TeamMember.ts +++ b/src/util/entities/TeamMember.ts @@ -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 { Column, Entity, JoinColumn, ManyToOne, RelationId } from "typeorm"; import { BaseClass } from "./BaseClass"; import { User } from "./User"; diff --git a/src/util/entities/Template.ts b/src/util/entities/Template.ts index 1594bd0..8eec7dc 100644 --- a/src/util/entities/Template.ts +++ b/src/util/entities/Template.ts @@ -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 { Column, Entity, JoinColumn, ManyToOne, RelationId } from "typeorm"; import { BaseClass } from "./BaseClass"; import { Guild } from "./Guild"; diff --git a/src/util/entities/User.ts b/src/util/entities/User.ts index edc4357..0a42547 100644 --- a/src/util/entities/User.ts +++ b/src/util/entities/User.ts @@ -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 } from "express"; import { Column, diff --git a/src/util/entities/UserSettings.ts b/src/util/entities/UserSettings.ts index ee45f18..8f068aa 100644 --- a/src/util/entities/UserSettings.ts +++ b/src/util/entities/UserSettings.ts @@ -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 { Column, Entity, PrimaryGeneratedColumn } from "typeorm"; import { BaseClassWithoutId } from "./BaseClass"; import { dbEngine } from "../util/Database"; diff --git a/src/util/entities/ValidRegistrationTokens.ts b/src/util/entities/ValidRegistrationTokens.ts index 1343785..7638d29 100644 --- a/src/util/entities/ValidRegistrationTokens.ts +++ b/src/util/entities/ValidRegistrationTokens.ts @@ -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 { BaseEntity, Column, Entity, PrimaryColumn } from "typeorm"; import { dbEngine } from "../util/Database"; diff --git a/src/util/entities/VoiceState.ts b/src/util/entities/VoiceState.ts index 423060a..9635121 100644 --- a/src/util/entities/VoiceState.ts +++ b/src/util/entities/VoiceState.ts @@ -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 { Column, Entity, JoinColumn, ManyToOne, RelationId } from "typeorm"; import { BaseClass } from "./BaseClass"; import { Channel } from "./Channel"; diff --git a/src/util/entities/Webhook.ts b/src/util/entities/Webhook.ts index feaed1c..ce7048e 100644 --- a/src/util/entities/Webhook.ts +++ b/src/util/entities/Webhook.ts @@ -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 { Column, Entity, JoinColumn, ManyToOne, RelationId } from "typeorm"; import { Application } from "./Application"; import { BaseClass } from "./BaseClass"; diff --git a/src/util/entities/index.ts b/src/util/entities/index.ts index 12a3e58..5c68b60 100644 --- a/src/util/entities/index.ts +++ b/src/util/entities/index.ts @@ -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 "./Application"; export * from "./Attachment"; export * from "./AuditLog"; diff --git a/src/util/imports/Jimp.ts b/src/util/imports/Jimp.ts index 1771ab0..2c0c45b 100644 --- a/src/util/imports/Jimp.ts +++ b/src/util/imports/Jimp.ts @@ -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/no-explicit-any */ export type JimpType = { diff --git a/src/util/imports/index.ts b/src/util/imports/index.ts index 43a900d..030ce0d 100644 --- a/src/util/imports/index.ts +++ b/src/util/imports/index.ts @@ -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 "./OrmUtils"; export * from "./Erlpack"; export * from "./Jimp"; diff --git a/src/util/index.ts b/src/util/index.ts index 0efeb3f..1f5b7c6 100644 --- a/src/util/index.ts +++ b/src/util/index.ts @@ -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 "reflect-metadata"; export * from "./util/index"; diff --git a/src/util/interfaces/Activity.ts b/src/util/interfaces/Activity.ts index a841c4b..56e442f 100644 --- a/src/util/interfaces/Activity.ts +++ b/src/util/interfaces/Activity.ts @@ -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 interface Activity { name: string; // the activity's name type: ActivityType; // activity type // TODO: check if its between range 0-5 diff --git a/src/util/interfaces/ConnectedAccount.ts b/src/util/interfaces/ConnectedAccount.ts index ede02f6..1cf4cdd 100644 --- a/src/util/interfaces/ConnectedAccount.ts +++ b/src/util/interfaces/ConnectedAccount.ts @@ -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 interface ConnectedAccountCommonOAuthTokenResponse { access_token: string; token_type: string; diff --git a/src/util/interfaces/Event.ts b/src/util/interfaces/Event.ts index 44f2afd..b3c1746 100644 --- a/src/util/interfaces/Event.ts +++ b/src/util/interfaces/Event.ts @@ -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 { RelationshipType, ConnectedAccount, diff --git a/src/util/interfaces/GuildWelcomeScreen.ts b/src/util/interfaces/GuildWelcomeScreen.ts index 38b6061..c42bb61 100644 --- a/src/util/interfaces/GuildWelcomeScreen.ts +++ b/src/util/interfaces/GuildWelcomeScreen.ts @@ -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 interface GuildWelcomeScreen { enabled: boolean; description: string; diff --git a/src/util/interfaces/Interaction.ts b/src/util/interfaces/Interaction.ts index a1d8a90..f7e5b6c 100644 --- a/src/util/interfaces/Interaction.ts +++ b/src/util/interfaces/Interaction.ts @@ -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 { AllowedMentions, Embed } from "../entities/Message"; export interface Interaction { diff --git a/src/util/interfaces/Presence.ts b/src/util/interfaces/Presence.ts index 7663891..7afe5f8 100644 --- a/src/util/interfaces/Presence.ts +++ b/src/util/interfaces/Presence.ts @@ -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 { ClientStatus, Status } from "./Status"; import { Activity } from "./Activity"; import { PublicUser } from "../entities/User"; diff --git a/src/util/interfaces/Status.ts b/src/util/interfaces/Status.ts index a3673f6..e2aecb3 100644 --- a/src/util/interfaces/Status.ts +++ b/src/util/interfaces/Status.ts @@ -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 type Status = "idle" | "dnd" | "online" | "offline" | "invisible"; export interface ClientStatus { diff --git a/src/util/interfaces/index.ts b/src/util/interfaces/index.ts index f033677..dcf810b 100644 --- a/src/util/interfaces/index.ts +++ b/src/util/interfaces/index.ts @@ -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 "./Activity"; export * from "./ConnectedAccount"; export * from "./Event"; diff --git a/src/util/migration/mariadb/1673609465036-templateDeleteCascade.ts b/src/util/migration/mariadb/1673609465036-templateDeleteCascade.ts index 3053b82..e44c570 100644 --- a/src/util/migration/mariadb/1673609465036-templateDeleteCascade.ts +++ b/src/util/migration/mariadb/1673609465036-templateDeleteCascade.ts @@ -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 { MigrationInterface, QueryRunner } from "typeorm"; export class templateDeleteCascade1673609465036 implements MigrationInterface { diff --git a/src/util/migration/mariadb/1675045120206-webauthn.ts b/src/util/migration/mariadb/1675045120206-webauthn.ts index e009fa0..720ccdc 100644 --- a/src/util/migration/mariadb/1675045120206-webauthn.ts +++ b/src/util/migration/mariadb/1675045120206-webauthn.ts @@ -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 { MigrationInterface, QueryRunner } from "typeorm"; export class webauthn1675045120206 implements MigrationInterface { diff --git a/src/util/migration/mariadb/1696420827239-guildChannelOrdering.ts b/src/util/migration/mariadb/1696420827239-guildChannelOrdering.ts index 083f368..232717c 100644 --- a/src/util/migration/mariadb/1696420827239-guildChannelOrdering.ts +++ b/src/util/migration/mariadb/1696420827239-guildChannelOrdering.ts @@ -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 { MigrationInterface, QueryRunner } from "typeorm"; export class guildChannelOrdering1696420827239 implements MigrationInterface { diff --git a/src/util/migration/mariadb/1713116476900-messageFlagsNotNull.ts b/src/util/migration/mariadb/1713116476900-messageFlagsNotNull.ts index 7be2ad7..d066713 100644 --- a/src/util/migration/mariadb/1713116476900-messageFlagsNotNull.ts +++ b/src/util/migration/mariadb/1713116476900-messageFlagsNotNull.ts @@ -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 { MigrationInterface, QueryRunner } from "typeorm"; export class MessageFlagsNotNull1713116476900 implements MigrationInterface { diff --git a/src/util/migration/mariadb/1719776735000-newUserSettings.ts b/src/util/migration/mariadb/1719776735000-newUserSettings.ts index f7c37ca..2725d83 100644 --- a/src/util/migration/mariadb/1719776735000-newUserSettings.ts +++ b/src/util/migration/mariadb/1719776735000-newUserSettings.ts @@ -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 { MigrationInterface, QueryRunner } from "typeorm"; export class NewUserSettings1719776735000 implements MigrationInterface { diff --git a/src/util/migration/mariadb/1720157926878-messagePollObject.ts b/src/util/migration/mariadb/1720157926878-messagePollObject.ts index c086642..8ae0c2a 100644 --- a/src/util/migration/mariadb/1720157926878-messagePollObject.ts +++ b/src/util/migration/mariadb/1720157926878-messagePollObject.ts @@ -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 { MigrationInterface, QueryRunner } from "typeorm"; export class MessagePollObject1720157926878 implements MigrationInterface { diff --git a/src/util/migration/mariadb/1720628601997-badges.ts b/src/util/migration/mariadb/1720628601997-badges.ts index af298e4..4ec7499 100644 --- a/src/util/migration/mariadb/1720628601997-badges.ts +++ b/src/util/migration/mariadb/1720628601997-badges.ts @@ -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 { MigrationInterface, QueryRunner } from "typeorm"; export class Badges1720628601997 implements MigrationInterface { diff --git a/src/util/migration/mariadb/1721298824927-webhookMessageProperties.ts b/src/util/migration/mariadb/1721298824927-webhookMessageProperties.ts index 775847e..5641507 100644 --- a/src/util/migration/mariadb/1721298824927-webhookMessageProperties.ts +++ b/src/util/migration/mariadb/1721298824927-webhookMessageProperties.ts @@ -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 { MigrationInterface, QueryRunner } from "typeorm"; export class WebhookMessageProperties1721298824927 diff --git a/src/util/migration/mariadb/1723347738541-client_status.ts b/src/util/migration/mariadb/1723347738541-client_status.ts index 0e02c45..f4181a0 100644 --- a/src/util/migration/mariadb/1723347738541-client_status.ts +++ b/src/util/migration/mariadb/1723347738541-client_status.ts @@ -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 { MigrationInterface, QueryRunner } from "typeorm"; export class client_status1723347738541 implements MigrationInterface { diff --git a/src/util/migration/mariadb/1723577874393-discoveryCategoryIcon.ts b/src/util/migration/mariadb/1723577874393-discoveryCategoryIcon.ts index 18bc0a7..f28a5eb 100644 --- a/src/util/migration/mariadb/1723577874393-discoveryCategoryIcon.ts +++ b/src/util/migration/mariadb/1723577874393-discoveryCategoryIcon.ts @@ -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 { MigrationInterface, QueryRunner } from "typeorm"; export class DiscoveryCategoryIcon1723577874393 implements MigrationInterface { diff --git a/src/util/migration/mariadb/1723644478176-webhookSourceChannel.ts b/src/util/migration/mariadb/1723644478176-webhookSourceChannel.ts index ac2b179..1b01ba5 100644 --- a/src/util/migration/mariadb/1723644478176-webhookSourceChannel.ts +++ b/src/util/migration/mariadb/1723644478176-webhookSourceChannel.ts @@ -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 { MigrationInterface, QueryRunner } from "typeorm"; export class WebhookSourceChannel1723644478176 implements MigrationInterface { diff --git a/src/util/migration/mariadb/1724477620293-teamMemberRole.ts b/src/util/migration/mariadb/1724477620293-teamMemberRole.ts index ff4be7b..4b6d6fb 100644 --- a/src/util/migration/mariadb/1724477620293-teamMemberRole.ts +++ b/src/util/migration/mariadb/1724477620293-teamMemberRole.ts @@ -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 { MigrationInterface, QueryRunner } from "typeorm"; export class TeamMemberRole1724477620293 implements MigrationInterface { diff --git a/src/util/migration/mariadb/1725090962922-applicationProperties.ts b/src/util/migration/mariadb/1725090962922-applicationProperties.ts index 6ba9077..3acea03 100644 --- a/src/util/migration/mariadb/1725090962922-applicationProperties.ts +++ b/src/util/migration/mariadb/1725090962922-applicationProperties.ts @@ -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 { MigrationInterface, QueryRunner } from "typeorm"; export class ApplicationProperties1725090962922 implements MigrationInterface { diff --git a/src/util/migration/mysql/1673609465036-templateDeleteCascade.ts b/src/util/migration/mysql/1673609465036-templateDeleteCascade.ts index 3053b82..e44c570 100644 --- a/src/util/migration/mysql/1673609465036-templateDeleteCascade.ts +++ b/src/util/migration/mysql/1673609465036-templateDeleteCascade.ts @@ -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 { MigrationInterface, QueryRunner } from "typeorm"; export class templateDeleteCascade1673609465036 implements MigrationInterface { diff --git a/src/util/migration/mysql/1675045120206-webauthn.ts b/src/util/migration/mysql/1675045120206-webauthn.ts index e009fa0..720ccdc 100644 --- a/src/util/migration/mysql/1675045120206-webauthn.ts +++ b/src/util/migration/mysql/1675045120206-webauthn.ts @@ -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 { MigrationInterface, QueryRunner } from "typeorm"; export class webauthn1675045120206 implements MigrationInterface { diff --git a/src/util/migration/mysql/1696420827239-guildChannelOrdering.ts b/src/util/migration/mysql/1696420827239-guildChannelOrdering.ts index 083f368..232717c 100644 --- a/src/util/migration/mysql/1696420827239-guildChannelOrdering.ts +++ b/src/util/migration/mysql/1696420827239-guildChannelOrdering.ts @@ -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 { MigrationInterface, QueryRunner } from "typeorm"; export class guildChannelOrdering1696420827239 implements MigrationInterface { diff --git a/src/util/migration/mysql/1713116476900-messageFlagsNotNull.ts b/src/util/migration/mysql/1713116476900-messageFlagsNotNull.ts index 7be2ad7..d066713 100644 --- a/src/util/migration/mysql/1713116476900-messageFlagsNotNull.ts +++ b/src/util/migration/mysql/1713116476900-messageFlagsNotNull.ts @@ -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 { MigrationInterface, QueryRunner } from "typeorm"; export class MessageFlagsNotNull1713116476900 implements MigrationInterface { diff --git a/src/util/migration/mysql/1719776735000-newUserSettings.ts b/src/util/migration/mysql/1719776735000-newUserSettings.ts index f7c37ca..2725d83 100644 --- a/src/util/migration/mysql/1719776735000-newUserSettings.ts +++ b/src/util/migration/mysql/1719776735000-newUserSettings.ts @@ -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 { MigrationInterface, QueryRunner } from "typeorm"; export class NewUserSettings1719776735000 implements MigrationInterface { diff --git a/src/util/migration/mysql/1720157926878-messagePollObject.ts b/src/util/migration/mysql/1720157926878-messagePollObject.ts index c086642..8ae0c2a 100644 --- a/src/util/migration/mysql/1720157926878-messagePollObject.ts +++ b/src/util/migration/mysql/1720157926878-messagePollObject.ts @@ -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 { MigrationInterface, QueryRunner } from "typeorm"; export class MessagePollObject1720157926878 implements MigrationInterface { diff --git a/src/util/migration/mysql/1720628601997-badges.ts b/src/util/migration/mysql/1720628601997-badges.ts index af298e4..4ec7499 100644 --- a/src/util/migration/mysql/1720628601997-badges.ts +++ b/src/util/migration/mysql/1720628601997-badges.ts @@ -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 { MigrationInterface, QueryRunner } from "typeorm"; export class Badges1720628601997 implements MigrationInterface { diff --git a/src/util/migration/mysql/1721298824927-webhookMessageProperties.ts b/src/util/migration/mysql/1721298824927-webhookMessageProperties.ts index 775847e..5641507 100644 --- a/src/util/migration/mysql/1721298824927-webhookMessageProperties.ts +++ b/src/util/migration/mysql/1721298824927-webhookMessageProperties.ts @@ -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 { MigrationInterface, QueryRunner } from "typeorm"; export class WebhookMessageProperties1721298824927 diff --git a/src/util/migration/mysql/1723347738541-client_status.ts b/src/util/migration/mysql/1723347738541-client_status.ts index 0e02c45..f4181a0 100644 --- a/src/util/migration/mysql/1723347738541-client_status.ts +++ b/src/util/migration/mysql/1723347738541-client_status.ts @@ -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 { MigrationInterface, QueryRunner } from "typeorm"; export class client_status1723347738541 implements MigrationInterface { diff --git a/src/util/migration/mysql/1723577874393-discoveryCategoryIcon.ts b/src/util/migration/mysql/1723577874393-discoveryCategoryIcon.ts index 18bc0a7..f28a5eb 100644 --- a/src/util/migration/mysql/1723577874393-discoveryCategoryIcon.ts +++ b/src/util/migration/mysql/1723577874393-discoveryCategoryIcon.ts @@ -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 { MigrationInterface, QueryRunner } from "typeorm"; export class DiscoveryCategoryIcon1723577874393 implements MigrationInterface { diff --git a/src/util/migration/mysql/1723644478176-webhookSourceChannel.ts b/src/util/migration/mysql/1723644478176-webhookSourceChannel.ts index ac2b179..1b01ba5 100644 --- a/src/util/migration/mysql/1723644478176-webhookSourceChannel.ts +++ b/src/util/migration/mysql/1723644478176-webhookSourceChannel.ts @@ -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 { MigrationInterface, QueryRunner } from "typeorm"; export class WebhookSourceChannel1723644478176 implements MigrationInterface { diff --git a/src/util/migration/mysql/1724477620293-teamMemberRole.ts b/src/util/migration/mysql/1724477620293-teamMemberRole.ts index ff4be7b..4b6d6fb 100644 --- a/src/util/migration/mysql/1724477620293-teamMemberRole.ts +++ b/src/util/migration/mysql/1724477620293-teamMemberRole.ts @@ -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 { MigrationInterface, QueryRunner } from "typeorm"; export class TeamMemberRole1724477620293 implements MigrationInterface { diff --git a/src/util/migration/mysql/1725090962922-applicationProperties.ts b/src/util/migration/mysql/1725090962922-applicationProperties.ts index 6ba9077..3acea03 100644 --- a/src/util/migration/mysql/1725090962922-applicationProperties.ts +++ b/src/util/migration/mysql/1725090962922-applicationProperties.ts @@ -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 { MigrationInterface, QueryRunner } from "typeorm"; export class ApplicationProperties1725090962922 implements MigrationInterface { diff --git a/src/util/migration/postgres/1673609867556-templateDeleteCascade.ts b/src/util/migration/postgres/1673609867556-templateDeleteCascade.ts index fdfbc05..671135a 100644 --- a/src/util/migration/postgres/1673609867556-templateDeleteCascade.ts +++ b/src/util/migration/postgres/1673609867556-templateDeleteCascade.ts @@ -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 { MigrationInterface, QueryRunner } from "typeorm"; export class templateDeleteCascade1673609867556 implements MigrationInterface { diff --git a/src/util/migration/postgres/1675044825710-webauthn.ts b/src/util/migration/postgres/1675044825710-webauthn.ts index ac43c92..fe64649 100644 --- a/src/util/migration/postgres/1675044825710-webauthn.ts +++ b/src/util/migration/postgres/1675044825710-webauthn.ts @@ -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 { MigrationInterface, QueryRunner } from "typeorm"; export class webauthn1675044825710 implements MigrationInterface { diff --git a/src/util/migration/postgres/1696420827239-guildChannelOrdering.ts b/src/util/migration/postgres/1696420827239-guildChannelOrdering.ts index 6fc80ff..5ee8c07 100644 --- a/src/util/migration/postgres/1696420827239-guildChannelOrdering.ts +++ b/src/util/migration/postgres/1696420827239-guildChannelOrdering.ts @@ -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 { MigrationInterface, QueryRunner } from "typeorm"; export class guildChannelOrdering1696420827239 implements MigrationInterface { diff --git a/src/util/migration/postgres/1713116476900-messageFlagsNotNull.ts b/src/util/migration/postgres/1713116476900-messageFlagsNotNull.ts index 026b069..b4ebaf7 100644 --- a/src/util/migration/postgres/1713116476900-messageFlagsNotNull.ts +++ b/src/util/migration/postgres/1713116476900-messageFlagsNotNull.ts @@ -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 { MigrationInterface, QueryRunner } from "typeorm"; export class MessageFlagsNotNull1713116476900 implements MigrationInterface { diff --git a/src/util/migration/postgres/1719776735000-newUserSettings.ts b/src/util/migration/postgres/1719776735000-newUserSettings.ts index dbee0b0..d23786d 100644 --- a/src/util/migration/postgres/1719776735000-newUserSettings.ts +++ b/src/util/migration/postgres/1719776735000-newUserSettings.ts @@ -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 { MigrationInterface, QueryRunner } from "typeorm"; export class NewUserSettings1719776735000 implements MigrationInterface { diff --git a/src/util/migration/postgres/1720157926878-messagePollObject.ts b/src/util/migration/postgres/1720157926878-messagePollObject.ts index 7c3c95a..3256101 100644 --- a/src/util/migration/postgres/1720157926878-messagePollObject.ts +++ b/src/util/migration/postgres/1720157926878-messagePollObject.ts @@ -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 { MigrationInterface, QueryRunner } from "typeorm"; export class MessagePollObject1720157926878 implements MigrationInterface { diff --git a/src/util/migration/postgres/1720628601997-badges.ts b/src/util/migration/postgres/1720628601997-badges.ts index f7b9958..a5b520a 100644 --- a/src/util/migration/postgres/1720628601997-badges.ts +++ b/src/util/migration/postgres/1720628601997-badges.ts @@ -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 { MigrationInterface, QueryRunner } from "typeorm"; export class Badges1720628601997 implements MigrationInterface { diff --git a/src/util/migration/postgres/1721298824927-webhookMessageProperties.ts b/src/util/migration/postgres/1721298824927-webhookMessageProperties.ts index bd603f1..e2ca8c1 100644 --- a/src/util/migration/postgres/1721298824927-webhookMessageProperties.ts +++ b/src/util/migration/postgres/1721298824927-webhookMessageProperties.ts @@ -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 { MigrationInterface, QueryRunner } from "typeorm"; export class WebhookMessageProperties1721298824927 diff --git a/src/util/migration/postgres/1723347738541-client_status.ts b/src/util/migration/postgres/1723347738541-client_status.ts index 35d9391..d51bf71 100644 --- a/src/util/migration/postgres/1723347738541-client_status.ts +++ b/src/util/migration/postgres/1723347738541-client_status.ts @@ -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 { MigrationInterface, QueryRunner } from "typeorm"; export class client_status1723347738541 implements MigrationInterface { diff --git a/src/util/migration/postgres/1723577874393-discoveryCategoryIcon.ts b/src/util/migration/postgres/1723577874393-discoveryCategoryIcon.ts index 29b4138..d972858 100644 --- a/src/util/migration/postgres/1723577874393-discoveryCategoryIcon.ts +++ b/src/util/migration/postgres/1723577874393-discoveryCategoryIcon.ts @@ -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 { MigrationInterface, QueryRunner } from "typeorm"; export class DiscoveryCategoryIcon1723577874393 implements MigrationInterface { diff --git a/src/util/migration/postgres/1723644478176-webhookSourceChannel.ts b/src/util/migration/postgres/1723644478176-webhookSourceChannel.ts index 63ce961..44fd373 100644 --- a/src/util/migration/postgres/1723644478176-webhookSourceChannel.ts +++ b/src/util/migration/postgres/1723644478176-webhookSourceChannel.ts @@ -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 { MigrationInterface, QueryRunner } from "typeorm"; export class WebhookSourceChannel1723644478176 implements MigrationInterface { diff --git a/src/util/migration/postgres/1724477620293-teamMemberRole.ts b/src/util/migration/postgres/1724477620293-teamMemberRole.ts index d3276d9..dab4748 100644 --- a/src/util/migration/postgres/1724477620293-teamMemberRole.ts +++ b/src/util/migration/postgres/1724477620293-teamMemberRole.ts @@ -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 { MigrationInterface, QueryRunner } from "typeorm"; export class TeamMemberRole1724477620293 implements MigrationInterface { diff --git a/src/util/migration/postgres/1725090962922-applicationProperties.ts b/src/util/migration/postgres/1725090962922-applicationProperties.ts index 8e3ea46..e6f4ddb 100644 --- a/src/util/migration/postgres/1725090962922-applicationProperties.ts +++ b/src/util/migration/postgres/1725090962922-applicationProperties.ts @@ -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 { MigrationInterface, QueryRunner } from "typeorm"; export class ApplicationProperties1725090962922 implements MigrationInterface { diff --git a/src/util/schemas/AckBulkSchema.ts b/src/util/schemas/AckBulkSchema.ts index 73f3caf..0357282 100644 --- a/src/util/schemas/AckBulkSchema.ts +++ b/src/util/schemas/AckBulkSchema.ts @@ -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 interface AckBulkSchema { read_states: { channel_id: string; diff --git a/src/util/schemas/ActivitySchema.ts b/src/util/schemas/ActivitySchema.ts index 8b43e76..b0eaf3a 100644 --- a/src/util/schemas/ActivitySchema.ts +++ b/src/util/schemas/ActivitySchema.ts @@ -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 { Activity, Status } from "@valkyrie/util"; export const ActivitySchema = { diff --git a/src/util/schemas/ApplicationAuthorizeSchema.ts b/src/util/schemas/ApplicationAuthorizeSchema.ts index 7254b45..5e9912f 100644 --- a/src/util/schemas/ApplicationAuthorizeSchema.ts +++ b/src/util/schemas/ApplicationAuthorizeSchema.ts @@ -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 interface ApplicationAuthorizeSchema { authorize: boolean; guild_id: string; diff --git a/src/util/schemas/ApplicationCreateSchema.ts b/src/util/schemas/ApplicationCreateSchema.ts index c9240e9..cdd6040 100644 --- a/src/util/schemas/ApplicationCreateSchema.ts +++ b/src/util/schemas/ApplicationCreateSchema.ts @@ -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 interface ApplicationCreateSchema { name: string; team_id?: string; diff --git a/src/util/schemas/ApplicationModifySchema.ts b/src/util/schemas/ApplicationModifySchema.ts index 974145f..a2e7fc1 100644 --- a/src/util/schemas/ApplicationModifySchema.ts +++ b/src/util/schemas/ApplicationModifySchema.ts @@ -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 interface ApplicationModifySchema { description?: string; icon?: string; diff --git a/src/util/schemas/BackupCodesChallengeSchema.ts b/src/util/schemas/BackupCodesChallengeSchema.ts index 970b8ad..d2d3862 100644 --- a/src/util/schemas/BackupCodesChallengeSchema.ts +++ b/src/util/schemas/BackupCodesChallengeSchema.ts @@ -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 interface BackupCodesChallengeSchema { /** * @minLength 1 diff --git a/src/util/schemas/BanCreateSchema.ts b/src/util/schemas/BanCreateSchema.ts index 760d66c..2e93812 100644 --- a/src/util/schemas/BanCreateSchema.ts +++ b/src/util/schemas/BanCreateSchema.ts @@ -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 interface BanCreateSchema { delete_message_seconds?: string; delete_message_days?: string; diff --git a/src/util/schemas/BanModeratorSchema.ts b/src/util/schemas/BanModeratorSchema.ts index afb7643..1356064 100644 --- a/src/util/schemas/BanModeratorSchema.ts +++ b/src/util/schemas/BanModeratorSchema.ts @@ -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 interface BanModeratorSchema { id: string; user_id: string; diff --git a/src/util/schemas/BanRegistrySchema.ts b/src/util/schemas/BanRegistrySchema.ts index 501f94d..774e3c0 100644 --- a/src/util/schemas/BanRegistrySchema.ts +++ b/src/util/schemas/BanRegistrySchema.ts @@ -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 interface BanRegistrySchema { id: string; user_id: string; diff --git a/src/util/schemas/BotModifySchema.ts b/src/util/schemas/BotModifySchema.ts index 19a5c54..9eb6802 100644 --- a/src/util/schemas/BotModifySchema.ts +++ b/src/util/schemas/BotModifySchema.ts @@ -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 interface BotModifySchema { avatar?: string; username?: string; diff --git a/src/util/schemas/BulkBanSchema.ts b/src/util/schemas/BulkBanSchema.ts index 24371f7..486e731 100644 --- a/src/util/schemas/BulkBanSchema.ts +++ b/src/util/schemas/BulkBanSchema.ts @@ -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 interface BulkBanSchema { user_ids: string[]; delete_message_seconds?: number; diff --git a/src/util/schemas/BulkDeleteSchema.ts b/src/util/schemas/BulkDeleteSchema.ts index bfc4df6..18114dd 100644 --- a/src/util/schemas/BulkDeleteSchema.ts +++ b/src/util/schemas/BulkDeleteSchema.ts @@ -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 interface BulkDeleteSchema { messages: string[]; } diff --git a/src/util/schemas/ChannelModifySchema.ts b/src/util/schemas/ChannelModifySchema.ts index 6889f86..f491607 100644 --- a/src/util/schemas/ChannelModifySchema.ts +++ b/src/util/schemas/ChannelModifySchema.ts @@ -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 { ChannelPermissionOverwriteType, ChannelType } from "@valkyrie/util"; export interface ChannelModifySchema { diff --git a/src/util/schemas/ChannelPermissionOverwriteSchema.ts b/src/util/schemas/ChannelPermissionOverwriteSchema.ts index 6fe507d..f3e760f 100644 --- a/src/util/schemas/ChannelPermissionOverwriteSchema.ts +++ b/src/util/schemas/ChannelPermissionOverwriteSchema.ts @@ -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 { ChannelPermissionOverwrite } from "@valkyrie/util"; export type ChannelPermissionOverwriteSchema = ChannelPermissionOverwrite; diff --git a/src/util/schemas/ChannelReorderSchema.ts b/src/util/schemas/ChannelReorderSchema.ts index c6e59eb..838c3aa 100644 --- a/src/util/schemas/ChannelReorderSchema.ts +++ b/src/util/schemas/ChannelReorderSchema.ts @@ -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 type ChannelReorderSchema = { id: string; position?: number; diff --git a/src/util/schemas/CodesVerificationSchema.ts b/src/util/schemas/CodesVerificationSchema.ts index 73c371e..2d5618e 100644 --- a/src/util/schemas/CodesVerificationSchema.ts +++ b/src/util/schemas/CodesVerificationSchema.ts @@ -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 interface CodesVerificationSchema { key: string; nonce: string; diff --git a/src/util/schemas/ConnectedAccountSchema.ts b/src/util/schemas/ConnectedAccountSchema.ts index 0abddc8..98e56c6 100644 --- a/src/util/schemas/ConnectedAccountSchema.ts +++ b/src/util/schemas/ConnectedAccountSchema.ts @@ -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 { ConnectedAccountTokenData } from "../interfaces"; export interface ConnectedAccountSchema { diff --git a/src/util/schemas/ConnectionCallbackSchema.ts b/src/util/schemas/ConnectionCallbackSchema.ts index 8144526..f3f88b5 100644 --- a/src/util/schemas/ConnectionCallbackSchema.ts +++ b/src/util/schemas/ConnectionCallbackSchema.ts @@ -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 interface ConnectionCallbackSchema { code?: string; state: string; diff --git a/src/util/schemas/ConnectionUpdateSchema.ts b/src/util/schemas/ConnectionUpdateSchema.ts index e1e6523..bd5ed4d 100644 --- a/src/util/schemas/ConnectionUpdateSchema.ts +++ b/src/util/schemas/ConnectionUpdateSchema.ts @@ -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 interface ConnectionUpdateSchema { visibility?: boolean; show_activity?: boolean; diff --git a/src/util/schemas/DmChannelCreateSchema.ts b/src/util/schemas/DmChannelCreateSchema.ts index 1b0fe86..885bc18 100644 --- a/src/util/schemas/DmChannelCreateSchema.ts +++ b/src/util/schemas/DmChannelCreateSchema.ts @@ -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 interface DmChannelCreateSchema { name?: string; recipients: string[]; diff --git a/src/util/schemas/EmojiCreateSchema.ts b/src/util/schemas/EmojiCreateSchema.ts index 3408471..cc38366 100644 --- a/src/util/schemas/EmojiCreateSchema.ts +++ b/src/util/schemas/EmojiCreateSchema.ts @@ -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 interface EmojiCreateSchema { name?: string; image: string; diff --git a/src/util/schemas/EmojiModifySchema.ts b/src/util/schemas/EmojiModifySchema.ts index 05d2d39..45e4e47 100644 --- a/src/util/schemas/EmojiModifySchema.ts +++ b/src/util/schemas/EmojiModifySchema.ts @@ -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 interface EmojiModifySchema { name?: string; roles?: string[]; diff --git a/src/util/schemas/ForgotPasswordSchema.ts b/src/util/schemas/ForgotPasswordSchema.ts index 6253949..3495419 100644 --- a/src/util/schemas/ForgotPasswordSchema.ts +++ b/src/util/schemas/ForgotPasswordSchema.ts @@ -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 interface ForgotPasswordSchema { login: string; captcha_key?: string; diff --git a/src/util/schemas/GatewayBotResponse.ts b/src/util/schemas/GatewayBotResponse.ts index 30f1f57..0eed5cf 100644 --- a/src/util/schemas/GatewayBotResponse.ts +++ b/src/util/schemas/GatewayBotResponse.ts @@ -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 interface GatewayBotResponse { url: string; shards: number; diff --git a/src/util/schemas/GatewayPayloadSchema.ts b/src/util/schemas/GatewayPayloadSchema.ts index ce27f0d..f24e1d4 100644 --- a/src/util/schemas/GatewayPayloadSchema.ts +++ b/src/util/schemas/GatewayPayloadSchema.ts @@ -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 { Tuple } from "lambert-server"; export const PayloadSchema = { diff --git a/src/util/schemas/GatewayResponse.ts b/src/util/schemas/GatewayResponse.ts index e909f7b..e5b4bb2 100644 --- a/src/util/schemas/GatewayResponse.ts +++ b/src/util/schemas/GatewayResponse.ts @@ -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 interface GatewayResponse { url: string; } diff --git a/src/util/schemas/GuildCreateSchema.ts b/src/util/schemas/GuildCreateSchema.ts index e55c537..a325600 100644 --- a/src/util/schemas/GuildCreateSchema.ts +++ b/src/util/schemas/GuildCreateSchema.ts @@ -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 { ChannelModifySchema } from "."; export interface GuildCreateSchema { diff --git a/src/util/schemas/GuildTemplateCreateSchema.ts b/src/util/schemas/GuildTemplateCreateSchema.ts index 59db842..dbbac92 100644 --- a/src/util/schemas/GuildTemplateCreateSchema.ts +++ b/src/util/schemas/GuildTemplateCreateSchema.ts @@ -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 interface GuildTemplateCreateSchema { name: string; avatar?: string | null; diff --git a/src/util/schemas/GuildUpdateSchema.ts b/src/util/schemas/GuildUpdateSchema.ts index bc12796..52fb33a 100644 --- a/src/util/schemas/GuildUpdateSchema.ts +++ b/src/util/schemas/GuildUpdateSchema.ts @@ -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 { GuildCreateSchema } from "@valkyrie/util"; export interface GuildUpdateSchema extends Omit { diff --git a/src/util/schemas/GuildUpdateWelcomeScreenSchema.ts b/src/util/schemas/GuildUpdateWelcomeScreenSchema.ts index e271b83..4d20161 100644 --- a/src/util/schemas/GuildUpdateWelcomeScreenSchema.ts +++ b/src/util/schemas/GuildUpdateWelcomeScreenSchema.ts @@ -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 interface GuildUpdateWelcomeScreenSchema { welcome_channels?: { channel_id: string; diff --git a/src/util/schemas/IdentifySchema.ts b/src/util/schemas/IdentifySchema.ts index dddebf5..c261943 100644 --- a/src/util/schemas/IdentifySchema.ts +++ b/src/util/schemas/IdentifySchema.ts @@ -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 { ActivitySchema } from "@valkyrie/util"; // TODO: Need a way to allow camalCase and pascal_case without just duplicating the schema diff --git a/src/util/schemas/InviteCreateSchema.ts b/src/util/schemas/InviteCreateSchema.ts index b0269e1..15c1122 100644 --- a/src/util/schemas/InviteCreateSchema.ts +++ b/src/util/schemas/InviteCreateSchema.ts @@ -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 interface InviteCreateSchema { target_user_id?: string; target_type?: string; diff --git a/src/util/schemas/LazyRequestSchema.ts b/src/util/schemas/LazyRequestSchema.ts index b0a9023..be1adb3 100644 --- a/src/util/schemas/LazyRequestSchema.ts +++ b/src/util/schemas/LazyRequestSchema.ts @@ -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 interface LazyRequestSchema { guild_id: string; channels?: { diff --git a/src/util/schemas/LoginResponse.ts b/src/util/schemas/LoginResponse.ts index faf3f76..5b93f0a 100644 --- a/src/util/schemas/LoginResponse.ts +++ b/src/util/schemas/LoginResponse.ts @@ -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 { TokenResponse } from "./responses"; export interface MFAResponse { diff --git a/src/util/schemas/LoginSchema.ts b/src/util/schemas/LoginSchema.ts index 9cd6081..e648ebf 100644 --- a/src/util/schemas/LoginSchema.ts +++ b/src/util/schemas/LoginSchema.ts @@ -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 interface LoginSchema { login: string; /** diff --git a/src/util/schemas/MemberChangeProfileSchema.ts b/src/util/schemas/MemberChangeProfileSchema.ts index e00cada..546fd5c 100644 --- a/src/util/schemas/MemberChangeProfileSchema.ts +++ b/src/util/schemas/MemberChangeProfileSchema.ts @@ -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 interface MemberChangeProfileSchema { banner?: string | null; nick?: string; diff --git a/src/util/schemas/MemberChangeSchema.ts b/src/util/schemas/MemberChangeSchema.ts index 4156c8c..4cbda69 100644 --- a/src/util/schemas/MemberChangeSchema.ts +++ b/src/util/schemas/MemberChangeSchema.ts @@ -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 interface MemberChangeSchema { roles?: string[]; nick?: string; diff --git a/src/util/schemas/MemberNickChangeSchema.ts b/src/util/schemas/MemberNickChangeSchema.ts index d863038..dca4f21 100644 --- a/src/util/schemas/MemberNickChangeSchema.ts +++ b/src/util/schemas/MemberNickChangeSchema.ts @@ -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 interface MemberNickChangeSchema { nick: string; } diff --git a/src/util/schemas/MessageAcknowledgeSchema.ts b/src/util/schemas/MessageAcknowledgeSchema.ts index 194bb4b..a2fddcd 100644 --- a/src/util/schemas/MessageAcknowledgeSchema.ts +++ b/src/util/schemas/MessageAcknowledgeSchema.ts @@ -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 interface MessageAcknowledgeSchema { manual?: boolean; mention_count?: number; diff --git a/src/util/schemas/MessageCreateSchema.ts b/src/util/schemas/MessageCreateSchema.ts index 7e61168..8a40f52 100644 --- a/src/util/schemas/MessageCreateSchema.ts +++ b/src/util/schemas/MessageCreateSchema.ts @@ -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 { ActionRowComponent, Embed, diff --git a/src/util/schemas/MessageEditSchema.ts b/src/util/schemas/MessageEditSchema.ts index f8c47ec..f44b9cf 100644 --- a/src/util/schemas/MessageEditSchema.ts +++ b/src/util/schemas/MessageEditSchema.ts @@ -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 { MessageCreateSchema } from "./MessageCreateSchema"; export type MessageEditSchema = Omit; diff --git a/src/util/schemas/MfaCodesSchema.ts b/src/util/schemas/MfaCodesSchema.ts index c14af02..b89036d 100644 --- a/src/util/schemas/MfaCodesSchema.ts +++ b/src/util/schemas/MfaCodesSchema.ts @@ -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 interface MfaCodesSchema { /** * @minLength 1 diff --git a/src/util/schemas/ModifyGuildStickerSchema.ts b/src/util/schemas/ModifyGuildStickerSchema.ts index 159cc44..40cb4af 100644 --- a/src/util/schemas/ModifyGuildStickerSchema.ts +++ b/src/util/schemas/ModifyGuildStickerSchema.ts @@ -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 interface ModifyGuildStickerSchema { /** * @minLength 2 diff --git a/src/util/schemas/PasswordResetSchema.ts b/src/util/schemas/PasswordResetSchema.ts index e766f5d..6bb57a9 100644 --- a/src/util/schemas/PasswordResetSchema.ts +++ b/src/util/schemas/PasswordResetSchema.ts @@ -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 interface PasswordResetSchema { /** * @minLength 1 diff --git a/src/util/schemas/PruneSchema.ts b/src/util/schemas/PruneSchema.ts index bea5e2b..b08c3b9 100644 --- a/src/util/schemas/PruneSchema.ts +++ b/src/util/schemas/PruneSchema.ts @@ -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 interface PruneSchema { /** * @min 0 diff --git a/src/util/schemas/PurgeSchema.ts b/src/util/schemas/PurgeSchema.ts index f5ab0a2..45578c5 100644 --- a/src/util/schemas/PurgeSchema.ts +++ b/src/util/schemas/PurgeSchema.ts @@ -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 interface PurgeSchema { before: string; after: string; diff --git a/src/util/schemas/RegisterSchema.ts b/src/util/schemas/RegisterSchema.ts index 0673f59..85fd53f 100644 --- a/src/util/schemas/RegisterSchema.ts +++ b/src/util/schemas/RegisterSchema.ts @@ -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 interface RegisterSchema { /** * @minLength 2 diff --git a/src/util/schemas/RelationshipPostSchema.ts b/src/util/schemas/RelationshipPostSchema.ts index 774c67f..791acec 100644 --- a/src/util/schemas/RelationshipPostSchema.ts +++ b/src/util/schemas/RelationshipPostSchema.ts @@ -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 interface RelationshipPostSchema { discriminator: string; username: string; diff --git a/src/util/schemas/RelationshipPutSchema.ts b/src/util/schemas/RelationshipPutSchema.ts index 1d0b51d..491597c 100644 --- a/src/util/schemas/RelationshipPutSchema.ts +++ b/src/util/schemas/RelationshipPutSchema.ts @@ -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 { RelationshipType } from "@valkyrie/util"; export interface RelationshipPutSchema { diff --git a/src/util/schemas/RequestGuildMembersSchema.ts b/src/util/schemas/RequestGuildMembersSchema.ts index 0a49ee4..b10f5ca 100644 --- a/src/util/schemas/RequestGuildMembersSchema.ts +++ b/src/util/schemas/RequestGuildMembersSchema.ts @@ -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 interface RequestGuildMembersSchema { guild_id: string | [string]; query?: string; diff --git a/src/util/schemas/RoleModifySchema.ts b/src/util/schemas/RoleModifySchema.ts index f3f4a20..a8d6e78 100644 --- a/src/util/schemas/RoleModifySchema.ts +++ b/src/util/schemas/RoleModifySchema.ts @@ -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 interface RoleModifySchema { name?: string; permissions?: string; diff --git a/src/util/schemas/RolePositionUpdateSchema.ts b/src/util/schemas/RolePositionUpdateSchema.ts index 993d1ae..58ec530 100644 --- a/src/util/schemas/RolePositionUpdateSchema.ts +++ b/src/util/schemas/RolePositionUpdateSchema.ts @@ -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 type RolePositionUpdateSchema = { id: string; position: number; diff --git a/src/util/schemas/SelectProtocolSchema.ts b/src/util/schemas/SelectProtocolSchema.ts index 0ba0c23..d487d95 100644 --- a/src/util/schemas/SelectProtocolSchema.ts +++ b/src/util/schemas/SelectProtocolSchema.ts @@ -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 interface SelectProtocolSchema { protocol: "webrtc" | "udp"; data: diff --git a/src/util/schemas/TeamCreateSchema.ts b/src/util/schemas/TeamCreateSchema.ts index bb3b779..859bc37 100644 --- a/src/util/schemas/TeamCreateSchema.ts +++ b/src/util/schemas/TeamCreateSchema.ts @@ -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 interface TeamCreateSchema { name: string; } diff --git a/src/util/schemas/TemplateCreateSchema.ts b/src/util/schemas/TemplateCreateSchema.ts index 160934f..4f085ba 100644 --- a/src/util/schemas/TemplateCreateSchema.ts +++ b/src/util/schemas/TemplateCreateSchema.ts @@ -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 interface TemplateCreateSchema { name: string; description?: string; diff --git a/src/util/schemas/TemplateModifySchema.ts b/src/util/schemas/TemplateModifySchema.ts index f9c9d14..43c4373 100644 --- a/src/util/schemas/TemplateModifySchema.ts +++ b/src/util/schemas/TemplateModifySchema.ts @@ -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 interface TemplateModifySchema { name: string; description?: string; diff --git a/src/util/schemas/TotpDisableSchema.ts b/src/util/schemas/TotpDisableSchema.ts index f4fadb3..8726f29 100644 --- a/src/util/schemas/TotpDisableSchema.ts +++ b/src/util/schemas/TotpDisableSchema.ts @@ -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 interface TotpDisableSchema { /** * @minLength 6 diff --git a/src/util/schemas/TotpEnableSchema.ts b/src/util/schemas/TotpEnableSchema.ts index a97db25..61e2e7b 100644 --- a/src/util/schemas/TotpEnableSchema.ts +++ b/src/util/schemas/TotpEnableSchema.ts @@ -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 interface TotpEnableSchema { /** * @minLength 1 diff --git a/src/util/schemas/TotpSchema.ts b/src/util/schemas/TotpSchema.ts index 941a92e..2c81662 100644 --- a/src/util/schemas/TotpSchema.ts +++ b/src/util/schemas/TotpSchema.ts @@ -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 interface TotpSchema { code: string; ticket: string; diff --git a/src/util/schemas/UserDeleteSchema.ts b/src/util/schemas/UserDeleteSchema.ts index dddba4e..e7fb7a0 100644 --- a/src/util/schemas/UserDeleteSchema.ts +++ b/src/util/schemas/UserDeleteSchema.ts @@ -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 interface UserDeleteSchema { user_id: string; } diff --git a/src/util/schemas/UserGuildSettingsSchema.ts b/src/util/schemas/UserGuildSettingsSchema.ts index 8a21058..6496b26 100644 --- a/src/util/schemas/UserGuildSettingsSchema.ts +++ b/src/util/schemas/UserGuildSettingsSchema.ts @@ -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 { ChannelOverride, UserGuildSettings } from "@valkyrie/util"; // This sucks. I would use a DeepPartial, my own or typeorms, but they both generate inncorect schema diff --git a/src/util/schemas/UserModifySchema.ts b/src/util/schemas/UserModifySchema.ts index 4ce7be9..ccf03aa 100644 --- a/src/util/schemas/UserModifySchema.ts +++ b/src/util/schemas/UserModifySchema.ts @@ -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 interface UserModifySchema { /** * @minLength 2 diff --git a/src/util/schemas/UserNoteUpdateSchema.ts b/src/util/schemas/UserNoteUpdateSchema.ts index 0a73127..2f2a05b 100644 --- a/src/util/schemas/UserNoteUpdateSchema.ts +++ b/src/util/schemas/UserNoteUpdateSchema.ts @@ -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 interface UserNoteUpdateSchema { note: string; } diff --git a/src/util/schemas/UserProfileModifySchema.ts b/src/util/schemas/UserProfileModifySchema.ts index c0c288f..709b8f0 100644 --- a/src/util/schemas/UserProfileModifySchema.ts +++ b/src/util/schemas/UserProfileModifySchema.ts @@ -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 interface UserProfileModifySchema { bio?: string; accent_color?: number | null; diff --git a/src/util/schemas/UserSettingsSchema.ts b/src/util/schemas/UserSettingsSchema.ts index 79e7fb3..4b21154 100644 --- a/src/util/schemas/UserSettingsSchema.ts +++ b/src/util/schemas/UserSettingsSchema.ts @@ -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 { UserSettings } from "@valkyrie/util"; export type UserSettingsSchema = Omit, "index">; diff --git a/src/util/schemas/Validator.ts b/src/util/schemas/Validator.ts index a905d70..c85d63f 100644 --- a/src/util/schemas/Validator.ts +++ b/src/util/schemas/Validator.ts @@ -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 Ajv from "ajv"; import addFormats from "ajv-formats"; import fs from "fs"; diff --git a/src/util/schemas/VanityUrlSchema.ts b/src/util/schemas/VanityUrlSchema.ts index 4dd9b9d..405f944 100644 --- a/src/util/schemas/VanityUrlSchema.ts +++ b/src/util/schemas/VanityUrlSchema.ts @@ -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 interface VanityUrlSchema { /** * @minLength 1 diff --git a/src/util/schemas/VerifyEmailSchema.ts b/src/util/schemas/VerifyEmailSchema.ts index 73304ee..65ac743 100644 --- a/src/util/schemas/VerifyEmailSchema.ts +++ b/src/util/schemas/VerifyEmailSchema.ts @@ -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 interface VerifyEmailSchema { captcha_key?: string | null; token: string; diff --git a/src/util/schemas/VoiceIdentifySchema.ts b/src/util/schemas/VoiceIdentifySchema.ts index df02371..803be0a 100644 --- a/src/util/schemas/VoiceIdentifySchema.ts +++ b/src/util/schemas/VoiceIdentifySchema.ts @@ -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 interface VoiceIdentifySchema { server_id: string; user_id: string; diff --git a/src/util/schemas/VoiceStateUpdateSchema.ts b/src/util/schemas/VoiceStateUpdateSchema.ts index bc80663..76059c3 100644 --- a/src/util/schemas/VoiceStateUpdateSchema.ts +++ b/src/util/schemas/VoiceStateUpdateSchema.ts @@ -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. +*/ + //TODO need more testing when community guild and voice stage channel are working export interface VoiceStateUpdateSchema { guild_id?: string; diff --git a/src/util/schemas/VoiceVideoSchema.ts b/src/util/schemas/VoiceVideoSchema.ts index 0ba519e..e8ce1ab 100644 --- a/src/util/schemas/VoiceVideoSchema.ts +++ b/src/util/schemas/VoiceVideoSchema.ts @@ -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 interface VoiceVideoSchema { audio_ssrc: number; video_ssrc: number; diff --git a/src/util/schemas/WebAuthnSchema.ts b/src/util/schemas/WebAuthnSchema.ts index b0b5888..d55381f 100644 --- a/src/util/schemas/WebAuthnSchema.ts +++ b/src/util/schemas/WebAuthnSchema.ts @@ -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. +*/ + // FIXME: better naming export interface GenerateWebAuthnCredentialsSchema { password: string; diff --git a/src/util/schemas/WebhookCreateSchema.ts b/src/util/schemas/WebhookCreateSchema.ts index 3f41b28..372b99b 100644 --- a/src/util/schemas/WebhookCreateSchema.ts +++ b/src/util/schemas/WebhookCreateSchema.ts @@ -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 interface WebhookCreateSchema { /** * @maxLength 80 diff --git a/src/util/schemas/WebhookExecuteSchema.ts b/src/util/schemas/WebhookExecuteSchema.ts index 408627c..f577f11 100644 --- a/src/util/schemas/WebhookExecuteSchema.ts +++ b/src/util/schemas/WebhookExecuteSchema.ts @@ -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 { Embed } from "../entities"; import { MessageCreateAttachment } from "./MessageCreateSchema"; diff --git a/src/util/schemas/WidgetModifySchema.ts b/src/util/schemas/WidgetModifySchema.ts index 26d4504..18e75c8 100644 --- a/src/util/schemas/WidgetModifySchema.ts +++ b/src/util/schemas/WidgetModifySchema.ts @@ -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 interface WidgetModifySchema { enabled: boolean; // whether the widget is enabled channel_id: string; // the widget channel id diff --git a/src/util/schemas/index.ts b/src/util/schemas/index.ts index f9b6dc3..6b47772 100644 --- a/src/util/schemas/index.ts +++ b/src/util/schemas/index.ts @@ -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 "./AckBulkSchema"; export * from "./ActivitySchema"; export * from "./ApplicationAuthorizeSchema"; diff --git a/src/util/schemas/responses/APIErrorOrCaptchaResponse.ts b/src/util/schemas/responses/APIErrorOrCaptchaResponse.ts index c9a0e5b..f735f09 100644 --- a/src/util/schemas/responses/APIErrorOrCaptchaResponse.ts +++ b/src/util/schemas/responses/APIErrorOrCaptchaResponse.ts @@ -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 { APIErrorResponse } from "./APIErrorResponse"; import { CaptchaRequiredResponse } from "./CaptchaRequiredResponse"; diff --git a/src/util/schemas/responses/APIErrorResponse.ts b/src/util/schemas/responses/APIErrorResponse.ts index 25bb950..f8f1c34 100644 --- a/src/util/schemas/responses/APIErrorResponse.ts +++ b/src/util/schemas/responses/APIErrorResponse.ts @@ -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 interface APIErrorResponse { code: number; message: string; diff --git a/src/util/schemas/responses/BackupCodesChallengeResponse.ts b/src/util/schemas/responses/BackupCodesChallengeResponse.ts index 5473ad1..d7cc63d 100644 --- a/src/util/schemas/responses/BackupCodesChallengeResponse.ts +++ b/src/util/schemas/responses/BackupCodesChallengeResponse.ts @@ -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 interface BackupCodesChallengeResponse { nonce: string; regenerate_nonce: string; diff --git a/src/util/schemas/responses/CaptchaRequiredResponse.ts b/src/util/schemas/responses/CaptchaRequiredResponse.ts index 9f7f02f..2f44661 100644 --- a/src/util/schemas/responses/CaptchaRequiredResponse.ts +++ b/src/util/schemas/responses/CaptchaRequiredResponse.ts @@ -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 interface CaptchaRequiredResponse { captcha_key: string; captcha_sitekey: string; diff --git a/src/util/schemas/responses/DiscoverableGuildsResponse.ts b/src/util/schemas/responses/DiscoverableGuildsResponse.ts index 2a9fb1b..9d422d9 100644 --- a/src/util/schemas/responses/DiscoverableGuildsResponse.ts +++ b/src/util/schemas/responses/DiscoverableGuildsResponse.ts @@ -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 { Guild } from "../../entities"; export interface DiscoverableGuildsResponse { diff --git a/src/util/schemas/responses/GatewayBotResponse.ts b/src/util/schemas/responses/GatewayBotResponse.ts index 30f1f57..0eed5cf 100644 --- a/src/util/schemas/responses/GatewayBotResponse.ts +++ b/src/util/schemas/responses/GatewayBotResponse.ts @@ -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 interface GatewayBotResponse { url: string; shards: number; diff --git a/src/util/schemas/responses/GatewayResponse.ts b/src/util/schemas/responses/GatewayResponse.ts index e909f7b..e5b4bb2 100644 --- a/src/util/schemas/responses/GatewayResponse.ts +++ b/src/util/schemas/responses/GatewayResponse.ts @@ -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 interface GatewayResponse { url: string; } diff --git a/src/util/schemas/responses/GenerateRegistrationTokensResponse.ts b/src/util/schemas/responses/GenerateRegistrationTokensResponse.ts index 8816eab..4768595 100644 --- a/src/util/schemas/responses/GenerateRegistrationTokensResponse.ts +++ b/src/util/schemas/responses/GenerateRegistrationTokensResponse.ts @@ -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 interface GenerateRegistrationTokensResponse { tokens: string[]; } diff --git a/src/util/schemas/responses/GuildBansResponse.ts b/src/util/schemas/responses/GuildBansResponse.ts index 876a4bc..65579bb 100644 --- a/src/util/schemas/responses/GuildBansResponse.ts +++ b/src/util/schemas/responses/GuildBansResponse.ts @@ -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 interface GuildBansResponse { reason: string; user: { diff --git a/src/util/schemas/responses/GuildCreateResponse.ts b/src/util/schemas/responses/GuildCreateResponse.ts index 145c426..1841b56 100644 --- a/src/util/schemas/responses/GuildCreateResponse.ts +++ b/src/util/schemas/responses/GuildCreateResponse.ts @@ -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 { GuildUpdateSchema, GuildWelcomeScreen } from "@valkyrie/util"; export interface GuildCreateResponse extends Omit { diff --git a/src/util/schemas/responses/GuildDiscoveryRequirements.ts b/src/util/schemas/responses/GuildDiscoveryRequirements.ts index 731976f..1929de3 100644 --- a/src/util/schemas/responses/GuildDiscoveryRequirements.ts +++ b/src/util/schemas/responses/GuildDiscoveryRequirements.ts @@ -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 interface GuildDiscoveryRequirementsResponse { uild_id: string; safe_environment: boolean; diff --git a/src/util/schemas/responses/GuildMessagesSearchResponse.ts b/src/util/schemas/responses/GuildMessagesSearchResponse.ts index 2932271..85a3afd 100644 --- a/src/util/schemas/responses/GuildMessagesSearchResponse.ts +++ b/src/util/schemas/responses/GuildMessagesSearchResponse.ts @@ -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 { ActionRowComponent, Attachment, diff --git a/src/util/schemas/responses/GuildPruneResponse.ts b/src/util/schemas/responses/GuildPruneResponse.ts index fb1abb8..f9e3663 100644 --- a/src/util/schemas/responses/GuildPruneResponse.ts +++ b/src/util/schemas/responses/GuildPruneResponse.ts @@ -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 interface GuildPruneResponse { pruned: number; } diff --git a/src/util/schemas/responses/GuildRecommendationsResponse.ts b/src/util/schemas/responses/GuildRecommendationsResponse.ts index 211670a..70658f0 100644 --- a/src/util/schemas/responses/GuildRecommendationsResponse.ts +++ b/src/util/schemas/responses/GuildRecommendationsResponse.ts @@ -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 { Guild } from "../../entities"; export interface GuildRecommendationsResponse { diff --git a/src/util/schemas/responses/GuildVanityUrl.ts b/src/util/schemas/responses/GuildVanityUrl.ts index ff37bf4..d26504f 100644 --- a/src/util/schemas/responses/GuildVanityUrl.ts +++ b/src/util/schemas/responses/GuildVanityUrl.ts @@ -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 interface GuildVanityUrl { code: string; uses: number; diff --git a/src/util/schemas/responses/GuildVoiceRegionsResponse.ts b/src/util/schemas/responses/GuildVoiceRegionsResponse.ts index 8190d5f..ea89484 100644 --- a/src/util/schemas/responses/GuildVoiceRegionsResponse.ts +++ b/src/util/schemas/responses/GuildVoiceRegionsResponse.ts @@ -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 interface GuildVoiceRegion { id: string; name: string; diff --git a/src/util/schemas/responses/GuildWidgetJsonResponse.ts b/src/util/schemas/responses/GuildWidgetJsonResponse.ts index a37c145..375657a 100644 --- a/src/util/schemas/responses/GuildWidgetJsonResponse.ts +++ b/src/util/schemas/responses/GuildWidgetJsonResponse.ts @@ -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 { ClientStatus } from "@valkyrie/util"; export interface GuildWidgetJsonResponse { diff --git a/src/util/schemas/responses/GuildWidgetSettingsResponse.ts b/src/util/schemas/responses/GuildWidgetSettingsResponse.ts index 52372c0..7c636a5 100644 --- a/src/util/schemas/responses/GuildWidgetSettingsResponse.ts +++ b/src/util/schemas/responses/GuildWidgetSettingsResponse.ts @@ -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 { Snowflake } from "@valkyrie/util"; export interface GuildWidgetSettingsResponse { diff --git a/src/util/schemas/responses/InstanceDomainsResponse.ts b/src/util/schemas/responses/InstanceDomainsResponse.ts index 6036749..aad28d6 100644 --- a/src/util/schemas/responses/InstanceDomainsResponse.ts +++ b/src/util/schemas/responses/InstanceDomainsResponse.ts @@ -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 interface InstanceDomainsResponse { cdn: string; gateway: string; diff --git a/src/util/schemas/responses/InstancePingResponse.ts b/src/util/schemas/responses/InstancePingResponse.ts index 5f1a948..5eceba2 100644 --- a/src/util/schemas/responses/InstancePingResponse.ts +++ b/src/util/schemas/responses/InstancePingResponse.ts @@ -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 interface InstancePingResponse { ping: "pong!"; instance: { diff --git a/src/util/schemas/responses/InstanceStatsResponse.ts b/src/util/schemas/responses/InstanceStatsResponse.ts index d24fd43..7a7c1c5 100644 --- a/src/util/schemas/responses/InstanceStatsResponse.ts +++ b/src/util/schemas/responses/InstanceStatsResponse.ts @@ -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 interface InstanceStatsResponse { counts: { user: number; diff --git a/src/util/schemas/responses/LocationMetadataResponse.ts b/src/util/schemas/responses/LocationMetadataResponse.ts index 5533755..b5319a1 100644 --- a/src/util/schemas/responses/LocationMetadataResponse.ts +++ b/src/util/schemas/responses/LocationMetadataResponse.ts @@ -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 interface LocationMetadataResponse { consent_required: boolean; country_code: string; diff --git a/src/util/schemas/responses/MemberJoinGuildResponse.ts b/src/util/schemas/responses/MemberJoinGuildResponse.ts index fe5d03f..8298932 100644 --- a/src/util/schemas/responses/MemberJoinGuildResponse.ts +++ b/src/util/schemas/responses/MemberJoinGuildResponse.ts @@ -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 { GuildCreateResponse } from "@valkyrie/util"; import { Emoji, Role, Sticker } from "../../entities"; diff --git a/src/util/schemas/responses/OAuthAuthorizeResponse.ts b/src/util/schemas/responses/OAuthAuthorizeResponse.ts index 60d6d2e..cb431f4 100644 --- a/src/util/schemas/responses/OAuthAuthorizeResponse.ts +++ b/src/util/schemas/responses/OAuthAuthorizeResponse.ts @@ -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 interface OAuthAuthorizeResponse { location: string; } diff --git a/src/util/schemas/responses/TeamListResponse.ts b/src/util/schemas/responses/TeamListResponse.ts index d4e7369..27b9f40 100644 --- a/src/util/schemas/responses/TeamListResponse.ts +++ b/src/util/schemas/responses/TeamListResponse.ts @@ -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 { Team } from "@valkyrie/util"; export interface TeamListResponse extends Array {} diff --git a/src/util/schemas/responses/Tenor.ts b/src/util/schemas/responses/Tenor.ts index 9dddf9d..40d16b9 100644 --- a/src/util/schemas/responses/Tenor.ts +++ b/src/util/schemas/responses/Tenor.ts @@ -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 enum TenorMediaTypes { gif, mediumgif, diff --git a/src/util/schemas/responses/TokenResponse.ts b/src/util/schemas/responses/TokenResponse.ts index 7e93055..a15ea91 100644 --- a/src/util/schemas/responses/TokenResponse.ts +++ b/src/util/schemas/responses/TokenResponse.ts @@ -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 { BackupCode, UserSettings } from "../../entities"; export interface TokenResponse { diff --git a/src/util/schemas/responses/TypedResponses.ts b/src/util/schemas/responses/TypedResponses.ts index aa95d2e..5074d69 100644 --- a/src/util/schemas/responses/TypedResponses.ts +++ b/src/util/schemas/responses/TypedResponses.ts @@ -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 { GuildCreateResponse } from "@valkyrie/util"; import { GeneralConfiguration, LimitsConfiguration } from "../../config"; import { DmChannelDTO } from "../../dtos"; diff --git a/src/util/schemas/responses/UpdatesResponse.ts b/src/util/schemas/responses/UpdatesResponse.ts index 6b8566f..1033b28 100644 --- a/src/util/schemas/responses/UpdatesResponse.ts +++ b/src/util/schemas/responses/UpdatesResponse.ts @@ -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 interface UpdatesResponse { name: string; pub_date: string; diff --git a/src/util/schemas/responses/UserNoteResponse.ts b/src/util/schemas/responses/UserNoteResponse.ts index b142811..d4486b8 100644 --- a/src/util/schemas/responses/UserNoteResponse.ts +++ b/src/util/schemas/responses/UserNoteResponse.ts @@ -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 interface UserNoteResponse { note: string; note_user_id: string; diff --git a/src/util/schemas/responses/UserProfileResponse.ts b/src/util/schemas/responses/UserProfileResponse.ts index 6251a95..0de4757 100644 --- a/src/util/schemas/responses/UserProfileResponse.ts +++ b/src/util/schemas/responses/UserProfileResponse.ts @@ -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 { Badge, Member, diff --git a/src/util/schemas/responses/UserRelationsResponse.ts b/src/util/schemas/responses/UserRelationsResponse.ts index a63ac09..ec3bc55 100644 --- a/src/util/schemas/responses/UserRelationsResponse.ts +++ b/src/util/schemas/responses/UserRelationsResponse.ts @@ -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 { User } from "@valkyrie/util"; export type UserRelationsResponse = (Pick & diff --git a/src/util/schemas/responses/UserRelationshipsResponse.ts b/src/util/schemas/responses/UserRelationshipsResponse.ts index dff2f11..8b06ffa 100644 --- a/src/util/schemas/responses/UserRelationshipsResponse.ts +++ b/src/util/schemas/responses/UserRelationshipsResponse.ts @@ -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 { PublicUser, RelationshipType } from "../../entities"; export interface UserRelationshipsResponse { diff --git a/src/util/schemas/responses/WebAuthnCreateResponse.ts b/src/util/schemas/responses/WebAuthnCreateResponse.ts index 9aa9e20..c353d28 100644 --- a/src/util/schemas/responses/WebAuthnCreateResponse.ts +++ b/src/util/schemas/responses/WebAuthnCreateResponse.ts @@ -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 interface WebAuthnCreateResponse { name: string; id: string; diff --git a/src/util/schemas/responses/WebhookCreateResponse.ts b/src/util/schemas/responses/WebhookCreateResponse.ts index ae14263..6e62d12 100644 --- a/src/util/schemas/responses/WebhookCreateResponse.ts +++ b/src/util/schemas/responses/WebhookCreateResponse.ts @@ -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 { User, Webhook } from "../../entities"; export interface WebhookCreateResponse { diff --git a/src/util/schemas/responses/index.ts b/src/util/schemas/responses/index.ts index b742598..0838214 100644 --- a/src/util/schemas/responses/index.ts +++ b/src/util/schemas/responses/index.ts @@ -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 "./APIErrorOrCaptchaResponse"; export * from "./APIErrorResponse"; export * from "./BackupCodesChallengeResponse"; diff --git a/src/util/util/ApiError.ts b/src/util/util/ApiError.ts index 0fce688..0011218 100644 --- a/src/util/util/ApiError.ts +++ b/src/util/util/ApiError.ts @@ -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 class ApiError extends Error { constructor( readonly message: string, diff --git a/src/util/util/Application.ts b/src/util/util/Application.ts index 23019a7..91d35f1 100644 --- a/src/util/util/Application.ts +++ b/src/util/util/Application.ts @@ -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 } from "express"; import { Application, User } from "../entities"; diff --git a/src/util/util/Array.ts b/src/util/util/Array.ts index af9fe27..303061f 100644 --- a/src/util/util/Array.ts +++ b/src/util/util/Array.ts @@ -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. +*/ + // TODO: remove this function. export function containsAll(arr: unknown[], target: unknown[]) { diff --git a/src/util/util/AutoUpdate.ts b/src/util/util/AutoUpdate.ts index df9da8d..7fa9b9f 100644 --- a/src/util/util/AutoUpdate.ts +++ b/src/util/util/AutoUpdate.ts @@ -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 "missing-native-js-functions"; import fetch from "node-fetch"; import { ProxyAgent } from "proxy-agent"; diff --git a/src/util/util/Categories.ts b/src/util/util/Categories.ts index cd706a8..896b333 100644 --- a/src/util/util/Categories.ts +++ b/src/util/util/Categories.ts @@ -1 +1,18 @@ +/* + 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. +*/ + //TODO: populate default discord categories + init, get and set methods diff --git a/src/util/util/Config.ts b/src/util/util/Config.ts index 3b1ca4d..b761dfe 100644 --- a/src/util/util/Config.ts +++ b/src/util/util/Config.ts @@ -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 { existsSync } from "fs"; import fs from "fs/promises"; import { OrmUtils } from ".."; diff --git a/src/util/util/Constants.ts b/src/util/util/Constants.ts index 0810f81..7463020 100644 --- a/src/util/util/Constants.ts +++ b/src/util/util/Constants.ts @@ -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 { ApiError } from "./ApiError"; export const WSCodes = { diff --git a/src/util/util/Database.ts b/src/util/util/Database.ts index 1003341..00d7615 100644 --- a/src/util/util/Database.ts +++ b/src/util/util/Database.ts @@ -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 } from "dotenv"; import path from "path"; import { green, red, yellow } from "picocolors"; diff --git a/src/util/util/Event.ts b/src/util/util/Event.ts index 968e2ef..3d767f9 100644 --- a/src/util/util/Event.ts +++ b/src/util/util/Event.ts @@ -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 } from "amqplib"; import { RabbitMQ } from "./RabbitMQ"; import EventEmitter from "events"; diff --git a/src/util/util/FieldError.ts b/src/util/util/FieldError.ts index d0e3e40..c761f0e 100644 --- a/src/util/util/FieldError.ts +++ b/src/util/util/FieldError.ts @@ -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 "missing-native-js-functions"; export function FieldErrors( diff --git a/src/util/util/Gifs.ts b/src/util/util/Gifs.ts index a5a5e64..86931f0 100644 --- a/src/util/util/Gifs.ts +++ b/src/util/util/Gifs.ts @@ -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 { HTTPError } from "lambert-server"; import { Config } from "./Config"; import { TenorGif } from ".."; diff --git a/src/util/util/Intents.ts b/src/util/util/Intents.ts index b9f4d65..01aaca7 100644 --- a/src/util/util/Intents.ts +++ b/src/util/util/Intents.ts @@ -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 { BitField } from "./BitField"; export class Intents extends BitField { diff --git a/src/util/util/InvisibleCharacters.ts b/src/util/util/InvisibleCharacters.ts index c45915f..37988ab 100644 --- a/src/util/util/InvisibleCharacters.ts +++ b/src/util/util/InvisibleCharacters.ts @@ -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. +*/ + // List from https://invisible-characters.com/ export const InvisibleCharacters = [ "\u{9}", //Tab diff --git a/src/util/util/JSON.ts b/src/util/util/JSON.ts index f903136..24bdd95 100644 --- a/src/util/util/JSON.ts +++ b/src/util/util/JSON.ts @@ -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. +*/ + // Discord.com sends ISO strings with +00:00 extension, not Z // This causes issues with Python bot libs const JSONReplacer = function ( diff --git a/src/util/util/RabbitMQ.ts b/src/util/util/RabbitMQ.ts index f59f6fe..e796085 100644 --- a/src/util/util/RabbitMQ.ts +++ b/src/util/util/RabbitMQ.ts @@ -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 amqp, { Connection, Channel } from "amqplib"; import { Config } from "./Config"; diff --git a/src/util/util/Regex.ts b/src/util/util/Regex.ts index 83fc9fe..c6eab9c 100644 --- a/src/util/util/Regex.ts +++ b/src/util/util/Regex.ts @@ -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 const DOUBLE_WHITE_SPACE = /\s\s+/g; export const SPECIAL_CHAR = /[@#`:\r\n\t\f\v\p{C}]/gu; export const CHANNEL_MENTION = /<#(\d+)>/g; diff --git a/src/util/util/Rights.ts b/src/util/util/Rights.ts index 463e326..7b303ce 100644 --- a/src/util/util/Rights.ts +++ b/src/util/util/Rights.ts @@ -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 { BitField } from "./BitField"; import "missing-native-js-functions"; import { BitFieldResolvable, BitFlag } from "./BitField"; diff --git a/src/util/util/Sentry.ts b/src/util/util/Sentry.ts index b5db288..bfbad63 100644 --- a/src/util/util/Sentry.ts +++ b/src/util/util/Sentry.ts @@ -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 { yellow } from "picocolors"; import { Config } from "./Config"; diff --git a/src/util/util/String.ts b/src/util/util/String.ts index da49f22..b006e01 100644 --- a/src/util/util/String.ts +++ b/src/util/util/String.ts @@ -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 { SPECIAL_CHAR } from "./Regex"; export function trimSpecial(str?: string): string { diff --git a/src/util/util/Token.ts b/src/util/util/Token.ts index 117c8ef..762f257 100644 --- a/src/util/util/Token.ts +++ b/src/util/util/Token.ts @@ -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 jwt, { VerifyOptions } from "jsonwebtoken"; import { Config } from "./Config"; import { User } from "../entities"; diff --git a/src/util/util/TraverseDirectory.ts b/src/util/util/TraverseDirectory.ts index dc55389..2e99de2 100644 --- a/src/util/util/TraverseDirectory.ts +++ b/src/util/util/TraverseDirectory.ts @@ -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 { Server, traverseDirectory } from "lambert-server"; //if we're using ts-node, use ts files instead of js diff --git a/src/util/util/WebAuthn.ts b/src/util/util/WebAuthn.ts index 95d19be..053271d 100644 --- a/src/util/util/WebAuthn.ts +++ b/src/util/util/WebAuthn.ts @@ -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 { Fido2Lib } from "fido2-lib"; import jwt from "jsonwebtoken"; import { Config } from "./Config"; diff --git a/src/util/util/cdn.ts b/src/util/util/cdn.ts index 0eba781..bf82040 100644 --- a/src/util/util/cdn.ts +++ b/src/util/util/cdn.ts @@ -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 FormData from "form-data"; import { HTTPError } from "lambert-server"; import fetch from "node-fetch"; diff --git a/src/util/util/email/index.ts b/src/util/util/email/index.ts index e216863..0de063b 100644 --- a/src/util/util/email/index.ts +++ b/src/util/util/email/index.ts @@ -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/promises"; import path from "node:path"; import { SentMessageInfo, Transporter } from "nodemailer"; diff --git a/src/util/util/email/transports/MailGun.ts b/src/util/util/email/transports/MailGun.ts index 8f4de45..b8dedbb 100644 --- a/src/util/util/email/transports/MailGun.ts +++ b/src/util/util/email/transports/MailGun.ts @@ -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 } from "@valkyrie/util"; import nodemailer from "nodemailer"; diff --git a/src/util/util/email/transports/MailJet.ts b/src/util/util/email/transports/MailJet.ts index b8482a5..4d088ac 100644 --- a/src/util/util/email/transports/MailJet.ts +++ b/src/util/util/email/transports/MailJet.ts @@ -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 } from "@valkyrie/util"; import nodemailer from "nodemailer"; diff --git a/src/util/util/email/transports/SMTP.ts b/src/util/util/email/transports/SMTP.ts index cb5d9ef..a18f4a3 100644 --- a/src/util/util/email/transports/SMTP.ts +++ b/src/util/util/email/transports/SMTP.ts @@ -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 } from "@valkyrie/util"; import nodemailer from "nodemailer"; diff --git a/src/util/util/email/transports/SendGrid.ts b/src/util/util/email/transports/SendGrid.ts index 0b6c348..80ad398 100644 --- a/src/util/util/email/transports/SendGrid.ts +++ b/src/util/util/email/transports/SendGrid.ts @@ -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 } from "@valkyrie/util"; import nodemailer from "nodemailer"; diff --git a/src/util/util/email/transports/index.ts b/src/util/util/email/transports/index.ts index d14acbf..3808557 100644 --- a/src/util/util/email/transports/index.ts +++ b/src/util/util/email/transports/index.ts @@ -1 +1,18 @@ +/* + 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 "./SMTP"; diff --git a/src/util/util/index.ts b/src/util/util/index.ts index 72ed59d..1836d86 100644 --- a/src/util/util/index.ts +++ b/src/util/util/index.ts @@ -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 "./ApiError"; export * from "./Array"; export * from "./BitField"; diff --git a/src/webrtc/Server.ts b/src/webrtc/Server.ts index 60bc13a..539eaeb 100644 --- a/src/webrtc/Server.ts +++ b/src/webrtc/Server.ts @@ -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 { closeDatabase, Config, initDatabase, initEvent } from "@valkyrie/util"; import dotenv from "dotenv"; import http from "http"; diff --git a/src/webrtc/events/Close.ts b/src/webrtc/events/Close.ts index 1d29751..2adf4e8 100644 --- a/src/webrtc/events/Close.ts +++ b/src/webrtc/events/Close.ts @@ -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 { WebSocket } from "@valkyrie/gateway"; import { Session } from "@valkyrie/util"; diff --git a/src/webrtc/events/Connection.ts b/src/webrtc/events/Connection.ts index fd52139..51a7bc8 100644 --- a/src/webrtc/events/Connection.ts +++ b/src/webrtc/events/Connection.ts @@ -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 { CLOSECODES, Send, setHeartbeat, WebSocket } from "@valkyrie/gateway"; import { IncomingMessage } from "http"; import { URL } from "url"; diff --git a/src/webrtc/events/Message.ts b/src/webrtc/events/Message.ts index bc8789d..419b244 100644 --- a/src/webrtc/events/Message.ts +++ b/src/webrtc/events/Message.ts @@ -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 { CLOSECODES, Payload, WebSocket } from "@valkyrie/gateway"; import { Tuple } from "lambert-server"; import OPCodeHandlers from "../opcodes"; diff --git a/src/webrtc/index.ts b/src/webrtc/index.ts index ccb088a..fed8540 100644 --- a/src/webrtc/index.ts +++ b/src/webrtc/index.ts @@ -1,2 +1,19 @@ +/* + 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 "./util/index"; diff --git a/src/webrtc/opcodes/BackendVersion.ts b/src/webrtc/opcodes/BackendVersion.ts index d6700c1..1376a0f 100644 --- a/src/webrtc/opcodes/BackendVersion.ts +++ b/src/webrtc/opcodes/BackendVersion.ts @@ -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 { Payload, Send, WebSocket } from "@valkyrie/gateway"; import { VoiceOPCodes } from "../util"; diff --git a/src/webrtc/opcodes/Heartbeat.ts b/src/webrtc/opcodes/Heartbeat.ts index 8c09e8e..e91667f 100644 --- a/src/webrtc/opcodes/Heartbeat.ts +++ b/src/webrtc/opcodes/Heartbeat.ts @@ -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 { CLOSECODES, Payload, diff --git a/src/webrtc/opcodes/Identify.ts b/src/webrtc/opcodes/Identify.ts index 204723e..52e7f30 100644 --- a/src/webrtc/opcodes/Identify.ts +++ b/src/webrtc/opcodes/Identify.ts @@ -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 { CLOSECODES, Payload, Send, WebSocket } from "@valkyrie/gateway"; import { validateSchema, diff --git a/src/webrtc/opcodes/SelectProtocol.ts b/src/webrtc/opcodes/SelectProtocol.ts index 353645f..7ac071f 100644 --- a/src/webrtc/opcodes/SelectProtocol.ts +++ b/src/webrtc/opcodes/SelectProtocol.ts @@ -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 { Payload, Send, WebSocket } from "@valkyrie/gateway"; import { SelectProtocolSchema, validateSchema } from "@valkyrie/util"; import { PublicIP, VoiceOPCodes, endpoint } from "@valkyrie/webrtc"; diff --git a/src/webrtc/opcodes/Speaking.ts b/src/webrtc/opcodes/Speaking.ts index 52af601..2108d18 100644 --- a/src/webrtc/opcodes/Speaking.ts +++ b/src/webrtc/opcodes/Speaking.ts @@ -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 { Payload, Send, WebSocket } from "@valkyrie/gateway"; import { getClients, VoiceOPCodes } from "../util"; diff --git a/src/webrtc/opcodes/Video.ts b/src/webrtc/opcodes/Video.ts index 2c717c0..3a6535a 100644 --- a/src/webrtc/opcodes/Video.ts +++ b/src/webrtc/opcodes/Video.ts @@ -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 { Payload, Send, WebSocket } from "@valkyrie/gateway"; import { validateSchema, VoiceVideoSchema } from "@valkyrie/util"; import { channels, getClients, VoiceOPCodes } from "@valkyrie/webrtc"; diff --git a/src/webrtc/opcodes/index.ts b/src/webrtc/opcodes/index.ts index 95fcbd6..51ecf6e 100644 --- a/src/webrtc/opcodes/index.ts +++ b/src/webrtc/opcodes/index.ts @@ -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 { Payload, WebSocket } from "@valkyrie/gateway"; import { VoiceOPCodes } from "../util"; import { onBackendVersion } from "./BackendVersion"; diff --git a/src/webrtc/start.ts b/src/webrtc/start.ts index 5736190..06a6927 100644 --- a/src/webrtc/start.ts +++ b/src/webrtc/start.ts @@ -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. +*/ + process.on("uncaughtException", console.error); process.on("unhandledRejection", console.error); diff --git a/src/webrtc/util/Constants.ts b/src/webrtc/util/Constants.ts index d813613..0cf2926 100644 --- a/src/webrtc/util/Constants.ts +++ b/src/webrtc/util/Constants.ts @@ -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 enum VoiceStatus { CONNECTED = 0, CONNECTING = 1, diff --git a/src/webrtc/util/MediaServer.ts b/src/webrtc/util/MediaServer.ts index 64d02c9..d28dc20 100644 --- a/src/webrtc/util/MediaServer.ts +++ b/src/webrtc/util/MediaServer.ts @@ -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 { WebSocket } from "@valkyrie/gateway"; import MediaServer, { IncomingStream, diff --git a/src/webrtc/util/index.ts b/src/webrtc/util/index.ts index f0d4904..735402e 100644 --- a/src/webrtc/util/index.ts +++ b/src/webrtc/util/index.ts @@ -1,2 +1,19 @@ +/* + 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 "./Constants"; export * from "./MediaServer";