@notidotbot/noti-api-client 1.4.11 → 1.4.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. package/dist/classes/guild.d.ts +27 -0
  2. package/dist/classes/guild.js +15 -0
  3. package/dist/classes/premium.d.ts +24 -0
  4. package/dist/classes/premium.js +6 -0
  5. package/dist/core/manager.d.ts +2 -0
  6. package/dist/core/manager.js +2 -0
  7. package/dist/index.d.ts +2 -0
  8. package/dist/index.js +2 -0
  9. package/dist/modules/stripe.js +1 -0
  10. package/dist/other/zod/client.zod.d.ts +56 -288
  11. package/dist/other/zod/client.zod.js +11 -0
  12. package/dist/other/zod/drops.zod.d.ts +26 -7
  13. package/dist/other/zod/drops.zod.js +13 -11
  14. package/dist/other/zod/giveaways.zod.d.ts +61 -322
  15. package/dist/other/zod/guild.zod.d.ts +260 -1431
  16. package/dist/other/zod/guild.zod.js +21 -4
  17. package/dist/other/zod/kickStreamer.zod.d.ts +116 -669
  18. package/dist/other/zod/kickStreamer.zod.js +3 -3
  19. package/dist/other/zod/member.zod.d.ts +2 -10
  20. package/dist/other/zod/r2Storage.zod.d.ts +9 -41
  21. package/dist/other/zod/r2Storage.zod.js +2 -0
  22. package/dist/other/zod/rumbleStreamer.zod.d.ts +63 -456
  23. package/dist/other/zod/schema.zod.d.ts +130 -17
  24. package/dist/other/zod/schema.zod.js +43 -21
  25. package/dist/other/zod/starboard.zod.d.ts +36 -138
  26. package/dist/other/zod/team.zod.d.ts +9 -79
  27. package/dist/other/zod/tiktokStreamer.zod.d.ts +59 -397
  28. package/dist/other/zod/twitchStreamer.zod.d.ts +58 -396
  29. package/dist/other/zod/user.zod.d.ts +123 -556
  30. package/dist/other/zod/youtubeStreamer.zod.d.ts +58 -398
  31. package/dist/other/zod/zod.d.ts +12 -83
  32. package/dist/other/zod/zod.js +5 -3
  33. package/dist/tsconfig.tsbuildinfo +1 -1
  34. package/package.json +2 -2
  35. package/prisma/generated/ts-prisma.d.ts +2942 -352
  36. package/prisma/schema/models/client.prisma +71 -53
  37. package/prisma/schema/models/drops.prisma +127 -125
  38. package/prisma/schema/models/giveaways.prisma +49 -49
  39. package/prisma/schema/models/guild.prisma +239 -222
  40. package/prisma/schema/models/kickStreamer.prisma +125 -125
  41. package/prisma/schema/models/member.prisma +5 -5
  42. package/prisma/schema/models/r2Storage.prisma +13 -11
  43. package/prisma/schema/models/rumbleStreamer.prisma +73 -73
  44. package/prisma/schema/models/starboard.prisma +36 -36
  45. package/prisma/schema/models/team.prisma +21 -21
  46. package/prisma/schema/models/tiktokStreamer.prisma +74 -74
  47. package/prisma/schema/models/twitchStreamer.prisma +74 -74
  48. package/prisma/schema/models/user.prisma +117 -117
  49. package/prisma/schema/models/youtubeStreamer.prisma +75 -75
@@ -8,6 +8,8 @@ export declare class APIGuild {
8
8
  constructor(web: WebDataManager);
9
9
  getGuild({ auth, guildId }: GuildFunctionsInput['getGuild']): Promise<import("../types").WebResponse<GuildWithStuff>>;
10
10
  updateGuild({ auth, guildId, guild }: GuildFunctionsInput['updateGuild']): Promise<import("../types").WebResponse<string>>;
11
+ getCustomBotProfile({ auth, guildId }: GuildFunctionsInput['getCustomBotProfile']): Promise<import("../types").WebResponse<GetCustomBotProfileResponse>>;
12
+ updateCustomBotProfile({ auth, guildId, formData }: GuildFunctionsInput['updateCustomBotProfile']): Promise<import("../types").WebResponse<CustomBotProfile | null>>;
11
13
  getGuildErrors({ auth, guildId }: GuildFunctionsInput['getGuildErrors']): Promise<import("../types").WebResponse<GuildErrors>>;
12
14
  clearGuildErrors({ auth, guildId }: GuildFunctionsInput['clearGuildErrors']): Promise<import("../types").WebResponse<string>>;
13
15
  sendGuildPanelOrNotification<T extends SendPanelType>({ auth, guildId, panel, body }: GuildFunctionsInput<T>['sendGuildPanelOrNotification']): Promise<import("../types").WebResponse<string>>;
@@ -34,6 +36,15 @@ export type GuildFunctionsInput<T extends SendPanelType = never, T2 extends Guil
34
36
  guildId: string;
35
37
  guild: DeepPartial<GuildZod>;
36
38
  };
