@accelbyte/sdk 0.2.0-beta.1 → 0.2.0-beta.12

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.
@@ -9541,7 +9541,10 @@ class FileUploadApi {
9541
9541
  this.conf = conf;
9542
9542
  this.namespace = namespace;
9543
9543
  /**
9544
- * Generate an upload URL. It's valid for 10 minutes.<br/>Other detail info: <ul><li><i>Required permission</i>: resource = <b>"NAMESPACE:{namespace}:FILEUPLOAD"</b>, action=1 <b>(CREATE)</b></li><li><i>Action code</i>: 11101</li><li><i>Returns</i>: URL data</li></ul>
9544
+ * POST [/basic/v1/public/namespaces/{namespace}/folders/{folder}/files](api)
9545
+ *
9546
+ * Generate an upload URL. It's valid for 10 minutes.
9547
+ * Returns: URL data
9545
9548
  */
9546
9549
  this.generateFolderUploadFileUrl = ({ folder, queryParams }) => {
9547
9550
  return this.newInstance().postV1NsFoldersByFolderFiles(folder, queryParams);
@@ -9662,11 +9665,18 @@ class MiscApi {
9662
9665
  this.namespace = namespace;
9663
9666
  this.cache = cache;
9664
9667
  /**
9665
- * List countries.<br>Other detail info: <ul><li><i>Returns</i>: country code list</li></ul>
9668
+ * GET [/basic/v1/public/namespaces/{namespace}/misc/countries](api)
9669
+ *
9670
+ * _Returns_: country code list
9666
9671
  */
9667
9672
  this.getCountries = (lang) => {
9668
9673
  return this.newInstance().fetchV1NsMiscCountries({ lang });
9669
9674
  };
9675
+ /**
9676
+ * GET [/basic/v1/public/namespaces/{namespace}/misc/languages](api)
9677
+ *
9678
+ * _Returns_: language list
9679
+ */
9670
9680
  this.getLanguages = () => {
9671
9681
  return this.newInstance().fetchV1NsMiscLanguages();
9672
9682
  };
@@ -9756,7 +9766,13 @@ class NamespaceApi {
9756
9766
  this.namespace = namespace;
9757
9767
  this.cache = cache;
9758
9768
  /**
9759
- * Get all namespaces.<br>Other detail info: <ul><li><i>Required permission</i>: login user</li><li><i>Action code</i>: 11303</li><li><i>Returns</i>: list of namespaces</li></ul>
9769
+ * GET [/basic/v1/public/namespaces](api)
9770
+ *
9771
+ * Get all namespaces.
9772
+ *
9773
+ * - _Required permission_: login user
9774
+ * - _Action code_: 11303
9775
+ * - _Returns_: list of namespaces
9760
9776
  */
9761
9777
  this.getNamespaces = (activeOnly) => {
9762
9778
  return this.newInstance().fetchV1PublicNamespaces({ activeOnly });
@@ -10063,25 +10079,39 @@ class UserProfileApi {
10063
10079
  this.namespace = namespace;
10064
10080
  this.cache = cache;
10065
10081
  /**
10066
- * Get my profile<br><b>Client with user token can get user profile in target namespace</b><br>Other detail info: <ul><li><i>Required permission</i>: resource=<b>"NAMESPACE:{namespace}:PROFILE"</b>, action=2 <b>(READ)</b></li><li><i>Action code</i>: 11403</li><li><i>Returns</i>: user profile</li><li><i>Path's namespace</i> : <ul><li>can be filled with <b>publisher namespace</b> in order to get <b>publisher user profile</b></li><li>can be filled with <b>game namespace</b> in order to get <b>game user profile</b></li></ul></li><li><i>Language</i> : allowed format: en, en-US</li><li><i>Timezone</i> : IANA time zone, e.g. Asia/Shanghai</li></ul>
10082
+ * GET [/basic/v1/public/namespaces/{namespace}/users/me/profiles](api)
10083
+ *
10084
+ * Get my profile
10085
+ *
10086
+ * __Client with user token can get user profile in target namespace__
10067
10087
  */
10068
10088
  this.getUsersMeProfiles = () => {
10069
10089
  return this.newInstance().fetchV1NsUsersMeProfiles();
10070
10090
  };
10071
10091
  /**
10072
- * Create my profile.<br><b>Client with user token can create user profile in target namespace</b><br>Other detail info: <ul><li><i>Required permission</i>: resource=<b>"NAMESPACE:{namespace}:PROFILE"</b>, action=1 <b>(CREATE)</b></li><li><i>Action code</i>: 11401</li><li><i>Returns</i>: Created user profile</li><li><i>Path's namespace</i> : <ul><li>can be filled with <b>publisher namespace</b> in order to create <b>publisher user profile</b></li><li>can be filled with <b>game namespace</b> in order to create <b>game user profile</b></li></ul></li><li><i>Language</i> : allowed format: en, en-US</li><li><i>Country</i> : ISO3166-1 alpha-2 two letter, e.g. US </li><li><i>Timezone</i> : IANA time zone, e.g. Asia/Shanghai</li></ul>
10092
+ * POST [/basic/v1/public/namespaces/{namespace}/users/me/profiles](api)
10093
+ *
10094
+ * Create my profile.
10095
+ *
10096
+ * __Client with user token can create user profile in target namespace__
10073
10097
  */
10074
10098
  this.createUserMeProfile = (data) => {
10075
10099
  return this.newInstance().postV1NsUsersMeProfiles(data);
10076
10100
  };
10077
10101
  /**
10078
- * Update my profile.<br>Updates user profile in the target namespace. If token's namespace doesn't match the target namespace, the service automatically maps the token's user ID into the user ID in the target namespace. The method returns the updated user profile on a successful call.<br>Other detail info: <ul><li><i>Required permission</i>: resource=<b>"NAMESPACE:{namespace}:PROFILE"</b>, action=4 <b>(UPDATE)</b></li><li><i>Action code</i>: 11402</li><li><i>Returns</i>: user profile</li><li><i>Path's namespace</i> : <ul><li>can be filled with <b>publisher namespace</b> in order to update <b>publisher user profile</b></li><li>can be filled with <b>game namespace</b> in order to update <b>game user profile</b></li></ul></li><li><i>Language</i> : allowed format: en, en-US</li><li><i>Timezone</i> : IANA time zone, e.g. Asia/Shanghai</li></ul>
10102
+ * PUT [/basic/v1/public/namespaces/{namespace}/users/me/profiles](api)
10103
+ *
10104
+ * Update my profile.
10105
+ * Updates user profile in the target namespace. If token's namespace doesn't match the target namespace, the service automatically maps the token's user ID into the user ID in the target namespace. The method returns the updated user profile on a successful call.
10079
10106
  */
10080
10107
  this.updateUserMeProfile = (data) => {
10081
10108
  return this.newInstance().putV1NsUsersMeProfiles(data);
10082
10109
  };
10083
10110
  /**
10084
- * Update partially custom attributes tied to user id.<br>Other detail info: <ul><li><i>Required permission</i>: resource=<b>"NAMESPACE:{namespace}:USER:{userId}:PROFILE"</b>, action=4 <b>(UPDATE)</b></li><li><i>Action code</i>: 11402</li><li><i>Request body</i> : allowed format: JSON object</li><li><i>Returns</i>: Updated custom attributes</li></ul>
10111
+ * PUT [/basic/v1/public/namespaces/{namespace}/users/{userId}/profiles/customAttributes](api)
10112
+ *
10113
+ * Update partially custom attributes tied to user id.
10114
+ * _Returns_: Updated custom attributes
10085
10115
  */
10086
10116
  this.updateUserCustomAttributes = (userId, data) => {
10087
10117
  return this.newInstance().putV1NsUsersByUseridProfilesCustomAttributes(userId, data);
@@ -10148,12 +10178,17 @@ class CachingApi {
10148
10178
  constructor(conf, namespace) {
10149
10179
  this.conf = conf;
10150
10180
  this.namespace = namespace;
10151
- }
10152
- /**
10153
- * This API is used to retrieve detailed diff cache.<br/>The response will contains list of diff cache files along with its download url.<br/><br/>Other detail info: <ul><li><i>Required permission</i>: login user</li></ul>
10154
- */
10155
- getDiffCache(sourceBuildId, destinationBuildId) {
10156
- return this.newInstance().fetchNsDiffCacheSourceBySourcebuildidDestByDestinationbuildid(sourceBuildId, destinationBuildId);
10181
+ /**
10182
+ * GET [/buildinfo/public/namespaces/{namespace}/diff/cache/source/{sourceBuildId}/dest/{destinationBuildId}](api)
10183
+ *
10184
+ * This API is used to retrieve detailed diff cache.
10185
+ * The response will contains list of diff cache files along with its download url.
10186
+ *
10187
+ * _Required permission_: login user
10188
+ */
10189
+ this.getDiffCache = (sourceBuildId, destinationBuildId) => {
10190
+ return this.newInstance().fetchNsDiffCacheSourceBySourcebuildidDestByDestinationbuildid(sourceBuildId, destinationBuildId);
10191
+ };
10157
10192
  }
10158
10193
  newInstance() {
10159
10194
  // this is expensive to cache, apply "cache: false"
@@ -10327,18 +10362,26 @@ class DlcApi {
10327
10362
  constructor(conf, namespace) {
10328
10363
  this.conf = conf;
10329
10364
  this.namespace = namespace;
10330
- }
10331
- /**
10332
- * Retrieve the list of DLC available on specific game. Use game's appId to query.<p>Other detail info: <ul><li><i>Returns</i>: list of DLC</li></ul>
10333
- */
10334
- getLatestDLCByGameAppId(appId) {
10335
- return this.newInstance().fetchNsDlcsLatestByGameAppIdByAppid(appId);
10336
- }
10337
- /**
10338
- * Retrieve the list of DLC available on specific game. Use DLC's appId to query.<p>Other detail info: <ul><li><i>Returns</i>: appId of game and list of its builds by platformId</li></ul>
10339
- */
10340
- getBaseGamesByDlcAppId(dlcAppId) {
10341
- return this.newInstance().fetchNsAppsLatestByDlcAppIdByDlcappid(dlcAppId);
10365
+ /**
10366
+ * GET [/buildinfo/public/namespaces/{namespace}/dlcs/latest/byGameAppId/{appId}](api)
10367
+ *
10368
+ * Retrieve the list of DLC available on specific game. Use game's appId to query.
10369
+ *
10370
+ * _Returns_: list of DLC
10371
+ */
10372
+ this.getLatestDLCByGameAppId = (appId) => {
10373
+ return this.newInstance().fetchNsDlcsLatestByGameAppIdByAppid(appId);
10374
+ };
10375
+ /**
10376
+ * GET [/buildinfo/public/namespaces/{namespace}/apps/latest/byDLCAppId/{dlcAppId}](api)
10377
+ *
10378
+ * Retrieve the list of DLC available on specific game. Use DLC's appId to query.
10379
+ *
10380
+ * _Returns_: appId of game and list of its builds by platformId
10381
+ */
10382
+ this.getBaseGamesByDlcAppId = (dlcAppId) => {
10383
+ return this.newInstance().fetchNsAppsLatestByDlcAppIdByDlcappid(dlcAppId);
10384
+ };
10342
10385
  }
10343
10386
  newInstance() {
10344
10387
  // this is be expensive to cache, apply "cache: false"
@@ -10347,7 +10390,7 @@ class DlcApi {
10347
10390
  }
10348
10391
 
10349
10392
  /*
10350
- * Copyright (c) 2022 AccelByte Inc. All Rights Reserved
10393
+ * Copyright (c) 2022-2023 AccelByte Inc. All Rights Reserved
10351
10394
  * This is licensed software from AccelByte Inc, for limitations
10352
10395
  * and restrictions contact your company contract manager.
10353
10396
  */
@@ -10389,12 +10432,7 @@ const AvailablePlatform = [
10389
10432
  arch: [ARCH.X64],
10390
10433
  targetPlatform: [BUILDINFO_PLATFORM_ID.WIN64, BUILDINFO_PLATFORM_ID.WINDOWS, BUILDINFO_PLATFORM_ID.WIN32]
10391
10434
  }
10392
- ];
10393
- var LogLevel;
10394
- (function (LogLevel) {
10395
- LogLevel["DEBUG"] = "DEBUG";
10396
- LogLevel["INFO"] = "INFO";
10397
- })(LogLevel || (LogLevel = {}));
10435
+ ];
10398
10436
 
10399
10437
  /*
10400
10438
  * Copyright (c) 2022-2023 AccelByte Inc. All Rights Reserved
@@ -10705,56 +10743,76 @@ class DownloaderApi {
10705
10743
  constructor(conf, namespace) {
10706
10744
  this.conf = conf;
10707
10745
  this.namespace = namespace;
10708
- }
10709
- /**
10710
- * This API is used to get simple build manifest that contains list of current build in various platform.<p>Other detail info: <ul><li><i>Required permission</i>: login user</li><li><i>Returns</i>: build manifest</li></ul>
10711
- */
10712
- getAvailableBuilds(appId) {
10713
- return this.newInstance().fetchNsAvailablebuildsByAppid(appId);
10714
- }
10715
- /**
10716
- * This API is used to get build manifest of release version of the application.<p>Other detail info: <ul><li><i>Required permission</i>: login user</li><li><i>Returns</i>: build manifest</li></ul>
10717
- */
10718
- getBuildManifest(appId, platformId) {
10719
- const axios = Network.create({ ...this.conf, timeout: 1800000 });
10720
- return new Downloader$(axios, this.namespace, false).fetchNsV2UpdategameByAppidByPlatformid(appId, platformId);
10721
- }
10722
- /**
10723
- * This API is used to retrieve detailed diff cache.<br/>The response will contains list of diff cache files along with its download url.<br/><br/>Other detail info: <ul><li><i>Required permission</i>: login user</li></ul>
10724
- */
10725
- getDiffCache(sourceBuildId, destinationBuildId) {
10726
- return new Caching$(Network.create(this.conf), this.namespace, false).fetchNsDiffCacheSourceBySourcebuildidDestByDestinationbuildid(sourceBuildId, destinationBuildId);
10727
- }
10728
- /**
10729
- * Check which platform is available for the user to download the game
10730
- */
10731
- getMatchPlatform({ buildsAvailability, userPlatform }) {
10732
- const availablePlatformID = new Set();
10733
- for (const buildAvailability of buildsAvailability) {
10734
- if (buildAvailability.platformId) {
10735
- availablePlatformID.add(buildAvailability.platformId);
10746
+ /**
10747
+ * GET [/buildinfo/public/namespaces/{namespace}/availablebuilds/{appId}](api)
10748
+ *
10749
+ * This API is used to get simple build manifest that contains list of current build in various platform.
10750
+ *
10751
+ * - _Required permission_: login user
10752
+ * - _Returns_: build manifest
10753
+ */
10754
+ this.getAvailableBuilds = (appId) => {
10755
+ return this.newInstance().fetchNsAvailablebuildsByAppid(appId);
10756
+ };
10757
+ /**
10758
+ * GET [/buildinfo/public/namespaces/{namespace}/v2/updategame/{appId}/{platformId}](api)
10759
+ *
10760
+ * This API is used to get build manifest of release version of the application.
10761
+ *
10762
+ * - _Required permission_: login user
10763
+ * - _Returns_: build manifest
10764
+ */
10765
+ this.getBuildManifest = (appId, platformId) => {
10766
+ const axios = Network.create({ ...this.conf, timeout: 1800000 });
10767
+ return new Downloader$(axios, this.namespace, false).fetchNsV2UpdategameByAppidByPlatformid(appId, platformId);
10768
+ };
10769
+ /**
10770
+ * GET [/buildinfo/public/namespaces/{namespace}/diff/cache/source/{sourceBuildId}/dest/{destinationBuildId}](api)
10771
+ *
10772
+ * This API is used to retrieve detailed diff cache.
10773
+ * The response will contains list of diff cache files along with its download url.
10774
+ *
10775
+ * - _Required permission_: login user
10776
+ */
10777
+ this.getDiffCache = (sourceBuildId, destinationBuildId) => {
10778
+ return new Caching$(Network.create(this.conf), this.namespace, false).fetchNsDiffCacheSourceBySourcebuildidDestByDestinationbuildid(sourceBuildId, destinationBuildId);
10779
+ };
10780
+ /**
10781
+ * Check which platform is available for the user to download the game
10782
+ *
10783
+ * @internal
10784
+ */
10785
+ this.getMatchPlatform = ({ buildsAvailability, userPlatform }) => {
10786
+ const availablePlatformID = new Set();
10787
+ for (const buildAvailability of buildsAvailability) {
10788
+ if (buildAvailability.platformId) {
10789
+ availablePlatformID.add(buildAvailability.platformId);
10790
+ }
10736
10791
  }
10737
- }
10738
- const currentMatchPlatform = this.getCurrentPlatform(userPlatform);
10739
- if (currentMatchPlatform) {
10740
- for (const key in currentMatchPlatform.targetPlatform) {
10741
- if (availablePlatformID.has(currentMatchPlatform.targetPlatform[key])) {
10742
- return currentMatchPlatform.targetPlatform[key];
10792
+ const currentMatchPlatform = this.getCurrentPlatform(userPlatform);
10793
+ if (currentMatchPlatform) {
10794
+ for (const key in currentMatchPlatform.targetPlatform) {
10795
+ if (availablePlatformID.has(currentMatchPlatform.targetPlatform[key])) {
10796
+ return currentMatchPlatform.targetPlatform[key];
10797
+ }
10743
10798
  }
10744
10799
  }
10745
- }
10746
- return null;
10800
+ return null;
10801
+ };
10802
+ /**
10803
+ * @internal
10804
+ */
10805
+ this.getCurrentPlatform = (userPlatform) => {
10806
+ const devicePlatform = userPlatform.platform;
10807
+ const deviceArch = userPlatform.arch;
10808
+ const currentPlatform = AvailablePlatform.find((platform) => platform.platform === devicePlatform && platform.arch.includes(deviceArch));
10809
+ return currentPlatform;
10810
+ };
10747
10811
  }
10748
10812
  newInstance() {
10749
10813
  // this is be expensive to cache, apply "cache: false"
10750
10814
  return new Downloader$(Network.create(this.conf), this.namespace, false);
10751
10815
  }
10752
- getCurrentPlatform(userPlatform) {
10753
- const devicePlatform = userPlatform.platform;
10754
- const deviceArch = userPlatform.arch;
10755
- const currentPlatform = AvailablePlatform.find((platform) => platform.platform === devicePlatform && platform.arch.includes(deviceArch));
10756
- return currentPlatform;
10757
- }
10758
10816
  }
10759
10817
 
10760
10818
  /*
@@ -10858,16 +10916,17 @@ class EventApi {
10858
10916
  this.namespace = namespace;
10859
10917
  this.cache = cache;
10860
10918
  /**
10861
- * <p>Available Type: </p>
10862
- * <ul>
10863
- * <li>email</li>
10864
- * <li>password</li>
10865
- * <li>displayname</li>
10866
- * <li>dateofbirth</li>
10867
- * <li>country</li>
10868
- * <li>language</li>
10869
- * </ul>
10870
- * <p>Requires a valid user access token</p>
10919
+ * GET [/event/v2/public/namespaces/{namespace}/users/{userId}/edithistory](api)
10920
+ *
10921
+ * Available Type:
10922
+ * - email
10923
+ * - password
10924
+ * - displayname
10925
+ * - dateofbirth
10926
+ * - country
10927
+ * - language
10928
+ *
10929
+ * _Requires a valid user access token_
10871
10930
  */
10872
10931
  this.getAccountHistoryByUserId = ({ userId, queryParams }) => {
10873
10932
  return this.newInstance().fetchEventV2NsUsersByUseridEdithistory(userId, queryParams);
@@ -10961,27 +11020,36 @@ class DataDeletionApi {
10961
11020
  this.conf = conf;
10962
11021
  this.namespace = namespace;
10963
11022
  this.cache = cache;
10964
- }
10965
- /**
10966
- * <p>Fetch the status to check whether or not a user's account is on a deletion status</p>
10967
- * <p>Requires valid user access token</p>
10968
- */
10969
- getGdprDeletionStatus(userId) {
10970
- return this.newInstance().fetchGdprNsUsersByUseridDeletionsStatus(userId);
10971
- }
10972
- /**
10973
- * <p>Request an account's deletion</p>
10974
- * <p>Requires valid user access token and password
10975
- */
10976
- requestAccountDeletion({ userId, data }) {
10977
- return this.newInstance().postGdprNsUsersByUseridDeletions(userId, data);
10978
- }
10979
- /**
10980
- * <p>Cancel a deletion request</p>
10981
- * <p>Requires valid user access token</p>
10982
- */
10983
- cancelAccountDeletion(userId) {
10984
- return this.newInstance().deleteGdprNsUsersByUseridDeletions(userId);
11023
+ /**
11024
+ * GET [/gdpr/public/namespaces/{namespace}/users/{userId}/deletions/status](api)
11025
+ *
11026
+ * Fetch the status to check whether or not a user's account is on a deletion status
11027
+ *
11028
+ * _Requires a valid user access token_
11029
+ */
11030
+ this.getGdprDeletionStatus = (userId) => {
11031
+ return this.newInstance().fetchGdprNsUsersByUseridDeletionsStatus(userId);
11032
+ };
11033
+ /**
11034
+ * POST [/gdpr/public/namespaces/{namespace}/users/{userId}/deletions](api)
11035
+ *
11036
+ * Request an account's deletion
11037
+ *
11038
+ * _Requires a valid user access token and password_
11039
+ */
11040
+ this.requestAccountDeletion = ({ userId, data }) => {
11041
+ return this.newInstance().postGdprNsUsersByUseridDeletions(userId, data);
11042
+ };
11043
+ /**
11044
+ * DELETE [/gdpr/public/namespaces/{namespace}/users/{userId}/deletions](api)
11045
+ *
11046
+ * Cancel a deletion request
11047
+ *
11048
+ * _Requires a valid user access token_
11049
+ */
11050
+ this.cancelAccountDeletion = (userId) => {
11051
+ return this.newInstance().deleteGdprNsUsersByUseridDeletions(userId);
11052
+ };
10985
11053
  }
10986
11054
  newInstance() {
10987
11055
  return new DataDeletion$(Network.create(this.conf), this.namespace, this.cache);
@@ -11102,34 +11170,46 @@ class DataRetrievalApi {
11102
11170
  this.conf = conf;
11103
11171
  this.namespace = namespace;
11104
11172
  this.cache = cache;
11105
- }
11106
- /**
11107
- * <p>Fetch personal data request list</p>
11108
- * <p>Requires valid user access token</p>
11109
- */
11110
- getGdprDataRequestList({ userId, queryParams }) {
11111
- return this.newInstance().fetchGdprNsUsersByUseridRequests(userId, queryParams);
11112
- }
11113
- /**
11114
- * <p>Create a request for personal data download</p>
11115
- * <p>Requires valid user access token</p>
11116
- */
11117
- requestGdprData({ userId, data }) {
11118
- return this.newInstance().postGdprNsUsersByUseridRequests(userId, data);
11119
- }
11120
- /**
11121
- * <p>Cancel the request for personal data dowwnload</p>
11122
- * <p>Requires valid user access token</p>
11123
- */
11124
- cancelGdprDataRequest({ userId, requestDate }) {
11125
- return this.newInstance().deleteGdprNsUsersByUseridRequestsByRequestdate(userId, requestDate);
11126
- }
11127
- /**
11128
- * <p>Create a download URL for personal data request</p>
11129
- * <p>Requires valid user access token</p>
11130
- */
11131
- requestGdprDataDownloadUrl({ userId, requestDate, data }) {
11132
- return this.newInstance().postGdprNsUsersByUseridRequestsByRequestdateGenerate(userId, requestDate, data);
11173
+ /**
11174
+ * GET [/gdpr/public/namespaces/{namespace}/users/{userId}/requests](api)
11175
+ *
11176
+ * Fetch personal data request list
11177
+ *
11178
+ * _Requires a valid user access token_
11179
+ */
11180
+ this.getGdprDataRequestList = ({ userId, queryParams }) => {
11181
+ return this.newInstance().fetchGdprNsUsersByUseridRequests(userId, queryParams);
11182
+ };
11183
+ /**
11184
+ * POST [/gdpr/public/namespaces/{namespace}/users/{userId}/requests](api)
11185
+ *
11186
+ * Create a request for personal data download
11187
+ *
11188
+ * _Requires a valid user access token_
11189
+ */
11190
+ this.requestGdprData = ({ userId, data }) => {
11191
+ return this.newInstance().postGdprNsUsersByUseridRequests(userId, data);
11192
+ };
11193
+ /**
11194
+ * DELETE [/gdpr/public/namespaces/{namespace}/users/{userId}/requests/{requestDate}](api)
11195
+ *
11196
+ * Cancel the request for personal data download
11197
+ *
11198
+ * _Requires a valid user access token_
11199
+ */
11200
+ this.cancelGdprDataRequest = ({ userId, requestDate }) => {
11201
+ return this.newInstance().deleteGdprNsUsersByUseridRequestsByRequestdate(userId, requestDate);
11202
+ };
11203
+ /**
11204
+ * POST [/gdpr/public/namespaces/{namespace}/users/{userId}/requests/{requestDate}/generate](api)
11205
+ *
11206
+ * Create a download URL for personal data request
11207
+ *
11208
+ * _Requires a valid user access token_
11209
+ */
11210
+ this.requestGdprDataDownloadUrl = ({ userId, requestDate, data }) => {
11211
+ return this.newInstance().postGdprNsUsersByUseridRequestsByRequestdateGenerate(userId, requestDate, data);
11212
+ };
11133
11213
  }
11134
11214
  newInstance() {
11135
11215
  return new DataRetrieval$(Network.create(this.conf), this.namespace, this.cache);
@@ -11222,10 +11302,11 @@ class InputValidationsApi {
11222
11302
  this.namespace = namespace;
11223
11303
  this.cache = cache;
11224
11304
  /**
11225
- * <p>No role required</p>
11226
- * <p>This method is to get list of input validation configuration.</p>
11227
- * <p><code>regex</code> parameter will be returned if <code>isCustomRegex</code> is true. Otherwise, it will be empty.</p>
11305
+ * GET [/iam/v3/public/inputValidations](api)
11228
11306
  *
11307
+ * No role required
11308
+ * This method is to get list of input validation configuration.
11309
+ * `regex` parameter will be returned if `isCustomRegex` is true. Otherwise, it will be empty.
11229
11310
  */
11230
11311
  this.getValidations = (languageCode, defaultOnEmpty) => {
11231
11312
  const queryParams = { languageCode, defaultOnEmpty };
@@ -12100,7 +12181,7 @@ const uponRefreshComplete = (error, tokenResponse, onGetUserSession, onSessionEx
12100
12181
  };
12101
12182
 
12102
12183
  /*
12103
- * Copyright (c) 2022 AccelByte Inc. All Rights Reserved
12184
+ * Copyright (c) 2022-2023 AccelByte Inc. All Rights Reserved
12104
12185
  * This is licensed software from AccelByte Inc, for limitations
12105
12186
  * and restrictions contact your company contract manager.
12106
12187
  */
@@ -18811,7 +18892,7 @@ var rabbitLegacy = {exports: {}};
18811
18892
  var cryptoJs = cryptoJs$1.exports;
18812
18893
 
18813
18894
  /*
18814
- * Copyright (c) 2022 AccelByte Inc. All Rights Reserved
18895
+ * Copyright (c) 2022-2023 AccelByte Inc. All Rights Reserved
18815
18896
  * This is licensed software from AccelByte Inc, for limitations
18816
18897
  * and restrictions contact your company contract manager.
18817
18898
  */
@@ -20191,7 +20272,7 @@ class LoginErrorUnknown extends Error {
20191
20272
  }
20192
20273
  class LoginErrorUnmatchedState extends Error {
20193
20274
  }
20194
- class UserAuthorization {
20275
+ class UserAuthorizationApi {
20195
20276
  /**
20196
20277
  * @internal
20197
20278
  */
@@ -20201,81 +20282,83 @@ class UserAuthorization {
20201
20282
  this.cache = cache;
20202
20283
  this.options = options;
20203
20284
  /**
20204
- * <p>This method supports grant type:</p><ol>
20205
- * <li>Grant Type == <code>authorization_code</code>:<br />
20285
+ * POST: [/iam/v3/oauth/token](api)
20286
+ *
20287
+ * This method supports grant type:
20288
+ * - Grant Type == `authorization_code`:
20206
20289
  * &nbsp;&nbsp;&nbsp; It generates the user token by given the authorization
20207
20290
  * code which generated in "/iam/v3/authenticate" API response. It should also pass
20208
20291
  * in the redirect_uri, which should be the same as generating the
20209
20292
  * authorization code request.
20210
- * </li>
20211
- * <li>Grant Type == <code>password</code>:<br />
20293
+ *
20294
+ * - Grant Type == `password`:
20212
20295
  * &nbsp;&nbsp;&nbsp; The grant type to use for authenticating a user, whether it's by email / username and password combination
20213
20296
  * or through platform.
20214
- * </li>
20215
- * <li>Grant Type == <code>refresh_token</code>:<br />
20297
+ *
20298
+ * - Grant Type == `refresh_token`:
20216
20299
  * &nbsp;&nbsp;&nbsp; Used to get a new access token for a valid refresh token.
20217
- * </li>
20218
- * <li>Grant Type == <code>client_credentials</code>:<br />
20300
+ *
20301
+ * - Grant Type == `client_credentials`:
20219
20302
  * &nbsp;&nbsp;&nbsp; It generates a token by checking the client credentials provided through Authorization header.
20220
- * </li></ol>
20221
- * <h2>Access Token Content</h2>
20222
- * <p>Following is the access token’s content:</p>
20223
- * <ul>
20224
- * <li>
20225
- * <p><strong>namespace</strong>. It is the namespace the token was generated from.</p>
20226
- * </li>
20227
- * <li>
20228
- * <p><strong>display_name</strong>. The display name of the sub. It is empty if the token is generated from the client credential</p>
20229
- * </li>
20230
- * <li>
20231
- * <p><strong>roles</strong>. The sub’s roles. It is empty if the token is generated from the client credential</p>
20232
- * </li>
20233
- * <li>
20234
- * <p><strong>namespace_roles</strong>. The sub’s roles scoped to namespace. Improvement from roles, which make the role scoped to specific namespace instead of global to publisher namespace</p>
20235
- * </li>
20236
- * <li>
20237
- * <p><strong>permissions</strong>. The sub or aud’ permissions</p>
20238
- * </li>
20239
- * <li>
20240
- * <p><strong>bans</strong>. The sub’s list of bans. It is used by the IAM client for validating the token.</p>
20241
- * </li>
20242
- * <li>
20243
- * <p><strong>jflgs</strong>. It stands for Justice Flags. It is a special flag used for storing additional status information regarding the sub. It is implemented as a bit mask. Following explains what each bit represents:</p>
20244
- * <ul>
20245
- * <li><p>1: Email Address Verified</p></li>
20246
- * <li><p>2: Phone Number Verified</p></li>
20247
- * <li><p>4: Anonymous</p></li>
20248
- * <li><p>8: Suspicious Login</p></li>
20249
- * </ul>
20250
- * </li>
20251
- * <li>
20252
- * <p><strong>aud</strong>. The aud is the targeted resource server.</p>
20253
- * </li>
20254
- * <li>
20255
- * <p><strong>iat</strong>. The time the token issues at. It is in Epoch time format</p>
20256
- * </li>
20257
- * <li>
20258
- * <p><strong>exp</strong>. The time the token expires. It is in Epoch time format</p>
20259
- * </li>
20260
- * <li>
20261
- * <p><strong>client_id</strong>. The UserID. The sub is omitted if the token is generated from client credential</p>
20262
- * </li>
20263
- * <li>
20264
- * <p><strong>scope</strong>. The scope of the access request, expressed as a list of space-delimited, case-sensitive strings</p>
20265
- * </li>
20266
- * </ul>
20267
- * <h2>Bans</h2>
20268
- * <p>The JWT contains user's active bans with its expiry date. List of ban types can be obtained from /bans.</p>
20269
- * <h2>Device Cookie Validation</h2>
20270
- * <p><i><b>For grant type "password" only</b></i></p>
20271
- * <p>Device Cookie is used to protect the user account from brute force login attack, <a target="_blank" href="https://owasp.org/www-community/Slow_Down_Online_Guessing_Attacks_with_Device_Cookies">more detail from OWASP<a>.</p>
20272
- * <p>This method will read device cookie from request header <b>Auth-Trust-Id</b>. If device cookie not found, it will generate a new one and set it into response body <b>auth_trust_id</b> when successfully login.</p>
20273
- * <h2>Track Login History</h2>
20274
- * <p>This method will track login history to detect suspicious login activity, please provide <b>Device-Id</b> (alphanumeric) in request header parameter otherwise it will set to "unknown".</p>
20275
- * <p>Align with General Data Protection Regulation in Europe, user login history will be kept within 28 days by default"</p>
20276
- * <h2>2FA remember device</h2>
20277
- * <p>To remember device for 2FA, should provide cookie: device_token or header: Device-Token</p>
20278
- * <p>action code: 10703
20303
+ * ##Access Token Content
20304
+ * Following is the access token’s content:
20305
+ *
20306
+ * -
20307
+ * __namespace__. It is the namespace the token was generated from.
20308
+ *
20309
+ * -
20310
+ * __display_name__. The display name of the sub. It is empty if the token is generated from the client credential
20311
+ *
20312
+ * -
20313
+ * __roles__. The sub’s roles. It is empty if the token is generated from the client credential
20314
+ *
20315
+ * -
20316
+ * __namespace_roles__. The sub’s roles scoped to namespace. Improvement from roles, which make the role scoped to specific namespace instead of global to publisher namespace
20317
+ *
20318
+ * -
20319
+ * __permissions__. The sub or aud’ permissions
20320
+ *
20321
+ * -
20322
+ * __bans__. The sub’s list of bans. It is used by the IAM client for validating the token.
20323
+ *
20324
+ * -
20325
+ * __jflgs__. It stands for Justice Flags. It is a special flag used for storing additional status information regarding the sub. It is implemented as a bit mask. Following explains what each bit represents:
20326
+ *
20327
+ * - 1: Email Address Verified
20328
+ * - 2: Phone Number Verified
20329
+ * - 4: Anonymous
20330
+ * - 8: Suspicious Login
20331
+ *
20332
+ *
20333
+ * -
20334
+ * __aud__. The aud is the targeted resource server.
20335
+ *
20336
+ * -
20337
+ * __iat__. The time the token issues at. It is in Epoch time format
20338
+ *
20339
+ * -
20340
+ * __exp__. The time the token expires. It is in Epoch time format
20341
+ *
20342
+ * -
20343
+ * __client_id__. The UserID. The sub is omitted if the token is generated from client credential
20344
+ *
20345
+ * -
20346
+ * __scope__. The scope of the access request, expressed as a list of space-delimited, case-sensitive strings
20347
+ *
20348
+ *
20349
+ * ##Bans
20350
+ * The JWT contains user's active bans with its expiry date. List of ban types can be obtained from /bans.
20351
+ * ##Device Cookie Validation
20352
+ * __For grant type "password" only__
20353
+ * Device Cookie is used to protect the user account from brute force login attack,
20354
+ * [more detail from OWASP](https://owasp.org/www-community/Slow_Down_Online_Guessing_Attacks_with_Device_Cookies)
20355
+ * This method will read device cookie from request header __Auth-Trust-Id__. If device cookie not found, it will generate a new one and set it into response body __auth_trust_id__ when successfully login.
20356
+ * ##Track Login History
20357
+ * This method will track login history to detect suspicious login activity, please provide __Device-Id__ (alphanumeric) in request header parameter otherwise it will set to "unknown".
20358
+ * Align with General Data Protection Regulation in Europe, user login history will be kept within 28 days by default"
20359
+ * ##2FA remember device
20360
+ * To remember device for 2FA, should provide cookie: device_token or header: Device-Token
20361
+ * action code: 10703
20279
20362
  */
20280
20363
  this.loginWithAuthorizationCode = async ({ code, codeVerifier }) => {
20281
20364
  const deviceId = SdkDevice.getDeviceId();
@@ -20292,7 +20375,7 @@ class UserAuthorization {
20292
20375
  const axios = Network.create(config);
20293
20376
  const data = {
20294
20377
  grant_type: 'authorization_code',
20295
- code: code,
20378
+ code,
20296
20379
  code_verifier: codeVerifier,
20297
20380
  client_id: this.options.clientId,
20298
20381
  redirect_uri: this.options.redirectURI
@@ -20307,25 +20390,58 @@ class UserAuthorization {
20307
20390
  CodeChallenge.clear();
20308
20391
  return { ...result, mfaData };
20309
20392
  };
20393
+ /**
20394
+ * @internal
20395
+ */
20310
20396
  this.getMfaDataFromError = (errorResponse) => {
20311
20397
  const doesMFADataExist = Validate.safeParse(errorResponse.data, MFADataResponse);
20312
20398
  if (!doesMFADataExist)
20313
20399
  return;
20314
- // eslint-disable-next-line camelcase
20315
- const { mfa_token, factors, default_factor, email } = errorResponse.data;
20316
- const result = { mfaToken: mfa_token, factors, defaultFactor: default_factor, email };
20400
+ const { mfa_token: mfaToken, factors, default_factor: defaultFactor, email } = errorResponse.data;
20401
+ const result = { mfaToken, factors, defaultFactor, email };
20317
20402
  if (BrowserHelper.isOnBrowser()) {
20318
20403
  localStorage.setItem(MFA_DATA_STORAGE_KEY, JSON.stringify(result));
20319
20404
  }
20320
20405
  return result;
20321
20406
  };
20407
+ /**
20408
+ * @internal
20409
+ */
20322
20410
  this.getMfaDataFromStorage = () => {
20323
20411
  const storedMFAData = BrowserHelper.isOnBrowser() && localStorage.getItem(MFA_DATA_STORAGE_KEY);
20324
20412
  return storedMFAData ? JSON.parse(storedMFAData) : null;
20325
20413
  };
20414
+ /**
20415
+ * @internal
20416
+ */
20326
20417
  this.removeMfaDataFromStorage = () => {
20327
20418
  localStorage.removeItem(MFA_DATA_STORAGE_KEY);
20328
20419
  };
20420
+ /**
20421
+ * @internal
20422
+ */
20423
+ this.matchReceivedState = (maybeSentState) => {
20424
+ const sentStateResult = CodeChallenge.parseSentState(maybeSentState);
20425
+ if (sentStateResult.error)
20426
+ return { error: sentStateResult.error, result: null };
20427
+ const storedStateResult = CodeChallenge.load();
20428
+ if (storedStateResult.error)
20429
+ return { error: storedStateResult.error, result: null };
20430
+ const sentState = sentStateResult.sentState;
20431
+ const storedState = storedStateResult.storedState;
20432
+ if (sentState.csrf !== storedState.csrf)
20433
+ return { error: null, result: null };
20434
+ return {
20435
+ error: null,
20436
+ result: {
20437
+ payload: sentState.payload,
20438
+ codeVerifier: storedState.codeVerifier
20439
+ }
20440
+ };
20441
+ };
20442
+ /**
20443
+ * @internal
20444
+ */
20329
20445
  this.deduceLoginError = (error) => {
20330
20446
  switch (error) {
20331
20447
  case LoginErrorParam.Enum.login_session_expired:
@@ -20367,6 +20483,11 @@ class UserAuthorization {
20367
20483
  returnPath
20368
20484
  };
20369
20485
  };
20486
+ /**
20487
+ * GET [/iam/v3/oauth/authorize](api)
20488
+ *
20489
+ * Creates a URL to be used for Login, Register, Link to existing account or Twitch Link
20490
+ */
20370
20491
  this.createLoginURL = (returnPath, targetAuthPage, oneTimeLinkCode) => {
20371
20492
  const { verifier, challenge } = CodeChallenge.generateChallenge();
20372
20493
  const csrf = CodeChallenge.generateCsrf();
@@ -20390,6 +20511,11 @@ class UserAuthorization {
20390
20511
  const url = new URL(UrlHelper.combineURLPaths(this.options.baseURL, `${AUTHORIZE_URL}?${searchParams.toString()}`));
20391
20512
  return url.toString();
20392
20513
  };
20514
+ /**
20515
+ * GET [/iam/v3/oauth/authorize](api)
20516
+ *
20517
+ * Creates a URL to be used for password recovery
20518
+ */
20393
20519
  this.createForgotPasswordURL = () => {
20394
20520
  const { verifier, challenge } = CodeChallenge.generateChallenge();
20395
20521
  const csrf = CodeChallenge.generateCsrf();
@@ -20408,9 +20534,15 @@ class UserAuthorization {
20408
20534
  const url = new URL(UrlHelper.combineURLPaths(this.options.baseURL, `${AUTHORIZE_URL}?${searchParams.toString()}`));
20409
20535
  return url.toString();
20410
20536
  };
20537
+ /**
20538
+ * @internal
20539
+ */
20411
20540
  this.getCodeChallenge = () => {
20412
20541
  return CodeChallenge.generateChallenge();
20413
20542
  };
20543
+ /**
20544
+ * @internal
20545
+ */
20414
20546
  this.refreshToken = () => {
20415
20547
  const { clientId, refreshToken } = this.options;
20416
20548
  if (DesktopChecker.isDesktopApp()) {
@@ -20418,6 +20550,9 @@ class UserAuthorization {
20418
20550
  }
20419
20551
  return refreshWithLock({ axiosConfig: this.conf, clientId });
20420
20552
  };
20553
+ /**
20554
+ * @internal
20555
+ */
20421
20556
  this.getSearchParams = (sentState, challenge) => {
20422
20557
  const searchParams = new URLSearchParams();
20423
20558
  searchParams.append('response_type', 'code');
@@ -20429,25 +20564,6 @@ class UserAuthorization {
20429
20564
  return searchParams;
20430
20565
  };
20431
20566
  }
20432
- matchReceivedState(maybeSentState) {
20433
- const sentStateResult = CodeChallenge.parseSentState(maybeSentState);
20434
- if (sentStateResult.error)
20435
- return { error: sentStateResult.error, result: null };
20436
- const storedStateResult = CodeChallenge.load();
20437
- if (storedStateResult.error)
20438
- return { error: storedStateResult.error, result: null };
20439
- const sentState = sentStateResult.sentState;
20440
- const storedState = storedStateResult.storedState;
20441
- if (sentState.csrf !== storedState.csrf)
20442
- return { error: null, result: null };
20443
- return {
20444
- error: null,
20445
- result: {
20446
- payload: sentState.payload,
20447
- codeVerifier: storedState.codeVerifier
20448
- }
20449
- };
20450
- }
20451
20567
  }
20452
20568
  function isAxiosError(error) {
20453
20569
  return !!error && !!error.config;
@@ -20856,12 +20972,18 @@ class OAuthApi {
20856
20972
  this.cache = cache;
20857
20973
  this.options = options;
20858
20974
  /**
20859
- * <p>This method is used to remove <b>access_token</b>, <b>refresh_token</b> from cookie and revoke token from usage.</p>
20860
- * <p>Supported methods:</p>
20861
- * <ul>
20862
- * <li>VerifyToken to verify token from header</li>
20863
- * <li>AddTokenToRevocationList to revoke token with TTL</li>
20864
- * </ul>
20975
+ * @internal
20976
+ */
20977
+ this.newOAuth20Extension = () => {
20978
+ return new OAuth20Extension$(Network.create(this.conf), this.namespace, this.cache);
20979
+ };
20980
+ /**
20981
+ * POST [/iam/v3/logout](api)
20982
+ *
20983
+ * This method is used to remove __access_token__, __refresh_token__ from cookie and revoke token from usage.
20984
+ * Supported methods:
20985
+ * - VerifyToken to verify token from header
20986
+ * - AddTokenToRevocationList to revoke token with TTL
20865
20987
  */
20866
20988
  this.logout = () => {
20867
20989
  const axios = Network.create({
@@ -20873,8 +20995,10 @@ class OAuthApi {
20873
20995
  return new OAuth20Extension$(axios, this.namespace, this.cache).postIamV3Logout();
20874
20996
  };
20875
20997
  /**
20876
- * <p>This method revokes a token.</p>
20877
- * <p>This method requires authorized requests header with Basic Authentication from client that establish the token.</p><br>action code: 10706
20998
+ * POST [/iam/v3/oauth/revoke](api)
20999
+ *
21000
+ * This method revokes a token.
21001
+ * This method requires authorized requests header with Basic Authentication from client that establish the token.action code: 10706
20878
21002
  */
20879
21003
  this.revoke = ({ token }) => {
20880
21004
  const axios = Network.create({
@@ -20888,10 +21012,12 @@ class OAuthApi {
20888
21012
  return new OAuth20$(axios, this.namespace, this.cache).postIamV3OauthRevoke({ token });
20889
21013
  };
20890
21014
  /**
20891
- * Verify 2FA code<br/>
20892
- * <p>This method is used for verifying 2FA code.</p>
20893
- * <h2>2FA remember device</h2>
20894
- * <p>To remember device for 2FA, should provide cookie: device_token or header: Device-Token</p>
21015
+ * POST [/iam/v3/oauth/mfa/verify](api)
21016
+ *
21017
+ * Verify 2FA code
21018
+ * This method is used for verifying 2FA code.
21019
+ * ##2FA remember device
21020
+ * To remember device for 2FA, should provide cookie: device_token or header: Device-Token
20895
21021
  *
20896
21022
  */
20897
21023
  this.verify2FA = async ({ factor, code, mfaToken = null, rememberDevice }) => {
@@ -20903,6 +21029,9 @@ class OAuthApi {
20903
21029
  localStorage.removeItem(MFA_DATA_STORAGE_KEY);
20904
21030
  return result.response;
20905
21031
  };
21032
+ /**
21033
+ * POST [/iam/v3/oauth/mfa/code](api)
21034
+ */
20906
21035
  this.request2FAEmailCode = async ({ mfaToken = null, factor }) => {
20907
21036
  const result = await this.newInstance().postIamV3OauthMfaCode({ mfaToken, clientId: this.options.clientId, factor });
20908
21037
  if (result.error)
@@ -20910,70 +21039,72 @@ class OAuthApi {
20910
21039
  return result.response;
20911
21040
  };
20912
21041
  /**
20913
- * <p>This method get country location based on the request.</p>
21042
+ * GET [/iam/v3/location/country](api)
21043
+ *
21044
+ * This method get country location based on the request.
20914
21045
  */
20915
21046
  this.getCurrentLocationCountry = () => {
20916
21047
  return this.newOAuth20Extension().fetchIamV3LocationCountry();
20917
21048
  };
20918
21049
  /**
20919
- * Retrieve User Third Party Platform Token<br/>
20920
- * <p>
21050
+ * GET [/iam/v3/oauth/namespaces/{namespace}/users/{userId}/platforms/{platformId}/platformToken](api)
21051
+ *
21052
+ * Retrieve User Third Party Platform Token
21053
+ *
20921
21054
  * This method used for retrieving third party platform token for user that login using third party,
20922
21055
  * if user have not link requested platform in game namespace, will try to retrieving third party platform token from publisher namespace.
20923
21056
  * Passing platform group name or it's member will return same access token that can be used across the platform members.
20924
- * </p>
20925
- * <p>The third party platform and platform group covered for this is:</p>
20926
- * <ul>
20927
- * <li>(psn) ps4web</li>
20928
- * <li>(psn) ps4</li>
20929
- * <li>(psn) ps5</li>
20930
- * <li>epicgames</li>
20931
- * <li>twitch</li>
20932
- * <li>awscognito</li>
20933
- * </ul>
21057
+ *
21058
+ * The third party platform and platform group covered for this is:
21059
+ * - (psn) ps4web
21060
+ * - (psn) ps4
21061
+ * - (psn) ps5
21062
+ * - epicgames
21063
+ * - twitch
21064
+ * - awscognito
21065
+ *
20934
21066
  */
20935
21067
  this.getThirdPartyPlatformToken = (userId, platformId) => {
20936
21068
  return this.newInstance().fetchV3OauthUsersByUseridPlatformsByPlatformidPlatformToken(userId, platformId);
20937
21069
  };
20938
21070
  /**
21071
+ * POST [/iam/v3/authenticateWithLink](api)
21072
+ *
20939
21073
  * This method is being used to authenticate a user account and perform platform link.
20940
21074
  * It validates user's email / username and password.
20941
- * If user already enable 2FA, then invoke <i>/mfa/verify</i> using <b>mfa_token</b> from this method response.
21075
+ * If user already enable 2FA, then invoke _/mfa/verify_ using __mfa_token__ from this method response.
20942
21076
  *
20943
- * <h2>Device Cookie Validation</h2>
21077
+ * ##Device Cookie Validation
20944
21078
  *
20945
- * Device Cookie is used to protect the user account from brute force login attack, <a target="_blank" href="https://owasp.org/www-community/Slow_Down_Online_Guessing_Attacks_with_Device_Cookies">more detail from OWASP<a>.
20946
- * This method will read device cookie from cookie <b>auth-trust-id</b>. If device cookie not found, it will generate a new one and set it into cookie when successfully authenticate.
21079
+ * Device Cookie is used to protect the user account from brute force login attack,
21080
+ * [more detail from OWASP](https://owasp.org/www-community/Slow_Down_Online_Guessing_Attacks_with_Device_Cookies).
21081
+ * This method will read device cookie from cookie __auth-trust-id__. If device cookie not found, it will generate a new one and set it into cookie when successfully authenticate.
20947
21082
  *
20948
21083
  */
20949
21084
  this.authenticateWithLink = (data) => {
20950
21085
  return this.newOAuth20Extension().postIamV3AuthenticateWithLink(data);
20951
21086
  };
20952
- }
20953
- /**
20954
- * @internal
20955
- */
20956
- newOAuth20Extension() {
20957
- return new OAuth20Extension$(Network.create(this.conf), this.namespace, this.cache);
20958
- }
20959
- /**
20960
- * This method is being used to validate one time link code.
20961
- * It require a valid user token.
20962
- * Should specify the target platform id and current user should already linked to this platform.
20963
- * Current user should be a headless account.
20964
- *
20965
- */
20966
- validateOneTimeLinkCode(data) {
20967
- return this.newOAuth20Extension().postIamV3LinkCodeValidate(data);
20968
- }
20969
- /**
20970
- * This method is being used to generate user's token by one time link code.
20971
- * It require publisher ClientID
20972
- * It required a code which can be generated from <strong>/iam/v3/link/code/request</strong>.<br>
20973
- *
20974
- */
20975
- exchangeTokenByOneTimeLinkCode(data) {
20976
- return this.newOAuth20Extension().postIamV3LinkTokenExchange(data);
21087
+ /**
21088
+ * POST [/iam/v3/link/code/validate](api)
21089
+ *
21090
+ * This method is being used to validate one time link code.
21091
+ * It require a valid user token.
21092
+ * Should specify the target platform id and current user should already linked to this platform.
21093
+ * Current user should be a headless account.
21094
+ */
21095
+ this.validateOneTimeLinkCode = (data) => {
21096
+ return this.newOAuth20Extension().postIamV3LinkCodeValidate(data);
21097
+ };
21098
+ /**
21099
+ * POST [/iam/v3/link/token/exchange](api)
21100
+ *
21101
+ * This method is being used to generate user's token by one time link code.
21102
+ * It require publisher ClientID
21103
+ * It required a code which can be generated from __/iam/v3/link/code/request__.
21104
+ */
21105
+ this.exchangeTokenByOneTimeLinkCode = (data) => {
21106
+ return this.newOAuth20Extension().postIamV3LinkTokenExchange(data);
21107
+ };
20977
21108
  }
20978
21109
  newInstance() {
20979
21110
  return new OAuth20$(Network.create(this.conf), this.namespace, this.cache);
@@ -21052,6 +21183,8 @@ class ThirdPartyCredentialApi {
21052
21183
  this.namespace = namespace;
21053
21184
  this.cache = cache;
21054
21185
  /**
21186
+ * GET [/iam/v3/public/namespaces/{namespace}/platforms/clients/active](api)
21187
+ *
21055
21188
  * This is the Public API to Get All Active 3rd Platform Credential.
21056
21189
  */
21057
21190
  this.getThirdPartyPlatformInfo = () => {
@@ -21553,85 +21686,112 @@ class TwoFA {
21553
21686
  this.namespace = namespace;
21554
21687
  this.cache = cache;
21555
21688
  /**
21556
- * <p>This method is used to get 8-digits backup codes.
21557
- * Each code is a one-time code and will be deleted once used.</p>
21558
- * <p>This method Requires valid user access token</p>
21689
+ * GET [/iam/v4/public/namespaces/{namespace}/users/me/mfa/backupCode](api)
21690
+ *
21691
+ * This method is used to get 8-digits backup codes.
21692
+ * Each code is a one-time code and will be deleted once used.
21559
21693
  *
21694
+ * _Requires a valid user access token_
21560
21695
  */
21561
21696
  this.getBackupCode = () => {
21562
21697
  return this.newInstance().fetchV4NsUsersMeMfaBackupCode();
21563
21698
  };
21564
21699
  /**
21565
- * <p>This method is used to enable 2FA backup codes.</p>
21566
- * <p>This method Requires valid user access token</p>
21700
+ * POST [/iam/v4/public/namespaces/{namespace}/users/me/mfa/backupCode/enable](api)
21701
+ *
21702
+ * This method is used to enable 2FA backup codes.
21567
21703
  *
21704
+ * _Requires a valid user access token_
21568
21705
  */
21569
21706
  this.enable2FABackupCodes = () => {
21570
21707
  return this.newInstance().postV4NsUsersMeMfaBackupCodeEnable();
21571
21708
  };
21572
21709
  /**
21573
- * <p>This method is used to enable 2FA backup codes.</p>
21574
- * <p>This method Requires valid user access token</p>
21710
+ * POST [/iam/v4/public/namespaces/{namespace}/users/me/mfa/backupCode](api)
21575
21711
  *
21712
+ * This method is used to enable 2FA backup codes.
21713
+ *
21714
+ * _Requires a valid user access token_
21576
21715
  */
21577
21716
  this.generateBackupCodes = () => {
21578
21717
  return this.newInstance().postV4NsUsersMeMfaBackupCode();
21579
21718
  };
21580
21719
  /**
21581
- * <p>This method is used to enable 2FA backup codes.</p>
21582
- * <p>This method Requires valid user access token</p>
21720
+ * DELETE [/iam/v4/public/namespaces/{namespace}/users/me/mfa/backupCode/disable](api)
21721
+ *
21722
+ * This method is used to enable 2FA backup codes.
21583
21723
  *
21724
+ * _Requires a valid user access token_
21584
21725
  */
21585
21726
  this.disableBackupCodes = () => {
21586
21727
  return this.newInstance().deleteV4NsUsersMeMfaBackupCodeDisable();
21587
21728
  };
21588
21729
  /**
21589
- * <p>This method is used to disable 2FA authenticator.</p>
21590
- * <p>This method Requires valid user access token</p>
21730
+ * DELETE [/iam/v4/public/namespaces/{namespace}/users/me/mfa/authenticator/disable](api)
21731
+ * }
21732
+ * This method is used to disable 2FA authenticator.
21591
21733
  *
21734
+ * _Requires a valid user access token_
21592
21735
  */
21593
21736
  this.disableAuthenticator = () => {
21594
21737
  return this.newInstance().deleteV4NsUsersMeMfaAuthenticatorDisable();
21595
21738
  };
21596
21739
  /**
21597
- * <p>This method is used to get user enabled factors.</p>
21598
- * <p>This method Requires valid user access token</p>
21740
+ * GET [/iam/v4/public/namespaces/{namespace}/users/me/mfa/factor](api)
21599
21741
  *
21742
+ * This method is used to get user enabled factors.
21743
+ *
21744
+ * _Requires a valid user access token_
21600
21745
  */
21601
21746
  this.getEnabledMethods = () => {
21602
21747
  return this.newInstance().fetchV4NsUsersMeMfaFactor();
21603
21748
  };
21604
21749
  /**
21605
- * <p>This method is used to make 2FA factor default.</p>
21606
- * <p>This method Requires valid user access token</p>
21750
+ * POST [/iam/v4/public/namespaces/{namespace}/users/me/mfa/factor](api)
21751
+ *
21752
+ * This method is used to make 2FA factor default.
21607
21753
  *
21754
+ * _Requires a valid user access token_
21608
21755
  */
21609
21756
  this.set2FAAsDefault = (factor) => {
21610
21757
  return this.newInstance().postV4NsUsersMeMfaFactor({ factor });
21611
21758
  };
21612
21759
  /**
21613
- * <p>This method is used to enable 2FA authenticator.</p>
21614
- * <p>This method Requires valid user access token</p>
21760
+ * POST [/iam/v4/public/namespaces/{namespace}/users/me/mfa/authenticator/enable](api)
21615
21761
  *
21762
+ * This method is used to enable 2FA authenticator.
21763
+ *
21764
+ * _Requires a valid user access token_
21616
21765
  */
21617
21766
  this.enable2FAAuthenticator = (code) => {
21618
21767
  return this.newInstance().postV4NsUsersMeMfaAuthenticatorEnable({ code });
21619
21768
  };
21620
21769
  /**
21621
- * <p>This method is used to generate a secret key for 3rd-party authenticator app.
21622
- * A QR code URI is also returned so that frontend can generate QR code image.</p>
21623
- * <p>This method Requires valid user access token</p>
21770
+ * POST [/iam/v4/public/namespaces/{namespace}/users/me/mfa/authenticator/key](api)
21771
+ *
21772
+ * This method is used to generate a secret key for 3rd-party authenticator app.
21773
+ * A QR code URI is also returned so that frontend can generate QR code image.
21624
21774
  *
21775
+ * _Requires a valid user access token_
21625
21776
  */
21626
21777
  this.generateSecretKey = () => {
21627
21778
  return this.newInstance().postV4NsUsersMeMfaAuthenticatorKey();
21628
21779
  };
21780
+ /**
21781
+ * POST [/iam/v4/public/namespaces/{namespace}/users/me/mfa/email/code](api)
21782
+ */
21629
21783
  this.requestEmailCode = () => {
21630
21784
  return this.newInstance().postV4NsUsersMeMfaEmailCode();
21631
21785
  };
21786
+ /**
21787
+ * POST [/iam/v4/public/namespaces/{namespace}/users/me/mfa/email/enable](api)
21788
+ */
21632
21789
  this.enableEmailMethod = (code) => {
21633
21790
  return this.newInstance().postV4NsUsersMeMfaEmailEnable({ code });
21634
21791
  };
21792
+ /**
21793
+ * POST [/iam/v4/public/namespaces/{namespace}/users/me/mfa/email/disable](api)
21794
+ */
21635
21795
  this.disableEmailMethod = () => {
21636
21796
  return this.newInstance().postV4NsUsersMeMfaEmailDisable();
21637
21797
  };
@@ -22845,295 +23005,326 @@ class UserApi {
22845
23005
  this.namespace = namespace;
22846
23006
  this.cache = cache;
22847
23007
  /**
22848
- * get currently logged in user
23008
+ * GET [/iam/v3/public/users/me](api)
23009
+ *
23010
+ * get currently logged-in user
22849
23011
  */
22850
23012
  this.getCurrentUser = () => {
22851
23013
  return this.newInstance().fetchIamV3PublicUsersMe();
22852
23014
  };
22853
23015
  /**
22854
- * update current user
23016
+ * PATCH [/iam/v3/public/namespaces/{namespace}/users/me](api)
23017
+ *
23018
+ * Update current user
22855
23019
  */
22856
23020
  this.updateUserMe = (data) => {
22857
23021
  return this.newInstance().patchV3NsUsersMe(data);
22858
23022
  };
22859
23023
  /**
23024
+ * PUT [/iam/v4/public/namespaces/{namespace}/users/me/email](api)
23025
+ *
22860
23026
  * update current user's email
22861
23027
  */
22862
23028
  this.updateEmailMe = (data) => {
22863
23029
  return this.newInstance4().putV4NsUsersMeEmail(data);
22864
23030
  };
22865
23031
  /**
23032
+ * PUT [/iam/v3/public/namespaces/{namespace}/users/me/password](api)
23033
+ *
22866
23034
  * update current user's password
22867
23035
  */
22868
23036
  this.updatePasswordMe = (data) => {
22869
23037
  return this.newInstance().putV3NsUsersMePassword(data);
22870
23038
  };
22871
23039
  /**
23040
+ * POST [/iam/v3/public/namespaces/{namespace}/users/me/code/request](api)
23041
+ *
22872
23042
  * Required valid user authorization
22873
- * <p>The verification code is sent to email address</p>
22874
- * <p>Available contexts for use : </p>
22875
- * <ol>
22876
- * <li>
22877
- * <strong>UserAccountRegistration</strong>
22878
- * <p>a context type used for verifying email address in user account registration. It returns 409 if the email address already verified.
22879
- * <strong><em>It is the default context if the Context field is empty</em></strong></p>
22880
- * </li>
22881
- * <li>
22882
- * <strong>UpdateEmailAddress</strong>
22883
- * <p>a context type used for verify user before updating email address.(Without email address verified checking)</p>
22884
- * </li>
22885
- * <li><strong>upgradeHeadlessAccount</strong>
22886
- * <p>The context is intended to be used whenever the email address wanted to be automatically verified on upgrading a headless account.
22887
- * If this context used, IAM rejects the request if the email address is already used by others by returning HTTP Status Code 409.</p>
22888
- * </li>
22889
- * </ol>
22890
- * <p>action code: 10116</p>
23043
+ * The verification code is sent to email address
23044
+ * Available contexts for use :
23045
+ * -
23046
+ * __UserAccountRegistration__
23047
+ * a context type used for verifying email address in user account registration. It returns 409 if the email address already verified.
23048
+ * __It is the default context if the Context field is empty__
23049
+ *
23050
+ * -
23051
+ * __UpdateEmailAddress__
23052
+ * a context type used for verify user before updating email address.(Without email address verified checking)
23053
+ *
23054
+ * - __upgradeHeadlessAccount__
23055
+ * The context is intended to be used whenever the email address wanted to be automatically verified on upgrading a headless account.
23056
+ * If this context used, IAM rejects the request if the email address is already used by others by returning HTTP Status Code 409.
23057
+ * action code: 10116
22891
23058
  *
22892
23059
  */
22893
23060
  this.requestVerificationCode = (data) => {
22894
23061
  return this.newInstance().postV3NsUsersMeCodeRequest(data);
22895
23062
  };
22896
23063
  /**
22897
- * <p>Will consume code if validateOnly is set false</p>
22898
- * <p>Required valid user authorization</p>
22899
- * <p>Redeems a verification code sent to a user to verify the user's contact address is correct</p>
22900
- * <p>Available ContactType : <b>email</b></p>
22901
- * <p>action code: 10107</p>
23064
+ * POST [/iam/v3/public/namespaces/{namespace}/users/me/code/verify](api)
23065
+ *
23066
+ * Will consume code if validateOnly is set false
23067
+ * Required valid user authorization
23068
+ * Redeems a verification code sent to a user to verify the user's contact address is correct
23069
+ * Available ContactType : __email__
23070
+ * action code: 10107
22902
23071
  *
22903
23072
  */
22904
23073
  this.verifyCode = (data) => {
22905
23074
  return this.newInstance().postV3NsUsersMeCodeVerify(data);
22906
23075
  };
22907
23076
  /**
22908
- * <p>If validateOnly is set false, consume code and upgrade headless account and automatically verified the email address if it is succeeded</p>
23077
+ * POST [/iam/v3/public/namespaces/{namespace}/users/me/headless/code/verify](api)
23078
+ *
23079
+ * If validateOnly is set false, consume code and upgrade headless account and automatically verified the email address if it is succeeded
22909
23080
  * Require valid user access token.
22910
- * <p>The method upgrades a headless account by linking the headless account with the email address and the password.
22911
- * By upgrading the headless account into a full account, the user could use the email address and password for using Justice IAM. </p>
22912
- * <p>The method is a shortcut for upgrading a headless account and verifying the email address in one call.
22913
- * In order to get a verification code for the method, please check the send verification code method.</p>
22914
- * <p>This method also have an ability to update user data (if the user data field is specified) right after the upgrade account process is done.<br/>
23081
+ * The method upgrades a headless account by linking the headless account with the email address and the password.
23082
+ * By upgrading the headless account into a full account, the user could use the email address and password for using Justice IAM.
23083
+ * The method is a shortcut for upgrading a headless account and verifying the email address in one call.
23084
+ * In order to get a verification code for the method, please check the send verification code method.
23085
+ * This method also have an ability to update user data (if the user data field is specified) right after the upgrade account process is done.
22915
23086
  * Supported user data fields :
22916
- * <ul>
22917
- * <li>displayName</li>
22918
- * <li>dateOfBirth : format YYYY-MM-DD, e.g. 2019-04-29</li>
22919
- * <li>country : format ISO3166-1 alpha-2 two letter, e.g. US</li>
22920
- * </ul>
22921
- * <br>action code : 10124</p>
23087
+ *
23088
+ * - displayName
23089
+ * - dateOfBirth : format YYYY-MM-DD, e.g. 2019-04-29
23090
+ * - country : format ISO3166-1 alpha-2 two letter, e.g. US
23091
+ *
23092
+ * action code : 10124
22922
23093
  */
22923
23094
  this.upgradeHeadlessAccount = (data) => {
22924
23095
  return this.newInstance().postV3NsUsersMeHeadlessCodeVerify(data);
22925
23096
  };
22926
23097
  /**
23098
+ * POST [/iam/v4/public/namespaces/{namespace}/users/me/headless/code/verify](api)
23099
+ *
22927
23100
  * Require valid user access token.
22928
23101
  * The method upgrades a headless account by linking the headless account with the email address, username, and password.
22929
23102
  * By upgrading the headless account into a full account, the user could use the email address, username, and password for using Justice IAM.
22930
- * <br>
23103
+ *
22931
23104
  * The method is a shortcut for upgrading a headless account and verifying the email address in one call.
22932
- * In order to get a verification code for the method, please check the <a href="#operations-Users-PublicSendVerificationCodeV3">send verification code method</a>.
22933
- * <br>
23105
+ *
22934
23106
  * This method also have an ability to update user data (if the user data field is specified) right after the upgrade account process is done.
22935
23107
  * Supported user data fields:
22936
- * <ul>
22937
- * <li>displayName</li>
22938
- * <li>dateOfBirth : format YYYY-MM-DD, e.g. 2019-04-29</li>
22939
- * <li>country : format ISO3166-1 alpha-2 two letter, e.g. US</li>
22940
- * </ul>
23108
+ *
23109
+ * - displayName
23110
+ * - dateOfBirth : format YYYY-MM-DD, e.g. 2019-04-29
23111
+ * - country : format ISO3166-1 alpha-2 two letter, e.g. US
23112
+ *
22941
23113
  * action code : 10124
22942
23114
  */
22943
23115
  this.upgradeHeadlessAccountV4 = (data) => {
22944
23116
  return this.newInstance4().postV4NsUsersMeHeadlessCodeVerify(data);
22945
23117
  };
22946
23118
  /**
22947
- * <p>This method retrieves platform accounts linked to user. Required valid user authorization.
22948
- * <br>action code: 10128 </p>
23119
+ * GET [/iam/v3/public/namespaces/{namespace}/users/{userId}/platforms](api)
23120
+ *
23121
+ * This method retrieves platform accounts linked to user. Required valid user authorization.
23122
+ * action code: 10128
22949
23123
  */
22950
23124
  this.getUserLinkedPlatform = (userId) => {
22951
23125
  return this.newInstance().fetchV3NsUsersByUseridPlatforms(userId);
22952
23126
  };
22953
23127
  /**
23128
+ * POST [/iam/v3/public/namespaces/{namespace}/users/me/platforms/{platformId}](api)
23129
+ *
22954
23130
  * Required valid user authorization.
22955
- * <p><br><b>Prerequisite:</b>
23131
+ * __Prerequisite:__
22956
23132
  * Platform client configuration need to be added to database for specific platformId. Namespace service URL need to be specified (refer to required environment variables).
22957
- * <h2>Supported platforms:</h2>
22958
- * <ul>
22959
- * <li><strong>steam</strong>: The ticket’s value is the authentication code returned by Steam.</li>
22960
- * <li><strong>steamopenid</strong>: Steam's user authentication method using OpenID 2.0. The ticket's value is URL generated by Steam on web authentication</li>
22961
- * <li><strong>facebook</strong>: The ticket’s value is the authorization code returned by Facebook OAuth</li>
22962
- * <li><strong>google</strong>: The ticket’s value is the authorization code returned by Google OAuth</li>
22963
- * <li><strong>oculus</strong>: The ticket’s value is a string composed of Oculus's user ID and the nonce separated by a colon (:).</li>
22964
- * <li><strong>twitch</strong>: The ticket’s value is the authorization code returned by Twitch OAuth.</li>
22965
- * <li><strong>android</strong>: The ticket's value is the Android’s device ID</li>
22966
- * <li><strong>ios</strong>: The ticket's value is the iOS’s device ID.</li>
22967
- * <li><strong>apple</strong>: The ticket’s value is the authorization code returned by Apple OAuth.</li>
22968
- * <li><strong>device</strong>: Every device that doesn't run Android and iOS is categorized as a device platform. The ticket's value is the device’s ID.</li>
22969
- * <li><strong>discord</strong>: The ticket’s value is the authorization code returned by Discord OAuth.</li>
22970
- * <li><strong>ps4web</strong>: The ticket’s value is the authorization code returned by PSN OAuth.</li>
22971
- * <li><strong>xblweb</strong>: The ticket’s value is the authorization code returned by XBox Live OAuth.</li>
22972
- * <li><strong>awscognito</strong>: The ticket’s value is the aws cognito access token (JWT).</li>
22973
- * <li><strong>epicgames</strong>: The ticket’s value is an access-token obtained from Epicgames EOS Account Service.</li>
22974
- * <li><strong>nintendo</strong>: The ticket’s value is the authorization code(id_token) returned by Nintendo OAuth.</li>
22975
- * <li><strong>stadia</strong>: The ticket’s value is a JWT Token, which can be obtained after calling the Stadia SDK's function.</li>
22976
- * </ul>
22977
- * <br>action code : 10144
23133
+ * ##Supported platforms:
23134
+ *
23135
+ * - __steam__: The ticket’s value is the authentication code returned by Steam.
23136
+ * - __steamopenid__: Steam's user authentication method using OpenID 2.0. The ticket's value is URL generated by Steam on web authentication
23137
+ * - __facebook__: The ticket’s value is the authorization code returned by Facebook OAuth
23138
+ * - __google__: The ticket’s value is the authorization code returned by Google OAuth
23139
+ * - __oculus__: The ticket’s value is a string composed of Oculus's user ID and the nonce separated by a colon (:).
23140
+ * - __twitch__: The ticket’s value is the authorization code returned by Twitch OAuth.
23141
+ * - __android__: The ticket's value is the Android’s device ID
23142
+ * - __ios__: The ticket's value is the iOS’s device ID.
23143
+ * - __apple__: The ticket’s value is the authorization code returned by Apple OAuth.
23144
+ * - __device__: Every device that doesn't run Android and iOS is categorized as a device platform. The ticket's value is the device’s ID.
23145
+ * - __discord__: The ticket’s value is the authorization code returned by Discord OAuth.
23146
+ * - __ps4web__: The ticket’s value is the authorization code returned by PSN OAuth.
23147
+ * - __xblweb__: The ticket’s value is the authorization code returned by XBox Live OAuth.
23148
+ * - __awscognito__: The ticket’s value is the aws cognito access token (JWT).
23149
+ * - __epicgames__: The ticket’s value is an access-token obtained from Epicgames EOS Account Service.
23150
+ * - __nintendo__: The ticket’s value is the authorization code(id_token) returned by Nintendo OAuth.
23151
+ * - __stadia__: The ticket’s value is a JWT Token, which can be obtained after calling the Stadia SDK's function.
23152
+ *
23153
+ * action code : 10144
22978
23154
  */
22979
23155
  this.linkAccountToPlatform = ({ platformId, data }) => {
22980
23156
  return this.newInstance().postV3NsUsersMePlatformsByPlatformid(platformId, data);
22981
23157
  };
22982
23158
  /**
23159
+ * GET [/iam/v3/public/namespaces/{namespace}/requests/{requestId}/async/status](api)
23160
+ *
22983
23161
  * Get the linking status between a third-party platform to a user
22984
23162
  */
22985
23163
  this.getLinkRequestStatus = (requestId) => {
22986
23164
  return this.newInstance().fetchV3NsRequestsByRequestidAsyncStatus(requestId);
22987
23165
  };
22988
23166
  /**
22989
- * It is going to be <strong>DEPRECATED</strong>.
23167
+ * @internal
23168
+ * It is going to be __DEPRECATED__.
22990
23169
  * Update Platform Account relation to current User Account.
22991
23170
  * Note: Game progression data (statistics, reward, etc) associated with previous User Account will not be
22992
23171
  * transferred. If the data is tight to game user ID, the user will have the game progression data.
22993
- *
22994
23172
  */
22995
23173
  this.linkPlatformToUserAccount = ({ userId, data }) => {
22996
23174
  return this.newInstance().postV3NsUsersByUseridPlatformsLink(userId, data);
22997
23175
  };
22998
23176
  /**
23177
+ * DELETE [/iam/v3/public/namespaces/{namespace}/users/me/platforms/{platformId}](api)
23178
+ *
22999
23179
  * Required valid user authorization.
23000
- * <h2>Supported platforms:</h2>
23001
- * <ul>
23002
- * <li><strong>steam</strong></li>
23003
- * <li><strong>steamopenid</strong></li>
23004
- * <li><strong>facebook</strong></li>
23005
- * <li><strong>google</strong></li>
23006
- * <li><strong>oculus</strong></li>
23007
- * <li><strong>twitch</strong></li>
23008
- * <li><strong>android</strong></li>
23009
- * <li><strong>ios</strong></li>
23010
- * <li><strong>apple</strong></li>
23011
- * <li><strong>device</strong></li>
23012
- * <li><strong>discord</strong></li>
23013
- * <li><strong>awscognito</strong></li>
23014
- * <li><strong>epicgames</strong></li>
23015
- * <li><strong>nintendo</strong></li>
23016
- * <li><strong>stadia</strong></li>
23017
- * </ul>
23018
- * <p>Unlink user's account from a specific platform. 'justice' platform might have multiple accounts from different namespaces linked.
23019
- * <br><i>platformNamespace</i> need to be specified when the platform ID is 'justice'.
23020
- * <br>
23021
- * <br>Unlink user's account from justice platform will enable password token grant and password update.
23022
- * <br>
23023
- * <br>If you want to unlink user's account in a game namespace, you have to specify <i>platformNamespace</i> to that game namespace.
23024
- * <br>
23025
- * <br>action code : 10121 </p>
23180
+ * ##Supported platforms:
23181
+ *
23182
+ * - __steam__
23183
+ * - __steamopenid__
23184
+ * - __facebook__
23185
+ * - __google__
23186
+ * - __oculus__
23187
+ * - __twitch__
23188
+ * - __android__
23189
+ * - __ios__
23190
+ * - __apple__
23191
+ * - __device__
23192
+ * - __discord__
23193
+ * - __awscognito__
23194
+ * - __epicgames__
23195
+ * - __nintendo__
23196
+ * - __stadia__
23197
+ *
23198
+ * Unlink user's account from a specific platform. 'justice' platform might have multiple accounts from different namespaces linked.
23199
+ * _platformNamespace_ need to be specified when the platform ID is 'justice'.
23200
+ *
23201
+ * Unlink user's account from justice platform will enable password token grant and password update.
23202
+ *
23203
+ * If you want to unlink user's account in a game namespace, you have to specify _platformNamespace_ to that game namespace.
23204
+ *
23205
+ * action code : 10121
23026
23206
  */
23027
23207
  this.unLinkAccountFromPlatform = ({ platformId, data }) => {
23028
23208
  return this.newInstance().deleteV3NsUsersMePlatformsByPlatformid(platformId, data);
23029
23209
  };
23030
23210
  /**
23211
+ * GET [/iam/v3/public/namespaces/{namespace}/users/me/platforms/{platformId}/web/link](api)
23212
+ *
23031
23213
  * This method is used to generate third party login page which will redirected to establish method.
23032
23214
  */
23033
23215
  this.getThirdPartyURL = ({ platformId, queryParams }) => {
23034
23216
  return this.newInstance().fetchV3NsUsersMePlatformsByPlatformidWebLink(platformId, queryParams);
23035
23217
  };
23036
23218
  /**
23219
+ * GET [/iam/v3/public/namespaces/{namespace}/agerestrictions/countries/{countryCode}](api)
23220
+ *
23037
23221
  * Get age restriction by country code. It will always get by publisher namespace
23038
23222
  */
23039
23223
  this.getAgeRestrictionByCountry = (countryCode) => {
23040
23224
  return this.newInstance().fetchV3NsAgerestrictionsCountriesByCountrycode(countryCode);
23041
23225
  };
23042
- }
23043
- /**
23044
- * Render 2D Avatar via readyplayer.me (https://docs.readyplayer.me/ready-player-me/avatars/2d-avatars/render-api)
23045
- */
23046
- renderImageFromGlbModel(data) {
23047
- const axios = Network.create({
23048
- ...this.conf
23049
- });
23050
- return Validate.responseType(() => axios.post('https://render.readyplayer.me/render', data), ReadyPlayerMe);
23051
- }
23052
- // TODO: evaluate the use of this method. It looks too generic for a function that should notify game SDK
23053
- notifyGameSDK(url) {
23054
- const axios = Network.create({
23055
- ...this.conf
23056
- });
23057
- return Validate.responseType(() => axios.get(url), mod.string());
23058
- }
23059
- /**
23060
- * This method will validate the request's email address.
23061
- *
23062
- * If it already been used, will response 409.
23063
- *
23064
- * If it is available, we will send a verification code to this email address.
23065
- * This code can be verified by this <a href="#operations-Users-PublicVerifyRegistrationCode">method</a>.
23066
- *
23067
- */
23068
- requestNewUserVerificationCode(data) {
23069
- return this.newInstance().postV3NsUsersCodeRequest(data);
23070
- }
23071
- /**
23072
- * Create a new user with unique email address and username.
23073
- * <p>
23074
- * <b>Required attributes:</b>
23075
- * - authType: possible value is EMAILPASSWD
23076
- * - emailAddress: Please refer to the rule from /v3/public/inputValidations API.
23077
- * - username: Please refer to the rule from /v3/public/inputValidations API.
23078
- * - password: Please refer to the rule from /v3/public/inputValidations API.
23079
- * - country: ISO3166-1 alpha-2 two letter, e.g. US.
23080
- * - dateOfBirth: YYYY-MM-DD, e.g. 1990-01-01. valid values are between 1905-01-01 until current date.
23081
- * <br/>
23082
- * <b>Not required attributes:</b>
23083
- * - displayName: Please refer to the rule from /v3/public/inputValidations API.
23084
- * </p>
23085
- * <p>This method support accepting agreements for the created user. Supply the accepted agreements in acceptedPolicies attribute.</p>
23086
- *
23087
- */
23088
- createUser(data) {
23089
- return this.newInstance4().postV4NsUsers(data);
23090
- }
23091
- /**
23092
- * <p>This method retrieves platform accounts linked to user.
23093
- * <br>It will query all linked platform accounts and result will be distinct & grouped, same platform we will pick oldest linked one.
23094
- * <br>Required valid user authorization.</p>
23095
- */
23096
- getUserDistinctLinkedPlatform(userId) {
23097
- return this.newInstance().fetchV3NsUsersByUseridDistinctPlatforms(userId);
23098
- }
23099
- /**
23100
- * Required valid user authorization.
23101
- * <p>Unlink user's account from for all third platforms. </p>
23102
- */
23103
- unLinkAccountFromPlatformDistinct(platformId) {
23104
- return this.newInstance().deleteV3NsUsersMePlatformsByPlatformidAll(platformId);
23105
- }
23106
- /**
23107
- * Required valid user authorization
23108
- * <p>The verification link is sent to email address</p>
23109
- * <p>It will not send request if user email is already verified</p>
23110
- *
23111
- */
23112
- sendVerificationLink(languageTag) {
23113
- return this.newInstance().postIamV3PublicUsersMeVerifyLinkRequest({ languageTag });
23114
- }
23115
- /**
23116
- * <p>This method retrieves platform accounts linked to user. Required valid user authorization.
23117
- * <br>action code: 10128 </p>
23118
- */
23119
- getLinkedAccount(userId) {
23120
- return this.newInstance().fetchV3NsUsersByUseridPlatforms(userId);
23121
- }
23122
- /**
23123
- * Note:<br>
23124
- * 1. My account should be full account
23125
- * 2. My account not linked to request headless account's third platform.
23126
- */
23127
- getLinkAccountByOneTimeCodeConflict(params) {
23128
- return this.newInstance().fetchIamV3PublicUsersMeHeadlessLinkConflict(params);
23129
- }
23130
- /**
23131
- * Note:<br>
23132
- * 1. My account should be full account
23133
- * 2. My account not linked to headless account's third platform.
23134
- */
23135
- linkWithProgression(data) {
23136
- return this.newInstance().postIamV3PublicUsersMeHeadlessLinkWithProgression(data);
23226
+ /**
23227
+ * Render 2D Avatar via readyplayer.me POST [](https://docs.readyplayer.me/ready-player-me/avatars/2d-avatars/render-api)
23228
+ * @internal
23229
+ */
23230
+ this.renderImageFromGlbModel = (data) => {
23231
+ const axios = Network.create({
23232
+ ...this.conf
23233
+ });
23234
+ return Validate.responseType(() => axios.post('https://render.readyplayer.me/render', data), ReadyPlayerMe);
23235
+ };
23236
+ /**
23237
+ * POST [/iam/v3/public/namespaces/{namespace}/users/code/request](api)
23238
+ *
23239
+ * This method will validate the request's email address.
23240
+ *
23241
+ * If it already been used, will response 409.
23242
+ *
23243
+ * If it is available, we will send a verification code to this email address.
23244
+ */
23245
+ this.requestNewUserVerificationCode = (data) => {
23246
+ return this.newInstance().postV3NsUsersCodeRequest(data);
23247
+ };
23248
+ /**
23249
+ * POST [/iam/v4/public/namespaces/{namespace}/users](api)
23250
+ *
23251
+ * Create a new user with unique email address and username.
23252
+ *
23253
+ * __Required attributes:__
23254
+ * - authType: possible value is EMAILPASSWD
23255
+ * - emailAddress: Please refer to the rule from /v3/public/inputValidations API.
23256
+ * - username: Please refer to the rule from /v3/public/inputValidations API.
23257
+ * - password: Please refer to the rule from /v3/public/inputValidations API.
23258
+ * - country: ISO3166-1 alpha-2 two letter, e.g. US.
23259
+ * - dateOfBirth: YYYY-MM-DD, e.g. 1990-01-01. valid values are between 1905-01-01 until current date.
23260
+ *
23261
+ * __Not required attributes:__
23262
+ * - displayName: Please refer to the rule from /v3/public/inputValidations API.
23263
+ *
23264
+ * This method support accepting agreements for the created user. Supply the accepted agreements in acceptedPolicies attribute.
23265
+ *
23266
+ */
23267
+ this.createUser = (data) => {
23268
+ return this.newInstance4().postV4NsUsers(data);
23269
+ };
23270
+ /**
23271
+ * GET [/iam/v3/public/namespaces/{namespace}/users/{userId}/distinctPlatforms](api)
23272
+ *
23273
+ * This method retrieves platform accounts linked to user.
23274
+ * It will query all linked platform accounts and result will be distinct & grouped, same platform we will pick oldest linked one.
23275
+ * Required valid user authorization.
23276
+ */
23277
+ this.getUserDistinctLinkedPlatform = (userId) => {
23278
+ return this.newInstance().fetchV3NsUsersByUseridDistinctPlatforms(userId);
23279
+ };
23280
+ /**
23281
+ * DELETE [/iam/v3/public/namespaces/{namespace}/users/me/platforms/{platformId}/all](api)
23282
+ *
23283
+ * Required valid user authorization.
23284
+ * Unlink user's account from for all third platforms.
23285
+ */
23286
+ this.unLinkAccountFromPlatformDistinct = (platformId) => {
23287
+ return this.newInstance().deleteV3NsUsersMePlatformsByPlatformidAll(platformId);
23288
+ };
23289
+ /**
23290
+ * POST [/iam/v3/public/users/me/verify_link/request](api)
23291
+ *
23292
+ * Required valid user authorization
23293
+ * The verification link is sent to email address
23294
+ * It will not send request if user email is already verified
23295
+ */
23296
+ this.sendVerificationLink = (languageTag) => {
23297
+ return this.newInstance().postIamV3PublicUsersMeVerifyLinkRequest({ languageTag });
23298
+ };
23299
+ /**
23300
+ * GET [/iam/v3/public/namespaces/{namespace}/users/{userId}/platforms](api)
23301
+ *
23302
+ * This method retrieves platform accounts linked to user. Required valid user authorization.
23303
+ * action code: 10128
23304
+ */
23305
+ this.getLinkedAccount = (userId) => {
23306
+ return this.newInstance().fetchV3NsUsersByUseridPlatforms(userId);
23307
+ };
23308
+ /**
23309
+ * GET [/iam/v3/public/users/me/headless/link/conflict](api)
23310
+ *
23311
+ * Note:
23312
+ * 1. My account should be full account
23313
+ * 2. My account not linked to request headless account's third platform.
23314
+ */
23315
+ this.getLinkAccountByOneTimeCodeConflict = (params) => {
23316
+ return this.newInstance().fetchIamV3PublicUsersMeHeadlessLinkConflict(params);
23317
+ };
23318
+ /**
23319
+ * POST [/iam/v3/public/users/me/headless/linkWithProgression](api)
23320
+ *
23321
+ * Note:
23322
+ * 1. My account should be full account
23323
+ * 2. My account not linked to headless account's third platform.
23324
+ */
23325
+ this.linkWithProgression = (data) => {
23326
+ return this.newInstance().postIamV3PublicUsersMeHeadlessLinkWithProgression(data);
23327
+ };
23137
23328
  }
23138
23329
  /**
23139
23330
  * @internal
@@ -23290,24 +23481,36 @@ class AgreementApi {
23290
23481
  this.conf = conf;
23291
23482
  this.namespace = namespace;
23292
23483
  this.cache = cache;
23293
- }
23294
- /**
23295
- * Accepts many legal policy versions all at once. Supply with localized version policy id to accept an agreement.<br>Other detail info: <ul><li><i>Required permission</i>: login user</li></ul>
23296
- */
23297
- acceptLegalPolicies(acceptAgreements) {
23298
- return this.newInstance().postPublicAgreementsPolicies(acceptAgreements);
23299
- }
23300
- /**
23301
- * Retrieve accepted Legal Agreements.<br>Other detail info: <ul><li><i>Required permission</i>: login user</li></ul>
23302
- */
23303
- getAgreements() {
23304
- return this.newInstance().fetchPublicAgreementsPolicies();
23305
- }
23306
- /**
23307
- * Change marketing preference consent.<br>Other detail info: <ul><li><i>Required permission</i>: login user</li></ul>
23308
- */
23309
- updateMarketingPreferences(acceptAgreements) {
23310
- return this.newInstance().patchPublicAgreementsLocalizedPolicyVersionsPreferences(acceptAgreements);
23484
+ /**
23485
+ * POST [/agreement/public/agreements/policies](api)
23486
+ *
23487
+ * Accepts many legal policy versions all at once. Supply with localized version policy id to accept an agreement.
23488
+ *
23489
+ * _Required permission_: login user
23490
+ */
23491
+ this.acceptLegalPolicies = (acceptAgreements) => {
23492
+ return this.newInstance().postPublicAgreementsPolicies(acceptAgreements);
23493
+ };
23494
+ /**
23495
+ * GET [/agreement/public/agreements/policies](api)
23496
+ *
23497
+ * Retrieve accepted Legal Agreements.
23498
+ *
23499
+ * _Required permission_: login user
23500
+ */
23501
+ this.getAgreements = () => {
23502
+ return this.newInstance().fetchPublicAgreementsPolicies();
23503
+ };
23504
+ /**
23505
+ * PATCH [/agreement/public/agreements/localized-policy-versions/preferences](api)
23506
+ *
23507
+ * Change marketing preference consent
23508
+ *
23509
+ * _Required permission_: login user
23510
+ */
23511
+ this.updateMarketingPreferences = (acceptAgreements) => {
23512
+ return this.newInstance().patchPublicAgreementsLocalizedPolicyVersionsPreferences(acceptAgreements);
23513
+ };
23311
23514
  }
23312
23515
  newInstance() {
23313
23516
  return new Agreement$(Network.create(this.conf), this.namespace, this.cache);
@@ -23420,12 +23623,16 @@ class EligibilitiesApi {
23420
23623
  this.conf = conf;
23421
23624
  this.namespace = namespace;
23422
23625
  this.cache = cache;
23423
- }
23424
- /**
23425
- * Retrieve the active policies and its conformance status by user.<br>This process supports cross-namespace checking, that means if the active policy already accepted by the same user in other namespace, then it will be considered as eligible.<br/><br/>Other detail info: <ul><li><i>Required permission</i>: login user</li></ul>
23426
- */
23427
- getUserEligibilities() {
23428
- return this.newInstance().fetchPublicEligibilitiesNamespacesByNamespace();
23626
+ /**
23627
+ * GET [/agreement/public/eligibilities/namespaces/{namespace}](api)
23628
+ *
23629
+ * Retrieve the active policies and its conformance status by user.This process supports cross-namespace checking, that means if the active policy already accepted by the same user in other namespace, then it will be considered as eligible.
23630
+ *
23631
+ * _Required permission_: login user
23632
+ */
23633
+ this.getUserEligibilities = () => {
23634
+ return this.newInstance().fetchPublicEligibilitiesNamespacesByNamespace();
23635
+ };
23429
23636
  }
23430
23637
  newInstance() {
23431
23638
  return new Eligibilities$(Network.create(this.conf), this.namespace, this.cache);
@@ -23528,12 +23735,14 @@ class LocalizedPolicyVersionsApi {
23528
23735
  this.conf = conf;
23529
23736
  this.namespace = namespace;
23530
23737
  this.cache = cache;
23531
- }
23532
- /**
23533
- * Retrieve specific localized policy version including the policy version and base policy version where the localized policy version located.<br>Other detail info: <ul></ul>
23534
- */
23535
- fetchLocalizedPolicyVersionById(localizedPolicyVersionId) {
23536
- return this.newInstance().fetchPublicLocalizedPolicyVersionsByLocalizedpolicyversionid(localizedPolicyVersionId);
23738
+ /**
23739
+ * GET [/agreement/public/localized-policy-versions/{localizedPolicyVersionId}](api)
23740
+ *
23741
+ * Retrieve specific localized policy version including the policy version and base policy version where the localized policy version located.
23742
+ */
23743
+ this.fetchLocalizedPolicyVersionById = (localizedPolicyVersionId) => {
23744
+ return this.newInstance().fetchPublicLocalizedPolicyVersionsByLocalizedpolicyversionid(localizedPolicyVersionId);
23745
+ };
23537
23746
  }
23538
23747
  newInstance() {
23539
23748
  return new LocalizedPolicyVersions$(Network.create(this.conf), this.namespace, this.cache);
@@ -23639,18 +23848,37 @@ class PoliciesApi {
23639
23848
  this.conf = conf;
23640
23849
  this.namespace = namespace;
23641
23850
  this.cache = cache;
23642
- }
23643
- /**
23644
- * Retrieve all active latest policies based on a namespace and country.<br>Other detail info: <ul><li><i>Leave the policyType empty if you want to be responded with all policy type</i></li><li><i>Fill the tags if you want to filter the responded policy by tags</i></li><li><i>Fill the defaultOnEmpty with true if you want to be responded with default country-specific policy if your requested country is not exist</i></li><li><i>Fill the alwaysIncludeDefault with true if you want to be responded with always include default policy. If there are duplicate policies (default policies and country specific policies with same base policy) it'll include policy with same country code, for example:<ul><li>Document 1 (default): Region US (default), UA</li><li>Document 2 (default): Region US (default)</li><li>Document 3 (default): Region US (default)</li><li>User: Region UA</li><li>Query: alwaysIncludeDefault: true</li><li>Response: Document 1 (UA), Document 2 (US), Document 3 (US)</li></ul>
23645
- */
23646
- fetchPoliciesByCountry({ countryCode, queryParams }) {
23647
- return this.newInstance().fetchPublicPoliciesNamespacesByNamespaceCountriesByCountrycode(countryCode, queryParams);
23648
- }
23649
- /**
23650
- * Retrieve all active latest policies based on country from all namespaces.<br>Other detail info: <ul><li><i>Leave the policyType empty if you want to be responded with all policy type</i></li><li><i>Fill the tags if you want to filter the responded policy by tags</i></li><li><i>Fill the defaultOnEmpty with true if you want to be responded with default country-specific policy if your requested country is not exist</i></li></ul>
23651
- */
23652
- fetchAllPoliciesByCountry({ countryCode, queryParams }) {
23653
- return this.newInstance().fetchPublicPoliciesCountriesByCountrycode(countryCode, queryParams);
23851
+ /**
23852
+ * GET [/agreement/public/policies/namespaces/{namespace}/countries/{countryCode}](api)
23853
+ *
23854
+ * Retrieve all active latest policies based on a namespace and country.
23855
+ *
23856
+ * - _Leave the policyType empty if you want to be responded with all policy type_
23857
+ * - _Fill the tags if you want to filter the responded policy by tags_
23858
+ * - _Fill the defaultOnEmpty with true if you want to be responded with default country-specific policy if your requested country is not exist_
23859
+ * - _Fill the alwaysIncludeDefault with true if you want to be responded with always include default policy. If there are duplicate policies (default policies and country specific policies with same base policy) it'll include policy with same country code, for example:_
23860
+ *
23861
+ * - Document 1 (default): Region US (default), UA
23862
+ * - Document 2 (default): Region US (default)
23863
+ * - Document 3 (default): Region US (default)
23864
+ * - User: Region UA
23865
+ * - Query: alwaysIncludeDefault: true
23866
+ * - Response: Document 1 (UA), Document 2 (US), Document 3 (US)
23867
+ */
23868
+ this.fetchPoliciesByCountry = ({ countryCode, queryParams }) => {
23869
+ return this.newInstance().fetchPublicPoliciesNamespacesByNamespaceCountriesByCountrycode(countryCode, queryParams);
23870
+ };
23871
+ /**
23872
+ * GET [/agreement/public/policies/countries/{countryCode}](api)
23873
+ *
23874
+ * Retrieve all active latest policies based on country from all namespaces.
23875
+ * - _Leave the policyType empty if you want to be responded with all policy type_
23876
+ * - _Fill the tags if you want to filter the responded policy by tags_
23877
+ * - _Fill the defaultOnEmpty with true if you want to be responded with default country-specific policy if your requested country is not exist_
23878
+ */
23879
+ this.fetchAllPoliciesByCountry = ({ countryCode, queryParams }) => {
23880
+ return this.newInstance().fetchPublicPoliciesCountriesByCountrycode(countryCode, queryParams);
23881
+ };
23654
23882
  }
23655
23883
  newInstance() {
23656
23884
  return new Policies$(Network.create(this.conf), this.namespace, this.cache);
@@ -23734,12 +23962,21 @@ class PublicTemplateApi {
23734
23962
  this.conf = conf;
23735
23963
  this.namespace = namespace;
23736
23964
  this.cache = cache;
23965
+ /**
23966
+ * @internal
23967
+ */
23737
23968
  this.getTemplateConfigs = (template) => {
23738
23969
  return this.newInstance().fetchV1NsTemplatesByTemplateConfigs(template);
23739
23970
  };
23971
+ /**
23972
+ * @internal
23973
+ */
23740
23974
  this.getTemplateConfig = (template, configId) => {
23741
23975
  return this.newInstance().fetchV1NsTemplatesByTemplateConfigsByConfig(template, configId);
23742
23976
  };
23977
+ /**
23978
+ * @internal
23979
+ */
23743
23980
  this.getDiscoveryTemplateConfigs = () => {
23744
23981
  return this.newInstance().fetchV1NsTemplatesByTemplateConfigs(DISCOVERY_TEMPLATE_NAME);
23745
23982
  };
@@ -23809,13 +24046,19 @@ class CurrencyApi {
23809
24046
  this.namespace = namespace;
23810
24047
  this.cache = cache;
23811
24048
  /**
23812
- * List currencies of a namespace.<br>Other detail info: <ul><li><i>Returns</i>: Currency List</li></ul>
24049
+ * GET [/platform/public/namespaces/{namespace}/currencies](api)
24050
+ *
24051
+ * List currencies of a namespace.
24052
+ *
24053
+ * Returns: Currency List
23813
24054
  */
23814
24055
  this.getCurrencies = () => {
23815
24056
  return this.newInstance().fetchNsCurrencies();
23816
24057
  };
23817
24058
  /**
23818
24059
  * Get the currencies list and convert into a map of currency code and the currency itself
24060
+ *
24061
+ * @internal
23819
24062
  */
23820
24063
  this.getCurrencyMap = async () => {
23821
24064
  const result = await this.getCurrencies();
@@ -24428,38 +24671,42 @@ class EntitlementApi {
24428
24671
  this.conf = conf;
24429
24672
  this.namespace = namespace;
24430
24673
  this.cache = cache;
24431
- }
24432
- /**
24433
- * Get user app entitlement by appId.<p>Other detail info: <ul><li><i>Required permission</i>: resource="NAMESPACE:{namespace}:USER:{userId}:ENTITLEMENT", action=2 (READ)</li></ul>
24434
- */
24435
- getEntitlementByAppId({ userId, appId }) {
24436
- return this.newInstance().fetchNsUsersByUseridEntitlementsByAppId(userId, {
24437
- appId
24438
- });
24439
- }
24440
- /**
24441
- * Query user entitlements for a specific user.<p>Other detail info: <ul><li><i>Required permission</i>: resource="NAMESPACE:{namespace}:USER:{userId}:ENTITLEMENT", action=2 (READ)</li><li><i>Returns</i>: entitlement list</li></ul>
24442
- */
24443
- getEntitlements({ userId, queryParams }) {
24444
- return this.newInstance().fetchNsUsersByUseridEntitlements(userId, queryParams);
24445
- }
24446
- /**
24447
- * Exists any user active entitlement of specified itemIds, skus and appIds<p>Other detail info: <ul><li><i>Required permission</i>: resource="NAMESPACE:{namespace}:USER:{userId}:ENTITLEMENT", action=2 (READ)</li></ul>
24448
- */
24449
- getEntitlementOwnerShip({ userId, queryParams }) {
24450
- return this.newInstance().fetchNsUsersByUseridEntitlementsOwnershipAny(userId, queryParams);
24451
- }
24452
- /**
24453
- * Get user entitlement ownership by itemIds.<p>Other detail info: <ul><li><i>Required permission</i>: resource="NAMESPACE:{namespace}:USER:{userId}:ENTITLEMENT", action=2 (READ)</li></ul>
24454
- */
24455
- getEntitlementByItemIds({ userId, queryParams }) {
24456
- return this.newInstance().fetchNsUsersByUseridEntitlementsOwnershipByItemIds(userId, queryParams);
24457
- }
24458
- /**
24459
- * Consume user entitlement. If the entitlement useCount is 0, the status will be CONSUMED. Client should pass item id in options if entitlement clazz is OPTIONBOX<br>Other detail info: <ul><li><i>Required permission</i>: resource="NAMESPACE:{namespace}:USER:{userId}:ENTITLEMENT", action=4 (UPDATE)</li><li><i>Returns</i>: consumed entitlement</li></ul>
24460
- */
24461
- claimEntitlement({ userId, entitlementId, data }) {
24462
- return this.newInstance().putNsUsersByUseridEntitlementsByEntitlementidDecrement(userId, entitlementId, data);
24674
+ /**
24675
+ * GET [/platform/public/namespaces/{namespace}/users/{userId}/entitlements/byAppId](api)
24676
+ *
24677
+ * Get user app entitlement by appId.
24678
+ */
24679
+ this.getEntitlementByAppId = ({ userId, appId }) => {
24680
+ return this.newInstance().fetchNsUsersByUseridEntitlementsByAppId(userId, {
24681
+ appId
24682
+ });
24683
+ };
24684
+ /**
24685
+ * Query user entitlements for a specific user.
24686
+ * Returns: entitlement list
24687
+ */
24688
+ this.getEntitlements = ({ userId, queryParams }) => {
24689
+ return this.newInstance().fetchNsUsersByUseridEntitlements(userId, queryParams);
24690
+ };
24691
+ /**
24692
+ * Exists any user active entitlement of specified itemIds, skus and appIds
24693
+ */
24694
+ this.getEntitlementOwnerShip = ({ userId, queryParams }) => {
24695
+ return this.newInstance().fetchNsUsersByUseridEntitlementsOwnershipAny(userId, queryParams);
24696
+ };
24697
+ /**
24698
+ * Get user entitlement ownership by itemIds.
24699
+ */
24700
+ this.getEntitlementByItemIds = ({ userId, queryParams }) => {
24701
+ return this.newInstance().fetchNsUsersByUseridEntitlementsOwnershipByItemIds(userId, queryParams);
24702
+ };
24703
+ /**
24704
+ * Consume user entitlement. If the entitlement useCount is 0, the status will be CONSUMED. Client should pass item id in options if entitlement clazz is OPTIONBOX
24705
+ * Returns: consumed entitlement
24706
+ */
24707
+ this.claimEntitlement = ({ userId, entitlementId, data }) => {
24708
+ return this.newInstance().putNsUsersByUseridEntitlementsByEntitlementidDecrement(userId, entitlementId, data);
24709
+ };
24463
24710
  }
24464
24711
  newInstance() {
24465
24712
  return new Entitlement$(Network.create(this.conf), this.namespace, this.cache);
@@ -24559,7 +24806,11 @@ class FulfillmentApi {
24559
24806
  this.namespace = namespace;
24560
24807
  this.cache = cache;
24561
24808
  /**
24562
- * Redeem campaign code.<br>Other detail info: <ul><li><i>Required permission</i>: resource="NAMESPACE:{namespace}:USER:{userId}:FULFILLMENT", action=1 (CREATED)</li><li><i>Returns</i>: fulfillment result</li></ul>
24809
+ * POST [/platform/public/namespaces/{namespace}/users/{userId}/fulfillment/code](api)
24810
+ *
24811
+ * Redeem campaign code
24812
+ *
24813
+ * Returns: fulfillment result
24563
24814
  */
24564
24815
  this.redeemCode = ({ userId, data }) => {
24565
24816
  return this.newInstance().postNsUsersByUseridFulfillmentCode(userId, data);
@@ -25112,64 +25363,90 @@ class ItemApi {
25112
25363
  this.conf = conf;
25113
25364
  this.namespace = namespace;
25114
25365
  this.cache = cache;
25115
- }
25116
- /**
25117
- * This API is used to get item by appId.<p>Other detail info: <ul><li><i>Optional permission</i>: resource="PREVIEW", action=1(CREATE) (user with this permission can view draft store item)</li><li><i>Optional permission</i>: resource="SANDBOX", action=1(CREATE) (user with this permission can view draft store item)</li><li><i>Returns</i>: the item with that appId</li></ul>
25118
- */
25119
- getItemByAppId({ ...queryParams }) {
25120
- return this.newInstance().fetchNsItemsByAppId(queryParams);
25121
- }
25122
- /**
25123
- * Get item dynamic data for a published item.<br>Other detail info: <ul><li><i>Returns</i>: item dynamic data</li></ul>
25124
- */
25125
- getItemByItemIdDynamic(itemId) {
25126
- return this.newInstance().fetchNsItemsByItemidDynamic(itemId);
25127
- }
25128
- fetchItemsByCriteria({ queryParams }) {
25129
- return this.newInstance().fetchNsItemsByCriteria(queryParams);
25130
- }
25131
- /**
25132
- * This API is used to query items by criteria within a store. If item not exist in specific region, default region item will return.<p>Other detail info: <ul><li><i>Optional permission</i>: resource="PREVIEW", action=1(CREATE) (user with this permission can view draft store item)</li><li><i>Optional permission</i>: resource="SANDBOX", action=1(CREATE) (user with this permission can view draft store item)</li><li><i>Returns</i>: the list of items</li></ul>
25133
- */
25134
- getItemsByItemIds({ queryParams }) {
25135
- return this.newInstance().fetchNsItemsLocaleByIds(queryParams);
25136
- }
25137
- /**
25138
- * Fetch the items and convert it into a map of `itemId` and its item info
25139
- */
25140
- async fetchAvailableItemInfoMap({ queryParams }) {
25141
- const result = await this.getItemsByItemIds({ queryParams });
25142
- if (result.response) {
25143
- return {
25144
- error: null,
25145
- value: result.response.data.reduce((map, availableItemInfo) => {
25146
- const { itemId } = availableItemInfo;
25147
- if (itemId) {
25148
- map.set(itemId, availableItemInfo);
25149
- }
25150
- return map;
25151
- }, new Map())
25152
- };
25153
- }
25154
- return result;
25155
- }
25156
- /**
25157
- * This API is used to get an item in locale. If item not exist in specific region, default region item will return.<p>Other detail info: <ul><li><i>Optional permission</i>: resource="PREVIEW", action=1(CREATE) (user with this permission can view draft store item)</li><li><i>Optional permission</i>: resource="SANDBOX", action=1(CREATE) (user with this permission can view draft store item)</li><li><i>Returns</i>: item data</li></ul>
25158
- */
25159
- getItemsByItemIdLocale({ itemId, queryParams }) {
25160
- return this.newInstance().fetchNsItemsByItemidLocale(itemId, queryParams);
25161
- }
25162
- /**
25163
- * This API is used to get an app in locale. If app not exist in specific region, default region app will return.<p>Other detail info: <ul><li><i>Optional permission</i>: resource="PREVIEW", action=1(CREATE) (user with this permission can view draft store app)</li><li><i>Optional permission</i>: resource="SANDBOX", action=1(CREATE) (user with this permission can view draft store app)</li><li><i>Returns</i>: app data</li></ul>
25164
- */
25165
- getAppInfoByItemId({ itemId, queryParams }) {
25166
- return this.newInstance().fetchNsItemsByItemidAppLocale(itemId, queryParams);
25167
- }
25168
- /**
25169
- * This API is used to validate user item purchase condition
25170
- */
25171
- validatePurchaseCondition(data) {
25172
- return this.newInstance().postNsItemsPurchaseConditionsValidate(data);
25366
+ /**
25367
+ * GET [/platform/public/namespaces/{namespace}/items/byAppId](api)
25368
+ *
25369
+ * This API is used to get item by appId
25370
+ *
25371
+ * Returns: the item with that appId
25372
+ */
25373
+ this.getItemByAppId = ({ ...queryParams }) => {
25374
+ return this.newInstance().fetchNsItemsByAppId(queryParams);
25375
+ };
25376
+ /**
25377
+ * GET [/platform/public/namespaces/{namespace}/items/{itemId}/dynamic](api)
25378
+ *
25379
+ * Get item dynamic data for a published item
25380
+ *
25381
+ * Returns: item dynamic data
25382
+ */
25383
+ this.getItemByItemIdDynamic = (itemId) => {
25384
+ return this.newInstance().fetchNsItemsByItemidDynamic(itemId);
25385
+ };
25386
+ /**
25387
+ * GET [/platform/public/namespaces/{namespace}/items/byCriteria](api)
25388
+ */
25389
+ this.fetchItemsByCriteria = ({ queryParams }) => {
25390
+ return this.newInstance().fetchNsItemsByCriteria(queryParams);
25391
+ };
25392
+ /**
25393
+ * GET [/platform/public/namespaces/{namespace}/items/locale/byIds](api)
25394
+ *
25395
+ * This API is used to query items by criteria within a store. If item not exist in specific region, default region item will return.
25396
+ *
25397
+ * Returns: the list of items
25398
+ */
25399
+ this.getItemsByItemIds = ({ queryParams }) => {
25400
+ return this.newInstance().fetchNsItemsLocaleByIds(queryParams);
25401
+ };
25402
+ // TODO if not used, delete below
25403
+ // /**
25404
+ // * Fetch the items and convert it into a map of `itemId` and its item info
25405
+ // */
25406
+ // fetchAvailableItemInfoMap = async ({ queryParams }: { queryParams: QueryParamsItemIds }) => {
25407
+ // const result = await this.getItemsByItemIds({ queryParams })
25408
+ // if (result.response) {
25409
+ // return {
25410
+ // error: null,
25411
+ // value: result.response.data.reduce((map: Map<string, ItemInfo>, availableItemInfo) => {
25412
+ // const { itemId } = availableItemInfo
25413
+ // if (itemId) {
25414
+ // map.set(itemId, availableItemInfo)
25415
+ // }
25416
+ // return map
25417
+ // }, new Map())
25418
+ // }
25419
+ // }
25420
+ // return result
25421
+ // }
25422
+ /**
25423
+ * GET [/platform/public/namespaces/{namespace}/items/{itemId}/locale](api)
25424
+ *
25425
+ * This API is used to get an item in locale. If item not exist in specific region, default region item will return.
25426
+ *
25427
+ * Returns: item data
25428
+ */
25429
+ this.getItemsByItemIdLocale = ({ itemId, queryParams }) => {
25430
+ return this.newInstance().fetchNsItemsByItemidLocale(itemId, queryParams);
25431
+ };
25432
+ /**
25433
+ * GET [/platform/public/namespaces/{namespace}/items/{itemId}/app/locale](api)
25434
+ *
25435
+ * This API is used to get an app in locale. If app not exist in specific region, default region app will return.
25436
+ *
25437
+ * Returns: app data
25438
+ */
25439
+ this.getAppInfoByItemId = ({ itemId, queryParams }) => {
25440
+ return this.newInstance().fetchNsItemsByItemidAppLocale(itemId, queryParams);
25441
+ };
25442
+ /**
25443
+ * POST [/platform/public/namespaces/{namespace}/items/purchase/conditions/validate](api)
25444
+ *
25445
+ * This API is used to validate user item purchase condition
25446
+ */
25447
+ this.validatePurchaseCondition = (data) => {
25448
+ return this.newInstance().postNsItemsPurchaseConditionsValidate(data);
25449
+ };
25173
25450
  }
25174
25451
  newInstance() {
25175
25452
  return new Item$(Network.create(this.conf), this.namespace, this.cache);
@@ -25410,31 +25687,102 @@ class OrderApi {
25410
25687
  this.namespace = namespace;
25411
25688
  this.cache = cache;
25412
25689
  /**
25413
- * Query user orders.<br>Other detail info: <ul><li><i>Required permission</i>: resource="NAMESPACE:{namespace}:USER:{userId}:ORDER", action=2 (READ)</li><li><i>Returns</i>: get order</li></ul>
25690
+ * GET [/platform/public/namespaces/{namespace}/users/{userId}/orders](api)
25691
+ *
25692
+ * Query user orders
25693
+ *
25694
+ * Returns a paginated list of `OrderInfo`:
25695
+ * <pre lang="json">{
25696
+ orderNo,
25697
+ paymentOrderNo,
25698
+ namespace,
25699
+ userId,
25700
+ itemId,
25701
+ sandbox,
25702
+ quantity,
25703
+ price,
25704
+ discountedPrice,
25705
+ creationOptions
25706
+ paymentProvider: ('WALLET', 'XSOLLA', 'ADYEN', 'STRIPE', 'CHECKOUT', 'ALIPAY', 'WXPAY', 'PAYPAL'),
25707
+ paymentMethod,
25708
+ tax,
25709
+ vat,
25710
+ salesTax,
25711
+ paymentProviderFee,
25712
+ paymentMethodFee
25713
+ currency: CurrencySummary,
25714
+ paymentStationUrl,
25715
+ itemSnapshot,
25716
+ region,
25717
+ language,
25718
+ status: (
25719
+ 'INIT',
25720
+ 'CHARGED',
25721
+ 'CHARGEBACK',
25722
+ 'CHARGEBACK_REVERSED',
25723
+ 'FULFILLED',
25724
+ 'FULFILL_FAILED',
25725
+ 'REFUNDING',
25726
+ 'REFUNDED',
25727
+ 'REFUND_FAILED',
25728
+ 'CLOSED',
25729
+ 'DELETED'
25730
+ ),
25731
+ statusReason,
25732
+ createdTime,
25733
+ chargedTime,
25734
+ fulfilledTime,
25735
+ refundedTime,
25736
+ chargebackTime,
25737
+ chargebackReversedTime,
25738
+ expireTime,
25739
+ paymentRemainSeconds,
25740
+ ext,
25741
+ totalTax,
25742
+ totalPrice,
25743
+ subtotalPrice,
25744
+ createdAt,
25745
+ updatedAt
25746
+ }</pre>
25414
25747
  */
25415
25748
  this.getOrderList = ({ userId, queryParams }) => {
25416
25749
  return this.newInstance().fetchNsUsersByUseridOrders(userId, queryParams);
25417
25750
  };
25418
25751
  /**
25419
- * Get user order.<br>Other detail info: <ul><li><i>Required permission</i>: resource="NAMESPACE:{namespace}:USER:{userId}:ORDER", action=2 (READ)</li><li><i>Returns</i>: get order</li></ul>
25752
+ * GET [/platform/public/namespaces/{namespace}/users/{userId}/orders/{orderNo}](api)
25753
+ *
25754
+ * Get user order.
25755
+ *
25756
+ * Returns: `OrderInfo`
25420
25757
  */
25421
25758
  this.getOrderByOrderNo = ({ userId, orderNo }) => {
25422
25759
  return this.newInstance().fetchNsUsersByUseridOrdersByOrderno(userId, orderNo);
25423
25760
  };
25424
25761
  /**
25425
- * Cancel user order.<br>Other detail info: <ul><li><i>Required permission</i>: resource="NAMESPACE:{namespace}:USER:{userId}:ORDER", action=4 (UPDATE)</li><li><i>Returns</i>: cancelled order</li></ul>
25762
+ * PUT [/platform/public/namespaces/{namespace}/users/{userId}/orders/{orderNo}/cancel](api)
25763
+ *
25764
+ * Cancel user order.
25765
+ *
25766
+ * Returns: cancelled `OrderInfo`
25426
25767
  */
25427
25768
  this.cancelOrder = ({ userId, orderNo }) => {
25428
25769
  return this.newInstance().putNsUsersByUseridOrdersByOrdernoCancel(userId, orderNo);
25429
25770
  };
25430
25771
  /**
25431
- * Create an order. The result contains the checkout link and payment token. User with permission SANDBOX will create sandbox order that not real paid for xsolla/alipay and not validate price for wxpay.<br>Other detail info: <ul><li><i>Required permission</i>: resource="NAMESPACE:{namespace}:USER:{userId}:ORDER", action=1 (CREATE)</li><li><i>Optional permission(user with this permission will create sandbox order)</i>: resource="SANDBOX", action=1 (CREATE)</li><li>It will be forbidden while the user is banned: ORDER_INITIATE or ORDER_AND_PAYMENT</li><li><i>Returns</i>: created order</li></ul>
25772
+ * POST [/platform/public/namespaces/{namespace}/users/{userId}/orders](api)
25773
+ *
25774
+ * Create an order. The result contains the checkout link and payment token.
25775
+ * User with permission SANDBOX will create sandbox order that not real paid for xsolla/alipay and not validate price for wxpay.
25776
+ *
25777
+ * Returns: created `OrderInfo`
25432
25778
  */
25433
25779
  this.createOrder = ({ userId, data }) => {
25434
25780
  return this.newInstance().postNsUsersByUseridOrders(userId, data);
25435
25781
  };
25436
25782
  /**
25437
25783
  * Fetch all information needed for a user to check the user's availability to purchase the item
25784
+ *
25785
+ * @internal
25438
25786
  */
25439
25787
  this.fetchPrePurchaseInformation = async ({ userId, item }) => {
25440
25788
  const currencyApi = new CurrencyApi(this.conf, this.namespace, this.cache);
@@ -25763,31 +26111,49 @@ class PaymentApi {
25763
26111
  this.namespace = namespace;
25764
26112
  this.cache = cache;
25765
26113
  /**
25766
- * Get payment accounts.<br>Other detail info: <ul><li><i>Required permission</i>: resource="NAMESPACE:{namespace}:USER:{userId}:PAYMENT:ACCOUNT", action=2 (READ)</li><li><i>Returns</i>: Payment account list</li></ul>
26114
+ * GET [/platform/public/namespaces/{namespace}/users/{userId}/payment/accounts](api)
26115
+ *
26116
+ * Get payment accounts.
26117
+ *
26118
+ * Returns: Payment account list `PaymentAccountArray`
25767
26119
  */
25768
26120
  this.getPaymentAccounts = (userId) => {
25769
26121
  return this.newInstance().fetchNsUsersByUseridPaymentAccounts(userId);
25770
26122
  };
25771
26123
  /**
25772
- * Delete payment account.<br>Other detail info: <ul><li><i>Required permission</i>: resource="NAMESPACE:{namespace}:USER:{userId}:PAYMENT:ACCOUNT", action=8 (DELETE)</li><li><i>Returns</i>:</li></ul>
26124
+ * DELETE [/platform/public/namespaces/{namespace}/users/{userId}/payment/accounts/{type}/{id}](api)
26125
+ *
26126
+ * Delete payment account.
25773
26127
  */
25774
26128
  this.deletePaymentAccount = ({ userId, type, id }) => {
25775
26129
  return this.newInstance().deleteNsUsersByUseridPaymentAccountsByTypeById(userId, type, id);
25776
26130
  };
25777
26131
  /**
25778
- * Get payment order info.<br>Other detail info: <ul><li><i>Returns</i>: Payment order details</li></ul>
26132
+ * GET [/platform/public/namespaces/{namespace}/payment/orders/{paymentOrderNo}/info](api)
26133
+ *
26134
+ * Get payment order info.
26135
+ *
26136
+ * Returns: Payment order details `PaymentOrderDetails`
25779
26137
  */
25780
26138
  this.getPaymentInfo = (paymentOrderNo) => {
25781
26139
  return new PaymentStation$(Network.create(this.conf), this.namespace, this.cache).fetchNsPaymentOrdersByPaymentordernoInfo(paymentOrderNo);
25782
26140
  };
25783
26141
  /**
25784
- * Do payment(For now, this only support checkout.com).<br>Other detail info: <ul><li><i>Returns</i>: Payment process result</li></ul>
26142
+ * POST [/platform/public/namespaces/{namespace}/payment/orders/{paymentOrderNo}/pay](api)
26143
+ *
26144
+ * Do payment(For now, this only support checkout.com).
26145
+ *
26146
+ * Returns: Payment process result
25785
26147
  */
25786
26148
  this.processPaymentOrder = (paymentOrderNo, data, queryParams) => {
25787
26149
  return new PaymentStation$(Network.create(this.conf), this.namespace, this.cache).postNsPaymentOrdersByPaymentordernoPay(paymentOrderNo, data, queryParams);
25788
26150
  };
25789
26151
  /**
25790
- * Get payment provider public config, at current only Strip provide public config.<br>Other detail info: <ul><li><i>Returns</i>: Public config</li></ul>
26152
+ * GET [/platform/public/namespaces/{namespace}/payment/publicconfig](api)
26153
+ *
26154
+ * Get payment provider public config, at current only Strip provide public config.
26155
+ *
26156
+ * Returns: Public config
25791
26157
  */
25792
26158
  this.getPaymentProviderPublicConfig = (paymentProvider, region, sandbox) => {
25793
26159
  return new PaymentStation$(Network.create(this.conf), this.namespace, this.cache).fetchNsPaymentPublicconfig({
@@ -25797,19 +26163,28 @@ class PaymentApi {
25797
26163
  });
25798
26164
  };
25799
26165
  /**
25800
- * Check payment order paid status.<br>Other detail info: <ul><li><i>Returns</i>: Payment order paid result</li></ul>
26166
+ * GET [/platform/public/namespaces/{namespace}/payment/orders/{paymentOrderNo}/status](api)
26167
+ *
26168
+ * Check payment order paid status.
26169
+ *
26170
+ * Returns: Payment order paid result
25801
26171
  */
25802
26172
  this.getPaymentOrderStatus = (paymentOrderNo) => {
25803
26173
  return new PaymentStation$(Network.create(this.conf), this.namespace, this.cache).fetchNsPaymentOrdersByPaymentordernoStatus(paymentOrderNo);
25804
26174
  };
25805
26175
  /**
25806
- * Get payment methods.<br>Other detail info: <ul><li><i>Returns</i>: Payment method list</li></ul>
26176
+ * Get payment methods.
26177
+ * Returns: Payment method list
25807
26178
  */
25808
26179
  this.getPaymentMethods = (paymentOrderNo) => {
25809
26180
  return new PaymentStation$(Network.create(this.conf), this.namespace, this.cache).fetchNsPaymentMethods({ paymentOrderNo });
25810
26181
  };
25811
26182
  /**
25812
- * Check and get a payment order's should pay tax.<br>Other detail info: <ul><li><i>Returns</i>: tax result</li></ul>
26183
+ * GET [/platform/public/namespaces/{namespace}/payment/methods](api)
26184
+ *
26185
+ * Check and get a payment order's should pay tax.
26186
+ *
26187
+ * Returns: tax result
25813
26188
  */
25814
26189
  this.getPaymentTax = (paymentProvider, paymentOrderNo, zipCode) => {
25815
26190
  return new PaymentStation$(Network.create(this.conf), this.namespace, this.cache).fetchNsPaymentTax({
@@ -25819,7 +26194,11 @@ class PaymentApi {
25819
26194
  });
25820
26195
  };
25821
26196
  /**
25822
- * Get payment url.<br>Other detail info: <ul><li><i>Returns</i>: Get payment link</li></ul>
26197
+ * POST [/platform/public/namespaces/{namespace}/payment/link](api)
26198
+ *
26199
+ * Get payment url.
26200
+ *
26201
+ * Returns: Get payment link
25823
26202
  */
25824
26203
  this.createPaymentUrl = (data) => {
25825
26204
  return new PaymentStation$(Network.create(this.conf), this.namespace, this.cache).postNsPaymentLink(data);
@@ -26075,42 +26454,73 @@ class SubscriptionApi {
26075
26454
  this.conf = conf;
26076
26455
  this.namespace = namespace;
26077
26456
  this.cache = cache;
26078
- }
26079
- /**
26080
- * Query user subscriptions.<br>Other detail info: <ul><li><i>Required permission</i>: resource="NAMESPACE:{namespace}:USER:{userId}:SUBSCRIPTION", action=2 (READ)</li><li><i>Returns</i>: paginated subscription</li></ul>
26081
- */
26082
- getUserSubscriptions({ userId, queryParams }) {
26083
- return this.newInstance().fetchNsUsersByUseridSubscriptions(userId, queryParams);
26084
- }
26085
- /**
26086
- * Get user subscription.<br>Other detail info: <ul><li><i>Required permission</i>: resource="NAMESPACE:{namespace}:USER:{userId}:SUBSCRIPTION", action=2 (READ)</li><li><i>Returns</i>: subscription</li></ul>
26087
- */
26088
- getUserSubscriptionBySubscriptionId({ userId, subscriptionId }) {
26089
- return this.newInstance().fetchNsUsersByUseridSubscriptionsBySubscriptionid(userId, subscriptionId);
26090
- }
26091
- /**
26092
- * Subscribe a subscription. Support both real and virtual payment. Need go through payment flow using the paymentOrderNo if paymentFlowRequired true.<br><b>ACTIVE USER subscription can't do subscribe again.</b><br><b>The next billing date will be X(default 4) hours before the current period ends if correctly subscribed.</b><br>User with permission SANDBOX will create sandbox subscription that not real paid.<br>Other detail info: <ul><li><i>Required permission</i>: resource="NAMESPACE:{namespace}:USER:{userId}:SUBSCRIPTION", action=1 (CREATE)</li><li><i>Optional permission(user with this permission will create sandbox subscription)</i>: resource="SANDBOX", action=1 (CREATE)</li><li>It will be forbidden while the user is banned: ORDER_INITIATE or ORDER_AND_PAYMENT</li><li><i>Returns</i>: created subscription</li></ul>
26093
- */
26094
- createSubscription({ userId, data }) {
26095
- return this.newInstance().postNsUsersByUseridSubscriptions(userId, data);
26096
- }
26097
- /**
26098
- * Get user subscription billing histories.<br>Other detail info: <ul><li><i>Required permission</i>: resource="NAMESPACE:{namespace}:USER:{userId}:SUBSCRIPTION", action=2 (READ)</li><li><i>Returns</i>: paginated subscription history</li></ul>
26099
- */
26100
- getUserSubscriptionBillingHistory({ userId, subscriptionId, queryParams }) {
26101
- return this.newInstance().fetchNsUsersByUseridSubscriptionsBySubscriptionidHistory(userId, subscriptionId, queryParams);
26102
- }
26103
- /**
26104
- * Request to change a subscription billing account, this will guide user to payment station. The actual change will happen at the 0 payment notification successfully handled.<br>Only ACTIVE USER subscription with real currency billing account can be changed.<br>Other detail info: <ul><li><i>Required permission</i>: resource="NAMESPACE:{namespace}:USER:{userId}:SUBSCRIPTION", action=4 (UPDATE)</li><li><i>Returns</i>: updated subscription</li></ul>
26105
- */
26106
- updateUserSubscriptionPaymentMethod({ userId, subscriptionId }) {
26107
- return this.newInstance().putNsUsersByUseridSubscriptionsBySubscriptionidBillingAccount(userId, subscriptionId);
26108
- }
26109
- /**
26110
- * Cancel a subscription, only ACTIVE subscription can be cancelled. <b>Ensure successfully cancel, recommend at least 1 day before current period ends, otherwise it may be charging or charged.</b><br>Set immediate true, the subscription will be terminated immediately, otherwise till the end of current billing cycle.<br>Other detail info: <ul><li><i>Required permission</i>: resource="NAMESPACE:{namespace}:USER:{userId}:SUBSCRIPTION", action=4 (UPDATE)</li><li><i>Returns</i>: cancelled subscription</li></ul>
26111
- */
26112
- cancelUserSubscription({ userId, subscriptionId, data }) {
26113
- return this.newInstance().putNsUsersByUseridSubscriptionsBySubscriptionidCancel(userId, subscriptionId, data);
26457
+ /**
26458
+ * GET [/platform/public/namespaces/{namespace}/users/{userId}/subscriptions](api)
26459
+ *
26460
+ * Query user subscriptions.
26461
+ *
26462
+ * Returns: paginated subscription
26463
+ */
26464
+ this.getUserSubscriptions = ({ userId, queryParams }) => {
26465
+ return this.newInstance().fetchNsUsersByUseridSubscriptions(userId, queryParams);
26466
+ };
26467
+ /**
26468
+ * GET [/platform/public/namespaces/{namespace}/users/{userId}/subscriptions/{subscriptionId}](api)
26469
+ *
26470
+ * Get user subscription.
26471
+ *
26472
+ * Returns: subscription
26473
+ */
26474
+ this.getUserSubscriptionBySubscriptionId = ({ userId, subscriptionId }) => {
26475
+ return this.newInstance().fetchNsUsersByUseridSubscriptionsBySubscriptionid(userId, subscriptionId);
26476
+ };
26477
+ /**
26478
+ * POST [/platform/public/namespaces/{namespace}/users/{userId}/subscriptions](api)
26479
+ *
26480
+ * Subscribe a subscription. Support both real and virtual payment. Need go through payment flow using the paymentOrderNo if paymentFlowRequired true.
26481
+ * __ACTIVE USER subscription can't do subscribe again.__
26482
+ * __The next billing date will be X(default 4) hours before the current period ends if correctly subscribed.__
26483
+ * User with permission SANDBOX will create sandbox subscription that not real paid.
26484
+ *
26485
+ * Returns: created subscription
26486
+ */
26487
+ this.createSubscription = ({ userId, data }) => {
26488
+ return this.newInstance().postNsUsersByUseridSubscriptions(userId, data);
26489
+ };
26490
+ /**
26491
+ * GET [/platform/public/namespaces/{namespace}/users/{userId}/subscriptions/{subscriptionId}/history](api)
26492
+ *
26493
+ * Get user subscription billing histories.
26494
+ *
26495
+ * Returns: paginated subscription history
26496
+ */
26497
+ this.getUserSubscriptionBillingHistory = ({ userId, subscriptionId, queryParams }) => {
26498
+ return this.newInstance().fetchNsUsersByUseridSubscriptionsBySubscriptionidHistory(userId, subscriptionId, queryParams);
26499
+ };
26500
+ /**
26501
+ * PUT [/platform/public/namespaces/{namespace}/users/{userId}/subscriptions/{subscriptionId}/billingAccount](api)
26502
+ *
26503
+ * Request to change a subscription billing account, this will guide user to payment station.
26504
+ * The actual change will happen at the 0 payment notification successfully handled.
26505
+ * Only ACTIVE USER subscription with real currency billing account can be changed.
26506
+ *
26507
+ * Returns: updated subscription
26508
+ */
26509
+ this.updateUserSubscriptionPaymentMethod = ({ userId, subscriptionId }) => {
26510
+ return this.newInstance().putNsUsersByUseridSubscriptionsBySubscriptionidBillingAccount(userId, subscriptionId);
26511
+ };
26512
+ /**
26513
+ * PUT [/platform/public/namespaces/{namespace}/users/{userId}/subscriptions/{subscriptionId}/cancel](api)
26514
+ *
26515
+ * Cancel a subscription, only ACTIVE subscription can be cancelled.
26516
+ * __Ensure successfully cancel, recommend at least 1 day before current period ends, otherwise it may be charging or charged.__
26517
+ * Set immediate true, the subscription will be terminated immediately, otherwise till the end of current billing cycle.
26518
+ *
26519
+ * Returns: cancelled subscription
26520
+ */
26521
+ this.cancelUserSubscription = ({ userId, subscriptionId, data }) => {
26522
+ return this.newInstance().putNsUsersByUseridSubscriptionsBySubscriptionidCancel(userId, subscriptionId, data);
26523
+ };
26114
26524
  }
26115
26525
  newInstance() {
26116
26526
  return new Subscription$(Network.create(this.conf), this.namespace, this.cache);
@@ -26277,19 +26687,32 @@ class WalletApi {
26277
26687
  this.namespace = namespace;
26278
26688
  this.cache = cache;
26279
26689
  /**
26280
- * get my wallet by currency code and namespace.<br>Other detail info: <ul><li><i>Required permission</i>: resource="NAMESPACE:{namespace}:WALLET", action=2 (READ)</li><li><i>Returns</i>: wallet info</li><li><i>Path's namespace</i> : <ul> <li>can be filled with <b>publisher namespace</b> in order to get <b>publisher user wallet</b></li> <li>can be filled with <b>game namespace</b> in order to get <b>game user wallet</b></li> </ul></li></ul>
26690
+ * GET [/platform/public/namespaces/{namespace}/users/me/wallets/{currencyCode}](api)
26691
+ *
26692
+ * get my wallet by currency code and namespace.
26693
+ *
26694
+ * Returns: wallet info
26695
+ *
26696
+ * Path's namespace:
26697
+ * - can be filled with __publisher namespace__ in order to get __publisher user wallet__
26698
+ * - can be filled with __game namespace__ in order to get __game user wallet__
26281
26699
  */
26282
26700
  this.getUserMeWallet = (currencyCode) => {
26283
26701
  return this.newInstance().fetchNsUsersMeWalletsByCurrencycode(currencyCode);
26284
26702
  };
26285
26703
  /**
26286
- * get a wallet by currency code.<br>Other detail info: <ul><li><i>Required permission</i>: resource="NAMESPACE:{namespace}:USER:{userId}:WALLET", action=2 (READ)</li><li><i>Returns</i>: wallet info</li></ul>
26704
+ * GET [/platform/public/namespaces/{namespace}/users/{userId}/wallets/{currencyCode}](api)
26705
+ *
26706
+ * Get a wallet by currency code.
26707
+ *
26708
+ * Returns: wallet info
26287
26709
  */
26288
26710
  this.getWalletByUserId = (userId, currencyCode) => {
26289
26711
  return this.newInstance().fetchNsUsersByUseridWalletsByCurrencycode(userId, currencyCode);
26290
26712
  };
26291
26713
  /**
26292
26714
  * get a map of wallet represented by its currency code
26715
+ * @internal
26293
26716
  */
26294
26717
  this.getWalletMap = async ({ userId, currencyCodes }) => {
26295
26718
  try {
@@ -26319,7 +26742,7 @@ class WalletApi {
26319
26742
  class ApiFactory {
26320
26743
  static userAuthorization(config, options, refreshToken, namespace, overrides) {
26321
26744
  const conf = ApiFactory.mergedConfigs(config, overrides);
26322
- return new UserAuthorization(conf, namespace, false, {
26745
+ return new UserAuthorizationApi(conf, namespace, false, {
26323
26746
  clientId: options.clientId,
26324
26747
  redirectURI: options.redirectURI,
26325
26748
  baseURL: options.baseURL,
@@ -26477,10 +26900,104 @@ const injectErrorInterceptors = (baseUrl, onUserEligibilityChange, onError) => {
26477
26900
  });
26478
26901
  };
26479
26902
 
26480
- var version="x.y.z";var build$1="x.y.z";var timestamp="x.y.z";var buildInfo = {version:version,build:build$1,timestamp:timestamp};
26903
+ /*
26904
+ * Copyright (c) 2023 AccelByte Inc. All Rights Reserved
26905
+ * This is licensed software from AccelByte Inc, for limitations
26906
+ * and restrictions contact your company contract manager.
26907
+ */
26908
+ var BasicVersion = {
26909
+ title: 'basic',
26910
+ name: 'justice-basic-service',
26911
+ version: '2.6.0',
26912
+ buildDate: '2023-02-22T00:53:23.199Z'
26913
+ };
26481
26914
 
26482
26915
  /*
26483
- * Copyright (c) 2022 AccelByte Inc. All Rights Reserved
26916
+ * Copyright (c) 2023 AccelByte Inc. All Rights Reserved
26917
+ * This is licensed software from AccelByte Inc, for limitations
26918
+ * and restrictions contact your company contract manager.
26919
+ */
26920
+ var BuildinfoVersion = {
26921
+ title: 'buildinfo',
26922
+ name: 'justice-buildinfo-service',
26923
+ version: '3.28.2',
26924
+ buildDate: '2023-02-22T00:53:23.199Z'
26925
+ };
26926
+
26927
+ /*
26928
+ * Copyright (c) 2023 AccelByte Inc. All Rights Reserved
26929
+ * This is licensed software from AccelByte Inc, for limitations
26930
+ * and restrictions contact your company contract manager.
26931
+ */
26932
+ var EventVersion = {
26933
+ title: 'event',
26934
+ name: 'justice-event-log-service',
26935
+ version: undefined,
26936
+ buildDate: '2023-02-22T00:53:23.199Z'
26937
+ };
26938
+
26939
+ /*
26940
+ * Copyright (c) 2023 AccelByte Inc. All Rights Reserved
26941
+ * This is licensed software from AccelByte Inc, for limitations
26942
+ * and restrictions contact your company contract manager.
26943
+ */
26944
+ var GdprVersion = {
26945
+ title: 'gdpr',
26946
+ name: 'justice-gdpr-service',
26947
+ version: '1.19.1',
26948
+ buildDate: '2023-02-22T00:53:23.199Z'
26949
+ };
26950
+
26951
+ /*
26952
+ * Copyright (c) 2023 AccelByte Inc. All Rights Reserved
26953
+ * This is licensed software from AccelByte Inc, for limitations
26954
+ * and restrictions contact your company contract manager.
26955
+ */
26956
+ var IamVersion = {
26957
+ title: 'iam',
26958
+ name: 'justice-iam-service',
26959
+ version: '5.28.0',
26960
+ buildDate: '2023-02-22T00:53:23.199Z'
26961
+ };
26962
+
26963
+ /*
26964
+ * Copyright (c) 2023 AccelByte Inc. All Rights Reserved
26965
+ * This is licensed software from AccelByte Inc, for limitations
26966
+ * and restrictions contact your company contract manager.
26967
+ */
26968
+ var LegalVersion = {
26969
+ title: 'legal',
26970
+ name: 'justice-legal-service',
26971
+ version: '1.27.0',
26972
+ buildDate: '2023-02-22T00:53:23.199Z'
26973
+ };
26974
+
26975
+ /*
26976
+ * Copyright (c) 2023 AccelByte Inc. All Rights Reserved
26977
+ * This is licensed software from AccelByte Inc, for limitations
26978
+ * and restrictions contact your company contract manager.
26979
+ */
26980
+ var OdinConfigVersion = {
26981
+ title: 'odin-config',
26982
+ name: 'config-service-app',
26983
+ version: 'dev',
26984
+ buildDate: '2023-02-22T00:53:23.199Z'
26985
+ };
26986
+
26987
+ /*
26988
+ * Copyright (c) 2023 AccelByte Inc. All Rights Reserved
26989
+ * This is licensed software from AccelByte Inc, for limitations
26990
+ * and restrictions contact your company contract manager.
26991
+ */
26992
+ var PlatformVersion = {
26993
+ title: 'platform',
26994
+ name: 'justice-platform-service',
26995
+ version: '4.24.0',
26996
+ buildDate: '2023-02-22T00:53:23.199Z'
26997
+ };
26998
+
26999
+ /*
27000
+ * Copyright (c) 2022-2023 AccelByte Inc. All Rights Reserved
26484
27001
  * This is licensed software from AccelByte Inc, for limitations
26485
27002
  * and restrictions contact your company contract manager.
26486
27003
  */
@@ -26526,7 +27043,6 @@ class AccelbyteSDKFactory {
26526
27043
  }
26527
27044
  };
26528
27045
  this.options = {
26529
- loglevel: 'INFO',
26530
27046
  cache: false,
26531
27047
  ...options
26532
27048
  };
@@ -26541,9 +27057,7 @@ class AccelbyteSDKFactory {
26541
27057
  ...config?.headers
26542
27058
  }
26543
27059
  };
26544
- if (options.loglevel === LogLevel.DEBUG) {
26545
- Logger.info('Accelbyte-SDK initialized with config', this.config);
26546
- }
27060
+ // Logger.info('Accelbyte-SDK initialized with config', this.config)
26547
27061
  }
26548
27062
  init() {
26549
27063
  const { baseURL, clientId } = this.options;
@@ -26557,18 +27071,21 @@ class AccelbyteSDKFactory {
26557
27071
  OAuth: (overrides) => ApiFactory.oauthApi(this.config, this.options, this.options.namespace, this.override(overrides)),
26558
27072
  InputValidation: (overrides) => ApiFactory.inputValidationApi(this.config, this.options.namespace, this.override(overrides)),
26559
27073
  ThirdPartyCredential: (overrides) => ApiFactory.thirdPartyCredentialApi(this.config, this.options.namespace, this.override(overrides)),
26560
- TwoFA: (overrides) => ApiFactory.twoFA(this.config, this.options.namespace, this.override(overrides))
27074
+ TwoFA: (overrides) => ApiFactory.twoFA(this.config, this.options.namespace, this.override(overrides)),
27075
+ version: IamVersion
26561
27076
  },
26562
27077
  BuildInfo: {
26563
27078
  Downloader: (overrides) => ApiFactory.downloaderApi(this.config, this.options.namespace, this.override(overrides)),
26564
27079
  Caching: (overrides) => ApiFactory.cachingApi(this.config, this.options.namespace, this.override(overrides)),
26565
- DLC: (overrides) => ApiFactory.dlcApi(this.config, this.options.namespace, this.override(overrides))
27080
+ DLC: (overrides) => ApiFactory.dlcApi(this.config, this.options.namespace, this.override(overrides)),
27081
+ version: BuildinfoVersion
26566
27082
  },
26567
27083
  Basic: {
26568
27084
  Misc: (overrides) => ApiFactory.miscApi(this.config, this.options.namespace, this.override(overrides)),
26569
27085
  UserProfile: (overrides) => ApiFactory.userProfileApi(this.config, this.options.namespace, this.override(overrides)),
26570
27086
  FileUpload: (overrides) => ApiFactory.fileUploadApi(this.config, this.options.namespace, this.override(overrides)),
26571
- Namespace: (overrides) => ApiFactory.namespaceApi(this.config, this.options.namespace, this.override(overrides))
27087
+ Namespace: (overrides) => ApiFactory.namespaceApi(this.config, this.options.namespace, this.override(overrides)),
27088
+ version: BasicVersion
26572
27089
  },
26573
27090
  Platform: {
26574
27091
  Currency: (overrides) => ApiFactory.currencyApi(this.config, this.options.namespace, this.override(overrides)),
@@ -26578,35 +27095,54 @@ class AccelbyteSDKFactory {
26578
27095
  Order: (overrides) => ApiFactory.orderApi(this.config, this.options.namespace, this.override(overrides)),
26579
27096
  Payment: (overrides) => ApiFactory.paymentApi(this.config, this.options.namespace, this.override(overrides)),
26580
27097
  Subscription: (overrides) => ApiFactory.subscriptionApi(this.config, this.options.namespace, this.override(overrides)),
26581
- Wallet: (overrides) => ApiFactory.walletApi(this.config, this.options.namespace, this.override(overrides))
27098
+ Wallet: (overrides) => ApiFactory.walletApi(this.config, this.options.namespace, this.override(overrides)),
27099
+ version: PlatformVersion
26582
27100
  },
26583
27101
  Legal: {
26584
27102
  Eligibilities: (overrides) => ApiFactory.eligibillitiesApi(this.config, this.options.namespace, this.override(overrides)),
26585
27103
  Agreement: (overrides) => ApiFactory.agreementApi(this.config, this.options.namespace, this.override(overrides)),
26586
27104
  Policies: (overrides) => ApiFactory.policiesApi(this.config, this.options.namespace, this.override(overrides)),
26587
- LocalizedPolicyVersions: (overrides) => ApiFactory.localizedPolicyVersionsApi(this.config, this.options.namespace, this.override(overrides))
27105
+ LocalizedPolicyVersions: (overrides) => ApiFactory.localizedPolicyVersionsApi(this.config, this.options.namespace, this.override(overrides)),
27106
+ version: LegalVersion
26588
27107
  },
26589
27108
  GDPR: {
26590
27109
  DataDeletion: (overrides) => ApiFactory.dataDeletionApi(this.config, this.options.namespace, this.override(overrides)),
26591
- DataRetrieval: (overrides) => ApiFactory.dataRetrievalApi(this.config, this.options.namespace, this.override(overrides))
27110
+ DataRetrieval: (overrides) => ApiFactory.dataRetrievalApi(this.config, this.options.namespace, this.override(overrides)),
27111
+ version: GdprVersion
26592
27112
  },
26593
27113
  Event: {
26594
- Event: (overrides) => ApiFactory.eventApi(this.config, this.options.namespace, this.override(overrides))
27114
+ Event: (overrides) => ApiFactory.eventApi(this.config, this.options.namespace, this.override(overrides)),
27115
+ version: EventVersion
26595
27116
  },
26596
27117
  AccelbyteConfig: {
26597
- PublicTemplate: (overrides) => ApiFactory.publicTemplateApi(this.config, this.options.namespace, this.override(overrides))
27118
+ PublicTemplate: (overrides) => ApiFactory.publicTemplateApi(this.config, this.options.namespace, this.override(overrides)),
27119
+ version: OdinConfigVersion
27120
+ },
27121
+ version: () => {
27122
+ console.log('IamVersion: ', IamVersion.version);
27123
+ console.log('BuildinfoVersion: ', BuildinfoVersion.version);
27124
+ console.log('BasicVersion: ', BasicVersion.version);
27125
+ console.log('PlatformVersion: ', PlatformVersion.version);
27126
+ console.log('LegalVersion: ', LegalVersion.version);
27127
+ console.log('GdprVersion: ', GdprVersion.version);
27128
+ console.log('EventVersion: ', EventVersion.version);
27129
+ const axiosInstance = Network.create(this.config);
27130
+ axiosInstance
27131
+ .get('https://development.accelbyte.io/iam/version')
27132
+ .then(res => {
27133
+ console.log('-- axiosInstance res', res.data);
27134
+ console.log('-- current ver', IamVersion);
27135
+ })
27136
+ .catch(err => {
27137
+ console.log('-- axiosInstance err', err);
27138
+ });
26598
27139
  }
26599
27140
  };
26600
27141
  }
26601
27142
  }
26602
27143
  const sdkInit = ({ options, config, onEvents }) => {
26603
- if (options.loglevel === LogLevel.DEBUG) {
26604
- Logger.info('Accelbyte-SDK instantiated:', options);
26605
- }
27144
+ Logger.info('Accelbyte-SDK instantiated:', options);
26606
27145
  const sdkFactory = new AccelbyteSDKFactory(options, config, onEvents);
26607
- if (options.loglevel === LogLevel.DEBUG) {
26608
- Logger.info(`Accelbyte-SDK version: ${buildInfo.version} \nBuild: ${buildInfo.build} \nTimestamp: ${new Date(buildInfo.timestamp)}`);
26609
- }
26610
27146
  return sdkFactory.init();
26611
27147
  };
26612
27148
  // ts-prune-ignore-next
@@ -39406,7 +39942,7 @@ const PageConfig = mod.object({
39406
39942
  });
39407
39943
 
39408
39944
  /*
39409
- * Copyright (c) 2022 AccelByte Inc. All Rights Reserved
39945
+ * Copyright (c) 2022-2023 AccelByte Inc. All Rights Reserved
39410
39946
  * This is licensed software from AccelByte Inc, for limitations
39411
39947
  * and restrictions contact your company contract manager.
39412
39948
  */
@@ -39765,5 +40301,5 @@ CodeGenUtil.getFormUrlEncodedData = (data) => {
39765
40301
  return formPayload;
39766
40302
  };
39767
40303
 
39768
- export { ADtoForUnbanUserApiCall, ADtoForUpdateEqu8ConfigApiCall, ADtoObjectForEqu8UserBanStatus, ADtoObjectForEqu8UserStatus, ARCH, Accelbyte, AcceptAgreementRequest, AcceptAgreementResponse, AcceptedPoliciesRequest, AccountProgressionInfo, Achievement, AchievementInfo, Action, AddCountryGroupRequest, AddCountryGroupResponse, AddUserRoleV4Request, AdditionalData, AdminOrderCreate, AdyenConfig, AgeRestrictionRequest, AgeRestrictionRequestV3, AgeRestrictionResponse, AgeRestrictionResponseV3, AgentType, Agreement$, AliPayConfig, AppEntitlementInfo, AppEntitlementPagingSlicedResult, AppInfo, AppLocalization, AppUpdate, AppleIapConfigInfo, AppleIapConfigRequest, AppleIapReceipt, AssignUserV4Request, AssignedUserV4Response, AuthenticatorKeyResponseV4, AuthenticatorSecretKey, AvailableComparison, AvailablePlatform, AvailablePredicate, AvatarSyncRequestV4, BUILDINFO_PLATFORM_ID, BackgroundOverlay, BackgroundOverlayType, BackupCodesResponseV4, Ban, BanCreateRequest, BanReason, BanReasonV3, BanReasons, BanReasonsV3, BanType, BanUpdateRequest, BanV3, BannedBy, BannedByV3, Bans, BansV3, BasicBuildManifest, BasicBuildManifestArray, BasicCategoryInfo, BasicItem, BillingAccount, BillingHistoryChargeStatus, BillingHistoryInfo, BillingHistoryPagingSlicedResult, BinaryUpload, BlockData, BlockDownloadUrls, BlockDownloadUrlsRequest, BlockManifest, BoxItem, BrowserHelper, BuildAvailability, BuildAvailabilityArray, BuildDeletionData, BuildIdManifest, BuildIdVersion, BuildInfoPii, BuildManifest, BulkBanCreateRequestV3, BulkOperationResult, BulkUnbanCreateRequestV3, BundledItemInfo, Caching$, CalculateDiffCacheRequest, CampaignCreate, CampaignDynamicInfo, CampaignInfo, CampaignPagingSlicedResult, CampaignUpdate, CancelRequest, CatalogChangeInfo, CatalogChangePagingSlicedResult, CatalogChangeStatistics, Category$, CategoryCreate, CategoryInfo, CategoryInfoArray, CategoryUpdate, CheckValidUserIdRequestV4, CheckoutConfig, CleanerConfigObject, ClientCreateRequest, ClientCreationResponse, ClientCreationV3Request, ClientPayload, ClientPermission, ClientPermissionV3, ClientPermissions, ClientPermissionsV3, ClientRequestParameter, ClientResponse, ClientUpdateRequest, ClientUpdateSecretRequest, ClientUpdateV3Request, ClientV3Response, ClientsV3Response, CodeCreate, CodeCreateResult, CodeGenUtil, CodeInfo, CodeInfoPagingSlicedResult, ColorConfig, ColorConfigs, CommitDiffCacheRequest, CommitMultipartUploadRequest, CompanyLogo, CompanyLogoConfig, CompatibilityObject, ConditionGroup, ConditionGroupValidateResult, ConditionMatchResult, Config, Configs, ConfigurationInfo, ConfigurationUpdate, ConflictedUserPlatformAccounts, ConsumeItem, Country, CountryAgeRestriction, CountryAgeRestrictionRequest, CountryAgeRestrictionV3Request, CountryGroupObject, CountryLocationResponse, CountryObject, CountryObjectArray, CountryV3Response, CreateBasePolicyRequest, CreateBasePolicyRequestV2, CreateBasePolicyResponse, CreateDependencyLinkRequest, CreateDiffCacheRequest, CreateJusticeUserResponse, CreateLocalizedPolicyVersionRequest, CreateLocalizedPolicyVersionResponse, CreatePolicyVersionRequest, CreatePolicyVersionResponse, CreateTestUserRequestV4, CreateTestUserResponseV4, CreateTestUsersRequestV4, CreateTestUsersResponseV4, CreateUserRequestV4, CreateUserResponseV4, CreditRequest, CreditRevocation, CreditSummary, Currency$, CurrencyConfig, CurrencyCreate, CurrencyInfo, CurrencyInfoArray, CurrencySummary, CurrencyUpdate, CurrencyWallet, Customization, DISCOVERY_TEMPLATE_NAME, DataDeletion$, DataRetrieval$, DataRetrievalResponse, DebitByCurrencyCodeRequest, DebitRequest, DecodeError, DefaultLaunchProfile, DeleteRewardConditionRequest, DeletionData, DeletionStatus, DependencyObject, Description, DetailedWalletTransactionInfo, DetailedWalletTransactionPagingSlicedResult, DeviceBanRequestV4, DeviceBanResponseV4, DeviceBanUpdateRequestV4, DeviceBannedResponseV4, DeviceBansResponseV4, DeviceIdDecryptResponseV4, DeviceResponseV4, DeviceTypeResponseV4, DeviceTypesResponseV4, DeviceUserResponseV4, DeviceUsersResponseV4, DevicesResponseV4, DiffCacheObject, DiffPatchRequest, DiffStatusReport, DifferentialBuildManifest, DifferentialFileManifest, DifferentialUploadSummary, DisableUserRequest, DiscoveryConfigData, DisplayedPolicy, DistinctLinkedPlatformV3, DistinctPlatformResponseV3, Dlc$, DlcItem, DlcItemConfigInfo, DlcItemConfigUpdate, DlcRecord, Downloader$, DownloaderApi, Drm$, DurableEntitlementRevocationConfig, ERROR_CODE_LINK_DELETION_ACCOUNT, ERROR_CODE_TOKEN_EXPIRED, ERROR_LINK_ANOTHER_3RD_PARTY_ACCOUNT, ERROR_USER_BANNED, Eligibilities$, EligibleUser, EmailUpdateRequestV4, EnabledFactorsResponseV4, EncryptedIdentity, Entitlement$, EntitlementDecrement, EntitlementDecrementResult, EntitlementGrant, EntitlementHistoryInfo, EntitlementInfo, EntitlementLootBoxReward, EntitlementOwnership, EntitlementOwnershipArray, EntitlementPagingSlicedResult, EntitlementRevocation, EntitlementRevocationConfig, EntitlementSummary, EntitlementUpdate, EpicGamesDlcSyncRequest, EpicGamesIapConfigInfo, EpicGamesIapConfigRequest, EpicGamesReconcileRequest, EpicGamesReconcileResult, EpicGamesReconcileResultArray, Equ8Config, Error$1 as Error, ErrorEntity, ErrorResponse, ErrorResponseWithConflictedUserPlatformAccounts, Event, EventId, EventLevel, EventPayload, EventRegistry, EventResponse, EventResponseV2, EventType, EventV2, EventV2$, ExportStoreRequest, ExtensionFulfillmentSummary, ExternalPaymentOrderCreate, FailedBanUnbanUserV3, FieldValidationError, FileDiffingStatus, FileManifest, FileUpload$, FileUploadUrlInfo, FilterJson, FixedPeriodRotationConfig, FontConfigs, ForgotPasswordRequestV3, FulfillCodeRequest, Fulfillment$, FulfillmentError, FulfillmentHistoryInfo, FulfillmentHistoryPagingSlicedResult, FulfillmentItem, FulfillmentRequest, FulfillmentResult, FulfillmentScriptContext, FulfillmentScriptCreate, FulfillmentScriptEvalTestRequest, FulfillmentScriptEvalTestResult, FulfillmentScriptInfo, FulfillmentScriptUpdate, FullAppInfo, FullCategoryInfo, FullItemInfo, FullItemPagingSlicedResult, FullSectionInfo, FullViewInfo, GameTokenCodeResponse, GenericQueryPayload, GetAdminUsersResponse, GetLinkHeadlessAccountConflictResponse, GetPublisherUserResponse, GetPublisherUserV3Response, GetUserBanV3Response, GetUserJusticePlatformAccountResponse, GetUserMapping, GetUserMappingV3, GetUserMappingV3Array, GetUsersResponseWithPaginationV3, GlobalStyleConfig, GoogleIapConfigInfo, GoogleIapConfigRequest, GoogleIapReceipt, GoogleReceiptResolveResult, GrantSubscriptionDaysRequest, HierarchicalCategoryInfo, HierarchicalCategoryInfoArray, IamHelper, Iap$, IapConsumeHistoryInfo, IapConsumeHistoryPagingSlicedResult, IapItemConfigInfo, IapItemConfigUpdate, IapItemEntry, IapOrderInfo, IapOrderPagingSlicedResult, Image, ImportErrorDetails, ImportStoreError, ImportStoreItemInfo, ImportStoreResult, InGameItemSync, InputValidationData, InputValidationDataPublic, InputValidationDescription, InputValidationHelper, InputValidationUpdatePayload, InputValidations$, InputValidationsApi, InputValidationsPublicResponse, InputValidationsResponse, InviteUserRequestV3, InviteUserRequestV4, InviteUserResponseV3, InvoiceCurrencySummary, InvoiceSummary, Item$, ItemAcquireRequest, ItemAcquireResult, ItemCreate, ItemDynamicDataInfo, ItemId, ItemInfo, ItemInfoArray, ItemNaming, ItemPagingSlicedResult, ItemPurchaseConditionValidateRequest, ItemPurchaseConditionValidateResult, ItemPurchaseConditionValidateResultArray, ItemReturnRequest, ItemRevocation, ItemSnapshot, ItemTypeConfigCreate, ItemTypeConfigInfo, ItemTypeConfigUpdate, ItemUpdate, JwkKey, JwkSet, JwtBanV3, KeyGroupCreate, KeyGroupDynamicInfo, KeyGroupInfo, KeyGroupPagingSlicedResult, KeyGroupUpdate, KeyInfo, KeyPagingSliceResult, LauncherPageConfig, LegalHelper, LegalPolicyType, LegalReadinessStatusResponse, LinkHeadlessAccountRequest, LinkPlatformAccountRequest, LinkPlatformAccountWithProgressionRequest, LinkRequest, LinkingHistoryResponseWithPaginationV3, ListAssignedUsersV4Response, ListBulkUserBanResponseV3, ListBulkUserResponse, ListDeletionDataResponse, ListEmailAddressRequest, ListPersonalDataResponse, ListRoleV4Response, ListUserInformationResult, ListUserResponseV3, ListUserRolesV4Response, ListUsersWithPlatformAccountsResponse, ListValidUserIdResponseV4, ListViewInfo, Localization, LocalizedPolicyVersionObject, LocalizedPolicyVersions$, LocalizedPolicyVersionsWithNamespace$, LogLevel, LoginErrorCancelled, LoginErrorExpired, LoginErrorParam, LoginErrorUnknown, LoginErrorUnmatchedState, LoginHistoriesResponse, LogoVariantConfig, LootBoxConfig, LootBoxReward, MFADataResponse, MFA_DATA_STORAGE_KEY, MachineIdentity, Misc$, MiscApi, MockIapReceipt, ModelCountry, MultipartUploadSummary, MultipartUploadUrl, MultipartUploadedPart, MultipleAgentType, MultipleEventId, MultipleEventLevel, MultipleEventType, MultipleUx, Namespace$, NamespaceCreate, NamespaceInfo, NamespaceInfoArray, NamespacePublisherInfo, NamespaceRole, NamespaceRoleRequest, NamespaceStatusUpdate, NamespaceUpdate, NetflixCertificates, Network, NotificationProcessResult, OAuth20$, OAuth20Extension$, ObsoleteFileManifest, OneTimeLinkingCodeResponse, OneTimeLinkingCodeValidationResponse, OptionBoxConfig, Order, Order$, OrderCreate, OrderCreationOptions, OrderGrantInfo, OrderHistoryInfo, OrderHistoryInfoArray, OrderInfo, OrderPagingResult, OrderPagingSlicedResult, OrderRefundCreate, OrderStatistics, OrderStatus, OrderSummary, OrderSyncResult, OrderUpdate, Ownership, OwnershipToken, PLATFORM, PageConfig, PagedRetrieveUserAcceptedAgreementResponse, Pagination$1 as Pagination, PaginationV3, Paging$1 as Paging, PayPalConfig, PaymentAccount, PaymentAccount$, PaymentAccountArray, PaymentApi, PaymentCallbackConfigInfo, PaymentCallbackConfigUpdate, PaymentMerchantConfigInfo, PaymentMethod, PaymentMethodArray, PaymentNotificationInfo, PaymentNotificationPagingSlicedResult, PaymentOrder, PaymentOrderChargeRequest, PaymentOrderChargeStatus, PaymentOrderCreate, PaymentOrderCreateResult, PaymentOrderDetails, PaymentOrderInfo, PaymentOrderNotifySimulation, PaymentOrderPagingSlicedResult, PaymentOrderPaidResult, PaymentOrderRefund, PaymentOrderRefundResult, PaymentOrderSyncResult, PaymentProcessResult, PaymentProviderConfigEdit, PaymentProviderConfigInfo, PaymentProviderConfigPagingSlicedResult, PaymentRequest, PaymentStation$, PaymentTaxConfigEdit, PaymentTaxConfigInfo, PaymentToken, PaymentUrl, PaymentUrlCreate, Permission, PermissionDeleteRequest, PermissionV3, Permissions, PermissionsV3, PersonalData, PingResultResponse, PlatformAccount, PlatformDlcConfigInfo, PlatformDlcConfigUpdate, PlatformDlcEntry, PlatformDomainDeleteRequest, PlatformDomainResponse, PlatformDomainUpdateRequest, PlatformReward, PlatformRewardCurrency, PlatformRewardItem, PlatformSubscribeRequest, PlatformUserIdRequest, PlatformUserInformation, PlatformUserInformationV3, PlatformWallet, PlatformWalletConfigInfo, PlatformWalletConfigUpdate, PlayStationDlcSyncMultiServiceLabelsRequest, PlayStationDlcSyncRequest, PlayStationIapConfigInfo, PlayStationMultiServiceLabelsReconcileRequest, PlayStationReconcileRequest, PlayStationReconcileResult, PlayStationReconcileResultArray, PlayerPortalConfigData, PlayerPortalFeatureFlagsConfig, PlayerPortalFooterConfig, PlayerPortalFooterConfigLink, PlayerPortalFooterIDs, PlayerPortalHomePageKeys, PlayerPortalHomepageConfig, PlayerPortalHomepageKeys, PlaystationIapConfigRequest, Policies$, PoliciesApi, PolicyObject, PolicyVersionObject, PolicyVersionWithLocalizedVersionObject, PopulatedItemInfo, PreCheckUploadRequest, Predicate, PredicateValidateResult, PublicKeyPresignedUrl, PublicThirdPartyPlatformInfo, PublicThirdPartyPlatformInfoArray, PublicUserInformationResponseV3, PublicUserInformationV3, PublicUserResponse, PublicUserResponseV3, PublicUsersResponse, PurchaseCondition, PurchaseConditionUpdate, PurchasedItemCount, ReadyPlayerMe, Recurring, RecurringChargeResult, RedeemHistoryInfo, RedeemHistoryPagingSlicedResult, RedeemRequest, RedeemResult, RedeemableItem, RegionDataItem, RegisteredDomain, ReleaseNoteDto, ReleaseNoteLocalizationDto, ReleaseNoteManifest, RemoveUserRoleV4Request, RequestDeleteResponse, RequestHistory, Requirement, ResetPasswordRequest, ResetPasswordRequestV3, RestErrorResponse, RetrieveAcceptedAgreementResponse, RetrieveAcceptedAgreementResponseArray, RetrieveBaseGameResponse, RetrieveBaseGameResponseArray, RetrieveBasePolicyResponse, RetrieveCountryGroupResponse, RetrieveDependencyCompatibilityResponse, RetrieveDependencyLinkResponse, RetrieveDiffCacheResponse, RetrieveLatestDlcResponse, RetrieveLatestDlcResponseArray, RetrieveLocalizedPolicyVersionPublicResponse, RetrieveLocalizedPolicyVersionResponse, RetrievePolicyPublicResponse, RetrievePolicyPublicResponseArray, RetrievePolicyResponse, RetrievePolicyTypeResponse, RetrievePolicyVersionResponse, RetrieveTimeResponse, RetrieveUserAcceptedAgreementResponse, RetrieveUserEligibilitiesIndirectResponse, RetrieveUserEligibilitiesResponse, RetrieveUserEligibilitiesResponseArray, RetrieveUserInfoCacheStatusResponse, RevocationConfigInfo, RevocationConfigUpdate, RevocationHistoryInfo, RevocationHistoryPagingSlicedResult, RevocationList, RevocationRequest, RevocationResult, RevokeCurrency, RevokeEntitlement, RevokeEntry, RevokeItem, RevokeItemSummary, RevokeResult, RevokeUserV4Request, Reward$, RewardCondition, RewardCreate, RewardInfo, RewardItem, RewardPagingSlicedResult, RewardUpdate, RewardsRequest, Role, RoleAdminStatusResponse, RoleAdminStatusResponseV3, RoleCreateRequest, RoleCreateV3Request, RoleManager, RoleManagerV3, RoleManagersRequest, RoleManagersRequestV3, RoleManagersResponse, RoleManagersResponsesV3, RoleMember, RoleMemberV3, RoleMembersRequest, RoleMembersRequestV3, RoleMembersResponse, RoleMembersResponseV3, RoleNamesResponseV3, RoleResponse, RoleResponseV3, RoleResponseWithManagers, RoleResponseWithManagersAndPaginationV3, RoleResponseWithManagersV3, RoleUpdateRequest, RoleUpdateRequestV3, RoleV3, RoleV4Request, RoleV4Response, Roles$, SdkCache, SdkDevice, SearchUsersByPlatformIdResponse, SearchUsersResponse, SearchUsersResponseWithPaginationV3, Section$, SectionCreate, SectionInfo, SectionInfoArray, SectionItem, SectionPagingSlicedResult, SectionUpdate, SendRegisterVerificationCodeRequest, SendVerificationCodeRequest, SendVerificationCodeRequestV3, SendVerificationLinkRequest, ServicePluginConfigInfo, ServicePluginConfigUpdate, SimpleLatestBaseGame, SimpleUserPlatformInfoV3, Slide, SocialLinkConfig, Sso$, SsoPlatformCredentialRequest, SsoPlatformCredentialResponse, SsoSaml20$, StackableEntitlementInfo, StartMultipartUploadRequest, StaticConfigs$, SteamAchievementUpdateRequest, SteamDlcSyncRequest, SteamIapConfig, SteamIapConfigInfo, SteamIapConfigRequest, SteamSyncRequest, Store$, StoreBackupInfo, StoreCreate, StoreInfo, StoreInfoArray, StoreUpdate, StripeConfig, Subscribable, SubscribeRequest, Subscription$, SubscriptionActivityInfo, SubscriptionActivityPagingSlicedResult, SubscriptionChargeStatus, SubscriptionInfo, SubscriptionPagingSlicedResult, SubscriptionStatus, SubscriptionSummary, TWOFA_PAGE, TaxResult, Template, TemplateCompact, TemplateConfig, TemplateInfoConfig, Templates$, TestResult, ThirdPartyCredential$, ThirdPartyLoginPlatformCredentialRequest, ThirdPartyLoginPlatformCredentialResponse, TicketAcquireRequest, TicketAcquireResult, TicketBoothId, TicketDynamicInfo, TicketSaleDecrementRequest, TicketSaleIncrementRequest, TicketSaleIncrementResult, TimeLimitedBalance, TimedOwnership, TokenIntrospectResponse, TokenResponse, TokenResponseV3, TokenThirdPartyLinkStatusResponse, TokenThirdPartyResponse, TokenWithDeviceCookieResponseV3, TradeNotification, Transaction, TransactionAmountDetails, TwitchIapConfigInfo, TwitchIapConfigRequest, TwitchSyncRequest, UnlinkUserPlatformRequest, UpdateBasePolicyRequest, UpdateBasePolicyRequestV2, UpdateBasePolicyResponse, UpdateBuildMetadataRequest, UpdateCountryGroupRequest, UpdateLocalizedPolicyVersionRequest, UpdateLocalizedPolicyVersionResponse, UpdatePermissionScheduleRequest, UpdatePolicyRequest, UpdatePolicyVersionRequest, UpdatePolicyVersionResponse, UpdateUserDeletionStatusRequest, UpdateUserStatusRequest, UpgradeHeadlessAccountRequest, UpgradeHeadlessAccountRequestV4, UpgradeHeadlessAccountV3Request, UpgradeHeadlessAccountWithVerificationCodeRequest, UpgradeHeadlessAccountWithVerificationCodeRequestV3, UpgradeHeadlessAccountWithVerificationCodeRequestV4, UploadBuildManifest, UploadLocalizedPolicyVersionAttachmentResponse, UploadModeCheck, UploadPolicyVersionAttachmentRequest, UploadSummary, UrlHelper, UserAction$, UserActiveBanResponse, UserActiveBanResponseV3, UserActiveBanResponseV4, UserApi, UserAuthorization, UserBan, UserBanRequest, UserBanResponse, UserBanResponseV3, UserBaseInfo, UserCreateFromInvitationRequestV3, UserCreateFromInvitationRequestV4, UserCreateRequest, UserCreateRequestV3, UserCreateResponse, UserCreateResponseV3, UserDataUrl, UserDeletionStatusResponse, UserDlc, UserIDsRequest, UserInfoResponse, UserInformation, UserInformationV3, UserInvitationV3, UserLastActivity, UserLinkedPlatform, UserLinkedPlatformV3, UserLinkedPlatformsResponseV3, UserLoginHistoryResponse, UserPasswordUpdateRequest, UserPasswordUpdateV3Request, UserPermissionsResponseV3, UserPermissionsResponseV4, UserPersonalData, UserPersonalDataResponse, UserPlatformInfo, UserPlatforms, UserProfile$, UserProfileAdmin, UserProfileApi, UserProfileBulkRequest, UserProfileCreate, UserProfileInfo, UserProfilePrivateCreate, UserProfilePrivateInfo, UserProfilePrivateUpdate, UserProfilePublicInfo, UserProfilePublicInfoArray, UserProfileStatusUpdate, UserProfileUpdate, UserReportRequest, UserResponse, UserResponseV3, UserResponseV4, UserRevocationListRecord, UserRolesV4Response, UserSearchByPlatformIdResult, UserSearchResult, UserUnbanCreateRequestV3, UserUpdateRequest, UserUpdateRequestV3, UserVerificationRequest, UserVerificationRequestV3, UserWithLinkedPlatformAccounts, UserWithPlatformAccounts, UserZipCode, UserZipCodeUpdate, Users$, UsersV4$, Utility$, Ux, V3ClientUpdateSecretRequest, VALIDATION_ERROR_CODE, ValidUserIdResponseV4, Validate, ValidateableInputField, Validation, ValidationConfig, ValidationDescription, ValidationDetail, ValidationDetailPublic, ValidationErrorEntity, VerificationCodeResponse, VerifyRegistrationCode, VersionChain, VersionNode, View$, ViewCreate, ViewInfo, ViewInfoArray, ViewUpdate, Wallet$, WalletInfo, WalletPagingSlicedResult, WalletRevocationConfig, WalletTransactionInfo, WalletTransactionPagingSlicedResult, WebLinkingResponse, WxPayConfigInfo, WxPayConfigRequest, XblAchievementUpdateRequest, XblDlcSyncRequest, XblIapConfigInfo, XblIapConfigRequest, XblReconcileRequest, XblReconcileResult, XblReconcileResultArray, XblUserAchievements, XsollaConfig, XsollaPaywallConfig, XsollaPaywallConfigRequest, ZsyncDiffRequest, ZsyncFileManifest, injectRequestInterceptors, injectResponseInterceptors };
40304
+ export { ADtoForUnbanUserApiCall, ADtoForUpdateEqu8ConfigApiCall, ADtoObjectForEqu8UserBanStatus, ADtoObjectForEqu8UserStatus, ARCH, Accelbyte, AcceptAgreementRequest, AcceptAgreementResponse, AcceptedPoliciesRequest, AccountProgressionInfo, Achievement, AchievementInfo, Action, AddCountryGroupRequest, AddCountryGroupResponse, AddUserRoleV4Request, AdditionalData, AdminOrderCreate, AdyenConfig, AgeRestrictionRequest, AgeRestrictionRequestV3, AgeRestrictionResponse, AgeRestrictionResponseV3, AgentType, Agreement$, AliPayConfig, AppEntitlementInfo, AppEntitlementPagingSlicedResult, AppInfo, AppLocalization, AppUpdate, AppleIapConfigInfo, AppleIapConfigRequest, AppleIapReceipt, AssignUserV4Request, AssignedUserV4Response, AuthenticatorKeyResponseV4, AuthenticatorSecretKey, AvailableComparison, AvailablePlatform, AvailablePredicate, AvatarSyncRequestV4, BUILDINFO_PLATFORM_ID, BackgroundOverlay, BackgroundOverlayType, BackupCodesResponseV4, Ban, BanCreateRequest, BanReason, BanReasonV3, BanReasons, BanReasonsV3, BanType, BanUpdateRequest, BanV3, BannedBy, BannedByV3, Bans, BansV3, BasicBuildManifest, BasicBuildManifestArray, BasicCategoryInfo, BasicItem, BillingAccount, BillingHistoryChargeStatus, BillingHistoryInfo, BillingHistoryPagingSlicedResult, BinaryUpload, BlockData, BlockDownloadUrls, BlockDownloadUrlsRequest, BlockManifest, BoxItem, BrowserHelper, BuildAvailability, BuildAvailabilityArray, BuildDeletionData, BuildIdManifest, BuildIdVersion, BuildInfoPii, BuildManifest, BulkBanCreateRequestV3, BulkOperationResult, BulkUnbanCreateRequestV3, BundledItemInfo, Caching$, CalculateDiffCacheRequest, CampaignCreate, CampaignDynamicInfo, CampaignInfo, CampaignPagingSlicedResult, CampaignUpdate, CancelRequest, CatalogChangeInfo, CatalogChangePagingSlicedResult, CatalogChangeStatistics, Category$, CategoryCreate, CategoryInfo, CategoryInfoArray, CategoryUpdate, CheckValidUserIdRequestV4, CheckoutConfig, CleanerConfigObject, ClientCreateRequest, ClientCreationResponse, ClientCreationV3Request, ClientPayload, ClientPermission, ClientPermissionV3, ClientPermissions, ClientPermissionsV3, ClientRequestParameter, ClientResponse, ClientUpdateRequest, ClientUpdateSecretRequest, ClientUpdateV3Request, ClientV3Response, ClientsV3Response, CodeCreate, CodeCreateResult, CodeGenUtil, CodeInfo, CodeInfoPagingSlicedResult, ColorConfig, ColorConfigs, CommitDiffCacheRequest, CommitMultipartUploadRequest, CompanyLogo, CompanyLogoConfig, CompatibilityObject, ConditionGroup, ConditionGroupValidateResult, ConditionMatchResult, Config, Configs, ConfigurationInfo, ConfigurationUpdate, ConflictedUserPlatformAccounts, ConsumeItem, Country, CountryAgeRestriction, CountryAgeRestrictionRequest, CountryAgeRestrictionV3Request, CountryGroupObject, CountryLocationResponse, CountryObject, CountryObjectArray, CountryV3Response, CreateBasePolicyRequest, CreateBasePolicyRequestV2, CreateBasePolicyResponse, CreateDependencyLinkRequest, CreateDiffCacheRequest, CreateJusticeUserResponse, CreateLocalizedPolicyVersionRequest, CreateLocalizedPolicyVersionResponse, CreatePolicyVersionRequest, CreatePolicyVersionResponse, CreateTestUserRequestV4, CreateTestUserResponseV4, CreateTestUsersRequestV4, CreateTestUsersResponseV4, CreateUserRequestV4, CreateUserResponseV4, CreditRequest, CreditRevocation, CreditSummary, Currency$, CurrencyConfig, CurrencyCreate, CurrencyInfo, CurrencyInfoArray, CurrencySummary, CurrencyUpdate, CurrencyWallet, Customization, DISCOVERY_TEMPLATE_NAME, DataDeletion$, DataRetrieval$, DataRetrievalResponse, DebitByCurrencyCodeRequest, DebitRequest, DecodeError, DefaultLaunchProfile, DeleteRewardConditionRequest, DeletionData, DeletionStatus, DependencyObject, Description, DesktopChecker, DetailedWalletTransactionInfo, DetailedWalletTransactionPagingSlicedResult, DeviceBanRequestV4, DeviceBanResponseV4, DeviceBanUpdateRequestV4, DeviceBannedResponseV4, DeviceBansResponseV4, DeviceIdDecryptResponseV4, DeviceResponseV4, DeviceTypeResponseV4, DeviceTypesResponseV4, DeviceUserResponseV4, DeviceUsersResponseV4, DevicesResponseV4, DiffCacheObject, DiffPatchRequest, DiffStatusReport, DifferentialBuildManifest, DifferentialFileManifest, DifferentialUploadSummary, DisableUserRequest, DiscoveryConfigData, DisplayedPolicy, DistinctLinkedPlatformV3, DistinctPlatformResponseV3, Dlc$, DlcItem, DlcItemConfigInfo, DlcItemConfigUpdate, DlcRecord, Downloader$, DownloaderApi, Drm$, DurableEntitlementRevocationConfig, ERROR_CODE_LINK_DELETION_ACCOUNT, ERROR_CODE_TOKEN_EXPIRED, ERROR_LINK_ANOTHER_3RD_PARTY_ACCOUNT, ERROR_USER_BANNED, Eligibilities$, EligibleUser, EmailUpdateRequestV4, EnabledFactorsResponseV4, EncryptedIdentity, Entitlement$, EntitlementDecrement, EntitlementDecrementResult, EntitlementGrant, EntitlementHistoryInfo, EntitlementInfo, EntitlementLootBoxReward, EntitlementOwnership, EntitlementOwnershipArray, EntitlementPagingSlicedResult, EntitlementRevocation, EntitlementRevocationConfig, EntitlementSummary, EntitlementUpdate, EpicGamesDlcSyncRequest, EpicGamesIapConfigInfo, EpicGamesIapConfigRequest, EpicGamesReconcileRequest, EpicGamesReconcileResult, EpicGamesReconcileResultArray, Equ8Config, Error$1 as Error, ErrorEntity, ErrorResponse, ErrorResponseWithConflictedUserPlatformAccounts, Event, EventId, EventLevel, EventPayload, EventRegistry, EventResponse, EventResponseV2, EventType, EventV2, EventV2$, ExportStoreRequest, ExtensionFulfillmentSummary, ExternalPaymentOrderCreate, FailedBanUnbanUserV3, FieldValidationError, FileDiffingStatus, FileManifest, FileUpload$, FileUploadUrlInfo, FilterJson, FixedPeriodRotationConfig, FontConfigs, ForgotPasswordRequestV3, FulfillCodeRequest, Fulfillment$, FulfillmentError, FulfillmentHistoryInfo, FulfillmentHistoryPagingSlicedResult, FulfillmentItem, FulfillmentRequest, FulfillmentResult, FulfillmentScriptContext, FulfillmentScriptCreate, FulfillmentScriptEvalTestRequest, FulfillmentScriptEvalTestResult, FulfillmentScriptInfo, FulfillmentScriptUpdate, FullAppInfo, FullCategoryInfo, FullItemInfo, FullItemPagingSlicedResult, FullSectionInfo, FullViewInfo, GameTokenCodeResponse, GenericQueryPayload, GetAdminUsersResponse, GetLinkHeadlessAccountConflictResponse, GetPublisherUserResponse, GetPublisherUserV3Response, GetUserBanV3Response, GetUserJusticePlatformAccountResponse, GetUserMapping, GetUserMappingV3, GetUserMappingV3Array, GetUsersResponseWithPaginationV3, GlobalStyleConfig, GoogleIapConfigInfo, GoogleIapConfigRequest, GoogleIapReceipt, GoogleReceiptResolveResult, GrantSubscriptionDaysRequest, HierarchicalCategoryInfo, HierarchicalCategoryInfoArray, IamHelper, Iap$, IapConsumeHistoryInfo, IapConsumeHistoryPagingSlicedResult, IapItemConfigInfo, IapItemConfigUpdate, IapItemEntry, IapOrderInfo, IapOrderPagingSlicedResult, Image, ImportErrorDetails, ImportStoreError, ImportStoreItemInfo, ImportStoreResult, InGameItemSync, InputValidationData, InputValidationDataPublic, InputValidationDescription, InputValidationHelper, InputValidationUpdatePayload, InputValidations$, InputValidationsApi, InputValidationsPublicResponse, InputValidationsResponse, InviteUserRequestV3, InviteUserRequestV4, InviteUserResponseV3, InvoiceCurrencySummary, InvoiceSummary, Item$, ItemAcquireRequest, ItemAcquireResult, ItemCreate, ItemDynamicDataInfo, ItemId, ItemInfo, ItemInfoArray, ItemNaming, ItemPagingSlicedResult, ItemPurchaseConditionValidateRequest, ItemPurchaseConditionValidateResult, ItemPurchaseConditionValidateResultArray, ItemReturnRequest, ItemRevocation, ItemSnapshot, ItemTypeConfigCreate, ItemTypeConfigInfo, ItemTypeConfigUpdate, ItemUpdate, JwkKey, JwkSet, JwtBanV3, KeyGroupCreate, KeyGroupDynamicInfo, KeyGroupInfo, KeyGroupPagingSlicedResult, KeyGroupUpdate, KeyInfo, KeyPagingSliceResult, LauncherPageConfig, LegalHelper, LegalPolicyType, LegalReadinessStatusResponse, LinkHeadlessAccountRequest, LinkPlatformAccountRequest, LinkPlatformAccountWithProgressionRequest, LinkRequest, LinkingHistoryResponseWithPaginationV3, ListAssignedUsersV4Response, ListBulkUserBanResponseV3, ListBulkUserResponse, ListDeletionDataResponse, ListEmailAddressRequest, ListPersonalDataResponse, ListRoleV4Response, ListUserInformationResult, ListUserResponseV3, ListUserRolesV4Response, ListUsersWithPlatformAccountsResponse, ListValidUserIdResponseV4, ListViewInfo, Localization, LocalizedPolicyVersionObject, LocalizedPolicyVersions$, LocalizedPolicyVersionsWithNamespace$, LoginErrorCancelled, LoginErrorExpired, LoginErrorParam, LoginErrorUnknown, LoginErrorUnmatchedState, LoginHistoriesResponse, LogoVariantConfig, LootBoxConfig, LootBoxReward, MFADataResponse, MFA_DATA_STORAGE_KEY, MachineIdentity, Misc$, MiscApi, MockIapReceipt, ModelCountry, MultipartUploadSummary, MultipartUploadUrl, MultipartUploadedPart, MultipleAgentType, MultipleEventId, MultipleEventLevel, MultipleEventType, MultipleUx, Namespace$, NamespaceCreate, NamespaceInfo, NamespaceInfoArray, NamespacePublisherInfo, NamespaceRole, NamespaceRoleRequest, NamespaceStatusUpdate, NamespaceUpdate, NetflixCertificates, Network, NotificationProcessResult, OAuth20$, OAuth20Extension$, ObsoleteFileManifest, OneTimeLinkingCodeResponse, OneTimeLinkingCodeValidationResponse, OptionBoxConfig, Order, Order$, OrderCreate, OrderCreationOptions, OrderGrantInfo, OrderHistoryInfo, OrderHistoryInfoArray, OrderInfo, OrderPagingResult, OrderPagingSlicedResult, OrderRefundCreate, OrderStatistics, OrderStatus, OrderSummary, OrderSyncResult, OrderUpdate, Ownership, OwnershipToken, PLATFORM, PageConfig, PagedRetrieveUserAcceptedAgreementResponse, Pagination$1 as Pagination, PaginationV3, Paging$1 as Paging, PayPalConfig, PaymentAccount, PaymentAccount$, PaymentAccountArray, PaymentApi, PaymentCallbackConfigInfo, PaymentCallbackConfigUpdate, PaymentMerchantConfigInfo, PaymentMethod, PaymentMethodArray, PaymentNotificationInfo, PaymentNotificationPagingSlicedResult, PaymentOrder, PaymentOrderChargeRequest, PaymentOrderChargeStatus, PaymentOrderCreate, PaymentOrderCreateResult, PaymentOrderDetails, PaymentOrderInfo, PaymentOrderNotifySimulation, PaymentOrderPagingSlicedResult, PaymentOrderPaidResult, PaymentOrderRefund, PaymentOrderRefundResult, PaymentOrderSyncResult, PaymentProcessResult, PaymentProviderConfigEdit, PaymentProviderConfigInfo, PaymentProviderConfigPagingSlicedResult, PaymentRequest, PaymentStation$, PaymentTaxConfigEdit, PaymentTaxConfigInfo, PaymentToken, PaymentUrl, PaymentUrlCreate, Permission, PermissionDeleteRequest, PermissionV3, Permissions, PermissionsV3, PersonalData, PingResultResponse, PlatformAccount, PlatformDlcConfigInfo, PlatformDlcConfigUpdate, PlatformDlcEntry, PlatformDomainDeleteRequest, PlatformDomainResponse, PlatformDomainUpdateRequest, PlatformReward, PlatformRewardCurrency, PlatformRewardItem, PlatformSubscribeRequest, PlatformUserIdRequest, PlatformUserInformation, PlatformUserInformationV3, PlatformWallet, PlatformWalletConfigInfo, PlatformWalletConfigUpdate, PlayStationDlcSyncMultiServiceLabelsRequest, PlayStationDlcSyncRequest, PlayStationIapConfigInfo, PlayStationMultiServiceLabelsReconcileRequest, PlayStationReconcileRequest, PlayStationReconcileResult, PlayStationReconcileResultArray, PlayerPortalConfigData, PlayerPortalFeatureFlagsConfig, PlayerPortalFooterConfig, PlayerPortalFooterConfigLink, PlayerPortalFooterIDs, PlayerPortalHomePageKeys, PlayerPortalHomepageConfig, PlayerPortalHomepageKeys, PlaystationIapConfigRequest, Policies$, PoliciesApi, PolicyObject, PolicyVersionObject, PolicyVersionWithLocalizedVersionObject, PopulatedItemInfo, PreCheckUploadRequest, Predicate, PredicateValidateResult, PublicKeyPresignedUrl, PublicThirdPartyPlatformInfo, PublicThirdPartyPlatformInfoArray, PublicUserInformationResponseV3, PublicUserInformationV3, PublicUserResponse, PublicUserResponseV3, PublicUsersResponse, PurchaseCondition, PurchaseConditionUpdate, PurchasedItemCount, ReadyPlayerMe, Recurring, RecurringChargeResult, RedeemHistoryInfo, RedeemHistoryPagingSlicedResult, RedeemRequest, RedeemResult, RedeemableItem, RegionDataItem, RegisteredDomain, ReleaseNoteDto, ReleaseNoteLocalizationDto, ReleaseNoteManifest, RemoveUserRoleV4Request, RequestDeleteResponse, RequestHistory, Requirement, ResetPasswordRequest, ResetPasswordRequestV3, RestErrorResponse, RetrieveAcceptedAgreementResponse, RetrieveAcceptedAgreementResponseArray, RetrieveBaseGameResponse, RetrieveBaseGameResponseArray, RetrieveBasePolicyResponse, RetrieveCountryGroupResponse, RetrieveDependencyCompatibilityResponse, RetrieveDependencyLinkResponse, RetrieveDiffCacheResponse, RetrieveLatestDlcResponse, RetrieveLatestDlcResponseArray, RetrieveLocalizedPolicyVersionPublicResponse, RetrieveLocalizedPolicyVersionResponse, RetrievePolicyPublicResponse, RetrievePolicyPublicResponseArray, RetrievePolicyResponse, RetrievePolicyTypeResponse, RetrievePolicyVersionResponse, RetrieveTimeResponse, RetrieveUserAcceptedAgreementResponse, RetrieveUserEligibilitiesIndirectResponse, RetrieveUserEligibilitiesResponse, RetrieveUserEligibilitiesResponseArray, RetrieveUserInfoCacheStatusResponse, RevocationConfigInfo, RevocationConfigUpdate, RevocationHistoryInfo, RevocationHistoryPagingSlicedResult, RevocationList, RevocationRequest, RevocationResult, RevokeCurrency, RevokeEntitlement, RevokeEntry, RevokeItem, RevokeItemSummary, RevokeResult, RevokeUserV4Request, Reward$, RewardCondition, RewardCreate, RewardInfo, RewardItem, RewardPagingSlicedResult, RewardUpdate, RewardsRequest, Role, RoleAdminStatusResponse, RoleAdminStatusResponseV3, RoleCreateRequest, RoleCreateV3Request, RoleManager, RoleManagerV3, RoleManagersRequest, RoleManagersRequestV3, RoleManagersResponse, RoleManagersResponsesV3, RoleMember, RoleMemberV3, RoleMembersRequest, RoleMembersRequestV3, RoleMembersResponse, RoleMembersResponseV3, RoleNamesResponseV3, RoleResponse, RoleResponseV3, RoleResponseWithManagers, RoleResponseWithManagersAndPaginationV3, RoleResponseWithManagersV3, RoleUpdateRequest, RoleUpdateRequestV3, RoleV3, RoleV4Request, RoleV4Response, Roles$, SdkCache, SdkDevice, SearchUsersByPlatformIdResponse, SearchUsersResponse, SearchUsersResponseWithPaginationV3, Section$, SectionCreate, SectionInfo, SectionInfoArray, SectionItem, SectionPagingSlicedResult, SectionUpdate, SendRegisterVerificationCodeRequest, SendVerificationCodeRequest, SendVerificationCodeRequestV3, SendVerificationLinkRequest, ServicePluginConfigInfo, ServicePluginConfigUpdate, SimpleLatestBaseGame, SimpleUserPlatformInfoV3, Slide, SocialLinkConfig, Sso$, SsoPlatformCredentialRequest, SsoPlatformCredentialResponse, SsoSaml20$, StackableEntitlementInfo, StartMultipartUploadRequest, StaticConfigs$, SteamAchievementUpdateRequest, SteamDlcSyncRequest, SteamIapConfig, SteamIapConfigInfo, SteamIapConfigRequest, SteamSyncRequest, Store$, StoreBackupInfo, StoreCreate, StoreInfo, StoreInfoArray, StoreUpdate, StripeConfig, Subscribable, SubscribeRequest, Subscription$, SubscriptionActivityInfo, SubscriptionActivityPagingSlicedResult, SubscriptionChargeStatus, SubscriptionInfo, SubscriptionPagingSlicedResult, SubscriptionStatus, SubscriptionSummary, TWOFA_PAGE, TaxResult, Template, TemplateCompact, TemplateConfig, TemplateInfoConfig, Templates$, TestResult, ThirdPartyCredential$, ThirdPartyLoginPlatformCredentialRequest, ThirdPartyLoginPlatformCredentialResponse, TicketAcquireRequest, TicketAcquireResult, TicketBoothId, TicketDynamicInfo, TicketSaleDecrementRequest, TicketSaleIncrementRequest, TicketSaleIncrementResult, TimeLimitedBalance, TimedOwnership, TokenIntrospectResponse, TokenResponse, TokenResponseV3, TokenThirdPartyLinkStatusResponse, TokenThirdPartyResponse, TokenWithDeviceCookieResponseV3, TradeNotification, Transaction, TransactionAmountDetails, TwitchIapConfigInfo, TwitchIapConfigRequest, TwitchSyncRequest, UnlinkUserPlatformRequest, UpdateBasePolicyRequest, UpdateBasePolicyRequestV2, UpdateBasePolicyResponse, UpdateBuildMetadataRequest, UpdateCountryGroupRequest, UpdateLocalizedPolicyVersionRequest, UpdateLocalizedPolicyVersionResponse, UpdatePermissionScheduleRequest, UpdatePolicyRequest, UpdatePolicyVersionRequest, UpdatePolicyVersionResponse, UpdateUserDeletionStatusRequest, UpdateUserStatusRequest, UpgradeHeadlessAccountRequest, UpgradeHeadlessAccountRequestV4, UpgradeHeadlessAccountV3Request, UpgradeHeadlessAccountWithVerificationCodeRequest, UpgradeHeadlessAccountWithVerificationCodeRequestV3, UpgradeHeadlessAccountWithVerificationCodeRequestV4, UploadBuildManifest, UploadLocalizedPolicyVersionAttachmentResponse, UploadModeCheck, UploadPolicyVersionAttachmentRequest, UploadSummary, UrlHelper, UserAction$, UserActiveBanResponse, UserActiveBanResponseV3, UserActiveBanResponseV4, UserApi, UserAuthorizationApi, UserBan, UserBanRequest, UserBanResponse, UserBanResponseV3, UserBaseInfo, UserCreateFromInvitationRequestV3, UserCreateFromInvitationRequestV4, UserCreateRequest, UserCreateRequestV3, UserCreateResponse, UserCreateResponseV3, UserDataUrl, UserDeletionStatusResponse, UserDlc, UserIDsRequest, UserInfoResponse, UserInformation, UserInformationV3, UserInvitationV3, UserLastActivity, UserLinkedPlatform, UserLinkedPlatformV3, UserLinkedPlatformsResponseV3, UserLoginHistoryResponse, UserPasswordUpdateRequest, UserPasswordUpdateV3Request, UserPermissionsResponseV3, UserPermissionsResponseV4, UserPersonalData, UserPersonalDataResponse, UserPlatformInfo, UserPlatforms, UserProfile$, UserProfileAdmin, UserProfileApi, UserProfileBulkRequest, UserProfileCreate, UserProfileInfo, UserProfilePrivateCreate, UserProfilePrivateInfo, UserProfilePrivateUpdate, UserProfilePublicInfo, UserProfilePublicInfoArray, UserProfileStatusUpdate, UserProfileUpdate, UserReportRequest, UserResponse, UserResponseV3, UserResponseV4, UserRevocationListRecord, UserRolesV4Response, UserSearchByPlatformIdResult, UserSearchResult, UserUnbanCreateRequestV3, UserUpdateRequest, UserUpdateRequestV3, UserVerificationRequest, UserVerificationRequestV3, UserWithLinkedPlatformAccounts, UserWithPlatformAccounts, UserZipCode, UserZipCodeUpdate, Users$, UsersV4$, Utility$, Ux, V3ClientUpdateSecretRequest, VALIDATION_ERROR_CODE, ValidUserIdResponseV4, Validate, ValidateableInputField, Validation, ValidationConfig, ValidationDescription, ValidationDetail, ValidationDetailPublic, ValidationErrorEntity, VerificationCodeResponse, VerifyRegistrationCode, VersionChain, VersionNode, View$, ViewCreate, ViewInfo, ViewInfoArray, ViewUpdate, Wallet$, WalletInfo, WalletPagingSlicedResult, WalletRevocationConfig, WalletTransactionInfo, WalletTransactionPagingSlicedResult, WebLinkingResponse, WxPayConfigInfo, WxPayConfigRequest, XblAchievementUpdateRequest, XblDlcSyncRequest, XblIapConfigInfo, XblIapConfigRequest, XblReconcileRequest, XblReconcileResult, XblReconcileResultArray, XblUserAchievements, XsollaConfig, XsollaPaywallConfig, XsollaPaywallConfigRequest, ZsyncDiffRequest, ZsyncFileManifest, injectRequestInterceptors, injectResponseInterceptors };
39769
40305
  //# sourceMappingURL=index.node.es.js.map