fixing lots of openapi crap

This commit is contained in:
Puyodead1
2023-04-13 15:20:10 -04:00
parent 777e7208dc
commit 6b3a3b750f
60 changed files with 79183 additions and 79519 deletions
+3 -1
View File
@@ -18,7 +18,9 @@
export interface LazyRequestSchema {
guild_id: string;
channels?: Record<string, [number, number][]>;
channels?: {
[key: string]: [number, number][];
};
activities?: boolean;
threads?: boolean;
typing?: true;
+2 -2
View File
@@ -16,12 +16,12 @@
along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
import { UserGuildSettings, ChannelOverride } from "@spacebar/util";
import { ChannelOverride, UserGuildSettings } from "@spacebar/util";
// This sucks. I would use a DeepPartial, my own or typeorms, but they both generate inncorect schema
export interface UserGuildSettingsSchema
extends Partial<Omit<UserGuildSettings, "channel_overrides">> {
channel_overrides?: {
[channel_id: string]: Partial<ChannelOverride>;
[channel_id: string]: ChannelOverride;
};
}
+3 -3
View File
@@ -28,9 +28,9 @@ export interface CreateWebAuthnCredentialSchema {
ticket: string;
}
export type WebAuthnPostSchema = Partial<
GenerateWebAuthnCredentialsSchema | CreateWebAuthnCredentialSchema
>;
export type WebAuthnPostSchema =
| GenerateWebAuthnCredentialsSchema
| CreateWebAuthnCredentialSchema;
export interface WebAuthnTotpSchema {
code: string;
+1 -5
View File
@@ -58,7 +58,6 @@ export * from "./PurgeSchema";
export * from "./RegisterSchema";
export * from "./RelationshipPostSchema";
export * from "./RelationshipPutSchema";
export * from "./responses";
export * from "./RoleModifySchema";
export * from "./RolePositionUpdateSchema";
export * from "./SelectProtocolSchema";
@@ -80,7 +79,4 @@ export * from "./VoiceVideoSchema";
export * from "./WebAuthnSchema";
export * from "./WebhookCreateSchema";
export * from "./WidgetModifySchema";
export * from "./UserRelationsResponse";
export * from "./GatewayResponse";
export * from "./GatewayBotResponse";
export * from "./UserProfileResponse";
export * from "./responses";