summary refs log tree commit diff
path: root/src/util/interfaces
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/interfaces')
-rw-r--r--src/util/interfaces/Activity.ts18
-rw-r--r--src/util/interfaces/Event.ts18
-rw-r--r--src/util/interfaces/Interaction.ts18
-rw-r--r--src/util/interfaces/Presence.ts18
-rw-r--r--src/util/interfaces/Status.ts18
-rw-r--r--src/util/interfaces/index.ts18
6 files changed, 108 insertions, 0 deletions
diff --git a/src/util/interfaces/Activity.ts b/src/util/interfaces/Activity.ts

index d16160d3..7398fc62 100644 --- a/src/util/interfaces/Activity.ts +++ b/src/util/interfaces/Activity.ts
@@ -1,3 +1,21 @@ +/* + Fosscord: A FOSS re-implementation and extension of the Discord.com backend. + Copyright (C) 2023 Fosscord and Fosscord Contributors + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU Affero General Public License as published + by the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Affero General Public License for more details. + + You should have received a copy of the GNU Affero General Public License + along with this program. If not, see <https://www.gnu.org/licenses/>. +*/ + 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/Event.ts b/src/util/interfaces/Event.ts
index c88d5750..e902cdf3 100644 --- a/src/util/interfaces/Event.ts +++ b/src/util/interfaces/Event.ts
@@ -1,3 +1,21 @@ +/* + Fosscord: A FOSS re-implementation and extension of the Discord.com backend. + Copyright (C) 2023 Fosscord and Fosscord Contributors + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU Affero General Public License as published + by the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Affero General Public License for more details. + + You should have received a copy of the GNU Affero General Public License + along with this program. If not, see <https://www.gnu.org/licenses/>. +*/ + import { RelationshipType, ConnectedAccount, diff --git a/src/util/interfaces/Interaction.ts b/src/util/interfaces/Interaction.ts
index 5d3aae24..8695fca9 100644 --- a/src/util/interfaces/Interaction.ts +++ b/src/util/interfaces/Interaction.ts
@@ -1,3 +1,21 @@ +/* + Fosscord: A FOSS re-implementation and extension of the Discord.com backend. + Copyright (C) 2023 Fosscord and Fosscord Contributors + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU Affero General Public License as published + by the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Affero General Public License for more details. + + You should have received a copy of the GNU Affero General Public License + along with this program. If not, see <https://www.gnu.org/licenses/>. +*/ + import { AllowedMentions, Embed } from "../entities/Message"; export interface Interaction { diff --git a/src/util/interfaces/Presence.ts b/src/util/interfaces/Presence.ts
index 7663891a..45260606 100644 --- a/src/util/interfaces/Presence.ts +++ b/src/util/interfaces/Presence.ts
@@ -1,3 +1,21 @@ +/* + Fosscord: A FOSS re-implementation and extension of the Discord.com backend. + Copyright (C) 2023 Fosscord and Fosscord Contributors + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU Affero General Public License as published + by the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Affero General Public License for more details. + + You should have received a copy of the GNU Affero General Public License + along with this program. If not, see <https://www.gnu.org/licenses/>. +*/ + 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 5d2e1bba..714c623b 100644 --- a/src/util/interfaces/Status.ts +++ b/src/util/interfaces/Status.ts
@@ -1,3 +1,21 @@ +/* + Fosscord: A FOSS re-implementation and extension of the Discord.com backend. + Copyright (C) 2023 Fosscord and Fosscord Contributors + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU Affero General Public License as published + by the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Affero General Public License for more details. + + You should have received a copy of the GNU Affero General Public License + along with this program. If not, see <https://www.gnu.org/licenses/>. +*/ + 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 ab7fa429..fa259ce1 100644 --- a/src/util/interfaces/index.ts +++ b/src/util/interfaces/index.ts
@@ -1,3 +1,21 @@ +/* + Fosscord: A FOSS re-implementation and extension of the Discord.com backend. + Copyright (C) 2023 Fosscord and Fosscord Contributors + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU Affero General Public License as published + by the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Affero General Public License for more details. + + You should have received a copy of the GNU Affero General Public License + along with this program. If not, see <https://www.gnu.org/licenses/>. +*/ + export * from "./Activity"; export * from "./Presence"; export * from "./Interaction";