@laplace.live/internal 1.2.56 → 1.2.57

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 (2) hide show
  1. package/index.d.ts +249 -0
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -9725,3 +9725,252 @@ export declare namespace Kuaidi100 {
9725
9725
  date: string
9726
9726
  }
9727
9727
  }
9728
+
9729
+ /**
9730
+ * Steam Store API
9731
+ * @link https://store.steampowered.com/api/appdetails
9732
+ */
9733
+ export declare namespace SteamInternal {
9734
+ /**
9735
+ * Steam Store appdetails API response, keyed by appid string
9736
+ * @link https://store.steampowered.com/api/appdetails?appids={appid}
9737
+ * @example /steam/game-meta/730
9738
+ */
9739
+ export interface GameMeta {
9740
+ [appid: string]: {
9741
+ /** Whether the lookup was successful */
9742
+ success: boolean
9743
+ /** Absent when `success` is `false` */
9744
+ data?: GameMetaData
9745
+ }
9746
+ }
9747
+
9748
+ /** App detail data */
9749
+ export interface GameMetaData {
9750
+ /**
9751
+ * App type
9752
+ * @example "game"
9753
+ */
9754
+ type: string
9755
+ /** App name @example "Counter-Strike 2" */
9756
+ name: string
9757
+ /** Steam App ID @example 730 */
9758
+ steam_appid: number
9759
+ /** Minimum age requirement, `0` for no restriction @example 0 */
9760
+ required_age: number
9761
+ /** Whether the app is free to play */
9762
+ is_free: boolean
9763
+ /** DLC app IDs @example [2678630] */
9764
+ dlc?: number[]
9765
+ /** Full HTML description */
9766
+ detailed_description: string
9767
+ /** HTML about section */
9768
+ about_the_game: string
9769
+ /** Short text description */
9770
+ short_description: string
9771
+ /** Supported languages in HTML format */
9772
+ supported_languages: string
9773
+ /** Header image URL @example "https://shared.akamai.steamstatic.com/store_item_assets/steam/apps/730/header.jpg" */
9774
+ header_image: string
9775
+ /** Capsule image URL (231x87) */
9776
+ capsule_image: string
9777
+ /** Capsule image URL v5 (184x69) */
9778
+ capsule_imagev5: string
9779
+ /** Official website URL, `null` if not set @example "http://counter-strike.net/" */
9780
+ website: string | null
9781
+ /** PC system requirements, empty array `[]` when not available */
9782
+ pc_requirements: GameMetaRequirements | []
9783
+ /** Mac system requirements, empty array `[]` when not available */
9784
+ mac_requirements: GameMetaRequirements | []
9785
+ /** Linux system requirements, empty array `[]` when not available */
9786
+ linux_requirements: GameMetaRequirements | []
9787
+ /** Legal notice text @example "© 2024 ambr, Inc." */
9788
+ legal_notice?: string
9789
+ /** Developer names @example ["Valve"] */
9790
+ developers: string[]
9791
+ /** Publisher names @example ["Valve"] */
9792
+ publishers: string[]
9793
+ /** Package IDs available for purchase */
9794
+ packages: number[]
9795
+ /** Purchase option groups */
9796
+ package_groups: GameMetaPackageGroup[]
9797
+ /** Platform availability */
9798
+ platforms: GameMetaPlatforms
9799
+ /** Category tags (multi-player, workshop, etc.) */
9800
+ categories: GameMetaCategory[]
9801
+ /** Genre classifications */
9802
+ genres: GameMetaGenre[]
9803
+ /** Screenshots */
9804
+ screenshots: GameMetaScreenshot[]
9805
+ /** Trailer videos */
9806
+ movies?: GameMetaMovie[]
9807
+ /** User recommendations */
9808
+ recommendations?: { total: number }
9809
+ /** Achievements info */
9810
+ achievements?: GameMetaAchievements
9811
+ /** Release date info */
9812
+ release_date: GameMetaReleaseDate
9813
+ /** Support contact info */
9814
+ support_info: { url: string; email: string }
9815
+ /** Store page background image URL */
9816
+ background: string
9817
+ /** Raw background image URL */
9818
+ background_raw: string
9819
+ /** Content descriptor IDs and notes */
9820
+ content_descriptors: GameMetaContentDescriptors
9821
+ /** Price overview, absent for free games */
9822
+ price_overview?: GameMetaPriceOverview
9823
+ /** Metacritic score, absent if not rated */
9824
+ metacritic?: GameMetaMetacritic
9825
+ /** Age ratings by region */
9826
+ ratings?: Record<string, GameMetaRating>
9827
+ /**
9828
+ * Controller support level
9829
+ * @example "full"
9830
+ */
9831
+ controller_support?: string
9832
+ /** Demo app IDs */
9833
+ demos?: { appid: number; description: string }[]
9834
+ }
9835
+
9836
+ /** System requirements (minimum and optionally recommended) */
9837
+ export interface GameMetaRequirements {
9838
+ /** Minimum requirements in HTML */
9839
+ minimum: string
9840
+ /** Recommended requirements in HTML */
9841
+ recommended?: string
9842
+ }
9843
+
9844
+ export interface GameMetaPackageGroup {
9845
+ /** @example "default" */
9846
+ name: string
9847
+ /** @example "Buy Counter-Strike 2" */
9848
+ title: string
9849
+ description: string
9850
+ /** @example "Select a purchase option" */
9851
+ selection_text: string
9852
+ save_text: string
9853
+ display_type: number
9854
+ is_recurring_subscription: string
9855
+ subs: GameMetaPackageSub[]
9856
+ }
9857
+
9858
+ export interface GameMetaPackageSub {
9859
+ /** Package ID @example 298963 */
9860
+ packageid: number
9861
+ /** @example " " */
9862
+ percent_savings_text: string
9863
+ /** Discount percentage, `0` for no discount */
9864
+ percent_savings: number
9865
+ /** @example "Counter-Strike 2 - Free" */
9866
+ option_text: string
9867
+ option_description: string
9868
+ can_get_free_license: string
9869
+ is_free_license: boolean
9870
+ /** Price in cents with discount applied @example 0 */
9871
+ price_in_cents_with_discount: number
9872
+ }
9873
+
9874
+ export interface GameMetaPlatforms {
9875
+ windows: boolean
9876
+ mac: boolean
9877
+ linux: boolean
9878
+ }
9879
+
9880
+ export interface GameMetaCategory {
9881
+ /** @example 1 */
9882
+ id: number
9883
+ /** @example "Multi-player" */
9884
+ description: string
9885
+ }
9886
+
9887
+ export interface GameMetaGenre {
9888
+ /** @example "1" */
9889
+ id: string
9890
+ /** @example "Action" */
9891
+ description: string
9892
+ }
9893
+
9894
+ export interface GameMetaScreenshot {
9895
+ /** Screenshot index @example 0 */
9896
+ id: number
9897
+ /** Thumbnail URL (600x338) */
9898
+ path_thumbnail: string
9899
+ /** Full size URL (1920x1080) */
9900
+ path_full: string
9901
+ }
9902
+
9903
+ export interface GameMetaMovie {
9904
+ /** Movie ID @example 256972298 */
9905
+ id: number
9906
+ /** @example "Launch Trailer" */
9907
+ name: string
9908
+ /** Thumbnail URL */
9909
+ thumbnail: string
9910
+ /** DASH AV1 manifest URL */
9911
+ dash_av1: string
9912
+ /** DASH H.264 manifest URL */
9913
+ dash_h264: string
9914
+ /** HLS H.264 master playlist URL */
9915
+ hls_h264: string
9916
+ /** Whether this is a highlighted trailer */
9917
+ highlight: boolean
9918
+ }
9919
+
9920
+ export interface GameMetaAchievements {
9921
+ /** Total number of achievements @example 1 */
9922
+ total: number
9923
+ /** Featured achievements shown on the store page */
9924
+ highlighted: {
9925
+ name: string
9926
+ path: string
9927
+ }[]
9928
+ }
9929
+
9930
+ export interface GameMetaReleaseDate {
9931
+ /** Whether the game is unreleased */
9932
+ coming_soon: boolean
9933
+ /** Formatted release date @example "21 Aug, 2012" */
9934
+ date: string
9935
+ }
9936
+
9937
+ export interface GameMetaContentDescriptors {
9938
+ /** Content descriptor IDs @example [2, 5] */
9939
+ ids: number[]
9940
+ /** @example "Includes intense violence and blood." */
9941
+ notes: string | null
9942
+ }
9943
+
9944
+ export interface GameMetaPriceOverview {
9945
+ /** Currency code @example "USD" */
9946
+ currency: string
9947
+ /** Original price in cents @example 5999 */
9948
+ initial: number
9949
+ /** Final price in cents after discount @example 5999 */
9950
+ final: number
9951
+ /** Discount percentage, `0` for no discount */
9952
+ discount_percent: number
9953
+ /** Formatted original price @example "$59.99" */
9954
+ initial_formatted: string
9955
+ /** Formatted final price @example "$59.99" */
9956
+ final_formatted: string
9957
+ }
9958
+
9959
+ export interface GameMetaMetacritic {
9960
+ /** Metacritic score @example 83 */
9961
+ score: number
9962
+ /** Metacritic page URL */
9963
+ url: string
9964
+ }
9965
+
9966
+ export interface GameMetaRating {
9967
+ rating: string
9968
+ /** Age rating descriptors */
9969
+ descriptors?: string
9970
+ /** Whether rating was auto-generated */
9971
+ rating_generated?: string
9972
+ required_age?: string
9973
+ banned?: string
9974
+ use_age_gate?: string
9975
+ }
9976
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@laplace.live/internal",
3
- "version": "1.2.56",
3
+ "version": "1.2.57",
4
4
  "module": "index.d.ts",
5
5
  "devDependencies": {
6
6
  "@types/bun": "latest"