@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
@@ -20,6 +20,9 @@ const KickStreamerSchema = zod_2.z.object({
20
20
  clipperNeedsAllCategories: zod_2.z.boolean().nullable(),
21
21
  clipperCategories: (0, zod_1.NoDuplicate)(zod_2.z.array(schema_zod_1.ClipperCategoryEnum)),
22
22
  whitelistedClipperNames: zod_2.z.array(zod_2.z.string()),
23
+ builtInClipsEnabled: zod_2.z.boolean().nullable(),
24
+ builtInClipsChannelId: zod_1.SnowFlake.nullable(),
25
+ builtInClipsPingRoleId: zod_1.SnowFlakeOrEveryone.nullable(),
23
26
  vodsChannelId: zod_1.SnowFlake.nullable(),
24
27
  vodsPingRoleId: zod_1.SnowFlakeOrEveryone.nullable(),
25
28
  notificationChannelId: zod_1.SnowFlake.nullable(),
@@ -46,9 +49,6 @@ const KickStreamerSchema = zod_2.z.object({
46
49
  usersWhoHaveLiveRole: (0, zod_1.NoDuplicate)(zod_2.z.array(zod_1.SnowFlake)),
47
50
  statsChannelIds: zod_2.z.lazy(() => KSStatsChannelIdSchema).nullable(),
48
51
  isCurrentlyLive: zod_2.z.lazy(() => KSCurrentlyLiveSchema).nullable(),
49
- builtInClipsEnabled: zod_2.z.boolean().nullable(),
50
- builtInClipsChannelId: zod_1.SnowFlake.nullable(),
51
- builtInClipsPingRoleId: zod_1.SnowFlakeOrEveryone.nullable(),
52
52
  lastLive: zod_2.z.date().nullable(),
53
53
  });
54
54
  const KSCustomMessageSchema = zod_2.z.object({
@@ -7,16 +7,8 @@ export type MemberRelations = 'db' | 'member';
7
7
  export declare const MemberZod: {
8
8
  readonly MemberSchema: z.ZodObject<{
9
9
  userId: z.ZodString;
10
- guildId: z.ZodEffects<z.ZodString, string, string>;
10
+ guildId: z.ZodString;
11
11
  messagesSent: z.ZodNumber;
12
- }, "strip", z.ZodTypeAny, {
13
- guildId: string;
14
- userId: string;
15
- messagesSent: number;
16
- }, {
17
- guildId: string;
18
- userId: string;
19
- messagesSent: number;
20
- }>;
12
+ }, z.core.$strip>;
21
13
  };
22
14
  export declare const MemberZodPartial: PartialZodObject<typeof MemberZod>;
@@ -1,6 +1,6 @@
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], R2StorageRelations>>;
6
6
  export type R2StorageRelations = 'db' | 'r2Storage';
@@ -9,48 +9,16 @@ export declare const R2StorageZod: {
9
9
  key: z.ZodString;
10
10
  tempUrl: z.ZodNullable<z.ZodString>;
11
11
  urlExpiresAt: z.ZodNullable<z.ZodDate>;
12
- guilds: z.ZodEffects<z.ZodArray<z.ZodLazy<z.ZodObject<{
13
- guildId: z.ZodEffects<z.ZodString, string, string>;
12
+ thumbnail: z.ZodNullable<z.ZodString>;
13
+ streamDate: z.ZodNullable<z.ZodDate>;
14
+ guilds: z.ZodArray<z.ZodLazy<z.ZodObject<{
15
+ guildId: z.ZodString;
14
16
  allowedUntil: z.ZodNullable<z.ZodDate>;
15
- }, "strip", z.ZodTypeAny, {
16
- guildId: string;
17
- allowedUntil: Date | null;
18
- }, {
19
- guildId: string;
20
- allowedUntil: Date | null;
21
- }>>, "many">, {
22
- guildId: string;
23
- allowedUntil: Date | null;
24
- }[], {
25
- guildId: string;
26
- allowedUntil: Date | null;
27
- }[]>;
28
- }, "strip", z.ZodTypeAny, {
29
- key: string;
30
- guilds: {
31
- guildId: string;
32
- allowedUntil: Date | null;
33
- }[];
34
- tempUrl: string | null;
35
- urlExpiresAt: Date | null;
36
- }, {
37
- key: string;
38
- guilds: {
39
- guildId: string;
40
- allowedUntil: Date | null;
41
- }[];
42
- tempUrl: string | null;
43
- urlExpiresAt: Date | null;
44
- }>;
17
+ }, z.core.$strip>>>;
18
+ }, z.core.$strip>;
45
19
  readonly R2StorageGuildSchema: z.ZodObject<{
46
- guildId: z.ZodEffects<z.ZodString, string, string>;
20
+ guildId: z.ZodString;
47
21
  allowedUntil: z.ZodNullable<z.ZodDate>;
48
- }, "strip", z.ZodTypeAny, {
49
- guildId: string;
50
- allowedUntil: Date | null;
51
- }, {
52
- guildId: string;
53
- allowedUntil: Date | null;
54
- }>;
22
+ }, z.core.$strip>;
55
23
  };
56
24
  export declare const R2StorageZodPartial: PartialZodObject<typeof R2StorageZod>;
@@ -8,6 +8,8 @@ const R2StorageSchema = zod_2.z.object({
8
8
  key: zod_2.z.string(),
9
9
  tempUrl: zod_2.z.string().nullable(),
10
10
  urlExpiresAt: zod_2.z.date().nullable(),
11
+ thumbnail: zod_2.z.string().nullable(),
12
+ streamDate: zod_2.z.date().nullable(),
11
13
  guilds: (0, zod_1.NoDuplicate)(zod_2.z.array(zod_2.z.lazy(() => R2StorageGuildSchema)), ['guildId']),
12
14
  });
13
15
  const R2StorageGuildSchema = zod_2.z.object({