39
+ 'getCustomBotProfile': {
40
+ auth: string;
41
+ guildId: string;
42
+ };
43
+ 'updateCustomBotProfile': {
44
+ auth: string;
45
+ guildId: string;
46
+ formData: FormData;
47
+ };
37
48
  'sendGuildPanelOrNotification': {
38
49
  auth: string;
39
50
  guildId: string;
@@ -125,6 +136,10 @@ export type GuildReturnTypes = {
125
136
  'getGuildSuccess': CancelOutWebResponses<Awaited<ReturnType<APIGuild['getGuild']>>>;
126
137
  'updateGuildRaw': Awaited<ReturnType<APIGuild['updateGuild']>>;
127
138
  'updateGuildSuccess': CancelOutWebResponses<Awaited<ReturnType<APIGuild['updateGuild']>>>;
139
+ 'getCustomBotProfileRaw': Awaited<ReturnType<APIGuild['getCustomBotProfile']>>;
140
+ 'getCustomBotProfileSuccess': CancelOutWebResponses<Awaited<ReturnType<APIGuild['getCustomBotProfile']>>>;
141
+ 'updateCustomBotProfileRaw': Awaited<ReturnType<APIGuild['updateCustomBotProfile']>>;
142
+ 'updateCustomBotProfileSuccess': CancelOutWebResponses<Awaited<ReturnType<APIGuild['updateCustomBotProfile']>>>;
128
143
  'sendGuildPanelOrNotificationRaw': Awaited<ReturnType<APIGuild['sendGuildPanelOrNotification']>>;
129
144
  'sendGuildPanelOrNotificationSuccess': CancelOutWebResponses<Awaited<ReturnType<APIGuild['sendGuildPanelOrNotification']>>>;
130
145
  'sendTestKickBotNotificationRaw': Awaited<ReturnType<APIGuild['sendTestKickBotNotification']>>;
@@ -180,6 +195,18 @@ export type GuildWithStuff = Guild & {
180
195
  isPremium: boolean;
181
196
  limits: Record<`max${AddonNames extends string ? AddonNames : never}`, number>;
182
197
  };
198
+ export type CustomBotProfile = {
199
+ nick: string | null;
200
+ bio: string | null;
201
+ avatarKey: string | null;
202
+ bannerKey: string | null;
203
+ avatarUrl: string | null;
204
+ bannerUrl: string | null;
205
+ };
206
+ export type GetCustomBotProfileResponse = {
207
+ enabled: boolean;
208
+ profile: CustomBotProfile | null;
209
+ };
183
210
  export type GuildMessageType = 'customMessages' | 'singleMessages' | 'randomMessages';
184
211
  export type GuildMessageSubType<T extends GuildMessageType> = T extends 'customMessages' ? GuildMessageTypeEnum : T extends 'singleMessages' ? GuildSingleMessageTypeEnum : T extends 'randomMessages' ? GuildMessageTypeEnum : never;
185
212
  export type GuildMessageBody<T extends GuildMessageType> = T extends 'customMessages' ? GuildZod['messages'][number] : T extends 'singleMessages' ? GuildZod['singleMessages'][number] : T extends 'randomMessages' ? GuildZod['randomMessages'][number] : never;
@@ -20,6 +20,21 @@ class APIGuild {
20
20
  endpoint: this.web.qp('/data/guild/' + guildId),
21
21
  });
22
22
  }
