@accelbyte/sdk 0.2.0-beta.1 → 0.2.0-beta.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +24 -0
- package/README.md +5 -5
- package/dist/index.browser.es.js +1226 -685
- package/dist/index.browser.es.js.map +1 -1
- package/dist/index.d.ts +51890 -51681
- package/dist/index.node.es.js +1226 -685
- package/dist/index.node.es.js.map +1 -1
- package/dist/index.node.js +1227 -685
- package/dist/index.node.js.map +1 -1
- package/examples/next/README.md +1 -22
- package/examples/next/package.json +1 -1
- package/examples/next/yarn.lock +4 -4
- package/examples/node/package.json +1 -1
- package/examples/node/yarn.lock +4 -4
- package/examples/vite/README.md +13 -0
- package/examples/vite/package.json +1 -1
- package/examples/vite/yarn.lock +4 -4
- package/package.json +1 -1
package/dist/index.node.es.js
CHANGED
|
@@ -9541,7 +9541,10 @@ class FileUploadApi {
|
|
|
9541
9541
|
this.conf = conf;
|
|
9542
9542
|
this.namespace = namespace;
|
|
9543
9543
|
/**
|
|
9544
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
|
|
10154
|
-
|
|
10155
|
-
|
|
10156
|
-
|
|
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
|
-
|
|
10333
|
-
|
|
10334
|
-
|
|
10335
|
-
|
|
10336
|
-
|
|
10337
|
-
|
|
10338
|
-
|
|
10339
|
-
|
|
10340
|
-
|
|
10341
|
-
|
|
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"
|
|
@@ -10705,56 +10748,76 @@ class DownloaderApi {
|
|
|
10705
10748
|
constructor(conf, namespace) {
|
|
10706
10749
|
this.conf = conf;
|
|
10707
10750
|
this.namespace = namespace;
|
|
10708
|
-
|
|
10709
|
-
|
|
10710
|
-
|
|
10711
|
-
|
|
10712
|
-
|
|
10713
|
-
|
|
10714
|
-
|
|
10715
|
-
|
|
10716
|
-
|
|
10717
|
-
|
|
10718
|
-
|
|
10719
|
-
|
|
10720
|
-
|
|
10721
|
-
|
|
10722
|
-
|
|
10723
|
-
|
|
10724
|
-
|
|
10725
|
-
|
|
10726
|
-
|
|
10727
|
-
|
|
10728
|
-
|
|
10729
|
-
|
|
10730
|
-
|
|
10731
|
-
|
|
10732
|
-
|
|
10733
|
-
|
|
10734
|
-
|
|
10735
|
-
|
|
10751
|
+
/**
|
|
10752
|
+
* GET [/buildinfo/public/namespaces/{namespace}/availablebuilds/{appId}](api)
|
|
10753
|
+
*
|
|
10754
|
+
* This API is used to get simple build manifest that contains list of current build in various platform.
|
|
10755
|
+
*
|
|
10756
|
+
* - _Required permission_: login user
|
|
10757
|
+
* - _Returns_: build manifest
|
|
10758
|
+
*/
|
|
10759
|
+
this.getAvailableBuilds = (appId) => {
|
|
10760
|
+
return this.newInstance().fetchNsAvailablebuildsByAppid(appId);
|
|
10761
|
+
};
|
|
10762
|
+
/**
|
|
10763
|
+
* GET [/buildinfo/public/namespaces/{namespace}/v2/updategame/{appId}/{platformId}](api)
|
|
10764
|
+
*
|
|
10765
|
+
* This API is used to get build manifest of release version of the application.
|
|
10766
|
+
*
|
|
10767
|
+
* - _Required permission_: login user
|
|
10768
|
+
* - _Returns_: build manifest
|
|
10769
|
+
*/
|
|
10770
|
+
this.getBuildManifest = (appId, platformId) => {
|
|
10771
|
+
const axios = Network.create({ ...this.conf, timeout: 1800000 });
|
|
10772
|
+
return new Downloader$(axios, this.namespace, false).fetchNsV2UpdategameByAppidByPlatformid(appId, platformId);
|
|
10773
|
+
};
|
|
10774
|
+
/**
|
|
10775
|
+
* GET [/buildinfo/public/namespaces/{namespace}/diff/cache/source/{sourceBuildId}/dest/{destinationBuildId}](api)
|
|
10776
|
+
*
|
|
10777
|
+
* This API is used to retrieve detailed diff cache.
|
|
10778
|
+
* The response will contains list of diff cache files along with its download url.
|
|
10779
|
+
*
|
|
10780
|
+
* - _Required permission_: login user
|
|
10781
|
+
*/
|
|
10782
|
+
this.getDiffCache = (sourceBuildId, destinationBuildId) => {
|
|
10783
|
+
return new Caching$(Network.create(this.conf), this.namespace, false).fetchNsDiffCacheSourceBySourcebuildidDestByDestinationbuildid(sourceBuildId, destinationBuildId);
|
|
10784
|
+
};
|
|
10785
|
+
/**
|
|
10786
|
+
* Check which platform is available for the user to download the game
|
|
10787
|
+
*
|
|
10788
|
+
* @internal
|
|
10789
|
+
*/
|
|
10790
|
+
this.getMatchPlatform = ({ buildsAvailability, userPlatform }) => {
|
|
10791
|
+
const availablePlatformID = new Set();
|
|
10792
|
+
for (const buildAvailability of buildsAvailability) {
|
|
10793
|
+
if (buildAvailability.platformId) {
|
|
10794
|
+
availablePlatformID.add(buildAvailability.platformId);
|
|
10795
|
+
}
|
|
10736
10796
|
}
|
|
10737
|
-
|
|
10738
|
-
|
|
10739
|
-
|
|
10740
|
-
|
|
10741
|
-
|
|
10742
|
-
|
|
10797
|
+
const currentMatchPlatform = this.getCurrentPlatform(userPlatform);
|
|
10798
|
+
if (currentMatchPlatform) {
|
|
10799
|
+
for (const key in currentMatchPlatform.targetPlatform) {
|
|
10800
|
+
if (availablePlatformID.has(currentMatchPlatform.targetPlatform[key])) {
|
|
10801
|
+
return currentMatchPlatform.targetPlatform[key];
|
|
10802
|
+
}
|
|
10743
10803
|
}
|
|
10744
10804
|
}
|
|
10745
|
-
|
|
10746
|
-
|
|
10805
|
+
return null;
|
|
10806
|
+
};
|
|
10807
|
+
/**
|
|
10808
|
+
* @internal
|
|
10809
|
+
*/
|
|
10810
|
+
this.getCurrentPlatform = (userPlatform) => {
|
|
10811
|
+
const devicePlatform = userPlatform.platform;
|
|
10812
|
+
const deviceArch = userPlatform.arch;
|
|
10813
|
+
const currentPlatform = AvailablePlatform.find((platform) => platform.platform === devicePlatform && platform.arch.includes(deviceArch));
|
|
10814
|
+
return currentPlatform;
|
|
10815
|
+
};
|
|
10747
10816
|
}
|
|
10748
10817
|
newInstance() {
|
|
10749
10818
|
// this is be expensive to cache, apply "cache: false"
|
|
10750
10819
|
return new Downloader$(Network.create(this.conf), this.namespace, false);
|
|
10751
10820
|
}
|
|
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
10821
|
}
|
|
10759
10822
|
|
|
10760
10823
|
/*
|
|
@@ -10858,16 +10921,17 @@ class EventApi {
|
|
|
10858
10921
|
this.namespace = namespace;
|
|
10859
10922
|
this.cache = cache;
|
|
10860
10923
|
/**
|
|
10861
|
-
*
|
|
10862
|
-
*
|
|
10863
|
-
*
|
|
10864
|
-
*
|
|
10865
|
-
*
|
|
10866
|
-
*
|
|
10867
|
-
*
|
|
10868
|
-
*
|
|
10869
|
-
*
|
|
10870
|
-
*
|
|
10924
|
+
* GET [/event/v2/public/namespaces/{namespace}/users/{userId}/edithistory](api)
|
|
10925
|
+
*
|
|
10926
|
+
* Available Type:
|
|
10927
|
+
* - email
|
|
10928
|
+
* - password
|
|
10929
|
+
* - displayname
|
|
10930
|
+
* - dateofbirth
|
|
10931
|
+
* - country
|
|
10932
|
+
* - language
|
|
10933
|
+
*
|
|
10934
|
+
* _Requires a valid user access token_
|
|
10871
10935
|
*/
|
|
10872
10936
|
this.getAccountHistoryByUserId = ({ userId, queryParams }) => {
|
|
10873
10937
|
return this.newInstance().fetchEventV2NsUsersByUseridEdithistory(userId, queryParams);
|
|
@@ -10961,27 +11025,36 @@ class DataDeletionApi {
|
|
|
10961
11025
|
this.conf = conf;
|
|
10962
11026
|
this.namespace = namespace;
|
|
10963
11027
|
this.cache = cache;
|
|
10964
|
-
|
|
10965
|
-
|
|
10966
|
-
|
|
10967
|
-
|
|
10968
|
-
|
|
10969
|
-
|
|
10970
|
-
|
|
10971
|
-
|
|
10972
|
-
|
|
10973
|
-
|
|
10974
|
-
|
|
10975
|
-
|
|
10976
|
-
|
|
10977
|
-
|
|
10978
|
-
|
|
10979
|
-
|
|
10980
|
-
|
|
10981
|
-
|
|
10982
|
-
|
|
10983
|
-
|
|
10984
|
-
|
|
11028
|
+
/**
|
|
11029
|
+
* GET [/gdpr/public/namespaces/{namespace}/users/{userId}/deletions/status](api)
|
|
11030
|
+
*
|
|
11031
|
+
* Fetch the status to check whether or not a user's account is on a deletion status
|
|
11032
|
+
*
|
|
11033
|
+
* _Requires a valid user access token_
|
|
11034
|
+
*/
|
|
11035
|
+
this.getGdprDeletionStatus = (userId) => {
|
|
11036
|
+
return this.newInstance().fetchGdprNsUsersByUseridDeletionsStatus(userId);
|
|
11037
|
+
};
|
|
11038
|
+
/**
|
|
11039
|
+
* POST [/gdpr/public/namespaces/{namespace}/users/{userId}/deletions](api)
|
|
11040
|
+
*
|
|
11041
|
+
* Request an account's deletion
|
|
11042
|
+
*
|
|
11043
|
+
* _Requires a valid user access token and password_
|
|
11044
|
+
*/
|
|
11045
|
+
this.requestAccountDeletion = ({ userId, data }) => {
|
|
11046
|
+
return this.newInstance().postGdprNsUsersByUseridDeletions(userId, data);
|
|
11047
|
+
};
|
|
11048
|
+
/**
|
|
11049
|
+
* DELETE [/gdpr/public/namespaces/{namespace}/users/{userId}/deletions](api)
|
|
11050
|
+
*
|
|
11051
|
+
* Cancel a deletion request
|
|
11052
|
+
*
|
|
11053
|
+
* _Requires a valid user access token_
|
|
11054
|
+
*/
|
|
11055
|
+
this.cancelAccountDeletion = (userId) => {
|
|
11056
|
+
return this.newInstance().deleteGdprNsUsersByUseridDeletions(userId);
|
|
11057
|
+
};
|
|
10985
11058
|
}
|
|
10986
11059
|
newInstance() {
|
|
10987
11060
|
return new DataDeletion$(Network.create(this.conf), this.namespace, this.cache);
|
|
@@ -11102,34 +11175,46 @@ class DataRetrievalApi {
|
|
|
11102
11175
|
this.conf = conf;
|
|
11103
11176
|
this.namespace = namespace;
|
|
11104
11177
|
this.cache = cache;
|
|
11105
|
-
|
|
11106
|
-
|
|
11107
|
-
|
|
11108
|
-
|
|
11109
|
-
|
|
11110
|
-
|
|
11111
|
-
|
|
11112
|
-
|
|
11113
|
-
|
|
11114
|
-
|
|
11115
|
-
|
|
11116
|
-
|
|
11117
|
-
|
|
11118
|
-
|
|
11119
|
-
|
|
11120
|
-
|
|
11121
|
-
|
|
11122
|
-
|
|
11123
|
-
|
|
11124
|
-
|
|
11125
|
-
|
|
11126
|
-
|
|
11127
|
-
|
|
11128
|
-
|
|
11129
|
-
|
|
11130
|
-
|
|
11131
|
-
|
|
11132
|
-
|
|
11178
|
+
/**
|
|
11179
|
+
* GET [/gdpr/public/namespaces/{namespace}/users/{userId}/requests](api)
|
|
11180
|
+
*
|
|
11181
|
+
* Fetch personal data request list
|
|
11182
|
+
*
|
|
11183
|
+
* _Requires a valid user access token_
|
|
11184
|
+
*/
|
|
11185
|
+
this.getGdprDataRequestList = ({ userId, queryParams }) => {
|
|
11186
|
+
return this.newInstance().fetchGdprNsUsersByUseridRequests(userId, queryParams);
|
|
11187
|
+
};
|
|
11188
|
+
/**
|
|
11189
|
+
* POST [/gdpr/public/namespaces/{namespace}/users/{userId}/requests](api)
|
|
11190
|
+
*
|
|
11191
|
+
* Create a request for personal data download
|
|
11192
|
+
*
|
|
11193
|
+
* _Requires a valid user access token_
|
|
11194
|
+
*/
|
|
11195
|
+
this.requestGdprData = ({ userId, data }) => {
|
|
11196
|
+
return this.newInstance().postGdprNsUsersByUseridRequests(userId, data);
|
|
11197
|
+
};
|
|
11198
|
+
/**
|
|
11199
|
+
* DELETE [/gdpr/public/namespaces/{namespace}/users/{userId}/requests/{requestDate}](api)
|
|
11200
|
+
*
|
|
11201
|
+
* Cancel the request for personal data download
|
|
11202
|
+
*
|
|
11203
|
+
* _Requires a valid user access token_
|
|
11204
|
+
*/
|
|
11205
|
+
this.cancelGdprDataRequest = ({ userId, requestDate }) => {
|
|
11206
|
+
return this.newInstance().deleteGdprNsUsersByUseridRequestsByRequestdate(userId, requestDate);
|
|
11207
|
+
};
|
|
11208
|
+
/**
|
|
11209
|
+
* POST [/gdpr/public/namespaces/{namespace}/users/{userId}/requests/{requestDate}/generate](api)
|
|
11210
|
+
*
|
|
11211
|
+
* Create a download URL for personal data request
|
|
11212
|
+
*
|
|
11213
|
+
* _Requires a valid user access token_
|
|
11214
|
+
*/
|
|
11215
|
+
this.requestGdprDataDownloadUrl = ({ userId, requestDate, data }) => {
|
|
11216
|
+
return this.newInstance().postGdprNsUsersByUseridRequestsByRequestdateGenerate(userId, requestDate, data);
|
|
11217
|
+
};
|
|
11133
11218
|
}
|
|
11134
11219
|
newInstance() {
|
|
11135
11220
|
return new DataRetrieval$(Network.create(this.conf), this.namespace, this.cache);
|
|
@@ -11222,10 +11307,11 @@ class InputValidationsApi {
|
|
|
11222
11307
|
this.namespace = namespace;
|
|
11223
11308
|
this.cache = cache;
|
|
11224
11309
|
/**
|
|
11225
|
-
*
|
|
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>
|
|
11310
|
+
* GET [/iam/v3/public/inputValidations](api)
|
|
11228
11311
|
*
|
|
11312
|
+
* No role required
|
|
11313
|
+
* This method is to get list of input validation configuration.
|
|
11314
|
+
* `regex` parameter will be returned if `isCustomRegex` is true. Otherwise, it will be empty.
|
|
11229
11315
|
*/
|
|
11230
11316
|
this.getValidations = (languageCode, defaultOnEmpty) => {
|
|
11231
11317
|
const queryParams = { languageCode, defaultOnEmpty };
|
|
@@ -12100,7 +12186,7 @@ const uponRefreshComplete = (error, tokenResponse, onGetUserSession, onSessionEx
|
|
|
12100
12186
|
};
|
|
12101
12187
|
|
|
12102
12188
|
/*
|
|
12103
|
-
* Copyright (c) 2022 AccelByte Inc. All Rights Reserved
|
|
12189
|
+
* Copyright (c) 2022-2023 AccelByte Inc. All Rights Reserved
|
|
12104
12190
|
* This is licensed software from AccelByte Inc, for limitations
|
|
12105
12191
|
* and restrictions contact your company contract manager.
|
|
12106
12192
|
*/
|
|
@@ -18811,7 +18897,7 @@ var rabbitLegacy = {exports: {}};
|
|
|
18811
18897
|
var cryptoJs = cryptoJs$1.exports;
|
|
18812
18898
|
|
|
18813
18899
|
/*
|
|
18814
|
-
* Copyright (c) 2022 AccelByte Inc. All Rights Reserved
|
|
18900
|
+
* Copyright (c) 2022-2023 AccelByte Inc. All Rights Reserved
|
|
18815
18901
|
* This is licensed software from AccelByte Inc, for limitations
|
|
18816
18902
|
* and restrictions contact your company contract manager.
|
|
18817
18903
|
*/
|
|
@@ -20191,7 +20277,7 @@ class LoginErrorUnknown extends Error {
|
|
|
20191
20277
|
}
|
|
20192
20278
|
class LoginErrorUnmatchedState extends Error {
|
|
20193
20279
|
}
|
|
20194
|
-
class
|
|
20280
|
+
class UserAuthorizationApi {
|
|
20195
20281
|
/**
|
|
20196
20282
|
* @internal
|
|
20197
20283
|
*/
|
|
@@ -20201,81 +20287,83 @@ class UserAuthorization {
|
|
|
20201
20287
|
this.cache = cache;
|
|
20202
20288
|
this.options = options;
|
|
20203
20289
|
/**
|
|
20204
|
-
*
|
|
20205
|
-
*
|
|
20290
|
+
* POST: [/iam/v3/oauth/token](api)
|
|
20291
|
+
*
|
|
20292
|
+
* This method supports grant type:
|
|
20293
|
+
* - Grant Type == `authorization_code`:
|
|
20206
20294
|
* It generates the user token by given the authorization
|
|
20207
20295
|
* code which generated in "/iam/v3/authenticate" API response. It should also pass
|
|
20208
20296
|
* in the redirect_uri, which should be the same as generating the
|
|
20209
20297
|
* authorization code request.
|
|
20210
|
-
*
|
|
20211
|
-
*
|
|
20298
|
+
*
|
|
20299
|
+
* - Grant Type == `password`:
|
|
20212
20300
|
* The grant type to use for authenticating a user, whether it's by email / username and password combination
|
|
20213
20301
|
* or through platform.
|
|
20214
|
-
*
|
|
20215
|
-
*
|
|
20302
|
+
*
|
|
20303
|
+
* - Grant Type == `refresh_token`:
|
|
20216
20304
|
* Used to get a new access token for a valid refresh token.
|
|
20217
|
-
*
|
|
20218
|
-
*
|
|
20305
|
+
*
|
|
20306
|
+
* - Grant Type == `client_credentials`:
|
|
20219
20307
|
* It generates a token by checking the client credentials provided through Authorization header.
|
|
20220
|
-
*
|
|
20221
|
-
*
|
|
20222
|
-
*
|
|
20223
|
-
*
|
|
20224
|
-
*
|
|
20225
|
-
*
|
|
20226
|
-
*
|
|
20227
|
-
*
|
|
20228
|
-
*
|
|
20229
|
-
*
|
|
20230
|
-
*
|
|
20231
|
-
*
|
|
20232
|
-
*
|
|
20233
|
-
*
|
|
20234
|
-
*
|
|
20235
|
-
*
|
|
20236
|
-
*
|
|
20237
|
-
*
|
|
20238
|
-
*
|
|
20239
|
-
*
|
|
20240
|
-
*
|
|
20241
|
-
*
|
|
20242
|
-
*
|
|
20243
|
-
*
|
|
20244
|
-
*
|
|
20245
|
-
*
|
|
20246
|
-
*
|
|
20247
|
-
*
|
|
20248
|
-
*
|
|
20249
|
-
*
|
|
20250
|
-
*
|
|
20251
|
-
*
|
|
20252
|
-
*
|
|
20253
|
-
*
|
|
20254
|
-
*
|
|
20255
|
-
*
|
|
20256
|
-
*
|
|
20257
|
-
*
|
|
20258
|
-
*
|
|
20259
|
-
*
|
|
20260
|
-
*
|
|
20261
|
-
*
|
|
20262
|
-
*
|
|
20263
|
-
*
|
|
20264
|
-
*
|
|
20265
|
-
*
|
|
20266
|
-
*
|
|
20267
|
-
*
|
|
20268
|
-
*
|
|
20269
|
-
*
|
|
20270
|
-
*
|
|
20271
|
-
*
|
|
20272
|
-
*
|
|
20273
|
-
*
|
|
20274
|
-
*
|
|
20275
|
-
*
|
|
20276
|
-
*
|
|
20277
|
-
*
|
|
20278
|
-
*
|
|
20308
|
+
* ##Access Token Content
|
|
20309
|
+
* Following is the access token’s content:
|
|
20310
|
+
*
|
|
20311
|
+
* -
|
|
20312
|
+
* __namespace__. It is the namespace the token was generated from.
|
|
20313
|
+
*
|
|
20314
|
+
* -
|
|
20315
|
+
* __display_name__. The display name of the sub. It is empty if the token is generated from the client credential
|
|
20316
|
+
*
|
|
20317
|
+
* -
|
|
20318
|
+
* __roles__. The sub’s roles. It is empty if the token is generated from the client credential
|
|
20319
|
+
*
|
|
20320
|
+
* -
|
|
20321
|
+
* __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
|
|
20322
|
+
*
|
|
20323
|
+
* -
|
|
20324
|
+
* __permissions__. The sub or aud’ permissions
|
|
20325
|
+
*
|
|
20326
|
+
* -
|
|
20327
|
+
* __bans__. The sub’s list of bans. It is used by the IAM client for validating the token.
|
|
20328
|
+
*
|
|
20329
|
+
* -
|
|
20330
|
+
* __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:
|
|
20331
|
+
*
|
|
20332
|
+
* - 1: Email Address Verified
|
|
20333
|
+
* - 2: Phone Number Verified
|
|
20334
|
+
* - 4: Anonymous
|
|
20335
|
+
* - 8: Suspicious Login
|
|
20336
|
+
*
|
|
20337
|
+
*
|
|
20338
|
+
* -
|
|
20339
|
+
* __aud__. The aud is the targeted resource server.
|
|
20340
|
+
*
|
|
20341
|
+
* -
|
|
20342
|
+
* __iat__. The time the token issues at. It is in Epoch time format
|
|
20343
|
+
*
|
|
20344
|
+
* -
|
|
20345
|
+
* __exp__. The time the token expires. It is in Epoch time format
|
|
20346
|
+
*
|
|
20347
|
+
* -
|
|
20348
|
+
* __client_id__. The UserID. The sub is omitted if the token is generated from client credential
|
|
20349
|
+
*
|
|
20350
|
+
* -
|
|
20351
|
+
* __scope__. The scope of the access request, expressed as a list of space-delimited, case-sensitive strings
|
|
20352
|
+
*
|
|
20353
|
+
*
|
|
20354
|
+
* ##Bans
|
|
20355
|
+
* The JWT contains user's active bans with its expiry date. List of ban types can be obtained from /bans.
|
|
20356
|
+
* ##Device Cookie Validation
|
|
20357
|
+
* __For grant type "password" only__
|
|
20358
|
+
* Device Cookie is used to protect the user account from brute force login attack,
|
|
20359
|
+
* [more detail from OWASP](https://owasp.org/www-community/Slow_Down_Online_Guessing_Attacks_with_Device_Cookies)
|
|
20360
|
+
* 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.
|
|
20361
|
+
* ##Track Login History
|
|
20362
|
+
* 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".
|
|
20363
|
+
* Align with General Data Protection Regulation in Europe, user login history will be kept within 28 days by default"
|
|
20364
|
+
* ##2FA remember device
|
|
20365
|
+
* To remember device for 2FA, should provide cookie: device_token or header: Device-Token
|
|
20366
|
+
* action code: 10703
|
|
20279
20367
|
*/
|
|
20280
20368
|
this.loginWithAuthorizationCode = async ({ code, codeVerifier }) => {
|
|
20281
20369
|
const deviceId = SdkDevice.getDeviceId();
|
|
@@ -20292,7 +20380,7 @@ class UserAuthorization {
|
|
|
20292
20380
|
const axios = Network.create(config);
|
|
20293
20381
|
const data = {
|
|
20294
20382
|
grant_type: 'authorization_code',
|
|
20295
|
-
code
|
|
20383
|
+
code,
|
|
20296
20384
|
code_verifier: codeVerifier,
|
|
20297
20385
|
client_id: this.options.clientId,
|
|
20298
20386
|
redirect_uri: this.options.redirectURI
|
|
@@ -20307,25 +20395,58 @@ class UserAuthorization {
|
|
|
20307
20395
|
CodeChallenge.clear();
|
|
20308
20396
|
return { ...result, mfaData };
|
|
20309
20397
|
};
|
|
20398
|
+
/**
|
|
20399
|
+
* @internal
|
|
20400
|
+
*/
|
|
20310
20401
|
this.getMfaDataFromError = (errorResponse) => {
|
|
20311
20402
|
const doesMFADataExist = Validate.safeParse(errorResponse.data, MFADataResponse);
|
|
20312
20403
|
if (!doesMFADataExist)
|
|
20313
20404
|
return;
|
|
20314
|
-
|
|
20315
|
-
const {
|
|
20316
|
-
const result = { mfaToken: mfa_token, factors, defaultFactor: default_factor, email };
|
|
20405
|
+
const { mfa_token: mfaToken, factors, default_factor: defaultFactor, email } = errorResponse.data;
|
|
20406
|
+
const result = { mfaToken, factors, defaultFactor, email };
|
|
20317
20407
|
if (BrowserHelper.isOnBrowser()) {
|
|
20318
20408
|
localStorage.setItem(MFA_DATA_STORAGE_KEY, JSON.stringify(result));
|
|
20319
20409
|
}
|
|
20320
20410
|
return result;
|
|
20321
20411
|
};
|
|
20412
|
+
/**
|
|
20413
|
+
* @internal
|
|
20414
|
+
*/
|
|
20322
20415
|
this.getMfaDataFromStorage = () => {
|
|
20323
20416
|
const storedMFAData = BrowserHelper.isOnBrowser() && localStorage.getItem(MFA_DATA_STORAGE_KEY);
|
|
20324
20417
|
return storedMFAData ? JSON.parse(storedMFAData) : null;
|
|
20325
20418
|
};
|
|
20419
|
+
/**
|
|
20420
|
+
* @internal
|
|
20421
|
+
*/
|
|
20326
20422
|
this.removeMfaDataFromStorage = () => {
|
|
20327
20423
|
localStorage.removeItem(MFA_DATA_STORAGE_KEY);
|
|
20328
20424
|
};
|
|
20425
|
+
/**
|
|
20426
|
+
* @internal
|
|
20427
|
+
*/
|
|
20428
|
+
this.matchReceivedState = (maybeSentState) => {
|
|
20429
|
+
const sentStateResult = CodeChallenge.parseSentState(maybeSentState);
|
|
20430
|
+
if (sentStateResult.error)
|
|
20431
|
+
return { error: sentStateResult.error, result: null };
|
|
20432
|
+
const storedStateResult = CodeChallenge.load();
|
|
20433
|
+
if (storedStateResult.error)
|
|
20434
|
+
return { error: storedStateResult.error, result: null };
|
|
20435
|
+
const sentState = sentStateResult.sentState;
|
|
20436
|
+
const storedState = storedStateResult.storedState;
|
|
20437
|
+
if (sentState.csrf !== storedState.csrf)
|
|
20438
|
+
return { error: null, result: null };
|
|
20439
|
+
return {
|
|
20440
|
+
error: null,
|
|
20441
|
+
result: {
|
|
20442
|
+
payload: sentState.payload,
|
|
20443
|
+
codeVerifier: storedState.codeVerifier
|
|
20444
|
+
}
|
|
20445
|
+
};
|
|
20446
|
+
};
|
|
20447
|
+
/**
|
|
20448
|
+
* @internal
|
|
20449
|
+
*/
|
|
20329
20450
|
this.deduceLoginError = (error) => {
|
|
20330
20451
|
switch (error) {
|
|
20331
20452
|
case LoginErrorParam.Enum.login_session_expired:
|
|
@@ -20367,6 +20488,11 @@ class UserAuthorization {
|
|
|
20367
20488
|
returnPath
|
|
20368
20489
|
};
|
|
20369
20490
|
};
|
|
20491
|
+
/**
|
|
20492
|
+
* GET [/iam/v3/oauth/authorize](api)
|
|
20493
|
+
*
|
|
20494
|
+
* Creates a URL to be used for Login, Register, Link to existing account or Twitch Link
|
|
20495
|
+
*/
|
|
20370
20496
|
this.createLoginURL = (returnPath, targetAuthPage, oneTimeLinkCode) => {
|
|
20371
20497
|
const { verifier, challenge } = CodeChallenge.generateChallenge();
|
|
20372
20498
|
const csrf = CodeChallenge.generateCsrf();
|
|
@@ -20390,6 +20516,11 @@ class UserAuthorization {
|
|
|
20390
20516
|
const url = new URL(UrlHelper.combineURLPaths(this.options.baseURL, `${AUTHORIZE_URL}?${searchParams.toString()}`));
|
|
20391
20517
|
return url.toString();
|
|
20392
20518
|
};
|
|
20519
|
+
/**
|
|
20520
|
+
* GET [/iam/v3/oauth/authorize](api)
|
|
20521
|
+
*
|
|
20522
|
+
* Creates a URL to be used for password recovery
|
|
20523
|
+
*/
|
|
20393
20524
|
this.createForgotPasswordURL = () => {
|
|
20394
20525
|
const { verifier, challenge } = CodeChallenge.generateChallenge();
|
|
20395
20526
|
const csrf = CodeChallenge.generateCsrf();
|
|
@@ -20408,9 +20539,15 @@ class UserAuthorization {
|
|
|
20408
20539
|
const url = new URL(UrlHelper.combineURLPaths(this.options.baseURL, `${AUTHORIZE_URL}?${searchParams.toString()}`));
|
|
20409
20540
|
return url.toString();
|
|
20410
20541
|
};
|
|
20542
|
+
/**
|
|
20543
|
+
* @internal
|
|
20544
|
+
*/
|
|
20411
20545
|
this.getCodeChallenge = () => {
|
|
20412
20546
|
return CodeChallenge.generateChallenge();
|
|
20413
20547
|
};
|
|
20548
|
+
/**
|
|
20549
|
+
* @internal
|
|
20550
|
+
*/
|
|
20414
20551
|
this.refreshToken = () => {
|
|
20415
20552
|
const { clientId, refreshToken } = this.options;
|
|
20416
20553
|
if (DesktopChecker.isDesktopApp()) {
|
|
@@ -20418,6 +20555,9 @@ class UserAuthorization {
|
|
|
20418
20555
|
}
|
|
20419
20556
|
return refreshWithLock({ axiosConfig: this.conf, clientId });
|
|
20420
20557
|
};
|
|
20558
|
+
/**
|
|
20559
|
+
* @internal
|
|
20560
|
+
*/
|
|
20421
20561
|
this.getSearchParams = (sentState, challenge) => {
|
|
20422
20562
|
const searchParams = new URLSearchParams();
|
|
20423
20563
|
searchParams.append('response_type', 'code');
|
|
@@ -20429,25 +20569,6 @@ class UserAuthorization {
|
|
|
20429
20569
|
return searchParams;
|
|
20430
20570
|
};
|
|
20431
20571
|
}
|
|
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
20572
|
}
|
|
20452
20573
|
function isAxiosError(error) {
|
|
20453
20574
|
return !!error && !!error.config;
|
|
@@ -20856,12 +20977,18 @@ class OAuthApi {
|
|
|
20856
20977
|
this.cache = cache;
|
|
20857
20978
|
this.options = options;
|
|
20858
20979
|
/**
|
|
20859
|
-
*
|
|
20860
|
-
|
|
20861
|
-
|
|
20862
|
-
|
|
20863
|
-
|
|
20864
|
-
|
|
20980
|
+
* @internal
|
|
20981
|
+
*/
|
|
20982
|
+
this.newOAuth20Extension = () => {
|
|
20983
|
+
return new OAuth20Extension$(Network.create(this.conf), this.namespace, this.cache);
|
|
20984
|
+
};
|
|
20985
|
+
/**
|
|
20986
|
+
* POST [/iam/v3/logout](api)
|
|
20987
|
+
*
|
|
20988
|
+
* This method is used to remove __access_token__, __refresh_token__ from cookie and revoke token from usage.
|
|
20989
|
+
* Supported methods:
|
|
20990
|
+
* - VerifyToken to verify token from header
|
|
20991
|
+
* - AddTokenToRevocationList to revoke token with TTL
|
|
20865
20992
|
*/
|
|
20866
20993
|
this.logout = () => {
|
|
20867
20994
|
const axios = Network.create({
|
|
@@ -20873,8 +21000,10 @@ class OAuthApi {
|
|
|
20873
21000
|
return new OAuth20Extension$(axios, this.namespace, this.cache).postIamV3Logout();
|
|
20874
21001
|
};
|
|
20875
21002
|
/**
|
|
20876
|
-
*
|
|
20877
|
-
*
|
|
21003
|
+
* POST [/iam/v3/oauth/revoke](api)
|
|
21004
|
+
*
|
|
21005
|
+
* This method revokes a token.
|
|
21006
|
+
* This method requires authorized requests header with Basic Authentication from client that establish the token.action code: 10706
|
|
20878
21007
|
*/
|
|
20879
21008
|
this.revoke = ({ token }) => {
|
|
20880
21009
|
const axios = Network.create({
|
|
@@ -20888,10 +21017,12 @@ class OAuthApi {
|
|
|
20888
21017
|
return new OAuth20$(axios, this.namespace, this.cache).postIamV3OauthRevoke({ token });
|
|
20889
21018
|
};
|
|
20890
21019
|
/**
|
|
20891
|
-
*
|
|
20892
|
-
*
|
|
20893
|
-
*
|
|
20894
|
-
*
|
|
21020
|
+
* POST [/iam/v3/oauth/mfa/verify](api)
|
|
21021
|
+
*
|
|
21022
|
+
* Verify 2FA code
|
|
21023
|
+
* This method is used for verifying 2FA code.
|
|
21024
|
+
* ##2FA remember device
|
|
21025
|
+
* To remember device for 2FA, should provide cookie: device_token or header: Device-Token
|
|
20895
21026
|
*
|
|
20896
21027
|
*/
|
|
20897
21028
|
this.verify2FA = async ({ factor, code, mfaToken = null, rememberDevice }) => {
|
|
@@ -20903,6 +21034,9 @@ class OAuthApi {
|
|
|
20903
21034
|
localStorage.removeItem(MFA_DATA_STORAGE_KEY);
|
|
20904
21035
|
return result.response;
|
|
20905
21036
|
};
|
|
21037
|
+
/**
|
|
21038
|
+
* POST [/iam/v3/oauth/mfa/code](api)
|
|
21039
|
+
*/
|
|
20906
21040
|
this.request2FAEmailCode = async ({ mfaToken = null, factor }) => {
|
|
20907
21041
|
const result = await this.newInstance().postIamV3OauthMfaCode({ mfaToken, clientId: this.options.clientId, factor });
|
|
20908
21042
|
if (result.error)
|
|
@@ -20910,70 +21044,72 @@ class OAuthApi {
|
|
|
20910
21044
|
return result.response;
|
|
20911
21045
|
};
|
|
20912
21046
|
/**
|
|
20913
|
-
*
|
|
21047
|
+
* GET [/iam/v3/location/country](api)
|
|
21048
|
+
*
|
|
21049
|
+
* This method get country location based on the request.
|
|
20914
21050
|
*/
|
|
20915
21051
|
this.getCurrentLocationCountry = () => {
|
|
20916
21052
|
return this.newOAuth20Extension().fetchIamV3LocationCountry();
|
|
20917
21053
|
};
|
|
20918
21054
|
/**
|
|
20919
|
-
*
|
|
20920
|
-
*
|
|
21055
|
+
* GET [/iam/v3/oauth/namespaces/{namespace}/users/{userId}/platforms/{platformId}/platformToken](api)
|
|
21056
|
+
*
|
|
21057
|
+
* Retrieve User Third Party Platform Token
|
|
21058
|
+
*
|
|
20921
21059
|
* This method used for retrieving third party platform token for user that login using third party,
|
|
20922
21060
|
* if user have not link requested platform in game namespace, will try to retrieving third party platform token from publisher namespace.
|
|
20923
21061
|
* Passing platform group name or it's member will return same access token that can be used across the platform members.
|
|
20924
|
-
*
|
|
20925
|
-
*
|
|
20926
|
-
*
|
|
20927
|
-
*
|
|
20928
|
-
*
|
|
20929
|
-
*
|
|
20930
|
-
*
|
|
20931
|
-
*
|
|
20932
|
-
*
|
|
20933
|
-
* </ul>
|
|
21062
|
+
*
|
|
21063
|
+
* The third party platform and platform group covered for this is:
|
|
21064
|
+
* - (psn) ps4web
|
|
21065
|
+
* - (psn) ps4
|
|
21066
|
+
* - (psn) ps5
|
|
21067
|
+
* - epicgames
|
|
21068
|
+
* - twitch
|
|
21069
|
+
* - awscognito
|
|
21070
|
+
*
|
|
20934
21071
|
*/
|
|
20935
21072
|
this.getThirdPartyPlatformToken = (userId, platformId) => {
|
|
20936
21073
|
return this.newInstance().fetchV3OauthUsersByUseridPlatformsByPlatformidPlatformToken(userId, platformId);
|
|
20937
21074
|
};
|
|
20938
21075
|
/**
|
|
21076
|
+
* POST [/iam/v3/authenticateWithLink](api)
|
|
21077
|
+
*
|
|
20939
21078
|
* This method is being used to authenticate a user account and perform platform link.
|
|
20940
21079
|
* It validates user's email / username and password.
|
|
20941
|
-
* If user already enable 2FA, then invoke
|
|
21080
|
+
* If user already enable 2FA, then invoke _/mfa/verify_ using __mfa_token__ from this method response.
|
|
20942
21081
|
*
|
|
20943
|
-
*
|
|
21082
|
+
* ##Device Cookie Validation
|
|
20944
21083
|
*
|
|
20945
|
-
* Device Cookie is used to protect the user account from brute force login attack,
|
|
20946
|
-
*
|
|
21084
|
+
* Device Cookie is used to protect the user account from brute force login attack,
|
|
21085
|
+
* [more detail from OWASP](https://owasp.org/www-community/Slow_Down_Online_Guessing_Attacks_with_Device_Cookies).
|
|
21086
|
+
* 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
21087
|
*
|
|
20948
21088
|
*/
|
|
20949
21089
|
this.authenticateWithLink = (data) => {
|
|
20950
21090
|
return this.newOAuth20Extension().postIamV3AuthenticateWithLink(data);
|
|
20951
21091
|
};
|
|
20952
|
-
|
|
20953
|
-
|
|
20954
|
-
|
|
20955
|
-
|
|
20956
|
-
|
|
20957
|
-
|
|
20958
|
-
|
|
20959
|
-
|
|
20960
|
-
|
|
20961
|
-
|
|
20962
|
-
|
|
20963
|
-
|
|
20964
|
-
|
|
20965
|
-
|
|
20966
|
-
|
|
20967
|
-
|
|
20968
|
-
|
|
20969
|
-
|
|
20970
|
-
|
|
20971
|
-
|
|
20972
|
-
|
|
20973
|
-
*
|
|
20974
|
-
*/
|
|
20975
|
-
exchangeTokenByOneTimeLinkCode(data) {
|
|
20976
|
-
return this.newOAuth20Extension().postIamV3LinkTokenExchange(data);
|
|
21092
|
+
/**
|
|
21093
|
+
* POST [/iam/v3/link/code/validate](api)
|
|
21094
|
+
*
|
|
21095
|
+
* This method is being used to validate one time link code.
|
|
21096
|
+
* It require a valid user token.
|
|
21097
|
+
* Should specify the target platform id and current user should already linked to this platform.
|
|
21098
|
+
* Current user should be a headless account.
|
|
21099
|
+
*/
|
|
21100
|
+
this.validateOneTimeLinkCode = (data) => {
|
|
21101
|
+
return this.newOAuth20Extension().postIamV3LinkCodeValidate(data);
|
|
21102
|
+
};
|
|
21103
|
+
/**
|
|
21104
|
+
* POST [/iam/v3/link/token/exchange](api)
|
|
21105
|
+
*
|
|
21106
|
+
* This method is being used to generate user's token by one time link code.
|
|
21107
|
+
* It require publisher ClientID
|
|
21108
|
+
* It required a code which can be generated from __/iam/v3/link/code/request__.
|
|
21109
|
+
*/
|
|
21110
|
+
this.exchangeTokenByOneTimeLinkCode = (data) => {
|
|
21111
|
+
return this.newOAuth20Extension().postIamV3LinkTokenExchange(data);
|
|
21112
|
+
};
|
|
20977
21113
|
}
|
|
20978
21114
|
newInstance() {
|
|
20979
21115
|
return new OAuth20$(Network.create(this.conf), this.namespace, this.cache);
|
|
@@ -21052,6 +21188,8 @@ class ThirdPartyCredentialApi {
|
|
|
21052
21188
|
this.namespace = namespace;
|
|
21053
21189
|
this.cache = cache;
|
|
21054
21190
|
/**
|
|
21191
|
+
* GET [/iam/v3/public/namespaces/{namespace}/platforms/clients/active](api)
|
|
21192
|
+
*
|
|
21055
21193
|
* This is the Public API to Get All Active 3rd Platform Credential.
|
|
21056
21194
|
*/
|
|
21057
21195
|
this.getThirdPartyPlatformInfo = () => {
|
|
@@ -21553,85 +21691,112 @@ class TwoFA {
|
|
|
21553
21691
|
this.namespace = namespace;
|
|
21554
21692
|
this.cache = cache;
|
|
21555
21693
|
/**
|
|
21556
|
-
*
|
|
21557
|
-
*
|
|
21558
|
-
*
|
|
21694
|
+
* GET [/iam/v4/public/namespaces/{namespace}/users/me/mfa/backupCode](api)
|
|
21695
|
+
*
|
|
21696
|
+
* This method is used to get 8-digits backup codes.
|
|
21697
|
+
* Each code is a one-time code and will be deleted once used.
|
|
21559
21698
|
*
|
|
21699
|
+
* _Requires a valid user access token_
|
|
21560
21700
|
*/
|
|
21561
21701
|
this.getBackupCode = () => {
|
|
21562
21702
|
return this.newInstance().fetchV4NsUsersMeMfaBackupCode();
|
|
21563
21703
|
};
|
|
21564
21704
|
/**
|
|
21565
|
-
*
|
|
21566
|
-
* <p>This method Requires valid user access token</p>
|
|
21705
|
+
* POST [/iam/v4/public/namespaces/{namespace}/users/me/mfa/backupCode/enable](api)
|
|
21567
21706
|
*
|
|
21707
|
+
* This method is used to enable 2FA backup codes.
|
|
21708
|
+
*
|
|
21709
|
+
* _Requires a valid user access token_
|
|
21568
21710
|
*/
|
|
21569
21711
|
this.enable2FABackupCodes = () => {
|
|
21570
21712
|
return this.newInstance().postV4NsUsersMeMfaBackupCodeEnable();
|
|
21571
21713
|
};
|
|
21572
21714
|
/**
|
|
21573
|
-
*
|
|
21574
|
-
*
|
|
21715
|
+
* POST [/iam/v4/public/namespaces/{namespace}/users/me/mfa/backupCode](api)
|
|
21716
|
+
*
|
|
21717
|
+
* This method is used to enable 2FA backup codes.
|
|
21575
21718
|
*
|
|
21719
|
+
* _Requires a valid user access token_
|
|
21576
21720
|
*/
|
|
21577
21721
|
this.generateBackupCodes = () => {
|
|
21578
21722
|
return this.newInstance().postV4NsUsersMeMfaBackupCode();
|
|
21579
21723
|
};
|
|
21580
21724
|
/**
|
|
21581
|
-
*
|
|
21582
|
-
* <p>This method Requires valid user access token</p>
|
|
21725
|
+
* DELETE [/iam/v4/public/namespaces/{namespace}/users/me/mfa/backupCode/disable](api)
|
|
21583
21726
|
*
|
|
21727
|
+
* This method is used to enable 2FA backup codes.
|
|
21728
|
+
*
|
|
21729
|
+
* _Requires a valid user access token_
|
|
21584
21730
|
*/
|
|
21585
21731
|
this.disableBackupCodes = () => {
|
|
21586
21732
|
return this.newInstance().deleteV4NsUsersMeMfaBackupCodeDisable();
|
|
21587
21733
|
};
|
|
21588
21734
|
/**
|
|
21589
|
-
*
|
|
21590
|
-
*
|
|
21735
|
+
* DELETE [/iam/v4/public/namespaces/{namespace}/users/me/mfa/authenticator/disable](api)
|
|
21736
|
+
* }
|
|
21737
|
+
* This method is used to disable 2FA authenticator.
|
|
21591
21738
|
*
|
|
21739
|
+
* _Requires a valid user access token_
|
|
21592
21740
|
*/
|
|
21593
21741
|
this.disableAuthenticator = () => {
|
|
21594
21742
|
return this.newInstance().deleteV4NsUsersMeMfaAuthenticatorDisable();
|
|
21595
21743
|
};
|
|
21596
21744
|
/**
|
|
21597
|
-
*
|
|
21598
|
-
*
|
|
21745
|
+
* GET [/iam/v4/public/namespaces/{namespace}/users/me/mfa/factor](api)
|
|
21746
|
+
*
|
|
21747
|
+
* This method is used to get user enabled factors.
|
|
21599
21748
|
*
|
|
21749
|
+
* _Requires a valid user access token_
|
|
21600
21750
|
*/
|
|
21601
21751
|
this.getEnabledMethods = () => {
|
|
21602
21752
|
return this.newInstance().fetchV4NsUsersMeMfaFactor();
|
|
21603
21753
|
};
|
|
21604
21754
|
/**
|
|
21605
|
-
*
|
|
21606
|
-
* <p>This method Requires valid user access token</p>
|
|
21755
|
+
* POST [/iam/v4/public/namespaces/{namespace}/users/me/mfa/factor](api)
|
|
21607
21756
|
*
|
|
21757
|
+
* This method is used to make 2FA factor default.
|
|
21758
|
+
*
|
|
21759
|
+
* _Requires a valid user access token_
|
|
21608
21760
|
*/
|
|
21609
21761
|
this.set2FAAsDefault = (factor) => {
|
|
21610
21762
|
return this.newInstance().postV4NsUsersMeMfaFactor({ factor });
|
|
21611
21763
|
};
|
|
21612
21764
|
/**
|
|
21613
|
-
*
|
|
21614
|
-
*
|
|
21765
|
+
* POST [/iam/v4/public/namespaces/{namespace}/users/me/mfa/authenticator/enable](api)
|
|
21766
|
+
*
|
|
21767
|
+
* This method is used to enable 2FA authenticator.
|
|
21615
21768
|
*
|
|
21769
|
+
* _Requires a valid user access token_
|
|
21616
21770
|
*/
|
|
21617
21771
|
this.enable2FAAuthenticator = (code) => {
|
|
21618
21772
|
return this.newInstance().postV4NsUsersMeMfaAuthenticatorEnable({ code });
|
|
21619
21773
|
};
|
|
21620
21774
|
/**
|
|
21621
|
-
*
|
|
21622
|
-
*
|
|
21623
|
-
*
|
|
21775
|
+
* POST [/iam/v4/public/namespaces/{namespace}/users/me/mfa/authenticator/key](api)
|
|
21776
|
+
*
|
|
21777
|
+
* This method is used to generate a secret key for 3rd-party authenticator app.
|
|
21778
|
+
* A QR code URI is also returned so that frontend can generate QR code image.
|
|
21624
21779
|
*
|
|
21780
|
+
* _Requires a valid user access token_
|
|
21625
21781
|
*/
|
|
21626
21782
|
this.generateSecretKey = () => {
|
|
21627
21783
|
return this.newInstance().postV4NsUsersMeMfaAuthenticatorKey();
|
|
21628
21784
|
};
|
|
21785
|
+
/**
|
|
21786
|
+
* POST [/iam/v4/public/namespaces/{namespace}/users/me/mfa/email/code](api)
|
|
21787
|
+
*/
|
|
21629
21788
|
this.requestEmailCode = () => {
|
|
21630
21789
|
return this.newInstance().postV4NsUsersMeMfaEmailCode();
|
|
21631
21790
|
};
|
|
21791
|
+
/**
|
|
21792
|
+
* POST [/iam/v4/public/namespaces/{namespace}/users/me/mfa/email/enable](api)
|
|
21793
|
+
*/
|
|
21632
21794
|
this.enableEmailMethod = (code) => {
|
|
21633
21795
|
return this.newInstance().postV4NsUsersMeMfaEmailEnable({ code });
|
|
21634
21796
|
};
|
|
21797
|
+
/**
|
|
21798
|
+
* POST [/iam/v4/public/namespaces/{namespace}/users/me/mfa/email/disable](api)
|
|
21799
|
+
*/
|
|
21635
21800
|
this.disableEmailMethod = () => {
|
|
21636
21801
|
return this.newInstance().postV4NsUsersMeMfaEmailDisable();
|
|
21637
21802
|
};
|
|
@@ -22845,295 +23010,326 @@ class UserApi {
|
|
|
22845
23010
|
this.namespace = namespace;
|
|
22846
23011
|
this.cache = cache;
|
|
22847
23012
|
/**
|
|
22848
|
-
*
|
|
23013
|
+
* GET [/iam/v3/public/users/me](api)
|
|
23014
|
+
*
|
|
23015
|
+
* get currently logged-in user
|
|
22849
23016
|
*/
|
|
22850
23017
|
this.getCurrentUser = () => {
|
|
22851
23018
|
return this.newInstance().fetchIamV3PublicUsersMe();
|
|
22852
23019
|
};
|
|
22853
23020
|
/**
|
|
22854
|
-
*
|
|
23021
|
+
* PATCH [/iam/v3/public/namespaces/{namespace}/users/me](api)
|
|
23022
|
+
*
|
|
23023
|
+
* Update current user
|
|
22855
23024
|
*/
|
|
22856
23025
|
this.updateUserMe = (data) => {
|
|
22857
23026
|
return this.newInstance().patchV3NsUsersMe(data);
|
|
22858
23027
|
};
|
|
22859
23028
|
/**
|
|
23029
|
+
* PUT [/iam/v4/public/namespaces/{namespace}/users/me/email](api)
|
|
23030
|
+
*
|
|
22860
23031
|
* update current user's email
|
|
22861
23032
|
*/
|
|
22862
23033
|
this.updateEmailMe = (data) => {
|
|
22863
23034
|
return this.newInstance4().putV4NsUsersMeEmail(data);
|
|
22864
23035
|
};
|
|
22865
23036
|
/**
|
|
23037
|
+
* PUT [/iam/v3/public/namespaces/{namespace}/users/me/password](api)
|
|
23038
|
+
*
|
|
22866
23039
|
* update current user's password
|
|
22867
23040
|
*/
|
|
22868
23041
|
this.updatePasswordMe = (data) => {
|
|
22869
23042
|
return this.newInstance().putV3NsUsersMePassword(data);
|
|
22870
23043
|
};
|
|
22871
23044
|
/**
|
|
23045
|
+
* POST [/iam/v3/public/namespaces/{namespace}/users/me/code/request](api)
|
|
23046
|
+
*
|
|
22872
23047
|
* Required valid user authorization
|
|
22873
|
-
*
|
|
22874
|
-
*
|
|
22875
|
-
*
|
|
22876
|
-
*
|
|
22877
|
-
*
|
|
22878
|
-
*
|
|
22879
|
-
*
|
|
22880
|
-
*
|
|
22881
|
-
*
|
|
22882
|
-
*
|
|
22883
|
-
*
|
|
22884
|
-
*
|
|
22885
|
-
*
|
|
22886
|
-
*
|
|
22887
|
-
*
|
|
22888
|
-
* </li>
|
|
22889
|
-
* </ol>
|
|
22890
|
-
* <p>action code: 10116</p>
|
|
23048
|
+
* The verification code is sent to email address
|
|
23049
|
+
* Available contexts for use :
|
|
23050
|
+
* -
|
|
23051
|
+
* __UserAccountRegistration__
|
|
23052
|
+
* a context type used for verifying email address in user account registration. It returns 409 if the email address already verified.
|
|
23053
|
+
* __It is the default context if the Context field is empty__
|
|
23054
|
+
*
|
|
23055
|
+
* -
|
|
23056
|
+
* __UpdateEmailAddress__
|
|
23057
|
+
* a context type used for verify user before updating email address.(Without email address verified checking)
|
|
23058
|
+
*
|
|
23059
|
+
* - __upgradeHeadlessAccount__
|
|
23060
|
+
* The context is intended to be used whenever the email address wanted to be automatically verified on upgrading a headless account.
|
|
23061
|
+
* If this context used, IAM rejects the request if the email address is already used by others by returning HTTP Status Code 409.
|
|
23062
|
+
* action code: 10116
|
|
22891
23063
|
*
|
|
22892
23064
|
*/
|
|
22893
23065
|
this.requestVerificationCode = (data) => {
|
|
22894
23066
|
return this.newInstance().postV3NsUsersMeCodeRequest(data);
|
|
22895
23067
|
};
|
|
22896
23068
|
/**
|
|
22897
|
-
*
|
|
22898
|
-
*
|
|
22899
|
-
*
|
|
22900
|
-
*
|
|
22901
|
-
*
|
|
23069
|
+
* POST [/iam/v3/public/namespaces/{namespace}/users/me/code/verify](api)
|
|
23070
|
+
*
|
|
23071
|
+
* Will consume code if validateOnly is set false
|
|
23072
|
+
* Required valid user authorization
|
|
23073
|
+
* Redeems a verification code sent to a user to verify the user's contact address is correct
|
|
23074
|
+
* Available ContactType : __email__
|
|
23075
|
+
* action code: 10107
|
|
22902
23076
|
*
|
|
22903
23077
|
*/
|
|
22904
23078
|
this.verifyCode = (data) => {
|
|
22905
23079
|
return this.newInstance().postV3NsUsersMeCodeVerify(data);
|
|
22906
23080
|
};
|
|
22907
23081
|
/**
|
|
22908
|
-
*
|
|
23082
|
+
* POST [/iam/v3/public/namespaces/{namespace}/users/me/headless/code/verify](api)
|
|
23083
|
+
*
|
|
23084
|
+
* If validateOnly is set false, consume code and upgrade headless account and automatically verified the email address if it is succeeded
|
|
22909
23085
|
* Require valid user access token.
|
|
22910
|
-
*
|
|
22911
|
-
* By upgrading the headless account into a full account, the user could use the email address and password for using Justice IAM.
|
|
22912
|
-
*
|
|
22913
|
-
* In order to get a verification code for the method, please check the send verification code method
|
|
22914
|
-
*
|
|
23086
|
+
* The method upgrades a headless account by linking the headless account with the email address and the password.
|
|
23087
|
+
* By upgrading the headless account into a full account, the user could use the email address and password for using Justice IAM.
|
|
23088
|
+
* The method is a shortcut for upgrading a headless account and verifying the email address in one call.
|
|
23089
|
+
* In order to get a verification code for the method, please check the send verification code method.
|
|
23090
|
+
* 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
23091
|
* Supported user data fields :
|
|
22916
|
-
*
|
|
22917
|
-
*
|
|
22918
|
-
*
|
|
22919
|
-
*
|
|
22920
|
-
*
|
|
22921
|
-
*
|
|
23092
|
+
*
|
|
23093
|
+
* - displayName
|
|
23094
|
+
* - dateOfBirth : format YYYY-MM-DD, e.g. 2019-04-29
|
|
23095
|
+
* - country : format ISO3166-1 alpha-2 two letter, e.g. US
|
|
23096
|
+
*
|
|
23097
|
+
* action code : 10124
|
|
22922
23098
|
*/
|
|
22923
23099
|
this.upgradeHeadlessAccount = (data) => {
|
|
22924
23100
|
return this.newInstance().postV3NsUsersMeHeadlessCodeVerify(data);
|
|
22925
23101
|
};
|
|
22926
23102
|
/**
|
|
23103
|
+
* POST [/iam/v4/public/namespaces/{namespace}/users/me/headless/code/verify](api)
|
|
23104
|
+
*
|
|
22927
23105
|
* Require valid user access token.
|
|
22928
23106
|
* The method upgrades a headless account by linking the headless account with the email address, username, and password.
|
|
22929
23107
|
* By upgrading the headless account into a full account, the user could use the email address, username, and password for using Justice IAM.
|
|
22930
|
-
*
|
|
23108
|
+
*
|
|
22931
23109
|
* The method is a shortcut for upgrading a headless account and verifying the email address in one call.
|
|
22932
|
-
*
|
|
22933
|
-
* <br>
|
|
23110
|
+
*
|
|
22934
23111
|
* 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
23112
|
* Supported user data fields:
|
|
22936
|
-
*
|
|
22937
|
-
*
|
|
22938
|
-
*
|
|
22939
|
-
*
|
|
22940
|
-
*
|
|
23113
|
+
*
|
|
23114
|
+
* - displayName
|
|
23115
|
+
* - dateOfBirth : format YYYY-MM-DD, e.g. 2019-04-29
|
|
23116
|
+
* - country : format ISO3166-1 alpha-2 two letter, e.g. US
|
|
23117
|
+
*
|
|
22941
23118
|
* action code : 10124
|
|
22942
23119
|
*/
|
|
22943
23120
|
this.upgradeHeadlessAccountV4 = (data) => {
|
|
22944
23121
|
return this.newInstance4().postV4NsUsersMeHeadlessCodeVerify(data);
|
|
22945
23122
|
};
|
|
22946
23123
|
/**
|
|
22947
|
-
*
|
|
22948
|
-
*
|
|
23124
|
+
* GET [/iam/v3/public/namespaces/{namespace}/users/{userId}/platforms](api)
|
|
23125
|
+
*
|
|
23126
|
+
* This method retrieves platform accounts linked to user. Required valid user authorization.
|
|
23127
|
+
* action code: 10128
|
|
22949
23128
|
*/
|
|
22950
23129
|
this.getUserLinkedPlatform = (userId) => {
|
|
22951
23130
|
return this.newInstance().fetchV3NsUsersByUseridPlatforms(userId);
|
|
22952
23131
|
};
|
|
22953
23132
|
/**
|
|
23133
|
+
* POST [/iam/v3/public/namespaces/{namespace}/users/me/platforms/{platformId}](api)
|
|
23134
|
+
*
|
|
22954
23135
|
* Required valid user authorization.
|
|
22955
|
-
*
|
|
23136
|
+
* __Prerequisite:__
|
|
22956
23137
|
* 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
|
-
*
|
|
22958
|
-
*
|
|
22959
|
-
*
|
|
22960
|
-
*
|
|
22961
|
-
*
|
|
22962
|
-
*
|
|
22963
|
-
*
|
|
22964
|
-
*
|
|
22965
|
-
*
|
|
22966
|
-
*
|
|
22967
|
-
*
|
|
22968
|
-
*
|
|
22969
|
-
*
|
|
22970
|
-
*
|
|
22971
|
-
*
|
|
22972
|
-
*
|
|
22973
|
-
*
|
|
22974
|
-
*
|
|
22975
|
-
*
|
|
22976
|
-
*
|
|
22977
|
-
*
|
|
23138
|
+
* ##Supported platforms:
|
|
23139
|
+
*
|
|
23140
|
+
* - __steam__: The ticket’s value is the authentication code returned by Steam.
|
|
23141
|
+
* - __steamopenid__: Steam's user authentication method using OpenID 2.0. The ticket's value is URL generated by Steam on web authentication
|
|
23142
|
+
* - __facebook__: The ticket’s value is the authorization code returned by Facebook OAuth
|
|
23143
|
+
* - __google__: The ticket’s value is the authorization code returned by Google OAuth
|
|
23144
|
+
* - __oculus__: The ticket’s value is a string composed of Oculus's user ID and the nonce separated by a colon (:).
|
|
23145
|
+
* - __twitch__: The ticket’s value is the authorization code returned by Twitch OAuth.
|
|
23146
|
+
* - __android__: The ticket's value is the Android’s device ID
|
|
23147
|
+
* - __ios__: The ticket's value is the iOS’s device ID.
|
|
23148
|
+
* - __apple__: The ticket’s value is the authorization code returned by Apple OAuth.
|
|
23149
|
+
* - __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.
|
|
23150
|
+
* - __discord__: The ticket’s value is the authorization code returned by Discord OAuth.
|
|
23151
|
+
* - __ps4web__: The ticket’s value is the authorization code returned by PSN OAuth.
|
|
23152
|
+
* - __xblweb__: The ticket’s value is the authorization code returned by XBox Live OAuth.
|
|
23153
|
+
* - __awscognito__: The ticket’s value is the aws cognito access token (JWT).
|
|
23154
|
+
* - __epicgames__: The ticket’s value is an access-token obtained from Epicgames EOS Account Service.
|
|
23155
|
+
* - __nintendo__: The ticket’s value is the authorization code(id_token) returned by Nintendo OAuth.
|
|
23156
|
+
* - __stadia__: The ticket’s value is a JWT Token, which can be obtained after calling the Stadia SDK's function.
|
|
23157
|
+
*
|
|
23158
|
+
* action code : 10144
|
|
22978
23159
|
*/
|
|
22979
23160
|
this.linkAccountToPlatform = ({ platformId, data }) => {
|
|
22980
23161
|
return this.newInstance().postV3NsUsersMePlatformsByPlatformid(platformId, data);
|
|
22981
23162
|
};
|
|
22982
23163
|
/**
|
|
23164
|
+
* GET [/iam/v3/public/namespaces/{namespace}/requests/{requestId}/async/status](api)
|
|
23165
|
+
*
|
|
22983
23166
|
* Get the linking status between a third-party platform to a user
|
|
22984
23167
|
*/
|
|
22985
23168
|
this.getLinkRequestStatus = (requestId) => {
|
|
22986
23169
|
return this.newInstance().fetchV3NsRequestsByRequestidAsyncStatus(requestId);
|
|
22987
23170
|
};
|
|
22988
23171
|
/**
|
|
22989
|
-
*
|
|
23172
|
+
* @internal
|
|
23173
|
+
* It is going to be __DEPRECATED__.
|
|
22990
23174
|
* Update Platform Account relation to current User Account.
|
|
22991
23175
|
* Note: Game progression data (statistics, reward, etc) associated with previous User Account will not be
|
|
22992
23176
|
* transferred. If the data is tight to game user ID, the user will have the game progression data.
|
|
22993
|
-
*
|
|
22994
23177
|
*/
|
|
22995
23178
|
this.linkPlatformToUserAccount = ({ userId, data }) => {
|
|
22996
23179
|
return this.newInstance().postV3NsUsersByUseridPlatformsLink(userId, data);
|
|
22997
23180
|
};
|
|
22998
23181
|
/**
|
|
23182
|
+
* DELETE [/iam/v3/public/namespaces/{namespace}/users/me/platforms/{platformId}](api)
|
|
23183
|
+
*
|
|
22999
23184
|
* Required valid user authorization.
|
|
23000
|
-
*
|
|
23001
|
-
*
|
|
23002
|
-
*
|
|
23003
|
-
*
|
|
23004
|
-
*
|
|
23005
|
-
*
|
|
23006
|
-
*
|
|
23007
|
-
*
|
|
23008
|
-
*
|
|
23009
|
-
*
|
|
23010
|
-
*
|
|
23011
|
-
*
|
|
23012
|
-
*
|
|
23013
|
-
*
|
|
23014
|
-
*
|
|
23015
|
-
*
|
|
23016
|
-
*
|
|
23017
|
-
*
|
|
23018
|
-
*
|
|
23019
|
-
*
|
|
23020
|
-
*
|
|
23021
|
-
*
|
|
23022
|
-
*
|
|
23023
|
-
*
|
|
23024
|
-
*
|
|
23025
|
-
*
|
|
23185
|
+
* ##Supported platforms:
|
|
23186
|
+
*
|
|
23187
|
+
* - __steam__
|
|
23188
|
+
* - __steamopenid__
|
|
23189
|
+
* - __facebook__
|
|
23190
|
+
* - __google__
|
|
23191
|
+
* - __oculus__
|
|
23192
|
+
* - __twitch__
|
|
23193
|
+
* - __android__
|
|
23194
|
+
* - __ios__
|
|
23195
|
+
* - __apple__
|
|
23196
|
+
* - __device__
|
|
23197
|
+
* - __discord__
|
|
23198
|
+
* - __awscognito__
|
|
23199
|
+
* - __epicgames__
|
|
23200
|
+
* - __nintendo__
|
|
23201
|
+
* - __stadia__
|
|
23202
|
+
*
|
|
23203
|
+
* Unlink user's account from a specific platform. 'justice' platform might have multiple accounts from different namespaces linked.
|
|
23204
|
+
* _platformNamespace_ need to be specified when the platform ID is 'justice'.
|
|
23205
|
+
*
|
|
23206
|
+
* Unlink user's account from justice platform will enable password token grant and password update.
|
|
23207
|
+
*
|
|
23208
|
+
* If you want to unlink user's account in a game namespace, you have to specify _platformNamespace_ to that game namespace.
|
|
23209
|
+
*
|
|
23210
|
+
* action code : 10121
|
|
23026
23211
|
*/
|
|
23027
23212
|
this.unLinkAccountFromPlatform = ({ platformId, data }) => {
|
|
23028
23213
|
return this.newInstance().deleteV3NsUsersMePlatformsByPlatformid(platformId, data);
|
|
23029
23214
|
};
|
|
23030
23215
|
/**
|
|
23216
|
+
* GET [/iam/v3/public/namespaces/{namespace}/users/me/platforms/{platformId}/web/link](api)
|
|
23217
|
+
*
|
|
23031
23218
|
* This method is used to generate third party login page which will redirected to establish method.
|
|
23032
23219
|
*/
|
|
23033
23220
|
this.getThirdPartyURL = ({ platformId, queryParams }) => {
|
|
23034
23221
|
return this.newInstance().fetchV3NsUsersMePlatformsByPlatformidWebLink(platformId, queryParams);
|
|
23035
23222
|
};
|
|
23036
23223
|
/**
|
|
23224
|
+
* GET [/iam/v3/public/namespaces/{namespace}/agerestrictions/countries/{countryCode}](api)
|
|
23225
|
+
*
|
|
23037
23226
|
* Get age restriction by country code. It will always get by publisher namespace
|
|
23038
23227
|
*/
|
|
23039
23228
|
this.getAgeRestrictionByCountry = (countryCode) => {
|
|
23040
23229
|
return this.newInstance().fetchV3NsAgerestrictionsCountriesByCountrycode(countryCode);
|
|
23041
23230
|
};
|
|
23042
|
-
|
|
23043
|
-
|
|
23044
|
-
|
|
23045
|
-
|
|
23046
|
-
|
|
23047
|
-
|
|
23048
|
-
|
|
23049
|
-
|
|
23050
|
-
|
|
23051
|
-
|
|
23052
|
-
|
|
23053
|
-
|
|
23054
|
-
|
|
23055
|
-
|
|
23056
|
-
|
|
23057
|
-
|
|
23058
|
-
|
|
23059
|
-
|
|
23060
|
-
|
|
23061
|
-
|
|
23062
|
-
|
|
23063
|
-
|
|
23064
|
-
|
|
23065
|
-
|
|
23066
|
-
|
|
23067
|
-
|
|
23068
|
-
|
|
23069
|
-
|
|
23070
|
-
|
|
23071
|
-
|
|
23072
|
-
|
|
23073
|
-
|
|
23074
|
-
|
|
23075
|
-
|
|
23076
|
-
|
|
23077
|
-
|
|
23078
|
-
|
|
23079
|
-
|
|
23080
|
-
|
|
23081
|
-
|
|
23082
|
-
|
|
23083
|
-
|
|
23084
|
-
|
|
23085
|
-
|
|
23086
|
-
|
|
23087
|
-
|
|
23088
|
-
|
|
23089
|
-
|
|
23090
|
-
|
|
23091
|
-
|
|
23092
|
-
|
|
23093
|
-
|
|
23094
|
-
|
|
23095
|
-
|
|
23096
|
-
|
|
23097
|
-
|
|
23098
|
-
|
|
23099
|
-
|
|
23100
|
-
|
|
23101
|
-
|
|
23102
|
-
|
|
23103
|
-
|
|
23104
|
-
|
|
23105
|
-
|
|
23106
|
-
|
|
23107
|
-
|
|
23108
|
-
|
|
23109
|
-
|
|
23110
|
-
|
|
23111
|
-
|
|
23112
|
-
|
|
23113
|
-
|
|
23114
|
-
|
|
23115
|
-
|
|
23116
|
-
|
|
23117
|
-
|
|
23118
|
-
|
|
23119
|
-
|
|
23120
|
-
|
|
23121
|
-
|
|
23122
|
-
|
|
23123
|
-
|
|
23124
|
-
|
|
23125
|
-
|
|
23126
|
-
|
|
23127
|
-
|
|
23128
|
-
|
|
23129
|
-
|
|
23130
|
-
|
|
23131
|
-
|
|
23132
|
-
|
|
23133
|
-
|
|
23134
|
-
|
|
23135
|
-
|
|
23136
|
-
|
|
23231
|
+
/**
|
|
23232
|
+
* Render 2D Avatar via readyplayer.me POST [](https://docs.readyplayer.me/ready-player-me/avatars/2d-avatars/render-api)
|
|
23233
|
+
* @internal
|
|
23234
|
+
*/
|
|
23235
|
+
this.renderImageFromGlbModel = (data) => {
|
|
23236
|
+
const axios = Network.create({
|
|
23237
|
+
...this.conf
|
|
23238
|
+
});
|
|
23239
|
+
return Validate.responseType(() => axios.post('https://render.readyplayer.me/render', data), ReadyPlayerMe);
|
|
23240
|
+
};
|
|
23241
|
+
/**
|
|
23242
|
+
* POST [/iam/v3/public/namespaces/{namespace}/users/code/request](api)
|
|
23243
|
+
*
|
|
23244
|
+
* This method will validate the request's email address.
|
|
23245
|
+
*
|
|
23246
|
+
* If it already been used, will response 409.
|
|
23247
|
+
*
|
|
23248
|
+
* If it is available, we will send a verification code to this email address.
|
|
23249
|
+
*/
|
|
23250
|
+
this.requestNewUserVerificationCode = (data) => {
|
|
23251
|
+
return this.newInstance().postV3NsUsersCodeRequest(data);
|
|
23252
|
+
};
|
|
23253
|
+
/**
|
|
23254
|
+
* POST [/iam/v4/public/namespaces/{namespace}/users](api)
|
|
23255
|
+
*
|
|
23256
|
+
* Create a new user with unique email address and username.
|
|
23257
|
+
*
|
|
23258
|
+
* __Required attributes:__
|
|
23259
|
+
* - authType: possible value is EMAILPASSWD
|
|
23260
|
+
* - emailAddress: Please refer to the rule from /v3/public/inputValidations API.
|
|
23261
|
+
* - username: Please refer to the rule from /v3/public/inputValidations API.
|
|
23262
|
+
* - password: Please refer to the rule from /v3/public/inputValidations API.
|
|
23263
|
+
* - country: ISO3166-1 alpha-2 two letter, e.g. US.
|
|
23264
|
+
* - dateOfBirth: YYYY-MM-DD, e.g. 1990-01-01. valid values are between 1905-01-01 until current date.
|
|
23265
|
+
*
|
|
23266
|
+
* __Not required attributes:__
|
|
23267
|
+
* - displayName: Please refer to the rule from /v3/public/inputValidations API.
|
|
23268
|
+
*
|
|
23269
|
+
* This method support accepting agreements for the created user. Supply the accepted agreements in acceptedPolicies attribute.
|
|
23270
|
+
*
|
|
23271
|
+
*/
|
|
23272
|
+
this.createUser = (data) => {
|
|
23273
|
+
return this.newInstance4().postV4NsUsers(data);
|
|
23274
|
+
};
|
|
23275
|
+
/**
|
|
23276
|
+
* GET [/iam/v3/public/namespaces/{namespace}/users/{userId}/distinctPlatforms](api)
|
|
23277
|
+
*
|
|
23278
|
+
* This method retrieves platform accounts linked to user.
|
|
23279
|
+
* It will query all linked platform accounts and result will be distinct & grouped, same platform we will pick oldest linked one.
|
|
23280
|
+
* Required valid user authorization.
|
|
23281
|
+
*/
|
|
23282
|
+
this.getUserDistinctLinkedPlatform = (userId) => {
|
|
23283
|
+
return this.newInstance().fetchV3NsUsersByUseridDistinctPlatforms(userId);
|
|
23284
|
+
};
|
|
23285
|
+
/**
|
|
23286
|
+
* DELETE [/iam/v3/public/namespaces/{namespace}/users/me/platforms/{platformId}/all](api)
|
|
23287
|
+
*
|
|
23288
|
+
* Required valid user authorization.
|
|
23289
|
+
* Unlink user's account from for all third platforms.
|
|
23290
|
+
*/
|
|
23291
|
+
this.unLinkAccountFromPlatformDistinct = (platformId) => {
|
|
23292
|
+
return this.newInstance().deleteV3NsUsersMePlatformsByPlatformidAll(platformId);
|
|
23293
|
+
};
|
|
23294
|
+
/**
|
|
23295
|
+
* POST [/iam/v3/public/users/me/verify_link/request](api)
|
|
23296
|
+
*
|
|
23297
|
+
* Required valid user authorization
|
|
23298
|
+
* The verification link is sent to email address
|
|
23299
|
+
* It will not send request if user email is already verified
|
|
23300
|
+
*/
|
|
23301
|
+
this.sendVerificationLink = (languageTag) => {
|
|
23302
|
+
return this.newInstance().postIamV3PublicUsersMeVerifyLinkRequest({ languageTag });
|
|
23303
|
+
};
|
|
23304
|
+
/**
|
|
23305
|
+
* GET [/iam/v3/public/namespaces/{namespace}/users/{userId}/platforms](api)
|
|
23306
|
+
*
|
|
23307
|
+
* This method retrieves platform accounts linked to user. Required valid user authorization.
|
|
23308
|
+
* action code: 10128
|
|
23309
|
+
*/
|
|
23310
|
+
this.getLinkedAccount = (userId) => {
|
|
23311
|
+
return this.newInstance().fetchV3NsUsersByUseridPlatforms(userId);
|
|
23312
|
+
};
|
|
23313
|
+
/**
|
|
23314
|
+
* GET [/iam/v3/public/users/me/headless/link/conflict](api)
|
|
23315
|
+
*
|
|
23316
|
+
* Note:
|
|
23317
|
+
* 1. My account should be full account
|
|
23318
|
+
* 2. My account not linked to request headless account's third platform.
|
|
23319
|
+
*/
|
|
23320
|
+
this.getLinkAccountByOneTimeCodeConflict = (params) => {
|
|
23321
|
+
return this.newInstance().fetchIamV3PublicUsersMeHeadlessLinkConflict(params);
|
|
23322
|
+
};
|
|
23323
|
+
/**
|
|
23324
|
+
* POST [/iam/v3/public/users/me/headless/linkWithProgression](api)
|
|
23325
|
+
*
|
|
23326
|
+
* Note:
|
|
23327
|
+
* 1. My account should be full account
|
|
23328
|
+
* 2. My account not linked to headless account's third platform.
|
|
23329
|
+
*/
|
|
23330
|
+
this.linkWithProgression = (data) => {
|
|
23331
|
+
return this.newInstance().postIamV3PublicUsersMeHeadlessLinkWithProgression(data);
|
|
23332
|
+
};
|
|
23137
23333
|
}
|
|
23138
23334
|
/**
|
|
23139
23335
|
* @internal
|
|
@@ -23290,24 +23486,36 @@ class AgreementApi {
|
|
|
23290
23486
|
this.conf = conf;
|
|
23291
23487
|
this.namespace = namespace;
|
|
23292
23488
|
this.cache = cache;
|
|
23293
|
-
|
|
23294
|
-
|
|
23295
|
-
|
|
23296
|
-
|
|
23297
|
-
|
|
23298
|
-
|
|
23299
|
-
|
|
23300
|
-
|
|
23301
|
-
|
|
23302
|
-
|
|
23303
|
-
|
|
23304
|
-
|
|
23305
|
-
|
|
23306
|
-
|
|
23307
|
-
|
|
23308
|
-
|
|
23309
|
-
|
|
23310
|
-
|
|
23489
|
+
/**
|
|
23490
|
+
* POST [/agreement/public/agreements/policies](api)
|
|
23491
|
+
*
|
|
23492
|
+
* Accepts many legal policy versions all at once. Supply with localized version policy id to accept an agreement.
|
|
23493
|
+
*
|
|
23494
|
+
* _Required permission_: login user
|
|
23495
|
+
*/
|
|
23496
|
+
this.acceptLegalPolicies = (acceptAgreements) => {
|
|
23497
|
+
return this.newInstance().postPublicAgreementsPolicies(acceptAgreements);
|
|
23498
|
+
};
|
|
23499
|
+
/**
|
|
23500
|
+
* GET [/agreement/public/agreements/policies](api)
|
|
23501
|
+
*
|
|
23502
|
+
* Retrieve accepted Legal Agreements.
|
|
23503
|
+
*
|
|
23504
|
+
* _Required permission_: login user
|
|
23505
|
+
*/
|
|
23506
|
+
this.getAgreements = () => {
|
|
23507
|
+
return this.newInstance().fetchPublicAgreementsPolicies();
|
|
23508
|
+
};
|
|
23509
|
+
/**
|
|
23510
|
+
* PATCH [/agreement/public/agreements/localized-policy-versions/preferences](api)
|
|
23511
|
+
*
|
|
23512
|
+
* Change marketing preference consent
|
|
23513
|
+
*
|
|
23514
|
+
* _Required permission_: login user
|
|
23515
|
+
*/
|
|
23516
|
+
this.updateMarketingPreferences = (acceptAgreements) => {
|
|
23517
|
+
return this.newInstance().patchPublicAgreementsLocalizedPolicyVersionsPreferences(acceptAgreements);
|
|
23518
|
+
};
|
|
23311
23519
|
}
|
|
23312
23520
|
newInstance() {
|
|
23313
23521
|
return new Agreement$(Network.create(this.conf), this.namespace, this.cache);
|
|
@@ -23420,12 +23628,16 @@ class EligibilitiesApi {
|
|
|
23420
23628
|
this.conf = conf;
|
|
23421
23629
|
this.namespace = namespace;
|
|
23422
23630
|
this.cache = cache;
|
|
23423
|
-
|
|
23424
|
-
|
|
23425
|
-
|
|
23426
|
-
|
|
23427
|
-
|
|
23428
|
-
|
|
23631
|
+
/**
|
|
23632
|
+
* GET [/agreement/public/eligibilities/namespaces/{namespace}](api)
|
|
23633
|
+
*
|
|
23634
|
+
* 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.
|
|
23635
|
+
*
|
|
23636
|
+
* _Required permission_: login user
|
|
23637
|
+
*/
|
|
23638
|
+
this.getUserEligibilities = () => {
|
|
23639
|
+
return this.newInstance().fetchPublicEligibilitiesNamespacesByNamespace();
|
|
23640
|
+
};
|
|
23429
23641
|
}
|
|
23430
23642
|
newInstance() {
|
|
23431
23643
|
return new Eligibilities$(Network.create(this.conf), this.namespace, this.cache);
|
|
@@ -23528,12 +23740,14 @@ class LocalizedPolicyVersionsApi {
|
|
|
23528
23740
|
this.conf = conf;
|
|
23529
23741
|
this.namespace = namespace;
|
|
23530
23742
|
this.cache = cache;
|
|
23531
|
-
|
|
23532
|
-
|
|
23533
|
-
|
|
23534
|
-
|
|
23535
|
-
|
|
23536
|
-
|
|
23743
|
+
/**
|
|
23744
|
+
* GET [/agreement/public/localized-policy-versions/{localizedPolicyVersionId}](api)
|
|
23745
|
+
*
|
|
23746
|
+
* Retrieve specific localized policy version including the policy version and base policy version where the localized policy version located.
|
|
23747
|
+
*/
|
|
23748
|
+
this.fetchLocalizedPolicyVersionById = (localizedPolicyVersionId) => {
|
|
23749
|
+
return this.newInstance().fetchPublicLocalizedPolicyVersionsByLocalizedpolicyversionid(localizedPolicyVersionId);
|
|
23750
|
+
};
|
|
23537
23751
|
}
|
|
23538
23752
|
newInstance() {
|
|
23539
23753
|
return new LocalizedPolicyVersions$(Network.create(this.conf), this.namespace, this.cache);
|
|
@@ -23639,18 +23853,37 @@ class PoliciesApi {
|
|
|
23639
23853
|
this.conf = conf;
|
|
23640
23854
|
this.namespace = namespace;
|
|
23641
23855
|
this.cache = cache;
|
|
23642
|
-
|
|
23643
|
-
|
|
23644
|
-
|
|
23645
|
-
|
|
23646
|
-
|
|
23647
|
-
|
|
23648
|
-
|
|
23649
|
-
|
|
23650
|
-
|
|
23651
|
-
|
|
23652
|
-
|
|
23653
|
-
|
|
23856
|
+
/**
|
|
23857
|
+
* GET [/agreement/public/policies/namespaces/{namespace}/countries/{countryCode}](api)
|
|
23858
|
+
*
|
|
23859
|
+
* Retrieve all active latest policies based on a namespace and country.
|
|
23860
|
+
*
|
|
23861
|
+
* - _Leave the policyType empty if you want to be responded with all policy type_
|
|
23862
|
+
* - _Fill the tags if you want to filter the responded policy by tags_
|
|
23863
|
+
* - _Fill the defaultOnEmpty with true if you want to be responded with default country-specific policy if your requested country is not exist_
|
|
23864
|
+
* - _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:_
|
|
23865
|
+
*
|
|
23866
|
+
* - Document 1 (default): Region US (default), UA
|
|
23867
|
+
* - Document 2 (default): Region US (default)
|
|
23868
|
+
* - Document 3 (default): Region US (default)
|
|
23869
|
+
* - User: Region UA
|
|
23870
|
+
* - Query: alwaysIncludeDefault: true
|
|
23871
|
+
* - Response: Document 1 (UA), Document 2 (US), Document 3 (US)
|
|
23872
|
+
*/
|
|
23873
|
+
this.fetchPoliciesByCountry = ({ countryCode, queryParams }) => {
|
|
23874
|
+
return this.newInstance().fetchPublicPoliciesNamespacesByNamespaceCountriesByCountrycode(countryCode, queryParams);
|
|
23875
|
+
};
|
|
23876
|
+
/**
|
|
23877
|
+
* GET [/agreement/public/policies/countries/{countryCode}](api)
|
|
23878
|
+
*
|
|
23879
|
+
* Retrieve all active latest policies based on country from all namespaces.
|
|
23880
|
+
* - _Leave the policyType empty if you want to be responded with all policy type_
|
|
23881
|
+
* - _Fill the tags if you want to filter the responded policy by tags_
|
|
23882
|
+
* - _Fill the defaultOnEmpty with true if you want to be responded with default country-specific policy if your requested country is not exist_
|
|
23883
|
+
*/
|
|
23884
|
+
this.fetchAllPoliciesByCountry = ({ countryCode, queryParams }) => {
|
|
23885
|
+
return this.newInstance().fetchPublicPoliciesCountriesByCountrycode(countryCode, queryParams);
|
|
23886
|
+
};
|
|
23654
23887
|
}
|
|
23655
23888
|
newInstance() {
|
|
23656
23889
|
return new Policies$(Network.create(this.conf), this.namespace, this.cache);
|
|
@@ -23734,12 +23967,21 @@ class PublicTemplateApi {
|
|
|
23734
23967
|
this.conf = conf;
|
|
23735
23968
|
this.namespace = namespace;
|
|
23736
23969
|
this.cache = cache;
|
|
23970
|
+
/**
|
|
23971
|
+
* @internal
|
|
23972
|
+
*/
|
|
23737
23973
|
this.getTemplateConfigs = (template) => {
|
|
23738
23974
|
return this.newInstance().fetchV1NsTemplatesByTemplateConfigs(template);
|
|
23739
23975
|
};
|
|
23976
|
+
/**
|
|
23977
|
+
* @internal
|
|
23978
|
+
*/
|
|
23740
23979
|
this.getTemplateConfig = (template, configId) => {
|
|
23741
23980
|
return this.newInstance().fetchV1NsTemplatesByTemplateConfigsByConfig(template, configId);
|
|
23742
23981
|
};
|
|
23982
|
+
/**
|
|
23983
|
+
* @internal
|
|
23984
|
+
*/
|
|
23743
23985
|
this.getDiscoveryTemplateConfigs = () => {
|
|
23744
23986
|
return this.newInstance().fetchV1NsTemplatesByTemplateConfigs(DISCOVERY_TEMPLATE_NAME);
|
|
23745
23987
|
};
|
|
@@ -23809,13 +24051,19 @@ class CurrencyApi {
|
|
|
23809
24051
|
this.namespace = namespace;
|
|
23810
24052
|
this.cache = cache;
|
|
23811
24053
|
/**
|
|
23812
|
-
*
|
|
24054
|
+
* GET [/platform/public/namespaces/{namespace}/currencies](api)
|
|
24055
|
+
*
|
|
24056
|
+
* List currencies of a namespace.
|
|
24057
|
+
*
|
|
24058
|
+
* Returns: Currency List
|
|
23813
24059
|
*/
|
|
23814
24060
|
this.getCurrencies = () => {
|
|
23815
24061
|
return this.newInstance().fetchNsCurrencies();
|
|
23816
24062
|
};
|
|
23817
24063
|
/**
|
|
23818
24064
|
* Get the currencies list and convert into a map of currency code and the currency itself
|
|
24065
|
+
*
|
|
24066
|
+
* @internal
|
|
23819
24067
|
*/
|
|
23820
24068
|
this.getCurrencyMap = async () => {
|
|
23821
24069
|
const result = await this.getCurrencies();
|
|
@@ -24428,38 +24676,42 @@ class EntitlementApi {
|
|
|
24428
24676
|
this.conf = conf;
|
|
24429
24677
|
this.namespace = namespace;
|
|
24430
24678
|
this.cache = cache;
|
|
24431
|
-
|
|
24432
|
-
|
|
24433
|
-
|
|
24434
|
-
|
|
24435
|
-
|
|
24436
|
-
|
|
24437
|
-
|
|
24438
|
-
|
|
24439
|
-
|
|
24440
|
-
|
|
24441
|
-
|
|
24442
|
-
|
|
24443
|
-
|
|
24444
|
-
|
|
24445
|
-
|
|
24446
|
-
|
|
24447
|
-
|
|
24448
|
-
|
|
24449
|
-
|
|
24450
|
-
|
|
24451
|
-
|
|
24452
|
-
|
|
24453
|
-
|
|
24454
|
-
|
|
24455
|
-
|
|
24456
|
-
|
|
24457
|
-
|
|
24458
|
-
|
|
24459
|
-
|
|
24460
|
-
|
|
24461
|
-
|
|
24462
|
-
|
|
24679
|
+
/**
|
|
24680
|
+
* GET [/platform/public/namespaces/{namespace}/users/{userId}/entitlements/byAppId](api)
|
|
24681
|
+
*
|
|
24682
|
+
* Get user app entitlement by appId.
|
|
24683
|
+
*/
|
|
24684
|
+
this.getEntitlementByAppId = ({ userId, appId }) => {
|
|
24685
|
+
return this.newInstance().fetchNsUsersByUseridEntitlementsByAppId(userId, {
|
|
24686
|
+
appId
|
|
24687
|
+
});
|
|
24688
|
+
};
|
|
24689
|
+
/**
|
|
24690
|
+
* Query user entitlements for a specific user.
|
|
24691
|
+
* Returns: entitlement list
|
|
24692
|
+
*/
|
|
24693
|
+
this.getEntitlements = ({ userId, queryParams }) => {
|
|
24694
|
+
return this.newInstance().fetchNsUsersByUseridEntitlements(userId, queryParams);
|
|
24695
|
+
};
|
|
24696
|
+
/**
|
|
24697
|
+
* Exists any user active entitlement of specified itemIds, skus and appIds
|
|
24698
|
+
*/
|
|
24699
|
+
this.getEntitlementOwnerShip = ({ userId, queryParams }) => {
|
|
24700
|
+
return this.newInstance().fetchNsUsersByUseridEntitlementsOwnershipAny(userId, queryParams);
|
|
24701
|
+
};
|
|
24702
|
+
/**
|
|
24703
|
+
* Get user entitlement ownership by itemIds.
|
|
24704
|
+
*/
|
|
24705
|
+
this.getEntitlementByItemIds = ({ userId, queryParams }) => {
|
|
24706
|
+
return this.newInstance().fetchNsUsersByUseridEntitlementsOwnershipByItemIds(userId, queryParams);
|
|
24707
|
+
};
|
|
24708
|
+
/**
|
|
24709
|
+
* 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
|
|
24710
|
+
* Returns: consumed entitlement
|
|
24711
|
+
*/
|
|
24712
|
+
this.claimEntitlement = ({ userId, entitlementId, data }) => {
|
|
24713
|
+
return this.newInstance().putNsUsersByUseridEntitlementsByEntitlementidDecrement(userId, entitlementId, data);
|
|
24714
|
+
};
|
|
24463
24715
|
}
|
|
24464
24716
|
newInstance() {
|
|
24465
24717
|
return new Entitlement$(Network.create(this.conf), this.namespace, this.cache);
|
|
@@ -24559,7 +24811,11 @@ class FulfillmentApi {
|
|
|
24559
24811
|
this.namespace = namespace;
|
|
24560
24812
|
this.cache = cache;
|
|
24561
24813
|
/**
|
|
24562
|
-
*
|
|
24814
|
+
* POST [/platform/public/namespaces/{namespace}/users/{userId}/fulfillment/code](api)
|
|
24815
|
+
*
|
|
24816
|
+
* Redeem campaign code
|
|
24817
|
+
*
|
|
24818
|
+
* Returns: fulfillment result
|
|
24563
24819
|
*/
|
|
24564
24820
|
this.redeemCode = ({ userId, data }) => {
|
|
24565
24821
|
return this.newInstance().postNsUsersByUseridFulfillmentCode(userId, data);
|
|
@@ -25112,64 +25368,90 @@ class ItemApi {
|
|
|
25112
25368
|
this.conf = conf;
|
|
25113
25369
|
this.namespace = namespace;
|
|
25114
25370
|
this.cache = cache;
|
|
25115
|
-
|
|
25116
|
-
|
|
25117
|
-
|
|
25118
|
-
|
|
25119
|
-
|
|
25120
|
-
|
|
25121
|
-
|
|
25122
|
-
|
|
25123
|
-
|
|
25124
|
-
|
|
25125
|
-
|
|
25126
|
-
|
|
25127
|
-
|
|
25128
|
-
|
|
25129
|
-
|
|
25130
|
-
|
|
25131
|
-
|
|
25132
|
-
|
|
25133
|
-
|
|
25134
|
-
|
|
25135
|
-
|
|
25136
|
-
|
|
25137
|
-
|
|
25138
|
-
|
|
25139
|
-
|
|
25140
|
-
|
|
25141
|
-
|
|
25142
|
-
|
|
25143
|
-
|
|
25144
|
-
|
|
25145
|
-
|
|
25146
|
-
|
|
25147
|
-
|
|
25148
|
-
|
|
25149
|
-
|
|
25150
|
-
|
|
25151
|
-
|
|
25152
|
-
|
|
25153
|
-
|
|
25154
|
-
|
|
25155
|
-
|
|
25156
|
-
|
|
25157
|
-
|
|
25158
|
-
|
|
25159
|
-
|
|
25160
|
-
|
|
25161
|
-
|
|
25162
|
-
|
|
25163
|
-
|
|
25164
|
-
|
|
25165
|
-
|
|
25166
|
-
|
|
25167
|
-
|
|
25168
|
-
|
|
25169
|
-
|
|
25170
|
-
|
|
25171
|
-
|
|
25172
|
-
|
|
25371
|
+
/**
|
|
25372
|
+
* GET [/platform/public/namespaces/{namespace}/items/byAppId](api)
|
|
25373
|
+
*
|
|
25374
|
+
* This API is used to get item by appId
|
|
25375
|
+
*
|
|
25376
|
+
* Returns: the item with that appId
|
|
25377
|
+
*/
|
|
25378
|
+
this.getItemByAppId = ({ ...queryParams }) => {
|
|
25379
|
+
return this.newInstance().fetchNsItemsByAppId(queryParams);
|
|
25380
|
+
};
|
|
25381
|
+
/**
|
|
25382
|
+
* GET [/platform/public/namespaces/{namespace}/items/{itemId}/dynamic](api)
|
|
25383
|
+
*
|
|
25384
|
+
* Get item dynamic data for a published item
|
|
25385
|
+
*
|
|
25386
|
+
* Returns: item dynamic data
|
|
25387
|
+
*/
|
|
25388
|
+
this.getItemByItemIdDynamic = (itemId) => {
|
|
25389
|
+
return this.newInstance().fetchNsItemsByItemidDynamic(itemId);
|
|
25390
|
+
};
|
|
25391
|
+
/**
|
|
25392
|
+
* GET [/platform/public/namespaces/{namespace}/items/byCriteria](api)
|
|
25393
|
+
*/
|
|
25394
|
+
this.fetchItemsByCriteria = ({ queryParams }) => {
|
|
25395
|
+
return this.newInstance().fetchNsItemsByCriteria(queryParams);
|
|
25396
|
+
};
|
|
25397
|
+
/**
|
|
25398
|
+
* GET [/platform/public/namespaces/{namespace}/items/locale/byIds](api)
|
|
25399
|
+
*
|
|
25400
|
+
* This API is used to query items by criteria within a store. If item not exist in specific region, default region item will return.
|
|
25401
|
+
*
|
|
25402
|
+
* Returns: the list of items
|
|
25403
|
+
*/
|
|
25404
|
+
this.getItemsByItemIds = ({ queryParams }) => {
|
|
25405
|
+
return this.newInstance().fetchNsItemsLocaleByIds(queryParams);
|
|
25406
|
+
};
|
|
25407
|
+
// TODO if not used, delete below
|
|
25408
|
+
// /**
|
|
25409
|
+
// * Fetch the items and convert it into a map of `itemId` and its item info
|
|
25410
|
+
// */
|
|
25411
|
+
// fetchAvailableItemInfoMap = async ({ queryParams }: { queryParams: QueryParamsItemIds }) => {
|
|
25412
|
+
// const result = await this.getItemsByItemIds({ queryParams })
|
|
25413
|
+
// if (result.response) {
|
|
25414
|
+
// return {
|
|
25415
|
+
// error: null,
|
|
25416
|
+
// value: result.response.data.reduce((map: Map<string, ItemInfo>, availableItemInfo) => {
|
|
25417
|
+
// const { itemId } = availableItemInfo
|
|
25418
|
+
// if (itemId) {
|
|
25419
|
+
// map.set(itemId, availableItemInfo)
|
|
25420
|
+
// }
|
|
25421
|
+
// return map
|
|
25422
|
+
// }, new Map())
|
|
25423
|
+
// }
|
|
25424
|
+
// }
|
|
25425
|
+
// return result
|
|
25426
|
+
// }
|
|
25427
|
+
/**
|
|
25428
|
+
* GET [/platform/public/namespaces/{namespace}/items/{itemId}/locale](api)
|
|
25429
|
+
*
|
|
25430
|
+
* This API is used to get an item in locale. If item not exist in specific region, default region item will return.
|
|
25431
|
+
*
|
|
25432
|
+
* Returns: item data
|
|
25433
|
+
*/
|
|
25434
|
+
this.getItemsByItemIdLocale = ({ itemId, queryParams }) => {
|
|
25435
|
+
return this.newInstance().fetchNsItemsByItemidLocale(itemId, queryParams);
|
|
25436
|
+
};
|
|
25437
|
+
/**
|
|
25438
|
+
* GET [/platform/public/namespaces/{namespace}/items/{itemId}/app/locale](api)
|
|
25439
|
+
*
|
|
25440
|
+
* This API is used to get an app in locale. If app not exist in specific region, default region app will return.
|
|
25441
|
+
*
|
|
25442
|
+
* Returns: app data
|
|
25443
|
+
*/
|
|
25444
|
+
this.getAppInfoByItemId = ({ itemId, queryParams }) => {
|
|
25445
|
+
return this.newInstance().fetchNsItemsByItemidAppLocale(itemId, queryParams);
|
|
25446
|
+
};
|
|
25447
|
+
/**
|
|
25448
|
+
* POST [/platform/public/namespaces/{namespace}/items/purchase/conditions/validate](api)
|
|
25449
|
+
*
|
|
25450
|
+
* This API is used to validate user item purchase condition
|
|
25451
|
+
*/
|
|
25452
|
+
this.validatePurchaseCondition = (data) => {
|
|
25453
|
+
return this.newInstance().postNsItemsPurchaseConditionsValidate(data);
|
|
25454
|
+
};
|
|
25173
25455
|
}
|
|
25174
25456
|
newInstance() {
|
|
25175
25457
|
return new Item$(Network.create(this.conf), this.namespace, this.cache);
|
|
@@ -25410,31 +25692,102 @@ class OrderApi {
|
|
|
25410
25692
|
this.namespace = namespace;
|
|
25411
25693
|
this.cache = cache;
|
|
25412
25694
|
/**
|
|
25413
|
-
*
|
|
25695
|
+
* GET [/platform/public/namespaces/{namespace}/users/{userId}/orders](api)
|
|
25696
|
+
*
|
|
25697
|
+
* Query user orders
|
|
25698
|
+
*
|
|
25699
|
+
* Returns a paginated list of `OrderInfo`:
|
|
25700
|
+
* <pre lang="json">{
|
|
25701
|
+
orderNo,
|
|
25702
|
+
paymentOrderNo,
|
|
25703
|
+
namespace,
|
|
25704
|
+
userId,
|
|
25705
|
+
itemId,
|
|
25706
|
+
sandbox,
|
|
25707
|
+
quantity,
|
|
25708
|
+
price,
|
|
25709
|
+
discountedPrice,
|
|
25710
|
+
creationOptions
|
|
25711
|
+
paymentProvider: ('WALLET', 'XSOLLA', 'ADYEN', 'STRIPE', 'CHECKOUT', 'ALIPAY', 'WXPAY', 'PAYPAL'),
|
|
25712
|
+
paymentMethod,
|
|
25713
|
+
tax,
|
|
25714
|
+
vat,
|
|
25715
|
+
salesTax,
|
|
25716
|
+
paymentProviderFee,
|
|
25717
|
+
paymentMethodFee
|
|
25718
|
+
currency: CurrencySummary,
|
|
25719
|
+
paymentStationUrl,
|
|
25720
|
+
itemSnapshot,
|
|
25721
|
+
region,
|
|
25722
|
+
language,
|
|
25723
|
+
status: (
|
|
25724
|
+
'INIT',
|
|
25725
|
+
'CHARGED',
|
|
25726
|
+
'CHARGEBACK',
|
|
25727
|
+
'CHARGEBACK_REVERSED',
|
|
25728
|
+
'FULFILLED',
|
|
25729
|
+
'FULFILL_FAILED',
|
|
25730
|
+
'REFUNDING',
|
|
25731
|
+
'REFUNDED',
|
|
25732
|
+
'REFUND_FAILED',
|
|
25733
|
+
'CLOSED',
|
|
25734
|
+
'DELETED'
|
|
25735
|
+
),
|
|
25736
|
+
statusReason,
|
|
25737
|
+
createdTime,
|
|
25738
|
+
chargedTime,
|
|
25739
|
+
fulfilledTime,
|
|
25740
|
+
refundedTime,
|
|
25741
|
+
chargebackTime,
|
|
25742
|
+
chargebackReversedTime,
|
|
25743
|
+
expireTime,
|
|
25744
|
+
paymentRemainSeconds,
|
|
25745
|
+
ext,
|
|
25746
|
+
totalTax,
|
|
25747
|
+
totalPrice,
|
|
25748
|
+
subtotalPrice,
|
|
25749
|
+
createdAt,
|
|
25750
|
+
updatedAt
|
|
25751
|
+
}</pre>
|
|
25414
25752
|
*/
|
|
25415
25753
|
this.getOrderList = ({ userId, queryParams }) => {
|
|
25416
25754
|
return this.newInstance().fetchNsUsersByUseridOrders(userId, queryParams);
|
|
25417
25755
|
};
|
|
25418
25756
|
/**
|
|
25419
|
-
*
|
|
25757
|
+
* GET [/platform/public/namespaces/{namespace}/users/{userId}/orders/{orderNo}](api)
|
|
25758
|
+
*
|
|
25759
|
+
* Get user order.
|
|
25760
|
+
*
|
|
25761
|
+
* Returns: `OrderInfo`
|
|
25420
25762
|
*/
|
|
25421
25763
|
this.getOrderByOrderNo = ({ userId, orderNo }) => {
|
|
25422
25764
|
return this.newInstance().fetchNsUsersByUseridOrdersByOrderno(userId, orderNo);
|
|
25423
25765
|
};
|
|
25424
25766
|
/**
|
|
25425
|
-
*
|
|
25767
|
+
* PUT [/platform/public/namespaces/{namespace}/users/{userId}/orders/{orderNo}/cancel](api)
|
|
25768
|
+
*
|
|
25769
|
+
* Cancel user order.
|
|
25770
|
+
*
|
|
25771
|
+
* Returns: cancelled `OrderInfo`
|
|
25426
25772
|
*/
|
|
25427
25773
|
this.cancelOrder = ({ userId, orderNo }) => {
|
|
25428
25774
|
return this.newInstance().putNsUsersByUseridOrdersByOrdernoCancel(userId, orderNo);
|
|
25429
25775
|
};
|
|
25430
25776
|
/**
|
|
25431
|
-
*
|
|
25777
|
+
* POST [/platform/public/namespaces/{namespace}/users/{userId}/orders](api)
|
|
25778
|
+
*
|
|
25779
|
+
* Create an order. The result contains the checkout link and payment token.
|
|
25780
|
+
* User with permission SANDBOX will create sandbox order that not real paid for xsolla/alipay and not validate price for wxpay.
|
|
25781
|
+
*
|
|
25782
|
+
* Returns: created `OrderInfo`
|
|
25432
25783
|
*/
|
|
25433
25784
|
this.createOrder = ({ userId, data }) => {
|
|
25434
25785
|
return this.newInstance().postNsUsersByUseridOrders(userId, data);
|
|
25435
25786
|
};
|
|
25436
25787
|
/**
|
|
25437
25788
|
* Fetch all information needed for a user to check the user's availability to purchase the item
|
|
25789
|
+
*
|
|
25790
|
+
* @internal
|
|
25438
25791
|
*/
|
|
25439
25792
|
this.fetchPrePurchaseInformation = async ({ userId, item }) => {
|
|
25440
25793
|
const currencyApi = new CurrencyApi(this.conf, this.namespace, this.cache);
|
|
@@ -25763,31 +26116,49 @@ class PaymentApi {
|
|
|
25763
26116
|
this.namespace = namespace;
|
|
25764
26117
|
this.cache = cache;
|
|
25765
26118
|
/**
|
|
25766
|
-
*
|
|
26119
|
+
* GET [/platform/public/namespaces/{namespace}/users/{userId}/payment/accounts](api)
|
|
26120
|
+
*
|
|
26121
|
+
* Get payment accounts.
|
|
26122
|
+
*
|
|
26123
|
+
* Returns: Payment account list `PaymentAccountArray`
|
|
25767
26124
|
*/
|
|
25768
26125
|
this.getPaymentAccounts = (userId) => {
|
|
25769
26126
|
return this.newInstance().fetchNsUsersByUseridPaymentAccounts(userId);
|
|
25770
26127
|
};
|
|
25771
26128
|
/**
|
|
25772
|
-
*
|
|
26129
|
+
* DELETE [/platform/public/namespaces/{namespace}/users/{userId}/payment/accounts/{type}/{id}](api)
|
|
26130
|
+
*
|
|
26131
|
+
* Delete payment account.
|
|
25773
26132
|
*/
|
|
25774
26133
|
this.deletePaymentAccount = ({ userId, type, id }) => {
|
|
25775
26134
|
return this.newInstance().deleteNsUsersByUseridPaymentAccountsByTypeById(userId, type, id);
|
|
25776
26135
|
};
|
|
25777
26136
|
/**
|
|
25778
|
-
*
|
|
26137
|
+
* GET [/platform/public/namespaces/{namespace}/payment/orders/{paymentOrderNo}/info](api)
|
|
26138
|
+
*
|
|
26139
|
+
* Get payment order info.
|
|
26140
|
+
*
|
|
26141
|
+
* Returns: Payment order details `PaymentOrderDetails`
|
|
25779
26142
|
*/
|
|
25780
26143
|
this.getPaymentInfo = (paymentOrderNo) => {
|
|
25781
26144
|
return new PaymentStation$(Network.create(this.conf), this.namespace, this.cache).fetchNsPaymentOrdersByPaymentordernoInfo(paymentOrderNo);
|
|
25782
26145
|
};
|
|
25783
26146
|
/**
|
|
25784
|
-
*
|
|
26147
|
+
* POST [/platform/public/namespaces/{namespace}/payment/orders/{paymentOrderNo}/pay](api)
|
|
26148
|
+
*
|
|
26149
|
+
* Do payment(For now, this only support checkout.com).
|
|
26150
|
+
*
|
|
26151
|
+
* Returns: Payment process result
|
|
25785
26152
|
*/
|
|
25786
26153
|
this.processPaymentOrder = (paymentOrderNo, data, queryParams) => {
|
|
25787
26154
|
return new PaymentStation$(Network.create(this.conf), this.namespace, this.cache).postNsPaymentOrdersByPaymentordernoPay(paymentOrderNo, data, queryParams);
|
|
25788
26155
|
};
|
|
25789
26156
|
/**
|
|
25790
|
-
*
|
|
26157
|
+
* GET [/platform/public/namespaces/{namespace}/payment/publicconfig](api)
|
|
26158
|
+
*
|
|
26159
|
+
* Get payment provider public config, at current only Strip provide public config.
|
|
26160
|
+
*
|
|
26161
|
+
* Returns: Public config
|
|
25791
26162
|
*/
|
|
25792
26163
|
this.getPaymentProviderPublicConfig = (paymentProvider, region, sandbox) => {
|
|
25793
26164
|
return new PaymentStation$(Network.create(this.conf), this.namespace, this.cache).fetchNsPaymentPublicconfig({
|
|
@@ -25797,19 +26168,28 @@ class PaymentApi {
|
|
|
25797
26168
|
});
|
|
25798
26169
|
};
|
|
25799
26170
|
/**
|
|
25800
|
-
*
|
|
26171
|
+
* GET [/platform/public/namespaces/{namespace}/payment/orders/{paymentOrderNo}/status](api)
|
|
26172
|
+
*
|
|
26173
|
+
* Check payment order paid status.
|
|
26174
|
+
*
|
|
26175
|
+
* Returns: Payment order paid result
|
|
25801
26176
|
*/
|
|
25802
26177
|
this.getPaymentOrderStatus = (paymentOrderNo) => {
|
|
25803
26178
|
return new PaymentStation$(Network.create(this.conf), this.namespace, this.cache).fetchNsPaymentOrdersByPaymentordernoStatus(paymentOrderNo);
|
|
25804
26179
|
};
|
|
25805
26180
|
/**
|
|
25806
|
-
* Get payment methods
|
|
26181
|
+
* Get payment methods.
|
|
26182
|
+
* Returns: Payment method list
|
|
25807
26183
|
*/
|
|
25808
26184
|
this.getPaymentMethods = (paymentOrderNo) => {
|
|
25809
26185
|
return new PaymentStation$(Network.create(this.conf), this.namespace, this.cache).fetchNsPaymentMethods({ paymentOrderNo });
|
|
25810
26186
|
};
|
|
25811
26187
|
/**
|
|
25812
|
-
*
|
|
26188
|
+
* GET [/platform/public/namespaces/{namespace}/payment/methods](api)
|
|
26189
|
+
*
|
|
26190
|
+
* Check and get a payment order's should pay tax.
|
|
26191
|
+
*
|
|
26192
|
+
* Returns: tax result
|
|
25813
26193
|
*/
|
|
25814
26194
|
this.getPaymentTax = (paymentProvider, paymentOrderNo, zipCode) => {
|
|
25815
26195
|
return new PaymentStation$(Network.create(this.conf), this.namespace, this.cache).fetchNsPaymentTax({
|
|
@@ -25819,7 +26199,11 @@ class PaymentApi {
|
|
|
25819
26199
|
});
|
|
25820
26200
|
};
|
|
25821
26201
|
/**
|
|
25822
|
-
*
|
|
26202
|
+
* POST [/platform/public/namespaces/{namespace}/payment/link](api)
|
|
26203
|
+
*
|
|
26204
|
+
* Get payment url.
|
|
26205
|
+
*
|
|
26206
|
+
* Returns: Get payment link
|
|
25823
26207
|
*/
|
|
25824
26208
|
this.createPaymentUrl = (data) => {
|
|
25825
26209
|
return new PaymentStation$(Network.create(this.conf), this.namespace, this.cache).postNsPaymentLink(data);
|
|
@@ -26075,42 +26459,73 @@ class SubscriptionApi {
|
|
|
26075
26459
|
this.conf = conf;
|
|
26076
26460
|
this.namespace = namespace;
|
|
26077
26461
|
this.cache = cache;
|
|
26078
|
-
|
|
26079
|
-
|
|
26080
|
-
|
|
26081
|
-
|
|
26082
|
-
|
|
26083
|
-
|
|
26084
|
-
|
|
26085
|
-
|
|
26086
|
-
|
|
26087
|
-
|
|
26088
|
-
|
|
26089
|
-
|
|
26090
|
-
|
|
26091
|
-
|
|
26092
|
-
|
|
26093
|
-
|
|
26094
|
-
|
|
26095
|
-
|
|
26096
|
-
|
|
26097
|
-
|
|
26098
|
-
|
|
26099
|
-
|
|
26100
|
-
|
|
26101
|
-
|
|
26102
|
-
|
|
26103
|
-
|
|
26104
|
-
|
|
26105
|
-
|
|
26106
|
-
|
|
26107
|
-
|
|
26108
|
-
|
|
26109
|
-
|
|
26110
|
-
|
|
26111
|
-
|
|
26112
|
-
|
|
26113
|
-
|
|
26462
|
+
/**
|
|
26463
|
+
* GET [/platform/public/namespaces/{namespace}/users/{userId}/subscriptions](api)
|
|
26464
|
+
*
|
|
26465
|
+
* Query user subscriptions.
|
|
26466
|
+
*
|
|
26467
|
+
* Returns: paginated subscription
|
|
26468
|
+
*/
|
|
26469
|
+
this.getUserSubscriptions = ({ userId, queryParams }) => {
|
|
26470
|
+
return this.newInstance().fetchNsUsersByUseridSubscriptions(userId, queryParams);
|
|
26471
|
+
};
|
|
26472
|
+
/**
|
|
26473
|
+
* GET [/platform/public/namespaces/{namespace}/users/{userId}/subscriptions/{subscriptionId}](api)
|
|
26474
|
+
*
|
|
26475
|
+
* Get user subscription.
|
|
26476
|
+
*
|
|
26477
|
+
* Returns: subscription
|
|
26478
|
+
*/
|
|
26479
|
+
this.getUserSubscriptionBySubscriptionId = ({ userId, subscriptionId }) => {
|
|
26480
|
+
return this.newInstance().fetchNsUsersByUseridSubscriptionsBySubscriptionid(userId, subscriptionId);
|
|
26481
|
+
};
|
|
26482
|
+
/**
|
|
26483
|
+
* POST [/platform/public/namespaces/{namespace}/users/{userId}/subscriptions](api)
|
|
26484
|
+
*
|
|
26485
|
+
* Subscribe a subscription. Support both real and virtual payment. Need go through payment flow using the paymentOrderNo if paymentFlowRequired true.
|
|
26486
|
+
* __ACTIVE USER subscription can't do subscribe again.__
|
|
26487
|
+
* __The next billing date will be X(default 4) hours before the current period ends if correctly subscribed.__
|
|
26488
|
+
* User with permission SANDBOX will create sandbox subscription that not real paid.
|
|
26489
|
+
*
|
|
26490
|
+
* Returns: created subscription
|
|
26491
|
+
*/
|
|
26492
|
+
this.createSubscription = ({ userId, data }) => {
|
|
26493
|
+
return this.newInstance().postNsUsersByUseridSubscriptions(userId, data);
|
|
26494
|
+
};
|
|
26495
|
+
/**
|
|
26496
|
+
* GET [/platform/public/namespaces/{namespace}/users/{userId}/subscriptions/{subscriptionId}/history](api)
|
|
26497
|
+
*
|
|
26498
|
+
* Get user subscription billing histories.
|
|
26499
|
+
*
|
|
26500
|
+
* Returns: paginated subscription history
|
|
26501
|
+
*/
|
|
26502
|
+
this.getUserSubscriptionBillingHistory = ({ userId, subscriptionId, queryParams }) => {
|
|
26503
|
+
return this.newInstance().fetchNsUsersByUseridSubscriptionsBySubscriptionidHistory(userId, subscriptionId, queryParams);
|
|
26504
|
+
};
|
|
26505
|
+
/**
|
|
26506
|
+
* PUT [/platform/public/namespaces/{namespace}/users/{userId}/subscriptions/{subscriptionId}/billingAccount](api)
|
|
26507
|
+
*
|
|
26508
|
+
* Request to change a subscription billing account, this will guide user to payment station.
|
|
26509
|
+
* The actual change will happen at the 0 payment notification successfully handled.
|
|
26510
|
+
* Only ACTIVE USER subscription with real currency billing account can be changed.
|
|
26511
|
+
*
|
|
26512
|
+
* Returns: updated subscription
|
|
26513
|
+
*/
|
|
26514
|
+
this.updateUserSubscriptionPaymentMethod = ({ userId, subscriptionId }) => {
|
|
26515
|
+
return this.newInstance().putNsUsersByUseridSubscriptionsBySubscriptionidBillingAccount(userId, subscriptionId);
|
|
26516
|
+
};
|
|
26517
|
+
/**
|
|
26518
|
+
* PUT [/platform/public/namespaces/{namespace}/users/{userId}/subscriptions/{subscriptionId}/cancel](api)
|
|
26519
|
+
*
|
|
26520
|
+
* Cancel a subscription, only ACTIVE subscription can be cancelled.
|
|
26521
|
+
* __Ensure successfully cancel, recommend at least 1 day before current period ends, otherwise it may be charging or charged.__
|
|
26522
|
+
* Set immediate true, the subscription will be terminated immediately, otherwise till the end of current billing cycle.
|
|
26523
|
+
*
|
|
26524
|
+
* Returns: cancelled subscription
|
|
26525
|
+
*/
|
|
26526
|
+
this.cancelUserSubscription = ({ userId, subscriptionId, data }) => {
|
|
26527
|
+
return this.newInstance().putNsUsersByUseridSubscriptionsBySubscriptionidCancel(userId, subscriptionId, data);
|
|
26528
|
+
};
|
|
26114
26529
|
}
|
|
26115
26530
|
newInstance() {
|
|
26116
26531
|
return new Subscription$(Network.create(this.conf), this.namespace, this.cache);
|
|
@@ -26277,19 +26692,32 @@ class WalletApi {
|
|
|
26277
26692
|
this.namespace = namespace;
|
|
26278
26693
|
this.cache = cache;
|
|
26279
26694
|
/**
|
|
26280
|
-
*
|
|
26695
|
+
* GET [/platform/public/namespaces/{namespace}/users/me/wallets/{currencyCode}](api)
|
|
26696
|
+
*
|
|
26697
|
+
* get my wallet by currency code and namespace.
|
|
26698
|
+
*
|
|
26699
|
+
* Returns: wallet info
|
|
26700
|
+
*
|
|
26701
|
+
* Path's namespace:
|
|
26702
|
+
* - can be filled with __publisher namespace__ in order to get __publisher user wallet__
|
|
26703
|
+
* - can be filled with __game namespace__ in order to get __game user wallet__
|
|
26281
26704
|
*/
|
|
26282
26705
|
this.getUserMeWallet = (currencyCode) => {
|
|
26283
26706
|
return this.newInstance().fetchNsUsersMeWalletsByCurrencycode(currencyCode);
|
|
26284
26707
|
};
|
|
26285
26708
|
/**
|
|
26286
|
-
*
|
|
26709
|
+
* GET [/platform/public/namespaces/{namespace}/users/{userId}/wallets/{currencyCode}](api)
|
|
26710
|
+
*
|
|
26711
|
+
* Get a wallet by currency code.
|
|
26712
|
+
*
|
|
26713
|
+
* Returns: wallet info
|
|
26287
26714
|
*/
|
|
26288
26715
|
this.getWalletByUserId = (userId, currencyCode) => {
|
|
26289
26716
|
return this.newInstance().fetchNsUsersByUseridWalletsByCurrencycode(userId, currencyCode);
|
|
26290
26717
|
};
|
|
26291
26718
|
/**
|
|
26292
26719
|
* get a map of wallet represented by its currency code
|
|
26720
|
+
* @internal
|
|
26293
26721
|
*/
|
|
26294
26722
|
this.getWalletMap = async ({ userId, currencyCodes }) => {
|
|
26295
26723
|
try {
|
|
@@ -26319,7 +26747,7 @@ class WalletApi {
|
|
|
26319
26747
|
class ApiFactory {
|
|
26320
26748
|
static userAuthorization(config, options, refreshToken, namespace, overrides) {
|
|
26321
26749
|
const conf = ApiFactory.mergedConfigs(config, overrides);
|
|
26322
|
-
return new
|
|
26750
|
+
return new UserAuthorizationApi(conf, namespace, false, {
|
|
26323
26751
|
clientId: options.clientId,
|
|
26324
26752
|
redirectURI: options.redirectURI,
|
|
26325
26753
|
baseURL: options.baseURL,
|
|
@@ -26480,7 +26908,93 @@ const injectErrorInterceptors = (baseUrl, onUserEligibilityChange, onError) => {
|
|
|
26480
26908
|
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};
|
|
26481
26909
|
|
|
26482
26910
|
/*
|
|
26483
|
-
* Copyright (c)
|
|
26911
|
+
* Copyright (c) 2023 AccelByte Inc. All Rights Reserved
|
|
26912
|
+
* This is licensed software from AccelByte Inc, for limitations
|
|
26913
|
+
* and restrictions contact your company contract manager.
|
|
26914
|
+
*/
|
|
26915
|
+
var BasicVersion = {
|
|
26916
|
+
title: '-',
|
|
26917
|
+
name: 'justice-basic-service',
|
|
26918
|
+
version: '2.6.0',
|
|
26919
|
+
buildDate: '2023-02-21T23:52:43.996Z'
|
|
26920
|
+
};
|
|
26921
|
+
|
|
26922
|
+
/*
|
|
26923
|
+
* Copyright (c) 2023 AccelByte Inc. All Rights Reserved
|
|
26924
|
+
* This is licensed software from AccelByte Inc, for limitations
|
|
26925
|
+
* and restrictions contact your company contract manager.
|
|
26926
|
+
*/
|
|
26927
|
+
var BuildinfoVersion = {
|
|
26928
|
+
title: '-',
|
|
26929
|
+
name: 'justice-buildinfo-service',
|
|
26930
|
+
version: '3.28.2',
|
|
26931
|
+
buildDate: '2023-02-21T23:52:43.996Z'
|
|
26932
|
+
};
|
|
26933
|
+
|
|
26934
|
+
/*
|
|
26935
|
+
* Copyright (c) 2023 AccelByte Inc. All Rights Reserved
|
|
26936
|
+
* This is licensed software from AccelByte Inc, for limitations
|
|
26937
|
+
* and restrictions contact your company contract manager.
|
|
26938
|
+
*/
|
|
26939
|
+
var EventVersion = {
|
|
26940
|
+
title: '-',
|
|
26941
|
+
name: 'justice-event-log-service',
|
|
26942
|
+
version: undefined,
|
|
26943
|
+
buildDate: '2023-02-21T23:52:43.996Z'
|
|
26944
|
+
};
|
|
26945
|
+
|
|
26946
|
+
/*
|
|
26947
|
+
* Copyright (c) 2023 AccelByte Inc. All Rights Reserved
|
|
26948
|
+
* This is licensed software from AccelByte Inc, for limitations
|
|
26949
|
+
* and restrictions contact your company contract manager.
|
|
26950
|
+
*/
|
|
26951
|
+
var GdprVersion = {
|
|
26952
|
+
title: '-',
|
|
26953
|
+
name: 'justice-gdpr-service',
|
|
26954
|
+
version: '1.19.1',
|
|
26955
|
+
buildDate: '2023-02-21T23:52:43.996Z'
|
|
26956
|
+
};
|
|
26957
|
+
|
|
26958
|
+
/*
|
|
26959
|
+
* Copyright (c) 2023 AccelByte Inc. All Rights Reserved
|
|
26960
|
+
* This is licensed software from AccelByte Inc, for limitations
|
|
26961
|
+
* and restrictions contact your company contract manager.
|
|
26962
|
+
*/
|
|
26963
|
+
var IamVersion = {
|
|
26964
|
+
title: '-',
|
|
26965
|
+
name: 'justice-iam-service',
|
|
26966
|
+
version: '5.28.0',
|
|
26967
|
+
buildDate: '2023-02-21T23:52:43.996Z'
|
|
26968
|
+
};
|
|
26969
|
+
|
|
26970
|
+
/*
|
|
26971
|
+
* Copyright (c) 2023 AccelByte Inc. All Rights Reserved
|
|
26972
|
+
* This is licensed software from AccelByte Inc, for limitations
|
|
26973
|
+
* and restrictions contact your company contract manager.
|
|
26974
|
+
*/
|
|
26975
|
+
var LegalVersion = {
|
|
26976
|
+
title: '-',
|
|
26977
|
+
name: 'justice-legal-service',
|
|
26978
|
+
version: '1.27.0',
|
|
26979
|
+
buildDate: '2023-02-21T23:52:43.996Z'
|
|
26980
|
+
};
|
|
26981
|
+
|
|
26982
|
+
/*
|
|
26983
|
+
* Copyright (c) 2023 AccelByte Inc. All Rights Reserved
|
|
26984
|
+
* This is licensed software from AccelByte Inc, for limitations
|
|
26985
|
+
* and restrictions contact your company contract manager.
|
|
26986
|
+
*/
|
|
26987
|
+
var OdinConfigVersion = { title: '-', name: 'config-service-app', version: 'dev', buildDate: '2023-02-21T23:43:05.354Z' };
|
|
26988
|
+
|
|
26989
|
+
/*
|
|
26990
|
+
* Copyright (c) 2023 AccelByte Inc. All Rights Reserved
|
|
26991
|
+
* This is licensed software from AccelByte Inc, for limitations
|
|
26992
|
+
* and restrictions contact your company contract manager.
|
|
26993
|
+
*/
|
|
26994
|
+
var PlatformVersion = { title: '-', name: 'justice-platform-service', version: '4.24.0', buildDate: '2023-02-21T23:43:05.402Z' };
|
|
26995
|
+
|
|
26996
|
+
/*
|
|
26997
|
+
* Copyright (c) 2022-2023 AccelByte Inc. All Rights Reserved
|
|
26484
26998
|
* This is licensed software from AccelByte Inc, for limitations
|
|
26485
26999
|
* and restrictions contact your company contract manager.
|
|
26486
27000
|
*/
|
|
@@ -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,23 +27095,47 @@ 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);
|
|
27134
|
+
console.log('-- current ver', IamVersion);
|
|
27135
|
+
})
|
|
27136
|
+
.catch(err => {
|
|
27137
|
+
console.log('-- axiosInstance err', err);
|
|
27138
|
+
});
|
|
26598
27139
|
}
|
|
26599
27140
|
};
|
|
26600
27141
|
}
|
|
@@ -39406,7 +39947,7 @@ const PageConfig = mod.object({
|
|
|
39406
39947
|
});
|
|
39407
39948
|
|
|
39408
39949
|
/*
|
|
39409
|
-
* Copyright (c) 2022 AccelByte Inc. All Rights Reserved
|
|
39950
|
+
* Copyright (c) 2022-2023 AccelByte Inc. All Rights Reserved
|
|
39410
39951
|
* This is licensed software from AccelByte Inc, for limitations
|
|
39411
39952
|
* and restrictions contact your company contract manager.
|
|
39412
39953
|
*/
|
|
@@ -39765,5 +40306,5 @@ CodeGenUtil.getFormUrlEncodedData = (data) => {
|
|
|
39765
40306
|
return formPayload;
|
|
39766
40307
|
};
|
|
39767
40308
|
|
|
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 };
|
|
40309
|
+
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$, 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, 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
40310
|
//# sourceMappingURL=index.node.es.js.map
|