@steamsets/client-ts 0.18.0 → 0.19.0
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 +0 -2
- package/docs/sdks/badge/README.md +0 -77
- package/funcs/accountAccountV1GetMeta.js +1 -1
- package/funcs/accountAccountV1GetMeta.js.map +1 -1
- package/funcs/accountCreateDeveloperApp.js +1 -1
- package/funcs/accountCreateDeveloperApp.js.map +1 -1
- package/funcs/accountDeleteDeveloperApp.js +1 -1
- package/funcs/accountDeleteDeveloperApp.js.map +1 -1
- package/funcs/accountDeleteImages.js +1 -1
- package/funcs/accountDeleteImages.js.map +1 -1
- package/funcs/accountGetAccount.js +1 -1
- package/funcs/accountGetAccount.js.map +1 -1
- package/funcs/accountGetApps.js +1 -1
- package/funcs/accountGetApps.js.map +1 -1
- package/funcs/accountGetBadges.js +1 -1
- package/funcs/accountGetBadges.js.map +1 -1
- package/funcs/accountGetDataPoints.js +1 -1
- package/funcs/accountGetDataPoints.js.map +1 -1
- package/funcs/accountGetFriends.js +1 -1
- package/funcs/accountGetFriends.js.map +1 -1
- package/funcs/accountGetInfo.js +1 -1
- package/funcs/accountGetInfo.js.map +1 -1
- package/funcs/accountGetLeaderboardHistory.js +1 -1
- package/funcs/accountGetLeaderboardHistory.js.map +1 -1
- package/funcs/accountGetStaff.js +1 -1
- package/funcs/accountGetStaff.js.map +1 -1
- package/funcs/accountLeaderboardV1GetAccountMeta.js +1 -1
- package/funcs/accountLeaderboardV1GetAccountMeta.js.map +1 -1
- package/funcs/accountUpdateApp.js +1 -1
- package/funcs/accountUpdateApp.js.map +1 -1
- package/funcs/accountUploadImages.js +1 -1
- package/funcs/accountUploadImages.js.map +1 -1
- package/funcs/accountsQueue.js +1 -1
- package/funcs/accountsQueue.js.map +1 -1
- package/funcs/adminGetAccount.js +1 -1
- package/funcs/adminGetAccount.js.map +1 -1
- package/funcs/adminUpdateResources.js +1 -1
- package/funcs/adminUpdateResources.js.map +1 -1
- package/funcs/adminUpdateRoles.js +1 -1
- package/funcs/adminUpdateRoles.js.map +1 -1
- package/funcs/appAppV1ListBadges.js +1 -1
- package/funcs/appAppV1ListBadges.js.map +1 -1
- package/funcs/badgeGetTags.js +1 -1
- package/funcs/badgeGetTags.js.map +1 -1
- package/funcs/badgesBookmark.js +1 -1
- package/funcs/badgesBookmark.js.map +1 -1
- package/funcs/badgesGetBookmarks.js +1 -1
- package/funcs/badgesGetBookmarks.js.map +1 -1
- package/funcs/badgesGetOwned.js +1 -1
- package/funcs/badgesGetOwned.js.map +1 -1
- package/funcs/badgesSearch.js +1 -1
- package/funcs/badgesSearch.js.map +1 -1
- package/funcs/badgesTag.js +1 -1
- package/funcs/badgesTag.js.map +1 -1
- package/funcs/connectionDelete.js +1 -1
- package/funcs/connectionDelete.js.map +1 -1
- package/funcs/connectionReconnect.js +1 -1
- package/funcs/connectionReconnect.js.map +1 -1
- package/funcs/connectionUpdate.js +1 -1
- package/funcs/connectionUpdate.js.map +1 -1
- package/funcs/connectionVerify.js +1 -1
- package/funcs/connectionVerify.js.map +1 -1
- package/funcs/connectionsConnect.js +1 -1
- package/funcs/connectionsConnect.js.map +1 -1
- package/funcs/dataAccountV1GetMeta.js +1 -1
- package/funcs/dataAccountV1GetMeta.js.map +1 -1
- package/funcs/dataGetApps.js +1 -1
- package/funcs/dataGetApps.js.map +1 -1
- package/funcs/dataGetBadges.js +1 -1
- package/funcs/dataGetBadges.js.map +1 -1
- package/funcs/dataGetDataPoints.js +1 -1
- package/funcs/dataGetDataPoints.js.map +1 -1
- package/funcs/dataGetFriends.js +1 -1
- package/funcs/dataGetFriends.js.map +1 -1
- package/funcs/dataGetInfo.js +1 -1
- package/funcs/dataGetInfo.js.map +1 -1
- package/funcs/dataGetLeaderboardHistory.js +1 -1
- package/funcs/dataGetLeaderboardHistory.js.map +1 -1
- package/funcs/developerCreateDeveloperApp.js +1 -1
- package/funcs/developerCreateDeveloperApp.js.map +1 -1
- package/funcs/developerDeleteDeveloperApp.js +1 -1
- package/funcs/developerDeleteDeveloperApp.js.map +1 -1
- package/funcs/developerUpdateApp.js +1 -1
- package/funcs/developerUpdateApp.js.map +1 -1
- package/funcs/eventsGet.js +1 -1
- package/funcs/eventsGet.js.map +1 -1
- package/funcs/eventsUpdate.js +1 -1
- package/funcs/eventsUpdate.js.map +1 -1
- package/funcs/externalAppV1ListBadges.js +1 -1
- package/funcs/externalAppV1ListBadges.js.map +1 -1
- package/funcs/externalGet.js +1 -1
- package/funcs/externalGet.js.map +1 -1
- package/funcs/externalGetApps.js +1 -1
- package/funcs/externalGetApps.js.map +1 -1
- package/funcs/externalGetBadges.js +1 -1
- package/funcs/externalGetBadges.js.map +1 -1
- package/funcs/externalGetDataPoints.js +1 -1
- package/funcs/externalGetDataPoints.js.map +1 -1
- package/funcs/externalGetFriends.js +1 -1
- package/funcs/externalGetFriends.js.map +1 -1
- package/funcs/externalGetInfo.js +1 -1
- package/funcs/externalGetInfo.js.map +1 -1
- package/funcs/externalGetLeaderboardHistory.js +1 -1
- package/funcs/externalGetLeaderboardHistory.js.map +1 -1
- package/funcs/imagesDeleteImages.js +1 -1
- package/funcs/imagesDeleteImages.js.map +1 -1
- package/funcs/imagesGet.js +1 -1
- package/funcs/imagesGet.js.map +1 -1
- package/funcs/imagesUpdate.js +1 -1
- package/funcs/imagesUpdate.js.map +1 -1
- package/funcs/imagesUploadImages.js +1 -1
- package/funcs/imagesUploadImages.js.map +1 -1
- package/funcs/internalAccountV1GetMeta.js +1 -1
- package/funcs/internalAccountV1GetMeta.js.map +1 -1
- package/funcs/internalCheck.js +1 -1
- package/funcs/internalCheck.js.map +1 -1
- package/funcs/internalCreateDeveloperApp.js +1 -1
- package/funcs/internalCreateDeveloperApp.js.map +1 -1
- package/funcs/internalDeleteDeveloperApp.js +1 -1
- package/funcs/internalDeleteDeveloperApp.js.map +1 -1
- package/funcs/internalDeleteImages.js +1 -1
- package/funcs/internalDeleteImages.js.map +1 -1
- package/funcs/internalGetAccount.js +1 -1
- package/funcs/internalGetAccount.js.map +1 -1
- package/funcs/internalGetStaff.js +1 -1
- package/funcs/internalGetStaff.js.map +1 -1
- package/funcs/internalGetTags.js +1 -1
- package/funcs/internalGetTags.js.map +1 -1
- package/funcs/internalLeaderboardV1GetAccountMeta.js +1 -1
- package/funcs/internalLeaderboardV1GetAccountMeta.js.map +1 -1
- package/funcs/internalUpdateApp.js +1 -1
- package/funcs/internalUpdateApp.js.map +1 -1
- package/funcs/internalUploadImages.js +1 -1
- package/funcs/internalUploadImages.js.map +1 -1
- package/funcs/leaderboardGetAccount.js +1 -1
- package/funcs/leaderboardGetAccount.js.map +1 -1
- package/funcs/leaderboardGetBadges.js +1 -1
- package/funcs/leaderboardGetBadges.js.map +1 -1
- package/funcs/leaderboardGetGroup.js +1 -1
- package/funcs/leaderboardGetGroup.js.map +1 -1
- package/funcs/leaderboardLeaderboardV1GetAccountMeta.js +1 -1
- package/funcs/leaderboardLeaderboardV1GetAccountMeta.js.map +1 -1
- package/funcs/livenessCheck.js +1 -1
- package/funcs/livenessCheck.js.map +1 -1
- package/funcs/locationsGet.js +1 -1
- package/funcs/locationsGet.js.map +1 -1
- package/funcs/sessionCreate.js +1 -1
- package/funcs/sessionCreate.js.map +1 -1
- package/funcs/sessionLogin.js +1 -1
- package/funcs/sessionLogin.js.map +1 -1
- package/funcs/sessionsDelete.js +1 -1
- package/funcs/sessionsDelete.js.map +1 -1
- package/funcs/sessionsGet.js +1 -1
- package/funcs/sessionsGet.js.map +1 -1
- package/funcs/settingsGet.js +1 -1
- package/funcs/settingsGet.js.map +1 -1
- package/funcs/settingsSendVerification.js +1 -1
- package/funcs/settingsSendVerification.js.map +1 -1
- package/funcs/settingsSubscribeEmail.js +1 -1
- package/funcs/settingsSubscribeEmail.js.map +1 -1
- package/funcs/settingsUpdate.js +1 -1
- package/funcs/settingsUpdate.js.map +1 -1
- package/funcs/settingsUpdateRole.js +1 -1
- package/funcs/settingsUpdateRole.js.map +1 -1
- package/funcs/settingsVerifyEmail.js +1 -1
- package/funcs/settingsVerifyEmail.js.map +1 -1
- package/funcs/statsGet.js +1 -1
- package/funcs/statsGet.js.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +6 -6
- package/lib/config.d.ts.map +1 -1
- package/lib/config.js +3 -3
- package/lib/files.js.map +1 -1
- package/lib/primitives.d.ts +3 -0
- package/lib/primitives.d.ts.map +1 -1
- package/lib/primitives.js +7 -0
- package/lib/primitives.js.map +1 -1
- package/lib/sdks.d.ts +1 -1
- package/lib/sdks.d.ts.map +1 -1
- package/models/components/badge.d.ts +0 -2
- package/models/components/badge.d.ts.map +1 -1
- package/models/components/badge.js +0 -2
- package/models/components/badge.js.map +1 -1
- package/models/components/leaderboardaccount.d.ts +6 -0
- package/models/components/leaderboardaccount.d.ts.map +1 -1
- package/models/components/leaderboardaccount.js.map +1 -1
- package/models/components/v1accountapp.d.ts +2 -0
- package/models/components/v1accountapp.d.ts.map +1 -1
- package/models/components/v1accountapp.js.map +1 -1
- package/models/components/v1accountfriend.d.ts +6 -0
- package/models/components/v1accountfriend.d.ts.map +1 -1
- package/models/components/v1accountfriend.js.map +1 -1
- package/models/components/v1accountfriendsresponsebody.d.ts +2 -2
- package/models/components/v1accountfriendsresponsebody.d.ts.map +1 -1
- package/models/components/v1accountfriendsresponsebody.js +2 -2
- package/models/components/v1accountfriendsresponsebody.js.map +1 -1
- package/models/components/v1accountinforesponsebody.d.ts +6 -0
- package/models/components/v1accountinforesponsebody.d.ts.map +1 -1
- package/models/components/v1accountinforesponsebody.js.map +1 -1
- package/models/components/v1accountleaderboardaccount.d.ts +6 -0
- package/models/components/v1accountleaderboardaccount.d.ts.map +1 -1
- package/models/components/v1accountleaderboardaccount.js.map +1 -1
- package/models/components/v1accountleaderboardrequestbody.d.ts +2 -2
- package/models/components/v1accountleaderboardrequestbody.d.ts.map +1 -1
- package/models/components/v1accountleaderboardrequestbody.js +3 -3
- package/models/components/v1accountleaderboardrequestbody.js.map +1 -1
- package/models/components/v1accountleaderboardresponsebody.d.ts +2 -2
- package/models/components/v1accountleaderboardresponsebody.d.ts.map +1 -1
- package/models/components/v1accountleaderboardresponsebody.js +2 -2
- package/models/components/v1accountleaderboardresponsebody.js.map +1 -1
- package/models/components/v1appbadge.d.ts +3 -0
- package/models/components/v1appbadge.d.ts.map +1 -1
- package/models/components/v1appbadge.js.map +1 -1
- package/models/components/v1leaderboardaccountmetarequestbody.d.ts +2 -2
- package/models/components/v1leaderboardaccountmetarequestbody.d.ts.map +1 -1
- package/models/components/v1leaderboardaccountmetarequestbody.js +3 -3
- package/models/components/v1leaderboardaccountmetarequestbody.js.map +1 -1
- package/models/components/v1leaderboardbadge.d.ts +2 -0
- package/models/components/v1leaderboardbadge.d.ts.map +1 -1
- package/models/components/v1leaderboardbadge.js.map +1 -1
- package/models/components/v1uploadedimage.d.ts +8 -8
- package/models/components/v1uploadedimage.d.ts.map +1 -1
- package/models/components/v1uploadedimage.js +13 -13
- package/models/components/v1uploadedimage.js.map +1 -1
- package/models/components/vanitystruct.d.ts +8 -8
- package/models/components/vanitystruct.d.ts.map +1 -1
- package/models/components/vanitystruct.js +13 -13
- package/models/components/vanitystruct.js.map +1 -1
- package/models/operations/accountv1getstaff.d.ts +2 -2
- package/models/operations/accountv1getstaff.d.ts.map +1 -1
- package/models/operations/accountv1getstaff.js +2 -2
- package/models/operations/accountv1getstaff.js.map +1 -1
- package/package.json +1 -1
- package/sdk/badge.d.ts +0 -2
- package/sdk/badge.d.ts.map +1 -1
- package/sdk/badge.js +0 -4
- package/sdk/badge.js.map +1 -1
- package/sdk/sdk.d.ts +2 -2
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +3 -3
- package/sdk/sdk.js.map +1 -1
- package/src/funcs/accountAccountV1GetMeta.ts +1 -1
- package/src/funcs/accountCreateDeveloperApp.ts +1 -1
- package/src/funcs/accountDeleteDeveloperApp.ts +1 -1
- package/src/funcs/accountDeleteImages.ts +1 -1
- package/src/funcs/accountGetAccount.ts +1 -1
- package/src/funcs/accountGetApps.ts +1 -1
- package/src/funcs/accountGetBadges.ts +1 -1
- package/src/funcs/accountGetDataPoints.ts +1 -1
- package/src/funcs/accountGetFriends.ts +1 -1
- package/src/funcs/accountGetInfo.ts +1 -1
- package/src/funcs/accountGetLeaderboardHistory.ts +1 -1
- package/src/funcs/accountGetStaff.ts +1 -1
- package/src/funcs/accountLeaderboardV1GetAccountMeta.ts +1 -1
- package/src/funcs/accountUpdateApp.ts +1 -1
- package/src/funcs/accountUploadImages.ts +1 -1
- package/src/funcs/accountsQueue.ts +1 -1
- package/src/funcs/adminGetAccount.ts +1 -1
- package/src/funcs/adminUpdateResources.ts +1 -1
- package/src/funcs/adminUpdateRoles.ts +1 -1
- package/src/funcs/appAppV1ListBadges.ts +1 -1
- package/src/funcs/badgeGetTags.ts +1 -1
- package/src/funcs/badgesBookmark.ts +1 -1
- package/src/funcs/badgesGetBookmarks.ts +1 -1
- package/src/funcs/badgesGetOwned.ts +1 -1
- package/src/funcs/badgesSearch.ts +1 -1
- package/src/funcs/badgesTag.ts +1 -1
- package/src/funcs/connectionDelete.ts +1 -1
- package/src/funcs/connectionReconnect.ts +1 -1
- package/src/funcs/connectionUpdate.ts +1 -1
- package/src/funcs/connectionVerify.ts +1 -1
- package/src/funcs/connectionsConnect.ts +1 -1
- package/src/funcs/dataAccountV1GetMeta.ts +1 -1
- package/src/funcs/dataGetApps.ts +1 -1
- package/src/funcs/dataGetBadges.ts +1 -1
- package/src/funcs/dataGetDataPoints.ts +1 -1
- package/src/funcs/dataGetFriends.ts +1 -1
- package/src/funcs/dataGetInfo.ts +1 -1
- package/src/funcs/dataGetLeaderboardHistory.ts +1 -1
- package/src/funcs/developerCreateDeveloperApp.ts +1 -1
- package/src/funcs/developerDeleteDeveloperApp.ts +1 -1
- package/src/funcs/developerUpdateApp.ts +1 -1
- package/src/funcs/eventsGet.ts +1 -1
- package/src/funcs/eventsUpdate.ts +1 -1
- package/src/funcs/externalAppV1ListBadges.ts +1 -1
- package/src/funcs/externalGet.ts +1 -1
- package/src/funcs/externalGetApps.ts +1 -1
- package/src/funcs/externalGetBadges.ts +1 -1
- package/src/funcs/externalGetDataPoints.ts +1 -1
- package/src/funcs/externalGetFriends.ts +1 -1
- package/src/funcs/externalGetInfo.ts +1 -1
- package/src/funcs/externalGetLeaderboardHistory.ts +1 -1
- package/src/funcs/imagesDeleteImages.ts +1 -1
- package/src/funcs/imagesGet.ts +1 -1
- package/src/funcs/imagesUpdate.ts +1 -1
- package/src/funcs/imagesUploadImages.ts +1 -1
- package/src/funcs/internalAccountV1GetMeta.ts +1 -1
- package/src/funcs/internalCheck.ts +1 -1
- package/src/funcs/internalCreateDeveloperApp.ts +1 -1
- package/src/funcs/internalDeleteDeveloperApp.ts +1 -1
- package/src/funcs/internalDeleteImages.ts +1 -1
- package/src/funcs/internalGetAccount.ts +1 -1
- package/src/funcs/internalGetStaff.ts +1 -1
- package/src/funcs/internalGetTags.ts +1 -1
- package/src/funcs/internalLeaderboardV1GetAccountMeta.ts +1 -1
- package/src/funcs/internalUpdateApp.ts +1 -1
- package/src/funcs/internalUploadImages.ts +1 -1
- package/src/funcs/leaderboardGetAccount.ts +1 -1
- package/src/funcs/leaderboardGetBadges.ts +1 -1
- package/src/funcs/leaderboardGetGroup.ts +1 -1
- package/src/funcs/leaderboardLeaderboardV1GetAccountMeta.ts +1 -1
- package/src/funcs/livenessCheck.ts +1 -1
- package/src/funcs/locationsGet.ts +1 -1
- package/src/funcs/sessionCreate.ts +1 -1
- package/src/funcs/sessionLogin.ts +1 -1
- package/src/funcs/sessionsDelete.ts +1 -1
- package/src/funcs/sessionsGet.ts +1 -1
- package/src/funcs/settingsGet.ts +1 -1
- package/src/funcs/settingsSendVerification.ts +1 -1
- package/src/funcs/settingsSubscribeEmail.ts +1 -1
- package/src/funcs/settingsUpdate.ts +1 -1
- package/src/funcs/settingsUpdateRole.ts +1 -1
- package/src/funcs/settingsVerifyEmail.ts +1 -1
- package/src/funcs/statsGet.ts +1 -1
- package/src/lib/config.ts +6 -6
- package/src/lib/files.ts +1 -1
- package/src/lib/primitives.ts +14 -0
- package/src/lib/sdks.ts +1 -1
- package/src/models/components/badge.ts +0 -4
- package/src/models/components/leaderboardaccount.ts +6 -0
- package/src/models/components/v1accountapp.ts +2 -0
- package/src/models/components/v1accountfriend.ts +6 -0
- package/src/models/components/v1accountfriendsresponsebody.ts +4 -4
- package/src/models/components/v1accountinforesponsebody.ts +6 -0
- package/src/models/components/v1accountleaderboardaccount.ts +6 -0
- package/src/models/components/v1accountleaderboardrequestbody.ts +7 -5
- package/src/models/components/v1accountleaderboardresponsebody.ts +8 -4
- package/src/models/components/v1appbadge.ts +3 -0
- package/src/models/components/v1leaderboardaccountmetarequestbody.ts +7 -5
- package/src/models/components/v1leaderboardbadge.ts +2 -0
- package/src/models/components/v1uploadedimage.ts +15 -16
- package/src/models/components/vanitystruct.ts +16 -15
- package/src/models/operations/accountv1getstaff.ts +7 -4
- package/src/sdk/badge.ts +0 -13
- package/src/sdk/sdk.ts +5 -5
- package/funcs/badgeAppV1ListBadges.d.ts +0 -12
- package/funcs/badgeAppV1ListBadges.d.ts.map +0 -1
- package/funcs/badgeAppV1ListBadges.js +0 -118
- package/funcs/badgeAppV1ListBadges.js.map +0 -1
- package/src/funcs/badgeAppV1ListBadges.ts +0 -179
|
@@ -101,7 +101,7 @@ async function $do(
|
|
|
101
101
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
102
102
|
|
|
103
103
|
const context = {
|
|
104
|
-
baseURL: options?.serverURL ?? "",
|
|
104
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
105
105
|
operationID: "account.v1.settings.update",
|
|
106
106
|
oAuth2Scopes: [],
|
|
107
107
|
|
|
@@ -94,7 +94,7 @@ async function $do(
|
|
|
94
94
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
95
95
|
|
|
96
96
|
const context = {
|
|
97
|
-
baseURL: options?.serverURL ?? "",
|
|
97
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
98
98
|
operationID: "account.v1.settings.update-role",
|
|
99
99
|
oAuth2Scopes: [],
|
|
100
100
|
|
|
@@ -94,7 +94,7 @@ async function $do(
|
|
|
94
94
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
95
95
|
|
|
96
96
|
const context = {
|
|
97
|
-
baseURL: options?.serverURL ?? "",
|
|
97
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
98
98
|
operationID: "account.v1.settings.email-verify",
|
|
99
99
|
oAuth2Scopes: [],
|
|
100
100
|
|
package/src/funcs/statsGet.ts
CHANGED
|
@@ -76,7 +76,7 @@ async function $do(
|
|
|
76
76
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
77
77
|
|
|
78
78
|
const context = {
|
|
79
|
-
baseURL: options?.serverURL ?? "",
|
|
79
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
80
80
|
operationID: "stats.v1.stats.get",
|
|
81
81
|
oAuth2Scopes: [],
|
|
82
82
|
|
package/src/lib/config.ts
CHANGED
|
@@ -16,17 +16,17 @@ export const ServerList = [
|
|
|
16
16
|
] as const;
|
|
17
17
|
|
|
18
18
|
export type SDKOptions = {
|
|
19
|
-
token?: string | (() => Promise<string>);
|
|
19
|
+
token?: string | (() => Promise<string>) | undefined;
|
|
20
20
|
|
|
21
21
|
httpClient?: HTTPClient;
|
|
22
22
|
/**
|
|
23
23
|
* Allows overriding the default server used by the SDK
|
|
24
24
|
*/
|
|
25
|
-
serverIdx?: number;
|
|
25
|
+
serverIdx?: number | undefined;
|
|
26
26
|
/**
|
|
27
27
|
* Allows overriding the default server URL used by the SDK
|
|
28
28
|
*/
|
|
29
|
-
serverURL?: string;
|
|
29
|
+
serverURL?: string | undefined;
|
|
30
30
|
/**
|
|
31
31
|
* Allows overriding the default retry config used by the SDK
|
|
32
32
|
*/
|
|
@@ -55,8 +55,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
55
55
|
export const SDK_METADATA = {
|
|
56
56
|
language: "typescript",
|
|
57
57
|
openapiDocVersion: "1.0.0",
|
|
58
|
-
sdkVersion: "0.
|
|
59
|
-
genVersion: "2.
|
|
58
|
+
sdkVersion: "0.19.0",
|
|
59
|
+
genVersion: "2.539.1",
|
|
60
60
|
userAgent:
|
|
61
|
-
"speakeasy-sdk/typescript 0.
|
|
61
|
+
"speakeasy-sdk/typescript 0.19.0 2.539.1 1.0.0 @steamsets/client-ts",
|
|
62
62
|
} as const;
|
package/src/lib/files.ts
CHANGED
package/src/lib/primitives.ts
CHANGED
|
@@ -134,3 +134,17 @@ export function compactMap<T>(
|
|
|
134
134
|
|
|
135
135
|
return out;
|
|
136
136
|
}
|
|
137
|
+
|
|
138
|
+
export function allRequired<V extends Record<string, unknown>>(
|
|
139
|
+
v: V,
|
|
140
|
+
):
|
|
141
|
+
| {
|
|
142
|
+
[K in keyof V]: NonNullable<V[K]>;
|
|
143
|
+
}
|
|
144
|
+
| undefined {
|
|
145
|
+
if (Object.values(v).every((x) => x == null)) {
|
|
146
|
+
return void 0;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
return v as ReturnType<typeof allRequired<V>>;
|
|
150
|
+
}
|
package/src/lib/sdks.ts
CHANGED
|
@@ -78,7 +78,7 @@ export class ClientSDK {
|
|
|
78
78
|
readonly #httpClient: HTTPClient;
|
|
79
79
|
readonly #hooks: SDKHooks;
|
|
80
80
|
readonly #logger?: Logger | undefined;
|
|
81
|
-
|
|
81
|
+
public readonly _baseURL: URL | null;
|
|
82
82
|
public readonly _options: SDKOptions & { hooks?: SDKHooks };
|
|
83
83
|
|
|
84
84
|
constructor(options: SDKOptions = {}) {
|
|
@@ -24,7 +24,6 @@ export type Badge = {
|
|
|
24
24
|
lastCompletion: number;
|
|
25
25
|
level: number;
|
|
26
26
|
name: string;
|
|
27
|
-
price: number;
|
|
28
27
|
scarcity: number;
|
|
29
28
|
steamId: number;
|
|
30
29
|
xp: number;
|
|
@@ -49,7 +48,6 @@ export const Badge$inboundSchema: z.ZodType<Badge, z.ZodTypeDef, unknown> = z
|
|
|
49
48
|
lastCompletion: z.number().int(),
|
|
50
49
|
level: z.number().int(),
|
|
51
50
|
name: z.string(),
|
|
52
|
-
price: z.number().int(),
|
|
53
51
|
scarcity: z.number().int(),
|
|
54
52
|
steamId: z.number().int(),
|
|
55
53
|
xp: z.number(),
|
|
@@ -73,7 +71,6 @@ export type Badge$Outbound = {
|
|
|
73
71
|
lastCompletion: number;
|
|
74
72
|
level: number;
|
|
75
73
|
name: string;
|
|
76
|
-
price: number;
|
|
77
74
|
scarcity: number;
|
|
78
75
|
steamId: number;
|
|
79
76
|
xp: number;
|
|
@@ -101,7 +98,6 @@ export const Badge$outboundSchema: z.ZodType<
|
|
|
101
98
|
lastCompletion: z.number().int(),
|
|
102
99
|
level: z.number().int(),
|
|
103
100
|
name: z.string(),
|
|
104
|
-
price: z.number().int(),
|
|
105
101
|
scarcity: z.number().int(),
|
|
106
102
|
steamId: z.number().int(),
|
|
107
103
|
xp: z.number(),
|
|
@@ -56,6 +56,8 @@ export type LeaderboardAccountPrivacy = ClosedEnum<
|
|
|
56
56
|
export type LeaderboardAccount = {
|
|
57
57
|
/**
|
|
58
58
|
* The cost of an app
|
|
59
|
+
*
|
|
60
|
+
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
59
61
|
*/
|
|
60
62
|
appCost: number;
|
|
61
63
|
/**
|
|
@@ -98,6 +100,8 @@ export type LeaderboardAccount = {
|
|
|
98
100
|
economyBan: string;
|
|
99
101
|
/**
|
|
100
102
|
* The cost of a foil badge
|
|
103
|
+
*
|
|
104
|
+
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
101
105
|
*/
|
|
102
106
|
foilBadgeCost: number;
|
|
103
107
|
/**
|
|
@@ -122,6 +126,8 @@ export type LeaderboardAccount = {
|
|
|
122
126
|
name: string;
|
|
123
127
|
/**
|
|
124
128
|
* The cost of a normal badge
|
|
129
|
+
*
|
|
130
|
+
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
125
131
|
*/
|
|
126
132
|
normalBadgeCost: number;
|
|
127
133
|
/**
|
|
@@ -54,6 +54,8 @@ export type Privacy = ClosedEnum<typeof Privacy>;
|
|
|
54
54
|
export type V1AccountFriend = {
|
|
55
55
|
/**
|
|
56
56
|
* The cost of an app
|
|
57
|
+
*
|
|
58
|
+
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
57
59
|
*/
|
|
58
60
|
appCost: number;
|
|
59
61
|
/**
|
|
@@ -96,6 +98,8 @@ export type V1AccountFriend = {
|
|
|
96
98
|
economyBan: string;
|
|
97
99
|
/**
|
|
98
100
|
* The cost of a foil badge
|
|
101
|
+
*
|
|
102
|
+
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
99
103
|
*/
|
|
100
104
|
foilBadgeCost: number;
|
|
101
105
|
/**
|
|
@@ -121,6 +125,8 @@ export type V1AccountFriend = {
|
|
|
121
125
|
name: string;
|
|
122
126
|
/**
|
|
123
127
|
* The cost of a normal badge
|
|
128
|
+
*
|
|
129
|
+
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
124
130
|
*/
|
|
125
131
|
normalBadgeCost: number;
|
|
126
132
|
/**
|
|
@@ -19,7 +19,7 @@ export type V1AccountFriendsResponseBody = {
|
|
|
19
19
|
* A URL to the JSON Schema for this object.
|
|
20
20
|
*/
|
|
21
21
|
dollarSchema?: string | undefined;
|
|
22
|
-
friends: Array<V1AccountFriend> | null;
|
|
22
|
+
friends: Array<V1AccountFriend | null> | null;
|
|
23
23
|
};
|
|
24
24
|
|
|
25
25
|
/** @internal */
|
|
@@ -29,7 +29,7 @@ export const V1AccountFriendsResponseBody$inboundSchema: z.ZodType<
|
|
|
29
29
|
unknown
|
|
30
30
|
> = z.object({
|
|
31
31
|
$schema: z.string().optional(),
|
|
32
|
-
friends: z.nullable(z.array(V1AccountFriend$inboundSchema)),
|
|
32
|
+
friends: z.nullable(z.array(z.nullable(V1AccountFriend$inboundSchema))),
|
|
33
33
|
}).transform((v) => {
|
|
34
34
|
return remap$(v, {
|
|
35
35
|
"$schema": "dollarSchema",
|
|
@@ -39,7 +39,7 @@ export const V1AccountFriendsResponseBody$inboundSchema: z.ZodType<
|
|
|
39
39
|
/** @internal */
|
|
40
40
|
export type V1AccountFriendsResponseBody$Outbound = {
|
|
41
41
|
$schema?: string | undefined;
|
|
42
|
-
friends: Array<V1AccountFriend$Outbound> | null;
|
|
42
|
+
friends: Array<V1AccountFriend$Outbound | null> | null;
|
|
43
43
|
};
|
|
44
44
|
|
|
45
45
|
/** @internal */
|
|
@@ -49,7 +49,7 @@ export const V1AccountFriendsResponseBody$outboundSchema: z.ZodType<
|
|
|
49
49
|
V1AccountFriendsResponseBody
|
|
50
50
|
> = z.object({
|
|
51
51
|
dollarSchema: z.string().optional(),
|
|
52
|
-
friends: z.nullable(z.array(V1AccountFriend$outboundSchema)),
|
|
52
|
+
friends: z.nullable(z.array(z.nullable(V1AccountFriend$outboundSchema))),
|
|
53
53
|
}).transform((v) => {
|
|
54
54
|
return remap$(v, {
|
|
55
55
|
dollarSchema: "$schema",
|
|
@@ -124,6 +124,8 @@ export type V1AccountInfoResponseBody = {
|
|
|
124
124
|
animatedAvatar: string;
|
|
125
125
|
/**
|
|
126
126
|
* The cost of an app
|
|
127
|
+
*
|
|
128
|
+
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
127
129
|
*/
|
|
128
130
|
appCost: number;
|
|
129
131
|
/**
|
|
@@ -194,6 +196,8 @@ export type V1AccountInfoResponseBody = {
|
|
|
194
196
|
economyBan: string;
|
|
195
197
|
/**
|
|
196
198
|
* The cost of a foil badge
|
|
199
|
+
*
|
|
200
|
+
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
197
201
|
*/
|
|
198
202
|
foilBadgeCost: number;
|
|
199
203
|
/**
|
|
@@ -239,6 +243,8 @@ export type V1AccountInfoResponseBody = {
|
|
|
239
243
|
nextAllowedTime: Date;
|
|
240
244
|
/**
|
|
241
245
|
* The cost of a normal badge
|
|
246
|
+
*
|
|
247
|
+
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
242
248
|
*/
|
|
243
249
|
normalBadgeCost: number;
|
|
244
250
|
/**
|
|
@@ -62,6 +62,8 @@ export type V1AccountLeaderboardAccountPrivacy = ClosedEnum<
|
|
|
62
62
|
export type V1AccountLeaderboardAccount = {
|
|
63
63
|
/**
|
|
64
64
|
* The cost of an app
|
|
65
|
+
*
|
|
66
|
+
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
65
67
|
*/
|
|
66
68
|
appCost: number;
|
|
67
69
|
/**
|
|
@@ -109,6 +111,8 @@ export type V1AccountLeaderboardAccount = {
|
|
|
109
111
|
economyBan: string;
|
|
110
112
|
/**
|
|
111
113
|
* The cost of a foil badge
|
|
114
|
+
*
|
|
115
|
+
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
112
116
|
*/
|
|
113
117
|
foilBadgeCost: number;
|
|
114
118
|
/**
|
|
@@ -133,6 +137,8 @@ export type V1AccountLeaderboardAccount = {
|
|
|
133
137
|
name: string;
|
|
134
138
|
/**
|
|
135
139
|
* The cost of a normal badge
|
|
140
|
+
*
|
|
141
|
+
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
136
142
|
*/
|
|
137
143
|
normalBadgeCost: number;
|
|
138
144
|
/**
|
|
@@ -74,7 +74,7 @@ export type V1AccountLeaderboardRequestBody = {
|
|
|
74
74
|
/**
|
|
75
75
|
* The location(s)to get the leaderboard for, otherwise global
|
|
76
76
|
*/
|
|
77
|
-
location?: Array<V1LeaderboardLocation> | null | undefined;
|
|
77
|
+
location?: Array<V1LeaderboardLocation | null> | null | undefined;
|
|
78
78
|
/**
|
|
79
79
|
* The start index
|
|
80
80
|
*/
|
|
@@ -115,7 +115,8 @@ export const V1AccountLeaderboardRequestBody$inboundSchema: z.ZodType<
|
|
|
115
115
|
end: z.nullable(z.number().int()).optional(),
|
|
116
116
|
goToLeaderboardRank: z.nullable(z.number().int()).optional(),
|
|
117
117
|
leaderboard: V1AccountLeaderboardRequestBodyLeaderboard$inboundSchema,
|
|
118
|
-
location: z.nullable(z.array(V1LeaderboardLocation$inboundSchema))
|
|
118
|
+
location: z.nullable(z.array(z.nullable(V1LeaderboardLocation$inboundSchema)))
|
|
119
|
+
.optional(),
|
|
119
120
|
start: z.nullable(z.number().int()).optional(),
|
|
120
121
|
});
|
|
121
122
|
|
|
@@ -126,7 +127,7 @@ export type V1AccountLeaderboardRequestBody$Outbound = {
|
|
|
126
127
|
end?: number | null | undefined;
|
|
127
128
|
goToLeaderboardRank?: number | null | undefined;
|
|
128
129
|
leaderboard: string;
|
|
129
|
-
location?: Array<V1LeaderboardLocation$Outbound> | null | undefined;
|
|
130
|
+
location?: Array<V1LeaderboardLocation$Outbound | null> | null | undefined;
|
|
130
131
|
start?: number | null | undefined;
|
|
131
132
|
};
|
|
132
133
|
|
|
@@ -141,8 +142,9 @@ export const V1AccountLeaderboardRequestBody$outboundSchema: z.ZodType<
|
|
|
141
142
|
end: z.nullable(z.number().int()).optional(),
|
|
142
143
|
goToLeaderboardRank: z.nullable(z.number().int()).optional(),
|
|
143
144
|
leaderboard: V1AccountLeaderboardRequestBodyLeaderboard$outboundSchema,
|
|
144
|
-
location: z.nullable(
|
|
145
|
-
.
|
|
145
|
+
location: z.nullable(
|
|
146
|
+
z.array(z.nullable(V1LeaderboardLocation$outboundSchema)),
|
|
147
|
+
).optional(),
|
|
146
148
|
start: z.nullable(z.number().int()).optional(),
|
|
147
149
|
});
|
|
148
150
|
|
|
@@ -37,7 +37,7 @@ export type V1AccountLeaderboardResponseBody = {
|
|
|
37
37
|
* A URL to the JSON Schema for this object.
|
|
38
38
|
*/
|
|
39
39
|
dollarSchema?: string | undefined;
|
|
40
|
-
accounts: Array<V1AccountLeaderboardAccount> | null;
|
|
40
|
+
accounts: Array<V1AccountLeaderboardAccount | null> | null;
|
|
41
41
|
app?: V1LeaderboardAppInfo | null | undefined;
|
|
42
42
|
badgeInfo?: V1LeaderboardBadgeInfo | null | undefined;
|
|
43
43
|
/**
|
|
@@ -59,7 +59,9 @@ export const V1AccountLeaderboardResponseBody$inboundSchema: z.ZodType<
|
|
|
59
59
|
unknown
|
|
60
60
|
> = z.object({
|
|
61
61
|
$schema: z.string().optional(),
|
|
62
|
-
accounts: z.nullable(
|
|
62
|
+
accounts: z.nullable(
|
|
63
|
+
z.array(z.nullable(V1AccountLeaderboardAccount$inboundSchema)),
|
|
64
|
+
),
|
|
63
65
|
app: z.nullable(V1LeaderboardAppInfo$inboundSchema).optional(),
|
|
64
66
|
badgeInfo: z.nullable(V1LeaderboardBadgeInfo$inboundSchema).optional(),
|
|
65
67
|
hiddenRanks: z.nullable(z.array(z.number().int())).optional(),
|
|
@@ -76,7 +78,7 @@ export const V1AccountLeaderboardResponseBody$inboundSchema: z.ZodType<
|
|
|
76
78
|
/** @internal */
|
|
77
79
|
export type V1AccountLeaderboardResponseBody$Outbound = {
|
|
78
80
|
$schema?: string | undefined;
|
|
79
|
-
accounts: Array<V1AccountLeaderboardAccount$Outbound> | null;
|
|
81
|
+
accounts: Array<V1AccountLeaderboardAccount$Outbound | null> | null;
|
|
80
82
|
app?: V1LeaderboardAppInfo$Outbound | null | undefined;
|
|
81
83
|
badgeInfo?: V1LeaderboardBadgeInfo$Outbound | null | undefined;
|
|
82
84
|
hiddenRanks?: Array<number> | null | undefined;
|
|
@@ -92,7 +94,9 @@ export const V1AccountLeaderboardResponseBody$outboundSchema: z.ZodType<
|
|
|
92
94
|
V1AccountLeaderboardResponseBody
|
|
93
95
|
> = z.object({
|
|
94
96
|
dollarSchema: z.string().optional(),
|
|
95
|
-
accounts: z.nullable(
|
|
97
|
+
accounts: z.nullable(
|
|
98
|
+
z.array(z.nullable(V1AccountLeaderboardAccount$outboundSchema)),
|
|
99
|
+
),
|
|
96
100
|
app: z.nullable(V1LeaderboardAppInfo$outboundSchema).optional(),
|
|
97
101
|
badgeInfo: z.nullable(V1LeaderboardBadgeInfo$outboundSchema).optional(),
|
|
98
102
|
hiddenRanks: z.nullable(z.array(z.number().int())).optional(),
|
|
@@ -35,6 +35,9 @@ export type V1AppBadge = {
|
|
|
35
35
|
isSale: boolean;
|
|
36
36
|
lastCompletion: Date | null;
|
|
37
37
|
name: string;
|
|
38
|
+
/**
|
|
39
|
+
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
40
|
+
*/
|
|
38
41
|
price: number;
|
|
39
42
|
scarcity: number;
|
|
40
43
|
steamId: number;
|
|
@@ -66,7 +66,7 @@ export type V1LeaderboardAccountMetaRequestBody = {
|
|
|
66
66
|
/**
|
|
67
67
|
* The location(s)to get the leaderboard for, otherwise global
|
|
68
68
|
*/
|
|
69
|
-
location?: Array<V1LeaderboardLocation> | null | undefined;
|
|
69
|
+
location?: Array<V1LeaderboardLocation | null> | null | undefined;
|
|
70
70
|
};
|
|
71
71
|
|
|
72
72
|
/** @internal */
|
|
@@ -101,7 +101,8 @@ export const V1LeaderboardAccountMetaRequestBody$inboundSchema: z.ZodType<
|
|
|
101
101
|
app: z.nullable(V1AccountLeaderboardAppSearch$inboundSchema).optional(),
|
|
102
102
|
badge: z.nullable(V1AccountLeaderboardBadgeSearch$inboundSchema).optional(),
|
|
103
103
|
leaderboard: V1LeaderboardAccountMetaRequestBodyLeaderboard$inboundSchema,
|
|
104
|
-
location: z.nullable(z.array(V1LeaderboardLocation$inboundSchema))
|
|
104
|
+
location: z.nullable(z.array(z.nullable(V1LeaderboardLocation$inboundSchema)))
|
|
105
|
+
.optional(),
|
|
105
106
|
});
|
|
106
107
|
|
|
107
108
|
/** @internal */
|
|
@@ -109,7 +110,7 @@ export type V1LeaderboardAccountMetaRequestBody$Outbound = {
|
|
|
109
110
|
app?: V1AccountLeaderboardAppSearch$Outbound | null | undefined;
|
|
110
111
|
badge?: V1AccountLeaderboardBadgeSearch$Outbound | null | undefined;
|
|
111
112
|
leaderboard: string;
|
|
112
|
-
location?: Array<V1LeaderboardLocation$Outbound> | null | undefined;
|
|
113
|
+
location?: Array<V1LeaderboardLocation$Outbound | null> | null | undefined;
|
|
113
114
|
};
|
|
114
115
|
|
|
115
116
|
/** @internal */
|
|
@@ -121,8 +122,9 @@ export const V1LeaderboardAccountMetaRequestBody$outboundSchema: z.ZodType<
|
|
|
121
122
|
app: z.nullable(V1AccountLeaderboardAppSearch$outboundSchema).optional(),
|
|
122
123
|
badge: z.nullable(V1AccountLeaderboardBadgeSearch$outboundSchema).optional(),
|
|
123
124
|
leaderboard: V1LeaderboardAccountMetaRequestBodyLeaderboard$outboundSchema,
|
|
124
|
-
location: z.nullable(
|
|
125
|
-
.
|
|
125
|
+
location: z.nullable(
|
|
126
|
+
z.array(z.nullable(V1LeaderboardLocation$outboundSchema)),
|
|
127
|
+
).optional(),
|
|
126
128
|
});
|
|
127
129
|
|
|
128
130
|
/**
|
|
@@ -11,7 +11,7 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
|
11
11
|
/**
|
|
12
12
|
* The Image Type
|
|
13
13
|
*/
|
|
14
|
-
export const
|
|
14
|
+
export const Type = {
|
|
15
15
|
Avatar: "avatar",
|
|
16
16
|
Background: "background",
|
|
17
17
|
MiniBackground: "mini_background",
|
|
@@ -21,7 +21,7 @@ export const V1UploadedImageType = {
|
|
|
21
21
|
/**
|
|
22
22
|
* The Image Type
|
|
23
23
|
*/
|
|
24
|
-
export type
|
|
24
|
+
export type Type = ClosedEnum<typeof Type>;
|
|
25
25
|
|
|
26
26
|
export type V1UploadedImage = {
|
|
27
27
|
/**
|
|
@@ -31,28 +31,27 @@ export type V1UploadedImage = {
|
|
|
31
31
|
/**
|
|
32
32
|
* The Image Type
|
|
33
33
|
*/
|
|
34
|
-
type:
|
|
34
|
+
type: Type;
|
|
35
35
|
};
|
|
36
36
|
|
|
37
37
|
/** @internal */
|
|
38
|
-
export const
|
|
39
|
-
|
|
40
|
-
|
|
38
|
+
export const Type$inboundSchema: z.ZodNativeEnum<typeof Type> = z.nativeEnum(
|
|
39
|
+
Type,
|
|
40
|
+
);
|
|
41
41
|
|
|
42
42
|
/** @internal */
|
|
43
|
-
export const
|
|
44
|
-
|
|
45
|
-
> = V1UploadedImageType$inboundSchema;
|
|
43
|
+
export const Type$outboundSchema: z.ZodNativeEnum<typeof Type> =
|
|
44
|
+
Type$inboundSchema;
|
|
46
45
|
|
|
47
46
|
/**
|
|
48
47
|
* @internal
|
|
49
48
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
50
49
|
*/
|
|
51
|
-
export namespace
|
|
52
|
-
/** @deprecated use `
|
|
53
|
-
export const inboundSchema =
|
|
54
|
-
/** @deprecated use `
|
|
55
|
-
export const outboundSchema =
|
|
50
|
+
export namespace Type$ {
|
|
51
|
+
/** @deprecated use `Type$inboundSchema` instead. */
|
|
52
|
+
export const inboundSchema = Type$inboundSchema;
|
|
53
|
+
/** @deprecated use `Type$outboundSchema` instead. */
|
|
54
|
+
export const outboundSchema = Type$outboundSchema;
|
|
56
55
|
}
|
|
57
56
|
|
|
58
57
|
/** @internal */
|
|
@@ -62,7 +61,7 @@ export const V1UploadedImage$inboundSchema: z.ZodType<
|
|
|
62
61
|
unknown
|
|
63
62
|
> = z.object({
|
|
64
63
|
data: z.string(),
|
|
65
|
-
type:
|
|
64
|
+
type: Type$inboundSchema,
|
|
66
65
|
});
|
|
67
66
|
|
|
68
67
|
/** @internal */
|
|
@@ -78,7 +77,7 @@ export const V1UploadedImage$outboundSchema: z.ZodType<
|
|
|
78
77
|
V1UploadedImage
|
|
79
78
|
> = z.object({
|
|
80
79
|
data: z.string(),
|
|
81
|
-
type:
|
|
80
|
+
type: Type$outboundSchema,
|
|
82
81
|
});
|
|
83
82
|
|
|
84
83
|
/**
|
|
@@ -11,20 +11,20 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
|
11
11
|
/**
|
|
12
12
|
* Which type of vanity to search for
|
|
13
13
|
*/
|
|
14
|
-
export const
|
|
14
|
+
export const VanityStructType = {
|
|
15
15
|
Steam: "steam",
|
|
16
16
|
Internal: "internal",
|
|
17
17
|
} as const;
|
|
18
18
|
/**
|
|
19
19
|
* Which type of vanity to search for
|
|
20
20
|
*/
|
|
21
|
-
export type
|
|
21
|
+
export type VanityStructType = ClosedEnum<typeof VanityStructType>;
|
|
22
22
|
|
|
23
23
|
export type VanityStruct = {
|
|
24
24
|
/**
|
|
25
25
|
* Which type of vanity to search for
|
|
26
26
|
*/
|
|
27
|
-
type:
|
|
27
|
+
type: VanityStructType;
|
|
28
28
|
/**
|
|
29
29
|
* Vanity to search for
|
|
30
30
|
*/
|
|
@@ -32,23 +32,24 @@ export type VanityStruct = {
|
|
|
32
32
|
};
|
|
33
33
|
|
|
34
34
|
/** @internal */
|
|
35
|
-
export const
|
|
36
|
-
|
|
37
|
-
);
|
|
35
|
+
export const VanityStructType$inboundSchema: z.ZodNativeEnum<
|
|
36
|
+
typeof VanityStructType
|
|
37
|
+
> = z.nativeEnum(VanityStructType);
|
|
38
38
|
|
|
39
39
|
/** @internal */
|
|
40
|
-
export const
|
|
41
|
-
|
|
40
|
+
export const VanityStructType$outboundSchema: z.ZodNativeEnum<
|
|
41
|
+
typeof VanityStructType
|
|
42
|
+
> = VanityStructType$inboundSchema;
|
|
42
43
|
|
|
43
44
|
/**
|
|
44
45
|
* @internal
|
|
45
46
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
46
47
|
*/
|
|
47
|
-
export namespace
|
|
48
|
-
/** @deprecated use `
|
|
49
|
-
export const inboundSchema =
|
|
50
|
-
/** @deprecated use `
|
|
51
|
-
export const outboundSchema =
|
|
48
|
+
export namespace VanityStructType$ {
|
|
49
|
+
/** @deprecated use `VanityStructType$inboundSchema` instead. */
|
|
50
|
+
export const inboundSchema = VanityStructType$inboundSchema;
|
|
51
|
+
/** @deprecated use `VanityStructType$outboundSchema` instead. */
|
|
52
|
+
export const outboundSchema = VanityStructType$outboundSchema;
|
|
52
53
|
}
|
|
53
54
|
|
|
54
55
|
/** @internal */
|
|
@@ -57,7 +58,7 @@ export const VanityStruct$inboundSchema: z.ZodType<
|
|
|
57
58
|
z.ZodTypeDef,
|
|
58
59
|
unknown
|
|
59
60
|
> = z.object({
|
|
60
|
-
type:
|
|
61
|
+
type: VanityStructType$inboundSchema,
|
|
61
62
|
value: z.string(),
|
|
62
63
|
});
|
|
63
64
|
|
|
@@ -73,7 +74,7 @@ export const VanityStruct$outboundSchema: z.ZodType<
|
|
|
73
74
|
z.ZodTypeDef,
|
|
74
75
|
VanityStruct
|
|
75
76
|
> = z.object({
|
|
76
|
-
type:
|
|
77
|
+
type: VanityStructType$outboundSchema,
|
|
77
78
|
value: z.string(),
|
|
78
79
|
});
|
|
79
80
|
|
|
@@ -14,7 +14,10 @@ export type AccountV1GetStaffResponse = {
|
|
|
14
14
|
/**
|
|
15
15
|
* OK
|
|
16
16
|
*/
|
|
17
|
-
leaderboardAccounts?:
|
|
17
|
+
leaderboardAccounts?:
|
|
18
|
+
| Array<components.LeaderboardAccount | null>
|
|
19
|
+
| null
|
|
20
|
+
| undefined;
|
|
18
21
|
};
|
|
19
22
|
|
|
20
23
|
/** @internal */
|
|
@@ -25,7 +28,7 @@ export const AccountV1GetStaffResponse$inboundSchema: z.ZodType<
|
|
|
25
28
|
> = z.object({
|
|
26
29
|
HttpMeta: components.HTTPMetadata$inboundSchema,
|
|
27
30
|
LeaderboardAccounts: z.nullable(
|
|
28
|
-
z.array(components.LeaderboardAccount$inboundSchema),
|
|
31
|
+
z.array(z.nullable(components.LeaderboardAccount$inboundSchema)),
|
|
29
32
|
).optional(),
|
|
30
33
|
}).transform((v) => {
|
|
31
34
|
return remap$(v, {
|
|
@@ -38,7 +41,7 @@ export const AccountV1GetStaffResponse$inboundSchema: z.ZodType<
|
|
|
38
41
|
export type AccountV1GetStaffResponse$Outbound = {
|
|
39
42
|
HttpMeta: components.HTTPMetadata$Outbound;
|
|
40
43
|
LeaderboardAccounts?:
|
|
41
|
-
| Array<components.LeaderboardAccount$Outbound>
|
|
44
|
+
| Array<components.LeaderboardAccount$Outbound | null>
|
|
42
45
|
| null
|
|
43
46
|
| undefined;
|
|
44
47
|
};
|
|
@@ -51,7 +54,7 @@ export const AccountV1GetStaffResponse$outboundSchema: z.ZodType<
|
|
|
51
54
|
> = z.object({
|
|
52
55
|
httpMeta: components.HTTPMetadata$outboundSchema,
|
|
53
56
|
leaderboardAccounts: z.nullable(
|
|
54
|
-
z.array(components.LeaderboardAccount$outboundSchema),
|
|
57
|
+
z.array(z.nullable(components.LeaderboardAccount$outboundSchema)),
|
|
55
58
|
).optional(),
|
|
56
59
|
}).transform((v) => {
|
|
57
60
|
return remap$(v, {
|
package/src/sdk/badge.ts
CHANGED
|
@@ -2,25 +2,12 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
import { badgeAppV1ListBadges } from "../funcs/badgeAppV1ListBadges.js";
|
|
6
5
|
import { badgeGetTags } from "../funcs/badgeGetTags.js";
|
|
7
6
|
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
8
|
-
import * as components from "../models/components/index.js";
|
|
9
7
|
import * as operations from "../models/operations/index.js";
|
|
10
8
|
import { unwrapAsync } from "../types/fp.js";
|
|
11
9
|
|
|
12
10
|
export class Badge extends ClientSDK {
|
|
13
|
-
async appV1ListBadges(
|
|
14
|
-
request: components.V1AppBadgeListRequestBody,
|
|
15
|
-
options?: RequestOptions,
|
|
16
|
-
): Promise<operations.AppV1ListBadgesResponse> {
|
|
17
|
-
return unwrapAsync(badgeAppV1ListBadges(
|
|
18
|
-
this,
|
|
19
|
-
request,
|
|
20
|
-
options,
|
|
21
|
-
));
|
|
22
|
-
}
|
|
23
|
-
|
|
24
11
|
async getTags(
|
|
25
12
|
options?: RequestOptions,
|
|
26
13
|
): Promise<operations.BadgeV1TagsResponse> {
|