23
+ async getCustomBotProfile({ auth, guildId }) {
24
+ return await this.web.request({
25
+ method: 'GET', auth,
26
+ endpoint: this.web.qp(`/data/guild/${guildId}/custom-bot`),
27
+ });
28
+ }
29
+ async updateCustomBotProfile({ auth, guildId, formData }) {
30
+ return await this.web.request({
31
+ method: 'PATCH', auth,
32
+ body: formData,
33
+ headers: null,
34
+ doNotStringify: true,
35
+ endpoint: this.web.qp(`/data/guild/${guildId}/custom-bot`),
36
+ });
37
+ }
23
38
  async getGuildErrors({ auth, guildId }) {
24
39
  return await this.web.request({
25
40
  method: 'GET', auth,
@@ -15,6 +15,7 @@ export declare class APIPremium {
15
15
  changeSubscriptionTier({ auth, body }: PremiumFunctionsInput<never>['changeSubscriptionTier']): Promise<import("../types").WebResponse<string>>;
16
16
  changeSubscriptionAddons({ auth, body }: PremiumFunctionsInput<never>['changeSubscriptionAddons']): Promise<import("../types").WebResponse<string>>;
17
17
  cancelSubscription({ auth, subscriptionId }: PremiumFunctionsInput<never>['cancelSubscription']): Promise<import("../types").WebResponse<string>>;
18
+ syncStripeSubscriptions({ auth }: PremiumFunctionsInput<never>['syncStripeSubscriptions']): Promise<import("../types").WebResponse<SyncSubscriptionsResponse>>;
18
19
  }
19
20
  export type PremiumFunctionsInput<T extends 'guild' | 'user' = never, I extends boolean = never> = {
20
21
  'getPremumData': {
@@ -58,6 +59,9 @@ export type PremiumFunctionsInput<T extends 'guild' | 'user' = never, I extends
58
59
  auth: string;
59
60
  subscriptionId: string;
60
61
  };
62
+ 'syncStripeSubscriptions': {
63
+ auth: string;
64
+ };
61
65
  };
62
66
  export type PremiumReturnTypes = {
63
67
  'getPremumDataRaw': Awaited<ReturnType<APIPremium['getPremumData']>>;
@@ -80,6 +84,8 @@ export type PremiumReturnTypes = {
80
84
  'changeSubscriptionAddonsSuccess': CancelOutWebResponses<Awaited<ReturnType<APIPremium['changeSubscriptionAddons']>>>;
81
85
  'cancelSubscriptionRaw': Awaited<ReturnType<APIPremium['cancelSubscription']>>;
82
86
  'cancelSubscriptionSuccess': CancelOutWebResponses<Awaited<ReturnType<APIPremium['cancelSubscription']>>>;
87
+ 'syncStripeSubscriptionsRaw': Awaited<ReturnType<APIPremium['syncStripeSubscriptions']>>;
88
+ 'syncStripeSubscriptionsSuccess': CancelOutWebResponses<Awaited<ReturnType<APIPremium['syncStripeSubscriptions']>>>;
83
89
  };
84
90
  export type CreateCheckoutSessionBody<T extends 'guild' | 'user'> = T extends 'guild' ? {
85
91
  email: string;
@@ -177,3 +183,21 @@ export type ChangeSubscriptionAddonsBody = {
177
183
  quantity: number;
178
184
  }[];
179
185
  };
186
+ export type SyncSubscriptionsResponse = {
187
+ status: 200;
188
+ message: string;
189
+ synced: number;
190
+ created: number;
191
+ updated: number;
192
+ alreadyCorrect: number;
193
+ errors?: Array<{
194
+ guildId: string;
195
+ subscriptionId: string;
196
+ error: string;
197
+ }>;
198
+ subscriptions: Array<{
199
+ guildId: string;
200
+ subscriptionId: string;
201
+ status: 'created' | 'already_exists' | 'updated';
202
+ }>;
203
+ };
@@ -72,5 +72,11 @@ class APIPremium {
72
72
  endpoint: this.web.qp('/stripe/subscriptions/' + subscriptionId),
73
73
  });
74
74
  }
75
+ async syncStripeSubscriptions({ auth }) {
76
+ return await this.web.request({
77
+ method: 'POST', auth,
78
+ endpoint: this.web.qp('/stripe/sync-subscriptions'),
79
+ });
80
+ }
75
81
  }
76
82
  exports.APIPremium = APIPremium;
@@ -15,6 +15,7 @@ import { APIClient } from '../classes/client';
15
15
  import { APITeams } from '../classes/teams';
16
16
  import { APIOther } from '../classes/other';
17
17
  import { APIGuild } from '../classes/guild';
18
+ import { APIEmotes } from '../classes/emotes';
18
19
  import { APIFiles } from '../classes/files';
19
20
  import { APIAdmin } from '../classes/admin';
20
21
  import { APIVods } from '../classes/vods';
@@ -27,6 +28,7 @@ export declare class WebDataManager {
27
28
  } | undefined;
28
29
  readonly me: APIMe;
29
30
  readonly user: APIUser;
31
+ readonly emotes: APIEmotes;
30
32
  readonly vods: APIVods;
31
33
  readonly files: APIFiles;
32
34
  readonly admin: APIAdmin;
@@ -20,6 +20,7 @@ const client_1 = require("../classes/client");
20
20
  const teams_1 = require("../classes/teams");
21
21
  const other_1 = require("../classes/other");
22
22
  const guild_1 = require("../classes/guild");
23
+ const emotes_1 = require("../classes/emotes");
23
24
  const files_1 = require("../classes/files");
24
25
  const admin_1 = require("../classes/admin");
25
26
  const vods_1 = require("../classes/vods");
@@ -31,6 +32,7 @@ class WebDataManager {
31
32
  options;
32
33
  me = new _me_1.APIMe(this);
33
34
  user = new user_1.APIUser(this);
35
+ emotes = new emotes_1.APIEmotes(this);
34
36
  vods = new vods_1.APIVods(this);
35
37
  files = new files_1.APIFiles(this);
36
38
  admin = new admin_1.APIAdmin(this);
package/dist/index.d.ts CHANGED
@@ -3,6 +3,7 @@ export * from './types';
3
3
  export * from './classes/@me';
4
4
  export * from './classes/user';
5
5
  export * from './classes/admin';
6
+ export * from './classes/emotes';
6
7
  export * from './classes/files';
7
8
  export * from './classes/other';
8
9
  export * from './classes/guild';
@@ -13,6 +14,7 @@ export * from './classes/premium';
13
14
  export * from './classes/platform';
14
15
  export * from './classes/sessions';
15
16
  export * from './classes/telemetry';
17
+ export * from './classes/vods';
16
18
  export * from './classes/guildDrops';
17
19
  export * from './classes/dropsGames';
18
20
  export * from './classes/guildPlatform';
package/dist/index.js CHANGED
@@ -20,6 +20,7 @@ __exportStar(require("./types"), exports);
20
20
  __exportStar(require("./classes/@me"), exports);
21
21
  __exportStar(require("./classes/user"), exports);
22
22
  __exportStar(require("./classes/admin"), exports);
23
+ __exportStar(require("./classes/emotes"), exports);
23
24
  __exportStar(require("./classes/files"), exports);
24
25
  __exportStar(require("./classes/other"), exports);
25
26
  __exportStar(require("./classes/guild"), exports);
@@ -30,6 +31,7 @@ __exportStar(require("./classes/premium"), exports);
30
31
  __exportStar(require("./classes/platform"), exports);
31
32
  __exportStar(require("./classes/sessions"), exports);
32
33
  __exportStar(require("./classes/telemetry"), exports);
34
+ __exportStar(require("./classes/vods"), exports);
33
35
  __exportStar(require("./classes/guildDrops"), exports);
34
36
  __exportStar(require("./classes/dropsGames"), exports);
35
37
  __exportStar(require("./classes/guildPlatform"), exports);
@@ -13,6 +13,7 @@ exports.addonKeys = [
13
13
  'additionalTwitchConnections',
14
14
  'additionalYoutubeConnections',
15
15
  'additionalTiktokConnections',
16
+ 'customBot'
16
17
  ];
17
18
  exports.addonNames = exports.addonKeys.map((k) => k.replace('additional', ''));
18
19
  exports.defaultAddons = exports.addonNames.map((k) => `default${k}`);
@@ -1,47 +1,31 @@
1
1
  import { PartialZodObject } from './schema.zod';
2
- import { TSPrisma } from '@prisma/client';
3
2
  import { RemoveProperties } from '../prisma';
3
+ import { TSPrisma } from '@prisma/client';
4
4
  import { z } from 'zod';
5
5
  export type RT<T extends TSPrisma.AllModelNames> = z.ZodType<RemoveProperties<TSPrisma.TSPrismaModelsFull[T], ClientRelations>>;
6
6
  export type ClientRelations = 'db' | 'client';
7
7
  export declare const ClientZod: {
8
8
  readonly ClientSchema: z.ZodObject<{
9
- clientId: z.ZodEffects<z.ZodString, string, string>;
9
+ clientId: z.ZodString;
10
10
  totalGiveaways: z.ZodNullable<z.ZodNumber>;
11
11
  totalNotifications: z.ZodNullable<z.ZodNumber>;
12
12
  statChannels: z.ZodNullable<z.ZodNumber>;
13
13
  statusRoles: z.ZodNullable<z.ZodNumber>;
14
14
  totalClips: z.ZodNullable<z.ZodNumber>;
15
15
  totalVods: z.ZodNullable<z.ZodNumber>;
16
- recentWhitelist: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
17
- dashWhitelist: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
18
- staff: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
19
- faq: z.ZodEffects<z.ZodArray<z.ZodLazy<z.ZodObject<{
16
+ recentWhitelist: z.ZodArray<z.ZodString>;
17
+ dashWhitelist: z.ZodArray<z.ZodString>;
18
+ staff: z.ZodArray<z.ZodString>;
19
+ faq: z.ZodArray<z.ZodLazy<z.ZodObject<{
20
20
  identifier: z.ZodString;
21
21
  question: z.ZodNullable<z.ZodString>;
22
22
  answer: z.ZodNullable<z.ZodString>;
23
- }, "strip", z.ZodTypeAny, {
24
- identifier: string;
25
- question: string | null;
26
- answer: string | null;
27
- }, {
28
- identifier: string;
29
- question: string | null;
30
- answer: string | null;
31
- }>>, "many">, {
32
- identifier: string;
33
- question: string | null;
34
- answer: string | null;
35
- }[], {
36
- identifier: string;
37
- question: string | null;
38
- answer: string | null;
39
- }[]>;
40
- blogs: z.ZodEffects<z.ZodArray<z.ZodLazy<z.ZodObject<{
23
+ }, z.core.$strip>>>;
24
+ blogs: z.ZodArray<z.ZodLazy<z.ZodObject<{
41
25
  identifier: z.ZodString;
42
26
  title: z.ZodString;
43
27
  isPinned: z.ZodBoolean;
44
- tags: z.ZodArray<z.ZodString, "many">;
28
+ tags: z.ZodArray<z.ZodString>;
45
29
  content: z.ZodString;
46
30
  thumbnail: z.ZodNullable<z.ZodString>;
47
31
  authorName: z.ZodString;
@@ -49,251 +33,65 @@ export declare const ClientZod: {
49
33
  createdAt: z.ZodDate;
50
34
  lastEdited: z.ZodDate;
51
35
  views: z.ZodNumber;
52
- reactions: z.ZodEffects<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">, string[], string[]>;
36
+ reactions: z.ZodArray<z.ZodString>;
53
37
  reactionsCount: z.ZodNumber;
54
38
  isPublic: z.ZodBoolean;
55
- }, "strip", z.ZodTypeAny, {
56
- title: string;
57
- content: string;
58
- thumbnail: string | null;
59
- authorIcon: string;
60
- identifier: string;
61
- isPinned: boolean;
62
- views: number;
63
- reactions: string[];
64
- reactionsCount: number;
65
- tags: string[];
66
- authorName: string;
67
- createdAt: Date;
68
- lastEdited: Date;
69
- isPublic: boolean;
70
- }, {
71
- title: string;
72
- content: string;
73
- thumbnail: string | null;
74
- authorIcon: string;
75
- identifier: string;
76
- isPinned: boolean;
77
- views: number;
78
- reactions: string[];
79
- reactionsCount: number;
80
- tags: string[];
81
- authorName: string;
82
- createdAt: Date;
83
- lastEdited: Date;
84
- isPublic: boolean;
85
- }>>, "many">, {
86
- title: string;
87
- content: string;
88
- thumbnail: string | null;
89
- authorIcon: string;
90
- identifier: string;
91
- isPinned: boolean;
92
- views: number;
93
- reactions: string[];
94
- reactionsCount: number;
95
- tags: string[];
96
- authorName: string;
97
- createdAt: Date;
98
- lastEdited: Date;
99
- isPublic: boolean;
100
- }[], {
101
- title: string;
102
- content: string;
103
- thumbnail: string | null;
104
- authorIcon: string;
105
- identifier: string;
106
- isPinned: boolean;
107
- views: number;
108
- reactions: string[];
109
- reactionsCount: number;
110
- tags: string[];
111
- authorName: string;
112
- createdAt: Date;
113
- lastEdited: Date;
114
- isPublic: boolean;
115
- }[]>;
116
- changelogs: z.ZodEffects<z.ZodArray<z.ZodLazy<z.ZodObject<{
39
+ }, z.core.$strip>>>;
40
+ changelogs: z.ZodArray<z.ZodLazy<z.ZodObject<{
117
41
  identifier: z.ZodString;
118
42
  date: z.ZodDate;
119
- changes: z.ZodArray<z.ZodString, "many">;
43
+ changes: z.ZodArray<z.ZodString>;
120
44
  title: z.ZodString;
121
45
  isPublic: z.ZodBoolean;
122
46
  thumbnail: z.ZodNullable<z.ZodString>;
123
- }, "strip", z.ZodTypeAny, {
124
- date: Date;
125
- title: string;
126
- thumbnail: string | null;
127
- identifier: string;
128
- isPublic: boolean;
129
- changes: string[];
130
- }, {
131
- date: Date;
132
- title: string;
133
- thumbnail: string | null;
134
- identifier: string;
135
- isPublic: boolean;
136
- changes: string[];
137
- }>>, "many">, {
138
- date: Date;
139
- title: string;
140
- thumbnail: string | null;
141
- identifier: string;
142
- isPublic: boolean;
143
- changes: string[];
144
- }[], {
145
- date: Date;
146
- title: string;
147
- thumbnail: string | null;
148
- identifier: string;
149
- isPublic: boolean;
150
- changes: string[];
151
- }[]>;
152
- logRawDataFor: z.ZodEffects<z.ZodArray<z.ZodLazy<z.ZodObject<{
47
+ }, z.core.$strip>>>;
48
+ logRawDataFor: z.ZodArray<z.ZodLazy<z.ZodObject<{
153
49
  username: z.ZodString;
154
- platform: z.ZodEnum<["kick", "twitch", "rumble", "tiktok", "youtube"]>;
155
- }, "strip", z.ZodTypeAny, {
156
- username: string;
157
- platform: "kick" | "twitch" | "rumble" | "tiktok" | "youtube";
158
- }, {
159
- username: string;
160
- platform: "kick" | "twitch" | "rumble" | "tiktok" | "youtube";
161
- }>>, "many">, {
162
- username: string;
163
- platform: "kick" | "twitch" | "rumble" | "tiktok" | "youtube";
164
- }[], {
165
- username: string;
166
- platform: "kick" | "twitch" | "rumble" | "tiktok" | "youtube";
167
- }[]>;
168
- }, "strip", z.ZodTypeAny, {
169
- statusRoles: number | null;
170
- faq: {
171
- identifier: string;
172
- question: string | null;
173
- answer: string | null;
174
- }[];
175
- blogs: {
176
- title: string;
177
- content: string;
178
- thumbnail: string | null;
179
- authorIcon: string;
180
- identifier: string;
181
- isPinned: boolean;
182
- views: number;
183
- reactions: string[];
184
- reactionsCount: number;
185
- tags: string[];
186
- authorName: string;
187
- createdAt: Date;
188
- lastEdited: Date;
189
- isPublic: boolean;
190
- }[];
191
- changelogs: {
192
- date: Date;
193
- title: string;
194
- thumbnail: string | null;
195
- identifier: string;
196
- isPublic: boolean;
197
- changes: string[];
198
- }[];
199
- logRawDataFor: {
200
- username: string;
201
- platform: "kick" | "twitch" | "rumble" | "tiktok" | "youtube";
202
- }[];
203
- clientId: string;
204
- totalGiveaways: number | null;
205
- totalNotifications: number | null;
206
- statChannels: number | null;
207
- totalClips: number | null;
208
- totalVods: number | null;
209
- recentWhitelist: string[];
210
- dashWhitelist: string[];
211
- staff: string[];
212
- }, {
213
- statusRoles: number | null;
214
- faq: {
215
- identifier: string;
216
- question: string | null;
217
- answer: string | null;
218
- }[];
219
- blogs: {
220
- title: string;
221
- content: string;
222
- thumbnail: string | null;
223
- authorIcon: string;
224
- identifier: string;
225
- isPinned: boolean;
226
- views: number;
227
- reactions: string[];
228
- reactionsCount: number;
229
- tags: string[];
230
- authorName: string;
231
- createdAt: Date;
232
- lastEdited: Date;
233
- isPublic: boolean;
234
- }[];
235
- changelogs: {
236
- date: Date;
237
- title: string;
238
- thumbnail: string | null;
239
- identifier: string;
240
- isPublic: boolean;
241
- changes: string[];
242
- }[];
243
- logRawDataFor: {
244
- username: string;
245
- platform: "kick" | "twitch" | "rumble" | "tiktok" | "youtube";
246
- }[];
247
- clientId: string;
248
- totalGiveaways: number | null;
249
- totalNotifications: number | null;
250
- statChannels: number | null;
251
- totalClips: number | null;
252
- totalVods: number | null;
253
- recentWhitelist: string[];
254
- dashWhitelist: string[];
255
- staff: string[];
256
- }>;
50
+ platform: z.ZodEnum<{
51
+ kick: "kick";
52
+ twitch: "twitch";
53
+ rumble: "rumble";
54
+ tiktok: "tiktok";
55
+ youtube: "youtube";
56
+ }>;
57
+ }, z.core.$strip>>>;
58
+ twitchCredentials: z.ZodNullable<z.ZodLazy<z.ZodObject<{
59
+ twitchGqlClientId: z.ZodString;
60
+ twitchGqlAuthToken: z.ZodString;
61
+ twitchGqlClientIntegrity: z.ZodNullable<z.ZodString>;
62
+ twitchGqlClientSessionId: z.ZodNullable<z.ZodString>;
63
+ twitchGqlClientVersion: z.ZodNullable<z.ZodString>;
64
+ updatedAt: z.ZodDate;
65
+ createdAt: z.ZodDate;
66
+ }, z.core.$strip>>>;
67
+ }, z.core.$strip>;
68
+ readonly ClientTwitchSchema: z.ZodObject<{
69
+ twitchGqlClientId: z.ZodString;
70
+ twitchGqlAuthToken: z.ZodString;
71
+ twitchGqlClientIntegrity: z.ZodNullable<z.ZodString>;
72
+ twitchGqlClientSessionId: z.ZodNullable<z.ZodString>;
73
+ twitchGqlClientVersion: z.ZodNullable<z.ZodString>;
74
+ updatedAt: z.ZodDate;
75
+ createdAt: z.ZodDate;
76
+ }, z.core.$strip>;
257
77
  readonly ClientFAQSchema: z.ZodObject<{
258
78
  identifier: z.ZodString;
259
79
  question: z.ZodNullable<z.ZodString>;
260
80
  answer: z.ZodNullable<z.ZodString>;
261
- }, "strip", z.ZodTypeAny, {
262
- identifier: string;
263
- question: string | null;
264
- answer: string | null;
265
- }, {
266
- identifier: string;
267
- question: string | null;
268
- answer: string | null;
269
- }>;
81
+ }, z.core.$strip>;
270
82
  readonly ClientChangelogSchema: z.ZodObject<{
271
83
  identifier: z.ZodString;
272
84
  date: z.ZodDate;
273
- changes: z.ZodArray<z.ZodString, "many">;
85
+ changes: z.ZodArray<z.ZodString>;
274
86
  title: z.ZodString;
275
87
  isPublic: z.ZodBoolean;
276
88
  thumbnail: z.ZodNullable<z.ZodString>;
277
- }, "strip", z.ZodTypeAny, {
278
- date: Date;
279
- title: string;
280
- thumbnail: string | null;
281
- identifier: string;
282
- isPublic: boolean;
283
- changes: string[];
284
- }, {
285
- date: Date;
286
- title: string;
287
- thumbnail: string | null;
288
- identifier: string;
289
- isPublic: boolean;
290
- changes: string[];
291
- }>;
89
+ }, z.core.$strip>;
292
90
  readonly ClientBlogSchema: z.ZodObject<{
293
91
  identifier: z.ZodString;
294
92
  title: z.ZodString;
295
93
  isPinned: z.ZodBoolean;
296
- tags: z.ZodArray<z.ZodString, "many">;
94
+ tags: z.ZodArray<z.ZodString>;
297
95
  content: z.ZodString;
298
96
  thumbnail: z.ZodNullable<z.ZodString>;
299
97
  authorName: z.ZodString;
@@ -301,49 +99,19 @@ export declare const ClientZod: {
301
99
  createdAt: z.ZodDate;
302
100
  lastEdited: z.ZodDate;
303
101
  views: z.ZodNumber;
304
- reactions: z.ZodEffects<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">, string[], string[]>;
102
+ reactions: z.ZodArray<z.ZodString>;
305
103
  reactionsCount: z.ZodNumber;
306
104
  isPublic: z.ZodBoolean;
307
- }, "strip", z.ZodTypeAny, {
308
- title: string;
309
- content: string;
310
- thumbnail: string | null;
311
- authorIcon: string;
312
- identifier: string;
313
- isPinned: boolean;
314
- views: number;
315
- reactions: string[];
316
- reactionsCount: number;
317
- tags: string[];
318
- authorName: string;
319
- createdAt: Date;
320
- lastEdited: Date;
321
- isPublic: boolean;
322
- }, {
323
- title: string;
324
- content: string;
325
- thumbnail: string | null;
326
- authorIcon: string;
327
- identifier: string;
328
- isPinned: boolean;
329
- views: number;
330
- reactions: string[];
331
- reactionsCount: number;
332
- tags: string[];
333
- authorName: string;
334
- createdAt: Date;
335
- lastEdited: Date;
336
- isPublic: boolean;
337
- }>;
105
+ }, z.core.$strip>;
338
106
  readonly ClientLogRawDataSchema: z.ZodObject<{
339
107
  username: z.ZodString;
340
- platform: z.ZodEnum<["kick", "twitch", "rumble", "tiktok", "youtube"]>;
341
- }, "strip", z.ZodTypeAny, {
342
- username: string;
343
- platform: "kick" | "twitch" | "rumble" | "tiktok" | "youtube";
344
- }, {
345
- username: string;
346
- platform: "kick" | "twitch" | "rumble" | "tiktok" | "youtube";
347
- }>;
108
+ platform: z.ZodEnum<{
109
+ kick: "kick";
110
+ twitch: "twitch";
111
+ rumble: "rumble";
112
+ tiktok: "tiktok";
113
+ youtube: "youtube";
114
+ }>;
115
+ }, z.core.$strip>;
348
116
  };
