@accelbyte/sdk 0.2.0-beta.1 → 0.2.0-beta.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +24 -0
- package/README.md +5 -5
- package/dist/index.browser.es.js +1239 -703
- package/dist/index.browser.es.js.map +1 -1
- package/dist/index.d.ts +51885 -51681
- package/dist/index.node.es.js +1239 -703
- package/dist/index.node.es.js.map +1 -1
- package/dist/index.node.js +1240 -703
- 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/index.mjs +30 -26
- 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.browser.es.js
CHANGED
|
@@ -5980,7 +5980,10 @@ class FileUploadApi {
|
|
|
5980
5980
|
this.conf = conf;
|
|
5981
5981
|
this.namespace = namespace;
|
|
5982
5982
|
/**
|
|
5983
|
-
*
|
|
5983
|
+
* POST [/basic/v1/public/namespaces/{namespace}/folders/{folder}/files](api)
|
|
5984
|
+
*
|
|
5985
|
+
* Generate an upload URL. It's valid for 10 minutes.
|
|
5986
|
+
* Returns: URL data
|
|
5984
5987
|
*/
|
|
5985
5988
|
this.generateFolderUploadFileUrl = ({ folder, queryParams }) => {
|
|
5986
5989
|
return this.newInstance().postV1NsFoldersByFolderFiles(folder, queryParams);
|
|
@@ -6101,11 +6104,18 @@ class MiscApi {
|
|
|
6101
6104
|
this.namespace = namespace;
|
|
6102
6105
|
this.cache = cache;
|
|
6103
6106
|
/**
|
|
6104
|
-
*
|
|
6107
|
+
* GET [/basic/v1/public/namespaces/{namespace}/misc/countries](api)
|
|
6108
|
+
*
|
|
6109
|
+
* _Returns_: country code list
|
|
6105
6110
|
*/
|
|
6106
6111
|
this.getCountries = (lang) => {
|
|
6107
6112
|
return this.newInstance().fetchV1NsMiscCountries({ lang });
|
|
6108
6113
|
};
|
|
6114
|
+
/**
|
|
6115
|
+
* GET [/basic/v1/public/namespaces/{namespace}/misc/languages](api)
|
|
6116
|
+
*
|
|
6117
|
+
* _Returns_: language list
|
|
6118
|
+
*/
|
|
6109
6119
|
this.getLanguages = () => {
|
|
6110
6120
|
return this.newInstance().fetchV1NsMiscLanguages();
|
|
6111
6121
|
};
|
|
@@ -6195,7 +6205,13 @@ class NamespaceApi {
|
|
|
6195
6205
|
this.namespace = namespace;
|
|
6196
6206
|
this.cache = cache;
|
|
6197
6207
|
/**
|
|
6198
|
-
*
|
|
6208
|
+
* GET [/basic/v1/public/namespaces](api)
|
|
6209
|
+
*
|
|
6210
|
+
* Get all namespaces.
|
|
6211
|
+
*
|
|
6212
|
+
* - _Required permission_: login user
|
|
6213
|
+
* - _Action code_: 11303
|
|
6214
|
+
* - _Returns_: list of namespaces
|
|
6199
6215
|
*/
|
|
6200
6216
|
this.getNamespaces = (activeOnly) => {
|
|
6201
6217
|
return this.newInstance().fetchV1PublicNamespaces({ activeOnly });
|
|
@@ -6502,25 +6518,39 @@ class UserProfileApi {
|
|
|
6502
6518
|
this.namespace = namespace;
|
|
6503
6519
|
this.cache = cache;
|
|
6504
6520
|
/**
|
|
6505
|
-
*
|
|
6521
|
+
* GET [/basic/v1/public/namespaces/{namespace}/users/me/profiles](api)
|
|
6522
|
+
*
|
|
6523
|
+
* Get my profile
|
|
6524
|
+
*
|
|
6525
|
+
* __Client with user token can get user profile in target namespace__
|
|
6506
6526
|
*/
|
|
6507
6527
|
this.getUsersMeProfiles = () => {
|
|
6508
6528
|
return this.newInstance().fetchV1NsUsersMeProfiles();
|
|
6509
6529
|
};
|
|
6510
6530
|
/**
|
|
6511
|
-
*
|
|
6531
|
+
* POST [/basic/v1/public/namespaces/{namespace}/users/me/profiles](api)
|
|
6532
|
+
*
|
|
6533
|
+
* Create my profile.
|
|
6534
|
+
*
|
|
6535
|
+
* __Client with user token can create user profile in target namespace__
|
|
6512
6536
|
*/
|
|
6513
6537
|
this.createUserMeProfile = (data) => {
|
|
6514
6538
|
return this.newInstance().postV1NsUsersMeProfiles(data);
|
|
6515
6539
|
};
|
|
6516
6540
|
/**
|
|
6517
|
-
*
|
|
6541
|
+
* PUT [/basic/v1/public/namespaces/{namespace}/users/me/profiles](api)
|
|
6542
|
+
*
|
|
6543
|
+
* Update my profile.
|
|
6544
|
+
* 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.
|
|
6518
6545
|
*/
|
|
6519
6546
|
this.updateUserMeProfile = (data) => {
|
|
6520
6547
|
return this.newInstance().putV1NsUsersMeProfiles(data);
|
|
6521
6548
|
};
|
|
6522
6549
|
/**
|
|
6523
|
-
*
|
|
6550
|
+
* PUT [/basic/v1/public/namespaces/{namespace}/users/{userId}/profiles/customAttributes](api)
|
|
6551
|
+
*
|
|
6552
|
+
* Update partially custom attributes tied to user id.
|
|
6553
|
+
* _Returns_: Updated custom attributes
|
|
6524
6554
|
*/
|
|
6525
6555
|
this.updateUserCustomAttributes = (userId, data) => {
|
|
6526
6556
|
return this.newInstance().putV1NsUsersByUseridProfilesCustomAttributes(userId, data);
|
|
@@ -6587,12 +6617,17 @@ class CachingApi {
|
|
|
6587
6617
|
constructor(conf, namespace) {
|
|
6588
6618
|
this.conf = conf;
|
|
6589
6619
|
this.namespace = namespace;
|
|
6590
|
-
|
|
6591
|
-
|
|
6592
|
-
|
|
6593
|
-
|
|
6594
|
-
|
|
6595
|
-
|
|
6620
|
+
/**
|
|
6621
|
+
* GET [/buildinfo/public/namespaces/{namespace}/diff/cache/source/{sourceBuildId}/dest/{destinationBuildId}](api)
|
|
6622
|
+
*
|
|
6623
|
+
* This API is used to retrieve detailed diff cache.
|
|
6624
|
+
* The response will contains list of diff cache files along with its download url.
|
|
6625
|
+
*
|
|
6626
|
+
* _Required permission_: login user
|
|
6627
|
+
*/
|
|
6628
|
+
this.getDiffCache = (sourceBuildId, destinationBuildId) => {
|
|
6629
|
+
return this.newInstance().fetchNsDiffCacheSourceBySourcebuildidDestByDestinationbuildid(sourceBuildId, destinationBuildId);
|
|
6630
|
+
};
|
|
6596
6631
|
}
|
|
6597
6632
|
newInstance() {
|
|
6598
6633
|
// this is expensive to cache, apply "cache: false"
|
|
@@ -6766,18 +6801,26 @@ class DlcApi {
|
|
|
6766
6801
|
constructor(conf, namespace) {
|
|
6767
6802
|
this.conf = conf;
|
|
6768
6803
|
this.namespace = namespace;
|
|
6769
|
-
|
|
6770
|
-
|
|
6771
|
-
|
|
6772
|
-
|
|
6773
|
-
|
|
6774
|
-
|
|
6775
|
-
|
|
6776
|
-
|
|
6777
|
-
|
|
6778
|
-
|
|
6779
|
-
|
|
6780
|
-
|
|
6804
|
+
/**
|
|
6805
|
+
* GET [/buildinfo/public/namespaces/{namespace}/dlcs/latest/byGameAppId/{appId}](api)
|
|
6806
|
+
*
|
|
6807
|
+
* Retrieve the list of DLC available on specific game. Use game's appId to query.
|
|
6808
|
+
*
|
|
6809
|
+
* _Returns_: list of DLC
|
|
6810
|
+
*/
|
|
6811
|
+
this.getLatestDLCByGameAppId = (appId) => {
|
|
6812
|
+
return this.newInstance().fetchNsDlcsLatestByGameAppIdByAppid(appId);
|
|
6813
|
+
};
|
|
6814
|
+
/**
|
|
6815
|
+
* GET [/buildinfo/public/namespaces/{namespace}/apps/latest/byDLCAppId/{dlcAppId}](api)
|
|
6816
|
+
*
|
|
6817
|
+
* Retrieve the list of DLC available on specific game. Use DLC's appId to query.
|
|
6818
|
+
*
|
|
6819
|
+
* _Returns_: appId of game and list of its builds by platformId
|
|
6820
|
+
*/
|
|
6821
|
+
this.getBaseGamesByDlcAppId = (dlcAppId) => {
|
|
6822
|
+
return this.newInstance().fetchNsAppsLatestByDlcAppIdByDlcappid(dlcAppId);
|
|
6823
|
+
};
|
|
6781
6824
|
}
|
|
6782
6825
|
newInstance() {
|
|
6783
6826
|
// this is be expensive to cache, apply "cache: false"
|
|
@@ -6786,7 +6829,7 @@ class DlcApi {
|
|
|
6786
6829
|
}
|
|
6787
6830
|
|
|
6788
6831
|
/*
|
|
6789
|
-
* Copyright (c) 2022 AccelByte Inc. All Rights Reserved
|
|
6832
|
+
* Copyright (c) 2022-2023 AccelByte Inc. All Rights Reserved
|
|
6790
6833
|
* This is licensed software from AccelByte Inc, for limitations
|
|
6791
6834
|
* and restrictions contact your company contract manager.
|
|
6792
6835
|
*/
|
|
@@ -6828,12 +6871,7 @@ const AvailablePlatform = [
|
|
|
6828
6871
|
arch: [ARCH.X64],
|
|
6829
6872
|
targetPlatform: [BUILDINFO_PLATFORM_ID.WIN64, BUILDINFO_PLATFORM_ID.WINDOWS, BUILDINFO_PLATFORM_ID.WIN32]
|
|
6830
6873
|
}
|
|
6831
|
-
];
|
|
6832
|
-
var LogLevel;
|
|
6833
|
-
(function (LogLevel) {
|
|
6834
|
-
LogLevel["DEBUG"] = "DEBUG";
|
|
6835
|
-
LogLevel["INFO"] = "INFO";
|
|
6836
|
-
})(LogLevel || (LogLevel = {}));
|
|
6874
|
+
];
|
|
6837
6875
|
|
|
6838
6876
|
/*
|
|
6839
6877
|
* Copyright (c) 2022-2023 AccelByte Inc. All Rights Reserved
|
|
@@ -7144,56 +7182,76 @@ class DownloaderApi {
|
|
|
7144
7182
|
constructor(conf, namespace) {
|
|
7145
7183
|
this.conf = conf;
|
|
7146
7184
|
this.namespace = namespace;
|
|
7147
|
-
|
|
7148
|
-
|
|
7149
|
-
|
|
7150
|
-
|
|
7151
|
-
|
|
7152
|
-
|
|
7153
|
-
|
|
7154
|
-
|
|
7155
|
-
|
|
7156
|
-
|
|
7157
|
-
|
|
7158
|
-
|
|
7159
|
-
|
|
7160
|
-
|
|
7161
|
-
|
|
7162
|
-
|
|
7163
|
-
|
|
7164
|
-
|
|
7165
|
-
|
|
7166
|
-
|
|
7167
|
-
|
|
7168
|
-
|
|
7169
|
-
|
|
7170
|
-
|
|
7171
|
-
|
|
7172
|
-
|
|
7173
|
-
|
|
7174
|
-
|
|
7185
|
+
/**
|
|
7186
|
+
* GET [/buildinfo/public/namespaces/{namespace}/availablebuilds/{appId}](api)
|
|
7187
|
+
*
|
|
7188
|
+
* This API is used to get simple build manifest that contains list of current build in various platform.
|
|
7189
|
+
*
|
|
7190
|
+
* - _Required permission_: login user
|
|
7191
|
+
* - _Returns_: build manifest
|
|
7192
|
+
*/
|
|
7193
|
+
this.getAvailableBuilds = (appId) => {
|
|
7194
|
+
return this.newInstance().fetchNsAvailablebuildsByAppid(appId);
|
|
7195
|
+
};
|
|
7196
|
+
/**
|
|
7197
|
+
* GET [/buildinfo/public/namespaces/{namespace}/v2/updategame/{appId}/{platformId}](api)
|
|
7198
|
+
*
|
|
7199
|
+
* This API is used to get build manifest of release version of the application.
|
|
7200
|
+
*
|
|
7201
|
+
* - _Required permission_: login user
|
|
7202
|
+
* - _Returns_: build manifest
|
|
7203
|
+
*/
|
|
7204
|
+
this.getBuildManifest = (appId, platformId) => {
|
|
7205
|
+
const axios = Network.create({ ...this.conf, timeout: 1800000 });
|
|
7206
|
+
return new Downloader$(axios, this.namespace, false).fetchNsV2UpdategameByAppidByPlatformid(appId, platformId);
|
|
7207
|
+
};
|
|
7208
|
+
/**
|
|
7209
|
+
* GET [/buildinfo/public/namespaces/{namespace}/diff/cache/source/{sourceBuildId}/dest/{destinationBuildId}](api)
|
|
7210
|
+
*
|
|
7211
|
+
* This API is used to retrieve detailed diff cache.
|
|
7212
|
+
* The response will contains list of diff cache files along with its download url.
|
|
7213
|
+
*
|
|
7214
|
+
* - _Required permission_: login user
|
|
7215
|
+
*/
|
|
7216
|
+
this.getDiffCache = (sourceBuildId, destinationBuildId) => {
|
|
7217
|
+
return new Caching$(Network.create(this.conf), this.namespace, false).fetchNsDiffCacheSourceBySourcebuildidDestByDestinationbuildid(sourceBuildId, destinationBuildId);
|
|
7218
|
+
};
|
|
7219
|
+
/**
|
|
7220
|
+
* Check which platform is available for the user to download the game
|
|
7221
|
+
*
|
|
7222
|
+
* @internal
|
|
7223
|
+
*/
|
|
7224
|
+
this.getMatchPlatform = ({ buildsAvailability, userPlatform }) => {
|
|
7225
|
+
const availablePlatformID = new Set();
|
|
7226
|
+
for (const buildAvailability of buildsAvailability) {
|
|
7227
|
+
if (buildAvailability.platformId) {
|
|
7228
|
+
availablePlatformID.add(buildAvailability.platformId);
|
|
7229
|
+
}
|
|
7175
7230
|
}
|
|
7176
|
-
|
|
7177
|
-
|
|
7178
|
-
|
|
7179
|
-
|
|
7180
|
-
|
|
7181
|
-
|
|
7231
|
+
const currentMatchPlatform = this.getCurrentPlatform(userPlatform);
|
|
7232
|
+
if (currentMatchPlatform) {
|
|
7233
|
+
for (const key in currentMatchPlatform.targetPlatform) {
|
|
7234
|
+
if (availablePlatformID.has(currentMatchPlatform.targetPlatform[key])) {
|
|
7235
|
+
return currentMatchPlatform.targetPlatform[key];
|
|
7236
|
+
}
|
|
7182
7237
|
}
|
|
7183
7238
|
}
|
|
7184
|
-
|
|
7185
|
-
|
|
7239
|
+
return null;
|
|
7240
|
+
};
|
|
7241
|
+
/**
|
|
7242
|
+
* @internal
|
|
7243
|
+
*/
|
|
7244
|
+
this.getCurrentPlatform = (userPlatform) => {
|
|
7245
|
+
const devicePlatform = userPlatform.platform;
|
|
7246
|
+
const deviceArch = userPlatform.arch;
|
|
7247
|
+
const currentPlatform = AvailablePlatform.find((platform) => platform.platform === devicePlatform && platform.arch.includes(deviceArch));
|
|
7248
|
+
return currentPlatform;
|
|
7249
|
+
};
|
|
7186
7250
|
}
|
|
7187
7251
|
newInstance() {
|
|
7188
7252
|
// this is be expensive to cache, apply "cache: false"
|
|
7189
7253
|
return new Downloader$(Network.create(this.conf), this.namespace, false);
|
|
7190
7254
|
}
|
|
7191
|
-
getCurrentPlatform(userPlatform) {
|
|
7192
|
-
const devicePlatform = userPlatform.platform;
|
|
7193
|
-
const deviceArch = userPlatform.arch;
|
|
7194
|
-
const currentPlatform = AvailablePlatform.find((platform) => platform.platform === devicePlatform && platform.arch.includes(deviceArch));
|
|
7195
|
-
return currentPlatform;
|
|
7196
|
-
}
|
|
7197
7255
|
}
|
|
7198
7256
|
|
|
7199
7257
|
/*
|
|
@@ -7297,16 +7355,17 @@ class EventApi {
|
|
|
7297
7355
|
this.namespace = namespace;
|
|
7298
7356
|
this.cache = cache;
|
|
7299
7357
|
/**
|
|
7300
|
-
*
|
|
7301
|
-
*
|
|
7302
|
-
*
|
|
7303
|
-
*
|
|
7304
|
-
*
|
|
7305
|
-
*
|
|
7306
|
-
*
|
|
7307
|
-
*
|
|
7308
|
-
*
|
|
7309
|
-
*
|
|
7358
|
+
* GET [/event/v2/public/namespaces/{namespace}/users/{userId}/edithistory](api)
|
|
7359
|
+
*
|
|
7360
|
+
* Available Type:
|
|
7361
|
+
* - email
|
|
7362
|
+
* - password
|
|
7363
|
+
* - displayname
|
|
7364
|
+
* - dateofbirth
|
|
7365
|
+
* - country
|
|
7366
|
+
* - language
|
|
7367
|
+
*
|
|
7368
|
+
* _Requires a valid user access token_
|
|
7310
7369
|
*/
|
|
7311
7370
|
this.getAccountHistoryByUserId = ({ userId, queryParams }) => {
|
|
7312
7371
|
return this.newInstance().fetchEventV2NsUsersByUseridEdithistory(userId, queryParams);
|
|
@@ -7400,27 +7459,36 @@ class DataDeletionApi {
|
|
|
7400
7459
|
this.conf = conf;
|
|
7401
7460
|
this.namespace = namespace;
|
|
7402
7461
|
this.cache = cache;
|
|
7403
|
-
|
|
7404
|
-
|
|
7405
|
-
|
|
7406
|
-
|
|
7407
|
-
|
|
7408
|
-
|
|
7409
|
-
|
|
7410
|
-
|
|
7411
|
-
|
|
7412
|
-
|
|
7413
|
-
|
|
7414
|
-
|
|
7415
|
-
|
|
7416
|
-
|
|
7417
|
-
|
|
7418
|
-
|
|
7419
|
-
|
|
7420
|
-
|
|
7421
|
-
|
|
7422
|
-
|
|
7423
|
-
|
|
7462
|
+
/**
|
|
7463
|
+
* GET [/gdpr/public/namespaces/{namespace}/users/{userId}/deletions/status](api)
|
|
7464
|
+
*
|
|
7465
|
+
* Fetch the status to check whether or not a user's account is on a deletion status
|
|
7466
|
+
*
|
|
7467
|
+
* _Requires a valid user access token_
|
|
7468
|
+
*/
|
|
7469
|
+
this.getGdprDeletionStatus = (userId) => {
|
|
7470
|
+
return this.newInstance().fetchGdprNsUsersByUseridDeletionsStatus(userId);
|
|
7471
|
+
};
|
|
7472
|
+
/**
|
|
7473
|
+
* POST [/gdpr/public/namespaces/{namespace}/users/{userId}/deletions](api)
|
|
7474
|
+
*
|
|
7475
|
+
* Request an account's deletion
|
|
7476
|
+
*
|
|
7477
|
+
* _Requires a valid user access token and password_
|
|
7478
|
+
*/
|
|
7479
|
+
this.requestAccountDeletion = ({ userId, data }) => {
|
|
7480
|
+
return this.newInstance().postGdprNsUsersByUseridDeletions(userId, data);
|
|
7481
|
+
};
|
|
7482
|
+
/**
|
|
7483
|
+
* DELETE [/gdpr/public/namespaces/{namespace}/users/{userId}/deletions](api)
|
|
7484
|
+
*
|
|
7485
|
+
* Cancel a deletion request
|
|
7486
|
+
*
|
|
7487
|
+
* _Requires a valid user access token_
|
|
7488
|
+
*/
|
|
7489
|
+
this.cancelAccountDeletion = (userId) => {
|
|
7490
|
+
return this.newInstance().deleteGdprNsUsersByUseridDeletions(userId);
|
|
7491
|
+
};
|
|
7424
7492
|
}
|
|
7425
7493
|
newInstance() {
|
|
7426
7494
|
return new DataDeletion$(Network.create(this.conf), this.namespace, this.cache);
|
|
@@ -7541,34 +7609,46 @@ class DataRetrievalApi {
|
|
|
7541
7609
|
this.conf = conf;
|
|
7542
7610
|
this.namespace = namespace;
|
|
7543
7611
|
this.cache = cache;
|
|
7544
|
-
|
|
7545
|
-
|
|
7546
|
-
|
|
7547
|
-
|
|
7548
|
-
|
|
7549
|
-
|
|
7550
|
-
|
|
7551
|
-
|
|
7552
|
-
|
|
7553
|
-
|
|
7554
|
-
|
|
7555
|
-
|
|
7556
|
-
|
|
7557
|
-
|
|
7558
|
-
|
|
7559
|
-
|
|
7560
|
-
|
|
7561
|
-
|
|
7562
|
-
|
|
7563
|
-
|
|
7564
|
-
|
|
7565
|
-
|
|
7566
|
-
|
|
7567
|
-
|
|
7568
|
-
|
|
7569
|
-
|
|
7570
|
-
|
|
7571
|
-
|
|
7612
|
+
/**
|
|
7613
|
+
* GET [/gdpr/public/namespaces/{namespace}/users/{userId}/requests](api)
|
|
7614
|
+
*
|
|
7615
|
+
* Fetch personal data request list
|
|
7616
|
+
*
|
|
7617
|
+
* _Requires a valid user access token_
|
|
7618
|
+
*/
|
|
7619
|
+
this.getGdprDataRequestList = ({ userId, queryParams }) => {
|
|
7620
|
+
return this.newInstance().fetchGdprNsUsersByUseridRequests(userId, queryParams);
|
|
7621
|
+
};
|
|
7622
|
+
/**
|
|
7623
|
+
* POST [/gdpr/public/namespaces/{namespace}/users/{userId}/requests](api)
|
|
7624
|
+
*
|
|
7625
|
+
* Create a request for personal data download
|
|
7626
|
+
*
|
|
7627
|
+
* _Requires a valid user access token_
|
|
7628
|
+
*/
|
|
7629
|
+
this.requestGdprData = ({ userId, data }) => {
|
|
7630
|
+
return this.newInstance().postGdprNsUsersByUseridRequests(userId, data);
|
|
7631
|
+
};
|
|
7632
|
+
/**
|
|
7633
|
+
* DELETE [/gdpr/public/namespaces/{namespace}/users/{userId}/requests/{requestDate}](api)
|
|
7634
|
+
*
|
|
7635
|
+
* Cancel the request for personal data download
|
|
7636
|
+
*
|
|
7637
|
+
* _Requires a valid user access token_
|
|
7638
|
+
*/
|
|
7639
|
+
this.cancelGdprDataRequest = ({ userId, requestDate }) => {
|
|
7640
|
+
return this.newInstance().deleteGdprNsUsersByUseridRequestsByRequestdate(userId, requestDate);
|
|
7641
|
+
};
|
|
7642
|
+
/**
|
|
7643
|
+
* POST [/gdpr/public/namespaces/{namespace}/users/{userId}/requests/{requestDate}/generate](api)
|
|
7644
|
+
*
|
|
7645
|
+
* Create a download URL for personal data request
|
|
7646
|
+
*
|
|
7647
|
+
* _Requires a valid user access token_
|
|
7648
|
+
*/
|
|
7649
|
+
this.requestGdprDataDownloadUrl = ({ userId, requestDate, data }) => {
|
|
7650
|
+
return this.newInstance().postGdprNsUsersByUseridRequestsByRequestdateGenerate(userId, requestDate, data);
|
|
7651
|
+
};
|
|
7572
7652
|
}
|
|
7573
7653
|
newInstance() {
|
|
7574
7654
|
return new DataRetrieval$(Network.create(this.conf), this.namespace, this.cache);
|
|
@@ -7661,10 +7741,11 @@ class InputValidationsApi {
|
|
|
7661
7741
|
this.namespace = namespace;
|
|
7662
7742
|
this.cache = cache;
|
|
7663
7743
|
/**
|
|
7664
|
-
*
|
|
7665
|
-
* <p>This method is to get list of input validation configuration.</p>
|
|
7666
|
-
* <p><code>regex</code> parameter will be returned if <code>isCustomRegex</code> is true. Otherwise, it will be empty.</p>
|
|
7744
|
+
* GET [/iam/v3/public/inputValidations](api)
|
|
7667
7745
|
*
|
|
7746
|
+
* No role required
|
|
7747
|
+
* This method is to get list of input validation configuration.
|
|
7748
|
+
* `regex` parameter will be returned if `isCustomRegex` is true. Otherwise, it will be empty.
|
|
7668
7749
|
*/
|
|
7669
7750
|
this.getValidations = (languageCode, defaultOnEmpty) => {
|
|
7670
7751
|
const queryParams = { languageCode, defaultOnEmpty };
|
|
@@ -8539,7 +8620,7 @@ const uponRefreshComplete = (error, tokenResponse, onGetUserSession, onSessionEx
|
|
|
8539
8620
|
};
|
|
8540
8621
|
|
|
8541
8622
|
/*
|
|
8542
|
-
* Copyright (c) 2022 AccelByte Inc. All Rights Reserved
|
|
8623
|
+
* Copyright (c) 2022-2023 AccelByte Inc. All Rights Reserved
|
|
8543
8624
|
* This is licensed software from AccelByte Inc, for limitations
|
|
8544
8625
|
* and restrictions contact your company contract manager.
|
|
8545
8626
|
*/
|
|
@@ -15259,7 +15340,7 @@ var rabbitLegacy = {exports: {}};
|
|
|
15259
15340
|
var cryptoJs = cryptoJs$1.exports;
|
|
15260
15341
|
|
|
15261
15342
|
/*
|
|
15262
|
-
* Copyright (c) 2022 AccelByte Inc. All Rights Reserved
|
|
15343
|
+
* Copyright (c) 2022-2023 AccelByte Inc. All Rights Reserved
|
|
15263
15344
|
* This is licensed software from AccelByte Inc, for limitations
|
|
15264
15345
|
* and restrictions contact your company contract manager.
|
|
15265
15346
|
*/
|
|
@@ -16639,7 +16720,7 @@ class LoginErrorUnknown extends Error {
|
|
|
16639
16720
|
}
|
|
16640
16721
|
class LoginErrorUnmatchedState extends Error {
|
|
16641
16722
|
}
|
|
16642
|
-
class
|
|
16723
|
+
class UserAuthorizationApi {
|
|
16643
16724
|
/**
|
|
16644
16725
|
* @internal
|
|
16645
16726
|
*/
|
|
@@ -16649,81 +16730,83 @@ class UserAuthorization {
|
|
|
16649
16730
|
this.cache = cache;
|
|
16650
16731
|
this.options = options;
|
|
16651
16732
|
/**
|
|
16652
|
-
*
|
|
16653
|
-
*
|
|
16733
|
+
* POST: [/iam/v3/oauth/token](api)
|
|
16734
|
+
*
|
|
16735
|
+
* This method supports grant type:
|
|
16736
|
+
* - Grant Type == `authorization_code`:
|
|
16654
16737
|
* It generates the user token by given the authorization
|
|
16655
16738
|
* code which generated in "/iam/v3/authenticate" API response. It should also pass
|
|
16656
16739
|
* in the redirect_uri, which should be the same as generating the
|
|
16657
16740
|
* authorization code request.
|
|
16658
|
-
*
|
|
16659
|
-
*
|
|
16741
|
+
*
|
|
16742
|
+
* - Grant Type == `password`:
|
|
16660
16743
|
* The grant type to use for authenticating a user, whether it's by email / username and password combination
|
|
16661
16744
|
* or through platform.
|
|
16662
|
-
*
|
|
16663
|
-
*
|
|
16745
|
+
*
|
|
16746
|
+
* - Grant Type == `refresh_token`:
|
|
16664
16747
|
* Used to get a new access token for a valid refresh token.
|
|
16665
|
-
*
|
|
16666
|
-
*
|
|
16748
|
+
*
|
|
16749
|
+
* - Grant Type == `client_credentials`:
|
|
16667
16750
|
* It generates a token by checking the client credentials provided through Authorization header.
|
|
16668
|
-
*
|
|
16669
|
-
*
|
|
16670
|
-
*
|
|
16671
|
-
*
|
|
16672
|
-
*
|
|
16673
|
-
*
|
|
16674
|
-
*
|
|
16675
|
-
*
|
|
16676
|
-
*
|
|
16677
|
-
*
|
|
16678
|
-
*
|
|
16679
|
-
*
|
|
16680
|
-
*
|
|
16681
|
-
*
|
|
16682
|
-
*
|
|
16683
|
-
*
|
|
16684
|
-
*
|
|
16685
|
-
*
|
|
16686
|
-
*
|
|
16687
|
-
*
|
|
16688
|
-
*
|
|
16689
|
-
*
|
|
16690
|
-
*
|
|
16691
|
-
*
|
|
16692
|
-
*
|
|
16693
|
-
*
|
|
16694
|
-
*
|
|
16695
|
-
*
|
|
16696
|
-
*
|
|
16697
|
-
*
|
|
16698
|
-
*
|
|
16699
|
-
*
|
|
16700
|
-
*
|
|
16701
|
-
*
|
|
16702
|
-
*
|
|
16703
|
-
*
|
|
16704
|
-
*
|
|
16705
|
-
*
|
|
16706
|
-
*
|
|
16707
|
-
*
|
|
16708
|
-
*
|
|
16709
|
-
*
|
|
16710
|
-
*
|
|
16711
|
-
*
|
|
16712
|
-
*
|
|
16713
|
-
*
|
|
16714
|
-
*
|
|
16715
|
-
*
|
|
16716
|
-
*
|
|
16717
|
-
*
|
|
16718
|
-
*
|
|
16719
|
-
*
|
|
16720
|
-
*
|
|
16721
|
-
*
|
|
16722
|
-
*
|
|
16723
|
-
*
|
|
16724
|
-
*
|
|
16725
|
-
*
|
|
16726
|
-
*
|
|
16751
|
+
* ##Access Token Content
|
|
16752
|
+
* Following is the access token’s content:
|
|
16753
|
+
*
|
|
16754
|
+
* -
|
|
16755
|
+
* __namespace__. It is the namespace the token was generated from.
|
|
16756
|
+
*
|
|
16757
|
+
* -
|
|
16758
|
+
* __display_name__. The display name of the sub. It is empty if the token is generated from the client credential
|
|
16759
|
+
*
|
|
16760
|
+
* -
|
|
16761
|
+
* __roles__. The sub’s roles. It is empty if the token is generated from the client credential
|
|
16762
|
+
*
|
|
16763
|
+
* -
|
|
16764
|
+
* __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
|
|
16765
|
+
*
|
|
16766
|
+
* -
|
|
16767
|
+
* __permissions__. The sub or aud’ permissions
|
|
16768
|
+
*
|
|
16769
|
+
* -
|
|
16770
|
+
* __bans__. The sub’s list of bans. It is used by the IAM client for validating the token.
|
|
16771
|
+
*
|
|
16772
|
+
* -
|
|
16773
|
+
* __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:
|
|
16774
|
+
*
|
|
16775
|
+
* - 1: Email Address Verified
|
|
16776
|
+
* - 2: Phone Number Verified
|
|
16777
|
+
* - 4: Anonymous
|
|
16778
|
+
* - 8: Suspicious Login
|
|
16779
|
+
*
|
|
16780
|
+
*
|
|
16781
|
+
* -
|
|
16782
|
+
* __aud__. The aud is the targeted resource server.
|
|
16783
|
+
*
|
|
16784
|
+
* -
|
|
16785
|
+
* __iat__. The time the token issues at. It is in Epoch time format
|
|
16786
|
+
*
|
|
16787
|
+
* -
|
|
16788
|
+
* __exp__. The time the token expires. It is in Epoch time format
|
|
16789
|
+
*
|
|
16790
|
+
* -
|
|
16791
|
+
* __client_id__. The UserID. The sub is omitted if the token is generated from client credential
|
|
16792
|
+
*
|
|
16793
|
+
* -
|
|
16794
|
+
* __scope__. The scope of the access request, expressed as a list of space-delimited, case-sensitive strings
|
|
16795
|
+
*
|
|
16796
|
+
*
|
|
16797
|
+
* ##Bans
|
|
16798
|
+
* The JWT contains user's active bans with its expiry date. List of ban types can be obtained from /bans.
|
|
16799
|
+
* ##Device Cookie Validation
|
|
16800
|
+
* __For grant type "password" only__
|
|
16801
|
+
* Device Cookie is used to protect the user account from brute force login attack,
|
|
16802
|
+
* [more detail from OWASP](https://owasp.org/www-community/Slow_Down_Online_Guessing_Attacks_with_Device_Cookies)
|
|
16803
|
+
* 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.
|
|
16804
|
+
* ##Track Login History
|
|
16805
|
+
* 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".
|
|
16806
|
+
* Align with General Data Protection Regulation in Europe, user login history will be kept within 28 days by default"
|
|
16807
|
+
* ##2FA remember device
|
|
16808
|
+
* To remember device for 2FA, should provide cookie: device_token or header: Device-Token
|
|
16809
|
+
* action code: 10703
|
|
16727
16810
|
*/
|
|
16728
16811
|
this.loginWithAuthorizationCode = async ({ code, codeVerifier }) => {
|
|
16729
16812
|
const deviceId = SdkDevice.getDeviceId();
|
|
@@ -16740,7 +16823,7 @@ class UserAuthorization {
|
|
|
16740
16823
|
const axios = Network.create(config);
|
|
16741
16824
|
const data = {
|
|
16742
16825
|
grant_type: 'authorization_code',
|
|
16743
|
-
code
|
|
16826
|
+
code,
|
|
16744
16827
|
code_verifier: codeVerifier,
|
|
16745
16828
|
client_id: this.options.clientId,
|
|
16746
16829
|
redirect_uri: this.options.redirectURI
|
|
@@ -16755,25 +16838,58 @@ class UserAuthorization {
|
|
|
16755
16838
|
CodeChallenge.clear();
|
|
16756
16839
|
return { ...result, mfaData };
|
|
16757
16840
|
};
|
|
16841
|
+
/**
|
|
16842
|
+
* @internal
|
|
16843
|
+
*/
|
|
16758
16844
|
this.getMfaDataFromError = (errorResponse) => {
|
|
16759
16845
|
const doesMFADataExist = Validate.safeParse(errorResponse.data, MFADataResponse);
|
|
16760
16846
|
if (!doesMFADataExist)
|
|
16761
16847
|
return;
|
|
16762
|
-
|
|
16763
|
-
const {
|
|
16764
|
-
const result = { mfaToken: mfa_token, factors, defaultFactor: default_factor, email };
|
|
16848
|
+
const { mfa_token: mfaToken, factors, default_factor: defaultFactor, email } = errorResponse.data;
|
|
16849
|
+
const result = { mfaToken, factors, defaultFactor, email };
|
|
16765
16850
|
if (BrowserHelper.isOnBrowser()) {
|
|
16766
16851
|
localStorage.setItem(MFA_DATA_STORAGE_KEY, JSON.stringify(result));
|
|
16767
16852
|
}
|
|
16768
16853
|
return result;
|
|
16769
16854
|
};
|
|
16855
|
+
/**
|
|
16856
|
+
* @internal
|
|
16857
|
+
*/
|
|
16770
16858
|
this.getMfaDataFromStorage = () => {
|
|
16771
16859
|
const storedMFAData = BrowserHelper.isOnBrowser() && localStorage.getItem(MFA_DATA_STORAGE_KEY);
|
|
16772
16860
|
return storedMFAData ? JSON.parse(storedMFAData) : null;
|
|
16773
16861
|
};
|
|
16862
|
+
/**
|
|
16863
|
+
* @internal
|
|
16864
|
+
*/
|
|
16774
16865
|
this.removeMfaDataFromStorage = () => {
|
|
16775
16866
|
localStorage.removeItem(MFA_DATA_STORAGE_KEY);
|
|
16776
16867
|
};
|
|
16868
|
+
/**
|
|
16869
|
+
* @internal
|
|
16870
|
+
*/
|
|
16871
|
+
this.matchReceivedState = (maybeSentState) => {
|
|
16872
|
+
const sentStateResult = CodeChallenge.parseSentState(maybeSentState);
|
|
16873
|
+
if (sentStateResult.error)
|
|
16874
|
+
return { error: sentStateResult.error, result: null };
|
|
16875
|
+
const storedStateResult = CodeChallenge.load();
|
|
16876
|
+
if (storedStateResult.error)
|
|
16877
|
+
return { error: storedStateResult.error, result: null };
|
|
16878
|
+
const sentState = sentStateResult.sentState;
|
|
16879
|
+
const storedState = storedStateResult.storedState;
|
|
16880
|
+
if (sentState.csrf !== storedState.csrf)
|
|
16881
|
+
return { error: null, result: null };
|
|
16882
|
+
return {
|
|
16883
|
+
error: null,
|
|
16884
|
+
result: {
|
|
16885
|
+
payload: sentState.payload,
|
|
16886
|
+
codeVerifier: storedState.codeVerifier
|
|
16887
|
+
}
|
|
16888
|
+
};
|
|
16889
|
+
};
|
|
16890
|
+
/**
|
|
16891
|
+
* @internal
|
|
16892
|
+
*/
|
|
16777
16893
|
this.deduceLoginError = (error) => {
|
|
16778
16894
|
switch (error) {
|
|
16779
16895
|
case LoginErrorParam.Enum.login_session_expired:
|
|
@@ -16815,6 +16931,11 @@ class UserAuthorization {
|
|
|
16815
16931
|
returnPath
|
|
16816
16932
|
};
|
|
16817
16933
|
};
|
|
16934
|
+
/**
|
|
16935
|
+
* GET [/iam/v3/oauth/authorize](api)
|
|
16936
|
+
*
|
|
16937
|
+
* Creates a URL to be used for Login, Register, Link to existing account or Twitch Link
|
|
16938
|
+
*/
|
|
16818
16939
|
this.createLoginURL = (returnPath, targetAuthPage, oneTimeLinkCode) => {
|
|
16819
16940
|
const { verifier, challenge } = CodeChallenge.generateChallenge();
|
|
16820
16941
|
const csrf = CodeChallenge.generateCsrf();
|
|
@@ -16838,6 +16959,11 @@ class UserAuthorization {
|
|
|
16838
16959
|
const url = new URL(UrlHelper.combineURLPaths(this.options.baseURL, `${AUTHORIZE_URL}?${searchParams.toString()}`));
|
|
16839
16960
|
return url.toString();
|
|
16840
16961
|
};
|
|
16962
|
+
/**
|
|
16963
|
+
* GET [/iam/v3/oauth/authorize](api)
|
|
16964
|
+
*
|
|
16965
|
+
* Creates a URL to be used for password recovery
|
|
16966
|
+
*/
|
|
16841
16967
|
this.createForgotPasswordURL = () => {
|
|
16842
16968
|
const { verifier, challenge } = CodeChallenge.generateChallenge();
|
|
16843
16969
|
const csrf = CodeChallenge.generateCsrf();
|
|
@@ -16856,9 +16982,15 @@ class UserAuthorization {
|
|
|
16856
16982
|
const url = new URL(UrlHelper.combineURLPaths(this.options.baseURL, `${AUTHORIZE_URL}?${searchParams.toString()}`));
|
|
16857
16983
|
return url.toString();
|
|
16858
16984
|
};
|
|
16985
|
+
/**
|
|
16986
|
+
* @internal
|
|
16987
|
+
*/
|
|
16859
16988
|
this.getCodeChallenge = () => {
|
|
16860
16989
|
return CodeChallenge.generateChallenge();
|
|
16861
16990
|
};
|
|
16991
|
+
/**
|
|
16992
|
+
* @internal
|
|
16993
|
+
*/
|
|
16862
16994
|
this.refreshToken = () => {
|
|
16863
16995
|
const { clientId, refreshToken } = this.options;
|
|
16864
16996
|
if (DesktopChecker.isDesktopApp()) {
|
|
@@ -16866,6 +16998,9 @@ class UserAuthorization {
|
|
|
16866
16998
|
}
|
|
16867
16999
|
return refreshWithLock({ axiosConfig: this.conf, clientId });
|
|
16868
17000
|
};
|
|
17001
|
+
/**
|
|
17002
|
+
* @internal
|
|
17003
|
+
*/
|
|
16869
17004
|
this.getSearchParams = (sentState, challenge) => {
|
|
16870
17005
|
const searchParams = new URLSearchParams();
|
|
16871
17006
|
searchParams.append('response_type', 'code');
|
|
@@ -16877,25 +17012,6 @@ class UserAuthorization {
|
|
|
16877
17012
|
return searchParams;
|
|
16878
17013
|
};
|
|
16879
17014
|
}
|
|
16880
|
-
matchReceivedState(maybeSentState) {
|
|
16881
|
-
const sentStateResult = CodeChallenge.parseSentState(maybeSentState);
|
|
16882
|
-
if (sentStateResult.error)
|
|
16883
|
-
return { error: sentStateResult.error, result: null };
|
|
16884
|
-
const storedStateResult = CodeChallenge.load();
|
|
16885
|
-
if (storedStateResult.error)
|
|
16886
|
-
return { error: storedStateResult.error, result: null };
|
|
16887
|
-
const sentState = sentStateResult.sentState;
|
|
16888
|
-
const storedState = storedStateResult.storedState;
|
|
16889
|
-
if (sentState.csrf !== storedState.csrf)
|
|
16890
|
-
return { error: null, result: null };
|
|
16891
|
-
return {
|
|
16892
|
-
error: null,
|
|
16893
|
-
result: {
|
|
16894
|
-
payload: sentState.payload,
|
|
16895
|
-
codeVerifier: storedState.codeVerifier
|
|
16896
|
-
}
|
|
16897
|
-
};
|
|
16898
|
-
}
|
|
16899
17015
|
}
|
|
16900
17016
|
function isAxiosError(error) {
|
|
16901
17017
|
return !!error && !!error.config;
|
|
@@ -17304,12 +17420,18 @@ class OAuthApi {
|
|
|
17304
17420
|
this.cache = cache;
|
|
17305
17421
|
this.options = options;
|
|
17306
17422
|
/**
|
|
17307
|
-
*
|
|
17308
|
-
|
|
17309
|
-
|
|
17310
|
-
|
|
17311
|
-
|
|
17312
|
-
|
|
17423
|
+
* @internal
|
|
17424
|
+
*/
|
|
17425
|
+
this.newOAuth20Extension = () => {
|
|
17426
|
+
return new OAuth20Extension$(Network.create(this.conf), this.namespace, this.cache);
|
|
17427
|
+
};
|
|
17428
|
+
/**
|
|
17429
|
+
* POST [/iam/v3/logout](api)
|
|
17430
|
+
*
|
|
17431
|
+
* This method is used to remove __access_token__, __refresh_token__ from cookie and revoke token from usage.
|
|
17432
|
+
* Supported methods:
|
|
17433
|
+
* - VerifyToken to verify token from header
|
|
17434
|
+
* - AddTokenToRevocationList to revoke token with TTL
|
|
17313
17435
|
*/
|
|
17314
17436
|
this.logout = () => {
|
|
17315
17437
|
const axios = Network.create({
|
|
@@ -17321,8 +17443,10 @@ class OAuthApi {
|
|
|
17321
17443
|
return new OAuth20Extension$(axios, this.namespace, this.cache).postIamV3Logout();
|
|
17322
17444
|
};
|
|
17323
17445
|
/**
|
|
17324
|
-
*
|
|
17325
|
-
*
|
|
17446
|
+
* POST [/iam/v3/oauth/revoke](api)
|
|
17447
|
+
*
|
|
17448
|
+
* This method revokes a token.
|
|
17449
|
+
* This method requires authorized requests header with Basic Authentication from client that establish the token.action code: 10706
|
|
17326
17450
|
*/
|
|
17327
17451
|
this.revoke = ({ token }) => {
|
|
17328
17452
|
const axios = Network.create({
|
|
@@ -17336,10 +17460,12 @@ class OAuthApi {
|
|
|
17336
17460
|
return new OAuth20$(axios, this.namespace, this.cache).postIamV3OauthRevoke({ token });
|
|
17337
17461
|
};
|
|
17338
17462
|
/**
|
|
17339
|
-
*
|
|
17340
|
-
*
|
|
17341
|
-
*
|
|
17342
|
-
*
|
|
17463
|
+
* POST [/iam/v3/oauth/mfa/verify](api)
|
|
17464
|
+
*
|
|
17465
|
+
* Verify 2FA code
|
|
17466
|
+
* This method is used for verifying 2FA code.
|
|
17467
|
+
* ##2FA remember device
|
|
17468
|
+
* To remember device for 2FA, should provide cookie: device_token or header: Device-Token
|
|
17343
17469
|
*
|
|
17344
17470
|
*/
|
|
17345
17471
|
this.verify2FA = async ({ factor, code, mfaToken = null, rememberDevice }) => {
|
|
@@ -17351,6 +17477,9 @@ class OAuthApi {
|
|
|
17351
17477
|
localStorage.removeItem(MFA_DATA_STORAGE_KEY);
|
|
17352
17478
|
return result.response;
|
|
17353
17479
|
};
|
|
17480
|
+
/**
|
|
17481
|
+
* POST [/iam/v3/oauth/mfa/code](api)
|
|
17482
|
+
*/
|
|
17354
17483
|
this.request2FAEmailCode = async ({ mfaToken = null, factor }) => {
|
|
17355
17484
|
const result = await this.newInstance().postIamV3OauthMfaCode({ mfaToken, clientId: this.options.clientId, factor });
|
|
17356
17485
|
if (result.error)
|
|
@@ -17358,70 +17487,72 @@ class OAuthApi {
|
|
|
17358
17487
|
return result.response;
|
|
17359
17488
|
};
|
|
17360
17489
|
/**
|
|
17361
|
-
*
|
|
17490
|
+
* GET [/iam/v3/location/country](api)
|
|
17491
|
+
*
|
|
17492
|
+
* This method get country location based on the request.
|
|
17362
17493
|
*/
|
|
17363
17494
|
this.getCurrentLocationCountry = () => {
|
|
17364
17495
|
return this.newOAuth20Extension().fetchIamV3LocationCountry();
|
|
17365
17496
|
};
|
|
17366
17497
|
/**
|
|
17367
|
-
*
|
|
17368
|
-
*
|
|
17498
|
+
* GET [/iam/v3/oauth/namespaces/{namespace}/users/{userId}/platforms/{platformId}/platformToken](api)
|
|
17499
|
+
*
|
|
17500
|
+
* Retrieve User Third Party Platform Token
|
|
17501
|
+
*
|
|
17369
17502
|
* This method used for retrieving third party platform token for user that login using third party,
|
|
17370
17503
|
* if user have not link requested platform in game namespace, will try to retrieving third party platform token from publisher namespace.
|
|
17371
17504
|
* Passing platform group name or it's member will return same access token that can be used across the platform members.
|
|
17372
|
-
*
|
|
17373
|
-
*
|
|
17374
|
-
*
|
|
17375
|
-
*
|
|
17376
|
-
*
|
|
17377
|
-
*
|
|
17378
|
-
*
|
|
17379
|
-
*
|
|
17380
|
-
*
|
|
17381
|
-
* </ul>
|
|
17505
|
+
*
|
|
17506
|
+
* The third party platform and platform group covered for this is:
|
|
17507
|
+
* - (psn) ps4web
|
|
17508
|
+
* - (psn) ps4
|
|
17509
|
+
* - (psn) ps5
|
|
17510
|
+
* - epicgames
|
|
17511
|
+
* - twitch
|
|
17512
|
+
* - awscognito
|
|
17513
|
+
*
|
|
17382
17514
|
*/
|
|
17383
17515
|
this.getThirdPartyPlatformToken = (userId, platformId) => {
|
|
17384
17516
|
return this.newInstance().fetchV3OauthUsersByUseridPlatformsByPlatformidPlatformToken(userId, platformId);
|
|
17385
17517
|
};
|
|
17386
17518
|
/**
|
|
17519
|
+
* POST [/iam/v3/authenticateWithLink](api)
|
|
17520
|
+
*
|
|
17387
17521
|
* This method is being used to authenticate a user account and perform platform link.
|
|
17388
17522
|
* It validates user's email / username and password.
|
|
17389
|
-
* If user already enable 2FA, then invoke
|
|
17523
|
+
* If user already enable 2FA, then invoke _/mfa/verify_ using __mfa_token__ from this method response.
|
|
17390
17524
|
*
|
|
17391
|
-
*
|
|
17525
|
+
* ##Device Cookie Validation
|
|
17392
17526
|
*
|
|
17393
|
-
* Device Cookie is used to protect the user account from brute force login attack,
|
|
17394
|
-
*
|
|
17527
|
+
* Device Cookie is used to protect the user account from brute force login attack,
|
|
17528
|
+
* [more detail from OWASP](https://owasp.org/www-community/Slow_Down_Online_Guessing_Attacks_with_Device_Cookies).
|
|
17529
|
+
* 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.
|
|
17395
17530
|
*
|
|
17396
17531
|
*/
|
|
17397
17532
|
this.authenticateWithLink = (data) => {
|
|
17398
17533
|
return this.newOAuth20Extension().postIamV3AuthenticateWithLink(data);
|
|
17399
17534
|
};
|
|
17400
|
-
|
|
17401
|
-
|
|
17402
|
-
|
|
17403
|
-
|
|
17404
|
-
|
|
17405
|
-
|
|
17406
|
-
|
|
17407
|
-
|
|
17408
|
-
|
|
17409
|
-
|
|
17410
|
-
|
|
17411
|
-
|
|
17412
|
-
|
|
17413
|
-
|
|
17414
|
-
|
|
17415
|
-
|
|
17416
|
-
|
|
17417
|
-
|
|
17418
|
-
|
|
17419
|
-
|
|
17420
|
-
|
|
17421
|
-
*
|
|
17422
|
-
*/
|
|
17423
|
-
exchangeTokenByOneTimeLinkCode(data) {
|
|
17424
|
-
return this.newOAuth20Extension().postIamV3LinkTokenExchange(data);
|
|
17535
|
+
/**
|
|
17536
|
+
* POST [/iam/v3/link/code/validate](api)
|
|
17537
|
+
*
|
|
17538
|
+
* This method is being used to validate one time link code.
|
|
17539
|
+
* It require a valid user token.
|
|
17540
|
+
* Should specify the target platform id and current user should already linked to this platform.
|
|
17541
|
+
* Current user should be a headless account.
|
|
17542
|
+
*/
|
|
17543
|
+
this.validateOneTimeLinkCode = (data) => {
|
|
17544
|
+
return this.newOAuth20Extension().postIamV3LinkCodeValidate(data);
|
|
17545
|
+
};
|
|
17546
|
+
/**
|
|
17547
|
+
* POST [/iam/v3/link/token/exchange](api)
|
|
17548
|
+
*
|
|
17549
|
+
* This method is being used to generate user's token by one time link code.
|
|
17550
|
+
* It require publisher ClientID
|
|
17551
|
+
* It required a code which can be generated from __/iam/v3/link/code/request__.
|
|
17552
|
+
*/
|
|
17553
|
+
this.exchangeTokenByOneTimeLinkCode = (data) => {
|
|
17554
|
+
return this.newOAuth20Extension().postIamV3LinkTokenExchange(data);
|
|
17555
|
+
};
|
|
17425
17556
|
}
|
|
17426
17557
|
newInstance() {
|
|
17427
17558
|
return new OAuth20$(Network.create(this.conf), this.namespace, this.cache);
|
|
@@ -17500,6 +17631,8 @@ class ThirdPartyCredentialApi {
|
|
|
17500
17631
|
this.namespace = namespace;
|
|
17501
17632
|
this.cache = cache;
|
|
17502
17633
|
/**
|
|
17634
|
+
* GET [/iam/v3/public/namespaces/{namespace}/platforms/clients/active](api)
|
|
17635
|
+
*
|
|
17503
17636
|
* This is the Public API to Get All Active 3rd Platform Credential.
|
|
17504
17637
|
*/
|
|
17505
17638
|
this.getThirdPartyPlatformInfo = () => {
|
|
@@ -18001,85 +18134,112 @@ class TwoFA {
|
|
|
18001
18134
|
this.namespace = namespace;
|
|
18002
18135
|
this.cache = cache;
|
|
18003
18136
|
/**
|
|
18004
|
-
*
|
|
18005
|
-
* Each code is a one-time code and will be deleted once used.</p>
|
|
18006
|
-
* <p>This method Requires valid user access token</p>
|
|
18137
|
+
* GET [/iam/v4/public/namespaces/{namespace}/users/me/mfa/backupCode](api)
|
|
18007
18138
|
*
|
|
18139
|
+
* This method is used to get 8-digits backup codes.
|
|
18140
|
+
* Each code is a one-time code and will be deleted once used.
|
|
18141
|
+
*
|
|
18142
|
+
* _Requires a valid user access token_
|
|
18008
18143
|
*/
|
|
18009
18144
|
this.getBackupCode = () => {
|
|
18010
18145
|
return this.newInstance().fetchV4NsUsersMeMfaBackupCode();
|
|
18011
18146
|
};
|
|
18012
18147
|
/**
|
|
18013
|
-
*
|
|
18014
|
-
*
|
|
18148
|
+
* POST [/iam/v4/public/namespaces/{namespace}/users/me/mfa/backupCode/enable](api)
|
|
18149
|
+
*
|
|
18150
|
+
* This method is used to enable 2FA backup codes.
|
|
18015
18151
|
*
|
|
18152
|
+
* _Requires a valid user access token_
|
|
18016
18153
|
*/
|
|
18017
18154
|
this.enable2FABackupCodes = () => {
|
|
18018
18155
|
return this.newInstance().postV4NsUsersMeMfaBackupCodeEnable();
|
|
18019
18156
|
};
|
|
18020
18157
|
/**
|
|
18021
|
-
*
|
|
18022
|
-
* <p>This method Requires valid user access token</p>
|
|
18158
|
+
* POST [/iam/v4/public/namespaces/{namespace}/users/me/mfa/backupCode](api)
|
|
18023
18159
|
*
|
|
18160
|
+
* This method is used to enable 2FA backup codes.
|
|
18161
|
+
*
|
|
18162
|
+
* _Requires a valid user access token_
|
|
18024
18163
|
*/
|
|
18025
18164
|
this.generateBackupCodes = () => {
|
|
18026
18165
|
return this.newInstance().postV4NsUsersMeMfaBackupCode();
|
|
18027
18166
|
};
|
|
18028
18167
|
/**
|
|
18029
|
-
*
|
|
18030
|
-
*
|
|
18168
|
+
* DELETE [/iam/v4/public/namespaces/{namespace}/users/me/mfa/backupCode/disable](api)
|
|
18169
|
+
*
|
|
18170
|
+
* This method is used to enable 2FA backup codes.
|
|
18031
18171
|
*
|
|
18172
|
+
* _Requires a valid user access token_
|
|
18032
18173
|
*/
|
|
18033
18174
|
this.disableBackupCodes = () => {
|
|
18034
18175
|
return this.newInstance().deleteV4NsUsersMeMfaBackupCodeDisable();
|
|
18035
18176
|
};
|
|
18036
18177
|
/**
|
|
18037
|
-
*
|
|
18038
|
-
*
|
|
18178
|
+
* DELETE [/iam/v4/public/namespaces/{namespace}/users/me/mfa/authenticator/disable](api)
|
|
18179
|
+
* }
|
|
18180
|
+
* This method is used to disable 2FA authenticator.
|
|
18039
18181
|
*
|
|
18182
|
+
* _Requires a valid user access token_
|
|
18040
18183
|
*/
|
|
18041
18184
|
this.disableAuthenticator = () => {
|
|
18042
18185
|
return this.newInstance().deleteV4NsUsersMeMfaAuthenticatorDisable();
|
|
18043
18186
|
};
|
|
18044
18187
|
/**
|
|
18045
|
-
*
|
|
18046
|
-
* <p>This method Requires valid user access token</p>
|
|
18188
|
+
* GET [/iam/v4/public/namespaces/{namespace}/users/me/mfa/factor](api)
|
|
18047
18189
|
*
|
|
18190
|
+
* This method is used to get user enabled factors.
|
|
18191
|
+
*
|
|
18192
|
+
* _Requires a valid user access token_
|
|
18048
18193
|
*/
|
|
18049
18194
|
this.getEnabledMethods = () => {
|
|
18050
18195
|
return this.newInstance().fetchV4NsUsersMeMfaFactor();
|
|
18051
18196
|
};
|
|
18052
18197
|
/**
|
|
18053
|
-
*
|
|
18054
|
-
*
|
|
18198
|
+
* POST [/iam/v4/public/namespaces/{namespace}/users/me/mfa/factor](api)
|
|
18199
|
+
*
|
|
18200
|
+
* This method is used to make 2FA factor default.
|
|
18055
18201
|
*
|
|
18202
|
+
* _Requires a valid user access token_
|
|
18056
18203
|
*/
|
|
18057
18204
|
this.set2FAAsDefault = (factor) => {
|
|
18058
18205
|
return this.newInstance().postV4NsUsersMeMfaFactor({ factor });
|
|
18059
18206
|
};
|
|
18060
18207
|
/**
|
|
18061
|
-
*
|
|
18062
|
-
* <p>This method Requires valid user access token</p>
|
|
18208
|
+
* POST [/iam/v4/public/namespaces/{namespace}/users/me/mfa/authenticator/enable](api)
|
|
18063
18209
|
*
|
|
18210
|
+
* This method is used to enable 2FA authenticator.
|
|
18211
|
+
*
|
|
18212
|
+
* _Requires a valid user access token_
|
|
18064
18213
|
*/
|
|
18065
18214
|
this.enable2FAAuthenticator = (code) => {
|
|
18066
18215
|
return this.newInstance().postV4NsUsersMeMfaAuthenticatorEnable({ code });
|
|
18067
18216
|
};
|
|
18068
18217
|
/**
|
|
18069
|
-
*
|
|
18070
|
-
*
|
|
18071
|
-
*
|
|
18218
|
+
* POST [/iam/v4/public/namespaces/{namespace}/users/me/mfa/authenticator/key](api)
|
|
18219
|
+
*
|
|
18220
|
+
* This method is used to generate a secret key for 3rd-party authenticator app.
|
|
18221
|
+
* A QR code URI is also returned so that frontend can generate QR code image.
|
|
18072
18222
|
*
|
|
18223
|
+
* _Requires a valid user access token_
|
|
18073
18224
|
*/
|
|
18074
18225
|
this.generateSecretKey = () => {
|
|
18075
18226
|
return this.newInstance().postV4NsUsersMeMfaAuthenticatorKey();
|
|
18076
18227
|
};
|
|
18228
|
+
/**
|
|
18229
|
+
* POST [/iam/v4/public/namespaces/{namespace}/users/me/mfa/email/code](api)
|
|
18230
|
+
*/
|
|
18077
18231
|
this.requestEmailCode = () => {
|
|
18078
18232
|
return this.newInstance().postV4NsUsersMeMfaEmailCode();
|
|
18079
18233
|
};
|
|
18234
|
+
/**
|
|
18235
|
+
* POST [/iam/v4/public/namespaces/{namespace}/users/me/mfa/email/enable](api)
|
|
18236
|
+
*/
|
|
18080
18237
|
this.enableEmailMethod = (code) => {
|
|
18081
18238
|
return this.newInstance().postV4NsUsersMeMfaEmailEnable({ code });
|
|
18082
18239
|
};
|
|
18240
|
+
/**
|
|
18241
|
+
* POST [/iam/v4/public/namespaces/{namespace}/users/me/mfa/email/disable](api)
|
|
18242
|
+
*/
|
|
18083
18243
|
this.disableEmailMethod = () => {
|
|
18084
18244
|
return this.newInstance().postV4NsUsersMeMfaEmailDisable();
|
|
18085
18245
|
};
|
|
@@ -19293,295 +19453,326 @@ class UserApi {
|
|
|
19293
19453
|
this.namespace = namespace;
|
|
19294
19454
|
this.cache = cache;
|
|
19295
19455
|
/**
|
|
19296
|
-
*
|
|
19456
|
+
* GET [/iam/v3/public/users/me](api)
|
|
19457
|
+
*
|
|
19458
|
+
* get currently logged-in user
|
|
19297
19459
|
*/
|
|
19298
19460
|
this.getCurrentUser = () => {
|
|
19299
19461
|
return this.newInstance().fetchIamV3PublicUsersMe();
|
|
19300
19462
|
};
|
|
19301
19463
|
/**
|
|
19302
|
-
*
|
|
19464
|
+
* PATCH [/iam/v3/public/namespaces/{namespace}/users/me](api)
|
|
19465
|
+
*
|
|
19466
|
+
* Update current user
|
|
19303
19467
|
*/
|
|
19304
19468
|
this.updateUserMe = (data) => {
|
|
19305
19469
|
return this.newInstance().patchV3NsUsersMe(data);
|
|
19306
19470
|
};
|
|
19307
19471
|
/**
|
|
19472
|
+
* PUT [/iam/v4/public/namespaces/{namespace}/users/me/email](api)
|
|
19473
|
+
*
|
|
19308
19474
|
* update current user's email
|
|
19309
19475
|
*/
|
|
19310
19476
|
this.updateEmailMe = (data) => {
|
|
19311
19477
|
return this.newInstance4().putV4NsUsersMeEmail(data);
|
|
19312
19478
|
};
|
|
19313
19479
|
/**
|
|
19480
|
+
* PUT [/iam/v3/public/namespaces/{namespace}/users/me/password](api)
|
|
19481
|
+
*
|
|
19314
19482
|
* update current user's password
|
|
19315
19483
|
*/
|
|
19316
19484
|
this.updatePasswordMe = (data) => {
|
|
19317
19485
|
return this.newInstance().putV3NsUsersMePassword(data);
|
|
19318
19486
|
};
|
|
19319
19487
|
/**
|
|
19488
|
+
* POST [/iam/v3/public/namespaces/{namespace}/users/me/code/request](api)
|
|
19489
|
+
*
|
|
19320
19490
|
* Required valid user authorization
|
|
19321
|
-
*
|
|
19322
|
-
*
|
|
19323
|
-
*
|
|
19324
|
-
*
|
|
19325
|
-
*
|
|
19326
|
-
*
|
|
19327
|
-
*
|
|
19328
|
-
*
|
|
19329
|
-
*
|
|
19330
|
-
*
|
|
19331
|
-
*
|
|
19332
|
-
*
|
|
19333
|
-
*
|
|
19334
|
-
*
|
|
19335
|
-
*
|
|
19336
|
-
* </li>
|
|
19337
|
-
* </ol>
|
|
19338
|
-
* <p>action code: 10116</p>
|
|
19491
|
+
* The verification code is sent to email address
|
|
19492
|
+
* Available contexts for use :
|
|
19493
|
+
* -
|
|
19494
|
+
* __UserAccountRegistration__
|
|
19495
|
+
* a context type used for verifying email address in user account registration. It returns 409 if the email address already verified.
|
|
19496
|
+
* __It is the default context if the Context field is empty__
|
|
19497
|
+
*
|
|
19498
|
+
* -
|
|
19499
|
+
* __UpdateEmailAddress__
|
|
19500
|
+
* a context type used for verify user before updating email address.(Without email address verified checking)
|
|
19501
|
+
*
|
|
19502
|
+
* - __upgradeHeadlessAccount__
|
|
19503
|
+
* The context is intended to be used whenever the email address wanted to be automatically verified on upgrading a headless account.
|
|
19504
|
+
* If this context used, IAM rejects the request if the email address is already used by others by returning HTTP Status Code 409.
|
|
19505
|
+
* action code: 10116
|
|
19339
19506
|
*
|
|
19340
19507
|
*/
|
|
19341
19508
|
this.requestVerificationCode = (data) => {
|
|
19342
19509
|
return this.newInstance().postV3NsUsersMeCodeRequest(data);
|
|
19343
19510
|
};
|
|
19344
19511
|
/**
|
|
19345
|
-
*
|
|
19346
|
-
*
|
|
19347
|
-
*
|
|
19348
|
-
*
|
|
19349
|
-
*
|
|
19512
|
+
* POST [/iam/v3/public/namespaces/{namespace}/users/me/code/verify](api)
|
|
19513
|
+
*
|
|
19514
|
+
* Will consume code if validateOnly is set false
|
|
19515
|
+
* Required valid user authorization
|
|
19516
|
+
* Redeems a verification code sent to a user to verify the user's contact address is correct
|
|
19517
|
+
* Available ContactType : __email__
|
|
19518
|
+
* action code: 10107
|
|
19350
19519
|
*
|
|
19351
19520
|
*/
|
|
19352
19521
|
this.verifyCode = (data) => {
|
|
19353
19522
|
return this.newInstance().postV3NsUsersMeCodeVerify(data);
|
|
19354
19523
|
};
|
|
19355
19524
|
/**
|
|
19356
|
-
*
|
|
19525
|
+
* POST [/iam/v3/public/namespaces/{namespace}/users/me/headless/code/verify](api)
|
|
19526
|
+
*
|
|
19527
|
+
* If validateOnly is set false, consume code and upgrade headless account and automatically verified the email address if it is succeeded
|
|
19357
19528
|
* Require valid user access token.
|
|
19358
|
-
*
|
|
19359
|
-
* By upgrading the headless account into a full account, the user could use the email address and password for using Justice IAM.
|
|
19360
|
-
*
|
|
19361
|
-
* In order to get a verification code for the method, please check the send verification code method
|
|
19362
|
-
*
|
|
19529
|
+
* The method upgrades a headless account by linking the headless account with the email address and the password.
|
|
19530
|
+
* By upgrading the headless account into a full account, the user could use the email address and password for using Justice IAM.
|
|
19531
|
+
* The method is a shortcut for upgrading a headless account and verifying the email address in one call.
|
|
19532
|
+
* In order to get a verification code for the method, please check the send verification code method.
|
|
19533
|
+
* 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.
|
|
19363
19534
|
* Supported user data fields :
|
|
19364
|
-
*
|
|
19365
|
-
*
|
|
19366
|
-
*
|
|
19367
|
-
*
|
|
19368
|
-
*
|
|
19369
|
-
*
|
|
19535
|
+
*
|
|
19536
|
+
* - displayName
|
|
19537
|
+
* - dateOfBirth : format YYYY-MM-DD, e.g. 2019-04-29
|
|
19538
|
+
* - country : format ISO3166-1 alpha-2 two letter, e.g. US
|
|
19539
|
+
*
|
|
19540
|
+
* action code : 10124
|
|
19370
19541
|
*/
|
|
19371
19542
|
this.upgradeHeadlessAccount = (data) => {
|
|
19372
19543
|
return this.newInstance().postV3NsUsersMeHeadlessCodeVerify(data);
|
|
19373
19544
|
};
|
|
19374
19545
|
/**
|
|
19546
|
+
* POST [/iam/v4/public/namespaces/{namespace}/users/me/headless/code/verify](api)
|
|
19547
|
+
*
|
|
19375
19548
|
* Require valid user access token.
|
|
19376
19549
|
* The method upgrades a headless account by linking the headless account with the email address, username, and password.
|
|
19377
19550
|
* By upgrading the headless account into a full account, the user could use the email address, username, and password for using Justice IAM.
|
|
19378
|
-
*
|
|
19551
|
+
*
|
|
19379
19552
|
* The method is a shortcut for upgrading a headless account and verifying the email address in one call.
|
|
19380
|
-
*
|
|
19381
|
-
* <br>
|
|
19553
|
+
*
|
|
19382
19554
|
* 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.
|
|
19383
19555
|
* Supported user data fields:
|
|
19384
|
-
*
|
|
19385
|
-
*
|
|
19386
|
-
*
|
|
19387
|
-
*
|
|
19388
|
-
*
|
|
19556
|
+
*
|
|
19557
|
+
* - displayName
|
|
19558
|
+
* - dateOfBirth : format YYYY-MM-DD, e.g. 2019-04-29
|
|
19559
|
+
* - country : format ISO3166-1 alpha-2 two letter, e.g. US
|
|
19560
|
+
*
|
|
19389
19561
|
* action code : 10124
|
|
19390
19562
|
*/
|
|
19391
19563
|
this.upgradeHeadlessAccountV4 = (data) => {
|
|
19392
19564
|
return this.newInstance4().postV4NsUsersMeHeadlessCodeVerify(data);
|
|
19393
19565
|
};
|
|
19394
19566
|
/**
|
|
19395
|
-
*
|
|
19396
|
-
*
|
|
19567
|
+
* GET [/iam/v3/public/namespaces/{namespace}/users/{userId}/platforms](api)
|
|
19568
|
+
*
|
|
19569
|
+
* This method retrieves platform accounts linked to user. Required valid user authorization.
|
|
19570
|
+
* action code: 10128
|
|
19397
19571
|
*/
|
|
19398
19572
|
this.getUserLinkedPlatform = (userId) => {
|
|
19399
19573
|
return this.newInstance().fetchV3NsUsersByUseridPlatforms(userId);
|
|
19400
19574
|
};
|
|
19401
19575
|
/**
|
|
19576
|
+
* POST [/iam/v3/public/namespaces/{namespace}/users/me/platforms/{platformId}](api)
|
|
19577
|
+
*
|
|
19402
19578
|
* Required valid user authorization.
|
|
19403
|
-
*
|
|
19579
|
+
* __Prerequisite:__
|
|
19404
19580
|
* Platform client configuration need to be added to database for specific platformId. Namespace service URL need to be specified (refer to required environment variables).
|
|
19405
|
-
*
|
|
19406
|
-
*
|
|
19407
|
-
*
|
|
19408
|
-
*
|
|
19409
|
-
*
|
|
19410
|
-
*
|
|
19411
|
-
*
|
|
19412
|
-
*
|
|
19413
|
-
*
|
|
19414
|
-
*
|
|
19415
|
-
*
|
|
19416
|
-
*
|
|
19417
|
-
*
|
|
19418
|
-
*
|
|
19419
|
-
*
|
|
19420
|
-
*
|
|
19421
|
-
*
|
|
19422
|
-
*
|
|
19423
|
-
*
|
|
19424
|
-
*
|
|
19425
|
-
*
|
|
19581
|
+
* ##Supported platforms:
|
|
19582
|
+
*
|
|
19583
|
+
* - __steam__: The ticket’s value is the authentication code returned by Steam.
|
|
19584
|
+
* - __steamopenid__: Steam's user authentication method using OpenID 2.0. The ticket's value is URL generated by Steam on web authentication
|
|
19585
|
+
* - __facebook__: The ticket’s value is the authorization code returned by Facebook OAuth
|
|
19586
|
+
* - __google__: The ticket’s value is the authorization code returned by Google OAuth
|
|
19587
|
+
* - __oculus__: The ticket’s value is a string composed of Oculus's user ID and the nonce separated by a colon (:).
|
|
19588
|
+
* - __twitch__: The ticket’s value is the authorization code returned by Twitch OAuth.
|
|
19589
|
+
* - __android__: The ticket's value is the Android’s device ID
|
|
19590
|
+
* - __ios__: The ticket's value is the iOS’s device ID.
|
|
19591
|
+
* - __apple__: The ticket’s value is the authorization code returned by Apple OAuth.
|
|
19592
|
+
* - __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.
|
|
19593
|
+
* - __discord__: The ticket’s value is the authorization code returned by Discord OAuth.
|
|
19594
|
+
* - __ps4web__: The ticket’s value is the authorization code returned by PSN OAuth.
|
|
19595
|
+
* - __xblweb__: The ticket’s value is the authorization code returned by XBox Live OAuth.
|
|
19596
|
+
* - __awscognito__: The ticket’s value is the aws cognito access token (JWT).
|
|
19597
|
+
* - __epicgames__: The ticket’s value is an access-token obtained from Epicgames EOS Account Service.
|
|
19598
|
+
* - __nintendo__: The ticket’s value is the authorization code(id_token) returned by Nintendo OAuth.
|
|
19599
|
+
* - __stadia__: The ticket’s value is a JWT Token, which can be obtained after calling the Stadia SDK's function.
|
|
19600
|
+
*
|
|
19601
|
+
* action code : 10144
|
|
19426
19602
|
*/
|
|
19427
19603
|
this.linkAccountToPlatform = ({ platformId, data }) => {
|
|
19428
19604
|
return this.newInstance().postV3NsUsersMePlatformsByPlatformid(platformId, data);
|
|
19429
19605
|
};
|
|
19430
19606
|
/**
|
|
19607
|
+
* GET [/iam/v3/public/namespaces/{namespace}/requests/{requestId}/async/status](api)
|
|
19608
|
+
*
|
|
19431
19609
|
* Get the linking status between a third-party platform to a user
|
|
19432
19610
|
*/
|
|
19433
19611
|
this.getLinkRequestStatus = (requestId) => {
|
|
19434
19612
|
return this.newInstance().fetchV3NsRequestsByRequestidAsyncStatus(requestId);
|
|
19435
19613
|
};
|
|
19436
19614
|
/**
|
|
19437
|
-
*
|
|
19615
|
+
* @internal
|
|
19616
|
+
* It is going to be __DEPRECATED__.
|
|
19438
19617
|
* Update Platform Account relation to current User Account.
|
|
19439
19618
|
* Note: Game progression data (statistics, reward, etc) associated with previous User Account will not be
|
|
19440
19619
|
* transferred. If the data is tight to game user ID, the user will have the game progression data.
|
|
19441
|
-
*
|
|
19442
19620
|
*/
|
|
19443
19621
|
this.linkPlatformToUserAccount = ({ userId, data }) => {
|
|
19444
19622
|
return this.newInstance().postV3NsUsersByUseridPlatformsLink(userId, data);
|
|
19445
19623
|
};
|
|
19446
19624
|
/**
|
|
19625
|
+
* DELETE [/iam/v3/public/namespaces/{namespace}/users/me/platforms/{platformId}](api)
|
|
19626
|
+
*
|
|
19447
19627
|
* Required valid user authorization.
|
|
19448
|
-
*
|
|
19449
|
-
*
|
|
19450
|
-
*
|
|
19451
|
-
*
|
|
19452
|
-
*
|
|
19453
|
-
*
|
|
19454
|
-
*
|
|
19455
|
-
*
|
|
19456
|
-
*
|
|
19457
|
-
*
|
|
19458
|
-
*
|
|
19459
|
-
*
|
|
19460
|
-
*
|
|
19461
|
-
*
|
|
19462
|
-
*
|
|
19463
|
-
*
|
|
19464
|
-
*
|
|
19465
|
-
*
|
|
19466
|
-
*
|
|
19467
|
-
*
|
|
19468
|
-
*
|
|
19469
|
-
*
|
|
19470
|
-
*
|
|
19471
|
-
*
|
|
19472
|
-
*
|
|
19473
|
-
*
|
|
19628
|
+
* ##Supported platforms:
|
|
19629
|
+
*
|
|
19630
|
+
* - __steam__
|
|
19631
|
+
* - __steamopenid__
|
|
19632
|
+
* - __facebook__
|
|
19633
|
+
* - __google__
|
|
19634
|
+
* - __oculus__
|
|
19635
|
+
* - __twitch__
|
|
19636
|
+
* - __android__
|
|
19637
|
+
* - __ios__
|
|
19638
|
+
* - __apple__
|
|
19639
|
+
* - __device__
|
|
19640
|
+
* - __discord__
|
|
19641
|
+
* - __awscognito__
|
|
19642
|
+
* - __epicgames__
|
|
19643
|
+
* - __nintendo__
|
|
19644
|
+
* - __stadia__
|
|
19645
|
+
*
|
|
19646
|
+
* Unlink user's account from a specific platform. 'justice' platform might have multiple accounts from different namespaces linked.
|
|
19647
|
+
* _platformNamespace_ need to be specified when the platform ID is 'justice'.
|
|
19648
|
+
*
|
|
19649
|
+
* Unlink user's account from justice platform will enable password token grant and password update.
|
|
19650
|
+
*
|
|
19651
|
+
* If you want to unlink user's account in a game namespace, you have to specify _platformNamespace_ to that game namespace.
|
|
19652
|
+
*
|
|
19653
|
+
* action code : 10121
|
|
19474
19654
|
*/
|
|
19475
19655
|
this.unLinkAccountFromPlatform = ({ platformId, data }) => {
|
|
19476
19656
|
return this.newInstance().deleteV3NsUsersMePlatformsByPlatformid(platformId, data);
|
|
19477
19657
|
};
|
|
19478
19658
|
/**
|
|
19659
|
+
* GET [/iam/v3/public/namespaces/{namespace}/users/me/platforms/{platformId}/web/link](api)
|
|
19660
|
+
*
|
|
19479
19661
|
* This method is used to generate third party login page which will redirected to establish method.
|
|
19480
19662
|
*/
|
|
19481
19663
|
this.getThirdPartyURL = ({ platformId, queryParams }) => {
|
|
19482
19664
|
return this.newInstance().fetchV3NsUsersMePlatformsByPlatformidWebLink(platformId, queryParams);
|
|
19483
19665
|
};
|
|
19484
19666
|
/**
|
|
19667
|
+
* GET [/iam/v3/public/namespaces/{namespace}/agerestrictions/countries/{countryCode}](api)
|
|
19668
|
+
*
|
|
19485
19669
|
* Get age restriction by country code. It will always get by publisher namespace
|
|
19486
19670
|
*/
|
|
19487
19671
|
this.getAgeRestrictionByCountry = (countryCode) => {
|
|
19488
19672
|
return this.newInstance().fetchV3NsAgerestrictionsCountriesByCountrycode(countryCode);
|
|
19489
19673
|
};
|
|
19490
|
-
|
|
19491
|
-
|
|
19492
|
-
|
|
19493
|
-
|
|
19494
|
-
|
|
19495
|
-
|
|
19496
|
-
|
|
19497
|
-
|
|
19498
|
-
|
|
19499
|
-
|
|
19500
|
-
|
|
19501
|
-
|
|
19502
|
-
|
|
19503
|
-
|
|
19504
|
-
|
|
19505
|
-
|
|
19506
|
-
|
|
19507
|
-
|
|
19508
|
-
|
|
19509
|
-
|
|
19510
|
-
|
|
19511
|
-
|
|
19512
|
-
|
|
19513
|
-
|
|
19514
|
-
|
|
19515
|
-
|
|
19516
|
-
|
|
19517
|
-
|
|
19518
|
-
|
|
19519
|
-
|
|
19520
|
-
|
|
19521
|
-
|
|
19522
|
-
|
|
19523
|
-
|
|
19524
|
-
|
|
19525
|
-
|
|
19526
|
-
|
|
19527
|
-
|
|
19528
|
-
|
|
19529
|
-
|
|
19530
|
-
|
|
19531
|
-
|
|
19532
|
-
|
|
19533
|
-
|
|
19534
|
-
|
|
19535
|
-
|
|
19536
|
-
|
|
19537
|
-
|
|
19538
|
-
|
|
19539
|
-
|
|
19540
|
-
|
|
19541
|
-
|
|
19542
|
-
|
|
19543
|
-
|
|
19544
|
-
|
|
19545
|
-
|
|
19546
|
-
|
|
19547
|
-
|
|
19548
|
-
|
|
19549
|
-
|
|
19550
|
-
|
|
19551
|
-
|
|
19552
|
-
|
|
19553
|
-
|
|
19554
|
-
|
|
19555
|
-
|
|
19556
|
-
|
|
19557
|
-
|
|
19558
|
-
|
|
19559
|
-
|
|
19560
|
-
|
|
19561
|
-
|
|
19562
|
-
|
|
19563
|
-
|
|
19564
|
-
|
|
19565
|
-
|
|
19566
|
-
|
|
19567
|
-
|
|
19568
|
-
|
|
19569
|
-
|
|
19570
|
-
|
|
19571
|
-
|
|
19572
|
-
|
|
19573
|
-
|
|
19574
|
-
|
|
19575
|
-
|
|
19576
|
-
|
|
19577
|
-
|
|
19578
|
-
|
|
19579
|
-
|
|
19580
|
-
|
|
19581
|
-
|
|
19582
|
-
|
|
19583
|
-
|
|
19584
|
-
|
|
19674
|
+
/**
|
|
19675
|
+
* Render 2D Avatar via readyplayer.me POST [](https://docs.readyplayer.me/ready-player-me/avatars/2d-avatars/render-api)
|
|
19676
|
+
* @internal
|
|
19677
|
+
*/
|
|
19678
|
+
this.renderImageFromGlbModel = (data) => {
|
|
19679
|
+
const axios = Network.create({
|
|
19680
|
+
...this.conf
|
|
19681
|
+
});
|
|
19682
|
+
return Validate.responseType(() => axios.post('https://render.readyplayer.me/render', data), ReadyPlayerMe);
|
|
19683
|
+
};
|
|
19684
|
+
/**
|
|
19685
|
+
* POST [/iam/v3/public/namespaces/{namespace}/users/code/request](api)
|
|
19686
|
+
*
|
|
19687
|
+
* This method will validate the request's email address.
|
|
19688
|
+
*
|
|
19689
|
+
* If it already been used, will response 409.
|
|
19690
|
+
*
|
|
19691
|
+
* If it is available, we will send a verification code to this email address.
|
|
19692
|
+
*/
|
|
19693
|
+
this.requestNewUserVerificationCode = (data) => {
|
|
19694
|
+
return this.newInstance().postV3NsUsersCodeRequest(data);
|
|
19695
|
+
};
|
|
19696
|
+
/**
|
|
19697
|
+
* POST [/iam/v4/public/namespaces/{namespace}/users](api)
|
|
19698
|
+
*
|
|
19699
|
+
* Create a new user with unique email address and username.
|
|
19700
|
+
*
|
|
19701
|
+
* __Required attributes:__
|
|
19702
|
+
* - authType: possible value is EMAILPASSWD
|
|
19703
|
+
* - emailAddress: Please refer to the rule from /v3/public/inputValidations API.
|
|
19704
|
+
* - username: Please refer to the rule from /v3/public/inputValidations API.
|
|
19705
|
+
* - password: Please refer to the rule from /v3/public/inputValidations API.
|
|
19706
|
+
* - country: ISO3166-1 alpha-2 two letter, e.g. US.
|
|
19707
|
+
* - dateOfBirth: YYYY-MM-DD, e.g. 1990-01-01. valid values are between 1905-01-01 until current date.
|
|
19708
|
+
*
|
|
19709
|
+
* __Not required attributes:__
|
|
19710
|
+
* - displayName: Please refer to the rule from /v3/public/inputValidations API.
|
|
19711
|
+
*
|
|
19712
|
+
* This method support accepting agreements for the created user. Supply the accepted agreements in acceptedPolicies attribute.
|
|
19713
|
+
*
|
|
19714
|
+
*/
|
|
19715
|
+
this.createUser = (data) => {
|
|
19716
|
+
return this.newInstance4().postV4NsUsers(data);
|
|
19717
|
+
};
|
|
19718
|
+
/**
|
|
19719
|
+
* GET [/iam/v3/public/namespaces/{namespace}/users/{userId}/distinctPlatforms](api)
|
|
19720
|
+
*
|
|
19721
|
+
* This method retrieves platform accounts linked to user.
|
|
19722
|
+
* It will query all linked platform accounts and result will be distinct & grouped, same platform we will pick oldest linked one.
|
|
19723
|
+
* Required valid user authorization.
|
|
19724
|
+
*/
|
|
19725
|
+
this.getUserDistinctLinkedPlatform = (userId) => {
|
|
19726
|
+
return this.newInstance().fetchV3NsUsersByUseridDistinctPlatforms(userId);
|
|
19727
|
+
};
|
|
19728
|
+
/**
|
|
19729
|
+
* DELETE [/iam/v3/public/namespaces/{namespace}/users/me/platforms/{platformId}/all](api)
|
|
19730
|
+
*
|
|
19731
|
+
* Required valid user authorization.
|
|
19732
|
+
* Unlink user's account from for all third platforms.
|
|
19733
|
+
*/
|
|
19734
|
+
this.unLinkAccountFromPlatformDistinct = (platformId) => {
|
|
19735
|
+
return this.newInstance().deleteV3NsUsersMePlatformsByPlatformidAll(platformId);
|
|
19736
|
+
};
|
|
19737
|
+
/**
|
|
19738
|
+
* POST [/iam/v3/public/users/me/verify_link/request](api)
|
|
19739
|
+
*
|
|
19740
|
+
* Required valid user authorization
|
|
19741
|
+
* The verification link is sent to email address
|
|
19742
|
+
* It will not send request if user email is already verified
|
|
19743
|
+
*/
|
|
19744
|
+
this.sendVerificationLink = (languageTag) => {
|
|
19745
|
+
return this.newInstance().postIamV3PublicUsersMeVerifyLinkRequest({ languageTag });
|
|
19746
|
+
};
|
|
19747
|
+
/**
|
|
19748
|
+
* GET [/iam/v3/public/namespaces/{namespace}/users/{userId}/platforms](api)
|
|
19749
|
+
*
|
|
19750
|
+
* This method retrieves platform accounts linked to user. Required valid user authorization.
|
|
19751
|
+
* action code: 10128
|
|
19752
|
+
*/
|
|
19753
|
+
this.getLinkedAccount = (userId) => {
|
|
19754
|
+
return this.newInstance().fetchV3NsUsersByUseridPlatforms(userId);
|
|
19755
|
+
};
|
|
19756
|
+
/**
|
|
19757
|
+
* GET [/iam/v3/public/users/me/headless/link/conflict](api)
|
|
19758
|
+
*
|
|
19759
|
+
* Note:
|
|
19760
|
+
* 1. My account should be full account
|
|
19761
|
+
* 2. My account not linked to request headless account's third platform.
|
|
19762
|
+
*/
|
|
19763
|
+
this.getLinkAccountByOneTimeCodeConflict = (params) => {
|
|
19764
|
+
return this.newInstance().fetchIamV3PublicUsersMeHeadlessLinkConflict(params);
|
|
19765
|
+
};
|
|
19766
|
+
/**
|
|
19767
|
+
* POST [/iam/v3/public/users/me/headless/linkWithProgression](api)
|
|
19768
|
+
*
|
|
19769
|
+
* Note:
|
|
19770
|
+
* 1. My account should be full account
|
|
19771
|
+
* 2. My account not linked to headless account's third platform.
|
|
19772
|
+
*/
|
|
19773
|
+
this.linkWithProgression = (data) => {
|
|
19774
|
+
return this.newInstance().postIamV3PublicUsersMeHeadlessLinkWithProgression(data);
|
|
19775
|
+
};
|
|
19585
19776
|
}
|
|
19586
19777
|
/**
|
|
19587
19778
|
* @internal
|
|
@@ -19738,24 +19929,36 @@ class AgreementApi {
|
|
|
19738
19929
|
this.conf = conf;
|
|
19739
19930
|
this.namespace = namespace;
|
|
19740
19931
|
this.cache = cache;
|
|
19741
|
-
|
|
19742
|
-
|
|
19743
|
-
|
|
19744
|
-
|
|
19745
|
-
|
|
19746
|
-
|
|
19747
|
-
|
|
19748
|
-
|
|
19749
|
-
|
|
19750
|
-
|
|
19751
|
-
|
|
19752
|
-
|
|
19753
|
-
|
|
19754
|
-
|
|
19755
|
-
|
|
19756
|
-
|
|
19757
|
-
|
|
19758
|
-
|
|
19932
|
+
/**
|
|
19933
|
+
* POST [/agreement/public/agreements/policies](api)
|
|
19934
|
+
*
|
|
19935
|
+
* Accepts many legal policy versions all at once. Supply with localized version policy id to accept an agreement.
|
|
19936
|
+
*
|
|
19937
|
+
* _Required permission_: login user
|
|
19938
|
+
*/
|
|
19939
|
+
this.acceptLegalPolicies = (acceptAgreements) => {
|
|
19940
|
+
return this.newInstance().postPublicAgreementsPolicies(acceptAgreements);
|
|
19941
|
+
};
|
|
19942
|
+
/**
|
|
19943
|
+
* GET [/agreement/public/agreements/policies](api)
|
|
19944
|
+
*
|
|
19945
|
+
* Retrieve accepted Legal Agreements.
|
|
19946
|
+
*
|
|
19947
|
+
* _Required permission_: login user
|
|
19948
|
+
*/
|
|
19949
|
+
this.getAgreements = () => {
|
|
19950
|
+
return this.newInstance().fetchPublicAgreementsPolicies();
|
|
19951
|
+
};
|
|
19952
|
+
/**
|
|
19953
|
+
* PATCH [/agreement/public/agreements/localized-policy-versions/preferences](api)
|
|
19954
|
+
*
|
|
19955
|
+
* Change marketing preference consent
|
|
19956
|
+
*
|
|
19957
|
+
* _Required permission_: login user
|
|
19958
|
+
*/
|
|
19959
|
+
this.updateMarketingPreferences = (acceptAgreements) => {
|
|
19960
|
+
return this.newInstance().patchPublicAgreementsLocalizedPolicyVersionsPreferences(acceptAgreements);
|
|
19961
|
+
};
|
|
19759
19962
|
}
|
|
19760
19963
|
newInstance() {
|
|
19761
19964
|
return new Agreement$(Network.create(this.conf), this.namespace, this.cache);
|
|
@@ -19868,12 +20071,16 @@ class EligibilitiesApi {
|
|
|
19868
20071
|
this.conf = conf;
|
|
19869
20072
|
this.namespace = namespace;
|
|
19870
20073
|
this.cache = cache;
|
|
19871
|
-
|
|
19872
|
-
|
|
19873
|
-
|
|
19874
|
-
|
|
19875
|
-
|
|
19876
|
-
|
|
20074
|
+
/**
|
|
20075
|
+
* GET [/agreement/public/eligibilities/namespaces/{namespace}](api)
|
|
20076
|
+
*
|
|
20077
|
+
* 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.
|
|
20078
|
+
*
|
|
20079
|
+
* _Required permission_: login user
|
|
20080
|
+
*/
|
|
20081
|
+
this.getUserEligibilities = () => {
|
|
20082
|
+
return this.newInstance().fetchPublicEligibilitiesNamespacesByNamespace();
|
|
20083
|
+
};
|
|
19877
20084
|
}
|
|
19878
20085
|
newInstance() {
|
|
19879
20086
|
return new Eligibilities$(Network.create(this.conf), this.namespace, this.cache);
|
|
@@ -19976,12 +20183,14 @@ class LocalizedPolicyVersionsApi {
|
|
|
19976
20183
|
this.conf = conf;
|
|
19977
20184
|
this.namespace = namespace;
|
|
19978
20185
|
this.cache = cache;
|
|
19979
|
-
|
|
19980
|
-
|
|
19981
|
-
|
|
19982
|
-
|
|
19983
|
-
|
|
19984
|
-
|
|
20186
|
+
/**
|
|
20187
|
+
* GET [/agreement/public/localized-policy-versions/{localizedPolicyVersionId}](api)
|
|
20188
|
+
*
|
|
20189
|
+
* Retrieve specific localized policy version including the policy version and base policy version where the localized policy version located.
|
|
20190
|
+
*/
|
|
20191
|
+
this.fetchLocalizedPolicyVersionById = (localizedPolicyVersionId) => {
|
|
20192
|
+
return this.newInstance().fetchPublicLocalizedPolicyVersionsByLocalizedpolicyversionid(localizedPolicyVersionId);
|
|
20193
|
+
};
|
|
19985
20194
|
}
|
|
19986
20195
|
newInstance() {
|
|
19987
20196
|
return new LocalizedPolicyVersions$(Network.create(this.conf), this.namespace, this.cache);
|
|
@@ -20087,18 +20296,37 @@ class PoliciesApi {
|
|
|
20087
20296
|
this.conf = conf;
|
|
20088
20297
|
this.namespace = namespace;
|
|
20089
20298
|
this.cache = cache;
|
|
20090
|
-
|
|
20091
|
-
|
|
20092
|
-
|
|
20093
|
-
|
|
20094
|
-
|
|
20095
|
-
|
|
20096
|
-
|
|
20097
|
-
|
|
20098
|
-
|
|
20099
|
-
|
|
20100
|
-
|
|
20101
|
-
|
|
20299
|
+
/**
|
|
20300
|
+
* GET [/agreement/public/policies/namespaces/{namespace}/countries/{countryCode}](api)
|
|
20301
|
+
*
|
|
20302
|
+
* Retrieve all active latest policies based on a namespace and country.
|
|
20303
|
+
*
|
|
20304
|
+
* - _Leave the policyType empty if you want to be responded with all policy type_
|
|
20305
|
+
* - _Fill the tags if you want to filter the responded policy by tags_
|
|
20306
|
+
* - _Fill the defaultOnEmpty with true if you want to be responded with default country-specific policy if your requested country is not exist_
|
|
20307
|
+
* - _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:_
|
|
20308
|
+
*
|
|
20309
|
+
* - Document 1 (default): Region US (default), UA
|
|
20310
|
+
* - Document 2 (default): Region US (default)
|
|
20311
|
+
* - Document 3 (default): Region US (default)
|
|
20312
|
+
* - User: Region UA
|
|
20313
|
+
* - Query: alwaysIncludeDefault: true
|
|
20314
|
+
* - Response: Document 1 (UA), Document 2 (US), Document 3 (US)
|
|
20315
|
+
*/
|
|
20316
|
+
this.fetchPoliciesByCountry = ({ countryCode, queryParams }) => {
|
|
20317
|
+
return this.newInstance().fetchPublicPoliciesNamespacesByNamespaceCountriesByCountrycode(countryCode, queryParams);
|
|
20318
|
+
};
|
|
20319
|
+
/**
|
|
20320
|
+
* GET [/agreement/public/policies/countries/{countryCode}](api)
|
|
20321
|
+
*
|
|
20322
|
+
* Retrieve all active latest policies based on country from all namespaces.
|
|
20323
|
+
* - _Leave the policyType empty if you want to be responded with all policy type_
|
|
20324
|
+
* - _Fill the tags if you want to filter the responded policy by tags_
|
|
20325
|
+
* - _Fill the defaultOnEmpty with true if you want to be responded with default country-specific policy if your requested country is not exist_
|
|
20326
|
+
*/
|
|
20327
|
+
this.fetchAllPoliciesByCountry = ({ countryCode, queryParams }) => {
|
|
20328
|
+
return this.newInstance().fetchPublicPoliciesCountriesByCountrycode(countryCode, queryParams);
|
|
20329
|
+
};
|
|
20102
20330
|
}
|
|
20103
20331
|
newInstance() {
|
|
20104
20332
|
return new Policies$(Network.create(this.conf), this.namespace, this.cache);
|
|
@@ -20182,12 +20410,21 @@ class PublicTemplateApi {
|
|
|
20182
20410
|
this.conf = conf;
|
|
20183
20411
|
this.namespace = namespace;
|
|
20184
20412
|
this.cache = cache;
|
|
20413
|
+
/**
|
|
20414
|
+
* @internal
|
|
20415
|
+
*/
|
|
20185
20416
|
this.getTemplateConfigs = (template) => {
|
|
20186
20417
|
return this.newInstance().fetchV1NsTemplatesByTemplateConfigs(template);
|
|
20187
20418
|
};
|
|
20419
|
+
/**
|
|
20420
|
+
* @internal
|
|
20421
|
+
*/
|
|
20188
20422
|
this.getTemplateConfig = (template, configId) => {
|
|
20189
20423
|
return this.newInstance().fetchV1NsTemplatesByTemplateConfigsByConfig(template, configId);
|
|
20190
20424
|
};
|
|
20425
|
+
/**
|
|
20426
|
+
* @internal
|
|
20427
|
+
*/
|
|
20191
20428
|
this.getDiscoveryTemplateConfigs = () => {
|
|
20192
20429
|
return this.newInstance().fetchV1NsTemplatesByTemplateConfigs(DISCOVERY_TEMPLATE_NAME);
|
|
20193
20430
|
};
|
|
@@ -20257,13 +20494,19 @@ class CurrencyApi {
|
|
|
20257
20494
|
this.namespace = namespace;
|
|
20258
20495
|
this.cache = cache;
|
|
20259
20496
|
/**
|
|
20260
|
-
*
|
|
20497
|
+
* GET [/platform/public/namespaces/{namespace}/currencies](api)
|
|
20498
|
+
*
|
|
20499
|
+
* List currencies of a namespace.
|
|
20500
|
+
*
|
|
20501
|
+
* Returns: Currency List
|
|
20261
20502
|
*/
|
|
20262
20503
|
this.getCurrencies = () => {
|
|
20263
20504
|
return this.newInstance().fetchNsCurrencies();
|
|
20264
20505
|
};
|
|
20265
20506
|
/**
|
|
20266
20507
|
* Get the currencies list and convert into a map of currency code and the currency itself
|
|
20508
|
+
*
|
|
20509
|
+
* @internal
|
|
20267
20510
|
*/
|
|
20268
20511
|
this.getCurrencyMap = async () => {
|
|
20269
20512
|
const result = await this.getCurrencies();
|
|
@@ -20876,38 +21119,42 @@ class EntitlementApi {
|
|
|
20876
21119
|
this.conf = conf;
|
|
20877
21120
|
this.namespace = namespace;
|
|
20878
21121
|
this.cache = cache;
|
|
20879
|
-
|
|
20880
|
-
|
|
20881
|
-
|
|
20882
|
-
|
|
20883
|
-
|
|
20884
|
-
|
|
20885
|
-
|
|
20886
|
-
|
|
20887
|
-
|
|
20888
|
-
|
|
20889
|
-
|
|
20890
|
-
|
|
20891
|
-
|
|
20892
|
-
|
|
20893
|
-
|
|
20894
|
-
|
|
20895
|
-
|
|
20896
|
-
|
|
20897
|
-
|
|
20898
|
-
|
|
20899
|
-
|
|
20900
|
-
|
|
20901
|
-
|
|
20902
|
-
|
|
20903
|
-
|
|
20904
|
-
|
|
20905
|
-
|
|
20906
|
-
|
|
20907
|
-
|
|
20908
|
-
|
|
20909
|
-
|
|
20910
|
-
|
|
21122
|
+
/**
|
|
21123
|
+
* GET [/platform/public/namespaces/{namespace}/users/{userId}/entitlements/byAppId](api)
|
|
21124
|
+
*
|
|
21125
|
+
* Get user app entitlement by appId.
|
|
21126
|
+
*/
|
|
21127
|
+
this.getEntitlementByAppId = ({ userId, appId }) => {
|
|
21128
|
+
return this.newInstance().fetchNsUsersByUseridEntitlementsByAppId(userId, {
|
|
21129
|
+
appId
|
|
21130
|
+
});
|
|
21131
|
+
};
|
|
21132
|
+
/**
|
|
21133
|
+
* Query user entitlements for a specific user.
|
|
21134
|
+
* Returns: entitlement list
|
|
21135
|
+
*/
|
|
21136
|
+
this.getEntitlements = ({ userId, queryParams }) => {
|
|
21137
|
+
return this.newInstance().fetchNsUsersByUseridEntitlements(userId, queryParams);
|
|
21138
|
+
};
|
|
21139
|
+
/**
|
|
21140
|
+
* Exists any user active entitlement of specified itemIds, skus and appIds
|
|
21141
|
+
*/
|
|
21142
|
+
this.getEntitlementOwnerShip = ({ userId, queryParams }) => {
|
|
21143
|
+
return this.newInstance().fetchNsUsersByUseridEntitlementsOwnershipAny(userId, queryParams);
|
|
21144
|
+
};
|
|
21145
|
+
/**
|
|
21146
|
+
* Get user entitlement ownership by itemIds.
|
|
21147
|
+
*/
|
|
21148
|
+
this.getEntitlementByItemIds = ({ userId, queryParams }) => {
|
|
21149
|
+
return this.newInstance().fetchNsUsersByUseridEntitlementsOwnershipByItemIds(userId, queryParams);
|
|
21150
|
+
};
|
|
21151
|
+
/**
|
|
21152
|
+
* 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
|
|
21153
|
+
* Returns: consumed entitlement
|
|
21154
|
+
*/
|
|
21155
|
+
this.claimEntitlement = ({ userId, entitlementId, data }) => {
|
|
21156
|
+
return this.newInstance().putNsUsersByUseridEntitlementsByEntitlementidDecrement(userId, entitlementId, data);
|
|
21157
|
+
};
|
|
20911
21158
|
}
|
|
20912
21159
|
newInstance() {
|
|
20913
21160
|
return new Entitlement$(Network.create(this.conf), this.namespace, this.cache);
|
|
@@ -21007,7 +21254,11 @@ class FulfillmentApi {
|
|
|
21007
21254
|
this.namespace = namespace;
|
|
21008
21255
|
this.cache = cache;
|
|
21009
21256
|
/**
|
|
21010
|
-
*
|
|
21257
|
+
* POST [/platform/public/namespaces/{namespace}/users/{userId}/fulfillment/code](api)
|
|
21258
|
+
*
|
|
21259
|
+
* Redeem campaign code
|
|
21260
|
+
*
|
|
21261
|
+
* Returns: fulfillment result
|
|
21011
21262
|
*/
|
|
21012
21263
|
this.redeemCode = ({ userId, data }) => {
|
|
21013
21264
|
return this.newInstance().postNsUsersByUseridFulfillmentCode(userId, data);
|
|
@@ -21560,64 +21811,90 @@ class ItemApi {
|
|
|
21560
21811
|
this.conf = conf;
|
|
21561
21812
|
this.namespace = namespace;
|
|
21562
21813
|
this.cache = cache;
|
|
21563
|
-
|
|
21564
|
-
|
|
21565
|
-
|
|
21566
|
-
|
|
21567
|
-
|
|
21568
|
-
|
|
21569
|
-
|
|
21570
|
-
|
|
21571
|
-
|
|
21572
|
-
|
|
21573
|
-
|
|
21574
|
-
|
|
21575
|
-
|
|
21576
|
-
|
|
21577
|
-
|
|
21578
|
-
|
|
21579
|
-
|
|
21580
|
-
|
|
21581
|
-
|
|
21582
|
-
|
|
21583
|
-
|
|
21584
|
-
|
|
21585
|
-
|
|
21586
|
-
|
|
21587
|
-
|
|
21588
|
-
|
|
21589
|
-
|
|
21590
|
-
|
|
21591
|
-
|
|
21592
|
-
|
|
21593
|
-
|
|
21594
|
-
|
|
21595
|
-
|
|
21596
|
-
|
|
21597
|
-
|
|
21598
|
-
|
|
21599
|
-
|
|
21600
|
-
|
|
21601
|
-
|
|
21602
|
-
|
|
21603
|
-
|
|
21604
|
-
|
|
21605
|
-
|
|
21606
|
-
|
|
21607
|
-
|
|
21608
|
-
|
|
21609
|
-
|
|
21610
|
-
|
|
21611
|
-
|
|
21612
|
-
|
|
21613
|
-
|
|
21614
|
-
|
|
21615
|
-
|
|
21616
|
-
|
|
21617
|
-
|
|
21618
|
-
|
|
21619
|
-
|
|
21620
|
-
|
|
21814
|
+
/**
|
|
21815
|
+
* GET [/platform/public/namespaces/{namespace}/items/byAppId](api)
|
|
21816
|
+
*
|
|
21817
|
+
* This API is used to get item by appId
|
|
21818
|
+
*
|
|
21819
|
+
* Returns: the item with that appId
|
|
21820
|
+
*/
|
|
21821
|
+
this.getItemByAppId = ({ ...queryParams }) => {
|
|
21822
|
+
return this.newInstance().fetchNsItemsByAppId(queryParams);
|
|
21823
|
+
};
|
|
21824
|
+
/**
|
|
21825
|
+
* GET [/platform/public/namespaces/{namespace}/items/{itemId}/dynamic](api)
|
|
21826
|
+
*
|
|
21827
|
+
* Get item dynamic data for a published item
|
|
21828
|
+
*
|
|
21829
|
+
* Returns: item dynamic data
|
|
21830
|
+
*/
|
|
21831
|
+
this.getItemByItemIdDynamic = (itemId) => {
|
|
21832
|
+
return this.newInstance().fetchNsItemsByItemidDynamic(itemId);
|
|
21833
|
+
};
|
|
21834
|
+
/**
|
|
21835
|
+
* GET [/platform/public/namespaces/{namespace}/items/byCriteria](api)
|
|
21836
|
+
*/
|
|
21837
|
+
this.fetchItemsByCriteria = ({ queryParams }) => {
|
|
21838
|
+
return this.newInstance().fetchNsItemsByCriteria(queryParams);
|
|
21839
|
+
};
|
|
21840
|
+
/**
|
|
21841
|
+
* GET [/platform/public/namespaces/{namespace}/items/locale/byIds](api)
|
|
21842
|
+
*
|
|
21843
|
+
* This API is used to query items by criteria within a store. If item not exist in specific region, default region item will return.
|
|
21844
|
+
*
|
|
21845
|
+
* Returns: the list of items
|
|
21846
|
+
*/
|
|
21847
|
+
this.getItemsByItemIds = ({ queryParams }) => {
|
|
21848
|
+
return this.newInstance().fetchNsItemsLocaleByIds(queryParams);
|
|
21849
|
+
};
|
|
21850
|
+
// TODO if not used, delete below
|
|
21851
|
+
// /**
|
|
21852
|
+
// * Fetch the items and convert it into a map of `itemId` and its item info
|
|
21853
|
+
// */
|
|
21854
|
+
// fetchAvailableItemInfoMap = async ({ queryParams }: { queryParams: QueryParamsItemIds }) => {
|
|
21855
|
+
// const result = await this.getItemsByItemIds({ queryParams })
|
|
21856
|
+
// if (result.response) {
|
|
21857
|
+
// return {
|
|
21858
|
+
// error: null,
|
|
21859
|
+
// value: result.response.data.reduce((map: Map<string, ItemInfo>, availableItemInfo) => {
|
|
21860
|
+
// const { itemId } = availableItemInfo
|
|
21861
|
+
// if (itemId) {
|
|
21862
|
+
// map.set(itemId, availableItemInfo)
|
|
21863
|
+
// }
|
|
21864
|
+
// return map
|
|
21865
|
+
// }, new Map())
|
|
21866
|
+
// }
|
|
21867
|
+
// }
|
|
21868
|
+
// return result
|
|
21869
|
+
// }
|
|
21870
|
+
/**
|
|
21871
|
+
* GET [/platform/public/namespaces/{namespace}/items/{itemId}/locale](api)
|
|
21872
|
+
*
|
|
21873
|
+
* This API is used to get an item in locale. If item not exist in specific region, default region item will return.
|
|
21874
|
+
*
|
|
21875
|
+
* Returns: item data
|
|
21876
|
+
*/
|
|
21877
|
+
this.getItemsByItemIdLocale = ({ itemId, queryParams }) => {
|
|
21878
|
+
return this.newInstance().fetchNsItemsByItemidLocale(itemId, queryParams);
|
|
21879
|
+
};
|
|
21880
|
+
/**
|
|
21881
|
+
* GET [/platform/public/namespaces/{namespace}/items/{itemId}/app/locale](api)
|
|
21882
|
+
*
|
|
21883
|
+
* This API is used to get an app in locale. If app not exist in specific region, default region app will return.
|
|
21884
|
+
*
|
|
21885
|
+
* Returns: app data
|
|
21886
|
+
*/
|
|
21887
|
+
this.getAppInfoByItemId = ({ itemId, queryParams }) => {
|
|
21888
|
+
return this.newInstance().fetchNsItemsByItemidAppLocale(itemId, queryParams);
|
|
21889
|
+
};
|
|
21890
|
+
/**
|
|
21891
|
+
* POST [/platform/public/namespaces/{namespace}/items/purchase/conditions/validate](api)
|
|
21892
|
+
*
|
|
21893
|
+
* This API is used to validate user item purchase condition
|
|
21894
|
+
*/
|
|
21895
|
+
this.validatePurchaseCondition = (data) => {
|
|
21896
|
+
return this.newInstance().postNsItemsPurchaseConditionsValidate(data);
|
|
21897
|
+
};
|
|
21621
21898
|
}
|
|
21622
21899
|
newInstance() {
|
|
21623
21900
|
return new Item$(Network.create(this.conf), this.namespace, this.cache);
|
|
@@ -21858,31 +22135,102 @@ class OrderApi {
|
|
|
21858
22135
|
this.namespace = namespace;
|
|
21859
22136
|
this.cache = cache;
|
|
21860
22137
|
/**
|
|
21861
|
-
*
|
|
22138
|
+
* GET [/platform/public/namespaces/{namespace}/users/{userId}/orders](api)
|
|
22139
|
+
*
|
|
22140
|
+
* Query user orders
|
|
22141
|
+
*
|
|
22142
|
+
* Returns a paginated list of `OrderInfo`:
|
|
22143
|
+
* <pre lang="json">{
|
|
22144
|
+
orderNo,
|
|
22145
|
+
paymentOrderNo,
|
|
22146
|
+
namespace,
|
|
22147
|
+
userId,
|
|
22148
|
+
itemId,
|
|
22149
|
+
sandbox,
|
|
22150
|
+
quantity,
|
|
22151
|
+
price,
|
|
22152
|
+
discountedPrice,
|
|
22153
|
+
creationOptions
|
|
22154
|
+
paymentProvider: ('WALLET', 'XSOLLA', 'ADYEN', 'STRIPE', 'CHECKOUT', 'ALIPAY', 'WXPAY', 'PAYPAL'),
|
|
22155
|
+
paymentMethod,
|
|
22156
|
+
tax,
|
|
22157
|
+
vat,
|
|
22158
|
+
salesTax,
|
|
22159
|
+
paymentProviderFee,
|
|
22160
|
+
paymentMethodFee
|
|
22161
|
+
currency: CurrencySummary,
|
|
22162
|
+
paymentStationUrl,
|
|
22163
|
+
itemSnapshot,
|
|
22164
|
+
region,
|
|
22165
|
+
language,
|
|
22166
|
+
status: (
|
|
22167
|
+
'INIT',
|
|
22168
|
+
'CHARGED',
|
|
22169
|
+
'CHARGEBACK',
|
|
22170
|
+
'CHARGEBACK_REVERSED',
|
|
22171
|
+
'FULFILLED',
|
|
22172
|
+
'FULFILL_FAILED',
|
|
22173
|
+
'REFUNDING',
|
|
22174
|
+
'REFUNDED',
|
|
22175
|
+
'REFUND_FAILED',
|
|
22176
|
+
'CLOSED',
|
|
22177
|
+
'DELETED'
|
|
22178
|
+
),
|
|
22179
|
+
statusReason,
|
|
22180
|
+
createdTime,
|
|
22181
|
+
chargedTime,
|
|
22182
|
+
fulfilledTime,
|
|
22183
|
+
refundedTime,
|
|
22184
|
+
chargebackTime,
|
|
22185
|
+
chargebackReversedTime,
|
|
22186
|
+
expireTime,
|
|
22187
|
+
paymentRemainSeconds,
|
|
22188
|
+
ext,
|
|
22189
|
+
totalTax,
|
|
22190
|
+
totalPrice,
|
|
22191
|
+
subtotalPrice,
|
|
22192
|
+
createdAt,
|
|
22193
|
+
updatedAt
|
|
22194
|
+
}</pre>
|
|
21862
22195
|
*/
|
|
21863
22196
|
this.getOrderList = ({ userId, queryParams }) => {
|
|
21864
22197
|
return this.newInstance().fetchNsUsersByUseridOrders(userId, queryParams);
|
|
21865
22198
|
};
|
|
21866
22199
|
/**
|
|
21867
|
-
*
|
|
22200
|
+
* GET [/platform/public/namespaces/{namespace}/users/{userId}/orders/{orderNo}](api)
|
|
22201
|
+
*
|
|
22202
|
+
* Get user order.
|
|
22203
|
+
*
|
|
22204
|
+
* Returns: `OrderInfo`
|
|
21868
22205
|
*/
|
|
21869
22206
|
this.getOrderByOrderNo = ({ userId, orderNo }) => {
|
|
21870
22207
|
return this.newInstance().fetchNsUsersByUseridOrdersByOrderno(userId, orderNo);
|
|
21871
22208
|
};
|
|
21872
22209
|
/**
|
|
21873
|
-
*
|
|
22210
|
+
* PUT [/platform/public/namespaces/{namespace}/users/{userId}/orders/{orderNo}/cancel](api)
|
|
22211
|
+
*
|
|
22212
|
+
* Cancel user order.
|
|
22213
|
+
*
|
|
22214
|
+
* Returns: cancelled `OrderInfo`
|
|
21874
22215
|
*/
|
|
21875
22216
|
this.cancelOrder = ({ userId, orderNo }) => {
|
|
21876
22217
|
return this.newInstance().putNsUsersByUseridOrdersByOrdernoCancel(userId, orderNo);
|
|
21877
22218
|
};
|
|
21878
22219
|
/**
|
|
21879
|
-
*
|
|
22220
|
+
* POST [/platform/public/namespaces/{namespace}/users/{userId}/orders](api)
|
|
22221
|
+
*
|
|
22222
|
+
* Create an order. The result contains the checkout link and payment token.
|
|
22223
|
+
* User with permission SANDBOX will create sandbox order that not real paid for xsolla/alipay and not validate price for wxpay.
|
|
22224
|
+
*
|
|
22225
|
+
* Returns: created `OrderInfo`
|
|
21880
22226
|
*/
|
|
21881
22227
|
this.createOrder = ({ userId, data }) => {
|
|
21882
22228
|
return this.newInstance().postNsUsersByUseridOrders(userId, data);
|
|
21883
22229
|
};
|
|
21884
22230
|
/**
|
|
21885
22231
|
* Fetch all information needed for a user to check the user's availability to purchase the item
|
|
22232
|
+
*
|
|
22233
|
+
* @internal
|
|
21886
22234
|
*/
|
|
21887
22235
|
this.fetchPrePurchaseInformation = async ({ userId, item }) => {
|
|
21888
22236
|
const currencyApi = new CurrencyApi(this.conf, this.namespace, this.cache);
|
|
@@ -22211,31 +22559,49 @@ class PaymentApi {
|
|
|
22211
22559
|
this.namespace = namespace;
|
|
22212
22560
|
this.cache = cache;
|
|
22213
22561
|
/**
|
|
22214
|
-
*
|
|
22562
|
+
* GET [/platform/public/namespaces/{namespace}/users/{userId}/payment/accounts](api)
|
|
22563
|
+
*
|
|
22564
|
+
* Get payment accounts.
|
|
22565
|
+
*
|
|
22566
|
+
* Returns: Payment account list `PaymentAccountArray`
|
|
22215
22567
|
*/
|
|
22216
22568
|
this.getPaymentAccounts = (userId) => {
|
|
22217
22569
|
return this.newInstance().fetchNsUsersByUseridPaymentAccounts(userId);
|
|
22218
22570
|
};
|
|
22219
22571
|
/**
|
|
22220
|
-
*
|
|
22572
|
+
* DELETE [/platform/public/namespaces/{namespace}/users/{userId}/payment/accounts/{type}/{id}](api)
|
|
22573
|
+
*
|
|
22574
|
+
* Delete payment account.
|
|
22221
22575
|
*/
|
|
22222
22576
|
this.deletePaymentAccount = ({ userId, type, id }) => {
|
|
22223
22577
|
return this.newInstance().deleteNsUsersByUseridPaymentAccountsByTypeById(userId, type, id);
|
|
22224
22578
|
};
|
|
22225
22579
|
/**
|
|
22226
|
-
*
|
|
22580
|
+
* GET [/platform/public/namespaces/{namespace}/payment/orders/{paymentOrderNo}/info](api)
|
|
22581
|
+
*
|
|
22582
|
+
* Get payment order info.
|
|
22583
|
+
*
|
|
22584
|
+
* Returns: Payment order details `PaymentOrderDetails`
|
|
22227
22585
|
*/
|
|
22228
22586
|
this.getPaymentInfo = (paymentOrderNo) => {
|
|
22229
22587
|
return new PaymentStation$(Network.create(this.conf), this.namespace, this.cache).fetchNsPaymentOrdersByPaymentordernoInfo(paymentOrderNo);
|
|
22230
22588
|
};
|
|
22231
22589
|
/**
|
|
22232
|
-
*
|
|
22590
|
+
* POST [/platform/public/namespaces/{namespace}/payment/orders/{paymentOrderNo}/pay](api)
|
|
22591
|
+
*
|
|
22592
|
+
* Do payment(For now, this only support checkout.com).
|
|
22593
|
+
*
|
|
22594
|
+
* Returns: Payment process result
|
|
22233
22595
|
*/
|
|
22234
22596
|
this.processPaymentOrder = (paymentOrderNo, data, queryParams) => {
|
|
22235
22597
|
return new PaymentStation$(Network.create(this.conf), this.namespace, this.cache).postNsPaymentOrdersByPaymentordernoPay(paymentOrderNo, data, queryParams);
|
|
22236
22598
|
};
|
|
22237
22599
|
/**
|
|
22238
|
-
*
|
|
22600
|
+
* GET [/platform/public/namespaces/{namespace}/payment/publicconfig](api)
|
|
22601
|
+
*
|
|
22602
|
+
* Get payment provider public config, at current only Strip provide public config.
|
|
22603
|
+
*
|
|
22604
|
+
* Returns: Public config
|
|
22239
22605
|
*/
|
|
22240
22606
|
this.getPaymentProviderPublicConfig = (paymentProvider, region, sandbox) => {
|
|
22241
22607
|
return new PaymentStation$(Network.create(this.conf), this.namespace, this.cache).fetchNsPaymentPublicconfig({
|
|
@@ -22245,19 +22611,28 @@ class PaymentApi {
|
|
|
22245
22611
|
});
|
|
22246
22612
|
};
|
|
22247
22613
|
/**
|
|
22248
|
-
*
|
|
22614
|
+
* GET [/platform/public/namespaces/{namespace}/payment/orders/{paymentOrderNo}/status](api)
|
|
22615
|
+
*
|
|
22616
|
+
* Check payment order paid status.
|
|
22617
|
+
*
|
|
22618
|
+
* Returns: Payment order paid result
|
|
22249
22619
|
*/
|
|
22250
22620
|
this.getPaymentOrderStatus = (paymentOrderNo) => {
|
|
22251
22621
|
return new PaymentStation$(Network.create(this.conf), this.namespace, this.cache).fetchNsPaymentOrdersByPaymentordernoStatus(paymentOrderNo);
|
|
22252
22622
|
};
|
|
22253
22623
|
/**
|
|
22254
|
-
* Get payment methods
|
|
22624
|
+
* Get payment methods.
|
|
22625
|
+
* Returns: Payment method list
|
|
22255
22626
|
*/
|
|
22256
22627
|
this.getPaymentMethods = (paymentOrderNo) => {
|
|
22257
22628
|
return new PaymentStation$(Network.create(this.conf), this.namespace, this.cache).fetchNsPaymentMethods({ paymentOrderNo });
|
|
22258
22629
|
};
|
|
22259
22630
|
/**
|
|
22260
|
-
*
|
|
22631
|
+
* GET [/platform/public/namespaces/{namespace}/payment/methods](api)
|
|
22632
|
+
*
|
|
22633
|
+
* Check and get a payment order's should pay tax.
|
|
22634
|
+
*
|
|
22635
|
+
* Returns: tax result
|
|
22261
22636
|
*/
|
|
22262
22637
|
this.getPaymentTax = (paymentProvider, paymentOrderNo, zipCode) => {
|
|
22263
22638
|
return new PaymentStation$(Network.create(this.conf), this.namespace, this.cache).fetchNsPaymentTax({
|
|
@@ -22267,7 +22642,11 @@ class PaymentApi {
|
|
|
22267
22642
|
});
|
|
22268
22643
|
};
|
|
22269
22644
|
/**
|
|
22270
|
-
*
|
|
22645
|
+
* POST [/platform/public/namespaces/{namespace}/payment/link](api)
|
|
22646
|
+
*
|
|
22647
|
+
* Get payment url.
|
|
22648
|
+
*
|
|
22649
|
+
* Returns: Get payment link
|
|
22271
22650
|
*/
|
|
22272
22651
|
this.createPaymentUrl = (data) => {
|
|
22273
22652
|
return new PaymentStation$(Network.create(this.conf), this.namespace, this.cache).postNsPaymentLink(data);
|
|
@@ -22523,42 +22902,73 @@ class SubscriptionApi {
|
|
|
22523
22902
|
this.conf = conf;
|
|
22524
22903
|
this.namespace = namespace;
|
|
22525
22904
|
this.cache = cache;
|
|
22526
|
-
|
|
22527
|
-
|
|
22528
|
-
|
|
22529
|
-
|
|
22530
|
-
|
|
22531
|
-
|
|
22532
|
-
|
|
22533
|
-
|
|
22534
|
-
|
|
22535
|
-
|
|
22536
|
-
|
|
22537
|
-
|
|
22538
|
-
|
|
22539
|
-
|
|
22540
|
-
|
|
22541
|
-
|
|
22542
|
-
|
|
22543
|
-
|
|
22544
|
-
|
|
22545
|
-
|
|
22546
|
-
|
|
22547
|
-
|
|
22548
|
-
|
|
22549
|
-
|
|
22550
|
-
|
|
22551
|
-
|
|
22552
|
-
|
|
22553
|
-
|
|
22554
|
-
|
|
22555
|
-
|
|
22556
|
-
|
|
22557
|
-
|
|
22558
|
-
|
|
22559
|
-
|
|
22560
|
-
|
|
22561
|
-
|
|
22905
|
+
/**
|
|
22906
|
+
* GET [/platform/public/namespaces/{namespace}/users/{userId}/subscriptions](api)
|
|
22907
|
+
*
|
|
22908
|
+
* Query user subscriptions.
|
|
22909
|
+
*
|
|
22910
|
+
* Returns: paginated subscription
|
|
22911
|
+
*/
|
|
22912
|
+
this.getUserSubscriptions = ({ userId, queryParams }) => {
|
|
22913
|
+
return this.newInstance().fetchNsUsersByUseridSubscriptions(userId, queryParams);
|
|
22914
|
+
};
|
|
22915
|
+
/**
|
|
22916
|
+
* GET [/platform/public/namespaces/{namespace}/users/{userId}/subscriptions/{subscriptionId}](api)
|
|
22917
|
+
*
|
|
22918
|
+
* Get user subscription.
|
|
22919
|
+
*
|
|
22920
|
+
* Returns: subscription
|
|
22921
|
+
*/
|
|
22922
|
+
this.getUserSubscriptionBySubscriptionId = ({ userId, subscriptionId }) => {
|
|
22923
|
+
return this.newInstance().fetchNsUsersByUseridSubscriptionsBySubscriptionid(userId, subscriptionId);
|
|
22924
|
+
};
|
|
22925
|
+
/**
|
|
22926
|
+
* POST [/platform/public/namespaces/{namespace}/users/{userId}/subscriptions](api)
|
|
22927
|
+
*
|
|
22928
|
+
* Subscribe a subscription. Support both real and virtual payment. Need go through payment flow using the paymentOrderNo if paymentFlowRequired true.
|
|
22929
|
+
* __ACTIVE USER subscription can't do subscribe again.__
|
|
22930
|
+
* __The next billing date will be X(default 4) hours before the current period ends if correctly subscribed.__
|
|
22931
|
+
* User with permission SANDBOX will create sandbox subscription that not real paid.
|
|
22932
|
+
*
|
|
22933
|
+
* Returns: created subscription
|
|
22934
|
+
*/
|
|
22935
|
+
this.createSubscription = ({ userId, data }) => {
|
|
22936
|
+
return this.newInstance().postNsUsersByUseridSubscriptions(userId, data);
|
|
22937
|
+
};
|
|
22938
|
+
/**
|
|
22939
|
+
* GET [/platform/public/namespaces/{namespace}/users/{userId}/subscriptions/{subscriptionId}/history](api)
|
|
22940
|
+
*
|
|
22941
|
+
* Get user subscription billing histories.
|
|
22942
|
+
*
|
|
22943
|
+
* Returns: paginated subscription history
|
|
22944
|
+
*/
|
|
22945
|
+
this.getUserSubscriptionBillingHistory = ({ userId, subscriptionId, queryParams }) => {
|
|
22946
|
+
return this.newInstance().fetchNsUsersByUseridSubscriptionsBySubscriptionidHistory(userId, subscriptionId, queryParams);
|
|
22947
|
+
};
|
|
22948
|
+
/**
|
|
22949
|
+
* PUT [/platform/public/namespaces/{namespace}/users/{userId}/subscriptions/{subscriptionId}/billingAccount](api)
|
|
22950
|
+
*
|
|
22951
|
+
* Request to change a subscription billing account, this will guide user to payment station.
|
|
22952
|
+
* The actual change will happen at the 0 payment notification successfully handled.
|
|
22953
|
+
* Only ACTIVE USER subscription with real currency billing account can be changed.
|
|
22954
|
+
*
|
|
22955
|
+
* Returns: updated subscription
|
|
22956
|
+
*/
|
|
22957
|
+
this.updateUserSubscriptionPaymentMethod = ({ userId, subscriptionId }) => {
|
|
22958
|
+
return this.newInstance().putNsUsersByUseridSubscriptionsBySubscriptionidBillingAccount(userId, subscriptionId);
|
|
22959
|
+
};
|
|
22960
|
+
/**
|
|
22961
|
+
* PUT [/platform/public/namespaces/{namespace}/users/{userId}/subscriptions/{subscriptionId}/cancel](api)
|
|
22962
|
+
*
|
|
22963
|
+
* Cancel a subscription, only ACTIVE subscription can be cancelled.
|
|
22964
|
+
* __Ensure successfully cancel, recommend at least 1 day before current period ends, otherwise it may be charging or charged.__
|
|
22965
|
+
* Set immediate true, the subscription will be terminated immediately, otherwise till the end of current billing cycle.
|
|
22966
|
+
*
|
|
22967
|
+
* Returns: cancelled subscription
|
|
22968
|
+
*/
|
|
22969
|
+
this.cancelUserSubscription = ({ userId, subscriptionId, data }) => {
|
|
22970
|
+
return this.newInstance().putNsUsersByUseridSubscriptionsBySubscriptionidCancel(userId, subscriptionId, data);
|
|
22971
|
+
};
|
|
22562
22972
|
}
|
|
22563
22973
|
newInstance() {
|
|
22564
22974
|
return new Subscription$(Network.create(this.conf), this.namespace, this.cache);
|
|
@@ -22725,19 +23135,32 @@ class WalletApi {
|
|
|
22725
23135
|
this.namespace = namespace;
|
|
22726
23136
|
this.cache = cache;
|
|
22727
23137
|
/**
|
|
22728
|
-
*
|
|
23138
|
+
* GET [/platform/public/namespaces/{namespace}/users/me/wallets/{currencyCode}](api)
|
|
23139
|
+
*
|
|
23140
|
+
* get my wallet by currency code and namespace.
|
|
23141
|
+
*
|
|
23142
|
+
* Returns: wallet info
|
|
23143
|
+
*
|
|
23144
|
+
* Path's namespace:
|
|
23145
|
+
* - can be filled with __publisher namespace__ in order to get __publisher user wallet__
|
|
23146
|
+
* - can be filled with __game namespace__ in order to get __game user wallet__
|
|
22729
23147
|
*/
|
|
22730
23148
|
this.getUserMeWallet = (currencyCode) => {
|
|
22731
23149
|
return this.newInstance().fetchNsUsersMeWalletsByCurrencycode(currencyCode);
|
|
22732
23150
|
};
|
|
22733
23151
|
/**
|
|
22734
|
-
*
|
|
23152
|
+
* GET [/platform/public/namespaces/{namespace}/users/{userId}/wallets/{currencyCode}](api)
|
|
23153
|
+
*
|
|
23154
|
+
* Get a wallet by currency code.
|
|
23155
|
+
*
|
|
23156
|
+
* Returns: wallet info
|
|
22735
23157
|
*/
|
|
22736
23158
|
this.getWalletByUserId = (userId, currencyCode) => {
|
|
22737
23159
|
return this.newInstance().fetchNsUsersByUseridWalletsByCurrencycode(userId, currencyCode);
|
|
22738
23160
|
};
|
|
22739
23161
|
/**
|
|
22740
23162
|
* get a map of wallet represented by its currency code
|
|
23163
|
+
* @internal
|
|
22741
23164
|
*/
|
|
22742
23165
|
this.getWalletMap = async ({ userId, currencyCodes }) => {
|
|
22743
23166
|
try {
|
|
@@ -22767,7 +23190,7 @@ class WalletApi {
|
|
|
22767
23190
|
class ApiFactory {
|
|
22768
23191
|
static userAuthorization(config, options, refreshToken, namespace, overrides) {
|
|
22769
23192
|
const conf = ApiFactory.mergedConfigs(config, overrides);
|
|
22770
|
-
return new
|
|
23193
|
+
return new UserAuthorizationApi(conf, namespace, false, {
|
|
22771
23194
|
clientId: options.clientId,
|
|
22772
23195
|
redirectURI: options.redirectURI,
|
|
22773
23196
|
baseURL: options.baseURL,
|
|
@@ -22925,10 +23348,104 @@ const injectErrorInterceptors = (baseUrl, onUserEligibilityChange, onError) => {
|
|
|
22925
23348
|
});
|
|
22926
23349
|
};
|
|
22927
23350
|
|
|
22928
|
-
|
|
23351
|
+
/*
|
|
23352
|
+
* Copyright (c) 2023 AccelByte Inc. All Rights Reserved
|
|
23353
|
+
* This is licensed software from AccelByte Inc, for limitations
|
|
23354
|
+
* and restrictions contact your company contract manager.
|
|
23355
|
+
*/
|
|
23356
|
+
var BasicVersion = {
|
|
23357
|
+
title: 'basic',
|
|
23358
|
+
name: 'justice-basic-service',
|
|
23359
|
+
version: '2.6.0',
|
|
23360
|
+
buildDate: '2023-02-22T00:53:23.199Z'
|
|
23361
|
+
};
|
|
22929
23362
|
|
|
22930
23363
|
/*
|
|
22931
|
-
* Copyright (c)
|
|
23364
|
+
* Copyright (c) 2023 AccelByte Inc. All Rights Reserved
|
|
23365
|
+
* This is licensed software from AccelByte Inc, for limitations
|
|
23366
|
+
* and restrictions contact your company contract manager.
|
|
23367
|
+
*/
|
|
23368
|
+
var BuildinfoVersion = {
|
|
23369
|
+
title: 'buildinfo',
|
|
23370
|
+
name: 'justice-buildinfo-service',
|
|
23371
|
+
version: '3.28.2',
|
|
23372
|
+
buildDate: '2023-02-22T00:53:23.199Z'
|
|
23373
|
+
};
|
|
23374
|
+
|
|
23375
|
+
/*
|
|
23376
|
+
* Copyright (c) 2023 AccelByte Inc. All Rights Reserved
|
|
23377
|
+
* This is licensed software from AccelByte Inc, for limitations
|
|
23378
|
+
* and restrictions contact your company contract manager.
|
|
23379
|
+
*/
|
|
23380
|
+
var EventVersion = {
|
|
23381
|
+
title: 'event',
|
|
23382
|
+
name: 'justice-event-log-service',
|
|
23383
|
+
version: undefined,
|
|
23384
|
+
buildDate: '2023-02-22T00:53:23.199Z'
|
|
23385
|
+
};
|
|
23386
|
+
|
|
23387
|
+
/*
|
|
23388
|
+
* Copyright (c) 2023 AccelByte Inc. All Rights Reserved
|
|
23389
|
+
* This is licensed software from AccelByte Inc, for limitations
|
|
23390
|
+
* and restrictions contact your company contract manager.
|
|
23391
|
+
*/
|
|
23392
|
+
var GdprVersion = {
|
|
23393
|
+
title: 'gdpr',
|
|
23394
|
+
name: 'justice-gdpr-service',
|
|
23395
|
+
version: '1.19.1',
|
|
23396
|
+
buildDate: '2023-02-22T00:53:23.199Z'
|
|
23397
|
+
};
|
|
23398
|
+
|
|
23399
|
+
/*
|
|
23400
|
+
* Copyright (c) 2023 AccelByte Inc. All Rights Reserved
|
|
23401
|
+
* This is licensed software from AccelByte Inc, for limitations
|
|
23402
|
+
* and restrictions contact your company contract manager.
|
|
23403
|
+
*/
|
|
23404
|
+
var IamVersion = {
|
|
23405
|
+
title: 'iam',
|
|
23406
|
+
name: 'justice-iam-service',
|
|
23407
|
+
version: '5.28.0',
|
|
23408
|
+
buildDate: '2023-02-22T00:53:23.199Z'
|
|
23409
|
+
};
|
|
23410
|
+
|
|
23411
|
+
/*
|
|
23412
|
+
* Copyright (c) 2023 AccelByte Inc. All Rights Reserved
|
|
23413
|
+
* This is licensed software from AccelByte Inc, for limitations
|
|
23414
|
+
* and restrictions contact your company contract manager.
|
|
23415
|
+
*/
|
|
23416
|
+
var LegalVersion = {
|
|
23417
|
+
title: 'legal',
|
|
23418
|
+
name: 'justice-legal-service',
|
|
23419
|
+
version: '1.27.0',
|
|
23420
|
+
buildDate: '2023-02-22T00:53:23.199Z'
|
|
23421
|
+
};
|
|
23422
|
+
|
|
23423
|
+
/*
|
|
23424
|
+
* Copyright (c) 2023 AccelByte Inc. All Rights Reserved
|
|
23425
|
+
* This is licensed software from AccelByte Inc, for limitations
|
|
23426
|
+
* and restrictions contact your company contract manager.
|
|
23427
|
+
*/
|
|
23428
|
+
var OdinConfigVersion = {
|
|
23429
|
+
title: 'odin-config',
|
|
23430
|
+
name: 'config-service-app',
|
|
23431
|
+
version: 'dev',
|
|
23432
|
+
buildDate: '2023-02-22T00:53:23.199Z'
|
|
23433
|
+
};
|
|
23434
|
+
|
|
23435
|
+
/*
|
|
23436
|
+
* Copyright (c) 2023 AccelByte Inc. All Rights Reserved
|
|
23437
|
+
* This is licensed software from AccelByte Inc, for limitations
|
|
23438
|
+
* and restrictions contact your company contract manager.
|
|
23439
|
+
*/
|
|
23440
|
+
var PlatformVersion = {
|
|
23441
|
+
title: 'platform',
|
|
23442
|
+
name: 'justice-platform-service',
|
|
23443
|
+
version: '4.24.0',
|
|
23444
|
+
buildDate: '2023-02-22T00:53:23.199Z'
|
|
23445
|
+
};
|
|
23446
|
+
|
|
23447
|
+
/*
|
|
23448
|
+
* Copyright (c) 2022-2023 AccelByte Inc. All Rights Reserved
|
|
22932
23449
|
* This is licensed software from AccelByte Inc, for limitations
|
|
22933
23450
|
* and restrictions contact your company contract manager.
|
|
22934
23451
|
*/
|
|
@@ -22974,7 +23491,6 @@ class AccelbyteSDKFactory {
|
|
|
22974
23491
|
}
|
|
22975
23492
|
};
|
|
22976
23493
|
this.options = {
|
|
22977
|
-
loglevel: 'INFO',
|
|
22978
23494
|
cache: false,
|
|
22979
23495
|
...options
|
|
22980
23496
|
};
|
|
@@ -22989,9 +23505,7 @@ class AccelbyteSDKFactory {
|
|
|
22989
23505
|
...config?.headers
|
|
22990
23506
|
}
|
|
22991
23507
|
};
|
|
22992
|
-
|
|
22993
|
-
Logger.info('Accelbyte-SDK initialized with config', this.config);
|
|
22994
|
-
}
|
|
23508
|
+
// Logger.info('Accelbyte-SDK initialized with config', this.config)
|
|
22995
23509
|
}
|
|
22996
23510
|
init() {
|
|
22997
23511
|
const { baseURL, clientId } = this.options;
|
|
@@ -23005,18 +23519,21 @@ class AccelbyteSDKFactory {
|
|
|
23005
23519
|
OAuth: (overrides) => ApiFactory.oauthApi(this.config, this.options, this.options.namespace, this.override(overrides)),
|
|
23006
23520
|
InputValidation: (overrides) => ApiFactory.inputValidationApi(this.config, this.options.namespace, this.override(overrides)),
|
|
23007
23521
|
ThirdPartyCredential: (overrides) => ApiFactory.thirdPartyCredentialApi(this.config, this.options.namespace, this.override(overrides)),
|
|
23008
|
-
TwoFA: (overrides) => ApiFactory.twoFA(this.config, this.options.namespace, this.override(overrides))
|
|
23522
|
+
TwoFA: (overrides) => ApiFactory.twoFA(this.config, this.options.namespace, this.override(overrides)),
|
|
23523
|
+
version: IamVersion
|
|
23009
23524
|
},
|
|
23010
23525
|
BuildInfo: {
|
|
23011
23526
|
Downloader: (overrides) => ApiFactory.downloaderApi(this.config, this.options.namespace, this.override(overrides)),
|
|
23012
23527
|
Caching: (overrides) => ApiFactory.cachingApi(this.config, this.options.namespace, this.override(overrides)),
|
|
23013
|
-
DLC: (overrides) => ApiFactory.dlcApi(this.config, this.options.namespace, this.override(overrides))
|
|
23528
|
+
DLC: (overrides) => ApiFactory.dlcApi(this.config, this.options.namespace, this.override(overrides)),
|
|
23529
|
+
version: BuildinfoVersion
|
|
23014
23530
|
},
|
|
23015
23531
|
Basic: {
|
|
23016
23532
|
Misc: (overrides) => ApiFactory.miscApi(this.config, this.options.namespace, this.override(overrides)),
|
|
23017
23533
|
UserProfile: (overrides) => ApiFactory.userProfileApi(this.config, this.options.namespace, this.override(overrides)),
|
|
23018
23534
|
FileUpload: (overrides) => ApiFactory.fileUploadApi(this.config, this.options.namespace, this.override(overrides)),
|
|
23019
|
-
Namespace: (overrides) => ApiFactory.namespaceApi(this.config, this.options.namespace, this.override(overrides))
|
|
23535
|
+
Namespace: (overrides) => ApiFactory.namespaceApi(this.config, this.options.namespace, this.override(overrides)),
|
|
23536
|
+
version: BasicVersion
|
|
23020
23537
|
},
|
|
23021
23538
|
Platform: {
|
|
23022
23539
|
Currency: (overrides) => ApiFactory.currencyApi(this.config, this.options.namespace, this.override(overrides)),
|
|
@@ -23026,35 +23543,54 @@ class AccelbyteSDKFactory {
|
|
|
23026
23543
|
Order: (overrides) => ApiFactory.orderApi(this.config, this.options.namespace, this.override(overrides)),
|
|
23027
23544
|
Payment: (overrides) => ApiFactory.paymentApi(this.config, this.options.namespace, this.override(overrides)),
|
|
23028
23545
|
Subscription: (overrides) => ApiFactory.subscriptionApi(this.config, this.options.namespace, this.override(overrides)),
|
|
23029
|
-
Wallet: (overrides) => ApiFactory.walletApi(this.config, this.options.namespace, this.override(overrides))
|
|
23546
|
+
Wallet: (overrides) => ApiFactory.walletApi(this.config, this.options.namespace, this.override(overrides)),
|
|
23547
|
+
version: PlatformVersion
|
|
23030
23548
|
},
|
|
23031
23549
|
Legal: {
|
|
23032
23550
|
Eligibilities: (overrides) => ApiFactory.eligibillitiesApi(this.config, this.options.namespace, this.override(overrides)),
|
|
23033
23551
|
Agreement: (overrides) => ApiFactory.agreementApi(this.config, this.options.namespace, this.override(overrides)),
|
|
23034
23552
|
Policies: (overrides) => ApiFactory.policiesApi(this.config, this.options.namespace, this.override(overrides)),
|
|
23035
|
-
LocalizedPolicyVersions: (overrides) => ApiFactory.localizedPolicyVersionsApi(this.config, this.options.namespace, this.override(overrides))
|
|
23553
|
+
LocalizedPolicyVersions: (overrides) => ApiFactory.localizedPolicyVersionsApi(this.config, this.options.namespace, this.override(overrides)),
|
|
23554
|
+
version: LegalVersion
|
|
23036
23555
|
},
|
|
23037
23556
|
GDPR: {
|
|
23038
23557
|
DataDeletion: (overrides) => ApiFactory.dataDeletionApi(this.config, this.options.namespace, this.override(overrides)),
|
|
23039
|
-
DataRetrieval: (overrides) => ApiFactory.dataRetrievalApi(this.config, this.options.namespace, this.override(overrides))
|
|
23558
|
+
DataRetrieval: (overrides) => ApiFactory.dataRetrievalApi(this.config, this.options.namespace, this.override(overrides)),
|
|
23559
|
+
version: GdprVersion
|
|
23040
23560
|
},
|
|
23041
23561
|
Event: {
|
|
23042
|
-
Event: (overrides) => ApiFactory.eventApi(this.config, this.options.namespace, this.override(overrides))
|
|
23562
|
+
Event: (overrides) => ApiFactory.eventApi(this.config, this.options.namespace, this.override(overrides)),
|
|
23563
|
+
version: EventVersion
|
|
23043
23564
|
},
|
|
23044
23565
|
AccelbyteConfig: {
|
|
23045
|
-
PublicTemplate: (overrides) => ApiFactory.publicTemplateApi(this.config, this.options.namespace, this.override(overrides))
|
|
23566
|
+
PublicTemplate: (overrides) => ApiFactory.publicTemplateApi(this.config, this.options.namespace, this.override(overrides)),
|
|
23567
|
+
version: OdinConfigVersion
|
|
23568
|
+
},
|
|
23569
|
+
version: () => {
|
|
23570
|
+
console.log('IamVersion: ', IamVersion.version);
|
|
23571
|
+
console.log('BuildinfoVersion: ', BuildinfoVersion.version);
|
|
23572
|
+
console.log('BasicVersion: ', BasicVersion.version);
|
|
23573
|
+
console.log('PlatformVersion: ', PlatformVersion.version);
|
|
23574
|
+
console.log('LegalVersion: ', LegalVersion.version);
|
|
23575
|
+
console.log('GdprVersion: ', GdprVersion.version);
|
|
23576
|
+
console.log('EventVersion: ', EventVersion.version);
|
|
23577
|
+
const axiosInstance = Network.create(this.config);
|
|
23578
|
+
axiosInstance
|
|
23579
|
+
.get('https://development.accelbyte.io/iam/version')
|
|
23580
|
+
.then(res => {
|
|
23581
|
+
console.log('-- axiosInstance res', res.data);
|
|
23582
|
+
console.log('-- current ver', IamVersion);
|
|
23583
|
+
})
|
|
23584
|
+
.catch(err => {
|
|
23585
|
+
console.log('-- axiosInstance err', err);
|
|
23586
|
+
});
|
|
23046
23587
|
}
|
|
23047
23588
|
};
|
|
23048
23589
|
}
|
|
23049
23590
|
}
|
|
23050
23591
|
const sdkInit = ({ options, config, onEvents }) => {
|
|
23051
|
-
|
|
23052
|
-
Logger.info('Accelbyte-SDK instantiated:', options);
|
|
23053
|
-
}
|
|
23592
|
+
Logger.info('Accelbyte-SDK instantiated:', options);
|
|
23054
23593
|
const sdkFactory = new AccelbyteSDKFactory(options, config, onEvents);
|
|
23055
|
-
if (options.loglevel === LogLevel.DEBUG) {
|
|
23056
|
-
Logger.info(`Accelbyte-SDK version: ${buildInfo.version} \nBuild: ${buildInfo.build} \nTimestamp: ${new Date(buildInfo.timestamp)}`);
|
|
23057
|
-
}
|
|
23058
23594
|
return sdkFactory.init();
|
|
23059
23595
|
};
|
|
23060
23596
|
// ts-prune-ignore-next
|
|
@@ -39725,7 +40261,7 @@ const PageConfig = mod.object({
|
|
|
39725
40261
|
});
|
|
39726
40262
|
|
|
39727
40263
|
/*
|
|
39728
|
-
* Copyright (c) 2022 AccelByte Inc. All Rights Reserved
|
|
40264
|
+
* Copyright (c) 2022-2023 AccelByte Inc. All Rights Reserved
|
|
39729
40265
|
* This is licensed software from AccelByte Inc, for limitations
|
|
39730
40266
|
* and restrictions contact your company contract manager.
|
|
39731
40267
|
*/
|
|
@@ -40084,5 +40620,5 @@ CodeGenUtil.getFormUrlEncodedData = (data) => {
|
|
|
40084
40620
|
return formPayload;
|
|
40085
40621
|
};
|
|
40086
40622
|
|
|
40087
|
-
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 };
|
|
40623
|
+
export { ADtoForUnbanUserApiCall, ADtoForUpdateEqu8ConfigApiCall, ADtoObjectForEqu8UserBanStatus, ADtoObjectForEqu8UserStatus, ARCH, Accelbyte, AcceptAgreementRequest, AcceptAgreementResponse, AcceptedPoliciesRequest, AccountProgressionInfo, Achievement, AchievementInfo, Action, AddCountryGroupRequest, AddCountryGroupResponse, AddUserRoleV4Request, AdditionalData, AdminOrderCreate, AdyenConfig, AgeRestrictionRequest, AgeRestrictionRequestV3, AgeRestrictionResponse, AgeRestrictionResponseV3, AgentType, Agreement$, AliPayConfig, AppEntitlementInfo, AppEntitlementPagingSlicedResult, AppInfo, AppLocalization, AppUpdate, AppleIapConfigInfo, AppleIapConfigRequest, AppleIapReceipt, AssignUserV4Request, AssignedUserV4Response, AuthenticatorKeyResponseV4, AuthenticatorSecretKey, AvailableComparison, AvailablePlatform, AvailablePredicate, AvatarSyncRequestV4, BUILDINFO_PLATFORM_ID, BackgroundOverlay, BackgroundOverlayType, BackupCodesResponseV4, Ban, BanCreateRequest, BanReason, BanReasonV3, BanReasons, BanReasonsV3, BanType, BanUpdateRequest, BanV3, BannedBy, BannedByV3, Bans, BansV3, BasicBuildManifest, BasicBuildManifestArray, BasicCategoryInfo, BasicItem, BillingAccount, BillingHistoryChargeStatus, BillingHistoryInfo, BillingHistoryPagingSlicedResult, BinaryUpload, BlockData, BlockDownloadUrls, BlockDownloadUrlsRequest, BlockManifest, BoxItem, BrowserHelper, BuildAvailability, BuildAvailabilityArray, BuildDeletionData, BuildIdManifest, BuildIdVersion, BuildInfoPii, BuildManifest, BulkBanCreateRequestV3, BulkOperationResult, BulkUnbanCreateRequestV3, BundledItemInfo, Caching$, CalculateDiffCacheRequest, CampaignCreate, CampaignDynamicInfo, CampaignInfo, CampaignPagingSlicedResult, CampaignUpdate, CancelRequest, CatalogChangeInfo, CatalogChangePagingSlicedResult, CatalogChangeStatistics, Category$, CategoryCreate, CategoryInfo, CategoryInfoArray, CategoryUpdate, CheckValidUserIdRequestV4, CheckoutConfig, CleanerConfigObject, ClientCreateRequest, ClientCreationResponse, ClientCreationV3Request, ClientPayload, ClientPermission, ClientPermissionV3, ClientPermissions, ClientPermissionsV3, ClientRequestParameter, ClientResponse, ClientUpdateRequest, ClientUpdateSecretRequest, ClientUpdateV3Request, ClientV3Response, ClientsV3Response, CodeCreate, CodeCreateResult, CodeGenUtil, CodeInfo, CodeInfoPagingSlicedResult, ColorConfig, ColorConfigs, CommitDiffCacheRequest, CommitMultipartUploadRequest, CompanyLogo, CompanyLogoConfig, CompatibilityObject, ConditionGroup, ConditionGroupValidateResult, ConditionMatchResult, Config, Configs, ConfigurationInfo, ConfigurationUpdate, ConflictedUserPlatformAccounts, ConsumeItem, Country, CountryAgeRestriction, CountryAgeRestrictionRequest, CountryAgeRestrictionV3Request, CountryGroupObject, CountryLocationResponse, CountryObject, CountryObjectArray, CountryV3Response, CreateBasePolicyRequest, CreateBasePolicyRequestV2, CreateBasePolicyResponse, CreateDependencyLinkRequest, CreateDiffCacheRequest, CreateJusticeUserResponse, CreateLocalizedPolicyVersionRequest, CreateLocalizedPolicyVersionResponse, CreatePolicyVersionRequest, CreatePolicyVersionResponse, CreateTestUserRequestV4, CreateTestUserResponseV4, CreateTestUsersRequestV4, CreateTestUsersResponseV4, CreateUserRequestV4, CreateUserResponseV4, CreditRequest, CreditRevocation, CreditSummary, Currency$, CurrencyConfig, CurrencyCreate, CurrencyInfo, CurrencyInfoArray, CurrencySummary, CurrencyUpdate, CurrencyWallet, Customization, DISCOVERY_TEMPLATE_NAME, DataDeletion$, DataRetrieval$, DataRetrievalResponse, DebitByCurrencyCodeRequest, DebitRequest, DecodeError, DefaultLaunchProfile, DeleteRewardConditionRequest, DeletionData, DeletionStatus, DependencyObject, Description, DesktopChecker, DetailedWalletTransactionInfo, DetailedWalletTransactionPagingSlicedResult, DeviceBanRequestV4, DeviceBanResponseV4, DeviceBanUpdateRequestV4, DeviceBannedResponseV4, DeviceBansResponseV4, DeviceIdDecryptResponseV4, DeviceResponseV4, DeviceTypeResponseV4, DeviceTypesResponseV4, DeviceUserResponseV4, DeviceUsersResponseV4, DevicesResponseV4, DiffCacheObject, DiffPatchRequest, DiffStatusReport, DifferentialBuildManifest, DifferentialFileManifest, DifferentialUploadSummary, DisableUserRequest, DiscoveryConfigData, DisplayedPolicy, DistinctLinkedPlatformV3, DistinctPlatformResponseV3, Dlc$, DlcItem, DlcItemConfigInfo, DlcItemConfigUpdate, DlcRecord, Downloader$, DownloaderApi, Drm$, DurableEntitlementRevocationConfig, ERROR_CODE_LINK_DELETION_ACCOUNT, ERROR_CODE_TOKEN_EXPIRED, ERROR_LINK_ANOTHER_3RD_PARTY_ACCOUNT, ERROR_USER_BANNED, Eligibilities$, EligibleUser, EmailUpdateRequestV4, EnabledFactorsResponseV4, EncryptedIdentity, Entitlement$, EntitlementDecrement, EntitlementDecrementResult, EntitlementGrant, EntitlementHistoryInfo, EntitlementInfo, EntitlementLootBoxReward, EntitlementOwnership, EntitlementOwnershipArray, EntitlementPagingSlicedResult, EntitlementRevocation, EntitlementRevocationConfig, EntitlementSummary, EntitlementUpdate, EpicGamesDlcSyncRequest, EpicGamesIapConfigInfo, EpicGamesIapConfigRequest, EpicGamesReconcileRequest, EpicGamesReconcileResult, EpicGamesReconcileResultArray, Equ8Config, Error$1 as Error, ErrorEntity, ErrorResponse, ErrorResponseWithConflictedUserPlatformAccounts, Event, EventId, EventLevel, EventPayload, EventRegistry, EventResponse, EventResponseV2, EventType, EventV2, EventV2$, ExportStoreRequest, ExtensionFulfillmentSummary, ExternalPaymentOrderCreate, FailedBanUnbanUserV3, FieldValidationError, FileDiffingStatus, FileManifest, FileUpload$, FileUploadUrlInfo, FilterJson, FixedPeriodRotationConfig, FontConfigs, ForgotPasswordRequestV3, FulfillCodeRequest, Fulfillment$, FulfillmentError, FulfillmentHistoryInfo, FulfillmentHistoryPagingSlicedResult, FulfillmentItem, FulfillmentRequest, FulfillmentResult, FulfillmentScriptContext, FulfillmentScriptCreate, FulfillmentScriptEvalTestRequest, FulfillmentScriptEvalTestResult, FulfillmentScriptInfo, FulfillmentScriptUpdate, FullAppInfo, FullCategoryInfo, FullItemInfo, FullItemPagingSlicedResult, FullSectionInfo, FullViewInfo, GameTokenCodeResponse, GenericQueryPayload, GetAdminUsersResponse, GetLinkHeadlessAccountConflictResponse, GetPublisherUserResponse, GetPublisherUserV3Response, GetUserBanV3Response, GetUserJusticePlatformAccountResponse, GetUserMapping, GetUserMappingV3, GetUserMappingV3Array, GetUsersResponseWithPaginationV3, GlobalStyleConfig, GoogleIapConfigInfo, GoogleIapConfigRequest, GoogleIapReceipt, GoogleReceiptResolveResult, GrantSubscriptionDaysRequest, HierarchicalCategoryInfo, HierarchicalCategoryInfoArray, IamHelper, Iap$, IapConsumeHistoryInfo, IapConsumeHistoryPagingSlicedResult, IapItemConfigInfo, IapItemConfigUpdate, IapItemEntry, IapOrderInfo, IapOrderPagingSlicedResult, Image, ImportErrorDetails, ImportStoreError, ImportStoreItemInfo, ImportStoreResult, InGameItemSync, InputValidationData, InputValidationDataPublic, InputValidationDescription, InputValidationHelper, InputValidationUpdatePayload, InputValidations$, InputValidationsApi, InputValidationsPublicResponse, InputValidationsResponse, InviteUserRequestV3, InviteUserRequestV4, InviteUserResponseV3, InvoiceCurrencySummary, InvoiceSummary, Item$, ItemAcquireRequest, ItemAcquireResult, ItemCreate, ItemDynamicDataInfo, ItemId, ItemInfo, ItemInfoArray, ItemNaming, ItemPagingSlicedResult, ItemPurchaseConditionValidateRequest, ItemPurchaseConditionValidateResult, ItemPurchaseConditionValidateResultArray, ItemReturnRequest, ItemRevocation, ItemSnapshot, ItemTypeConfigCreate, ItemTypeConfigInfo, ItemTypeConfigUpdate, ItemUpdate, JwkKey, JwkSet, JwtBanV3, KeyGroupCreate, KeyGroupDynamicInfo, KeyGroupInfo, KeyGroupPagingSlicedResult, KeyGroupUpdate, KeyInfo, KeyPagingSliceResult, LauncherPageConfig, LegalHelper, LegalPolicyType, LegalReadinessStatusResponse, LinkHeadlessAccountRequest, LinkPlatformAccountRequest, LinkPlatformAccountWithProgressionRequest, LinkRequest, LinkingHistoryResponseWithPaginationV3, ListAssignedUsersV4Response, ListBulkUserBanResponseV3, ListBulkUserResponse, ListDeletionDataResponse, ListEmailAddressRequest, ListPersonalDataResponse, ListRoleV4Response, ListUserInformationResult, ListUserResponseV3, ListUserRolesV4Response, ListUsersWithPlatformAccountsResponse, ListValidUserIdResponseV4, ListViewInfo, Localization, LocalizedPolicyVersionObject, LocalizedPolicyVersions$, LocalizedPolicyVersionsWithNamespace$, LoginErrorCancelled, LoginErrorExpired, LoginErrorParam, LoginErrorUnknown, LoginErrorUnmatchedState, LoginHistoriesResponse, LogoVariantConfig, LootBoxConfig, LootBoxReward, MFADataResponse, MFA_DATA_STORAGE_KEY, MachineIdentity, Misc$, MiscApi, MockIapReceipt, ModelCountry, MultipartUploadSummary, MultipartUploadUrl, MultipartUploadedPart, MultipleAgentType, MultipleEventId, MultipleEventLevel, MultipleEventType, MultipleUx, Namespace$, NamespaceCreate, NamespaceInfo, NamespaceInfoArray, NamespacePublisherInfo, NamespaceRole, NamespaceRoleRequest, NamespaceStatusUpdate, NamespaceUpdate, NetflixCertificates, Network, NotificationProcessResult, OAuth20$, OAuth20Extension$, ObsoleteFileManifest, OneTimeLinkingCodeResponse, OneTimeLinkingCodeValidationResponse, OptionBoxConfig, Order, Order$, OrderCreate, OrderCreationOptions, OrderGrantInfo, OrderHistoryInfo, OrderHistoryInfoArray, OrderInfo, OrderPagingResult, OrderPagingSlicedResult, OrderRefundCreate, OrderStatistics, OrderStatus, OrderSummary, OrderSyncResult, OrderUpdate, Ownership, OwnershipToken, PLATFORM, PageConfig, PagedRetrieveUserAcceptedAgreementResponse, Pagination$1 as Pagination, PaginationV3, Paging$1 as Paging, PayPalConfig, PaymentAccount, PaymentAccount$, PaymentAccountArray, PaymentApi, PaymentCallbackConfigInfo, PaymentCallbackConfigUpdate, PaymentMerchantConfigInfo, PaymentMethod, PaymentMethodArray, PaymentNotificationInfo, PaymentNotificationPagingSlicedResult, PaymentOrder, PaymentOrderChargeRequest, PaymentOrderChargeStatus, PaymentOrderCreate, PaymentOrderCreateResult, PaymentOrderDetails, PaymentOrderInfo, PaymentOrderNotifySimulation, PaymentOrderPagingSlicedResult, PaymentOrderPaidResult, PaymentOrderRefund, PaymentOrderRefundResult, PaymentOrderSyncResult, PaymentProcessResult, PaymentProviderConfigEdit, PaymentProviderConfigInfo, PaymentProviderConfigPagingSlicedResult, PaymentRequest, PaymentStation$, PaymentTaxConfigEdit, PaymentTaxConfigInfo, PaymentToken, PaymentUrl, PaymentUrlCreate, Permission, PermissionDeleteRequest, PermissionV3, Permissions, PermissionsV3, PersonalData, PingResultResponse, PlatformAccount, PlatformDlcConfigInfo, PlatformDlcConfigUpdate, PlatformDlcEntry, PlatformDomainDeleteRequest, PlatformDomainResponse, PlatformDomainUpdateRequest, PlatformReward, PlatformRewardCurrency, PlatformRewardItem, PlatformSubscribeRequest, PlatformUserIdRequest, PlatformUserInformation, PlatformUserInformationV3, PlatformWallet, PlatformWalletConfigInfo, PlatformWalletConfigUpdate, PlayStationDlcSyncMultiServiceLabelsRequest, PlayStationDlcSyncRequest, PlayStationIapConfigInfo, PlayStationMultiServiceLabelsReconcileRequest, PlayStationReconcileRequest, PlayStationReconcileResult, PlayStationReconcileResultArray, PlayerPortalConfigData, PlayerPortalFeatureFlagsConfig, PlayerPortalFooterConfig, PlayerPortalFooterConfigLink, PlayerPortalFooterIDs, PlayerPortalHomePageKeys, PlayerPortalHomepageConfig, PlayerPortalHomepageKeys, PlaystationIapConfigRequest, Policies$, PoliciesApi, PolicyObject, PolicyVersionObject, PolicyVersionWithLocalizedVersionObject, PopulatedItemInfo, PreCheckUploadRequest, Predicate, PredicateValidateResult, PublicKeyPresignedUrl, PublicThirdPartyPlatformInfo, PublicThirdPartyPlatformInfoArray, PublicUserInformationResponseV3, PublicUserInformationV3, PublicUserResponse, PublicUserResponseV3, PublicUsersResponse, PurchaseCondition, PurchaseConditionUpdate, PurchasedItemCount, ReadyPlayerMe, Recurring, RecurringChargeResult, RedeemHistoryInfo, RedeemHistoryPagingSlicedResult, RedeemRequest, RedeemResult, RedeemableItem, RegionDataItem, RegisteredDomain, ReleaseNoteDto, ReleaseNoteLocalizationDto, ReleaseNoteManifest, RemoveUserRoleV4Request, RequestDeleteResponse, RequestHistory, Requirement, ResetPasswordRequest, ResetPasswordRequestV3, RestErrorResponse, RetrieveAcceptedAgreementResponse, RetrieveAcceptedAgreementResponseArray, RetrieveBaseGameResponse, RetrieveBaseGameResponseArray, RetrieveBasePolicyResponse, RetrieveCountryGroupResponse, RetrieveDependencyCompatibilityResponse, RetrieveDependencyLinkResponse, RetrieveDiffCacheResponse, RetrieveLatestDlcResponse, RetrieveLatestDlcResponseArray, RetrieveLocalizedPolicyVersionPublicResponse, RetrieveLocalizedPolicyVersionResponse, RetrievePolicyPublicResponse, RetrievePolicyPublicResponseArray, RetrievePolicyResponse, RetrievePolicyTypeResponse, RetrievePolicyVersionResponse, RetrieveTimeResponse, RetrieveUserAcceptedAgreementResponse, RetrieveUserEligibilitiesIndirectResponse, RetrieveUserEligibilitiesResponse, RetrieveUserEligibilitiesResponseArray, RetrieveUserInfoCacheStatusResponse, RevocationConfigInfo, RevocationConfigUpdate, RevocationHistoryInfo, RevocationHistoryPagingSlicedResult, RevocationList, RevocationRequest, RevocationResult, RevokeCurrency, RevokeEntitlement, RevokeEntry, RevokeItem, RevokeItemSummary, RevokeResult, RevokeUserV4Request, Reward$, RewardCondition, RewardCreate, RewardInfo, RewardItem, RewardPagingSlicedResult, RewardUpdate, RewardsRequest, Role, RoleAdminStatusResponse, RoleAdminStatusResponseV3, RoleCreateRequest, RoleCreateV3Request, RoleManager, RoleManagerV3, RoleManagersRequest, RoleManagersRequestV3, RoleManagersResponse, RoleManagersResponsesV3, RoleMember, RoleMemberV3, RoleMembersRequest, RoleMembersRequestV3, RoleMembersResponse, RoleMembersResponseV3, RoleNamesResponseV3, RoleResponse, RoleResponseV3, RoleResponseWithManagers, RoleResponseWithManagersAndPaginationV3, RoleResponseWithManagersV3, RoleUpdateRequest, RoleUpdateRequestV3, RoleV3, RoleV4Request, RoleV4Response, Roles$, SdkCache, SdkDevice, SearchUsersByPlatformIdResponse, SearchUsersResponse, SearchUsersResponseWithPaginationV3, Section$, SectionCreate, SectionInfo, SectionInfoArray, SectionItem, SectionPagingSlicedResult, SectionUpdate, SendRegisterVerificationCodeRequest, SendVerificationCodeRequest, SendVerificationCodeRequestV3, SendVerificationLinkRequest, ServicePluginConfigInfo, ServicePluginConfigUpdate, SimpleLatestBaseGame, SimpleUserPlatformInfoV3, Slide, SocialLinkConfig, Sso$, SsoPlatformCredentialRequest, SsoPlatformCredentialResponse, SsoSaml20$, StackableEntitlementInfo, StartMultipartUploadRequest, StaticConfigs$, SteamAchievementUpdateRequest, SteamDlcSyncRequest, SteamIapConfig, SteamIapConfigInfo, SteamIapConfigRequest, SteamSyncRequest, Store$, StoreBackupInfo, StoreCreate, StoreInfo, StoreInfoArray, StoreUpdate, StripeConfig, Subscribable, SubscribeRequest, Subscription$, SubscriptionActivityInfo, SubscriptionActivityPagingSlicedResult, SubscriptionChargeStatus, SubscriptionInfo, SubscriptionPagingSlicedResult, SubscriptionStatus, SubscriptionSummary, TWOFA_PAGE, TaxResult, Template, TemplateCompact, TemplateConfig, TemplateInfoConfig, Templates$, TestResult, ThirdPartyCredential$, ThirdPartyLoginPlatformCredentialRequest, ThirdPartyLoginPlatformCredentialResponse, TicketAcquireRequest, TicketAcquireResult, TicketBoothId, TicketDynamicInfo, TicketSaleDecrementRequest, TicketSaleIncrementRequest, TicketSaleIncrementResult, TimeLimitedBalance, TimedOwnership, TokenIntrospectResponse, TokenResponse, TokenResponseV3, TokenThirdPartyLinkStatusResponse, TokenThirdPartyResponse, TokenWithDeviceCookieResponseV3, TradeNotification, Transaction, TransactionAmountDetails, TwitchIapConfigInfo, TwitchIapConfigRequest, TwitchSyncRequest, UnlinkUserPlatformRequest, UpdateBasePolicyRequest, UpdateBasePolicyRequestV2, UpdateBasePolicyResponse, UpdateBuildMetadataRequest, UpdateCountryGroupRequest, UpdateLocalizedPolicyVersionRequest, UpdateLocalizedPolicyVersionResponse, UpdatePermissionScheduleRequest, UpdatePolicyRequest, UpdatePolicyVersionRequest, UpdatePolicyVersionResponse, UpdateUserDeletionStatusRequest, UpdateUserStatusRequest, UpgradeHeadlessAccountRequest, UpgradeHeadlessAccountRequestV4, UpgradeHeadlessAccountV3Request, UpgradeHeadlessAccountWithVerificationCodeRequest, UpgradeHeadlessAccountWithVerificationCodeRequestV3, UpgradeHeadlessAccountWithVerificationCodeRequestV4, UploadBuildManifest, UploadLocalizedPolicyVersionAttachmentResponse, UploadModeCheck, UploadPolicyVersionAttachmentRequest, UploadSummary, UrlHelper, UserAction$, UserActiveBanResponse, UserActiveBanResponseV3, UserActiveBanResponseV4, UserApi, UserAuthorizationApi, UserBan, UserBanRequest, UserBanResponse, UserBanResponseV3, UserBaseInfo, UserCreateFromInvitationRequestV3, UserCreateFromInvitationRequestV4, UserCreateRequest, UserCreateRequestV3, UserCreateResponse, UserCreateResponseV3, UserDataUrl, UserDeletionStatusResponse, UserDlc, UserIDsRequest, UserInfoResponse, UserInformation, UserInformationV3, UserInvitationV3, UserLastActivity, UserLinkedPlatform, UserLinkedPlatformV3, UserLinkedPlatformsResponseV3, UserLoginHistoryResponse, UserPasswordUpdateRequest, UserPasswordUpdateV3Request, UserPermissionsResponseV3, UserPermissionsResponseV4, UserPersonalData, UserPersonalDataResponse, UserPlatformInfo, UserPlatforms, UserProfile$, UserProfileAdmin, UserProfileApi, UserProfileBulkRequest, UserProfileCreate, UserProfileInfo, UserProfilePrivateCreate, UserProfilePrivateInfo, UserProfilePrivateUpdate, UserProfilePublicInfo, UserProfilePublicInfoArray, UserProfileStatusUpdate, UserProfileUpdate, UserReportRequest, UserResponse, UserResponseV3, UserResponseV4, UserRevocationListRecord, UserRolesV4Response, UserSearchByPlatformIdResult, UserSearchResult, UserUnbanCreateRequestV3, UserUpdateRequest, UserUpdateRequestV3, UserVerificationRequest, UserVerificationRequestV3, UserWithLinkedPlatformAccounts, UserWithPlatformAccounts, UserZipCode, UserZipCodeUpdate, Users$, UsersV4$, Utility$, Ux, V3ClientUpdateSecretRequest, VALIDATION_ERROR_CODE, ValidUserIdResponseV4, Validate, ValidateableInputField, Validation, ValidationConfig, ValidationDescription, ValidationDetail, ValidationDetailPublic, ValidationErrorEntity, VerificationCodeResponse, VerifyRegistrationCode, VersionChain, VersionNode, View$, ViewCreate, ViewInfo, ViewInfoArray, ViewUpdate, Wallet$, WalletInfo, WalletPagingSlicedResult, WalletRevocationConfig, WalletTransactionInfo, WalletTransactionPagingSlicedResult, WebLinkingResponse, WxPayConfigInfo, WxPayConfigRequest, XblAchievementUpdateRequest, XblDlcSyncRequest, XblIapConfigInfo, XblIapConfigRequest, XblReconcileRequest, XblReconcileResult, XblReconcileResultArray, XblUserAchievements, XsollaConfig, XsollaPaywallConfig, XsollaPaywallConfigRequest, ZsyncDiffRequest, ZsyncFileManifest, injectRequestInterceptors, injectResponseInterceptors };
|
|
40088
40624
|
//# sourceMappingURL=index.browser.es.js.map
|