discord-api-spec 10.0.179803 → 10.0.182499

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.
@@ -2926,7 +2926,7 @@ export type GuildInviteResponse = {
2926
2926
  approximate_member_count?: number | null;
2927
2927
  approximate_presence_count?: number | null;
2928
2928
  is_nickname_changeable?: boolean;
2929
- roles?: GuildRoleResponse[] | null;
2929
+ roles?: InviteGuildRoleResponse[] | null;
2930
2930
  };
2931
2931
 
2932
2932
  export type GuildMemberResponse = {
@@ -3037,6 +3037,7 @@ export type GuildResponse = {
3037
3037
  safety_alerts_channel_id?: null | SnowflakeType;
3038
3038
  public_updates_channel_id?: null | SnowflakeType;
3039
3039
  premium_progress_bar_enabled: boolean;
3040
+ premium_progress_bar_enabled_user_updated_at?: string | null;
3040
3041
  nsfw: boolean;
3041
3042
  nsfw_level: GuildNSFWContentLevel;
3042
3043
  emojis: EmojiResponse[];
@@ -3230,6 +3231,7 @@ export type GuildWithCountsResponse = {
3230
3231
  safety_alerts_channel_id?: null | SnowflakeType;
3231
3232
  public_updates_channel_id?: null | SnowflakeType;
3232
3233
  premium_progress_bar_enabled: boolean;
3234
+ premium_progress_bar_enabled_user_updated_at?: string | null;
3233
3235
  nsfw: boolean;
3234
3236
  nsfw_level: GuildNSFWContentLevel;
3235
3237
  emojis: EmojiResponse[];
@@ -3422,6 +3424,17 @@ export type InviteGuildResponse = {
3422
3424
  premium_subscription_count: number;
3423
3425
  };
3424
3426
 
3427
+ export type InviteGuildRoleResponse = {
3428
+ id: SnowflakeType;
3429
+ name: string;
3430
+ position: number;
3431
+ color: number;
3432
+ colors: GuildRoleColorsResponse;
3433
+ icon?: string | null;
3434
+ unicode_emoji?: string | null;
3435
+ permissions?: string;
3436
+ };
3437
+
3425
3438
  export type KeywordRuleResponse = {
3426
3439
  id: SnowflakeType;
3427
3440
  guild_id: SnowflakeType;
@@ -3432,7 +3432,7 @@ export const GuildInviteResponseSchema = /* @__PURE__ */ z.strictObject({
3432
3432
  ]),
3433
3433
  is_nickname_changeable: /* @__PURE__ */ z.boolean(),
3434
3434
  roles: /* @__PURE__ */ z.union([
3435
- /* @__PURE__ */ z.array(/* @__PURE__ */ z.lazy(() => GuildRoleResponseSchema)),
3435
+ /* @__PURE__ */ z.array(/* @__PURE__ */ z.lazy(() => InviteGuildRoleResponseSchema)),
3436
3436
  /* @__PURE__ */ z.null(),
3437
3437
  ]),
3438
3438
  });
@@ -3648,6 +3648,10 @@ export const GuildResponseSchema = /* @__PURE__ */ z.strictObject({
3648
3648
  /* @__PURE__ */ z.lazy(() => SnowflakeTypeSchema),
3649
3649
  ]),
3650
3650
  premium_progress_bar_enabled: /* @__PURE__ */ z.boolean(),
3651
+ premium_progress_bar_enabled_user_updated_at: /* @__PURE__ */ z.union([
3652
+ /* @__PURE__ */ z.string().check(/* @__PURE__ */ z.iso.datetime()),
3653
+ /* @__PURE__ */ z.null(),
3654
+ ]),
3651
3655
  nsfw: /* @__PURE__ */ z.boolean(),
3652
3656
  nsfw_level: /* @__PURE__ */ z.lazy(() => GuildNSFWContentLevelSchema),
3653
3657
  emojis: /* @__PURE__ */ z.array(/* @__PURE__ */ z.lazy(() => EmojiResponseSchema)),
@@ -3950,6 +3954,10 @@ export const GuildWithCountsResponseSchema = /* @__PURE__ */ z.strictObject({
3950
3954
  /* @__PURE__ */ z.lazy(() => SnowflakeTypeSchema),
3951
3955
  ]),
3952
3956
  premium_progress_bar_enabled: /* @__PURE__ */ z.boolean(),
3957
+ premium_progress_bar_enabled_user_updated_at: /* @__PURE__ */ z.union([
3958
+ /* @__PURE__ */ z.string().check(/* @__PURE__ */ z.iso.datetime()),
3959
+ /* @__PURE__ */ z.null(),
3960
+ ]),
3953
3961
  nsfw: /* @__PURE__ */ z.boolean(),
3954
3962
  nsfw_level: /* @__PURE__ */ z.lazy(() => GuildNSFWContentLevelSchema),
3955
3963
  emojis: /* @__PURE__ */ z.array(/* @__PURE__ */ z.lazy(() => EmojiResponseSchema)),
@@ -4363,6 +4371,17 @@ export const InviteGuildResponseSchema = /* @__PURE__ */ z.strictObject({
4363
4371
  premium_subscription_count: /* @__PURE__ */ z.int32(),
4364
4372
  });
4365
4373
 
4374
+ export const InviteGuildRoleResponseSchema = /* @__PURE__ */ z.strictObject({
4375
+ id: /* @__PURE__ */ z.lazy(() => SnowflakeTypeSchema),
4376
+ name: /* @__PURE__ */ z.string(),
4377
+ position: /* @__PURE__ */ z.int32(),
4378
+ color: /* @__PURE__ */ z.int32(),
4379
+ colors: /* @__PURE__ */ z.lazy(() => GuildRoleColorsResponseSchema),
4380
+ icon: /* @__PURE__ */ z.union([/* @__PURE__ */ z.string(), /* @__PURE__ */ z.null()]),
4381
+ unicode_emoji: /* @__PURE__ */ z.union([/* @__PURE__ */ z.string(), /* @__PURE__ */ z.null()]),
4382
+ permissions: /* @__PURE__ */ z.string(),
4383
+ });
4384
+
4366
4385
  export const InviteTargetTypesSchema = /* @__PURE__ */ z.union([
4367
4386
  /* @__PURE__ */ z.literal(1),
4368
4387
  /* @__PURE__ */ z.literal(2),
@@ -3053,7 +3053,7 @@ export type GuildInviteResponse = {
3053
3053
  approximate_member_count?: number | null;
3054
3054
  approximate_presence_count?: number | null;
3055
3055
  is_nickname_changeable?: boolean;
3056
- roles?: GuildRoleResponse[] | null;
3056
+ roles?: InviteGuildRoleResponse[] | null;
3057
3057
  };
3058
3058
 
3059
3059
  export type GuildMemberResponse = {
@@ -3164,6 +3164,7 @@ export type GuildResponse = {
3164
3164
  safety_alerts_channel_id?: null | SnowflakeType;
3165
3165
  public_updates_channel_id?: null | SnowflakeType;
3166
3166
  premium_progress_bar_enabled: boolean;
3167
+ premium_progress_bar_enabled_user_updated_at?: string | null;
3167
3168
  nsfw: boolean;
3168
3169
  nsfw_level: GuildNSFWContentLevel;
3169
3170
  emojis: EmojiResponse[];
@@ -3367,6 +3368,7 @@ export type GuildWithCountsResponse = {
3367
3368
  safety_alerts_channel_id?: null | SnowflakeType;
3368
3369
  public_updates_channel_id?: null | SnowflakeType;
3369
3370
  premium_progress_bar_enabled: boolean;
3371
+ premium_progress_bar_enabled_user_updated_at?: string | null;
3370
3372
  nsfw: boolean;
3371
3373
  nsfw_level: GuildNSFWContentLevel;
3372
3374
  emojis: EmojiResponse[];
@@ -3559,6 +3561,17 @@ export type InviteGuildResponse = {
3559
3561
  premium_subscription_count: number;
3560
3562
  };
3561
3563
 
3564
+ export type InviteGuildRoleResponse = {
3565
+ id: SnowflakeType;
3566
+ name: string;
3567
+ position: number;
3568
+ color: number;
3569
+ colors: GuildRoleColorsResponse;
3570
+ icon?: string | null;
3571
+ unicode_emoji?: string | null;
3572
+ permissions?: string;
3573
+ };
3574
+
3562
3575
  export type KeywordRuleResponse = {
3563
3576
  id: SnowflakeType;
3564
3577
  guild_id: SnowflakeType;
@@ -3466,7 +3466,7 @@ export const GuildInviteResponseSchema = /* @__PURE__ */ z.strictObject({
3466
3466
  ]),
3467
3467
  is_nickname_changeable: /* @__PURE__ */ z.boolean(),
3468
3468
  roles: /* @__PURE__ */ z.union([
3469
- /* @__PURE__ */ z.array(/* @__PURE__ */ z.lazy(() => GuildRoleResponseSchema)),
3469
+ /* @__PURE__ */ z.array(/* @__PURE__ */ z.lazy(() => InviteGuildRoleResponseSchema)),
3470
3470
  /* @__PURE__ */ z.null(),
3471
3471
  ]),
3472
3472
  });
@@ -3682,6 +3682,10 @@ export const GuildResponseSchema = /* @__PURE__ */ z.strictObject({
3682
3682
  /* @__PURE__ */ z.lazy(() => SnowflakeTypeSchema),
3683
3683
  ]),
3684
3684
  premium_progress_bar_enabled: /* @__PURE__ */ z.boolean(),
3685
+ premium_progress_bar_enabled_user_updated_at: /* @__PURE__ */ z.union([
3686
+ /* @__PURE__ */ z.string().check(/* @__PURE__ */ z.iso.datetime()),
3687
+ /* @__PURE__ */ z.null(),
3688
+ ]),
3685
3689
  nsfw: /* @__PURE__ */ z.boolean(),
3686
3690
  nsfw_level: /* @__PURE__ */ z.lazy(() => GuildNSFWContentLevelSchema),
3687
3691
  emojis: /* @__PURE__ */ z.array(/* @__PURE__ */ z.lazy(() => EmojiResponseSchema)),
@@ -4007,6 +4011,10 @@ export const GuildWithCountsResponseSchema = /* @__PURE__ */ z.strictObject({
4007
4011
  /* @__PURE__ */ z.lazy(() => SnowflakeTypeSchema),
4008
4012
  ]),
4009
4013
  premium_progress_bar_enabled: /* @__PURE__ */ z.boolean(),
4014
+ premium_progress_bar_enabled_user_updated_at: /* @__PURE__ */ z.union([
4015
+ /* @__PURE__ */ z.string().check(/* @__PURE__ */ z.iso.datetime()),
4016
+ /* @__PURE__ */ z.null(),
4017
+ ]),
4010
4018
  nsfw: /* @__PURE__ */ z.boolean(),
4011
4019
  nsfw_level: /* @__PURE__ */ z.lazy(() => GuildNSFWContentLevelSchema),
4012
4020
  emojis: /* @__PURE__ */ z.array(/* @__PURE__ */ z.lazy(() => EmojiResponseSchema)),
@@ -4441,6 +4449,17 @@ export const InviteGuildResponseSchema = /* @__PURE__ */ z.strictObject({
4441
4449
  premium_subscription_count: /* @__PURE__ */ z.int32(),
4442
4450
  });
4443
4451
 
4452
+ export const InviteGuildRoleResponseSchema = /* @__PURE__ */ z.strictObject({
4453
+ id: /* @__PURE__ */ z.lazy(() => SnowflakeTypeSchema),
4454
+ name: /* @__PURE__ */ z.string(),
4455
+ position: /* @__PURE__ */ z.int32(),
4456
+ color: /* @__PURE__ */ z.int32(),
4457
+ colors: /* @__PURE__ */ z.lazy(() => GuildRoleColorsResponseSchema),
4458
+ icon: /* @__PURE__ */ z.union([/* @__PURE__ */ z.string(), /* @__PURE__ */ z.null()]),
4459
+ unicode_emoji: /* @__PURE__ */ z.union([/* @__PURE__ */ z.string(), /* @__PURE__ */ z.null()]),
4460
+ permissions: /* @__PURE__ */ z.string(),
4461
+ });
4462
+
4444
4463
  export const InviteTargetTypesSchema = /* @__PURE__ */ z.union([
4445
4464
  /* @__PURE__ */ z.literal(1),
4446
4465
  /* @__PURE__ */ z.literal(2),
package/package.json CHANGED
@@ -1,25 +1,25 @@
1
1
  {
2
2
  "name": "discord-api-spec",
3
- "version": "10.0.179803",
3
+ "version": "10.0.182499",
4
4
  "repository": "https://github.com/RiskyMH/discord-api-spec-ts",
5
5
  "author": "RiskyMH",
6
6
  "license": "MIT",
7
7
  "exports": {
8
8
  ".": {
9
9
  "types": "./build/discord-api-spec.ts",
10
- "default": "./build/discord-api-spec.js"
10
+ "import": "./build/discord-api-spec.js"
11
11
  },
12
12
  "./preview": {
13
13
  "types": "./build/preview/discord-api-spec.ts",
14
- "default": "./build/preview/discord-api-spec.js"
14
+ "import": "./build/preview/discord-api-spec.js"
15
15
  },
16
16
  "./zod": {
17
17
  "types": "./build/discord-api-spec.zod.js",
18
- "default": "./build/discord-api-spec.zod.js"
18
+ "import": "./build/discord-api-spec.zod.js"
19
19
  },
20
20
  "./preview/zod": {
21
21
  "types": "./build/preview/discord-api-spec.zod.js",
22
- "default": "./build/preview/discord-api-spec.zod.js"
22
+ "import": "./build/preview/discord-api-spec.zod.js"
23
23
  }
24
24
  },
25
25
  "types": "./build/discord-api-spec.ts",