349
117
  export declare const ClientZodPartial: PartialZodObject<typeof ClientZod>;
@@ -19,6 +19,16 @@ const ClientSchema = zod_2.z.object({
19
19
  blogs: (0, zod_1.NoDuplicate)(zod_2.z.array(zod_2.z.lazy(() => ClientBlogSchema)), ['identifier']),
20
20
  changelogs: (0, zod_1.NoDuplicate)(zod_2.z.array(zod_2.z.lazy(() => ClientChangelogSchema)), ['identifier']),
21
21
  logRawDataFor: (0, zod_1.NoDuplicate)(zod_2.z.array(zod_2.z.lazy(() => ClientLogRawDataSchema)), ['username']),
22
+ twitchCredentials: zod_2.z.lazy(() => ClientTwitchSchema).nullable(),
23
+ });
24
+ const ClientTwitchSchema = zod_2.z.object({
25
+ twitchGqlClientId: zod_2.z.string(),
26
+ twitchGqlAuthToken: zod_2.z.string(),
27
+ twitchGqlClientIntegrity: zod_2.z.string().nullable(),
28
+ twitchGqlClientSessionId: zod_2.z.string().nullable(),
29
+ twitchGqlClientVersion: zod_2.z.string().nullable(),
30
+ updatedAt: zod_2.z.date(),
31
+ createdAt: zod_2.z.date(),
22
32
  });
23
33
  const ClientFAQSchema = zod_2.z.object({
24
34
  identifier: zod_2.z.string(),
@@ -55,6 +65,7 @@ const ClientLogRawDataSchema = zod_2.z.object({
55
65
  });
56
66
  exports.ClientZod = {
57
67
  ClientSchema,
68
+ ClientTwitchSchema,
58
69
  ClientFAQSchema,
59
70
  ClientChangelogSchema,
60
71
  ClientBlogSchema,