discord-api-spec 10.0.176763 → 10.0.181302
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.
- package/build/discord-api-spec.js +2 -0
- package/build/discord-api-spec.ts +15 -0
- package/build/discord-api-spec.zod.js +20 -0
- package/build/preview/discord-api-spec.js +2 -0
- package/build/preview/discord-api-spec.ts +15 -0
- package/build/preview/discord-api-spec.zod.js +20 -0
- package/package.json +5 -5
|
@@ -394,6 +394,7 @@ export const InteractionCallbackTypes = {
|
|
|
394
394
|
APPLICATION_COMMAND_AUTOCOMPLETE_RESULT: 8,
|
|
395
395
|
MODAL: 9,
|
|
396
396
|
LAUNCH_ACTIVITY: 12,
|
|
397
|
+
SOCIAL_LAYER_SKU_PURCHASE_ELIGIBILITY: 13,
|
|
397
398
|
};
|
|
398
399
|
|
|
399
400
|
export const InteractionContextType = {
|
|
@@ -408,6 +409,7 @@ export const InteractionTypes = {
|
|
|
408
409
|
MESSAGE_COMPONENT: 3,
|
|
409
410
|
APPLICATION_COMMAND_AUTOCOMPLETE: 4,
|
|
410
411
|
MODAL_SUBMIT: 5,
|
|
412
|
+
SOCIAL_LAYER_SKU_PURCHASE_ELIGIBILITY: 6,
|
|
411
413
|
};
|
|
412
414
|
|
|
413
415
|
export const InviteTargetTypes = {
|
|
@@ -635,6 +635,7 @@ export const enum InteractionCallbackTypes {
|
|
|
635
635
|
APPLICATION_COMMAND_AUTOCOMPLETE_RESULT = 8,
|
|
636
636
|
MODAL = 9,
|
|
637
637
|
LAUNCH_ACTIVITY = 12,
|
|
638
|
+
SOCIAL_LAYER_SKU_PURCHASE_ELIGIBILITY = 13,
|
|
638
639
|
}
|
|
639
640
|
|
|
640
641
|
/**
|
|
@@ -663,6 +664,8 @@ export const enum InteractionTypes {
|
|
|
663
664
|
APPLICATION_COMMAND_AUTOCOMPLETE = 4,
|
|
664
665
|
/** Sent when a user submits a modal previously sent by your application */
|
|
665
666
|
MODAL_SUBMIT = 5,
|
|
667
|
+
/** Sent when Discord is checking if a user can purchase a Social Layer SKU */
|
|
668
|
+
SOCIAL_LAYER_SKU_PURCHASE_ELIGIBILITY = 6,
|
|
666
669
|
}
|
|
667
670
|
|
|
668
671
|
/**
|
|
@@ -3034,6 +3037,7 @@ export type GuildResponse = {
|
|
|
3034
3037
|
safety_alerts_channel_id?: null | SnowflakeType;
|
|
3035
3038
|
public_updates_channel_id?: null | SnowflakeType;
|
|
3036
3039
|
premium_progress_bar_enabled: boolean;
|
|
3040
|
+
premium_progress_bar_enabled_user_updated_at?: string | null;
|
|
3037
3041
|
nsfw: boolean;
|
|
3038
3042
|
nsfw_level: GuildNSFWContentLevel;
|
|
3039
3043
|
emojis: EmojiResponse[];
|
|
@@ -3227,6 +3231,7 @@ export type GuildWithCountsResponse = {
|
|
|
3227
3231
|
safety_alerts_channel_id?: null | SnowflakeType;
|
|
3228
3232
|
public_updates_channel_id?: null | SnowflakeType;
|
|
3229
3233
|
premium_progress_bar_enabled: boolean;
|
|
3234
|
+
premium_progress_bar_enabled_user_updated_at?: string | null;
|
|
3230
3235
|
nsfw: boolean;
|
|
3231
3236
|
nsfw_level: GuildNSFWContentLevel;
|
|
3232
3237
|
emojis: EmojiResponse[];
|
|
@@ -4629,6 +4634,15 @@ export type SlackWebhook = {
|
|
|
4629
4634
|
|
|
4630
4635
|
export type SnowflakeType = string;
|
|
4631
4636
|
|
|
4637
|
+
export type SocialLayerSKUPurchaseEligibilityCallbackData = {
|
|
4638
|
+
eligible: boolean;
|
|
4639
|
+
};
|
|
4640
|
+
|
|
4641
|
+
export type SocialLayerSKUPurchaseEligibilityInteractionCallbackRequest = {
|
|
4642
|
+
type: InteractionCallbackTypes.SOCIAL_LAYER_SKU_PURCHASE_ELIGIBILITY;
|
|
4643
|
+
data: SocialLayerSKUPurchaseEligibilityCallbackData;
|
|
4644
|
+
};
|
|
4645
|
+
|
|
4632
4646
|
export type SoundboardCreateRequest = {
|
|
4633
4647
|
name: string;
|
|
4634
4648
|
volume?: number | null;
|
|
@@ -8747,6 +8761,7 @@ export interface Paths {
|
|
|
8747
8761
|
| LaunchActivityInteractionCallbackRequest
|
|
8748
8762
|
| ModalInteractionCallbackRequest
|
|
8749
8763
|
| PongInteractionCallbackRequest
|
|
8764
|
+
| SocialLayerSKUPurchaseEligibilityInteractionCallbackRequest
|
|
8750
8765
|
| UpdateMessageInteractionCallbackRequest;
|
|
8751
8766
|
responses: {
|
|
8752
8767
|
/** 200 response for create_interaction_response */
|
|
@@ -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)),
|
|
@@ -4267,6 +4275,7 @@ export const InteractionCallbackTypesSchema = /* @__PURE__ */ z.union([
|
|
|
4267
4275
|
/* @__PURE__ */ z.literal(8),
|
|
4268
4276
|
/* @__PURE__ */ z.literal(9),
|
|
4269
4277
|
/* @__PURE__ */ z.literal(12),
|
|
4278
|
+
/* @__PURE__ */ z.literal(13),
|
|
4270
4279
|
]);
|
|
4271
4280
|
|
|
4272
4281
|
export const InteractionContextTypeSchema = /* @__PURE__ */ z.union([
|
|
@@ -4291,6 +4300,7 @@ export const InteractionTypesSchema = /* @__PURE__ */ z.union([
|
|
|
4291
4300
|
/* @__PURE__ */ z.literal(3),
|
|
4292
4301
|
/* @__PURE__ */ z.literal(4),
|
|
4293
4302
|
/* @__PURE__ */ z.literal(5),
|
|
4303
|
+
/* @__PURE__ */ z.literal(6),
|
|
4294
4304
|
]);
|
|
4295
4305
|
|
|
4296
4306
|
export const InviteApplicationResponseSchema = /* @__PURE__ */ z.strictObject({
|
|
@@ -6613,6 +6623,16 @@ export const SnowflakeTypeSchema = /* @__PURE__ */ z
|
|
|
6613
6623
|
.string()
|
|
6614
6624
|
.check(/* @__PURE__ */ z.regex(/* @__PURE__ */ new RegExp("^(0|[1-9][0-9]*)$")));
|
|
6615
6625
|
|
|
6626
|
+
export const SocialLayerSKUPurchaseEligibilityCallbackDataSchema = /* @__PURE__ */ z.strictObject({
|
|
6627
|
+
eligible: /* @__PURE__ */ z.boolean(),
|
|
6628
|
+
});
|
|
6629
|
+
|
|
6630
|
+
export const SocialLayerSKUPurchaseEligibilityInteractionCallbackRequestSchema =
|
|
6631
|
+
/* @__PURE__ */ z.strictObject({
|
|
6632
|
+
type: /* @__PURE__ */ z.union([/* @__PURE__ */ z.literal(13)]),
|
|
6633
|
+
data: /* @__PURE__ */ z.lazy(() => SocialLayerSKUPurchaseEligibilityCallbackDataSchema),
|
|
6634
|
+
});
|
|
6635
|
+
|
|
6616
6636
|
export const SortingOrderSchema = /* @__PURE__ */ z.enum(["asc", "desc"]);
|
|
6617
6637
|
|
|
6618
6638
|
export const SoundboardCreateRequestSchema = /* @__PURE__ */ z.strictObject({
|
|
@@ -430,6 +430,7 @@ export const InteractionCallbackTypes = {
|
|
|
430
430
|
APPLICATION_COMMAND_AUTOCOMPLETE_RESULT: 8,
|
|
431
431
|
MODAL: 9,
|
|
432
432
|
LAUNCH_ACTIVITY: 12,
|
|
433
|
+
SOCIAL_LAYER_SKU_PURCHASE_ELIGIBILITY: 13,
|
|
433
434
|
};
|
|
434
435
|
|
|
435
436
|
export const InteractionContextType = {
|
|
@@ -444,6 +445,7 @@ export const InteractionTypes = {
|
|
|
444
445
|
MESSAGE_COMPONENT: 3,
|
|
445
446
|
APPLICATION_COMMAND_AUTOCOMPLETE: 4,
|
|
446
447
|
MODAL_SUBMIT: 5,
|
|
448
|
+
SOCIAL_LAYER_SKU_PURCHASE_ELIGIBILITY: 6,
|
|
447
449
|
};
|
|
448
450
|
|
|
449
451
|
export const InviteTargetTypes = {
|
|
@@ -681,6 +681,7 @@ export const enum InteractionCallbackTypes {
|
|
|
681
681
|
APPLICATION_COMMAND_AUTOCOMPLETE_RESULT = 8,
|
|
682
682
|
MODAL = 9,
|
|
683
683
|
LAUNCH_ACTIVITY = 12,
|
|
684
|
+
SOCIAL_LAYER_SKU_PURCHASE_ELIGIBILITY = 13,
|
|
684
685
|
}
|
|
685
686
|
|
|
686
687
|
/**
|
|
@@ -709,6 +710,8 @@ export const enum InteractionTypes {
|
|
|
709
710
|
APPLICATION_COMMAND_AUTOCOMPLETE = 4,
|
|
710
711
|
/** Sent when a user submits a modal previously sent by your application */
|
|
711
712
|
MODAL_SUBMIT = 5,
|
|
713
|
+
/** Sent when Discord is checking if a user can purchase a Social Layer SKU */
|
|
714
|
+
SOCIAL_LAYER_SKU_PURCHASE_ELIGIBILITY = 6,
|
|
712
715
|
}
|
|
713
716
|
|
|
714
717
|
/**
|
|
@@ -3161,6 +3164,7 @@ export type GuildResponse = {
|
|
|
3161
3164
|
safety_alerts_channel_id?: null | SnowflakeType;
|
|
3162
3165
|
public_updates_channel_id?: null | SnowflakeType;
|
|
3163
3166
|
premium_progress_bar_enabled: boolean;
|
|
3167
|
+
premium_progress_bar_enabled_user_updated_at?: string | null;
|
|
3164
3168
|
nsfw: boolean;
|
|
3165
3169
|
nsfw_level: GuildNSFWContentLevel;
|
|
3166
3170
|
emojis: EmojiResponse[];
|
|
@@ -3364,6 +3368,7 @@ export type GuildWithCountsResponse = {
|
|
|
3364
3368
|
safety_alerts_channel_id?: null | SnowflakeType;
|
|
3365
3369
|
public_updates_channel_id?: null | SnowflakeType;
|
|
3366
3370
|
premium_progress_bar_enabled: boolean;
|
|
3371
|
+
premium_progress_bar_enabled_user_updated_at?: string | null;
|
|
3367
3372
|
nsfw: boolean;
|
|
3368
3373
|
nsfw_level: GuildNSFWContentLevel;
|
|
3369
3374
|
emojis: EmojiResponse[];
|
|
@@ -4865,6 +4870,15 @@ export type SlackWebhook = {
|
|
|
4865
4870
|
|
|
4866
4871
|
export type SnowflakeType = string;
|
|
4867
4872
|
|
|
4873
|
+
export type SocialLayerSKUPurchaseEligibilityCallbackData = {
|
|
4874
|
+
eligible: boolean;
|
|
4875
|
+
};
|
|
4876
|
+
|
|
4877
|
+
export type SocialLayerSKUPurchaseEligibilityInteractionCallbackRequest = {
|
|
4878
|
+
type: InteractionCallbackTypes.SOCIAL_LAYER_SKU_PURCHASE_ELIGIBILITY;
|
|
4879
|
+
data: SocialLayerSKUPurchaseEligibilityCallbackData;
|
|
4880
|
+
};
|
|
4881
|
+
|
|
4868
4882
|
export type SoundboardCreateRequest = {
|
|
4869
4883
|
name: string;
|
|
4870
4884
|
volume?: number | null;
|
|
@@ -9041,6 +9055,7 @@ export interface Paths {
|
|
|
9041
9055
|
| LaunchActivityInteractionCallbackRequest
|
|
9042
9056
|
| ModalInteractionCallbackRequest
|
|
9043
9057
|
| PongInteractionCallbackRequest
|
|
9058
|
+
| SocialLayerSKUPurchaseEligibilityInteractionCallbackRequest
|
|
9044
9059
|
| UpdateMessageInteractionCallbackRequest;
|
|
9045
9060
|
responses: {
|
|
9046
9061
|
/** 200 response for create_interaction_response */
|
|
@@ -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)),
|
|
@@ -4345,6 +4353,7 @@ export const InteractionCallbackTypesSchema = /* @__PURE__ */ z.union([
|
|
|
4345
4353
|
/* @__PURE__ */ z.literal(8),
|
|
4346
4354
|
/* @__PURE__ */ z.literal(9),
|
|
4347
4355
|
/* @__PURE__ */ z.literal(12),
|
|
4356
|
+
/* @__PURE__ */ z.literal(13),
|
|
4348
4357
|
]);
|
|
4349
4358
|
|
|
4350
4359
|
export const InteractionContextTypeSchema = /* @__PURE__ */ z.union([
|
|
@@ -4369,6 +4378,7 @@ export const InteractionTypesSchema = /* @__PURE__ */ z.union([
|
|
|
4369
4378
|
/* @__PURE__ */ z.literal(3),
|
|
4370
4379
|
/* @__PURE__ */ z.literal(4),
|
|
4371
4380
|
/* @__PURE__ */ z.literal(5),
|
|
4381
|
+
/* @__PURE__ */ z.literal(6),
|
|
4372
4382
|
]);
|
|
4373
4383
|
|
|
4374
4384
|
export const InviteApplicationResponseSchema = /* @__PURE__ */ z.strictObject({
|
|
@@ -6932,6 +6942,16 @@ export const SnowflakeTypeSchema = /* @__PURE__ */ z
|
|
|
6932
6942
|
.string()
|
|
6933
6943
|
.check(/* @__PURE__ */ z.regex(/* @__PURE__ */ new RegExp("^(0|[1-9][0-9]*)$")));
|
|
6934
6944
|
|
|
6945
|
+
export const SocialLayerSKUPurchaseEligibilityCallbackDataSchema = /* @__PURE__ */ z.strictObject({
|
|
6946
|
+
eligible: /* @__PURE__ */ z.boolean(),
|
|
6947
|
+
});
|
|
6948
|
+
|
|
6949
|
+
export const SocialLayerSKUPurchaseEligibilityInteractionCallbackRequestSchema =
|
|
6950
|
+
/* @__PURE__ */ z.strictObject({
|
|
6951
|
+
type: /* @__PURE__ */ z.union([/* @__PURE__ */ z.literal(13)]),
|
|
6952
|
+
data: /* @__PURE__ */ z.lazy(() => SocialLayerSKUPurchaseEligibilityCallbackDataSchema),
|
|
6953
|
+
});
|
|
6954
|
+
|
|
6935
6955
|
export const SortingModeSchema = /* @__PURE__ */ z.enum(["relevance", "timestamp"]);
|
|
6936
6956
|
|
|
6937
6957
|
export const SortingOrderSchema = /* @__PURE__ */ z.enum(["asc", "desc"]);
|
package/package.json
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "discord-api-spec",
|
|
3
|
-
"version": "10.0.
|
|
3
|
+
"version": "10.0.181302",
|
|
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
|
-
"
|
|
10
|
+
"import": "./build/discord-api-spec.js"
|
|
11
11
|
},
|
|
12
12
|
"./preview": {
|
|
13
13
|
"types": "./build/preview/discord-api-spec.ts",
|
|
14
|
-
"
|
|
14
|
+
"import": "./build/preview/discord-api-spec.js"
|
|
15
15
|
},
|
|
16
16
|
"./zod": {
|
|
17
17
|
"types": "./build/discord-api-spec.zod.js",
|
|
18
|
-
"
|
|
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
|
-
"
|
|
22
|
+
"import": "./build/preview/discord-api-spec.zod.js"
|
|
23
23
|
}
|
|
24
24
|
},
|
|
25
25
|
"types": "./build/discord-api-spec.ts",
|