fixing lots of openapi crap
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user