@steamsets/client-ts 0.13.7 → 0.14.1
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/FUNCTIONS.md +107 -0
- package/README.md +33 -19
- package/RUNTIMES.md +22 -0
- package/docs/sdks/account/README.md +93 -12
- package/docs/sdks/images/README.md +332 -0
- package/docs/sdks/session/README.md +2 -2
- package/docs/sdks/settings/README.md +0 -256
- package/docs/sdks/steamsets/README.md +3 -1
- package/funcs/accountAccountV1GetBadgeBookmarks.js +3 -3
- package/funcs/accountAccountV1GetBadgeBookmarks.js.map +1 -1
- package/funcs/accountAccountV1ImagesGet.d.ts +10 -0
- package/funcs/accountAccountV1ImagesGet.d.ts.map +1 -0
- package/funcs/accountAccountV1ImagesGet.js +98 -0
- package/funcs/accountAccountV1ImagesGet.js.map +1 -0
- package/funcs/{settingsUploadImages.d.ts → accountAccountV1ImagesUpdate.d.ts} +2 -2
- package/funcs/accountAccountV1ImagesUpdate.d.ts.map +1 -0
- package/funcs/{accountUpdateImage.js → accountAccountV1ImagesUpdate.js} +9 -9
- package/funcs/accountAccountV1ImagesUpdate.js.map +1 -0
- package/funcs/accountDeleteImages.d.ts +1 -1
- package/funcs/accountDeleteImages.d.ts.map +1 -1
- package/funcs/accountDeleteImages.js +7 -5
- package/funcs/accountDeleteImages.js.map +1 -1
- package/funcs/accountGetApps.js +3 -3
- package/funcs/accountGetApps.js.map +1 -1
- package/funcs/accountGetBadges.js +3 -3
- package/funcs/accountGetBadges.js.map +1 -1
- package/funcs/accountGetDataPoints.js +3 -3
- package/funcs/accountGetDataPoints.js.map +1 -1
- package/funcs/accountGetFriends.js +3 -3
- package/funcs/accountGetFriends.js.map +1 -1
- package/funcs/accountGetInfo.js +3 -3
- package/funcs/accountGetInfo.js.map +1 -1
- package/funcs/accountGetLeaderboardHistory.js +3 -3
- package/funcs/accountGetLeaderboardHistory.js.map +1 -1
- package/funcs/accountGetStaff.js +3 -3
- package/funcs/accountGetStaff.js.map +1 -1
- package/funcs/accountSendEmailVerification.js +3 -3
- package/funcs/accountSendEmailVerification.js.map +1 -1
- package/funcs/accountUploadImages.d.ts +1 -1
- package/funcs/accountUploadImages.d.ts.map +1 -1
- package/funcs/accountUploadImages.js +7 -5
- package/funcs/accountUploadImages.js.map +1 -1
- package/funcs/accountVerifyEmail.js +3 -3
- package/funcs/accountVerifyEmail.js.map +1 -1
- package/funcs/accountsQueue.js +3 -3
- package/funcs/accountsQueue.js.map +1 -1
- package/funcs/adminAdminV1GetEvents.js +3 -3
- package/funcs/adminAdminV1GetEvents.js.map +1 -1
- package/funcs/adminAdminV1UpdateEvent.js +3 -3
- package/funcs/adminAdminV1UpdateEvent.js.map +1 -1
- package/funcs/adminAdminV1UpdateResources.js +3 -3
- package/funcs/adminAdminV1UpdateResources.js.map +1 -1
- package/funcs/adminAdminV1UpdateRoles.js +3 -3
- package/funcs/adminAdminV1UpdateRoles.js.map +1 -1
- package/funcs/adminGetAccount.js +3 -3
- package/funcs/adminGetAccount.js.map +1 -1
- package/funcs/badgeAccountV1BookmarkBadge.js +3 -3
- package/funcs/badgeAccountV1BookmarkBadge.js.map +1 -1
- package/funcs/badgeAccountV1GetBadgeBookmarks.js +3 -3
- package/funcs/badgeAccountV1GetBadgeBookmarks.js.map +1 -1
- package/funcs/badgeGetTags.js +3 -3
- package/funcs/badgeGetTags.js.map +1 -1
- package/funcs/badgesTag.js +3 -3
- package/funcs/badgesTag.js.map +1 -1
- package/funcs/connectionDelete.js +3 -3
- package/funcs/connectionDelete.js.map +1 -1
- package/funcs/connectionUpdate.js +3 -3
- package/funcs/connectionUpdate.js.map +1 -1
- package/funcs/connectionVerify.js +3 -3
- package/funcs/connectionVerify.js.map +1 -1
- package/funcs/connectionsConnect.js +3 -3
- package/funcs/connectionsConnect.js.map +1 -1
- package/funcs/dataGetApps.js +3 -3
- package/funcs/dataGetApps.js.map +1 -1
- package/funcs/dataGetBadges.js +3 -3
- package/funcs/dataGetBadges.js.map +1 -1
- package/funcs/dataGetDataPoints.js +3 -3
- package/funcs/dataGetDataPoints.js.map +1 -1
- package/funcs/dataGetFriends.js +3 -3
- package/funcs/dataGetFriends.js.map +1 -1
- package/funcs/dataGetInfo.js +3 -3
- package/funcs/dataGetInfo.js.map +1 -1
- package/funcs/dataGetLeaderboardHistory.js +3 -3
- package/funcs/dataGetLeaderboardHistory.js.map +1 -1
- package/funcs/dataGetStaff.js +3 -3
- package/funcs/dataGetStaff.js.map +1 -1
- package/funcs/developerCreateDeveloperApp.js +3 -3
- package/funcs/developerCreateDeveloperApp.js.map +1 -1
- package/funcs/developerDeleteDeveloperApp.js +3 -3
- package/funcs/developerDeleteDeveloperApp.js.map +1 -1
- package/funcs/developerUpdateApp.js +3 -3
- package/funcs/developerUpdateApp.js.map +1 -1
- package/funcs/imagesAccountV1ImagesGet.d.ts +10 -0
- package/funcs/imagesAccountV1ImagesGet.d.ts.map +1 -0
- package/funcs/imagesAccountV1ImagesGet.js +98 -0
- package/funcs/imagesAccountV1ImagesGet.js.map +1 -0
- package/funcs/{settingsDeleteImages.d.ts → imagesAccountV1ImagesUpdate.d.ts} +2 -2
- package/funcs/imagesAccountV1ImagesUpdate.d.ts.map +1 -0
- package/funcs/{settingsUpdateImage.js → imagesAccountV1ImagesUpdate.js} +9 -9
- package/funcs/imagesAccountV1ImagesUpdate.js.map +1 -0
- package/funcs/{accountUpdateImage.d.ts → imagesDeleteImages.d.ts} +2 -2
- package/funcs/{accountUpdateImage.d.ts.map → imagesDeleteImages.d.ts.map} +1 -1
- package/funcs/{settingsDeleteImages.js → imagesDeleteImages.js} +10 -8
- package/funcs/imagesDeleteImages.js.map +1 -0
- package/funcs/{settingsUpdateImage.d.ts → imagesUploadImages.d.ts} +2 -2
- package/funcs/imagesUploadImages.d.ts.map +1 -0
- package/funcs/{settingsUploadImages.js → imagesUploadImages.js} +10 -8
- package/funcs/imagesUploadImages.js.map +1 -0
- package/funcs/leaderboardGetAccount.js +3 -3
- package/funcs/leaderboardGetAccount.js.map +1 -1
- package/funcs/leaderboardGetBadges.js +3 -3
- package/funcs/leaderboardGetBadges.js.map +1 -1
- package/funcs/leaderboardGetGroup.js +3 -3
- package/funcs/leaderboardGetGroup.js.map +1 -1
- package/funcs/livenessCheck.js +3 -3
- package/funcs/livenessCheck.js.map +1 -1
- package/funcs/locationsGet.js +3 -3
- package/funcs/locationsGet.js.map +1 -1
- package/funcs/metaAccountV1GetEmbed.js +3 -3
- package/funcs/metaAccountV1GetEmbed.js.map +1 -1
- package/funcs/metaAccountV1GetMeta.js +3 -3
- package/funcs/metaAccountV1GetMeta.js.map +1 -1
- package/funcs/publicGetApps.js +3 -3
- package/funcs/publicGetApps.js.map +1 -1
- package/funcs/publicGetBadges.js +3 -3
- package/funcs/publicGetBadges.js.map +1 -1
- package/funcs/publicGetDataPoints.js +3 -3
- package/funcs/publicGetDataPoints.js.map +1 -1
- package/funcs/publicGetFriends.js +3 -3
- package/funcs/publicGetFriends.js.map +1 -1
- package/funcs/publicGetInfo.js +3 -3
- package/funcs/publicGetInfo.js.map +1 -1
- package/funcs/publicGetLeaderboardHistory.js +3 -3
- package/funcs/publicGetLeaderboardHistory.js.map +1 -1
- package/funcs/sessionCreate.js +3 -3
- package/funcs/sessionCreate.js.map +1 -1
- package/funcs/sessionLogin.js +3 -3
- package/funcs/sessionLogin.js.map +1 -1
- package/funcs/sessionsDelete.js +3 -3
- package/funcs/sessionsDelete.js.map +1 -1
- package/funcs/sessionsGet.js +3 -3
- package/funcs/sessionsGet.js.map +1 -1
- package/funcs/settingsGet.js +3 -3
- package/funcs/settingsGet.js.map +1 -1
- package/funcs/settingsSendEmailVerification.js +3 -3
- package/funcs/settingsSendEmailVerification.js.map +1 -1
- package/funcs/settingsUpdate.js +3 -3
- package/funcs/settingsUpdate.js.map +1 -1
- package/funcs/settingsVerifyEmail.js +3 -3
- package/funcs/settingsVerifyEmail.js.map +1 -1
- package/hooks/hooks.d.ts.map +1 -1
- package/hooks/hooks.js +18 -0
- package/hooks/hooks.js.map +1 -1
- package/hooks/types.d.ts +1 -0
- package/hooks/types.d.ts.map +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/primitives.d.ts +2 -0
- package/lib/primitives.d.ts.map +1 -1
- package/lib/primitives.js +53 -0
- package/lib/primitives.js.map +1 -1
- package/models/components/index.d.ts +2 -1
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +2 -1
- package/models/components/index.js.map +1 -1
- package/models/components/v1getimagesresponsebody.d.ts +38 -0
- package/models/components/v1getimagesresponsebody.d.ts.map +1 -0
- package/models/components/v1getimagesresponsebody.js +71 -0
- package/models/components/v1getimagesresponsebody.js.map +1 -0
- package/models/components/v1getsettingsbody.d.ts +2 -6
- package/models/components/v1getsettingsbody.d.ts.map +1 -1
- package/models/components/v1getsettingsbody.js +0 -3
- package/models/components/v1getsettingsbody.js.map +1 -1
- package/models/components/v1updateimage.d.ts +37 -0
- package/models/components/v1updateimage.d.ts.map +1 -0
- package/models/components/v1updateimage.js +61 -0
- package/models/components/v1updateimage.js.map +1 -0
- package/models/components/v1updateimagerequestbody.d.ts +4 -8
- package/models/components/v1updateimagerequestbody.d.ts.map +1 -1
- package/models/components/v1updateimagerequestbody.js +3 -4
- package/models/components/v1updateimagerequestbody.js.map +1 -1
- package/models/components/v1updateimageresponsebody.d.ts +0 -5
- package/models/components/v1updateimageresponsebody.d.ts.map +1 -1
- package/models/components/v1updateimageresponsebody.js +0 -2
- package/models/components/v1updateimageresponsebody.js.map +1 -1
- package/models/components/v1updatesettingsrequestbody.d.ts +0 -6
- package/models/components/v1updatesettingsrequestbody.d.ts.map +1 -1
- package/models/components/v1updatesettingsrequestbody.js +0 -3
- package/models/components/v1updatesettingsrequestbody.js.map +1 -1
- package/models/operations/accountv1imagesdelete.d.ts +35 -0
- package/models/operations/accountv1imagesdelete.d.ts.map +1 -0
- package/models/operations/{accountv1settingsdeleteimages.js → accountv1imagesdelete.js} +17 -17
- package/models/operations/accountv1imagesdelete.js.map +1 -0
- package/models/operations/accountv1imagesget.d.ts +35 -0
- package/models/operations/accountv1imagesget.d.ts.map +1 -0
- package/models/operations/accountv1imagesget.js +75 -0
- package/models/operations/accountv1imagesget.js.map +1 -0
- package/models/operations/accountv1imagesupdate.d.ts +35 -0
- package/models/operations/accountv1imagesupdate.d.ts.map +1 -0
- package/models/operations/{accountv1settingsupdateimage.js → accountv1imagesupdate.js} +17 -17
- package/models/operations/accountv1imagesupdate.js.map +1 -0
- package/models/operations/accountv1imagesupload.d.ts +35 -0
- package/models/operations/accountv1imagesupload.d.ts.map +1 -0
- package/models/operations/{accountv1settingsuploadimages.js → accountv1imagesupload.js} +17 -17
- package/models/operations/accountv1imagesupload.js.map +1 -0
- package/models/operations/index.d.ts +4 -3
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +4 -3
- package/models/operations/index.js.map +1 -1
- package/package.json +1 -1
- package/sdk/account.d.ts +4 -3
- package/sdk/account.d.ts.map +1 -1
- package/sdk/account.js +7 -3
- package/sdk/account.js.map +1 -1
- package/sdk/images.d.ts +10 -0
- package/sdk/images.d.ts.map +1 -0
- package/sdk/images.js +28 -0
- package/sdk/images.js.map +1 -0
- package/sdk/sdk.d.ts +5 -2
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +7 -2
- package/sdk/sdk.js.map +1 -1
- package/sdk/settings.d.ts +0 -3
- package/sdk/settings.d.ts.map +1 -1
- package/sdk/settings.js +0 -12
- package/sdk/settings.js.map +1 -1
- package/src/funcs/accountAccountV1GetBadgeBookmarks.ts +3 -3
- package/src/funcs/accountAccountV1ImagesGet.ts +124 -0
- package/src/funcs/{accountUpdateImage.ts → accountAccountV1ImagesUpdate.ts} +9 -9
- package/src/funcs/accountDeleteImages.ts +9 -11
- package/src/funcs/accountGetApps.ts +3 -3
- package/src/funcs/accountGetBadges.ts +3 -3
- package/src/funcs/accountGetDataPoints.ts +3 -3
- package/src/funcs/accountGetFriends.ts +3 -3
- package/src/funcs/accountGetInfo.ts +3 -3
- package/src/funcs/accountGetLeaderboardHistory.ts +3 -3
- package/src/funcs/accountGetStaff.ts +3 -3
- package/src/funcs/accountSendEmailVerification.ts +3 -3
- package/src/funcs/accountUploadImages.ts +9 -11
- package/src/funcs/accountVerifyEmail.ts +3 -3
- package/src/funcs/accountsQueue.ts +3 -3
- package/src/funcs/adminAdminV1GetEvents.ts +3 -3
- package/src/funcs/adminAdminV1UpdateEvent.ts +3 -3
- package/src/funcs/adminAdminV1UpdateResources.ts +3 -3
- package/src/funcs/adminAdminV1UpdateRoles.ts +3 -3
- package/src/funcs/adminGetAccount.ts +3 -3
- package/src/funcs/badgeAccountV1BookmarkBadge.ts +3 -3
- package/src/funcs/badgeAccountV1GetBadgeBookmarks.ts +3 -3
- package/src/funcs/badgeGetTags.ts +3 -3
- package/src/funcs/badgesTag.ts +3 -3
- package/src/funcs/connectionDelete.ts +3 -3
- package/src/funcs/connectionUpdate.ts +3 -3
- package/src/funcs/connectionVerify.ts +3 -3
- package/src/funcs/connectionsConnect.ts +3 -3
- package/src/funcs/dataGetApps.ts +3 -3
- package/src/funcs/dataGetBadges.ts +3 -3
- package/src/funcs/dataGetDataPoints.ts +3 -3
- package/src/funcs/dataGetFriends.ts +3 -3
- package/src/funcs/dataGetInfo.ts +3 -3
- package/src/funcs/dataGetLeaderboardHistory.ts +3 -3
- package/src/funcs/dataGetStaff.ts +3 -3
- package/src/funcs/developerCreateDeveloperApp.ts +3 -3
- package/src/funcs/developerDeleteDeveloperApp.ts +3 -3
- package/src/funcs/developerUpdateApp.ts +3 -3
- package/src/funcs/imagesAccountV1ImagesGet.ts +124 -0
- package/src/funcs/{settingsUpdateImage.ts → imagesAccountV1ImagesUpdate.ts} +9 -9
- package/src/funcs/{settingsDeleteImages.ts → imagesDeleteImages.ts} +10 -12
- package/src/funcs/{settingsUploadImages.ts → imagesUploadImages.ts} +10 -12
- package/src/funcs/leaderboardGetAccount.ts +3 -3
- package/src/funcs/leaderboardGetBadges.ts +3 -3
- package/src/funcs/leaderboardGetGroup.ts +3 -3
- package/src/funcs/livenessCheck.ts +3 -3
- package/src/funcs/locationsGet.ts +3 -3
- package/src/funcs/metaAccountV1GetEmbed.ts +3 -3
- package/src/funcs/metaAccountV1GetMeta.ts +3 -3
- package/src/funcs/publicGetApps.ts +3 -3
- package/src/funcs/publicGetBadges.ts +3 -3
- package/src/funcs/publicGetDataPoints.ts +3 -3
- package/src/funcs/publicGetFriends.ts +3 -3
- package/src/funcs/publicGetInfo.ts +3 -3
- package/src/funcs/publicGetLeaderboardHistory.ts +3 -3
- package/src/funcs/sessionCreate.ts +3 -3
- package/src/funcs/sessionLogin.ts +3 -3
- package/src/funcs/sessionsDelete.ts +3 -3
- package/src/funcs/sessionsGet.ts +3 -3
- package/src/funcs/settingsGet.ts +3 -3
- package/src/funcs/settingsSendEmailVerification.ts +3 -3
- package/src/funcs/settingsUpdate.ts +3 -3
- package/src/funcs/settingsVerifyEmail.ts +3 -3
- package/src/hooks/hooks.ts +20 -0
- package/src/hooks/types.ts +7 -0
- package/src/lib/config.ts +3 -3
- package/src/lib/primitives.ts +62 -0
- package/src/models/components/index.ts +2 -1
- package/src/models/components/v1getimagesresponsebody.ts +91 -0
- package/src/models/components/v1getsettingsbody.ts +2 -13
- package/src/models/components/v1updateimage.ts +72 -0
- package/src/models/components/v1updateimagerequestbody.ts +11 -12
- package/src/models/components/v1updateimageresponsebody.ts +0 -7
- package/src/models/components/v1updatesettingsrequestbody.ts +0 -13
- package/src/models/operations/{accountv1settingsdeleteimages.ts → accountv1imagesdelete.ts} +22 -25
- package/src/models/operations/accountv1imagesget.ts +89 -0
- package/src/models/operations/{accountv1settingsupdateimage.ts → accountv1imagesupdate.ts} +22 -25
- package/src/models/operations/{accountv1settingsuploadimages.ts → accountv1imagesupload.ts} +22 -25
- package/src/models/operations/index.ts +4 -3
- package/src/sdk/account.ts +16 -6
- package/src/sdk/images.ts +56 -0
- package/src/sdk/sdk.ts +9 -3
- package/src/sdk/settings.ts +0 -36
- package/src/types/operations.ts +11 -5
- package/types/operations.d.ts +5 -3
- package/types/operations.d.ts.map +1 -1
- package/types/operations.js +3 -0
- package/types/operations.js.map +1 -1
- package/funcs/accountUpdateImage.js.map +0 -1
- package/funcs/settingsDeleteImages.d.ts.map +0 -1
- package/funcs/settingsDeleteImages.js.map +0 -1
- package/funcs/settingsUpdateImage.d.ts.map +0 -1
- package/funcs/settingsUpdateImage.js.map +0 -1
- package/funcs/settingsUploadImages.d.ts.map +0 -1
- package/funcs/settingsUploadImages.js.map +0 -1
- package/models/components/emailnotification.d.ts +0 -66
- package/models/components/emailnotification.d.ts.map +0 -1
- package/models/components/emailnotification.js +0 -82
- package/models/components/emailnotification.js.map +0 -1
- package/models/operations/accountv1settingsdeleteimages.d.ts +0 -35
- package/models/operations/accountv1settingsdeleteimages.d.ts.map +0 -1
- package/models/operations/accountv1settingsdeleteimages.js.map +0 -1
- package/models/operations/accountv1settingsupdateimage.d.ts +0 -35
- package/models/operations/accountv1settingsupdateimage.d.ts.map +0 -1
- package/models/operations/accountv1settingsupdateimage.js.map +0 -1
- package/models/operations/accountv1settingsuploadimages.d.ts +0 -35
- package/models/operations/accountv1settingsuploadimages.d.ts.map +0 -1
- package/models/operations/accountv1settingsuploadimages.js.map +0 -1
- package/src/models/components/emailnotification.ts +0 -109
|
@@ -23,13 +23,13 @@ import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
|
23
23
|
import * as operations from "../models/operations/index.js";
|
|
24
24
|
import { Result } from "../types/fp.js";
|
|
25
25
|
|
|
26
|
-
export async function
|
|
26
|
+
export async function imagesAccountV1ImagesUpdate(
|
|
27
27
|
client: SteamSetsCore,
|
|
28
28
|
request: components.V1UpdateImageRequestBody,
|
|
29
29
|
options?: RequestOptions,
|
|
30
30
|
): Promise<
|
|
31
31
|
Result<
|
|
32
|
-
operations.
|
|
32
|
+
operations.AccountV1ImagesUpdateResponse,
|
|
33
33
|
| errors.ErrorModel
|
|
34
34
|
| SDKError
|
|
35
35
|
| SDKValidationError
|
|
@@ -51,7 +51,7 @@ export async function settingsUpdateImage(
|
|
|
51
51
|
const payload = parsed.value;
|
|
52
52
|
const body = encodeJSON("body", payload, { explode: true });
|
|
53
53
|
|
|
54
|
-
const path = pathToFunc("/account.v1.AccountService/
|
|
54
|
+
const path = pathToFunc("/account.v1.AccountService/UpdateImages")();
|
|
55
55
|
|
|
56
56
|
const headers = new Headers({
|
|
57
57
|
"Content-Type": "application/json",
|
|
@@ -63,7 +63,7 @@ export async function settingsUpdateImage(
|
|
|
63
63
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
64
64
|
|
|
65
65
|
const context = {
|
|
66
|
-
operationID: "account.v1.
|
|
66
|
+
operationID: "account.v1.images.update",
|
|
67
67
|
oAuth2Scopes: [],
|
|
68
68
|
|
|
69
69
|
resolvedSecurity: requestSecurity,
|
|
@@ -75,14 +75,14 @@ export async function settingsUpdateImage(
|
|
|
75
75
|
strategy: "backoff",
|
|
76
76
|
backoff: {
|
|
77
77
|
initialInterval: 500,
|
|
78
|
-
maxInterval:
|
|
78
|
+
maxInterval: 5000,
|
|
79
79
|
exponent: 1.5,
|
|
80
|
-
maxElapsedTime:
|
|
80
|
+
maxElapsedTime: 60000,
|
|
81
81
|
},
|
|
82
82
|
retryConnectionErrors: true,
|
|
83
83
|
}
|
|
84
84
|
|| { strategy: "none" },
|
|
85
|
-
retryCodes: options?.retryCodes || ["
|
|
85
|
+
retryCodes: options?.retryCodes || ["501", "502", "503", "504"],
|
|
86
86
|
};
|
|
87
87
|
|
|
88
88
|
const requestRes = client._createRequest(context, {
|
|
@@ -115,7 +115,7 @@ export async function settingsUpdateImage(
|
|
|
115
115
|
};
|
|
116
116
|
|
|
117
117
|
const [result] = await M.match<
|
|
118
|
-
operations.
|
|
118
|
+
operations.AccountV1ImagesUpdateResponse,
|
|
119
119
|
| errors.ErrorModel
|
|
120
120
|
| SDKError
|
|
121
121
|
| SDKValidationError
|
|
@@ -125,7 +125,7 @@ export async function settingsUpdateImage(
|
|
|
125
125
|
| RequestTimeoutError
|
|
126
126
|
| ConnectionError
|
|
127
127
|
>(
|
|
128
|
-
M.json(200, operations.
|
|
128
|
+
M.json(200, operations.AccountV1ImagesUpdateResponse$inboundSchema, {
|
|
129
129
|
key: "V1UpdateImageResponseBody",
|
|
130
130
|
}),
|
|
131
131
|
M.jsonErr([404, 422, 500], errors.ErrorModel$inboundSchema, {
|
|
@@ -23,13 +23,13 @@ import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
|
23
23
|
import * as operations from "../models/operations/index.js";
|
|
24
24
|
import { Result } from "../types/fp.js";
|
|
25
25
|
|
|
26
|
-
export async function
|
|
26
|
+
export async function imagesDeleteImages(
|
|
27
27
|
client: SteamSetsCore,
|
|
28
28
|
request: components.V1DeleteImagesRequestBody,
|
|
29
29
|
options?: RequestOptions,
|
|
30
30
|
): Promise<
|
|
31
31
|
Result<
|
|
32
|
-
operations.
|
|
32
|
+
operations.AccountV1ImagesDeleteResponse,
|
|
33
33
|
| errors.ErrorModel
|
|
34
34
|
| SDKError
|
|
35
35
|
| SDKValidationError
|
|
@@ -63,7 +63,7 @@ export async function settingsDeleteImages(
|
|
|
63
63
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
64
64
|
|
|
65
65
|
const context = {
|
|
66
|
-
operationID: "account.v1.
|
|
66
|
+
operationID: "account.v1.images.delete",
|
|
67
67
|
oAuth2Scopes: [],
|
|
68
68
|
|
|
69
69
|
resolvedSecurity: requestSecurity,
|
|
@@ -75,14 +75,14 @@ export async function settingsDeleteImages(
|
|
|
75
75
|
strategy: "backoff",
|
|
76
76
|
backoff: {
|
|
77
77
|
initialInterval: 500,
|
|
78
|
-
maxInterval:
|
|
78
|
+
maxInterval: 5000,
|
|
79
79
|
exponent: 1.5,
|
|
80
|
-
maxElapsedTime:
|
|
80
|
+
maxElapsedTime: 60000,
|
|
81
81
|
},
|
|
82
82
|
retryConnectionErrors: true,
|
|
83
83
|
}
|
|
84
84
|
|| { strategy: "none" },
|
|
85
|
-
retryCodes: options?.retryCodes || ["
|
|
85
|
+
retryCodes: options?.retryCodes || ["501", "502", "503", "504"],
|
|
86
86
|
};
|
|
87
87
|
|
|
88
88
|
const requestRes = client._createRequest(context, {
|
|
@@ -115,7 +115,7 @@ export async function settingsDeleteImages(
|
|
|
115
115
|
};
|
|
116
116
|
|
|
117
117
|
const [result] = await M.match<
|
|
118
|
-
operations.
|
|
118
|
+
operations.AccountV1ImagesDeleteResponse,
|
|
119
119
|
| errors.ErrorModel
|
|
120
120
|
| SDKError
|
|
121
121
|
| SDKValidationError
|
|
@@ -125,11 +125,9 @@ export async function settingsDeleteImages(
|
|
|
125
125
|
| RequestTimeoutError
|
|
126
126
|
| ConnectionError
|
|
127
127
|
>(
|
|
128
|
-
M.json(
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
{ key: "V1DeleteImagesResponseBody" },
|
|
132
|
-
),
|
|
128
|
+
M.json(200, operations.AccountV1ImagesDeleteResponse$inboundSchema, {
|
|
129
|
+
key: "V1DeleteImagesResponseBody",
|
|
130
|
+
}),
|
|
133
131
|
M.jsonErr([404, 422, 500], errors.ErrorModel$inboundSchema, {
|
|
134
132
|
ctype: "application/problem+json",
|
|
135
133
|
}),
|
|
@@ -23,13 +23,13 @@ import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
|
23
23
|
import * as operations from "../models/operations/index.js";
|
|
24
24
|
import { Result } from "../types/fp.js";
|
|
25
25
|
|
|
26
|
-
export async function
|
|
26
|
+
export async function imagesUploadImages(
|
|
27
27
|
client: SteamSetsCore,
|
|
28
28
|
request: components.V1UploadImagesRequestBody,
|
|
29
29
|
options?: RequestOptions,
|
|
30
30
|
): Promise<
|
|
31
31
|
Result<
|
|
32
|
-
operations.
|
|
32
|
+
operations.AccountV1ImagesUploadResponse,
|
|
33
33
|
| errors.ErrorModel
|
|
34
34
|
| SDKError
|
|
35
35
|
| SDKValidationError
|
|
@@ -63,7 +63,7 @@ export async function settingsUploadImages(
|
|
|
63
63
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
64
64
|
|
|
65
65
|
const context = {
|
|
66
|
-
operationID: "account.v1.
|
|
66
|
+
operationID: "account.v1.images.upload",
|
|
67
67
|
oAuth2Scopes: [],
|
|
68
68
|
|
|
69
69
|
resolvedSecurity: requestSecurity,
|
|
@@ -75,14 +75,14 @@ export async function settingsUploadImages(
|
|
|
75
75
|
strategy: "backoff",
|
|
76
76
|
backoff: {
|
|
77
77
|
initialInterval: 500,
|
|
78
|
-
maxInterval:
|
|
78
|
+
maxInterval: 5000,
|
|
79
79
|
exponent: 1.5,
|
|
80
|
-
maxElapsedTime:
|
|
80
|
+
maxElapsedTime: 60000,
|
|
81
81
|
},
|
|
82
82
|
retryConnectionErrors: true,
|
|
83
83
|
}
|
|
84
84
|
|| { strategy: "none" },
|
|
85
|
-
retryCodes: options?.retryCodes || ["
|
|
85
|
+
retryCodes: options?.retryCodes || ["501", "502", "503", "504"],
|
|
86
86
|
};
|
|
87
87
|
|
|
88
88
|
const requestRes = client._createRequest(context, {
|
|
@@ -115,7 +115,7 @@ export async function settingsUploadImages(
|
|
|
115
115
|
};
|
|
116
116
|
|
|
117
117
|
const [result] = await M.match<
|
|
118
|
-
operations.
|
|
118
|
+
operations.AccountV1ImagesUploadResponse,
|
|
119
119
|
| errors.ErrorModel
|
|
120
120
|
| SDKError
|
|
121
121
|
| SDKValidationError
|
|
@@ -125,11 +125,9 @@ export async function settingsUploadImages(
|
|
|
125
125
|
| RequestTimeoutError
|
|
126
126
|
| ConnectionError
|
|
127
127
|
>(
|
|
128
|
-
M.json(
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
{ key: "V1UploadImagesResponseBody" },
|
|
132
|
-
),
|
|
128
|
+
M.json(200, operations.AccountV1ImagesUploadResponse$inboundSchema, {
|
|
129
|
+
key: "V1UploadImagesResponseBody",
|
|
130
|
+
}),
|
|
133
131
|
M.jsonErr([422, 500], errors.ErrorModel$inboundSchema, {
|
|
134
132
|
ctype: "application/problem+json",
|
|
135
133
|
}),
|
|
@@ -78,14 +78,14 @@ export async function leaderboardGetAccount(
|
|
|
78
78
|
strategy: "backoff",
|
|
79
79
|
backoff: {
|
|
80
80
|
initialInterval: 500,
|
|
81
|
-
maxInterval:
|
|
81
|
+
maxInterval: 5000,
|
|
82
82
|
exponent: 1.5,
|
|
83
|
-
maxElapsedTime:
|
|
83
|
+
maxElapsedTime: 60000,
|
|
84
84
|
},
|
|
85
85
|
retryConnectionErrors: true,
|
|
86
86
|
}
|
|
87
87
|
|| { strategy: "none" },
|
|
88
|
-
retryCodes: options?.retryCodes || ["
|
|
88
|
+
retryCodes: options?.retryCodes || ["501", "502", "503", "504"],
|
|
89
89
|
};
|
|
90
90
|
|
|
91
91
|
const requestRes = client._createRequest(context, {
|
|
@@ -59,14 +59,14 @@ export async function leaderboardGetBadges(
|
|
|
59
59
|
strategy: "backoff",
|
|
60
60
|
backoff: {
|
|
61
61
|
initialInterval: 500,
|
|
62
|
-
maxInterval:
|
|
62
|
+
maxInterval: 5000,
|
|
63
63
|
exponent: 1.5,
|
|
64
|
-
maxElapsedTime:
|
|
64
|
+
maxElapsedTime: 60000,
|
|
65
65
|
},
|
|
66
66
|
retryConnectionErrors: true,
|
|
67
67
|
}
|
|
68
68
|
|| { strategy: "none" },
|
|
69
|
-
retryCodes: options?.retryCodes || ["
|
|
69
|
+
retryCodes: options?.retryCodes || ["501", "502", "503", "504"],
|
|
70
70
|
};
|
|
71
71
|
|
|
72
72
|
const requestRes = client._createRequest(context, {
|
|
@@ -78,14 +78,14 @@ export async function leaderboardGetGroup(
|
|
|
78
78
|
strategy: "backoff",
|
|
79
79
|
backoff: {
|
|
80
80
|
initialInterval: 500,
|
|
81
|
-
maxInterval:
|
|
81
|
+
maxInterval: 5000,
|
|
82
82
|
exponent: 1.5,
|
|
83
|
-
maxElapsedTime:
|
|
83
|
+
maxElapsedTime: 60000,
|
|
84
84
|
},
|
|
85
85
|
retryConnectionErrors: true,
|
|
86
86
|
}
|
|
87
87
|
|| { strategy: "none" },
|
|
88
|
-
retryCodes: options?.retryCodes || ["
|
|
88
|
+
retryCodes: options?.retryCodes || ["501", "502", "503", "504"],
|
|
89
89
|
};
|
|
90
90
|
|
|
91
91
|
const requestRes = client._createRequest(context, {
|
|
@@ -65,14 +65,14 @@ export async function livenessCheck(
|
|
|
65
65
|
strategy: "backoff",
|
|
66
66
|
backoff: {
|
|
67
67
|
initialInterval: 500,
|
|
68
|
-
maxInterval:
|
|
68
|
+
maxInterval: 5000,
|
|
69
69
|
exponent: 1.5,
|
|
70
|
-
maxElapsedTime:
|
|
70
|
+
maxElapsedTime: 60000,
|
|
71
71
|
},
|
|
72
72
|
retryConnectionErrors: true,
|
|
73
73
|
}
|
|
74
74
|
|| { strategy: "none" },
|
|
75
|
-
retryCodes: options?.retryCodes || ["
|
|
75
|
+
retryCodes: options?.retryCodes || ["501", "502", "503", "504"],
|
|
76
76
|
};
|
|
77
77
|
|
|
78
78
|
const requestRes = client._createRequest(context, {
|
|
@@ -59,14 +59,14 @@ export async function locationsGet(
|
|
|
59
59
|
strategy: "backoff",
|
|
60
60
|
backoff: {
|
|
61
61
|
initialInterval: 500,
|
|
62
|
-
maxInterval:
|
|
62
|
+
maxInterval: 5000,
|
|
63
63
|
exponent: 1.5,
|
|
64
|
-
maxElapsedTime:
|
|
64
|
+
maxElapsedTime: 60000,
|
|
65
65
|
},
|
|
66
66
|
retryConnectionErrors: true,
|
|
67
67
|
}
|
|
68
68
|
|| { strategy: "none" },
|
|
69
|
-
retryCodes: options?.retryCodes || ["
|
|
69
|
+
retryCodes: options?.retryCodes || ["501", "502", "503", "504"],
|
|
70
70
|
};
|
|
71
71
|
|
|
72
72
|
const requestRes = client._createRequest(context, {
|
|
@@ -75,14 +75,14 @@ export async function metaAccountV1GetEmbed(
|
|
|
75
75
|
strategy: "backoff",
|
|
76
76
|
backoff: {
|
|
77
77
|
initialInterval: 500,
|
|
78
|
-
maxInterval:
|
|
78
|
+
maxInterval: 5000,
|
|
79
79
|
exponent: 1.5,
|
|
80
|
-
maxElapsedTime:
|
|
80
|
+
maxElapsedTime: 60000,
|
|
81
81
|
},
|
|
82
82
|
retryConnectionErrors: true,
|
|
83
83
|
}
|
|
84
84
|
|| { strategy: "none" },
|
|
85
|
-
retryCodes: options?.retryCodes || ["
|
|
85
|
+
retryCodes: options?.retryCodes || ["501", "502", "503", "504"],
|
|
86
86
|
};
|
|
87
87
|
|
|
88
88
|
const requestRes = client._createRequest(context, {
|
|
@@ -75,14 +75,14 @@ export async function metaAccountV1GetMeta(
|
|
|
75
75
|
strategy: "backoff",
|
|
76
76
|
backoff: {
|
|
77
77
|
initialInterval: 500,
|
|
78
|
-
maxInterval:
|
|
78
|
+
maxInterval: 5000,
|
|
79
79
|
exponent: 1.5,
|
|
80
|
-
maxElapsedTime:
|
|
80
|
+
maxElapsedTime: 60000,
|
|
81
81
|
},
|
|
82
82
|
retryConnectionErrors: true,
|
|
83
83
|
}
|
|
84
84
|
|| { strategy: "none" },
|
|
85
|
-
retryCodes: options?.retryCodes || ["
|
|
85
|
+
retryCodes: options?.retryCodes || ["501", "502", "503", "504"],
|
|
86
86
|
};
|
|
87
87
|
|
|
88
88
|
const requestRes = client._createRequest(context, {
|
|
@@ -75,14 +75,14 @@ export async function publicGetApps(
|
|
|
75
75
|
strategy: "backoff",
|
|
76
76
|
backoff: {
|
|
77
77
|
initialInterval: 500,
|
|
78
|
-
maxInterval:
|
|
78
|
+
maxInterval: 5000,
|
|
79
79
|
exponent: 1.5,
|
|
80
|
-
maxElapsedTime:
|
|
80
|
+
maxElapsedTime: 60000,
|
|
81
81
|
},
|
|
82
82
|
retryConnectionErrors: true,
|
|
83
83
|
}
|
|
84
84
|
|| { strategy: "none" },
|
|
85
|
-
retryCodes: options?.retryCodes || ["
|
|
85
|
+
retryCodes: options?.retryCodes || ["501", "502", "503", "504"],
|
|
86
86
|
};
|
|
87
87
|
|
|
88
88
|
const requestRes = client._createRequest(context, {
|
|
@@ -75,14 +75,14 @@ export async function publicGetBadges(
|
|
|
75
75
|
strategy: "backoff",
|
|
76
76
|
backoff: {
|
|
77
77
|
initialInterval: 500,
|
|
78
|
-
maxInterval:
|
|
78
|
+
maxInterval: 5000,
|
|
79
79
|
exponent: 1.5,
|
|
80
|
-
maxElapsedTime:
|
|
80
|
+
maxElapsedTime: 60000,
|
|
81
81
|
},
|
|
82
82
|
retryConnectionErrors: true,
|
|
83
83
|
}
|
|
84
84
|
|| { strategy: "none" },
|
|
85
|
-
retryCodes: options?.retryCodes || ["
|
|
85
|
+
retryCodes: options?.retryCodes || ["501", "502", "503", "504"],
|
|
86
86
|
};
|
|
87
87
|
|
|
88
88
|
const requestRes = client._createRequest(context, {
|
|
@@ -75,14 +75,14 @@ export async function publicGetDataPoints(
|
|
|
75
75
|
strategy: "backoff",
|
|
76
76
|
backoff: {
|
|
77
77
|
initialInterval: 500,
|
|
78
|
-
maxInterval:
|
|
78
|
+
maxInterval: 5000,
|
|
79
79
|
exponent: 1.5,
|
|
80
|
-
maxElapsedTime:
|
|
80
|
+
maxElapsedTime: 60000,
|
|
81
81
|
},
|
|
82
82
|
retryConnectionErrors: true,
|
|
83
83
|
}
|
|
84
84
|
|| { strategy: "none" },
|
|
85
|
-
retryCodes: options?.retryCodes || ["
|
|
85
|
+
retryCodes: options?.retryCodes || ["501", "502", "503", "504"],
|
|
86
86
|
};
|
|
87
87
|
|
|
88
88
|
const requestRes = client._createRequest(context, {
|
|
@@ -75,14 +75,14 @@ export async function publicGetFriends(
|
|
|
75
75
|
strategy: "backoff",
|
|
76
76
|
backoff: {
|
|
77
77
|
initialInterval: 500,
|
|
78
|
-
maxInterval:
|
|
78
|
+
maxInterval: 5000,
|
|
79
79
|
exponent: 1.5,
|
|
80
|
-
maxElapsedTime:
|
|
80
|
+
maxElapsedTime: 60000,
|
|
81
81
|
},
|
|
82
82
|
retryConnectionErrors: true,
|
|
83
83
|
}
|
|
84
84
|
|| { strategy: "none" },
|
|
85
|
-
retryCodes: options?.retryCodes || ["
|
|
85
|
+
retryCodes: options?.retryCodes || ["501", "502", "503", "504"],
|
|
86
86
|
};
|
|
87
87
|
|
|
88
88
|
const requestRes = client._createRequest(context, {
|
|
@@ -75,14 +75,14 @@ export async function publicGetInfo(
|
|
|
75
75
|
strategy: "backoff",
|
|
76
76
|
backoff: {
|
|
77
77
|
initialInterval: 500,
|
|
78
|
-
maxInterval:
|
|
78
|
+
maxInterval: 5000,
|
|
79
79
|
exponent: 1.5,
|
|
80
|
-
maxElapsedTime:
|
|
80
|
+
maxElapsedTime: 60000,
|
|
81
81
|
},
|
|
82
82
|
retryConnectionErrors: true,
|
|
83
83
|
}
|
|
84
84
|
|| { strategy: "none" },
|
|
85
|
-
retryCodes: options?.retryCodes || ["
|
|
85
|
+
retryCodes: options?.retryCodes || ["501", "502", "503", "504"],
|
|
86
86
|
};
|
|
87
87
|
|
|
88
88
|
const requestRes = client._createRequest(context, {
|
|
@@ -75,14 +75,14 @@ export async function publicGetLeaderboardHistory(
|
|
|
75
75
|
strategy: "backoff",
|
|
76
76
|
backoff: {
|
|
77
77
|
initialInterval: 500,
|
|
78
|
-
maxInterval:
|
|
78
|
+
maxInterval: 5000,
|
|
79
79
|
exponent: 1.5,
|
|
80
|
-
maxElapsedTime:
|
|
80
|
+
maxElapsedTime: 60000,
|
|
81
81
|
},
|
|
82
82
|
retryConnectionErrors: true,
|
|
83
83
|
}
|
|
84
84
|
|| { strategy: "none" },
|
|
85
|
-
retryCodes: options?.retryCodes || ["
|
|
85
|
+
retryCodes: options?.retryCodes || ["501", "502", "503", "504"],
|
|
86
86
|
};
|
|
87
87
|
|
|
88
88
|
const requestRes = client._createRequest(context, {
|
|
@@ -91,14 +91,14 @@ export async function sessionCreate(
|
|
|
91
91
|
strategy: "backoff",
|
|
92
92
|
backoff: {
|
|
93
93
|
initialInterval: 500,
|
|
94
|
-
maxInterval:
|
|
94
|
+
maxInterval: 5000,
|
|
95
95
|
exponent: 1.5,
|
|
96
|
-
maxElapsedTime:
|
|
96
|
+
maxElapsedTime: 60000,
|
|
97
97
|
},
|
|
98
98
|
retryConnectionErrors: true,
|
|
99
99
|
}
|
|
100
100
|
|| { strategy: "none" },
|
|
101
|
-
retryCodes: options?.retryCodes || ["
|
|
101
|
+
retryCodes: options?.retryCodes || ["501", "502", "503", "504"],
|
|
102
102
|
};
|
|
103
103
|
|
|
104
104
|
const requestRes = client._createRequest(context, {
|
|
@@ -84,14 +84,14 @@ export async function sessionLogin(
|
|
|
84
84
|
strategy: "backoff",
|
|
85
85
|
backoff: {
|
|
86
86
|
initialInterval: 500,
|
|
87
|
-
maxInterval:
|
|
87
|
+
maxInterval: 5000,
|
|
88
88
|
exponent: 1.5,
|
|
89
|
-
maxElapsedTime:
|
|
89
|
+
maxElapsedTime: 60000,
|
|
90
90
|
},
|
|
91
91
|
retryConnectionErrors: true,
|
|
92
92
|
}
|
|
93
93
|
|| { strategy: "none" },
|
|
94
|
-
retryCodes: options?.retryCodes || ["
|
|
94
|
+
retryCodes: options?.retryCodes || ["501", "502", "503", "504"],
|
|
95
95
|
};
|
|
96
96
|
|
|
97
97
|
const requestRes = client._createRequest(context, {
|
|
@@ -76,14 +76,14 @@ export async function sessionsDelete(
|
|
|
76
76
|
strategy: "backoff",
|
|
77
77
|
backoff: {
|
|
78
78
|
initialInterval: 500,
|
|
79
|
-
maxInterval:
|
|
79
|
+
maxInterval: 5000,
|
|
80
80
|
exponent: 1.5,
|
|
81
|
-
maxElapsedTime:
|
|
81
|
+
maxElapsedTime: 60000,
|
|
82
82
|
},
|
|
83
83
|
retryConnectionErrors: true,
|
|
84
84
|
}
|
|
85
85
|
|| { strategy: "none" },
|
|
86
|
-
retryCodes: options?.retryCodes || ["
|
|
86
|
+
retryCodes: options?.retryCodes || ["501", "502", "503", "504"],
|
|
87
87
|
};
|
|
88
88
|
|
|
89
89
|
const requestRes = client._createRequest(context, {
|
package/src/funcs/sessionsGet.ts
CHANGED
|
@@ -59,14 +59,14 @@ export async function sessionsGet(
|
|
|
59
59
|
strategy: "backoff",
|
|
60
60
|
backoff: {
|
|
61
61
|
initialInterval: 500,
|
|
62
|
-
maxInterval:
|
|
62
|
+
maxInterval: 5000,
|
|
63
63
|
exponent: 1.5,
|
|
64
|
-
maxElapsedTime:
|
|
64
|
+
maxElapsedTime: 60000,
|
|
65
65
|
},
|
|
66
66
|
retryConnectionErrors: true,
|
|
67
67
|
}
|
|
68
68
|
|| { strategy: "none" },
|
|
69
|
-
retryCodes: options?.retryCodes || ["
|
|
69
|
+
retryCodes: options?.retryCodes || ["501", "502", "503", "504"],
|
|
70
70
|
};
|
|
71
71
|
|
|
72
72
|
const requestRes = client._createRequest(context, {
|
package/src/funcs/settingsGet.ts
CHANGED
|
@@ -59,14 +59,14 @@ export async function settingsGet(
|
|
|
59
59
|
strategy: "backoff",
|
|
60
60
|
backoff: {
|
|
61
61
|
initialInterval: 500,
|
|
62
|
-
maxInterval:
|
|
62
|
+
maxInterval: 5000,
|
|
63
63
|
exponent: 1.5,
|
|
64
|
-
maxElapsedTime:
|
|
64
|
+
maxElapsedTime: 60000,
|
|
65
65
|
},
|
|
66
66
|
retryConnectionErrors: true,
|
|
67
67
|
}
|
|
68
68
|
|| { strategy: "none" },
|
|
69
|
-
retryCodes: options?.retryCodes || ["
|
|
69
|
+
retryCodes: options?.retryCodes || ["501", "502", "503", "504"],
|
|
70
70
|
};
|
|
71
71
|
|
|
72
72
|
const requestRes = client._createRequest(context, {
|
|
@@ -80,14 +80,14 @@ export async function settingsSendEmailVerification(
|
|
|
80
80
|
strategy: "backoff",
|
|
81
81
|
backoff: {
|
|
82
82
|
initialInterval: 500,
|
|
83
|
-
maxInterval:
|
|
83
|
+
maxInterval: 5000,
|
|
84
84
|
exponent: 1.5,
|
|
85
|
-
maxElapsedTime:
|
|
85
|
+
maxElapsedTime: 60000,
|
|
86
86
|
},
|
|
87
87
|
retryConnectionErrors: true,
|
|
88
88
|
}
|
|
89
89
|
|| { strategy: "none" },
|
|
90
|
-
retryCodes: options?.retryCodes || ["
|
|
90
|
+
retryCodes: options?.retryCodes || ["501", "502", "503", "504"],
|
|
91
91
|
};
|
|
92
92
|
|
|
93
93
|
const requestRes = client._createRequest(context, {
|
|
@@ -82,14 +82,14 @@ export async function settingsUpdate(
|
|
|
82
82
|
strategy: "backoff",
|
|
83
83
|
backoff: {
|
|
84
84
|
initialInterval: 500,
|
|
85
|
-
maxInterval:
|
|
85
|
+
maxInterval: 5000,
|
|
86
86
|
exponent: 1.5,
|
|
87
|
-
maxElapsedTime:
|
|
87
|
+
maxElapsedTime: 60000,
|
|
88
88
|
},
|
|
89
89
|
retryConnectionErrors: true,
|
|
90
90
|
}
|
|
91
91
|
|| { strategy: "none" },
|
|
92
|
-
retryCodes: options?.retryCodes || ["
|
|
92
|
+
retryCodes: options?.retryCodes || ["501", "502", "503", "504"],
|
|
93
93
|
};
|
|
94
94
|
|
|
95
95
|
const requestRes = client._createRequest(context, {
|
|
@@ -75,14 +75,14 @@ export async function settingsVerifyEmail(
|
|
|
75
75
|
strategy: "backoff",
|
|
76
76
|
backoff: {
|
|
77
77
|
initialInterval: 500,
|
|
78
|
-
maxInterval:
|
|
78
|
+
maxInterval: 5000,
|
|
79
79
|
exponent: 1.5,
|
|
80
|
-
maxElapsedTime:
|
|
80
|
+
maxElapsedTime: 60000,
|
|
81
81
|
},
|
|
82
82
|
retryConnectionErrors: true,
|
|
83
83
|
}
|
|
84
84
|
|| { strategy: "none" },
|
|
85
|
-
retryCodes: options?.retryCodes || ["
|
|
85
|
+
retryCodes: options?.retryCodes || ["501", "502", "503", "504"],
|
|
86
86
|
};
|
|
87
87
|
|
|
88
88
|
const requestRes = client._createRequest(context, {
|
package/src/hooks/hooks.ts
CHANGED
|
@@ -12,6 +12,7 @@ import {
|
|
|
12
12
|
BeforeCreateRequestHook,
|
|
13
13
|
BeforeRequestContext,
|
|
14
14
|
BeforeRequestHook,
|
|
15
|
+
Hook,
|
|
15
16
|
Hooks,
|
|
16
17
|
SDKInitHook,
|
|
17
18
|
SDKInitOptions,
|
|
@@ -25,6 +26,25 @@ export class SDKHooks implements Hooks {
|
|
|
25
26
|
afterErrorHooks: AfterErrorHook[] = [];
|
|
26
27
|
|
|
27
28
|
constructor() {
|
|
29
|
+
const presetHooks: Array<Hook> = [];
|
|
30
|
+
|
|
31
|
+
for (const hook of presetHooks) {
|
|
32
|
+
if ("sdkInit" in hook) {
|
|
33
|
+
this.registerSDKInitHook(hook);
|
|
34
|
+
}
|
|
35
|
+
if ("beforeCreateRequest" in hook) {
|
|
36
|
+
this.registerBeforeCreateRequestHook(hook);
|
|
37
|
+
}
|
|
38
|
+
if ("beforeRequest" in hook) {
|
|
39
|
+
this.registerBeforeRequestHook(hook);
|
|
40
|
+
}
|
|
41
|
+
if ("afterSuccess" in hook) {
|
|
42
|
+
this.registerAfterSuccessHook(hook);
|
|
43
|
+
}
|
|
44
|
+
if ("afterError" in hook) {
|
|
45
|
+
this.registerAfterErrorHook(hook);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
28
48
|
}
|
|
29
49
|
|
|
30
50
|
registerSDKInitHook(hook: SDKInitHook) {
|
package/src/hooks/types.ts
CHANGED
|
@@ -100,3 +100,10 @@ export interface Hooks {
|
|
|
100
100
|
/** Registers a hook to be used by the SDK for the after error event. */
|
|
101
101
|
registerAfterErrorHook(hook: AfterErrorHook): void;
|
|
102
102
|
}
|
|
103
|
+
|
|
104
|
+
export type Hook =
|
|
105
|
+
| SDKInitHook
|
|
106
|
+
| BeforeCreateRequestHook
|
|
107
|
+
| BeforeRequestHook
|
|
108
|
+
| AfterSuccessHook
|
|
109
|
+
| AfterErrorHook;
|
package/src/lib/config.ts
CHANGED
|
@@ -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.14.1",
|
|
59
|
+
genVersion: "2.477.0",
|
|
60
60
|
userAgent:
|
|
61
|
-
"speakeasy-sdk/typescript 0.
|
|
61
|
+
"speakeasy-sdk/typescript 0.14.1 2.477.0 1.0.0 @steamsets/client-ts",
|
|
62
62
|
} as const;
|