@steamsets/client-ts 0.12.7 → 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/README.md +37 -15
- package/docs/sdks/meta/README.md +153 -0
- package/docs/sdks/steamsets/README.md +1 -148
- 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/{accountV1GetMeta.d.ts → metaAccountV1GetEmbed.d.ts} +2 -2
- package/funcs/metaAccountV1GetEmbed.d.ts.map +1 -0
- package/funcs/{accountV1GetEmbed.js → metaAccountV1GetEmbed.js} +20 -17
- package/funcs/metaAccountV1GetEmbed.js.map +1 -0
- package/funcs/{accountV1GetEmbed.d.ts → metaAccountV1GetMeta.d.ts} +2 -2
- package/funcs/metaAccountV1GetMeta.d.ts.map +1 -0
- package/funcs/{accountV1GetMeta.js → metaAccountV1GetMeta.js} +20 -17
- package/funcs/metaAccountV1GetMeta.js.map +1 -0
- 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/sdk/meta.d.ts +8 -0
- package/sdk/meta.d.ts.map +1 -0
- package/sdk/meta.js +20 -0
- package/sdk/meta.js.map +1 -0
- package/sdk/sdk.d.ts +4 -5
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +5 -9
- package/sdk/sdk.js.map +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/{accountV1GetEmbed.ts → metaAccountV1GetEmbed.ts} +19 -15
- package/src/funcs/{accountV1GetMeta.ts → metaAccountV1GetMeta.ts} +19 -15
- 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
- package/src/sdk/meta.ts +34 -0
- package/src/sdk/sdk.ts +7 -28
- package/funcs/accountV1GetEmbed.d.ts.map +0 -1
- package/funcs/accountV1GetEmbed.js.map +0 -1
- package/funcs/accountV1GetMeta.d.ts.map +0 -1
- package/funcs/accountV1GetMeta.js.map +0 -1
package/sdk/meta.js
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.Meta = void 0;
|
|
7
|
+
const metaAccountV1GetEmbed_js_1 = require("../funcs/metaAccountV1GetEmbed.js");
|
|
8
|
+
const metaAccountV1GetMeta_js_1 = require("../funcs/metaAccountV1GetMeta.js");
|
|
9
|
+
const sdks_js_1 = require("../lib/sdks.js");
|
|
10
|
+
const fp_js_1 = require("../types/fp.js");
|
|
11
|
+
class Meta extends sdks_js_1.ClientSDK {
|
|
12
|
+
async accountV1GetEmbed(request, options) {
|
|
13
|
+
return (0, fp_js_1.unwrapAsync)((0, metaAccountV1GetEmbed_js_1.metaAccountV1GetEmbed)(this, request, options));
|
|
14
|
+
}
|
|
15
|
+
async accountV1GetMeta(request, options) {
|
|
16
|
+
return (0, fp_js_1.unwrapAsync)((0, metaAccountV1GetMeta_js_1.metaAccountV1GetMeta)(this, request, options));
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
exports.Meta = Meta;
|
|
20
|
+
//# sourceMappingURL=meta.js.map
|
package/sdk/meta.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"meta.js","sourceRoot":"","sources":["../src/sdk/meta.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,gFAA0E;AAC1E,8EAAwE;AACxE,4CAA2D;AAG3D,0CAA6C;AAE7C,MAAa,IAAK,SAAQ,mBAAS;IACjC,KAAK,CAAC,iBAAiB,CACrB,OAAiC,EACjC,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,gDAAqB,EACtC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,gBAAgB,CACpB,OAAiC,EACjC,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,8CAAoB,EACrC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF;AAtBD,oBAsBC"}
|
package/sdk/sdk.d.ts
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import { ClientSDK
|
|
2
|
-
import * as components from "../models/components/index.js";
|
|
3
|
-
import * as operations from "../models/operations/index.js";
|
|
1
|
+
import { ClientSDK } from "../lib/sdks.js";
|
|
4
2
|
import { Account } from "./account.js";
|
|
5
3
|
import { Accounts } from "./accounts.js";
|
|
6
4
|
import { Admin } from "./admin.js";
|
|
@@ -13,6 +11,7 @@ import { Developer } from "./developer.js";
|
|
|
13
11
|
import { Leaderboard } from "./leaderboard.js";
|
|
14
12
|
import { Liveness } from "./liveness.js";
|
|
15
13
|
import { Locations } from "./locations.js";
|
|
14
|
+
import { Meta } from "./meta.js";
|
|
16
15
|
import { Public } from "./public.js";
|
|
17
16
|
import { Session } from "./session.js";
|
|
18
17
|
import { Sessions } from "./sessions.js";
|
|
@@ -36,6 +35,8 @@ export declare class SteamSets extends ClientSDK {
|
|
|
36
35
|
get data(): Data;
|
|
37
36
|
private _public?;
|
|
38
37
|
get public(): Public;
|
|
38
|
+
private _meta?;
|
|
39
|
+
get meta(): Meta;
|
|
39
40
|
private _accounts?;
|
|
40
41
|
get accounts(): Accounts;
|
|
41
42
|
private _admin?;
|
|
@@ -50,7 +51,5 @@ export declare class SteamSets extends ClientSDK {
|
|
|
50
51
|
get locations(): Locations;
|
|
51
52
|
private _liveness?;
|
|
52
53
|
get liveness(): Liveness;
|
|
53
|
-
accountV1GetEmbed(request: components.AccountSearch, options?: RequestOptions): Promise<operations.AccountV1GetEmbedResponse>;
|
|
54
|
-
accountV1GetMeta(request: components.AccountSearch, options?: RequestOptions): Promise<operations.AccountV1GetMetaResponse>;
|
|
55
54
|
}
|
|
56
55
|
//# sourceMappingURL=sdk.d.ts.map
|
package/sdk/sdk.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sdk.d.ts","sourceRoot":"","sources":["../src/sdk/sdk.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"sdk.d.ts","sourceRoot":"","sources":["../src/sdk/sdk.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAEzC,qBAAa,SAAU,SAAQ,SAAS;IACtC,OAAO,CAAC,YAAY,CAAC,CAAc;IACnC,IAAI,WAAW,IAAI,WAAW,CAE7B;IAED,OAAO,CAAC,UAAU,CAAC,CAAY;IAC/B,IAAI,SAAS,IAAI,SAAS,CAEzB;IAED,OAAO,CAAC,QAAQ,CAAC,CAAU;IAC3B,IAAI,OAAO,IAAI,OAAO,CAErB;IAED,OAAO,CAAC,WAAW,CAAC,CAAa;IACjC,IAAI,UAAU,IAAI,UAAU,CAE3B;IAED,OAAO,CAAC,QAAQ,CAAC,CAAU;IAC3B,IAAI,OAAO,IAAI,OAAO,CAErB;IAED,OAAO,CAAC,SAAS,CAAC,CAAW;IAC7B,IAAI,QAAQ,IAAI,QAAQ,CAEvB;IAED,OAAO,CAAC,SAAS,CAAC,CAAW;IAC7B,IAAI,QAAQ,IAAI,QAAQ,CAEvB;IAED,OAAO,CAAC,KAAK,CAAC,CAAO;IACrB,IAAI,IAAI,IAAI,IAAI,CAEf;IAED,OAAO,CAAC,OAAO,CAAC,CAAS;IACzB,IAAI,MAAM,IAAI,MAAM,CAEnB;IAED,OAAO,CAAC,KAAK,CAAC,CAAO;IACrB,IAAI,IAAI,IAAI,IAAI,CAEf;IAED,OAAO,CAAC,SAAS,CAAC,CAAW;IAC7B,IAAI,QAAQ,IAAI,QAAQ,CAEvB;IAED,OAAO,CAAC,MAAM,CAAC,CAAQ;IACvB,IAAI,KAAK,IAAI,KAAK,CAEjB;IAED,OAAO,CAAC,MAAM,CAAC,CAAQ;IACvB,IAAI,KAAK,IAAI,KAAK,CAEjB;IAED,OAAO,CAAC,OAAO,CAAC,CAAS;IACzB,IAAI,MAAM,IAAI,MAAM,CAEnB;IAED,OAAO,CAAC,YAAY,CAAC,CAAc;IACnC,IAAI,WAAW,IAAI,WAAW,CAE7B;IAED,OAAO,CAAC,UAAU,CAAC,CAAY;IAC/B,IAAI,SAAS,IAAI,SAAS,CAEzB;IAED,OAAO,CAAC,SAAS,CAAC,CAAW;IAC7B,IAAI,QAAQ,IAAI,QAAQ,CAEvB;CACF"}
|
package/sdk/sdk.js
CHANGED
|
@@ -4,10 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.SteamSets = void 0;
|
|
7
|
-
const accountV1GetEmbed_js_1 = require("../funcs/accountV1GetEmbed.js");
|
|
8
|
-
const accountV1GetMeta_js_1 = require("../funcs/accountV1GetMeta.js");
|
|
9
7
|
const sdks_js_1 = require("../lib/sdks.js");
|
|
10
|
-
const fp_js_1 = require("../types/fp.js");
|
|
11
8
|
const account_js_1 = require("./account.js");
|
|
12
9
|
const accounts_js_1 = require("./accounts.js");
|
|
13
10
|
const admin_js_1 = require("./admin.js");
|
|
@@ -20,6 +17,7 @@ const developer_js_1 = require("./developer.js");
|
|
|
20
17
|
const leaderboard_js_1 = require("./leaderboard.js");
|
|
21
18
|
const liveness_js_1 = require("./liveness.js");
|
|
22
19
|
const locations_js_1 = require("./locations.js");
|
|
20
|
+
const meta_js_1 = require("./meta.js");
|
|
23
21
|
const public_js_1 = require("./public.js");
|
|
24
22
|
const session_js_1 = require("./session.js");
|
|
25
23
|
const sessions_js_1 = require("./sessions.js");
|
|
@@ -61,6 +59,10 @@ class SteamSets extends sdks_js_1.ClientSDK {
|
|
|
61
59
|
var _a;
|
|
62
60
|
return ((_a = this._public) !== null && _a !== void 0 ? _a : (this._public = new public_js_1.Public(this._options)));
|
|
63
61
|
}
|
|
62
|
+
get meta() {
|
|
63
|
+
var _a;
|
|
64
|
+
return ((_a = this._meta) !== null && _a !== void 0 ? _a : (this._meta = new meta_js_1.Meta(this._options)));
|
|
65
|
+
}
|
|
64
66
|
get accounts() {
|
|
65
67
|
var _a;
|
|
66
68
|
return ((_a = this._accounts) !== null && _a !== void 0 ? _a : (this._accounts = new accounts_js_1.Accounts(this._options)));
|
|
@@ -89,12 +91,6 @@ class SteamSets extends sdks_js_1.ClientSDK {
|
|
|
89
91
|
var _a;
|
|
90
92
|
return ((_a = this._liveness) !== null && _a !== void 0 ? _a : (this._liveness = new liveness_js_1.Liveness(this._options)));
|
|
91
93
|
}
|
|
92
|
-
async accountV1GetEmbed(request, options) {
|
|
93
|
-
return (0, fp_js_1.unwrapAsync)((0, accountV1GetEmbed_js_1.accountV1GetEmbed)(this, request, options));
|
|
94
|
-
}
|
|
95
|
-
async accountV1GetMeta(request, options) {
|
|
96
|
-
return (0, fp_js_1.unwrapAsync)((0, accountV1GetMeta_js_1.accountV1GetMeta)(this, request, options));
|
|
97
|
-
}
|
|
98
94
|
}
|
|
99
95
|
exports.SteamSets = SteamSets;
|
|
100
96
|
//# sourceMappingURL=sdk.js.map
|
package/sdk/sdk.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sdk.js","sourceRoot":"","sources":["../src/sdk/sdk.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,
|
|
1
|
+
{"version":3,"file":"sdk.js","sourceRoot":"","sources":["../src/sdk/sdk.ts"],"names":[],"mappings":"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"}
|
|
@@ -60,12 +60,27 @@ export async function accountDeleteImages(
|
|
|
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 accountDeleteImages(
|
|
|
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;
|
|
@@ -60,12 +60,27 @@ export async function accountGetApps(
|
|
|
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 accountGetApps(
|
|
|
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 accountGetBadges(
|
|
|
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 accountGetBadges(
|
|
|
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 accountGetDataPoints(
|
|
|
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 accountGetDataPoints(
|
|
|
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 accountGetFriends(
|
|
|
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 accountGetFriends(
|
|
|
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 accountGetInfo(
|
|
|
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 accountGetInfo(
|
|
|
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 accountGetLeaderboardHistory(
|
|
|
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 accountGetLeaderboardHistory(
|
|
|
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;
|
|
@@ -44,12 +44,27 @@ export async function accountGetStaff(
|
|
|
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.getStaff",
|
|
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 accountGetStaff(
|
|
|
67
82
|
const doResult = await client._do(req, {
|
|
68
83
|
context,
|
|
69
84
|
errorCodes: ["404", "429", "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;
|
|
@@ -65,12 +65,27 @@ export async function accountSendEmailVerification(
|
|
|
65
65
|
|
|
66
66
|
const secConfig = await extractSecurity(client._options.token);
|
|
67
67
|
const securityInput = secConfig == null ? {} : { token: secConfig };
|
|
68
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
69
|
+
|
|
68
70
|
const context = {
|
|
69
71
|
operationID: "account.v1.settings.send-email-verification",
|
|
70
72
|
oAuth2Scopes: [],
|
|
71
73
|
securitySource: client._options.token,
|
|
74
|
+
retryConfig: options?.retries
|
|
75
|
+
|| client._options.retryConfig
|
|
76
|
+
|| {
|
|
77
|
+
strategy: "backoff",
|
|
78
|
+
backoff: {
|
|
79
|
+
initialInterval: 500,
|
|
80
|
+
maxInterval: 60000,
|
|
81
|
+
exponent: 1.5,
|
|
82
|
+
maxElapsedTime: 3600000,
|
|
83
|
+
},
|
|
84
|
+
retryConnectionErrors: true,
|
|
85
|
+
}
|
|
86
|
+
|| { strategy: "none" },
|
|
87
|
+
retryCodes: options?.retryCodes || ["500", "501", "502", "503", "504"],
|
|
72
88
|
};
|
|
73
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
74
89
|
|
|
75
90
|
const requestRes = client._createRequest(context, {
|
|
76
91
|
security: requestSecurity,
|
|
@@ -89,19 +104,8 @@ export async function accountSendEmailVerification(
|
|
|
89
104
|
const doResult = await client._do(req, {
|
|
90
105
|
context,
|
|
91
106
|
errorCodes: ["404", "422", "429", "4XX", "500", "5XX"],
|
|
92
|
-
retryConfig:
|
|
93
|
-
|
|
94
|
-
|| {
|
|
95
|
-
strategy: "backoff",
|
|
96
|
-
backoff: {
|
|
97
|
-
initialInterval: 500,
|
|
98
|
-
maxInterval: 60000,
|
|
99
|
-
exponent: 1.5,
|
|
100
|
-
maxElapsedTime: 3600000,
|
|
101
|
-
},
|
|
102
|
-
retryConnectionErrors: true,
|
|
103
|
-
},
|
|
104
|
-
retryCodes: options?.retryCodes || ["500", "501", "502", "503", "504"],
|
|
107
|
+
retryConfig: context.retryConfig,
|
|
108
|
+
retryCodes: context.retryCodes,
|
|
105
109
|
});
|
|
106
110
|
if (!doResult.ok) {
|
|
107
111
|
return doResult;
|
|
@@ -60,12 +60,27 @@ export async function accountUpdateImage(
|
|
|
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.update-image",
|
|
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 accountUpdateImage(
|
|
|
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;
|