diff --git a/.lintstagedrc.mjs b/.lintstagedrc.mjs
index 1bf04eda..909a1050 100644
--- a/.lintstagedrc.mjs
+++ b/.lintstagedrc.mjs
@@ -1,4 +1,4 @@
export default {
"*.{j,t}s": ["eslint --concurrency 4" /* sweet spot it seems */, "prettier --write"],
- "src/schemas/{*,**/*}.ts": [() => "tsc -b -v", () => "node scripts/schema.js", () => "node scripts/openapi.js"],
+ "src/schemas/{*,**/*}.ts": [() => "tsc -b -v", () => "node scripts/schema.js", () => "node scripts/openapi.js", () => "git add assets/schemas.json assets/openapi.json"],
};
diff --git a/src/schemas/uncategorised/AckBulkSchema.ts b/src/schemas/uncategorised/AckBulkSchema.ts
deleted file mode 100644
index d5f160af..00000000
--- a/src/schemas/uncategorised/AckBulkSchema.ts
+++ /dev/null
@@ -1,25 +0,0 @@
-/*
- Spacebar: A FOSS re-implementation and extension of the Discord.com backend.
- Copyright (C) 2023 Spacebar and Spacebar 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 AckBulkSchema {
- read_states: {
- channel_id: string;
- message_id: string;
- read_state_type: number; // WHat is this?
- }[];
-}
diff --git a/src/schemas/uncategorised/MessageAcknowledgeSchema.ts b/src/schemas/uncategorised/MessageAcknowledgeSchema.ts
index dd6e64b0..331b2575 100644
--- a/src/schemas/uncategorised/MessageAcknowledgeSchema.ts
+++ b/src/schemas/uncategorised/MessageAcknowledgeSchema.ts
@@ -24,6 +24,14 @@ export interface MessageAcknowledgeSchema {
token?: string;
}
+export interface AckBulkSchema {
+ read_states: {
+ channel_id: string;
+ message_id: string;
+ read_state_type: ReadStateType; // WHat is this?
+ }[];
+}
+
export interface AcknowledgeDeleteSchema {
read_state_type?: ReadStateType;
version?: number;
diff --git a/src/schemas/uncategorised/index.ts b/src/schemas/uncategorised/index.ts
index f509bdd4..28ac51d5 100644
--- a/src/schemas/uncategorised/index.ts
+++ b/src/schemas/uncategorised/index.ts
@@ -15,7 +15,6 @@
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 "./AckBulkSchema";
export * from "./ActivitySchema";
export * from "./ApplicationAuthorizeSchema";
export * from "./AutomodRuleSchema";
|