summary refs log tree commit diff
path: root/assets/openapi.json
diff options
context:
space:
mode:
authorPuyodead1 <puyodead@proton.me>2025-12-29 20:20:46 -0500
committerPuyodead1 <puyodead@proton.me>2025-12-29 20:20:46 -0500
commit45c2277bccb28ace30459f22b52713be77c051df (patch)
tree5ff1b5b7511f24a1db52c8533da3c1f96fcdc90c /assets/openapi.json
parentMore schemas for store/collectibles (diff)
downloadserver-ts-feat/quests.tar.xz
implement sku creation route feat/quests
Diffstat (limited to 'assets/openapi.json')
-rw-r--r--assets/openapi.json2620
1 files changed, 1911 insertions, 709 deletions
diff --git a/assets/openapi.json b/assets/openapi.json

index 49255837c..69b01bb33 100644 --- a/assets/openapi.json +++ b/assets/openapi.json
@@ -289,6 +289,48 @@ "success" ] }, + "SKUGuildPowerupMetadataSchema": { + "type": "object", + "properties": { + "boost_price": { + "description": "The number of boosts the powerup costs", + "type": "integer" + }, + "purchase_limit": { + "description": "The maximum number of entitlements a guild can have for the powerup", + "type": "integer" + }, + "guild_features": { + "$ref": "#/components/schemas/GuildPremiumFeatures", + "description": "The features granted by the powerup" + }, + "category_type": { + "$ref": "#/components/schemas/GuildPowerupCategoryType", + "description": "The type of guild powerup" + }, + "static_image_url": { + "description": "URL of the static banner image for the powerup", + "type": "string" + }, + "animated_image_url": { + "description": "URL of the animated banner image for the powerup", + "type": "string" + }, + "store_removal_date": { + "description": "When the powerup will be removed from the store", + "type": "string", + "nullable": true + } + }, + "required": [ + "animated_image_url", + "boost_price", + "category_type", + "guild_features", + "purchase_limit", + "static_image_url" + ] + }, "StoredEmailResponse": { "type": "object", "properties": { @@ -1760,40 +1802,150 @@ "tag" ] }, - "SKUContentRatingSchema": { + "EntitlementTenantMetadataSchema": { "type": "object", "properties": { - "rating": { - "$ref": "#/components/schemas/SKUContentRating", - "description": "The content rating" - }, - "descriptors": { - "description": "The content descriptors", - "type": "array", - "items": { - "$ref": "#/components/schemas/SKUContentDescriptor" - } + "quest_rewards": { + "$ref": "#/components/schemas/EntitlementQuestRewardMetadataSchema" } }, "required": [ - "descriptors", - "rating" + "quest_rewards" ] }, - "SKUExternalSKUStrategySchema": { + "EntitlementSchema": { "type": "object", "properties": { + "id": { + "type": "string" + }, "type": { - "$ref": "#/components/schemas/SKUExternalSKUStrategyType", - "description": "The type of external SKU strategy" + "$ref": "#/components/schemas/EntitlementType" }, - "metadata": { - "description": "Additional metadata for the external SKU strategy", - "$ref": "#/components/schemas/Record<string,string>" + "sku_id": { + "type": "string" + }, + "application_id": { + "type": "string" + }, + "user_id": { + "type": "string" + }, + "user": { + "$ref": "#/components/schemas/Partial<User>" + }, + "guild_id": { + "type": "string" + }, + "parent_id": { + "type": "string" + }, + "deleted": { + "type": "boolean" + }, + "consumed": { + "type": "boolean" + }, + "branches": { + "type": "array", + "items": { + "type": "string" + } + }, + "starts_at": { + "type": "string", + "nullable": true + }, + "ends_at": { + "type": "string", + "nullable": true + }, + "promotion_id": { + "type": "string", + "nullable": true + }, + "subscription_id": { + "type": "string" + }, + "gift_code_flags": { + "type": "number" + }, + "gift_code_batch_id": { + "type": "string" + }, + "gifter_user_id": { + "type": "string" + }, + "gift_style": { + "enum": [ + 1, + 10, + 11, + 12, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9 + ], + "type": "number" + }, + "fulfillment_status": { + "enum": [ + 0, + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8 + ], + "type": "number" + }, + "fulfilled_at": { + "type": "string" + }, + "source_type": { + "enum": [ + 1, + 11, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9 + ], + "type": "number" + }, + "tenant_metadata": { + "$ref": "#/components/schemas/Record<string,EntitlementTenantMetadataSchema>" + }, + "sku": { + "$ref": "#/components/schemas/SKU" + }, + "subscription_plan": { + "$ref": "#/components/schemas/Partial<unknown>" } }, "required": [ - "type" + "application_id", + "deleted", + "ends_at", + "gift_code_flags", + "id", + "promotion_id", + "sku_id", + "starts_at", + "type", + "user_id" ] }, "GuildProfileResponse": { @@ -1919,6 +2071,342 @@ "id" ] }, + "InstanceUserDeleteSchema": { + "$ref": "#/components/schemas/InstanceUserDeleteSchemaContent" + }, + "UserSettingsUpdateSchema": { + "type": "object", + "properties": { + "afk_timeout": { + "type": "integer" + }, + "allow_accessibility_detection": { + "type": "boolean" + }, + "animate_emoji": { + "type": "boolean" + }, + "animate_stickers": { + "type": "integer" + }, + "contact_sync_enabled": { + "type": "boolean" + }, + "convert_emoticons": { + "type": "boolean" + }, + "custom_status": { + "anyOf": [ + { + "$ref": "#/components/schemas/CustomStatus" + }, + { + "type": "null" + } + ] + }, + "default_guilds_restricted": { + "type": "boolean" + }, + "detect_platform_accounts": { + "type": "boolean" + }, + "developer_mode": { + "type": "boolean" + }, + "disable_games_tab": { + "type": "boolean" + }, + "enable_tts_command": { + "type": "boolean" + }, + "explicit_content_filter": { + "type": "integer" + }, + "friend_discovery_flags": { + "type": "integer" + }, + "friend_source_flags": { + "$ref": "#/components/schemas/FriendSourceFlags" + }, + "gateway_connected": { + "type": "boolean" + }, + "gif_auto_play": { + "type": "boolean" + }, + "guild_folders": { + "type": "array", + "items": { + "$ref": "#/components/schemas/GuildFolder" + } + }, + "guild_positions": { + "type": "array", + "items": { + "type": "string" + } + }, + "inline_attachment_media": { + "type": "boolean" + }, + "inline_embed_media": { + "type": "boolean" + }, + "locale": { + "type": "string" + }, + "message_display_compact": { + "type": "boolean" + }, + "native_phone_integration_enabled": { + "type": "boolean" + }, + "render_embeds": { + "type": "boolean" + }, + "render_reactions": { + "type": "boolean" + }, + "restricted_guilds": { + "type": "array", + "items": { + "type": "string" + } + }, + "show_current_game": { + "type": "boolean" + }, + "status": { + "enum": [ + "dnd", + "idle", + "invisible", + "offline", + "online" + ], + "type": "string" + }, + "stream_notifications_enabled": { + "type": "boolean" + }, + "theme": { + "enum": [ + "dark", + "light" + ], + "type": "string" + }, + "timezone_offset": { + "type": "integer" + }, + "view_nsfw_guilds": { + "type": "boolean" + } + } + }, + "UserSettingsSchema": { + "type": "object", + "properties": { + "afk_timeout": { + "type": "integer" + }, + "allow_accessibility_detection": { + "type": "boolean" + }, + "animate_emoji": { + "type": "boolean" + }, + "animate_stickers": { + "type": "integer" + }, + "contact_sync_enabled": { + "type": "boolean" + }, + "convert_emoticons": { + "type": "boolean" + }, + "custom_status": { + "anyOf": [ + { + "$ref": "#/components/schemas/CustomStatus" + }, + { + "type": "null" + } + ] + }, + "default_guilds_restricted": { + "type": "boolean" + }, + "detect_platform_accounts": { + "type": "boolean" + }, + "developer_mode": { + "type": "boolean" + }, + "disable_games_tab": { + "type": "boolean" + }, + "enable_tts_command": { + "type": "boolean" + }, + "explicit_content_filter": { + "type": "integer" + }, + "friend_discovery_flags": { + "type": "integer" + }, + "friend_source_flags": { + "$ref": "#/components/schemas/FriendSourceFlags" + }, + "gateway_connected": { + "type": "boolean" + }, + "gif_auto_play": { + "type": "boolean" + }, + "guild_folders": { + "type": "array", + "items": { + "$ref": "#/components/schemas/GuildFolder" + } + }, + "guild_positions": { + "type": "array", + "items": { + "type": "string" + } + }, + "inline_attachment_media": { + "type": "boolean" + }, + "inline_embed_media": { + "type": "boolean" + }, + "locale": { + "type": "string" + }, + "message_display_compact": { + "type": "boolean" + }, + "native_phone_integration_enabled": { + "type": "boolean" + }, + "render_embeds": { + "type": "boolean" + }, + "render_reactions": { + "type": "boolean" + }, + "restricted_guilds": { + "type": "array", + "items": { + "type": "string" + } + }, + "show_current_game": { + "type": "boolean" + }, + "status": { + "enum": [ + "dnd", + "idle", + "invisible", + "offline", + "online" + ], + "type": "string" + }, + "stream_notifications_enabled": { + "type": "boolean" + }, + "theme": { + "enum": [ + "dark", + "light" + ], + "type": "string" + }, + "timezone_offset": { + "type": "integer" + }, + "view_nsfw_guilds": { + "type": "boolean" + } + }, + "required": [ + "afk_timeout", + "allow_accessibility_detection", + "animate_emoji", + "animate_stickers", + "contact_sync_enabled", + "convert_emoticons", + "custom_status", + "default_guilds_restricted", + "detect_platform_accounts", + "developer_mode", + "disable_games_tab", + "enable_tts_command", + "explicit_content_filter", + "friend_discovery_flags", + "friend_source_flags", + "gateway_connected", + "gif_auto_play", + "guild_folders", + "guild_positions", + "inline_attachment_media", + "inline_embed_media", + "locale", + "message_display_compact", + "native_phone_integration_enabled", + "render_embeds", + "render_reactions", + "restricted_guilds", + "show_current_game", + "status", + "stream_notifications_enabled", + "theme", + "timezone_offset", + "view_nsfw_guilds" + ] + }, + "SKUContentRatingSchema": { + "type": "object", + "properties": { + "rating": { + "$ref": "#/components/schemas/SKUContentRating", + "description": "The content rating" + }, + "descriptors": { + "description": "The content descriptors", + "type": "array", + "items": { + "$ref": "#/components/schemas/SKUContentDescriptor" + } + } + }, + "required": [ + "descriptors", + "rating" + ] + }, + "SKUExternalSKUStrategySchema": { + "type": "object", + "properties": { + "type": { + "$ref": "#/components/schemas/SKUExternalSKUStrategyType", + "description": "The type of external SKU strategy" + }, + "metadata": { + "description": "Additional metadata for the external SKU strategy", + "$ref": "#/components/schemas/Record<string,string>" + } + }, + "required": [ + "type" + ] + }, "SKUGameServerPowerupMetadataSchema": { "type": "object", "properties": { @@ -1985,48 +2473,6 @@ "storage" ] }, - "SKUGuildPowerupMetadataSchema": { - "type": "object", - "properties": { - "boost_price": { - "description": "The number of boosts the powerup costs", - "type": "integer" - }, - "purchase_limit": { - "description": "The maximum number of entitlements a guild can have for the powerup", - "type": "integer" - }, - "guild_features": { - "$ref": "#/components/schemas/GuildPremiumFeatures", - "description": "The features granted by the powerup" - }, - "category_type": { - "$ref": "#/components/schemas/GuildPowerupCategoryType", - "description": "The type of guild powerup" - }, - "static_image_url": { - "description": "URL of the static banner image for the powerup", - "type": "string" - }, - "animated_image_url": { - "description": "URL of the animated banner image for the powerup", - "type": "string" - }, - "store_removal_date": { - "description": "When the powerup will be removed from the store", - "type": "string", - "nullable": true - } - }, - "required": [ - "animated_image_url", - "boost_price", - "category_type", - "guild_features", - "purchase_limit", - "static_image_url" - ] - }, "SKUGuildMonetizationMetadataSchema": { "type": "object", "properties": { @@ -3160,7 +3606,10 @@ "type": "string" }, "localizations": { - "$ref": "#/components/schemas/Record<string,string>" + "type": "object", + "additionalProperties": { + "type": "string" + } } }, "required": [ @@ -3854,6 +4303,10 @@ "type": "string", "nullable": true }, + "banner": { + "type": "string", + "nullable": true + }, "system_channel_id": { "type": "string" }, @@ -3866,10 +4319,6 @@ "staff_only": { "type": "boolean" }, - "banner": { - "type": "string", - "nullable": true - }, "splash": { "type": "string", "nullable": true @@ -5135,6 +5584,15 @@ "$ref": "#/components/schemas/Webhook" } }, + "roles": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Role" + } + }, + "banner": { + "type": "string" + }, "channels": { "type": "array", "items": { @@ -5155,9 +5613,6 @@ "type": "string", "nullable": true }, - "banner": { - "type": "string" - }, "splash": { "type": "string" }, @@ -5223,12 +5678,6 @@ "presence_count": { "type": "integer" }, - "roles": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Role" - } - }, "template_id": { "type": "string" }, @@ -5309,9 +5758,28 @@ "description": "A Twitter-like snowflake, except the epoch is 2015-01-01T00:00:00.000Z\n```\nIf we have a snowflake '266241948824764416' we can represent it as binary:\n\n64 22 17 12 0\n 000000111011000111100001101001000101000000 00001 00000 000000000000\n number of ms since Discord epoch worker pid increment\n```", "type": "string" }, + "premium_since": { + "type": "string", + "format": "date-time" + }, + "avatar": { + "type": "string" + }, "banner": { "type": "string" }, + "bio": { + "type": "string" + }, + "theme_colors": { + "type": "array", + "items": { + "type": "integer" + } + }, + "pronouns": { + "type": "string" + }, "username": { "type": "string" }, @@ -5321,34 +5789,15 @@ "public_flags": { "type": "integer" }, - "avatar": { - "type": "string" - }, "accent_color": { "type": "integer" }, - "bio": { - "type": "string" - }, "bot": { "type": "boolean" }, - "premium_since": { - "type": "string", - "format": "date-time" - }, "premium_type": { "type": "integer" }, - "theme_colors": { - "type": "array", - "items": { - "type": "integer" - } - }, - "pronouns": { - "type": "string" - }, "badge_ids": { "type": "array", "items": { @@ -5383,9 +5832,31 @@ "disabled": { "type": "boolean" }, + "verified": { + "type": "boolean" + }, + "premium_since": { + "type": "string", + "format": "date-time" + }, + "avatar": { + "type": "string" + }, "banner": { "type": "string" }, + "bio": { + "type": "string" + }, + "theme_colors": { + "type": "array", + "items": { + "type": "integer" + } + }, + "pronouns": { + "type": "string" + }, "username": { "type": "string" }, @@ -5395,34 +5866,15 @@ "public_flags": { "type": "integer" }, - "avatar": { - "type": "string" - }, "accent_color": { "type": "integer" }, - "bio": { - "type": "string" - }, "bot": { "type": "boolean" }, - "premium_since": { - "type": "string", - "format": "date-time" - }, "premium_type": { "type": "integer" }, - "theme_colors": { - "type": "array", - "items": { - "type": "integer" - } - }, - "pronouns": { - "type": "string" - }, "badge_ids": { "type": "array", "items": { @@ -5435,9 +5887,6 @@ "phone": { "type": "string" }, - "verified": { - "type": "boolean" - }, "nsfw_allowed": { "type": "boolean" }, @@ -5510,9 +5959,31 @@ "disabled": { "type": "boolean" }, + "verified": { + "type": "boolean" + }, + "premium_since": { + "type": "string", + "format": "date-time" + }, + "avatar": { + "type": "string" + }, "banner": { "type": "string" }, + "bio": { + "type": "string" + }, + "theme_colors": { + "type": "array", + "items": { + "type": "integer" + } + }, + "pronouns": { + "type": "string" + }, "username": { "type": "string" }, @@ -5522,34 +5993,15 @@ "public_flags": { "type": "integer" }, - "avatar": { - "type": "string" - }, "accent_color": { "type": "integer" }, - "bio": { - "type": "string" - }, "bot": { "type": "boolean" }, - "premium_since": { - "type": "string", - "format": "date-time" - }, "premium_type": { "type": "integer" }, - "theme_colors": { - "type": "array", - "items": { - "type": "integer" - } - }, - "pronouns": { - "type": "string" - }, "badge_ids": { "type": "array", "items": { @@ -5562,9 +6014,6 @@ "phone": { "type": "string" }, - "verified": { - "type": "boolean" - }, "nsfw_allowed": { "type": "boolean" }, @@ -5744,17 +6193,27 @@ "deaf": { "type": "boolean" }, - "banner": { + "nick": { "type": "string" }, + "joined_at": { + "type": "string", + "format": "date-time" + }, + "pending": { + "type": "boolean" + }, + "premium_since": { + "type": "integer" + }, "avatar": { "type": "string" }, - "bio": { + "banner": { "type": "string" }, - "premium_since": { - "type": "integer" + "bio": { + "type": "string" }, "theme_colors": { "type": "array", @@ -5765,16 +6224,6 @@ "pronouns": { "type": "string" }, - "nick": { - "type": "string" - }, - "joined_at": { - "type": "string", - "format": "date-time" - }, - "pending": { - "type": "boolean" - }, "communication_disabled_until": { "anyOf": [ { @@ -5889,6 +6338,10 @@ "type": "string", "nullable": true }, + "banner": { + "type": "string", + "nullable": true + }, "system_channel_id": { "type": "string" }, @@ -5901,10 +6354,6 @@ "staff_only": { "type": "boolean" }, - "banner": { - "type": "string", - "nullable": true - }, "splash": { "type": "string", "nullable": true @@ -6274,6 +6723,27 @@ "user" ] }, + "CreateApplicationSKUResponseSchema": { + "type": "object", + "properties": { + "skus": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SKU" + } + }, + "store_listings": { + "type": "array", + "items": { + "$ref": "#/components/schemas/StoreListingSchema" + } + } + }, + "required": [ + "skus", + "store_listings" + ] + }, "MFAResponse": { "type": "object", "properties": { @@ -8934,450 +9404,509 @@ "expires_at" ] }, - "EntitlementTenantMetadataSchema": { - "type": "object", - "properties": { - "quest_rewards": { - "$ref": "#/components/schemas/EntitlementQuestRewardMetadataSchema" - } - }, - "required": [ - "quest_rewards" - ] - }, - "EntitlementSchema": { + "CreateApplicationSKUSchema": { "type": "object", "properties": { - "id": { - "type": "string" - }, - "type": { - "$ref": "#/components/schemas/EntitlementType" - }, - "sku_id": { - "type": "string" - }, - "application_id": { - "type": "string" - }, - "user_id": { - "type": "string" - }, - "user": { - "$ref": "#/components/schemas/Partial<User>" - }, - "guild_id": { - "type": "string" - }, - "parent_id": { - "type": "string" - }, - "deleted": { - "type": "boolean" - }, - "consumed": { - "type": "boolean" - }, - "branches": { - "type": "array", - "items": { - "type": "string" - } - }, - "starts_at": { - "type": "string", - "nullable": true - }, - "ends_at": { - "type": "string", - "nullable": true - }, - "promotion_id": { - "type": "string", - "nullable": true - }, - "subscription_id": { - "type": "string" - }, - "gift_code_flags": { - "type": "number" - }, - "gift_code_batch_id": { + "name": { "type": "string" }, - "gifter_user_id": { - "type": "string" + "sku_type": { + "$ref": "#/components/schemas/SKUType" }, - "gift_style": { + "product_line": { "enum": [ 1, 10, 11, 12, + 13, + 14, 2, 3, 4, 5, 6, 7, - 8, 9 ], "type": "number" + } + }, + "required": [ + "name", + "sku_type" + ] + }, + "StoreAssetSchema": { + "type": "object", + "properties": { + "id": { + "description": "The ID of the asset", + "type": "string" }, - "fulfillment_status": { - "enum": [ - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8 - ], - "type": "number" + "size": { + "description": "The size of the asset in bytes", + "type": "integer" }, - "fulfilled_at": { + "mime_type": { + "description": "The asset's media type", "type": "string" }, - "source_type": { - "enum": [ - 1, - 11, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9 - ], - "type": "number" - }, - "tenant_metadata": { - "$ref": "#/components/schemas/Record<string,EntitlementTenantMetadataSchema>" + "filename": { + "description": "The filename of the asset", + "type": "string" }, - "sku": { - "$ref": "#/components/schemas/SKUSchema" + "width": { + "description": "The width of the asset in pixels", + "type": "integer" }, - "subscription_plan": { - "$ref": "#/components/schemas/Partial<unknown>" + "height": { + "description": "The height of the asset in pixels", + "type": "integer" } }, "required": [ - "application_id", - "deleted", - "ends_at", - "gift_code_flags", + "filename", + "height", "id", - "promotion_id", - "sku_id", - "starts_at", - "type", - "user_id" + "mime_type", + "size", + "width" ] }, - "InstanceUserDeleteSchema": { - "$ref": "#/components/schemas/InstanceUserDeleteSchemaContent" - }, - "UserSettingsUpdateSchema": { + "StoreListingIconSchema": { "type": "object", "properties": { - "afk_timeout": { - "type": "integer" - }, - "allow_accessibility_detection": { - "type": "boolean" + "type": { + "$ref": "#/components/schemas/StoreListingIconType", + "description": "The type of icon" }, - "animate_emoji": { - "type": "boolean" + "store_asset_id": { + "description": "The store asset ID for the icon", + "type": "string" }, - "animate_stickers": { - "type": "integer" + "emoji": { + "description": "The unicode emoji for the icon", + "type": "string" + } + }, + "required": [ + "emoji", + "store_asset_id", + "type" + ] + }, + "StoreListingBenefitSchema": { + "type": "object", + "properties": { + "id": { + "description": "The ID of the benefit", + "type": "string" }, - "contact_sync_enabled": { - "type": "boolean" + "name": { + "description": "The name of the benefit", + "type": "string" }, - "convert_emoticons": { - "type": "boolean" + "description": { + "description": "The description of the benefit", + "type": "string" }, - "custom_status": { + "icon": { + "$ref": "#/components/schemas/StoreListingIconSchema", + "description": "The icon for the benefit" + } + }, + "required": [ + "description", + "icon", + "id", + "name" + ] + }, + "StoreNoteSchema": { + "type": "object", + "properties": { + "user": { + "description": "The user who made the note", "anyOf": [ { - "$ref": "#/components/schemas/CustomStatus" + "$ref": "#/components/schemas/Partial<User>" }, { "type": "null" } ] }, - "default_guilds_restricted": { - "type": "boolean" + "content": { + "description": "The note content", + "type": "string" + } + }, + "required": [ + "content", + "user" + ] + }, + "StoreListingSchema": { + "description": "Store listing objects can either be localized or unlocalized. Localized listings only serialize strings and pricing for the user's location, while unlocalized listings serialize all strings and pricing for all locales. All objects serialized in the listing inherit this behavior.", + "type": "object", + "properties": { + "id": { + "description": "The ID of the listing", + "type": "string" }, - "detect_platform_accounts": { - "type": "boolean" + "sku": { + "$ref": "#/components/schemas/SKU", + "description": "The SKU associated with the listing" }, - "developer_mode": { - "type": "boolean" + "child_skus": { + "description": "The child SKUs associated with the category listing", + "type": "array", + "items": { + "$ref": "#/components/schemas/SKU" + } }, - "disable_games_tab": { - "type": "boolean" + "alternative_skus": { + "description": "Alternative SKUs for the listing", + "type": "array", + "items": { + "$ref": "#/components/schemas/SKU" + } }, - "enable_tts_command": { - "type": "boolean" + "summary": { + "$ref": "#/components/schemas/LocalizedStringSchema", + "description": "A summary of the listing" }, - "explicit_content_filter": { - "type": "integer" + "description": { + "description": "A description of the listing", + "$ref": "#/components/schemas/LocalizedStringSchema" }, - "friend_discovery_flags": { - "type": "integer" + "tagline": { + "description": "A tagline for the listing", + "anyOf": [ + { + "$ref": "#/components/schemas/LocalizedStringSchema" + }, + { + "type": "null" + } + ] }, - "friend_source_flags": { - "$ref": "#/components/schemas/FriendSourceFlags" + "flavor_text": { + "description": "Flavor text for the listing", + "type": "string", + "nullable": true }, - "gateway_connected": { - "type": "boolean" + "benefits": { + "description": "The benefits of the listing", + "type": "array", + "items": { + "$ref": "#/components/schemas/StoreListingBenefitSchema" + } }, - "gif_auto_play": { + "published": { + "description": "Whether the listing is published", "type": "boolean" }, - "guild_folders": { + "carousel_items": { + "description": "The carousel items for the listing", "type": "array", "items": { - "$ref": "#/components/schemas/GuildFolder" + "$ref": "#/components/schemas/StoreCarouselItemSchema" } }, - "guild_positions": { + "staff_notes": { + "description": "Notes from staff about the listing", + "$ref": "#/components/schemas/StoreNoteSchema" + }, + "guild": { + "description": "The public guild associated with the listing", + "anyOf": [ + { + "$ref": "#/components/schemas/Partial<Guild>" + }, + { + "type": "null" + } + ] + }, + "assets": { + "description": "The store assets for the listing", "type": "array", "items": { - "type": "string" + "$ref": "#/components/schemas/StoreAssetSchema" } }, - "inline_attachment_media": { - "type": "boolean" + "thumbnail": { + "description": "The thumbnail for the listing", + "$ref": "#/components/schemas/StoreAssetSchema" }, - "inline_embed_media": { - "type": "boolean" + "preview_video": { + "description": "The preview video for the listing", + "$ref": "#/components/schemas/StoreAssetSchema" }, - "locale": { - "type": "string" + "header_background": { + "description": "The header background for the listing", + "$ref": "#/components/schemas/StoreAssetSchema" }, - "message_display_compact": { - "type": "boolean" + "header_logo_dark_theme": { + "description": "The dark theme header logo for the listing", + "$ref": "#/components/schemas/StoreAssetSchema" }, - "native_phone_integration_enabled": { - "type": "boolean" + "header_logo_light_theme": { + "description": "The light theme header logo for the listing", + "$ref": "#/components/schemas/StoreAssetSchema" }, - "render_embeds": { - "type": "boolean" + "box_art": { + "description": "The box art for the listing", + "$ref": "#/components/schemas/StoreAssetSchema" }, - "render_reactions": { - "type": "boolean" + "hero_background": { + "description": "The hero background for the listing", + "$ref": "#/components/schemas/StoreAssetSchema" }, - "restricted_guilds": { - "type": "array", - "items": { - "type": "string" - } + "hero_video": { + "description": "The hero video for the listing", + "$ref": "#/components/schemas/StoreAssetSchema" }, - "show_current_game": { - "type": "boolean" + "entitlement_branch_id": { + "description": "The application branch ID granted by the listing", + "type": "string", + "nullable": true }, - "status": { - "enum": [ - "dnd", - "idle", - "invisible", - "offline", - "online" - ], + "published_at": { + "description": "When the listing was published", "type": "string" }, - "stream_notifications_enabled": { - "type": "boolean" + "unpublished_at": { + "description": "When the listing was unpublished", + "type": "string" }, - "theme": { - "enum": [ - "dark", - "light" - ], + "powerup_metadata": { + "description": "The guild powerup metadata for the listing", + "$ref": "#/components/schemas/Partial<SKUGuildPowerupMetadataSchema>" + } + }, + "required": [ + "id", + "sku", + "summary" + ] + }, + "ApplicationExecutableSchema": { + "type": "object", + "properties": { + "os": { + "description": "The operating system the executable can be found on", "type": "string" }, - "timezone_offset": { - "type": "integer" + "name": { + "description": "The name of the executable", + "type": "string" }, - "view_nsfw_guilds": { + "is_launcher": { + "description": "Whether the executable is for a game launcher", "type": "boolean" } - } + }, + "required": [ + "is_launcher", + "name", + "os" + ] }, - "UserSettingsSchema": { + "ApplicationSKUSchema": { "type": "object", "properties": { - "afk_timeout": { - "type": "integer" + "id": { + "description": "The ID of the game", + "type": "string", + "nullable": true }, - "allow_accessibility_detection": { - "type": "boolean" + "sku": { + "description": "The SKU of the game", + "type": "string", + "nullable": true }, - "animate_emoji": { - "type": "boolean" + "distributor": { + "$ref": "#/components/schemas/ApplicationSKUDistributor", + "description": "The distributor of the game" + } + }, + "required": [ + "distributor", + "id", + "sku" + ] + }, + "ApplicationCompanySchema": { + "type": "object", + "properties": { + "id": { + "description": "The ID of the company", + "type": "string" }, - "animate_stickers": { - "type": "integer" + "name": { + "description": "The name of the company", + "type": "string" + } + }, + "required": [ + "id", + "name" + ] + }, + "ApplicationInstallParamsSchema": { + "type": "object", + "properties": { + "scopes": { + "description": "The scopes to authorize the integration with", + "type": "array", + "items": { + "type": "string" + } }, - "contact_sync_enabled": { - "type": "boolean" + "permissions": { + "description": "The permissions to request for the application's bot integration role", + "type": "string" + } + }, + "required": [ + "permissions", + "scopes" + ] + }, + "ApplicationIntegrationTypeConfigurationSchema": { + "type": "object", + "properties": { + "oauth2_install_params": { + "description": "The default in-app authorization link for the installation context", + "$ref": "#/components/schemas/ApplicationInstallParamsSchema" + } + } + }, + "CreateSKUSchema": { + "type": "object", + "properties": { + "type": { + "$ref": "#/components/schemas/SKUType", + "description": "The type of SKU" }, - "convert_emoticons": { - "type": "boolean" + "application_id": { + "description": "The ID of the application the SKU belongs to", + "type": "string" }, - "custom_status": { + "name": { + "description": "The name of the SKU (1-256 characters)", "anyOf": [ { - "$ref": "#/components/schemas/CustomStatus" + "$ref": "#/components/schemas/LocalizedStringSchema" }, { - "type": "null" + "type": "string" } ] }, - "default_guilds_restricted": { - "type": "boolean" - }, - "detect_platform_accounts": { - "type": "boolean" - }, - "developer_mode": { - "type": "boolean" - }, - "disable_games_tab": { - "type": "boolean" - }, - "enable_tts_command": { - "type": "boolean" - }, - "explicit_content_filter": { - "type": "integer" - }, - "friend_discovery_flags": { + "flags": { + "description": "The SKU flags (only AVAILABLE can be set)\nSKUFlags bitfield", "type": "integer" }, - "friend_source_flags": { - "$ref": "#/components/schemas/FriendSourceFlags" - }, - "gateway_connected": { - "type": "boolean" + "legal_notice": { + "description": "The legal notice for the SKU (max 1024 characters)", + "$ref": "#/components/schemas/LocalizedStringSchema" }, - "gif_auto_play": { - "type": "boolean" + "dependent_sku_id": { + "description": "The ID of the prerequisite required to buy this SKU", + "type": "string" }, - "guild_folders": { + "bundled_skus": { + "description": "The IDs of the SKUs that are included when purchasing this SKU", "type": "array", "items": { - "$ref": "#/components/schemas/GuildFolder" + "type": "string" } }, - "guild_positions": { + "access_type": { + "description": "The access level of the SKU", + "enum": [ + 1, + 2 + ], + "type": "number" + }, + "manifest_labels": { + "description": "The IDs of the manifest labels associated with the SKU", "type": "array", "items": { "type": "string" } }, - "inline_attachment_media": { - "type": "boolean" - }, - "inline_embed_media": { - "type": "boolean" - }, - "locale": { - "type": "string" - }, - "message_display_compact": { - "type": "boolean" - }, - "native_phone_integration_enabled": { - "type": "boolean" - }, - "render_embeds": { - "type": "boolean" - }, - "render_reactions": { - "type": "boolean" + "features": { + "description": "The features of the SKU", + "type": "array", + "items": { + "$ref": "#/components/schemas/SKUFeature" + } }, - "restricted_guilds": { + "locales": { + "description": "The locales the SKU is available in", "type": "array", "items": { "type": "string" } }, - "show_current_game": { - "type": "boolean" + "genres": { + "description": "The genres of the SKU", + "type": "array", + "items": { + "$ref": "#/components/schemas/SKUGenre" + } }, - "status": { - "enum": [ - "dnd", - "idle", - "invisible", - "offline", - "online" - ], - "type": "string" + "content_ratings": { + "description": "The content ratings of the SKU per agency", + "type": "object", + "additionalProperties": { + "$ref": "#/components/schemas/SKUContentRatingSchema" + } }, - "stream_notifications_enabled": { - "type": "boolean" + "system_requirements": { + "description": "The system requirements for each operating system the SKU supports", + "type": "object", + "additionalProperties": { + "$ref": "#/components/schemas/SKUSystemRequirementsSchema" + } }, - "theme": { - "enum": [ - "dark", - "light" - ], - "type": "string" + "price_tier": { + "description": "The base price of the SKU", + "type": "integer" }, - "timezone_offset": { + "price": { + "description": "Localized pricing overrides per lower-cased ISO 4217 currency code", + "type": "object", + "additionalProperties": { + "type": "integer" + } + }, + "sale_price_tier": { + "description": "The sale price of the SKU", "type": "integer" }, - "view_nsfw_guilds": { - "type": "boolean" + "sale_price": { + "description": "Localized sale pricing overrides per lower-cased ISO 4217 currency code", + "type": "object", + "additionalProperties": { + "type": "integer" + } + }, + "release_date": { + "description": "When the SKU will be released", + "type": "string" } }, "required": [ - "afk_timeout", - "allow_accessibility_detection", - "animate_emoji", - "animate_stickers", - "contact_sync_enabled", - "convert_emoticons", - "custom_status", - "default_guilds_restricted", - "detect_platform_accounts", - "developer_mode", - "disable_games_tab", - "enable_tts_command", - "explicit_content_filter", - "friend_discovery_flags", - "friend_source_flags", - "gateway_connected", - "gif_auto_play", - "guild_folders", - "guild_positions", - "inline_attachment_media", - "inline_embed_media", - "locale", - "message_display_compact", - "native_phone_integration_enabled", - "render_embeds", - "render_reactions", - "restricted_guilds", - "show_current_game", - "status", - "stream_notifications_enabled", - "theme", - "timezone_offset", - "view_nsfw_guilds" + "application_id", + "name", + "type" ] }, "IdentifySchema": { @@ -10045,6 +10574,44 @@ 2 ] }, + "GuildPremiumFeatures": { + "type": "object", + "properties": { + "features": { + "description": "Enabled powerup-specific guild features", + "type": "array", + "items": { + "type": "string" + } + }, + "additional_emoji_slots": { + "description": "The number of additional emoji slots available to the guild", + "type": "integer" + }, + "additional_sticker_slots": { + "description": "The number of additional sticker slots available to the guild", + "type": "integer" + }, + "additional_sound_slots": { + "description": "The number of additional soundboard slots available to the guild", + "type": "integer" + } + }, + "required": [ + "additional_emoji_slots", + "additional_sound_slots", + "additional_sticker_slots", + "features" + ] + }, + "GuildPowerupCategoryType": { + "type": "number", + "enum": [ + 0, + 1, + 2 + ] + }, "ErrorList": { "type": "object" }, @@ -12682,16 +13249,13 @@ "default": [] }, "rpc_application_state": { - "type": "integer", - "default": 0 + "$ref": "#/components/schemas/RPCApplicationState" }, "store_application_state": { - "type": "integer", - "default": 1 + "$ref": "#/components/schemas/StoreApplicationState" }, "verification_state": { - "type": "integer", - "default": 1 + "$ref": "#/components/schemas/ApplicationVerificationState" }, "interactions_endpoint_url": { "type": "string" @@ -12705,12 +13269,11 @@ "default": false }, "discoverability_state": { - "type": "integer", - "default": 1 + "$ref": "#/components/schemas/ApplicationDiscoverabilityState" }, "discovery_eligibility_flags": { "type": "integer", - "default": 2240 + "default": 0 }, "bot": { "$ref": "#/components/schemas/User" @@ -12758,6 +13321,189 @@ "custom_install_url": { "type": "string" }, + "splash": { + "type": "string" + }, + "primary_sku_id": { + "type": "string" + }, + "eula_id": { + "type": "string" + }, + "slug": { + "type": "string" + }, + "aliases": { + "type": "array", + "items": { + "type": "string" + } + }, + "executables": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ApplicationExecutableSchema" + } + }, + "third_party_skus": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ApplicationSKUSchema" + } + }, + "overlay": { + "type": "boolean", + "default": false + }, + "overlay_methods": { + "type": "integer" + }, + "overlay_warn": { + "type": "boolean", + "default": false + }, + "overlay_compatibility_hook": { + "type": "boolean", + "default": false + }, + "developers": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ApplicationCompanySchema" + } + }, + "publishers": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ApplicationCompanySchema" + } + }, + "rpc_origins": { + "type": "array", + "items": { + "type": "string" + } + }, + "deeplink_uri": { + "type": "string" + }, + "bot_disabled": { + "type": "boolean", + "default": false + }, + "bot_quarantined": { + "type": "boolean", + "default": false + }, + "bot_approximate_guild_count": { + "type": "integer" + }, + "approximate_guild_count": { + "type": "integer" + }, + "approximate_user_install_count": { + "type": "integer" + }, + "approximate_user_authorization_count": { + "type": "integer" + }, + "internal_guild_restriction": { + "enum": [ + 1, + 2, + 3 + ], + "type": "number" + }, + "role_connections_verification_url": { + "type": "string", + "default": null, + "nullable": true + }, + "interactions_version": { + "$ref": "#/components/schemas/ApplicationInteractionsVersion" + }, + "interactions_event_types": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ApplicationEventWebhooksType" + }, + "default": [] + }, + "event_webhooks_status": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, + "event_webhooks_url": { + "type": "string" + }, + "event_webhooks_types": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ApplicationEventWebhooksType" + } + }, + "explicit_content_filter": { + "type": "integer", + "default": 0 + }, + "integration_types_config": { + "type": "object", + "additionalProperties": false, + "patternProperties": { + "^[0-9]+$": { + "$ref": "#/components/schemas/ApplicationIntegrationTypeConfigurationSchema" + } + } + }, + "connection_entrypoint_url": { + "type": "string" + }, + "is_verified": { + "type": "boolean", + "default": false + }, + "creator_monetization_state": { + "type": "integer", + "default": 0 + }, + "is_discoverable": { + "type": "boolean", + "default": false + }, + "is_monetized": { + "type": "boolean", + "default": false + }, + "storefront_available": { + "type": "boolean", + "default": false + }, + "monetization_state": { + "$ref": "#/components/schemas/ApplicationMonetizationState" + }, + "monetization_eligibility_flags": { + "type": "integer", + "default": 0 + }, + "max_participants": { + "type": "integer" + }, + "embedded_activity_config": { + "type": "object", + "properties": {}, + "additionalProperties": true + }, + "approved_consoles": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ApplicationApprovableConsoleType" + }, + "default": [] + }, "team": { "$ref": "#/components/schemas/Team" }, @@ -12766,24 +13512,136 @@ } }, "required": [ + "approved_consoles", + "creator_monetization_state", "description", "discoverability_state", "discovery_eligibility_flags", + "explicit_content_filter", "flags", "hook", "id", "integration_public", "integration_require_code_grant", + "interactions_event_types", + "interactions_version", + "is_discoverable", + "is_monetized", + "is_verified", + "monetization_state", "name", "owner", "redirect_uris", + "role_connections_verification_url", "rpc_application_state", "store_application_state", + "storefront_available", "summary", "verification_state", "verify_key" ] }, + "RPCApplicationState": { + "type": "number", + "enum": [ + 0, + 1, + 2, + 3, + 4 + ] + }, + "StoreApplicationState": { + "type": "number", + "enum": [ + 1, + 2, + 3, + 4, + 5 + ] + }, + "ApplicationVerificationState": { + "type": "number", + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6 + ] + }, + "ApplicationDiscoverabilityState": { + "type": "number", + "enum": [ + 1, + 2, + 3, + 4, + 5 + ] + }, + "ApplicationSKUDistributor": { + "description": "[Distributor Type](https://docs.discord.food/resources/application#distributor-type)\n\nFIELD\tTYPE\tDESCRIPTION\n\nid\t?string\tThe ID of the game\n\nsku\t?string\tThe SKU of the game\n\ndistributor\tstring\tThe [distributor](https://docs.discord.food/resources/application#distributor-type) of the game\n\nTypeScript", + "type": "number", + "enum": [ + 0, + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13 + ] + }, + "ApplicationInteractionsVersion": { + "type": "number", + "enum": [ + 1, + 2 + ] + }, + "ApplicationEventWebhooksType": { + "type": "number", + "enum": [ + 0, + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11 + ] + }, + "ApplicationMonetizationState": { + "type": "number", + "enum": [ + 1, + 2, + 3 + ] + }, + "ApplicationApprovableConsoleType": { + "type": "number", + "enum": [ + 1, + 2, + 3 + ] + }, "Team": { "type": "object", "properties": { @@ -13765,17 +14623,27 @@ "deaf": { "type": "boolean" }, - "banner": { + "nick": { "type": "string" }, + "joined_at": { + "type": "string", + "format": "date-time" + }, + "pending": { + "type": "boolean" + }, + "premium_since": { + "type": "integer" + }, "avatar": { "type": "string" }, - "bio": { + "banner": { "type": "string" }, - "premium_since": { - "type": "integer" + "bio": { + "type": "string" }, "theme_colors": { "type": "array", @@ -13786,16 +14654,6 @@ "pronouns": { "type": "string" }, - "nick": { - "type": "string" - }, - "joined_at": { - "type": "string", - "format": "date-time" - }, - "pending": { - "type": "boolean" - }, "communication_disabled_until": { "anyOf": [ { @@ -13838,9 +14696,28 @@ "description": "A Twitter-like snowflake, except the epoch is 2015-01-01T00:00:00.000Z\n```\nIf we have a snowflake '266241948824764416' we can represent it as binary:\n\n64 22 17 12 0\n 000000111011000111100001101001000101000000 00001 00000 000000000000\n number of ms since Discord epoch worker pid increment\n```", "type": "string" }, + "premium_since": { + "type": "string", + "format": "date-time" + }, + "avatar": { + "type": "string" + }, "banner": { "type": "string" }, + "bio": { + "type": "string" + }, + "theme_colors": { + "type": "array", + "items": { + "type": "integer" + } + }, + "pronouns": { + "type": "string" + }, "username": { "type": "string" }, @@ -13850,34 +14727,15 @@ "public_flags": { "type": "integer" }, - "avatar": { - "type": "string" - }, "accent_color": { "type": "integer" }, - "bio": { - "type": "string" - }, "bot": { "type": "boolean" }, - "premium_since": { - "type": "string", - "format": "date-time" - }, "premium_type": { "type": "integer" }, - "theme_colors": { - "type": "array", - "items": { - "type": "integer" - } - }, - "pronouns": { - "type": "string" - }, "badge_ids": { "type": "array", "items": { @@ -13994,6 +14852,363 @@ "not_shareable" ] }, + "EntitlementType": { + "type": "number", + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13 + ] + }, + "SKU": { + "type": "object", + "properties": { + "type": { + "$ref": "#/components/schemas/SKUType" + }, + "application_id": { + "type": "string" + }, + "application": { + "$ref": "#/components/schemas/Application" + }, + "product_line": { + "$ref": "#/components/schemas/SKUProductLine" + }, + "product_id": { + "type": "string" + }, + "flags": { + "type": "integer", + "default": 0 + }, + "name": { + "$ref": "#/components/schemas/LocalizedStringSchema" + }, + "summary": { + "$ref": "#/components/schemas/LocalizedStringSchema" + }, + "description": { + "$ref": "#/components/schemas/LocalizedStringSchema" + }, + "legal_notice": { + "$ref": "#/components/schemas/LocalizedStringSchema" + }, + "slug": { + "type": "string" + }, + "thumbnail_asset_id": { + "type": "string" + }, + "dependent_sku_id": { + "type": "string", + "nullable": true + }, + "bundled_skus": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SKU" + } + }, + "bundled_sku_ids": { + "type": "array", + "items": { + "type": "string" + } + }, + "access_type": { + "$ref": "#/components/schemas/SKUAccessType" + }, + "manifest_labels": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] + }, + "features": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SKUFeature" + } + }, + "locales": { + "type": "array", + "items": { + "type": "string" + } + }, + "genres": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SKUGenre" + } + }, + "available_regions": { + "type": "array", + "items": { + "type": "string" + } + }, + "content_rating": { + "$ref": "#/components/schemas/SKUContentRatingSchema" + }, + "content_rating_agency": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, + "content_ratings": { + "$ref": "#/components/schemas/Record<SKUContentRatingAgency,SKUContentRatingSchema>" + }, + "system_requirements": { + "$ref": "#/components/schemas/Record<SKUOperatingSystem,SKUSystemRequirementsSchema>" + }, + "price": { + "anyOf": [ + { + "$ref": "#/components/schemas/Record<string,unknown>" + }, + { + "$ref": "#/components/schemas/SKUPriceSchema" + } + ] + }, + "price_tier": { + "type": "integer" + }, + "sale_price_tier": { + "type": "integer" + }, + "sale_price": { + "$ref": "#/components/schemas/Record<string,unknown>" + }, + "created_at": { + "type": "string", + "format": "date-time" + }, + "updated_at": { + "type": "string", + "format": "date-time" + }, + "release_date": { + "anyOf": [ + { + "type": "string", + "format": "date-time" + }, + { + "type": "null" + } + ] + }, + "preorder_approximate_release_date": { + "type": "string" + }, + "preorder_released_at": { + "type": "string" + }, + "external_purchase_url": { + "type": "string" + }, + "external_sku_strategies": { + "$ref": "#/components/schemas/Record<BillingPaymentGateway,SKUExternalSKUStrategySchema>" + }, + "eligible_payment_gateways": { + "type": "array", + "items": { + "$ref": "#/components/schemas/BillingPaymentGateway" + } + }, + "premium": { + "type": "boolean" + }, + "show_age_gate": { + "type": "boolean" + }, + "restricted": { + "type": "boolean" + }, + "exclusive": { + "type": "boolean" + }, + "deleted": { + "type": "boolean", + "default": false + }, + "tenant_metadata": { + "$ref": "#/components/schemas/SKUTenantMetadataSchema" + }, + "powerup_metadata": { + "$ref": "#/components/schemas/SKUGuildPowerupMetadataSchema" + }, + "id": { + "type": "string" + } + }, + "required": [ + "access_type", + "application", + "application_id", + "created_at", + "features", + "flags", + "id", + "name", + "premium", + "product_line", + "show_age_gate", + "slug", + "type", + "updated_at" + ] + }, + "SKUType": { + "type": "number", + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6 + ] + }, + "SKUProductLine": { + "type": "number", + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 9, + 10, + 11, + 12, + 13, + 14 + ] + }, + "SKUAccessType": { + "type": "number", + "enum": [ + 1, + 2 + ] + }, + "SKUFeature": { + "type": "number", + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13 + ] + }, + "SKUGenre": { + "type": "number", + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31, + 32, + 33, + 34, + 35, + 36, + 37, + 38, + 39, + 40, + 41, + 42, + 43, + 44, + 45, + 46, + 47, + 48, + 49, + 50, + 51, + 52, + 53, + 54, + 55, + 56, + 57, + 58, + 59, + 60, + 61, + 62, + 63, + 64, + 65, + 66, + 67, + 68, + 69 + ] + }, "SKUContentRating": { "enum": [ 1, @@ -14060,6 +15275,19 @@ 2 ] }, + "BillingPaymentGateway": { + "type": "number", + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6, + 8, + 9 + ] + }, "GameActivity": { "type": "object", "properties": { @@ -14148,43 +15376,16 @@ 3 ] }, - "GuildPremiumFeatures": { + "InstanceUserDeleteSchemaContent": { "type": "object", "properties": { - "features": { - "description": "Enabled powerup-specific guild features", - "type": "array", - "items": { - "type": "string" - } - }, - "additional_emoji_slots": { - "description": "The number of additional emoji slots available to the guild", - "type": "integer" - }, - "additional_sticker_slots": { - "description": "The number of additional sticker slots available to the guild", - "type": "integer" + "reason": { + "type": "string" }, - "additional_sound_slots": { - "description": "The number of additional soundboard slots available to the guild", - "type": "integer" + "persistInstanceBan": { + "type": "boolean" } - }, - "required": [ - "additional_emoji_slots", - "additional_sound_slots", - "additional_sticker_slots", - "features" - ] - }, - "GuildPowerupCategoryType": { - "type": "number", - "enum": [ - 0, - 1, - 2 - ] + } }, "AllowedMentions": { "type": "object", @@ -15166,147 +16367,6 @@ "type" ] }, - "EntitlementType": { - "type": "number", - "enum": [ - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13 - ] - }, - "SKUType": { - "type": "number", - "enum": [ - 1, - 2, - 3, - 4, - 5, - 6 - ] - }, - "SKUAccessType": { - "type": "number", - "enum": [ - 1, - 2 - ] - }, - "SKUFeature": { - "type": "number", - "enum": [ - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13 - ] - }, - "SKUGenre": { - "type": "number", - "enum": [ - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 24, - 25, - 26, - 27, - 28, - 29, - 30, - 31, - 32, - 33, - 34, - 35, - 36, - 37, - 38, - 39, - 40, - 41, - 42, - 43, - 44, - 45, - 46, - 47, - 48, - 49, - 50, - 51, - 52, - 53, - 54, - 55, - 56, - 57, - 58, - 59, - 60, - 61, - 62, - 63, - 64, - 65, - 66, - 67, - 68, - 69 - ] - }, - "BillingPaymentGateway": { - "type": "number", - "enum": [ - 1, - 2, - 3, - 4, - 5, - 6, - 8, - 9 - ] - }, "RefreshedUrl": { "type": "object", "properties": { @@ -15943,9 +17003,6 @@ "banner": { "type": "string" }, - "accent_color": { - "type": "integer" - }, "bio": { "type": "string" }, @@ -15957,6 +17014,9 @@ }, "pronouns": { "type": "string" + }, + "accent_color": { + "type": "integer" } }, "required": [ @@ -16008,16 +17068,12 @@ "id" ] }, - "InstanceUserDeleteSchemaContent": { - "type": "object", - "properties": { - "reason": { - "type": "string" - }, - "persistInstanceBan": { - "type": "boolean" - } - } + "StoreListingIconType": { + "type": "number", + "enum": [ + 1, + 2 + ] } } }, @@ -19009,7 +20065,35 @@ ] } }, - "/store/published-listings/skus/{sku_id}": { + "/store/skus/": { + "post": { + "security": [ + { + "bearer": [] + } + ], + "description": "Creates a new SKU. Returns the created SKU object on success. Requires an application with access to the store or monetization. User must be the owner of the application or member of the owning team.", + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CreateSKUSchema" + } + } + } + }, + "responses": { + "default": { + "description": "No description available" + } + }, + "tags": [ + "store" + ] + } + }, + "/store/published-listings/skus/{sku_id}/subscription-plans/": { "get": { "security": [ { @@ -19037,7 +20121,7 @@ ] } }, - "/store/published-listings/skus/{sku_id}/subscription-plans/": { + "/store/published-listings/skus/{sku_id}/": { "get": { "security": [ { @@ -24964,6 +26048,7 @@ "bearer": [] } ], + "description": "Returns the collectible categories available in the store.", "responses": { "200": { "description": "", @@ -24974,11 +26059,82 @@ } } } - }, - "204": { - "description": "No description available" } }, + "parameters": [ + { + "name": "country_code", + "in": "query", + "required": false, + "schema": { + "type": "string" + }, + "description": "The user's ISO 3166-1 alpha-2 country code" + }, + { + "name": "include_bundles", + "in": "query", + "required": false, + "schema": { + "type": "boolean" + }, + "description": "Whether to include bundles" + }, + { + "name": "include_nameplates_on_mobile", + "in": "query", + "required": false, + "schema": { + "type": "boolean" + }, + "description": "Whether to include nameplates on mobile" + }, + { + "name": "include_unpublished", + "in": "query", + "required": false, + "schema": { + "type": "boolean" + }, + "description": "Whether to include unpublished categories. Restricted to staff" + }, + { + "name": "no_cache", + "in": "query", + "required": false, + "schema": { + "type": "boolean" + }, + "description": "Whether to bypass the cache. Restricted to staff" + }, + { + "name": "payment_gateway", + "in": "query", + "required": false, + "schema": { + "type": "number" + }, + "description": "The payment gateway enum value of the payment source" + }, + { + "name": "skip_num_categories", + "in": "query", + "required": false, + "schema": { + "type": "number" + }, + "description": "The number of categories to skip" + }, + { + "name": "variants_return_style", + "in": "query", + "required": false, + "schema": { + "type": "number" + }, + "description": "\tThe variant style to return" + } + ], "tags": [ "collectibles-categories" ] @@ -27861,6 +29017,52 @@ ] } }, + "/applications/{application_id}/storefront/product/": { + "post": { + "security": [ + { + "bearer": [] + } + ], + "description": "Create a new SKU for an application", + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CreateApplicationSKUSchema" + } + } + } + }, + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CreateApplicationSKUResponseSchema" + } + } + } + } + }, + "parameters": [ + { + "name": "application_id", + "in": "path", + "required": true, + "schema": { + "type": "string" + }, + "description": "application_id" + } + ], + "tags": [ + "applications" + ] + } + }, "/applications/{application_id}/skus/": { "get": { "security": [