summary refs log tree commit diff
path: root/src/schemas/uncategorised/GuildSubscriptionsBulkSchema.ts
blob: 272110c5fdb24492988b36214d8ff98290a18d03 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
export interface GuildSubscriptionsBulkSchema {
    subscriptions: { [key: string]: GuildSubscriptionSchema };
}

export type GuildSubscriptionSchema = Omit<LazyRequestSchema, "guild_id">;

export const GuildSubscriptionsBulkSchema = {
    $subscriptions: Object,
};

export interface LazyRequestSchema {
    guild_id: string;
    channels?: {
        /**
         * @items.type integer
         * @minItems 2
         * @maxItems 2
         */
        [key: string]: number[][]; // puyo: changed from [number, number] because it breaks openapi
    };
    activities?: boolean;
    threads?: boolean;
    typing?: true;
    members?: string[];
    member_updates?: boolean;
    thread_member_lists?: unknown[];
}

export const LazyRequestSchema = {
    guild_id: String,
    $activities: Boolean,
    $channels: Object,
    $typing: Boolean,
    $threads: Boolean,
    $members: [] as string[],
    $member_updates: Boolean,
    $thread_member_lists: [] as unknown[],
};