@steamsets/client-ts 0.10.1 → 0.10.3
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/README.md +7 -0
- package/docs/sdks/account/README.md +101 -0
- package/docs/sdks/leaderboard/README.md +107 -0
- package/funcs/accountAccountV1ConnectionConnect.d.ts +1 -1
- package/funcs/accountAccountV1ConnectionConnect.d.ts.map +1 -1
- package/funcs/accountAccountV1ConnectionConnect.js +32 -32
- package/funcs/accountAccountV1ConnectionConnect.js.map +1 -1
- package/funcs/accountAccountV1ConnectionDeleteConnection.d.ts +1 -1
- package/funcs/accountAccountV1ConnectionDeleteConnection.d.ts.map +1 -1
- package/funcs/accountAccountV1ConnectionDeleteConnection.js +31 -31
- package/funcs/accountAccountV1ConnectionDeleteConnection.js.map +1 -1
- package/funcs/accountAccountV1ConnectionUpdateConnection.d.ts +1 -1
- package/funcs/accountAccountV1ConnectionUpdateConnection.d.ts.map +1 -1
- package/funcs/accountAccountV1ConnectionUpdateConnection.js +31 -31
- package/funcs/accountAccountV1ConnectionUpdateConnection.js.map +1 -1
- package/funcs/accountAccountV1ConnectionVerifyConnection.d.ts +1 -1
- package/funcs/accountAccountV1ConnectionVerifyConnection.d.ts.map +1 -1
- package/funcs/accountAccountV1ConnectionVerifyConnection.js +31 -31
- package/funcs/accountAccountV1ConnectionVerifyConnection.js.map +1 -1
- package/funcs/accountAccountV1GetApps.d.ts +1 -1
- package/funcs/accountAccountV1GetApps.d.ts.map +1 -1
- package/funcs/accountAccountV1GetApps.js +32 -32
- package/funcs/accountAccountV1GetApps.js.map +1 -1
- package/funcs/accountAccountV1GetBadges.d.ts +1 -1
- package/funcs/accountAccountV1GetBadges.d.ts.map +1 -1
- package/funcs/accountAccountV1GetBadges.js +32 -32
- package/funcs/accountAccountV1GetBadges.js.map +1 -1
- package/funcs/accountAccountV1GetDataPoints.d.ts +1 -1
- package/funcs/accountAccountV1GetDataPoints.d.ts.map +1 -1
- package/funcs/accountAccountV1GetDataPoints.js +32 -32
- package/funcs/accountAccountV1GetDataPoints.js.map +1 -1
- package/funcs/accountAccountV1GetFriends.d.ts +1 -1
- package/funcs/accountAccountV1GetFriends.d.ts.map +1 -1
- package/funcs/accountAccountV1GetFriends.js +32 -32
- package/funcs/accountAccountV1GetFriends.js.map +1 -1
- package/funcs/accountAccountV1GetInfo.d.ts +1 -1
- package/funcs/accountAccountV1GetInfo.d.ts.map +1 -1
- package/funcs/accountAccountV1GetInfo.js +32 -32
- package/funcs/accountAccountV1GetInfo.js.map +1 -1
- package/funcs/accountAccountV1GetLeaderboardHistory.d.ts +1 -1
- package/funcs/accountAccountV1GetLeaderboardHistory.d.ts.map +1 -1
- package/funcs/accountAccountV1GetLeaderboardHistory.js +31 -31
- package/funcs/accountAccountV1GetLeaderboardHistory.js.map +1 -1
- package/funcs/accountAccountV1GetStaff.d.ts +1 -1
- package/funcs/accountAccountV1GetStaff.d.ts.map +1 -1
- package/funcs/accountAccountV1GetStaff.js +24 -24
- package/funcs/accountAccountV1GetStaff.js.map +1 -1
- package/funcs/accountAccountV1SessionCreate.d.ts +1 -1
- package/funcs/accountAccountV1SessionCreate.d.ts.map +1 -1
- package/funcs/accountAccountV1SessionCreate.js +36 -36
- package/funcs/accountAccountV1SessionCreate.js.map +1 -1
- package/funcs/accountAccountV1SessionDelete.d.ts +1 -1
- package/funcs/accountAccountV1SessionDelete.d.ts.map +1 -1
- package/funcs/accountAccountV1SessionDelete.js +32 -32
- package/funcs/accountAccountV1SessionDelete.js.map +1 -1
- package/funcs/accountAccountV1SessionGet.d.ts +1 -1
- package/funcs/accountAccountV1SessionGet.d.ts.map +1 -1
- package/funcs/accountAccountV1SessionGet.js +24 -24
- package/funcs/accountAccountV1SessionGet.js.map +1 -1
- package/funcs/accountAccountV1SessionLogin.d.ts +1 -1
- package/funcs/accountAccountV1SessionLogin.d.ts.map +1 -1
- package/funcs/accountAccountV1SessionLogin.js +34 -36
- package/funcs/accountAccountV1SessionLogin.js.map +1 -1
- package/funcs/accountAccountV1SettingsDeleteImages.d.ts +1 -1
- package/funcs/accountAccountV1SettingsDeleteImages.d.ts.map +1 -1
- package/funcs/accountAccountV1SettingsDeleteImages.js +31 -31
- package/funcs/accountAccountV1SettingsDeleteImages.js.map +1 -1
- package/funcs/accountAccountV1SettingsGet.d.ts +1 -1
- package/funcs/accountAccountV1SettingsGet.d.ts.map +1 -1
- package/funcs/accountAccountV1SettingsGet.js +24 -24
- package/funcs/accountAccountV1SettingsGet.js.map +1 -1
- package/funcs/accountAccountV1SettingsSendEmailVerification.d.ts +1 -1
- package/funcs/accountAccountV1SettingsSendEmailVerification.d.ts.map +1 -1
- package/funcs/accountAccountV1SettingsSendEmailVerification.js +33 -33
- package/funcs/accountAccountV1SettingsSendEmailVerification.js.map +1 -1
- package/funcs/accountAccountV1SettingsUpdate.d.ts +1 -1
- package/funcs/accountAccountV1SettingsUpdate.d.ts.map +1 -1
- package/funcs/accountAccountV1SettingsUpdate.js +33 -33
- package/funcs/accountAccountV1SettingsUpdate.js.map +1 -1
- package/funcs/accountAccountV1SettingsUpdateImage.d.ts +1 -1
- package/funcs/accountAccountV1SettingsUpdateImage.d.ts.map +1 -1
- package/funcs/accountAccountV1SettingsUpdateImage.js +33 -31
- package/funcs/accountAccountV1SettingsUpdateImage.js.map +1 -1
- package/funcs/accountAccountV1SettingsUploadImages.d.ts +1 -1
- package/funcs/accountAccountV1SettingsUploadImages.d.ts.map +1 -1
- package/funcs/accountAccountV1SettingsUploadImages.js +31 -31
- package/funcs/accountAccountV1SettingsUploadImages.js.map +1 -1
- package/funcs/accountAccountV1SettingsVerfyEmail.d.ts +1 -1
- package/funcs/accountAccountV1SettingsVerfyEmail.d.ts.map +1 -1
- package/funcs/accountAccountV1SettingsVerfyEmail.js +32 -32
- package/funcs/accountAccountV1SettingsVerfyEmail.js.map +1 -1
- package/funcs/accountLeaderboardV1GetAccount.d.ts +14 -0
- package/funcs/accountLeaderboardV1GetAccount.d.ts.map +1 -0
- package/funcs/accountLeaderboardV1GetAccount.js +99 -0
- package/funcs/accountLeaderboardV1GetAccount.js.map +1 -0
- package/funcs/appAccountV1Queue.d.ts +1 -1
- package/funcs/appAccountV1Queue.d.ts.map +1 -1
- package/funcs/appAccountV1Queue.js +31 -33
- package/funcs/appAccountV1Queue.js.map +1 -1
- package/funcs/appAppV1Get.d.ts +1 -1
- package/funcs/appAppV1Get.d.ts.map +1 -1
- package/funcs/appAppV1Get.js +32 -32
- package/funcs/appAppV1Get.js.map +1 -1
- package/funcs/connectionAccountV1ConnectionConnect.d.ts +1 -1
- package/funcs/connectionAccountV1ConnectionConnect.d.ts.map +1 -1
- package/funcs/connectionAccountV1ConnectionConnect.js +32 -32
- package/funcs/connectionAccountV1ConnectionConnect.js.map +1 -1
- package/funcs/connectionAccountV1ConnectionDeleteConnection.d.ts +1 -1
- package/funcs/connectionAccountV1ConnectionDeleteConnection.d.ts.map +1 -1
- package/funcs/connectionAccountV1ConnectionDeleteConnection.js +31 -31
- package/funcs/connectionAccountV1ConnectionDeleteConnection.js.map +1 -1
- package/funcs/connectionAccountV1ConnectionUpdateConnection.d.ts +1 -1
- package/funcs/connectionAccountV1ConnectionUpdateConnection.d.ts.map +1 -1
- package/funcs/connectionAccountV1ConnectionUpdateConnection.js +31 -31
- package/funcs/connectionAccountV1ConnectionUpdateConnection.js.map +1 -1
- package/funcs/connectionAccountV1ConnectionVerifyConnection.d.ts +1 -1
- package/funcs/connectionAccountV1ConnectionVerifyConnection.d.ts.map +1 -1
- package/funcs/connectionAccountV1ConnectionVerifyConnection.js +31 -31
- package/funcs/connectionAccountV1ConnectionVerifyConnection.js.map +1 -1
- package/funcs/dataAccountV1GetApps.d.ts +1 -1
- package/funcs/dataAccountV1GetApps.d.ts.map +1 -1
- package/funcs/dataAccountV1GetApps.js +32 -32
- package/funcs/dataAccountV1GetApps.js.map +1 -1
- package/funcs/dataAccountV1GetBadges.d.ts +1 -1
- package/funcs/dataAccountV1GetBadges.d.ts.map +1 -1
- package/funcs/dataAccountV1GetBadges.js +32 -32
- package/funcs/dataAccountV1GetBadges.js.map +1 -1
- package/funcs/dataAccountV1GetDataPoints.d.ts +1 -1
- package/funcs/dataAccountV1GetDataPoints.d.ts.map +1 -1
- package/funcs/dataAccountV1GetDataPoints.js +32 -32
- package/funcs/dataAccountV1GetDataPoints.js.map +1 -1
- package/funcs/dataAccountV1GetFriends.d.ts +1 -1
- package/funcs/dataAccountV1GetFriends.d.ts.map +1 -1
- package/funcs/dataAccountV1GetFriends.js +32 -32
- package/funcs/dataAccountV1GetFriends.js.map +1 -1
- package/funcs/dataAccountV1GetInfo.d.ts +1 -1
- package/funcs/dataAccountV1GetInfo.d.ts.map +1 -1
- package/funcs/dataAccountV1GetInfo.js +32 -32
- package/funcs/dataAccountV1GetInfo.js.map +1 -1
- package/funcs/dataAccountV1GetLeaderboardHistory.d.ts +1 -1
- package/funcs/dataAccountV1GetLeaderboardHistory.d.ts.map +1 -1
- package/funcs/dataAccountV1GetLeaderboardHistory.js +31 -31
- package/funcs/dataAccountV1GetLeaderboardHistory.js.map +1 -1
- package/funcs/dataAccountV1GetStaff.d.ts +1 -1
- package/funcs/dataAccountV1GetStaff.d.ts.map +1 -1
- package/funcs/dataAccountV1GetStaff.js +24 -24
- package/funcs/dataAccountV1GetStaff.js.map +1 -1
- package/funcs/dataAccountV1Queue.d.ts +1 -1
- package/funcs/dataAccountV1Queue.d.ts.map +1 -1
- package/funcs/dataAccountV1Queue.js +31 -33
- package/funcs/dataAccountV1Queue.js.map +1 -1
- package/funcs/leaderboardLeaderboardV1GetAccount.d.ts +14 -0
- package/funcs/leaderboardLeaderboardV1GetAccount.d.ts.map +1 -0
- package/funcs/leaderboardLeaderboardV1GetAccount.js +99 -0
- package/funcs/leaderboardLeaderboardV1GetAccount.js.map +1 -0
- package/funcs/livenessLiveness.d.ts +1 -1
- package/funcs/livenessLiveness.d.ts.map +1 -1
- package/funcs/livenessLiveness.js +24 -24
- package/funcs/livenessLiveness.js.map +1 -1
- package/funcs/locationLocation.d.ts +1 -1
- package/funcs/locationLocation.d.ts.map +1 -1
- package/funcs/locationLocation.js +23 -23
- package/funcs/locationLocation.js.map +1 -1
- package/funcs/publicAccountV1GetApps.d.ts +1 -1
- package/funcs/publicAccountV1GetApps.d.ts.map +1 -1
- package/funcs/publicAccountV1GetApps.js +32 -32
- package/funcs/publicAccountV1GetApps.js.map +1 -1
- package/funcs/publicAccountV1GetBadges.d.ts +1 -1
- package/funcs/publicAccountV1GetBadges.d.ts.map +1 -1
- package/funcs/publicAccountV1GetBadges.js +32 -32
- package/funcs/publicAccountV1GetBadges.js.map +1 -1
- package/funcs/publicAccountV1GetDataPoints.d.ts +1 -1
- package/funcs/publicAccountV1GetDataPoints.d.ts.map +1 -1
- package/funcs/publicAccountV1GetDataPoints.js +32 -32
- package/funcs/publicAccountV1GetDataPoints.js.map +1 -1
- package/funcs/publicAccountV1GetFriends.d.ts +1 -1
- package/funcs/publicAccountV1GetFriends.d.ts.map +1 -1
- package/funcs/publicAccountV1GetFriends.js +32 -32
- package/funcs/publicAccountV1GetFriends.js.map +1 -1
- package/funcs/publicAccountV1GetInfo.d.ts +1 -1
- package/funcs/publicAccountV1GetInfo.d.ts.map +1 -1
- package/funcs/publicAccountV1GetInfo.js +32 -32
- package/funcs/publicAccountV1GetInfo.js.map +1 -1
- package/funcs/publicAccountV1GetLeaderboardHistory.d.ts +1 -1
- package/funcs/publicAccountV1GetLeaderboardHistory.d.ts.map +1 -1
- package/funcs/publicAccountV1GetLeaderboardHistory.js +31 -31
- package/funcs/publicAccountV1GetLeaderboardHistory.js.map +1 -1
- package/funcs/publicAccountV1Queue.d.ts +1 -1
- package/funcs/publicAccountV1Queue.d.ts.map +1 -1
- package/funcs/publicAccountV1Queue.js +31 -33
- package/funcs/publicAccountV1Queue.js.map +1 -1
- package/funcs/sessionAccountV1SessionCreate.d.ts +1 -1
- package/funcs/sessionAccountV1SessionCreate.d.ts.map +1 -1
- package/funcs/sessionAccountV1SessionCreate.js +36 -36
- package/funcs/sessionAccountV1SessionCreate.js.map +1 -1
- package/funcs/sessionAccountV1SessionDelete.d.ts +1 -1
- package/funcs/sessionAccountV1SessionDelete.d.ts.map +1 -1
- package/funcs/sessionAccountV1SessionDelete.js +32 -32
- package/funcs/sessionAccountV1SessionDelete.js.map +1 -1
- package/funcs/sessionAccountV1SessionGet.d.ts +1 -1
- package/funcs/sessionAccountV1SessionGet.d.ts.map +1 -1
- package/funcs/sessionAccountV1SessionGet.js +24 -24
- package/funcs/sessionAccountV1SessionGet.js.map +1 -1
- package/funcs/sessionAccountV1SessionLogin.d.ts +1 -1
- package/funcs/sessionAccountV1SessionLogin.d.ts.map +1 -1
- package/funcs/sessionAccountV1SessionLogin.js +34 -36
- package/funcs/sessionAccountV1SessionLogin.js.map +1 -1
- package/funcs/settingsAccountV1SettingsDeleteImages.d.ts +1 -1
- package/funcs/settingsAccountV1SettingsDeleteImages.d.ts.map +1 -1
- package/funcs/settingsAccountV1SettingsDeleteImages.js +31 -31
- package/funcs/settingsAccountV1SettingsDeleteImages.js.map +1 -1
- package/funcs/settingsAccountV1SettingsGet.d.ts +1 -1
- package/funcs/settingsAccountV1SettingsGet.d.ts.map +1 -1
- package/funcs/settingsAccountV1SettingsGet.js +24 -24
- package/funcs/settingsAccountV1SettingsGet.js.map +1 -1
- package/funcs/settingsAccountV1SettingsSendEmailVerification.d.ts +1 -1
- package/funcs/settingsAccountV1SettingsSendEmailVerification.d.ts.map +1 -1
- package/funcs/settingsAccountV1SettingsSendEmailVerification.js +33 -33
- package/funcs/settingsAccountV1SettingsSendEmailVerification.js.map +1 -1
- package/funcs/settingsAccountV1SettingsUpdate.d.ts +1 -1
- package/funcs/settingsAccountV1SettingsUpdate.d.ts.map +1 -1
- package/funcs/settingsAccountV1SettingsUpdate.js +33 -33
- package/funcs/settingsAccountV1SettingsUpdate.js.map +1 -1
- package/funcs/settingsAccountV1SettingsUpdateImage.d.ts +1 -1
- package/funcs/settingsAccountV1SettingsUpdateImage.d.ts.map +1 -1
- package/funcs/settingsAccountV1SettingsUpdateImage.js +33 -31
- package/funcs/settingsAccountV1SettingsUpdateImage.js.map +1 -1
- package/funcs/settingsAccountV1SettingsUploadImages.d.ts +1 -1
- package/funcs/settingsAccountV1SettingsUploadImages.d.ts.map +1 -1
- package/funcs/settingsAccountV1SettingsUploadImages.js +31 -31
- package/funcs/settingsAccountV1SettingsUploadImages.js.map +1 -1
- package/funcs/settingsAccountV1SettingsVerfyEmail.d.ts +1 -1
- package/funcs/settingsAccountV1SettingsVerfyEmail.d.ts.map +1 -1
- package/funcs/settingsAccountV1SettingsVerfyEmail.js +32 -32
- package/funcs/settingsAccountV1SettingsVerfyEmail.js.map +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/sdks.d.ts +5 -8
- package/lib/sdks.d.ts.map +1 -1
- package/lib/sdks.js +34 -18
- package/lib/sdks.js.map +1 -1
- package/models/components/index.d.ts +5 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +5 -0
- package/models/components/index.js.map +1 -1
- package/models/components/v1accountleaderboardaccount.d.ts +201 -0
- package/models/components/v1accountleaderboardaccount.d.ts.map +1 -0
- package/models/components/v1accountleaderboardaccount.js +127 -0
- package/models/components/v1accountleaderboardaccount.js.map +1 -0
- package/models/components/v1accountleaderboardbadgeinfo.d.ts +21 -0
- package/models/components/v1accountleaderboardbadgeinfo.d.ts.map +1 -0
- package/models/components/v1accountleaderboardbadgeinfo.js +46 -0
- package/models/components/v1accountleaderboardbadgeinfo.js.map +1 -0
- package/models/components/v1accountleaderboardrequestbody.d.ts +139 -0
- package/models/components/v1accountleaderboardrequestbody.d.ts.map +1 -0
- package/models/components/v1accountleaderboardrequestbody.js +103 -0
- package/models/components/v1accountleaderboardrequestbody.js.map +1 -0
- package/models/components/v1accountleaderboardresponsebody.d.ts +40 -0
- package/models/components/v1accountleaderboardresponsebody.d.ts.map +1 -0
- package/models/components/v1accountleaderboardresponsebody.js +71 -0
- package/models/components/v1accountleaderboardresponsebody.js.map +1 -0
- package/models/components/v1leaderboardlocation.d.ts +43 -0
- package/models/components/v1leaderboardlocation.d.ts.map +1 -0
- package/models/components/v1leaderboardlocation.js +56 -0
- package/models/components/v1leaderboardlocation.js.map +1 -0
- package/models/operations/index.d.ts +1 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +1 -0
- package/models/operations/index.js.map +1 -1
- package/models/operations/leaderboardv1getaccount.d.ts +31 -0
- package/models/operations/leaderboardv1getaccount.d.ts.map +1 -0
- package/models/operations/leaderboardv1getaccount.js +66 -0
- package/models/operations/leaderboardv1getaccount.js.map +1 -0
- package/package.json +1 -1
- package/sdk/account.d.ts +4 -0
- package/sdk/account.d.ts.map +1 -1
- package/sdk/account.js +7 -0
- package/sdk/account.js.map +1 -1
- package/sdk/leaderboard.d.ts +10 -0
- package/sdk/leaderboard.d.ts.map +1 -0
- package/sdk/leaderboard.js +19 -0
- package/sdk/leaderboard.js.map +1 -0
- package/sdk/sdk.d.ts +3 -0
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +14 -9
- package/sdk/sdk.js.map +1 -1
- package/src/funcs/accountAccountV1ConnectionConnect.ts +37 -37
- package/src/funcs/accountAccountV1ConnectionDeleteConnection.ts +38 -38
- package/src/funcs/accountAccountV1ConnectionUpdateConnection.ts +38 -38
- package/src/funcs/accountAccountV1ConnectionVerifyConnection.ts +38 -38
- package/src/funcs/accountAccountV1GetApps.ts +37 -37
- package/src/funcs/accountAccountV1GetBadges.ts +37 -37
- package/src/funcs/accountAccountV1GetDataPoints.ts +37 -37
- package/src/funcs/accountAccountV1GetFriends.ts +37 -37
- package/src/funcs/accountAccountV1GetInfo.ts +37 -37
- package/src/funcs/accountAccountV1GetLeaderboardHistory.ts +37 -39
- package/src/funcs/accountAccountV1GetStaff.ts +26 -26
- package/src/funcs/accountAccountV1SessionCreate.ts +43 -43
- package/src/funcs/accountAccountV1SessionDelete.ts +38 -38
- package/src/funcs/accountAccountV1SessionGet.ts +26 -26
- package/src/funcs/accountAccountV1SessionLogin.ts +41 -46
- package/src/funcs/accountAccountV1SettingsDeleteImages.ts +37 -38
- package/src/funcs/accountAccountV1SettingsGet.ts +26 -26
- package/src/funcs/accountAccountV1SettingsSendEmailVerification.ts +40 -42
- package/src/funcs/accountAccountV1SettingsUpdate.ts +40 -43
- package/src/funcs/accountAccountV1SettingsUpdateImage.ts +39 -42
- package/src/funcs/accountAccountV1SettingsUploadImages.ts +37 -38
- package/src/funcs/accountAccountV1SettingsVerfyEmail.ts +37 -38
- package/src/funcs/accountLeaderboardV1GetAccount.ts +132 -0
- package/src/funcs/appAccountV1Queue.ts +37 -39
- package/src/funcs/appAppV1Get.ts +37 -37
- package/src/funcs/connectionAccountV1ConnectionConnect.ts +37 -37
- package/src/funcs/connectionAccountV1ConnectionDeleteConnection.ts +38 -38
- package/src/funcs/connectionAccountV1ConnectionUpdateConnection.ts +38 -38
- package/src/funcs/connectionAccountV1ConnectionVerifyConnection.ts +38 -38
- package/src/funcs/dataAccountV1GetApps.ts +37 -37
- package/src/funcs/dataAccountV1GetBadges.ts +37 -37
- package/src/funcs/dataAccountV1GetDataPoints.ts +37 -37
- package/src/funcs/dataAccountV1GetFriends.ts +37 -37
- package/src/funcs/dataAccountV1GetInfo.ts +37 -37
- package/src/funcs/dataAccountV1GetLeaderboardHistory.ts +37 -39
- package/src/funcs/dataAccountV1GetStaff.ts +26 -26
- package/src/funcs/dataAccountV1Queue.ts +37 -39
- package/src/funcs/leaderboardLeaderboardV1GetAccount.ts +132 -0
- package/src/funcs/livenessLiveness.ts +26 -26
- package/src/funcs/locationLocation.ts +26 -26
- package/src/funcs/publicAccountV1GetApps.ts +37 -37
- package/src/funcs/publicAccountV1GetBadges.ts +37 -37
- package/src/funcs/publicAccountV1GetDataPoints.ts +37 -37
- package/src/funcs/publicAccountV1GetFriends.ts +37 -37
- package/src/funcs/publicAccountV1GetInfo.ts +37 -37
- package/src/funcs/publicAccountV1GetLeaderboardHistory.ts +37 -39
- package/src/funcs/publicAccountV1Queue.ts +37 -39
- package/src/funcs/sessionAccountV1SessionCreate.ts +43 -43
- package/src/funcs/sessionAccountV1SessionDelete.ts +38 -38
- package/src/funcs/sessionAccountV1SessionGet.ts +26 -26
- package/src/funcs/sessionAccountV1SessionLogin.ts +41 -46
- package/src/funcs/settingsAccountV1SettingsDeleteImages.ts +37 -38
- package/src/funcs/settingsAccountV1SettingsGet.ts +26 -26
- package/src/funcs/settingsAccountV1SettingsSendEmailVerification.ts +40 -42
- package/src/funcs/settingsAccountV1SettingsUpdate.ts +40 -43
- package/src/funcs/settingsAccountV1SettingsUpdateImage.ts +39 -42
- package/src/funcs/settingsAccountV1SettingsUploadImages.ts +37 -38
- package/src/funcs/settingsAccountV1SettingsVerfyEmail.ts +37 -38
- package/src/lib/config.ts +3 -3
- package/src/lib/sdks.ts +24 -24
- package/src/models/components/index.ts +5 -0
- package/src/models/components/v1accountleaderboardaccount.ts +310 -0
- package/src/models/components/v1accountleaderboardbadgeinfo.ts +37 -0
- package/src/models/components/v1accountleaderboardrequestbody.ts +148 -0
- package/src/models/components/v1accountleaderboardresponsebody.ts +97 -0
- package/src/models/components/v1leaderboardlocation.ts +69 -0
- package/src/models/operations/index.ts +1 -0
- package/src/models/operations/leaderboardv1getaccount.ts +70 -0
- package/src/sdk/account.ts +15 -0
- package/src/sdk/leaderboard.ts +25 -0
- package/src/sdk/sdk.ts +15 -9
package/src/lib/sdks.ts
CHANGED
|
@@ -71,11 +71,11 @@ const isBrowserLike = webWorkerLike
|
|
|
71
71
|
|| (typeof window === "object" && typeof window.document !== "undefined");
|
|
72
72
|
|
|
73
73
|
export class ClientSDK {
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
protected readonly
|
|
78
|
-
public readonly
|
|
74
|
+
readonly #httpClient: HTTPClient;
|
|
75
|
+
readonly #hooks: SDKHooks;
|
|
76
|
+
readonly #logger?: Logger | undefined;
|
|
77
|
+
protected readonly _baseURL: URL | null;
|
|
78
|
+
public readonly _options: SDKOptions & { hooks?: SDKHooks };
|
|
79
79
|
|
|
80
80
|
constructor(options: SDKOptions = {}) {
|
|
81
81
|
const opt = options as unknown;
|
|
@@ -85,33 +85,33 @@ export class ClientSDK {
|
|
|
85
85
|
&& "hooks" in opt
|
|
86
86
|
&& opt.hooks instanceof SDKHooks
|
|
87
87
|
) {
|
|
88
|
-
this
|
|
88
|
+
this.#hooks = opt.hooks;
|
|
89
89
|
} else {
|
|
90
|
-
this
|
|
90
|
+
this.#hooks = new SDKHooks();
|
|
91
91
|
}
|
|
92
|
-
this.
|
|
92
|
+
this._options = { ...options, hooks: this.#hooks };
|
|
93
93
|
|
|
94
94
|
const url = serverURLFromOptions(options);
|
|
95
95
|
if (url) {
|
|
96
96
|
url.pathname = url.pathname.replace(/\/+$/, "") + "/";
|
|
97
97
|
}
|
|
98
|
-
const { baseURL, client } = this.
|
|
98
|
+
const { baseURL, client } = this.#hooks.sdkInit({
|
|
99
99
|
baseURL: url,
|
|
100
100
|
client: options.httpClient || new HTTPClient(),
|
|
101
101
|
});
|
|
102
|
-
this.
|
|
103
|
-
this
|
|
104
|
-
this
|
|
102
|
+
this._baseURL = baseURL;
|
|
103
|
+
this.#httpClient = client;
|
|
104
|
+
this.#logger = options.debugLogger;
|
|
105
105
|
}
|
|
106
106
|
|
|
107
|
-
public
|
|
107
|
+
public _createRequest(
|
|
108
108
|
context: HookContext,
|
|
109
109
|
conf: RequestConfig,
|
|
110
110
|
options?: RequestOptions,
|
|
111
111
|
): Result<Request, InvalidRequestError | UnexpectedClientError> {
|
|
112
112
|
const { method, path, query, headers: opHeaders, security } = conf;
|
|
113
113
|
|
|
114
|
-
const base = conf.baseURL ?? this.
|
|
114
|
+
const base = conf.baseURL ?? this._baseURL;
|
|
115
115
|
if (!base) {
|
|
116
116
|
return ERR(new InvalidRequestError("No base URL provided for operation"));
|
|
117
117
|
}
|
|
@@ -195,7 +195,7 @@ export class ClientSDK {
|
|
|
195
195
|
|
|
196
196
|
let input;
|
|
197
197
|
try {
|
|
198
|
-
input = this.
|
|
198
|
+
input = this.#hooks.beforeCreateRequest(context, {
|
|
199
199
|
url: reqURL,
|
|
200
200
|
options: {
|
|
201
201
|
...fetchOptions,
|
|
@@ -215,7 +215,7 @@ export class ClientSDK {
|
|
|
215
215
|
return OK(new Request(input.url, input.options));
|
|
216
216
|
}
|
|
217
217
|
|
|
218
|
-
public async
|
|
218
|
+
public async _do(
|
|
219
219
|
request: Request,
|
|
220
220
|
options: {
|
|
221
221
|
context: HookContext;
|
|
@@ -238,25 +238,25 @@ export class ClientSDK {
|
|
|
238
238
|
|
|
239
239
|
return retry(
|
|
240
240
|
async () => {
|
|
241
|
-
const req = await this.
|
|
242
|
-
await logRequest(this
|
|
243
|
-
this
|
|
241
|
+
const req = await this.#hooks.beforeRequest(context, request.clone());
|
|
242
|
+
await logRequest(this.#logger, req).catch((e) =>
|
|
243
|
+
this.#logger?.log("Failed to log request:", e)
|
|
244
244
|
);
|
|
245
245
|
|
|
246
|
-
let response = await this
|
|
246
|
+
let response = await this.#httpClient.request(req);
|
|
247
247
|
|
|
248
248
|
if (matchStatusCode(response, errorCodes)) {
|
|
249
|
-
const result = await this.
|
|
249
|
+
const result = await this.#hooks.afterError(context, response, null);
|
|
250
250
|
if (result.error) {
|
|
251
251
|
throw result.error;
|
|
252
252
|
}
|
|
253
253
|
response = result.response || response;
|
|
254
254
|
} else {
|
|
255
|
-
response = await this.
|
|
255
|
+
response = await this.#hooks.afterSuccess(context, response);
|
|
256
256
|
}
|
|
257
257
|
|
|
258
|
-
await logResponse(this
|
|
259
|
-
.catch(e => this
|
|
258
|
+
await logResponse(this.#logger, response, req)
|
|
259
|
+
.catch(e => this.#logger?.log("Failed to log response:", e));
|
|
260
260
|
|
|
261
261
|
return response;
|
|
262
262
|
},
|
|
@@ -35,7 +35,11 @@ export * from "./v1accountbadgecompletion.js";
|
|
|
35
35
|
export * from "./v1accountdatapointsresponsebody.js";
|
|
36
36
|
export * from "./v1accountfriend.js";
|
|
37
37
|
export * from "./v1accountfriendsresponsebody.js";
|
|
38
|
+
export * from "./v1accountleaderboardaccount.js";
|
|
39
|
+
export * from "./v1accountleaderboardbadgeinfo.js";
|
|
38
40
|
export * from "./v1accountleaderboardhistoryresponsebody.js";
|
|
41
|
+
export * from "./v1accountleaderboardrequestbody.js";
|
|
42
|
+
export * from "./v1accountleaderboardresponsebody.js";
|
|
39
43
|
export * from "./v1accountsappsresponsebody.js";
|
|
40
44
|
export * from "./v1appbadge.js";
|
|
41
45
|
export * from "./v1appdetail.js";
|
|
@@ -54,6 +58,7 @@ export * from "./v1deletesessionrequestbody.js";
|
|
|
54
58
|
export * from "./v1deletesessionresponsebody.js";
|
|
55
59
|
export * from "./v1getsessionbody.js";
|
|
56
60
|
export * from "./v1getsettingsbody.js";
|
|
61
|
+
export * from "./v1leaderboardlocation.js";
|
|
57
62
|
export * from "./v1livenessresponsebody.js";
|
|
58
63
|
export * from "./v1loginresponsebody.js";
|
|
59
64
|
export * from "./v1updateconnectionrequestbody.js";
|
|
@@ -0,0 +1,310 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import {
|
|
7
|
+
LeaderboardBadgeInfo,
|
|
8
|
+
LeaderboardBadgeInfo$inboundSchema,
|
|
9
|
+
LeaderboardBadgeInfo$Outbound,
|
|
10
|
+
LeaderboardBadgeInfo$outboundSchema,
|
|
11
|
+
} from "./leaderboardbadgeinfo.js";
|
|
12
|
+
import {
|
|
13
|
+
Location,
|
|
14
|
+
Location$inboundSchema,
|
|
15
|
+
Location$Outbound,
|
|
16
|
+
Location$outboundSchema,
|
|
17
|
+
} from "./location.js";
|
|
18
|
+
import {
|
|
19
|
+
Role,
|
|
20
|
+
Role$inboundSchema,
|
|
21
|
+
Role$Outbound,
|
|
22
|
+
Role$outboundSchema,
|
|
23
|
+
} from "./role.js";
|
|
24
|
+
|
|
25
|
+
export type V1AccountLeaderboardAccount = {
|
|
26
|
+
/**
|
|
27
|
+
* The cost of an app
|
|
28
|
+
*/
|
|
29
|
+
appCost: number;
|
|
30
|
+
/**
|
|
31
|
+
* The playtime of the account, incase of an app leaderboard
|
|
32
|
+
*/
|
|
33
|
+
appPlaytime?: number | null | undefined;
|
|
34
|
+
/**
|
|
35
|
+
* The number of apps the account has
|
|
36
|
+
*/
|
|
37
|
+
apps: number;
|
|
38
|
+
/**
|
|
39
|
+
* The avatar hash of the account
|
|
40
|
+
*/
|
|
41
|
+
avatar: string;
|
|
42
|
+
/**
|
|
43
|
+
* The average playtime of the account
|
|
44
|
+
*/
|
|
45
|
+
averagePlaytime: number;
|
|
46
|
+
/**
|
|
47
|
+
* The number of awards the account has
|
|
48
|
+
*/
|
|
49
|
+
awardsGiven: number;
|
|
50
|
+
/**
|
|
51
|
+
* The number of awards the account has
|
|
52
|
+
*/
|
|
53
|
+
awardsReceived: number;
|
|
54
|
+
badgeInfo?: LeaderboardBadgeInfo | undefined;
|
|
55
|
+
/**
|
|
56
|
+
* The number of badges the account has
|
|
57
|
+
*/
|
|
58
|
+
badges: number;
|
|
59
|
+
/**
|
|
60
|
+
* The number of bans
|
|
61
|
+
*/
|
|
62
|
+
bans: number;
|
|
63
|
+
city?: Location | undefined;
|
|
64
|
+
country?: Location | undefined;
|
|
65
|
+
/**
|
|
66
|
+
* The time the account was created
|
|
67
|
+
*/
|
|
68
|
+
createdAt: Date;
|
|
69
|
+
/**
|
|
70
|
+
* The economy ban of the account
|
|
71
|
+
*/
|
|
72
|
+
economyBan: string;
|
|
73
|
+
/**
|
|
74
|
+
* The cost of a foil badge
|
|
75
|
+
*/
|
|
76
|
+
foilBadgeCost: number;
|
|
77
|
+
/**
|
|
78
|
+
* The number of foil badges the account has
|
|
79
|
+
*/
|
|
80
|
+
foilBadges: number;
|
|
81
|
+
/**
|
|
82
|
+
* The number of friends the account has
|
|
83
|
+
*/
|
|
84
|
+
friends: number;
|
|
85
|
+
/**
|
|
86
|
+
* The number of game bans
|
|
87
|
+
*/
|
|
88
|
+
gameBans: number;
|
|
89
|
+
/**
|
|
90
|
+
* Whether the account is hidden in the leaderboards
|
|
91
|
+
*/
|
|
92
|
+
hidden: boolean;
|
|
93
|
+
/**
|
|
94
|
+
* The level of the account
|
|
95
|
+
*/
|
|
96
|
+
level: number;
|
|
97
|
+
/**
|
|
98
|
+
* The number of limited apps the account has
|
|
99
|
+
*/
|
|
100
|
+
limitedApps: number;
|
|
101
|
+
/**
|
|
102
|
+
* The name of the account
|
|
103
|
+
*/
|
|
104
|
+
name: string;
|
|
105
|
+
/**
|
|
106
|
+
* The cost of a normal badge
|
|
107
|
+
*/
|
|
108
|
+
normalBadgeCost: number;
|
|
109
|
+
/**
|
|
110
|
+
* The number of normal badges the account has
|
|
111
|
+
*/
|
|
112
|
+
normalBadges: number;
|
|
113
|
+
/**
|
|
114
|
+
* The playtime of the account
|
|
115
|
+
*/
|
|
116
|
+
playtime: number;
|
|
117
|
+
/**
|
|
118
|
+
* The number of points the account has
|
|
119
|
+
*/
|
|
120
|
+
pointsGiven: number;
|
|
121
|
+
/**
|
|
122
|
+
* The number of points the account has
|
|
123
|
+
*/
|
|
124
|
+
pointsReceived: number;
|
|
125
|
+
/**
|
|
126
|
+
* The privacy of the account
|
|
127
|
+
*/
|
|
128
|
+
privacy: string;
|
|
129
|
+
/**
|
|
130
|
+
* The rank of the account
|
|
131
|
+
*/
|
|
132
|
+
rank: number;
|
|
133
|
+
region?: Location | undefined;
|
|
134
|
+
/**
|
|
135
|
+
* The roles of the account
|
|
136
|
+
*/
|
|
137
|
+
roles: Array<Role> | null;
|
|
138
|
+
state?: Location | undefined;
|
|
139
|
+
/**
|
|
140
|
+
* The steam id
|
|
141
|
+
*/
|
|
142
|
+
steamId: string;
|
|
143
|
+
/**
|
|
144
|
+
* The steam sets score
|
|
145
|
+
*/
|
|
146
|
+
steamSetsScore: number;
|
|
147
|
+
/**
|
|
148
|
+
* The vanity of the account
|
|
149
|
+
*/
|
|
150
|
+
steamSetsVanity: string;
|
|
151
|
+
/**
|
|
152
|
+
* The vanity of the account
|
|
153
|
+
*/
|
|
154
|
+
steamVanity: string;
|
|
155
|
+
/**
|
|
156
|
+
* The number of vac bans
|
|
157
|
+
*/
|
|
158
|
+
vacBans: number;
|
|
159
|
+
/**
|
|
160
|
+
* The number of xp the account has
|
|
161
|
+
*/
|
|
162
|
+
xp: number;
|
|
163
|
+
};
|
|
164
|
+
|
|
165
|
+
/** @internal */
|
|
166
|
+
export const V1AccountLeaderboardAccount$inboundSchema: z.ZodType<
|
|
167
|
+
V1AccountLeaderboardAccount,
|
|
168
|
+
z.ZodTypeDef,
|
|
169
|
+
unknown
|
|
170
|
+
> = z.object({
|
|
171
|
+
appCost: z.number().int(),
|
|
172
|
+
appPlaytime: z.nullable(z.number().int()).optional(),
|
|
173
|
+
apps: z.number().int(),
|
|
174
|
+
avatar: z.string(),
|
|
175
|
+
averagePlaytime: z.number().int(),
|
|
176
|
+
awardsGiven: z.number().int(),
|
|
177
|
+
awardsReceived: z.number().int(),
|
|
178
|
+
badgeInfo: LeaderboardBadgeInfo$inboundSchema.optional(),
|
|
179
|
+
badges: z.number().int(),
|
|
180
|
+
bans: z.number().int(),
|
|
181
|
+
city: Location$inboundSchema.optional(),
|
|
182
|
+
country: Location$inboundSchema.optional(),
|
|
183
|
+
createdAt: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
184
|
+
economyBan: z.string(),
|
|
185
|
+
foilBadgeCost: z.number().int(),
|
|
186
|
+
foilBadges: z.number().int(),
|
|
187
|
+
friends: z.number().int(),
|
|
188
|
+
gameBans: z.number().int(),
|
|
189
|
+
hidden: z.boolean(),
|
|
190
|
+
level: z.number().int(),
|
|
191
|
+
limitedApps: z.number().int(),
|
|
192
|
+
name: z.string(),
|
|
193
|
+
normalBadgeCost: z.number().int(),
|
|
194
|
+
normalBadges: z.number().int(),
|
|
195
|
+
playtime: z.number().int(),
|
|
196
|
+
pointsGiven: z.number().int(),
|
|
197
|
+
pointsReceived: z.number().int(),
|
|
198
|
+
privacy: z.string(),
|
|
199
|
+
rank: z.number().int(),
|
|
200
|
+
region: Location$inboundSchema.optional(),
|
|
201
|
+
roles: z.nullable(z.array(Role$inboundSchema)),
|
|
202
|
+
state: Location$inboundSchema.optional(),
|
|
203
|
+
steamId: z.string(),
|
|
204
|
+
steamSetsScore: z.number().int(),
|
|
205
|
+
steamSetsVanity: z.string(),
|
|
206
|
+
steamVanity: z.string(),
|
|
207
|
+
vacBans: z.number().int(),
|
|
208
|
+
xp: z.number().int(),
|
|
209
|
+
});
|
|
210
|
+
|
|
211
|
+
/** @internal */
|
|
212
|
+
export type V1AccountLeaderboardAccount$Outbound = {
|
|
213
|
+
appCost: number;
|
|
214
|
+
appPlaytime?: number | null | undefined;
|
|
215
|
+
apps: number;
|
|
216
|
+
avatar: string;
|
|
217
|
+
averagePlaytime: number;
|
|
218
|
+
awardsGiven: number;
|
|
219
|
+
awardsReceived: number;
|
|
220
|
+
badgeInfo?: LeaderboardBadgeInfo$Outbound | undefined;
|
|
221
|
+
badges: number;
|
|
222
|
+
bans: number;
|
|
223
|
+
city?: Location$Outbound | undefined;
|
|
224
|
+
country?: Location$Outbound | undefined;
|
|
225
|
+
createdAt: string;
|
|
226
|
+
economyBan: string;
|
|
227
|
+
foilBadgeCost: number;
|
|
228
|
+
foilBadges: number;
|
|
229
|
+
friends: number;
|
|
230
|
+
gameBans: number;
|
|
231
|
+
hidden: boolean;
|
|
232
|
+
level: number;
|
|
233
|
+
limitedApps: number;
|
|
234
|
+
name: string;
|
|
235
|
+
normalBadgeCost: number;
|
|
236
|
+
normalBadges: number;
|
|
237
|
+
playtime: number;
|
|
238
|
+
pointsGiven: number;
|
|
239
|
+
pointsReceived: number;
|
|
240
|
+
privacy: string;
|
|
241
|
+
rank: number;
|
|
242
|
+
region?: Location$Outbound | undefined;
|
|
243
|
+
roles: Array<Role$Outbound> | null;
|
|
244
|
+
state?: Location$Outbound | undefined;
|
|
245
|
+
steamId: string;
|
|
246
|
+
steamSetsScore: number;
|
|
247
|
+
steamSetsVanity: string;
|
|
248
|
+
steamVanity: string;
|
|
249
|
+
vacBans: number;
|
|
250
|
+
xp: number;
|
|
251
|
+
};
|
|
252
|
+
|
|
253
|
+
/** @internal */
|
|
254
|
+
export const V1AccountLeaderboardAccount$outboundSchema: z.ZodType<
|
|
255
|
+
V1AccountLeaderboardAccount$Outbound,
|
|
256
|
+
z.ZodTypeDef,
|
|
257
|
+
V1AccountLeaderboardAccount
|
|
258
|
+
> = z.object({
|
|
259
|
+
appCost: z.number().int(),
|
|
260
|
+
appPlaytime: z.nullable(z.number().int()).optional(),
|
|
261
|
+
apps: z.number().int(),
|
|
262
|
+
avatar: z.string(),
|
|
263
|
+
averagePlaytime: z.number().int(),
|
|
264
|
+
awardsGiven: z.number().int(),
|
|
265
|
+
awardsReceived: z.number().int(),
|
|
266
|
+
badgeInfo: LeaderboardBadgeInfo$outboundSchema.optional(),
|
|
267
|
+
badges: z.number().int(),
|
|
268
|
+
bans: z.number().int(),
|
|
269
|
+
city: Location$outboundSchema.optional(),
|
|
270
|
+
country: Location$outboundSchema.optional(),
|
|
271
|
+
createdAt: z.date().transform(v => v.toISOString()),
|
|
272
|
+
economyBan: z.string(),
|
|
273
|
+
foilBadgeCost: z.number().int(),
|
|
274
|
+
foilBadges: z.number().int(),
|
|
275
|
+
friends: z.number().int(),
|
|
276
|
+
gameBans: z.number().int(),
|
|
277
|
+
hidden: z.boolean(),
|
|
278
|
+
level: z.number().int(),
|
|
279
|
+
limitedApps: z.number().int(),
|
|
280
|
+
name: z.string(),
|
|
281
|
+
normalBadgeCost: z.number().int(),
|
|
282
|
+
normalBadges: z.number().int(),
|
|
283
|
+
playtime: z.number().int(),
|
|
284
|
+
pointsGiven: z.number().int(),
|
|
285
|
+
pointsReceived: z.number().int(),
|
|
286
|
+
privacy: z.string(),
|
|
287
|
+
rank: z.number().int(),
|
|
288
|
+
region: Location$outboundSchema.optional(),
|
|
289
|
+
roles: z.nullable(z.array(Role$outboundSchema)),
|
|
290
|
+
state: Location$outboundSchema.optional(),
|
|
291
|
+
steamId: z.string(),
|
|
292
|
+
steamSetsScore: z.number().int(),
|
|
293
|
+
steamSetsVanity: z.string(),
|
|
294
|
+
steamVanity: z.string(),
|
|
295
|
+
vacBans: z.number().int(),
|
|
296
|
+
xp: z.number().int(),
|
|
297
|
+
});
|
|
298
|
+
|
|
299
|
+
/**
|
|
300
|
+
* @internal
|
|
301
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
302
|
+
*/
|
|
303
|
+
export namespace V1AccountLeaderboardAccount$ {
|
|
304
|
+
/** @deprecated use `V1AccountLeaderboardAccount$inboundSchema` instead. */
|
|
305
|
+
export const inboundSchema = V1AccountLeaderboardAccount$inboundSchema;
|
|
306
|
+
/** @deprecated use `V1AccountLeaderboardAccount$outboundSchema` instead. */
|
|
307
|
+
export const outboundSchema = V1AccountLeaderboardAccount$outboundSchema;
|
|
308
|
+
/** @deprecated use `V1AccountLeaderboardAccount$Outbound` instead. */
|
|
309
|
+
export type Outbound = V1AccountLeaderboardAccount$Outbound;
|
|
310
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
|
|
7
|
+
export type V1AccountLeaderboardBadgeInfo = {};
|
|
8
|
+
|
|
9
|
+
/** @internal */
|
|
10
|
+
export const V1AccountLeaderboardBadgeInfo$inboundSchema: z.ZodType<
|
|
11
|
+
V1AccountLeaderboardBadgeInfo,
|
|
12
|
+
z.ZodTypeDef,
|
|
13
|
+
unknown
|
|
14
|
+
> = z.object({});
|
|
15
|
+
|
|
16
|
+
/** @internal */
|
|
17
|
+
export type V1AccountLeaderboardBadgeInfo$Outbound = {};
|
|
18
|
+
|
|
19
|
+
/** @internal */
|
|
20
|
+
export const V1AccountLeaderboardBadgeInfo$outboundSchema: z.ZodType<
|
|
21
|
+
V1AccountLeaderboardBadgeInfo$Outbound,
|
|
22
|
+
z.ZodTypeDef,
|
|
23
|
+
V1AccountLeaderboardBadgeInfo
|
|
24
|
+
> = z.object({});
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* @internal
|
|
28
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
29
|
+
*/
|
|
30
|
+
export namespace V1AccountLeaderboardBadgeInfo$ {
|
|
31
|
+
/** @deprecated use `V1AccountLeaderboardBadgeInfo$inboundSchema` instead. */
|
|
32
|
+
export const inboundSchema = V1AccountLeaderboardBadgeInfo$inboundSchema;
|
|
33
|
+
/** @deprecated use `V1AccountLeaderboardBadgeInfo$outboundSchema` instead. */
|
|
34
|
+
export const outboundSchema = V1AccountLeaderboardBadgeInfo$outboundSchema;
|
|
35
|
+
/** @deprecated use `V1AccountLeaderboardBadgeInfo$Outbound` instead. */
|
|
36
|
+
export type Outbound = V1AccountLeaderboardBadgeInfo$Outbound;
|
|
37
|
+
}
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
7
|
+
import {
|
|
8
|
+
V1LeaderboardLocation,
|
|
9
|
+
V1LeaderboardLocation$inboundSchema,
|
|
10
|
+
V1LeaderboardLocation$Outbound,
|
|
11
|
+
V1LeaderboardLocation$outboundSchema,
|
|
12
|
+
} from "./v1leaderboardlocation.js";
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* The leaderboard to get
|
|
16
|
+
*/
|
|
17
|
+
export const V1AccountLeaderboardRequestBodyLeaderboard = {
|
|
18
|
+
Apps: "apps",
|
|
19
|
+
LimitedApps: "limited_apps",
|
|
20
|
+
AppPlaytime: "app_playtime",
|
|
21
|
+
AwardsGiven: "awards_given",
|
|
22
|
+
AwardsReceived: "awards_received",
|
|
23
|
+
Bans: "bans",
|
|
24
|
+
GameBans: "game_bans",
|
|
25
|
+
VacBans: "vac_bans",
|
|
26
|
+
Donations: "donations",
|
|
27
|
+
FoilBadges: "foil_badges",
|
|
28
|
+
NormalBadges: "normal_badges",
|
|
29
|
+
Badges: "badges",
|
|
30
|
+
Playtime: "playtime",
|
|
31
|
+
PointsGiven: "points_given",
|
|
32
|
+
PointsReceived: "points_received",
|
|
33
|
+
SteamSets: "steam_sets",
|
|
34
|
+
Xp: "xp",
|
|
35
|
+
BadgeCompletionTime: "badge_completion_time",
|
|
36
|
+
BadgeHighestLevel: "badge_highest_level",
|
|
37
|
+
} as const;
|
|
38
|
+
/**
|
|
39
|
+
* The leaderboard to get
|
|
40
|
+
*/
|
|
41
|
+
export type V1AccountLeaderboardRequestBodyLeaderboard = ClosedEnum<
|
|
42
|
+
typeof V1AccountLeaderboardRequestBodyLeaderboard
|
|
43
|
+
>;
|
|
44
|
+
|
|
45
|
+
export type V1AccountLeaderboardRequestBody = {
|
|
46
|
+
/**
|
|
47
|
+
* For a given app leaderboard, the app id
|
|
48
|
+
*/
|
|
49
|
+
appId?: number | null | undefined;
|
|
50
|
+
/**
|
|
51
|
+
* For a given badge leaderboard, the steam badge id
|
|
52
|
+
*/
|
|
53
|
+
badgeId?: string | null | undefined;
|
|
54
|
+
/**
|
|
55
|
+
* For a given badge leaderboard, whether the badge is foil or not
|
|
56
|
+
*/
|
|
57
|
+
badgeIsFoil?: boolean | null | undefined;
|
|
58
|
+
/**
|
|
59
|
+
* The end index
|
|
60
|
+
*/
|
|
61
|
+
end?: number | null | undefined;
|
|
62
|
+
/**
|
|
63
|
+
* The leaderboard to get
|
|
64
|
+
*/
|
|
65
|
+
leaderboard: V1AccountLeaderboardRequestBodyLeaderboard;
|
|
66
|
+
location?: V1LeaderboardLocation | undefined;
|
|
67
|
+
/**
|
|
68
|
+
* The start index
|
|
69
|
+
*/
|
|
70
|
+
start?: number | null | undefined;
|
|
71
|
+
};
|
|
72
|
+
|
|
73
|
+
/** @internal */
|
|
74
|
+
export const V1AccountLeaderboardRequestBodyLeaderboard$inboundSchema:
|
|
75
|
+
z.ZodNativeEnum<typeof V1AccountLeaderboardRequestBodyLeaderboard> = z
|
|
76
|
+
.nativeEnum(V1AccountLeaderboardRequestBodyLeaderboard);
|
|
77
|
+
|
|
78
|
+
/** @internal */
|
|
79
|
+
export const V1AccountLeaderboardRequestBodyLeaderboard$outboundSchema:
|
|
80
|
+
z.ZodNativeEnum<typeof V1AccountLeaderboardRequestBodyLeaderboard> =
|
|
81
|
+
V1AccountLeaderboardRequestBodyLeaderboard$inboundSchema;
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* @internal
|
|
85
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
86
|
+
*/
|
|
87
|
+
export namespace V1AccountLeaderboardRequestBodyLeaderboard$ {
|
|
88
|
+
/** @deprecated use `V1AccountLeaderboardRequestBodyLeaderboard$inboundSchema` instead. */
|
|
89
|
+
export const inboundSchema =
|
|
90
|
+
V1AccountLeaderboardRequestBodyLeaderboard$inboundSchema;
|
|
91
|
+
/** @deprecated use `V1AccountLeaderboardRequestBodyLeaderboard$outboundSchema` instead. */
|
|
92
|
+
export const outboundSchema =
|
|
93
|
+
V1AccountLeaderboardRequestBodyLeaderboard$outboundSchema;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
/** @internal */
|
|
97
|
+
export const V1AccountLeaderboardRequestBody$inboundSchema: z.ZodType<
|
|
98
|
+
V1AccountLeaderboardRequestBody,
|
|
99
|
+
z.ZodTypeDef,
|
|
100
|
+
unknown
|
|
101
|
+
> = z.object({
|
|
102
|
+
appId: z.nullable(z.number().int()).optional(),
|
|
103
|
+
badgeId: z.nullable(z.string()).optional(),
|
|
104
|
+
badgeIsFoil: z.nullable(z.boolean()).optional(),
|
|
105
|
+
end: z.nullable(z.number().int()).optional(),
|
|
106
|
+
leaderboard: V1AccountLeaderboardRequestBodyLeaderboard$inboundSchema,
|
|
107
|
+
location: V1LeaderboardLocation$inboundSchema.optional(),
|
|
108
|
+
start: z.nullable(z.number().int()).optional(),
|
|
109
|
+
});
|
|
110
|
+
|
|
111
|
+
/** @internal */
|
|
112
|
+
export type V1AccountLeaderboardRequestBody$Outbound = {
|
|
113
|
+
appId?: number | null | undefined;
|
|
114
|
+
badgeId?: string | null | undefined;
|
|
115
|
+
badgeIsFoil?: boolean | null | undefined;
|
|
116
|
+
end?: number | null | undefined;
|
|
117
|
+
leaderboard: string;
|
|
118
|
+
location?: V1LeaderboardLocation$Outbound | undefined;
|
|
119
|
+
start?: number | null | undefined;
|
|
120
|
+
};
|
|
121
|
+
|
|
122
|
+
/** @internal */
|
|
123
|
+
export const V1AccountLeaderboardRequestBody$outboundSchema: z.ZodType<
|
|
124
|
+
V1AccountLeaderboardRequestBody$Outbound,
|
|
125
|
+
z.ZodTypeDef,
|
|
126
|
+
V1AccountLeaderboardRequestBody
|
|
127
|
+
> = z.object({
|
|
128
|
+
appId: z.nullable(z.number().int()).optional(),
|
|
129
|
+
badgeId: z.nullable(z.string()).optional(),
|
|
130
|
+
badgeIsFoil: z.nullable(z.boolean()).optional(),
|
|
131
|
+
end: z.nullable(z.number().int()).optional(),
|
|
132
|
+
leaderboard: V1AccountLeaderboardRequestBodyLeaderboard$outboundSchema,
|
|
133
|
+
location: V1LeaderboardLocation$outboundSchema.optional(),
|
|
134
|
+
start: z.nullable(z.number().int()).optional(),
|
|
135
|
+
});
|
|
136
|
+
|
|
137
|
+
/**
|
|
138
|
+
* @internal
|
|
139
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
140
|
+
*/
|
|
141
|
+
export namespace V1AccountLeaderboardRequestBody$ {
|
|
142
|
+
/** @deprecated use `V1AccountLeaderboardRequestBody$inboundSchema` instead. */
|
|
143
|
+
export const inboundSchema = V1AccountLeaderboardRequestBody$inboundSchema;
|
|
144
|
+
/** @deprecated use `V1AccountLeaderboardRequestBody$outboundSchema` instead. */
|
|
145
|
+
export const outboundSchema = V1AccountLeaderboardRequestBody$outboundSchema;
|
|
146
|
+
/** @deprecated use `V1AccountLeaderboardRequestBody$Outbound` instead. */
|
|
147
|
+
export type Outbound = V1AccountLeaderboardRequestBody$Outbound;
|
|
148
|
+
}
|