@steamsets/client-ts 0.12.8 → 0.13.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/funcs/accountDeleteImages.d.ts.map +1 -1
- package/funcs/accountDeleteImages.js +17 -14
- package/funcs/accountDeleteImages.js.map +1 -1
- package/funcs/accountGetApps.d.ts.map +1 -1
- package/funcs/accountGetApps.js +17 -14
- package/funcs/accountGetApps.js.map +1 -1
- package/funcs/accountGetBadges.d.ts.map +1 -1
- package/funcs/accountGetBadges.js +17 -14
- package/funcs/accountGetBadges.js.map +1 -1
- package/funcs/accountGetDataPoints.d.ts.map +1 -1
- package/funcs/accountGetDataPoints.js +17 -14
- package/funcs/accountGetDataPoints.js.map +1 -1
- package/funcs/accountGetFriends.d.ts.map +1 -1
- package/funcs/accountGetFriends.js +17 -14
- package/funcs/accountGetFriends.js.map +1 -1
- package/funcs/accountGetInfo.d.ts.map +1 -1
- package/funcs/accountGetInfo.js +17 -14
- package/funcs/accountGetInfo.js.map +1 -1
- package/funcs/accountGetLeaderboardHistory.d.ts.map +1 -1
- package/funcs/accountGetLeaderboardHistory.js +17 -14
- package/funcs/accountGetLeaderboardHistory.js.map +1 -1
- package/funcs/accountGetStaff.d.ts.map +1 -1
- package/funcs/accountGetStaff.js +17 -14
- package/funcs/accountGetStaff.js.map +1 -1
- package/funcs/accountSendEmailVerification.d.ts.map +1 -1
- package/funcs/accountSendEmailVerification.js +17 -14
- package/funcs/accountSendEmailVerification.js.map +1 -1
- package/funcs/accountUpdateImage.d.ts.map +1 -1
- package/funcs/accountUpdateImage.js +17 -14
- package/funcs/accountUpdateImage.js.map +1 -1
- package/funcs/accountUploadImages.d.ts.map +1 -1
- package/funcs/accountUploadImages.js +17 -14
- package/funcs/accountUploadImages.js.map +1 -1
- package/funcs/accountVerifyEmail.d.ts.map +1 -1
- package/funcs/accountVerifyEmail.js +17 -14
- package/funcs/accountVerifyEmail.js.map +1 -1
- package/funcs/accountsQueue.d.ts.map +1 -1
- package/funcs/accountsQueue.js +17 -14
- package/funcs/accountsQueue.js.map +1 -1
- package/funcs/adminAdminV1UpdateResources.d.ts.map +1 -1
- package/funcs/adminAdminV1UpdateResources.js +17 -14
- package/funcs/adminAdminV1UpdateResources.js.map +1 -1
- package/funcs/adminAdminV1UpdateRoles.d.ts.map +1 -1
- package/funcs/adminAdminV1UpdateRoles.js +17 -14
- package/funcs/adminAdminV1UpdateRoles.js.map +1 -1
- package/funcs/adminGetAccount.d.ts.map +1 -1
- package/funcs/adminGetAccount.js +17 -14
- package/funcs/adminGetAccount.js.map +1 -1
- package/funcs/badgeGetTags.d.ts.map +1 -1
- package/funcs/badgeGetTags.js +17 -14
- package/funcs/badgeGetTags.js.map +1 -1
- package/funcs/badgesTag.d.ts.map +1 -1
- package/funcs/badgesTag.js +17 -14
- package/funcs/badgesTag.js.map +1 -1
- package/funcs/connectionDelete.d.ts.map +1 -1
- package/funcs/connectionDelete.js +17 -14
- package/funcs/connectionDelete.js.map +1 -1
- package/funcs/connectionUpdate.d.ts.map +1 -1
- package/funcs/connectionUpdate.js +17 -14
- package/funcs/connectionUpdate.js.map +1 -1
- package/funcs/connectionVerify.d.ts.map +1 -1
- package/funcs/connectionVerify.js +17 -14
- package/funcs/connectionVerify.js.map +1 -1
- package/funcs/connectionsConnect.d.ts.map +1 -1
- package/funcs/connectionsConnect.js +17 -14
- package/funcs/connectionsConnect.js.map +1 -1
- package/funcs/dataGetApps.d.ts.map +1 -1
- package/funcs/dataGetApps.js +17 -14
- package/funcs/dataGetApps.js.map +1 -1
- package/funcs/dataGetBadges.d.ts.map +1 -1
- package/funcs/dataGetBadges.js +17 -14
- package/funcs/dataGetBadges.js.map +1 -1
- package/funcs/dataGetDataPoints.d.ts.map +1 -1
- package/funcs/dataGetDataPoints.js +17 -14
- package/funcs/dataGetDataPoints.js.map +1 -1
- package/funcs/dataGetFriends.d.ts.map +1 -1
- package/funcs/dataGetFriends.js +17 -14
- package/funcs/dataGetFriends.js.map +1 -1
- package/funcs/dataGetInfo.d.ts.map +1 -1
- package/funcs/dataGetInfo.js +17 -14
- package/funcs/dataGetInfo.js.map +1 -1
- package/funcs/dataGetLeaderboardHistory.d.ts.map +1 -1
- package/funcs/dataGetLeaderboardHistory.js +17 -14
- package/funcs/dataGetLeaderboardHistory.js.map +1 -1
- package/funcs/dataGetStaff.d.ts.map +1 -1
- package/funcs/dataGetStaff.js +17 -14
- package/funcs/dataGetStaff.js.map +1 -1
- package/funcs/developerCreateDeveloperApp.d.ts.map +1 -1
- package/funcs/developerCreateDeveloperApp.js +17 -14
- package/funcs/developerCreateDeveloperApp.js.map +1 -1
- package/funcs/developerDeleteDeveloperApp.d.ts.map +1 -1
- package/funcs/developerDeleteDeveloperApp.js +17 -14
- package/funcs/developerDeleteDeveloperApp.js.map +1 -1
- package/funcs/developerUpdateApp.d.ts.map +1 -1
- package/funcs/developerUpdateApp.js +17 -14
- package/funcs/developerUpdateApp.js.map +1 -1
- package/funcs/leaderboardGetAccount.d.ts.map +1 -1
- package/funcs/leaderboardGetAccount.js +17 -14
- package/funcs/leaderboardGetAccount.js.map +1 -1
- package/funcs/leaderboardGetBadges.d.ts.map +1 -1
- package/funcs/leaderboardGetBadges.js +17 -14
- package/funcs/leaderboardGetBadges.js.map +1 -1
- package/funcs/leaderboardGetGroup.d.ts.map +1 -1
- package/funcs/leaderboardGetGroup.js +17 -14
- package/funcs/leaderboardGetGroup.js.map +1 -1
- package/funcs/livenessCheck.d.ts.map +1 -1
- package/funcs/livenessCheck.js +17 -14
- package/funcs/livenessCheck.js.map +1 -1
- package/funcs/locationsGet.d.ts.map +1 -1
- package/funcs/locationsGet.js +17 -14
- package/funcs/locationsGet.js.map +1 -1
- package/funcs/metaAccountV1GetEmbed.d.ts.map +1 -1
- package/funcs/metaAccountV1GetEmbed.js +17 -14
- package/funcs/metaAccountV1GetEmbed.js.map +1 -1
- package/funcs/metaAccountV1GetMeta.d.ts.map +1 -1
- package/funcs/metaAccountV1GetMeta.js +17 -14
- package/funcs/metaAccountV1GetMeta.js.map +1 -1
- package/funcs/publicGetApps.d.ts.map +1 -1
- package/funcs/publicGetApps.js +17 -14
- package/funcs/publicGetApps.js.map +1 -1
- package/funcs/publicGetBadges.d.ts.map +1 -1
- package/funcs/publicGetBadges.js +17 -14
- package/funcs/publicGetBadges.js.map +1 -1
- package/funcs/publicGetDataPoints.d.ts.map +1 -1
- package/funcs/publicGetDataPoints.js +17 -14
- package/funcs/publicGetDataPoints.js.map +1 -1
- package/funcs/publicGetFriends.d.ts.map +1 -1
- package/funcs/publicGetFriends.js +17 -14
- package/funcs/publicGetFriends.js.map +1 -1
- package/funcs/publicGetInfo.d.ts.map +1 -1
- package/funcs/publicGetInfo.js +17 -14
- package/funcs/publicGetInfo.js.map +1 -1
- package/funcs/publicGetLeaderboardHistory.d.ts.map +1 -1
- package/funcs/publicGetLeaderboardHistory.js +17 -14
- package/funcs/publicGetLeaderboardHistory.js.map +1 -1
- package/funcs/sessionCreate.d.ts.map +1 -1
- package/funcs/sessionCreate.js +17 -14
- package/funcs/sessionCreate.js.map +1 -1
- package/funcs/sessionLogin.d.ts.map +1 -1
- package/funcs/sessionLogin.js +17 -14
- package/funcs/sessionLogin.js.map +1 -1
- package/funcs/sessionsDelete.d.ts.map +1 -1
- package/funcs/sessionsDelete.js +17 -14
- package/funcs/sessionsDelete.js.map +1 -1
- package/funcs/sessionsGet.d.ts.map +1 -1
- package/funcs/sessionsGet.js +17 -14
- package/funcs/sessionsGet.js.map +1 -1
- package/funcs/settingsDeleteImages.d.ts.map +1 -1
- package/funcs/settingsDeleteImages.js +17 -14
- package/funcs/settingsDeleteImages.js.map +1 -1
- package/funcs/settingsGet.d.ts.map +1 -1
- package/funcs/settingsGet.js +17 -14
- package/funcs/settingsGet.js.map +1 -1
- package/funcs/settingsSendEmailVerification.d.ts.map +1 -1
- package/funcs/settingsSendEmailVerification.js +17 -14
- package/funcs/settingsSendEmailVerification.js.map +1 -1
- package/funcs/settingsUpdate.d.ts.map +1 -1
- package/funcs/settingsUpdate.js +17 -14
- package/funcs/settingsUpdate.js.map +1 -1
- package/funcs/settingsUpdateImage.d.ts.map +1 -1
- package/funcs/settingsUpdateImage.js +17 -14
- package/funcs/settingsUpdateImage.js.map +1 -1
- package/funcs/settingsUploadImages.d.ts.map +1 -1
- package/funcs/settingsUploadImages.js +17 -14
- package/funcs/settingsUploadImages.js.map +1 -1
- package/funcs/settingsVerifyEmail.d.ts.map +1 -1
- package/funcs/settingsVerifyEmail.js +17 -14
- package/funcs/settingsVerifyEmail.js.map +1 -1
- package/hooks/types.d.ts +2 -0
- package/hooks/types.d.ts.map +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/retries.d.ts +20 -0
- package/lib/retries.d.ts.map +1 -1
- package/lib/retries.js +51 -26
- package/lib/retries.js.map +1 -1
- package/lib/sdks.d.ts +2 -2
- package/lib/sdks.d.ts.map +1 -1
- package/lib/sdks.js +14 -12
- package/lib/sdks.js.map +1 -1
- package/models/components/chosenrole.d.ts +104 -0
- package/models/components/chosenrole.d.ts.map +1 -0
- package/models/components/chosenrole.js +87 -0
- package/models/components/chosenrole.js.map +1 -0
- package/models/components/index.d.ts +1 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +1 -0
- package/models/components/index.js.map +1 -1
- package/models/components/v1getsettingsbody.d.ts +3 -0
- package/models/components/v1getsettingsbody.d.ts.map +1 -1
- package/models/components/v1getsettingsbody.js +3 -0
- package/models/components/v1getsettingsbody.js.map +1 -1
- package/package.json +1 -1
- package/src/funcs/accountDeleteImages.ts +18 -14
- package/src/funcs/accountGetApps.ts +18 -14
- package/src/funcs/accountGetBadges.ts +18 -14
- package/src/funcs/accountGetDataPoints.ts +18 -14
- package/src/funcs/accountGetFriends.ts +18 -14
- package/src/funcs/accountGetInfo.ts +18 -14
- package/src/funcs/accountGetLeaderboardHistory.ts +18 -14
- package/src/funcs/accountGetStaff.ts +18 -14
- package/src/funcs/accountSendEmailVerification.ts +18 -14
- package/src/funcs/accountUpdateImage.ts +18 -14
- package/src/funcs/accountUploadImages.ts +18 -14
- package/src/funcs/accountVerifyEmail.ts +18 -14
- package/src/funcs/accountsQueue.ts +18 -14
- package/src/funcs/adminAdminV1UpdateResources.ts +18 -14
- package/src/funcs/adminAdminV1UpdateRoles.ts +18 -14
- package/src/funcs/adminGetAccount.ts +18 -14
- package/src/funcs/badgeGetTags.ts +18 -14
- package/src/funcs/badgesTag.ts +18 -14
- package/src/funcs/connectionDelete.ts +18 -14
- package/src/funcs/connectionUpdate.ts +18 -14
- package/src/funcs/connectionVerify.ts +18 -14
- package/src/funcs/connectionsConnect.ts +18 -14
- package/src/funcs/dataGetApps.ts +18 -14
- package/src/funcs/dataGetBadges.ts +18 -14
- package/src/funcs/dataGetDataPoints.ts +18 -14
- package/src/funcs/dataGetFriends.ts +18 -14
- package/src/funcs/dataGetInfo.ts +18 -14
- package/src/funcs/dataGetLeaderboardHistory.ts +18 -14
- package/src/funcs/dataGetStaff.ts +18 -14
- package/src/funcs/developerCreateDeveloperApp.ts +18 -14
- package/src/funcs/developerDeleteDeveloperApp.ts +18 -14
- package/src/funcs/developerUpdateApp.ts +18 -14
- package/src/funcs/leaderboardGetAccount.ts +18 -14
- package/src/funcs/leaderboardGetBadges.ts +18 -14
- package/src/funcs/leaderboardGetGroup.ts +18 -14
- package/src/funcs/livenessCheck.ts +18 -14
- package/src/funcs/locationsGet.ts +18 -14
- package/src/funcs/metaAccountV1GetEmbed.ts +18 -14
- package/src/funcs/metaAccountV1GetMeta.ts +18 -14
- package/src/funcs/publicGetApps.ts +18 -14
- package/src/funcs/publicGetBadges.ts +18 -14
- package/src/funcs/publicGetDataPoints.ts +18 -14
- package/src/funcs/publicGetFriends.ts +18 -14
- package/src/funcs/publicGetInfo.ts +18 -14
- package/src/funcs/publicGetLeaderboardHistory.ts +18 -14
- package/src/funcs/sessionCreate.ts +18 -14
- package/src/funcs/sessionLogin.ts +18 -14
- package/src/funcs/sessionsDelete.ts +18 -14
- package/src/funcs/sessionsGet.ts +18 -14
- package/src/funcs/settingsDeleteImages.ts +18 -14
- package/src/funcs/settingsGet.ts +18 -14
- package/src/funcs/settingsSendEmailVerification.ts +18 -14
- package/src/funcs/settingsUpdate.ts +18 -14
- package/src/funcs/settingsUpdateImage.ts +18 -14
- package/src/funcs/settingsUploadImages.ts +18 -14
- package/src/funcs/settingsVerifyEmail.ts +18 -14
- package/src/hooks/types.ts +2 -0
- package/src/lib/config.ts +3 -3
- package/src/lib/retries.ts +63 -31
- package/src/lib/sdks.ts +19 -15
- package/src/models/components/chosenrole.ts +96 -0
- package/src/models/components/index.ts +1 -0
- package/src/models/components/v1getsettingsbody.ts +10 -0
|
@@ -60,12 +60,27 @@ export async function metaAccountV1GetMeta(
|
|
|
60
60
|
|
|
61
61
|
const secConfig = await extractSecurity(client._options.token);
|
|
62
62
|
const securityInput = secConfig == null ? {} : { token: secConfig };
|
|
63
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
64
|
+
|
|
63
65
|
const context = {
|
|
64
66
|
operationID: "account.v1.getMeta",
|
|
65
67
|
oAuth2Scopes: [],
|
|
66
68
|
securitySource: client._options.token,
|
|
69
|
+
retryConfig: options?.retries
|
|
70
|
+
|| client._options.retryConfig
|
|
71
|
+
|| {
|
|
72
|
+
strategy: "backoff",
|
|
73
|
+
backoff: {
|
|
74
|
+
initialInterval: 500,
|
|
75
|
+
maxInterval: 60000,
|
|
76
|
+
exponent: 1.5,
|
|
77
|
+
maxElapsedTime: 3600000,
|
|
78
|
+
},
|
|
79
|
+
retryConnectionErrors: true,
|
|
80
|
+
}
|
|
81
|
+
|| { strategy: "none" },
|
|
82
|
+
retryCodes: options?.retryCodes || ["500", "501", "502", "503", "504"],
|
|
67
83
|
};
|
|
68
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
69
84
|
|
|
70
85
|
const requestRes = client._createRequest(context, {
|
|
71
86
|
security: requestSecurity,
|
|
@@ -84,19 +99,8 @@ export async function metaAccountV1GetMeta(
|
|
|
84
99
|
const doResult = await client._do(req, {
|
|
85
100
|
context,
|
|
86
101
|
errorCodes: ["403", "404", "422", "429", "4XX", "500", "5XX"],
|
|
87
|
-
retryConfig:
|
|
88
|
-
|
|
89
|
-
|| {
|
|
90
|
-
strategy: "backoff",
|
|
91
|
-
backoff: {
|
|
92
|
-
initialInterval: 500,
|
|
93
|
-
maxInterval: 60000,
|
|
94
|
-
exponent: 1.5,
|
|
95
|
-
maxElapsedTime: 3600000,
|
|
96
|
-
},
|
|
97
|
-
retryConnectionErrors: true,
|
|
98
|
-
},
|
|
99
|
-
retryCodes: options?.retryCodes || ["500", "501", "502", "503", "504"],
|
|
102
|
+
retryConfig: context.retryConfig,
|
|
103
|
+
retryCodes: context.retryCodes,
|
|
100
104
|
});
|
|
101
105
|
if (!doResult.ok) {
|
|
102
106
|
return doResult;
|
|
@@ -60,12 +60,27 @@ export async function publicGetApps(
|
|
|
60
60
|
|
|
61
61
|
const secConfig = await extractSecurity(client._options.token);
|
|
62
62
|
const securityInput = secConfig == null ? {} : { token: secConfig };
|
|
63
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
64
|
+
|
|
63
65
|
const context = {
|
|
64
66
|
operationID: "account.v1.getApps",
|
|
65
67
|
oAuth2Scopes: [],
|
|
66
68
|
securitySource: client._options.token,
|
|
69
|
+
retryConfig: options?.retries
|
|
70
|
+
|| client._options.retryConfig
|
|
71
|
+
|| {
|
|
72
|
+
strategy: "backoff",
|
|
73
|
+
backoff: {
|
|
74
|
+
initialInterval: 500,
|
|
75
|
+
maxInterval: 60000,
|
|
76
|
+
exponent: 1.5,
|
|
77
|
+
maxElapsedTime: 3600000,
|
|
78
|
+
},
|
|
79
|
+
retryConnectionErrors: true,
|
|
80
|
+
}
|
|
81
|
+
|| { strategy: "none" },
|
|
82
|
+
retryCodes: options?.retryCodes || ["500", "501", "502", "503", "504"],
|
|
67
83
|
};
|
|
68
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
69
84
|
|
|
70
85
|
const requestRes = client._createRequest(context, {
|
|
71
86
|
security: requestSecurity,
|
|
@@ -84,19 +99,8 @@ export async function publicGetApps(
|
|
|
84
99
|
const doResult = await client._do(req, {
|
|
85
100
|
context,
|
|
86
101
|
errorCodes: ["400", "403", "404", "422", "4XX", "500", "5XX"],
|
|
87
|
-
retryConfig:
|
|
88
|
-
|
|
89
|
-
|| {
|
|
90
|
-
strategy: "backoff",
|
|
91
|
-
backoff: {
|
|
92
|
-
initialInterval: 500,
|
|
93
|
-
maxInterval: 60000,
|
|
94
|
-
exponent: 1.5,
|
|
95
|
-
maxElapsedTime: 3600000,
|
|
96
|
-
},
|
|
97
|
-
retryConnectionErrors: true,
|
|
98
|
-
},
|
|
99
|
-
retryCodes: options?.retryCodes || ["500", "501", "502", "503", "504"],
|
|
102
|
+
retryConfig: context.retryConfig,
|
|
103
|
+
retryCodes: context.retryCodes,
|
|
100
104
|
});
|
|
101
105
|
if (!doResult.ok) {
|
|
102
106
|
return doResult;
|
|
@@ -60,12 +60,27 @@ export async function publicGetBadges(
|
|
|
60
60
|
|
|
61
61
|
const secConfig = await extractSecurity(client._options.token);
|
|
62
62
|
const securityInput = secConfig == null ? {} : { token: secConfig };
|
|
63
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
64
|
+
|
|
63
65
|
const context = {
|
|
64
66
|
operationID: "account.v1.getBadges",
|
|
65
67
|
oAuth2Scopes: [],
|
|
66
68
|
securitySource: client._options.token,
|
|
69
|
+
retryConfig: options?.retries
|
|
70
|
+
|| client._options.retryConfig
|
|
71
|
+
|| {
|
|
72
|
+
strategy: "backoff",
|
|
73
|
+
backoff: {
|
|
74
|
+
initialInterval: 500,
|
|
75
|
+
maxInterval: 60000,
|
|
76
|
+
exponent: 1.5,
|
|
77
|
+
maxElapsedTime: 3600000,
|
|
78
|
+
},
|
|
79
|
+
retryConnectionErrors: true,
|
|
80
|
+
}
|
|
81
|
+
|| { strategy: "none" },
|
|
82
|
+
retryCodes: options?.retryCodes || ["500", "501", "502", "503", "504"],
|
|
67
83
|
};
|
|
68
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
69
84
|
|
|
70
85
|
const requestRes = client._createRequest(context, {
|
|
71
86
|
security: requestSecurity,
|
|
@@ -84,19 +99,8 @@ export async function publicGetBadges(
|
|
|
84
99
|
const doResult = await client._do(req, {
|
|
85
100
|
context,
|
|
86
101
|
errorCodes: ["400", "403", "404", "422", "4XX", "500", "5XX"],
|
|
87
|
-
retryConfig:
|
|
88
|
-
|
|
89
|
-
|| {
|
|
90
|
-
strategy: "backoff",
|
|
91
|
-
backoff: {
|
|
92
|
-
initialInterval: 500,
|
|
93
|
-
maxInterval: 60000,
|
|
94
|
-
exponent: 1.5,
|
|
95
|
-
maxElapsedTime: 3600000,
|
|
96
|
-
},
|
|
97
|
-
retryConnectionErrors: true,
|
|
98
|
-
},
|
|
99
|
-
retryCodes: options?.retryCodes || ["500", "501", "502", "503", "504"],
|
|
102
|
+
retryConfig: context.retryConfig,
|
|
103
|
+
retryCodes: context.retryCodes,
|
|
100
104
|
});
|
|
101
105
|
if (!doResult.ok) {
|
|
102
106
|
return doResult;
|
|
@@ -60,12 +60,27 @@ export async function publicGetDataPoints(
|
|
|
60
60
|
|
|
61
61
|
const secConfig = await extractSecurity(client._options.token);
|
|
62
62
|
const securityInput = secConfig == null ? {} : { token: secConfig };
|
|
63
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
64
|
+
|
|
63
65
|
const context = {
|
|
64
66
|
operationID: "account.v1.getDataPoints",
|
|
65
67
|
oAuth2Scopes: [],
|
|
66
68
|
securitySource: client._options.token,
|
|
69
|
+
retryConfig: options?.retries
|
|
70
|
+
|| client._options.retryConfig
|
|
71
|
+
|| {
|
|
72
|
+
strategy: "backoff",
|
|
73
|
+
backoff: {
|
|
74
|
+
initialInterval: 500,
|
|
75
|
+
maxInterval: 60000,
|
|
76
|
+
exponent: 1.5,
|
|
77
|
+
maxElapsedTime: 3600000,
|
|
78
|
+
},
|
|
79
|
+
retryConnectionErrors: true,
|
|
80
|
+
}
|
|
81
|
+
|| { strategy: "none" },
|
|
82
|
+
retryCodes: options?.retryCodes || ["500", "501", "502", "503", "504"],
|
|
67
83
|
};
|
|
68
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
69
84
|
|
|
70
85
|
const requestRes = client._createRequest(context, {
|
|
71
86
|
security: requestSecurity,
|
|
@@ -84,19 +99,8 @@ export async function publicGetDataPoints(
|
|
|
84
99
|
const doResult = await client._do(req, {
|
|
85
100
|
context,
|
|
86
101
|
errorCodes: ["400", "403", "404", "422", "4XX", "500", "5XX"],
|
|
87
|
-
retryConfig:
|
|
88
|
-
|
|
89
|
-
|| {
|
|
90
|
-
strategy: "backoff",
|
|
91
|
-
backoff: {
|
|
92
|
-
initialInterval: 500,
|
|
93
|
-
maxInterval: 60000,
|
|
94
|
-
exponent: 1.5,
|
|
95
|
-
maxElapsedTime: 3600000,
|
|
96
|
-
},
|
|
97
|
-
retryConnectionErrors: true,
|
|
98
|
-
},
|
|
99
|
-
retryCodes: options?.retryCodes || ["500", "501", "502", "503", "504"],
|
|
102
|
+
retryConfig: context.retryConfig,
|
|
103
|
+
retryCodes: context.retryCodes,
|
|
100
104
|
});
|
|
101
105
|
if (!doResult.ok) {
|
|
102
106
|
return doResult;
|
|
@@ -60,12 +60,27 @@ export async function publicGetFriends(
|
|
|
60
60
|
|
|
61
61
|
const secConfig = await extractSecurity(client._options.token);
|
|
62
62
|
const securityInput = secConfig == null ? {} : { token: secConfig };
|
|
63
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
64
|
+
|
|
63
65
|
const context = {
|
|
64
66
|
operationID: "account.v1.getFriends",
|
|
65
67
|
oAuth2Scopes: [],
|
|
66
68
|
securitySource: client._options.token,
|
|
69
|
+
retryConfig: options?.retries
|
|
70
|
+
|| client._options.retryConfig
|
|
71
|
+
|| {
|
|
72
|
+
strategy: "backoff",
|
|
73
|
+
backoff: {
|
|
74
|
+
initialInterval: 500,
|
|
75
|
+
maxInterval: 60000,
|
|
76
|
+
exponent: 1.5,
|
|
77
|
+
maxElapsedTime: 3600000,
|
|
78
|
+
},
|
|
79
|
+
retryConnectionErrors: true,
|
|
80
|
+
}
|
|
81
|
+
|| { strategy: "none" },
|
|
82
|
+
retryCodes: options?.retryCodes || ["500", "501", "502", "503", "504"],
|
|
67
83
|
};
|
|
68
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
69
84
|
|
|
70
85
|
const requestRes = client._createRequest(context, {
|
|
71
86
|
security: requestSecurity,
|
|
@@ -84,19 +99,8 @@ export async function publicGetFriends(
|
|
|
84
99
|
const doResult = await client._do(req, {
|
|
85
100
|
context,
|
|
86
101
|
errorCodes: ["400", "403", "404", "422", "4XX", "500", "5XX"],
|
|
87
|
-
retryConfig:
|
|
88
|
-
|
|
89
|
-
|| {
|
|
90
|
-
strategy: "backoff",
|
|
91
|
-
backoff: {
|
|
92
|
-
initialInterval: 500,
|
|
93
|
-
maxInterval: 60000,
|
|
94
|
-
exponent: 1.5,
|
|
95
|
-
maxElapsedTime: 3600000,
|
|
96
|
-
},
|
|
97
|
-
retryConnectionErrors: true,
|
|
98
|
-
},
|
|
99
|
-
retryCodes: options?.retryCodes || ["500", "501", "502", "503", "504"],
|
|
102
|
+
retryConfig: context.retryConfig,
|
|
103
|
+
retryCodes: context.retryCodes,
|
|
100
104
|
});
|
|
101
105
|
if (!doResult.ok) {
|
|
102
106
|
return doResult;
|
|
@@ -60,12 +60,27 @@ export async function publicGetInfo(
|
|
|
60
60
|
|
|
61
61
|
const secConfig = await extractSecurity(client._options.token);
|
|
62
62
|
const securityInput = secConfig == null ? {} : { token: secConfig };
|
|
63
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
64
|
+
|
|
63
65
|
const context = {
|
|
64
66
|
operationID: "account.v1.getInfo",
|
|
65
67
|
oAuth2Scopes: [],
|
|
66
68
|
securitySource: client._options.token,
|
|
69
|
+
retryConfig: options?.retries
|
|
70
|
+
|| client._options.retryConfig
|
|
71
|
+
|| {
|
|
72
|
+
strategy: "backoff",
|
|
73
|
+
backoff: {
|
|
74
|
+
initialInterval: 500,
|
|
75
|
+
maxInterval: 60000,
|
|
76
|
+
exponent: 1.5,
|
|
77
|
+
maxElapsedTime: 3600000,
|
|
78
|
+
},
|
|
79
|
+
retryConnectionErrors: true,
|
|
80
|
+
}
|
|
81
|
+
|| { strategy: "none" },
|
|
82
|
+
retryCodes: options?.retryCodes || ["500", "501", "502", "503", "504"],
|
|
67
83
|
};
|
|
68
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
69
84
|
|
|
70
85
|
const requestRes = client._createRequest(context, {
|
|
71
86
|
security: requestSecurity,
|
|
@@ -84,19 +99,8 @@ export async function publicGetInfo(
|
|
|
84
99
|
const doResult = await client._do(req, {
|
|
85
100
|
context,
|
|
86
101
|
errorCodes: ["403", "404", "422", "429", "4XX", "500", "5XX"],
|
|
87
|
-
retryConfig:
|
|
88
|
-
|
|
89
|
-
|| {
|
|
90
|
-
strategy: "backoff",
|
|
91
|
-
backoff: {
|
|
92
|
-
initialInterval: 500,
|
|
93
|
-
maxInterval: 60000,
|
|
94
|
-
exponent: 1.5,
|
|
95
|
-
maxElapsedTime: 3600000,
|
|
96
|
-
},
|
|
97
|
-
retryConnectionErrors: true,
|
|
98
|
-
},
|
|
99
|
-
retryCodes: options?.retryCodes || ["500", "501", "502", "503", "504"],
|
|
102
|
+
retryConfig: context.retryConfig,
|
|
103
|
+
retryCodes: context.retryCodes,
|
|
100
104
|
});
|
|
101
105
|
if (!doResult.ok) {
|
|
102
106
|
return doResult;
|
|
@@ -60,12 +60,27 @@ export async function publicGetLeaderboardHistory(
|
|
|
60
60
|
|
|
61
61
|
const secConfig = await extractSecurity(client._options.token);
|
|
62
62
|
const securityInput = secConfig == null ? {} : { token: secConfig };
|
|
63
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
64
|
+
|
|
63
65
|
const context = {
|
|
64
66
|
operationID: "account.v1.getLeaderboardHistory",
|
|
65
67
|
oAuth2Scopes: [],
|
|
66
68
|
securitySource: client._options.token,
|
|
69
|
+
retryConfig: options?.retries
|
|
70
|
+
|| client._options.retryConfig
|
|
71
|
+
|| {
|
|
72
|
+
strategy: "backoff",
|
|
73
|
+
backoff: {
|
|
74
|
+
initialInterval: 500,
|
|
75
|
+
maxInterval: 60000,
|
|
76
|
+
exponent: 1.5,
|
|
77
|
+
maxElapsedTime: 3600000,
|
|
78
|
+
},
|
|
79
|
+
retryConnectionErrors: true,
|
|
80
|
+
}
|
|
81
|
+
|| { strategy: "none" },
|
|
82
|
+
retryCodes: options?.retryCodes || ["500", "501", "502", "503", "504"],
|
|
67
83
|
};
|
|
68
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
69
84
|
|
|
70
85
|
const requestRes = client._createRequest(context, {
|
|
71
86
|
security: requestSecurity,
|
|
@@ -84,19 +99,8 @@ export async function publicGetLeaderboardHistory(
|
|
|
84
99
|
const doResult = await client._do(req, {
|
|
85
100
|
context,
|
|
86
101
|
errorCodes: ["400", "403", "404", "422", "4XX", "500", "5XX"],
|
|
87
|
-
retryConfig:
|
|
88
|
-
|
|
89
|
-
|| {
|
|
90
|
-
strategy: "backoff",
|
|
91
|
-
backoff: {
|
|
92
|
-
initialInterval: 500,
|
|
93
|
-
maxInterval: 60000,
|
|
94
|
-
exponent: 1.5,
|
|
95
|
-
maxElapsedTime: 3600000,
|
|
96
|
-
},
|
|
97
|
-
retryConnectionErrors: true,
|
|
98
|
-
},
|
|
99
|
-
retryCodes: options?.retryCodes || ["500", "501", "502", "503", "504"],
|
|
102
|
+
retryConfig: context.retryConfig,
|
|
103
|
+
retryCodes: context.retryCodes,
|
|
100
104
|
});
|
|
101
105
|
if (!doResult.ok) {
|
|
102
106
|
return doResult;
|
|
@@ -76,12 +76,27 @@ export async function sessionCreate(
|
|
|
76
76
|
|
|
77
77
|
const secConfig = await extractSecurity(client._options.token);
|
|
78
78
|
const securityInput = secConfig == null ? {} : { token: secConfig };
|
|
79
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
80
|
+
|
|
79
81
|
const context = {
|
|
80
82
|
operationID: "account.v1.session.create",
|
|
81
83
|
oAuth2Scopes: [],
|
|
82
84
|
securitySource: client._options.token,
|
|
85
|
+
retryConfig: options?.retries
|
|
86
|
+
|| client._options.retryConfig
|
|
87
|
+
|| {
|
|
88
|
+
strategy: "backoff",
|
|
89
|
+
backoff: {
|
|
90
|
+
initialInterval: 500,
|
|
91
|
+
maxInterval: 60000,
|
|
92
|
+
exponent: 1.5,
|
|
93
|
+
maxElapsedTime: 3600000,
|
|
94
|
+
},
|
|
95
|
+
retryConnectionErrors: true,
|
|
96
|
+
}
|
|
97
|
+
|| { strategy: "none" },
|
|
98
|
+
retryCodes: options?.retryCodes || ["500", "501", "502", "503", "504"],
|
|
83
99
|
};
|
|
84
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
85
100
|
|
|
86
101
|
const requestRes = client._createRequest(context, {
|
|
87
102
|
security: requestSecurity,
|
|
@@ -100,19 +115,8 @@ export async function sessionCreate(
|
|
|
100
115
|
const doResult = await client._do(req, {
|
|
101
116
|
context,
|
|
102
117
|
errorCodes: ["422", "4XX", "500", "5XX"],
|
|
103
|
-
retryConfig:
|
|
104
|
-
|
|
105
|
-
|| {
|
|
106
|
-
strategy: "backoff",
|
|
107
|
-
backoff: {
|
|
108
|
-
initialInterval: 500,
|
|
109
|
-
maxInterval: 60000,
|
|
110
|
-
exponent: 1.5,
|
|
111
|
-
maxElapsedTime: 3600000,
|
|
112
|
-
},
|
|
113
|
-
retryConnectionErrors: true,
|
|
114
|
-
},
|
|
115
|
-
retryCodes: options?.retryCodes || ["500", "501", "502", "503", "504"],
|
|
118
|
+
retryConfig: context.retryConfig,
|
|
119
|
+
retryCodes: context.retryCodes,
|
|
116
120
|
});
|
|
117
121
|
if (!doResult.ok) {
|
|
118
122
|
return doResult;
|
|
@@ -69,12 +69,27 @@ export async function sessionLogin(
|
|
|
69
69
|
|
|
70
70
|
const secConfig = await extractSecurity(client._options.token);
|
|
71
71
|
const securityInput = secConfig == null ? {} : { token: secConfig };
|
|
72
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
73
|
+
|
|
72
74
|
const context = {
|
|
73
75
|
operationID: "account.v1.session.login",
|
|
74
76
|
oAuth2Scopes: [],
|
|
75
77
|
securitySource: client._options.token,
|
|
78
|
+
retryConfig: options?.retries
|
|
79
|
+
|| client._options.retryConfig
|
|
80
|
+
|| {
|
|
81
|
+
strategy: "backoff",
|
|
82
|
+
backoff: {
|
|
83
|
+
initialInterval: 500,
|
|
84
|
+
maxInterval: 60000,
|
|
85
|
+
exponent: 1.5,
|
|
86
|
+
maxElapsedTime: 3600000,
|
|
87
|
+
},
|
|
88
|
+
retryConnectionErrors: true,
|
|
89
|
+
}
|
|
90
|
+
|| { strategy: "none" },
|
|
91
|
+
retryCodes: options?.retryCodes || ["500", "501", "502", "503", "504"],
|
|
76
92
|
};
|
|
77
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
78
93
|
|
|
79
94
|
const requestRes = client._createRequest(context, {
|
|
80
95
|
security: requestSecurity,
|
|
@@ -93,19 +108,8 @@ export async function sessionLogin(
|
|
|
93
108
|
const doResult = await client._do(req, {
|
|
94
109
|
context,
|
|
95
110
|
errorCodes: ["400", "422", "429", "4XX", "500", "5XX"],
|
|
96
|
-
retryConfig:
|
|
97
|
-
|
|
98
|
-
|| {
|
|
99
|
-
strategy: "backoff",
|
|
100
|
-
backoff: {
|
|
101
|
-
initialInterval: 500,
|
|
102
|
-
maxInterval: 60000,
|
|
103
|
-
exponent: 1.5,
|
|
104
|
-
maxElapsedTime: 3600000,
|
|
105
|
-
},
|
|
106
|
-
retryConnectionErrors: true,
|
|
107
|
-
},
|
|
108
|
-
retryCodes: options?.retryCodes || ["500", "501", "502", "503", "504"],
|
|
111
|
+
retryConfig: context.retryConfig,
|
|
112
|
+
retryCodes: context.retryCodes,
|
|
109
113
|
});
|
|
110
114
|
if (!doResult.ok) {
|
|
111
115
|
return doResult;
|
|
@@ -61,12 +61,27 @@ export async function sessionsDelete(
|
|
|
61
61
|
|
|
62
62
|
const secConfig = await extractSecurity(client._options.token);
|
|
63
63
|
const securityInput = secConfig == null ? {} : { token: secConfig };
|
|
64
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
65
|
+
|
|
64
66
|
const context = {
|
|
65
67
|
operationID: "account.v1.session.delete",
|
|
66
68
|
oAuth2Scopes: [],
|
|
67
69
|
securitySource: client._options.token,
|
|
70
|
+
retryConfig: options?.retries
|
|
71
|
+
|| client._options.retryConfig
|
|
72
|
+
|| {
|
|
73
|
+
strategy: "backoff",
|
|
74
|
+
backoff: {
|
|
75
|
+
initialInterval: 500,
|
|
76
|
+
maxInterval: 60000,
|
|
77
|
+
exponent: 1.5,
|
|
78
|
+
maxElapsedTime: 3600000,
|
|
79
|
+
},
|
|
80
|
+
retryConnectionErrors: true,
|
|
81
|
+
}
|
|
82
|
+
|| { strategy: "none" },
|
|
83
|
+
retryCodes: options?.retryCodes || ["500", "501", "502", "503", "504"],
|
|
68
84
|
};
|
|
69
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
70
85
|
|
|
71
86
|
const requestRes = client._createRequest(context, {
|
|
72
87
|
security: requestSecurity,
|
|
@@ -85,19 +100,8 @@ export async function sessionsDelete(
|
|
|
85
100
|
const doResult = await client._do(req, {
|
|
86
101
|
context,
|
|
87
102
|
errorCodes: ["404", "422", "4XX", "500", "5XX"],
|
|
88
|
-
retryConfig:
|
|
89
|
-
|
|
90
|
-
|| {
|
|
91
|
-
strategy: "backoff",
|
|
92
|
-
backoff: {
|
|
93
|
-
initialInterval: 500,
|
|
94
|
-
maxInterval: 60000,
|
|
95
|
-
exponent: 1.5,
|
|
96
|
-
maxElapsedTime: 3600000,
|
|
97
|
-
},
|
|
98
|
-
retryConnectionErrors: true,
|
|
99
|
-
},
|
|
100
|
-
retryCodes: options?.retryCodes || ["500", "501", "502", "503", "504"],
|
|
103
|
+
retryConfig: context.retryConfig,
|
|
104
|
+
retryCodes: context.retryCodes,
|
|
101
105
|
});
|
|
102
106
|
if (!doResult.ok) {
|
|
103
107
|
return doResult;
|
package/src/funcs/sessionsGet.ts
CHANGED
|
@@ -44,12 +44,27 @@ export async function sessionsGet(
|
|
|
44
44
|
|
|
45
45
|
const secConfig = await extractSecurity(client._options.token);
|
|
46
46
|
const securityInput = secConfig == null ? {} : { token: secConfig };
|
|
47
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
48
|
+
|
|
47
49
|
const context = {
|
|
48
50
|
operationID: "account.v1.session.get",
|
|
49
51
|
oAuth2Scopes: [],
|
|
50
52
|
securitySource: client._options.token,
|
|
53
|
+
retryConfig: options?.retries
|
|
54
|
+
|| client._options.retryConfig
|
|
55
|
+
|| {
|
|
56
|
+
strategy: "backoff",
|
|
57
|
+
backoff: {
|
|
58
|
+
initialInterval: 500,
|
|
59
|
+
maxInterval: 60000,
|
|
60
|
+
exponent: 1.5,
|
|
61
|
+
maxElapsedTime: 3600000,
|
|
62
|
+
},
|
|
63
|
+
retryConnectionErrors: true,
|
|
64
|
+
}
|
|
65
|
+
|| { strategy: "none" },
|
|
66
|
+
retryCodes: options?.retryCodes || ["500", "501", "502", "503", "504"],
|
|
51
67
|
};
|
|
52
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
53
68
|
|
|
54
69
|
const requestRes = client._createRequest(context, {
|
|
55
70
|
security: requestSecurity,
|
|
@@ -67,19 +82,8 @@ export async function sessionsGet(
|
|
|
67
82
|
const doResult = await client._do(req, {
|
|
68
83
|
context,
|
|
69
84
|
errorCodes: ["4XX", "500", "5XX"],
|
|
70
|
-
retryConfig:
|
|
71
|
-
|
|
72
|
-
|| {
|
|
73
|
-
strategy: "backoff",
|
|
74
|
-
backoff: {
|
|
75
|
-
initialInterval: 500,
|
|
76
|
-
maxInterval: 60000,
|
|
77
|
-
exponent: 1.5,
|
|
78
|
-
maxElapsedTime: 3600000,
|
|
79
|
-
},
|
|
80
|
-
retryConnectionErrors: true,
|
|
81
|
-
},
|
|
82
|
-
retryCodes: options?.retryCodes || ["500", "501", "502", "503", "504"],
|
|
85
|
+
retryConfig: context.retryConfig,
|
|
86
|
+
retryCodes: context.retryCodes,
|
|
83
87
|
});
|
|
84
88
|
if (!doResult.ok) {
|
|
85
89
|
return doResult;
|
|
@@ -60,12 +60,27 @@ export async function settingsDeleteImages(
|
|
|
60
60
|
|
|
61
61
|
const secConfig = await extractSecurity(client._options.token);
|
|
62
62
|
const securityInput = secConfig == null ? {} : { token: secConfig };
|
|
63
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
64
|
+
|
|
63
65
|
const context = {
|
|
64
66
|
operationID: "account.v1.settings.delete-images",
|
|
65
67
|
oAuth2Scopes: [],
|
|
66
68
|
securitySource: client._options.token,
|
|
69
|
+
retryConfig: options?.retries
|
|
70
|
+
|| client._options.retryConfig
|
|
71
|
+
|| {
|
|
72
|
+
strategy: "backoff",
|
|
73
|
+
backoff: {
|
|
74
|
+
initialInterval: 500,
|
|
75
|
+
maxInterval: 60000,
|
|
76
|
+
exponent: 1.5,
|
|
77
|
+
maxElapsedTime: 3600000,
|
|
78
|
+
},
|
|
79
|
+
retryConnectionErrors: true,
|
|
80
|
+
}
|
|
81
|
+
|| { strategy: "none" },
|
|
82
|
+
retryCodes: options?.retryCodes || ["500", "501", "502", "503", "504"],
|
|
67
83
|
};
|
|
68
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
69
84
|
|
|
70
85
|
const requestRes = client._createRequest(context, {
|
|
71
86
|
security: requestSecurity,
|
|
@@ -84,19 +99,8 @@ export async function settingsDeleteImages(
|
|
|
84
99
|
const doResult = await client._do(req, {
|
|
85
100
|
context,
|
|
86
101
|
errorCodes: ["404", "422", "4XX", "500", "5XX"],
|
|
87
|
-
retryConfig:
|
|
88
|
-
|
|
89
|
-
|| {
|
|
90
|
-
strategy: "backoff",
|
|
91
|
-
backoff: {
|
|
92
|
-
initialInterval: 500,
|
|
93
|
-
maxInterval: 60000,
|
|
94
|
-
exponent: 1.5,
|
|
95
|
-
maxElapsedTime: 3600000,
|
|
96
|
-
},
|
|
97
|
-
retryConnectionErrors: true,
|
|
98
|
-
},
|
|
99
|
-
retryCodes: options?.retryCodes || ["500", "501", "502", "503", "504"],
|
|
102
|
+
retryConfig: context.retryConfig,
|
|
103
|
+
retryCodes: context.retryCodes,
|
|
100
104
|
});
|
|
101
105
|
if (!doResult.ok) {
|
|
102
106
|
return doResult;
|
package/src/funcs/settingsGet.ts
CHANGED
|
@@ -44,12 +44,27 @@ export async function settingsGet(
|
|
|
44
44
|
|
|
45
45
|
const secConfig = await extractSecurity(client._options.token);
|
|
46
46
|
const securityInput = secConfig == null ? {} : { token: secConfig };
|
|
47
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
48
|
+
|
|
47
49
|
const context = {
|
|
48
50
|
operationID: "account.v1.settings.get",
|
|
49
51
|
oAuth2Scopes: [],
|
|
50
52
|
securitySource: client._options.token,
|
|
53
|
+
retryConfig: options?.retries
|
|
54
|
+
|| client._options.retryConfig
|
|
55
|
+
|| {
|
|
56
|
+
strategy: "backoff",
|
|
57
|
+
backoff: {
|
|
58
|
+
initialInterval: 500,
|
|
59
|
+
maxInterval: 60000,
|
|
60
|
+
exponent: 1.5,
|
|
61
|
+
maxElapsedTime: 3600000,
|
|
62
|
+
},
|
|
63
|
+
retryConnectionErrors: true,
|
|
64
|
+
}
|
|
65
|
+
|| { strategy: "none" },
|
|
66
|
+
retryCodes: options?.retryCodes || ["500", "501", "502", "503", "504"],
|
|
51
67
|
};
|
|
52
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
53
68
|
|
|
54
69
|
const requestRes = client._createRequest(context, {
|
|
55
70
|
security: requestSecurity,
|
|
@@ -67,19 +82,8 @@ export async function settingsGet(
|
|
|
67
82
|
const doResult = await client._do(req, {
|
|
68
83
|
context,
|
|
69
84
|
errorCodes: ["4XX", "500", "5XX"],
|
|
70
|
-
retryConfig:
|
|
71
|
-
|
|
72
|
-
|| {
|
|
73
|
-
strategy: "backoff",
|
|
74
|
-
backoff: {
|
|
75
|
-
initialInterval: 500,
|
|
76
|
-
maxInterval: 60000,
|
|
77
|
-
exponent: 1.5,
|
|
78
|
-
maxElapsedTime: 3600000,
|
|
79
|
-
},
|
|
80
|
-
retryConnectionErrors: true,
|
|
81
|
-
},
|
|
82
|
-
retryCodes: options?.retryCodes || ["500", "501", "502", "503", "504"],
|
|
85
|
+
retryConfig: context.retryConfig,
|
|
86
|
+
retryCodes: context.retryCodes,
|
|
83
87
|
});
|
|
84
88
|
if (!doResult.ok) {
|
|
85
89
|
return doResult;
|