discord-api-spec 10.0.176763 → 10.0.179803

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.
@@ -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
  /**
@@ -4629,6 +4632,15 @@ export type SlackWebhook = {
4629
4632
 
4630
4633
  export type SnowflakeType = string;
4631
4634
 
4635
+ export type SocialLayerSKUPurchaseEligibilityCallbackData = {
4636
+ eligible: boolean;
4637
+ };
4638
+
4639
+ export type SocialLayerSKUPurchaseEligibilityInteractionCallbackRequest = {
4640
+ type: InteractionCallbackTypes.SOCIAL_LAYER_SKU_PURCHASE_ELIGIBILITY;
4641
+ data: SocialLayerSKUPurchaseEligibilityCallbackData;
4642
+ };
4643
+
4632
4644
  export type SoundboardCreateRequest = {
4633
4645
  name: string;
4634
4646
  volume?: number | null;
@@ -8747,6 +8759,7 @@ export interface Paths {
8747
8759
  | LaunchActivityInteractionCallbackRequest
8748
8760
  | ModalInteractionCallbackRequest
8749
8761
  | PongInteractionCallbackRequest
8762
+ | SocialLayerSKUPurchaseEligibilityInteractionCallbackRequest
8750
8763
  | UpdateMessageInteractionCallbackRequest;
8751
8764
  responses: {
8752
8765
  /** 200 response for create_interaction_response */
@@ -4267,6 +4267,7 @@ export const InteractionCallbackTypesSchema = /* @__PURE__ */ z.union([
4267
4267
  /* @__PURE__ */ z.literal(8),
4268
4268
  /* @__PURE__ */ z.literal(9),
4269
4269
  /* @__PURE__ */ z.literal(12),
4270
+ /* @__PURE__ */ z.literal(13),
4270
4271
  ]);
4271
4272
 
4272
4273
  export const InteractionContextTypeSchema = /* @__PURE__ */ z.union([
@@ -4291,6 +4292,7 @@ export const InteractionTypesSchema = /* @__PURE__ */ z.union([
4291
4292
  /* @__PURE__ */ z.literal(3),
4292
4293
  /* @__PURE__ */ z.literal(4),
4293
4294
  /* @__PURE__ */ z.literal(5),
4295
+ /* @__PURE__ */ z.literal(6),
4294
4296
  ]);
4295
4297
 
4296
4298
  export const InviteApplicationResponseSchema = /* @__PURE__ */ z.strictObject({
@@ -6613,6 +6615,16 @@ export const SnowflakeTypeSchema = /* @__PURE__ */ z
6613
6615
  .string()
6614
6616
  .check(/* @__PURE__ */ z.regex(/* @__PURE__ */ new RegExp("^(0|[1-9][0-9]*)$")));
6615
6617
 
6618
+ export const SocialLayerSKUPurchaseEligibilityCallbackDataSchema = /* @__PURE__ */ z.strictObject({
6619
+ eligible: /* @__PURE__ */ z.boolean(),
6620
+ });
6621
+
6622
+ export const SocialLayerSKUPurchaseEligibilityInteractionCallbackRequestSchema =
6623
+ /* @__PURE__ */ z.strictObject({
6624
+ type: /* @__PURE__ */ z.union([/* @__PURE__ */ z.literal(13)]),
6625
+ data: /* @__PURE__ */ z.lazy(() => SocialLayerSKUPurchaseEligibilityCallbackDataSchema),
6626
+ });
6627
+
6616
6628
  export const SortingOrderSchema = /* @__PURE__ */ z.enum(["asc", "desc"]);
6617
6629
 
6618
6630
  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
  /**
@@ -4865,6 +4868,15 @@ export type SlackWebhook = {
4865
4868
 
4866
4869
  export type SnowflakeType = string;
4867
4870
 
4871
+ export type SocialLayerSKUPurchaseEligibilityCallbackData = {
4872
+ eligible: boolean;
4873
+ };
4874
+
4875
+ export type SocialLayerSKUPurchaseEligibilityInteractionCallbackRequest = {
4876
+ type: InteractionCallbackTypes.SOCIAL_LAYER_SKU_PURCHASE_ELIGIBILITY;
4877
+ data: SocialLayerSKUPurchaseEligibilityCallbackData;
4878
+ };
4879
+
4868
4880
  export type SoundboardCreateRequest = {
4869
4881
  name: string;
4870
4882
  volume?: number | null;
@@ -9041,6 +9053,7 @@ export interface Paths {
9041
9053
  | LaunchActivityInteractionCallbackRequest
9042
9054
  | ModalInteractionCallbackRequest
9043
9055
  | PongInteractionCallbackRequest
9056
+ | SocialLayerSKUPurchaseEligibilityInteractionCallbackRequest
9044
9057
  | UpdateMessageInteractionCallbackRequest;
9045
9058
  responses: {
9046
9059
  /** 200 response for create_interaction_response */
@@ -4345,6 +4345,7 @@ export const InteractionCallbackTypesSchema = /* @__PURE__ */ z.union([
4345
4345
  /* @__PURE__ */ z.literal(8),
4346
4346
  /* @__PURE__ */ z.literal(9),
4347
4347
  /* @__PURE__ */ z.literal(12),
4348
+ /* @__PURE__ */ z.literal(13),
4348
4349
  ]);
4349
4350
 
4350
4351
  export const InteractionContextTypeSchema = /* @__PURE__ */ z.union([
@@ -4369,6 +4370,7 @@ export const InteractionTypesSchema = /* @__PURE__ */ z.union([
4369
4370
  /* @__PURE__ */ z.literal(3),
4370
4371
  /* @__PURE__ */ z.literal(4),
4371
4372
  /* @__PURE__ */ z.literal(5),
4373
+ /* @__PURE__ */ z.literal(6),
4372
4374
  ]);
4373
4375
 
4374
4376
  export const InviteApplicationResponseSchema = /* @__PURE__ */ z.strictObject({
@@ -6932,6 +6934,16 @@ export const SnowflakeTypeSchema = /* @__PURE__ */ z
6932
6934
  .string()
6933
6935
  .check(/* @__PURE__ */ z.regex(/* @__PURE__ */ new RegExp("^(0|[1-9][0-9]*)$")));
6934
6936
 
6937
+ export const SocialLayerSKUPurchaseEligibilityCallbackDataSchema = /* @__PURE__ */ z.strictObject({
6938
+ eligible: /* @__PURE__ */ z.boolean(),
6939
+ });
6940
+
6941
+ export const SocialLayerSKUPurchaseEligibilityInteractionCallbackRequestSchema =
6942
+ /* @__PURE__ */ z.strictObject({
6943
+ type: /* @__PURE__ */ z.union([/* @__PURE__ */ z.literal(13)]),
6944
+ data: /* @__PURE__ */ z.lazy(() => SocialLayerSKUPurchaseEligibilityCallbackDataSchema),
6945
+ });
6946
+
6935
6947
  export const SortingModeSchema = /* @__PURE__ */ z.enum(["relevance", "timestamp"]);
6936
6948
 
6937
6949
  export const SortingOrderSchema = /* @__PURE__ */ z.enum(["asc", "desc"]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "discord-api-spec",
3
- "version": "10.0.176763",
3
+ "version": "10.0.179803",
4
4
  "repository": "https://github.com/RiskyMH/discord-api-spec-ts",
5
5
  "author": "RiskyMH",
6
6
  "license": "MIT",