async-playfab-web-sdk 1.192.250526-1 → 1.192.250526-3

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.
Files changed (87) hide show
  1. package/dist/Addon.d.ts +31 -31
  2. package/dist/Addon.js +4 -448
  3. package/dist/Addon.js.map +1 -1
  4. package/dist/Admin.d.ts +118 -118
  5. package/dist/Admin.js +4 -1108
  6. package/dist/Admin.js.map +1 -1
  7. package/dist/Authentication.d.ts +5 -5
  8. package/dist/Authentication.js +4 -286
  9. package/dist/Authentication.js.map +1 -1
  10. package/dist/Client.d.ts +174 -174
  11. package/dist/Client.js +4 -1889
  12. package/dist/Client.js.map +1 -1
  13. package/dist/CloudScript.d.ts +16 -16
  14. package/dist/CloudScript.js +4 -345
  15. package/dist/CloudScript.js.map +1 -1
  16. package/dist/Data.d.ts +8 -8
  17. package/dist/Data.js +4 -287
  18. package/dist/Data.js.map +1 -1
  19. package/dist/Economy.d.ts +47 -47
  20. package/dist/Economy.js +4 -610
  21. package/dist/Economy.js.map +1 -1
  22. package/dist/Events.d.ts +13 -13
  23. package/dist/Events.js +4 -323
  24. package/dist/Events.js.map +1 -1
  25. package/dist/Experimentation.d.ts +14 -14
  26. package/dist/Experimentation.js +4 -329
  27. package/dist/Experimentation.js.map +1 -1
  28. package/dist/Groups.d.ts +26 -26
  29. package/dist/Groups.js +4 -413
  30. package/dist/Groups.js.map +1 -1
  31. package/dist/Insights.d.ts +7 -7
  32. package/dist/Insights.js +4 -282
  33. package/dist/Insights.js.map +1 -1
  34. package/dist/Localization.d.ts +2 -2
  35. package/dist/Localization.js +4 -245
  36. package/dist/Localization.js.map +1 -1
  37. package/dist/Multiplayer.d.ts +88 -88
  38. package/dist/Multiplayer.js +4 -858
  39. package/dist/Multiplayer.js.map +1 -1
  40. package/dist/{PlayFabCommon-BUv4zqXf.d.ts → PlayFabCommon-BX3jSqGx.d.ts} +4 -6
  41. package/dist/Profiles.d.ts +10 -10
  42. package/dist/Profiles.js +4 -302
  43. package/dist/Profiles.js.map +1 -1
  44. package/dist/Progression.d.ts +24 -24
  45. package/dist/Progression.js +4 -400
  46. package/dist/Progression.js.map +1 -1
  47. package/dist/Server.d.ts +150 -150
  48. package/dist/Server.js +4 -1373
  49. package/dist/Server.js.map +1 -1
  50. package/dist/chunk-3FCAP7OZ.js +187 -0
  51. package/dist/chunk-3FCAP7OZ.js.map +1 -0
  52. package/dist/chunk-62SULWOK.js +195 -0
  53. package/dist/chunk-62SULWOK.js.map +1 -0
  54. package/dist/chunk-A7VD6ALV.js +222 -0
  55. package/dist/chunk-A7VD6ALV.js.map +1 -0
  56. package/dist/chunk-BX65UND2.js +632 -0
  57. package/dist/chunk-BX65UND2.js.map +1 -0
  58. package/dist/chunk-J4QS5VX5.js +19 -0
  59. package/dist/chunk-J4QS5VX5.js.map +1 -0
  60. package/dist/chunk-JGDO2ZE3.js +1663 -0
  61. package/dist/chunk-JGDO2ZE3.js.map +1 -0
  62. package/dist/chunk-POMI7LEF.js +76 -0
  63. package/dist/chunk-POMI7LEF.js.map +1 -0
  64. package/dist/chunk-Q3OF3AOJ.js +97 -0
  65. package/dist/chunk-Q3OF3AOJ.js.map +1 -0
  66. package/dist/chunk-QUZHVSVZ.js +174 -0
  67. package/dist/chunk-QUZHVSVZ.js.map +1 -0
  68. package/dist/chunk-QVLIVSO4.js +1147 -0
  69. package/dist/chunk-QVLIVSO4.js.map +1 -0
  70. package/dist/chunk-R7V7DFCF.js +103 -0
  71. package/dist/chunk-R7V7DFCF.js.map +1 -0
  72. package/dist/chunk-SGSEOIKS.js +56 -0
  73. package/dist/chunk-SGSEOIKS.js.map +1 -0
  74. package/dist/chunk-UOHHNVCJ.js +119 -0
  75. package/dist/chunk-UOHHNVCJ.js.map +1 -0
  76. package/dist/chunk-USKFWNQK.js +384 -0
  77. package/dist/chunk-USKFWNQK.js.map +1 -0
  78. package/dist/chunk-UX7LFJCX.js +61 -0
  79. package/dist/chunk-UX7LFJCX.js.map +1 -0
  80. package/dist/chunk-X34XZJB6.js +60 -0
  81. package/dist/chunk-X34XZJB6.js.map +1 -0
  82. package/dist/chunk-YNZF3WXS.js +882 -0
  83. package/dist/chunk-YNZF3WXS.js.map +1 -0
  84. package/dist/index.d.ts +1 -1
  85. package/dist/index.js +49 -5988
  86. package/dist/index.js.map +1 -1
  87. package/package.json +1 -1
@@ -0,0 +1,1663 @@
1
+ import {
2
+ PlayFabCommon
3
+ } from "./chunk-62SULWOK.js";
4
+
5
+ // src/apis/PlayFabClientApi.ts
6
+ var PlayFabClientApi = class extends PlayFabCommon {
7
+ IsClientLoggedIn() {
8
+ return this.sessionTicket != null && this.sessionTicket.length > 0;
9
+ }
10
+ /**
11
+ * Accepts an open trade (one that has not yet been accepted or cancelled), if the locally signed-in player is in the
12
+ * allowed player list for the trade, or it is open to all players. If the call is successful, the offered and accepted
13
+ * items will be swapped between the two players' inventories.
14
+ * https://docs.microsoft.com/rest/api/playfab/client/trading/accepttrade
15
+ */
16
+ AcceptTrade(request, extraHeaders) {
17
+ return this.ExecuteRequestWrapper("/Client/AcceptTrade", request, "X-Authorization", extraHeaders);
18
+ }
19
+ /**
20
+ * Adds the PlayFab user, based upon a match against a supplied unique identifier, to the friend list of the local user. At
21
+ * least one of FriendPlayFabId,FriendUsername,FriendEmail, or FriendTitleDisplayName should be initialized.
22
+ * https://docs.microsoft.com/rest/api/playfab/client/friend-list-management/addfriend
23
+ */
24
+ AddFriend(request, extraHeaders) {
25
+ return this.ExecuteRequestWrapper("/Client/AddFriend", request, "X-Authorization", extraHeaders);
26
+ }
27
+ /**
28
+ * Adds the specified generic service identifier to the player's PlayFab account. This is designed to allow for a PlayFab
29
+ * ID lookup of any arbitrary service identifier a title wants to add. This identifier should never be used as
30
+ * authentication credentials, as the intent is that it is easily accessible by other players.
31
+ * https://docs.microsoft.com/rest/api/playfab/client/account-management/addgenericid
32
+ */
33
+ AddGenericID(request, extraHeaders) {
34
+ return this.ExecuteRequestWrapper("/Client/AddGenericID", request, "X-Authorization", extraHeaders);
35
+ }
36
+ /**
37
+ * Adds or updates a contact email to the player's profile.
38
+ * https://docs.microsoft.com/rest/api/playfab/client/account-management/addorupdatecontactemail
39
+ */
40
+ AddOrUpdateContactEmail(request, extraHeaders) {
41
+ return this.ExecuteRequestWrapper("/Client/AddOrUpdateContactEmail", request, "X-Authorization", extraHeaders);
42
+ }
43
+ /**
44
+ * Adds users to the set of those able to update both the shared data, as well as the set of users in the group. Only users
45
+ * in the group can add new members. Shared Groups are designed for sharing data between a very small number of players,
46
+ * please see our guide: https://docs.microsoft.com/gaming/playfab/features/social/groups/using-shared-group-data
47
+ * https://docs.microsoft.com/rest/api/playfab/client/shared-group-data/addsharedgroupmembers
48
+ */
49
+ AddSharedGroupMembers(request, extraHeaders) {
50
+ return this.ExecuteRequestWrapper("/Client/AddSharedGroupMembers", request, "X-Authorization", extraHeaders);
51
+ }
52
+ /**
53
+ * Adds playfab username/password auth to an existing account created via an anonymous auth method, e.g. automatic device
54
+ * ID login.
55
+ * https://docs.microsoft.com/rest/api/playfab/client/account-management/addusernamepassword
56
+ */
57
+ AddUsernamePassword(request, extraHeaders) {
58
+ return this.ExecuteRequestWrapper("/Client/AddUsernamePassword", request, "X-Authorization", extraHeaders);
59
+ }
60
+ /**
61
+ * _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for
62
+ * version 2._ Increments the user's balance of the specified virtual currency by the stated amount
63
+ * https://docs.microsoft.com/rest/api/playfab/client/player-item-management/adduservirtualcurrency
64
+ */
65
+ AddUserVirtualCurrency(request, extraHeaders) {
66
+ return this.ExecuteRequestWrapper("/Client/AddUserVirtualCurrency", request, "X-Authorization", extraHeaders);
67
+ }
68
+ /**
69
+ * Registers the Android device to receive push notifications
70
+ * https://docs.microsoft.com/rest/api/playfab/client/platform-specific-methods/androiddevicepushnotificationregistration
71
+ */
72
+ AndroidDevicePushNotificationRegistration(request, extraHeaders) {
73
+ return this.ExecuteRequestWrapper("/Client/AndroidDevicePushNotificationRegistration", request, "X-Authorization", extraHeaders);
74
+ }
75
+ /**
76
+ * Attributes an install for advertisment.
77
+ * https://docs.microsoft.com/rest/api/playfab/client/advertising/attributeinstall
78
+ */
79
+ AttributeInstall(request, extraHeaders) {
80
+ return this.ExecuteRequestWrapper("/Client/AttributeInstall", request, "X-Authorization", extraHeaders);
81
+ }
82
+ /**
83
+ * Cancels an open trade (one that has not yet been accepted or cancelled). Note that only the player who created the trade
84
+ * can cancel it via this API call, to prevent griefing of the trade system (cancelling trades in order to prevent other
85
+ * players from accepting them, for trades that can be claimed by more than one player).
86
+ * https://docs.microsoft.com/rest/api/playfab/client/trading/canceltrade
87
+ */
88
+ CancelTrade(request, extraHeaders) {
89
+ return this.ExecuteRequestWrapper("/Client/CancelTrade", request, "X-Authorization", extraHeaders);
90
+ }
91
+ /**
92
+ * _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for
93
+ * version 2._ Confirms with the payment provider that the purchase was approved (if applicable) and adjusts inventory and
94
+ * virtual currency balances as appropriate
95
+ * https://docs.microsoft.com/rest/api/playfab/client/player-item-management/confirmpurchase
96
+ */
97
+ ConfirmPurchase(request, extraHeaders) {
98
+ return this.ExecuteRequestWrapper("/Client/ConfirmPurchase", request, "X-Authorization", extraHeaders);
99
+ }
100
+ /**
101
+ * _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for
102
+ * version 2._ Consume uses of a consumable item. When all uses are consumed, it will be removed from the player's
103
+ * inventory.
104
+ * https://docs.microsoft.com/rest/api/playfab/client/player-item-management/consumeitem
105
+ */
106
+ ConsumeItem(request, extraHeaders) {
107
+ return this.ExecuteRequestWrapper("/Client/ConsumeItem", request, "X-Authorization", extraHeaders);
108
+ }
109
+ /**
110
+ * Grants the player's current entitlements from Microsoft Store's Collection API
111
+ * https://docs.microsoft.com/rest/api/playfab/client/platform-specific-methods/consumemicrosoftstoreentitlements
112
+ */
113
+ ConsumeMicrosoftStoreEntitlements(request, extraHeaders) {
114
+ return this.ExecuteRequestWrapper("/Client/ConsumeMicrosoftStoreEntitlements", request, "X-Authorization", extraHeaders);
115
+ }
116
+ /**
117
+ * Checks for any new consumable entitlements. If any are found, they are consumed (if they're consumables) and added as
118
+ * PlayFab items
119
+ * https://docs.microsoft.com/rest/api/playfab/client/platform-specific-methods/consumeps5entitlements
120
+ */
121
+ ConsumePS5Entitlements(request, extraHeaders) {
122
+ return this.ExecuteRequestWrapper("/Client/ConsumePS5Entitlements", request, "X-Authorization", extraHeaders);
123
+ }
124
+ /**
125
+ * Checks for any new consumable entitlements. If any are found, they are consumed and added as PlayFab items
126
+ * https://docs.microsoft.com/rest/api/playfab/client/platform-specific-methods/consumepsnentitlements
127
+ */
128
+ ConsumePSNEntitlements(request, extraHeaders) {
129
+ return this.ExecuteRequestWrapper("/Client/ConsumePSNEntitlements", request, "X-Authorization", extraHeaders);
130
+ }
131
+ /**
132
+ * Grants the player's current entitlements from Xbox Live, consuming all availble items in Xbox and granting them to the
133
+ * player's PlayFab inventory. This call is idempotent and will not grant previously granted items to the player.
134
+ * https://docs.microsoft.com/rest/api/playfab/client/platform-specific-methods/consumexboxentitlements
135
+ */
136
+ ConsumeXboxEntitlements(request, extraHeaders) {
137
+ return this.ExecuteRequestWrapper("/Client/ConsumeXboxEntitlements", request, "X-Authorization", extraHeaders);
138
+ }
139
+ /**
140
+ * Requests the creation of a shared group object, containing key/value pairs which may be updated by all members of the
141
+ * group. Upon creation, the current user will be the only member of the group. Shared Groups are designed for sharing data
142
+ * between a very small number of players, please see our guide:
143
+ * https://docs.microsoft.com/gaming/playfab/features/social/groups/using-shared-group-data
144
+ * https://docs.microsoft.com/rest/api/playfab/client/shared-group-data/createsharedgroup
145
+ */
146
+ CreateSharedGroup(request, extraHeaders) {
147
+ return this.ExecuteRequestWrapper("/Client/CreateSharedGroup", request, "X-Authorization", extraHeaders);
148
+ }
149
+ /**
150
+ * Deletes title-specific custom properties for a player
151
+ * https://docs.microsoft.com/rest/api/playfab/client/player-data-management/deleteplayercustomproperties
152
+ */
153
+ DeletePlayerCustomProperties(request, extraHeaders) {
154
+ return this.ExecuteRequestWrapper("/Client/DeletePlayerCustomProperties", request, "X-Authorization", extraHeaders);
155
+ }
156
+ /**
157
+ * Executes a CloudScript function, with the 'currentPlayerId' set to the PlayFab ID of the authenticated player. The
158
+ * PlayFab ID is the entity ID of the player's master_player_account entity.
159
+ * https://docs.microsoft.com/rest/api/playfab/client/server-side-cloud-script/executecloudscript
160
+ */
161
+ ExecuteCloudScript(request, extraHeaders) {
162
+ return this.ExecuteRequestWrapper("/Client/ExecuteCloudScript", request, "X-Authorization", extraHeaders);
163
+ }
164
+ /**
165
+ * Retrieves the user's PlayFab account details
166
+ * https://docs.microsoft.com/rest/api/playfab/client/account-management/getaccountinfo
167
+ */
168
+ GetAccountInfo(request, extraHeaders) {
169
+ return this.ExecuteRequestWrapper("/Client/GetAccountInfo", request, "X-Authorization", extraHeaders);
170
+ }
171
+ /**
172
+ * Returns a list of ad placements and a reward for each
173
+ * https://docs.microsoft.com/rest/api/playfab/client/advertising/getadplacements
174
+ */
175
+ GetAdPlacements(request, extraHeaders) {
176
+ return this.ExecuteRequestWrapper("/Client/GetAdPlacements", request, "X-Authorization", extraHeaders);
177
+ }
178
+ /**
179
+ * Lists all of the characters that belong to a specific user. CharacterIds are not globally unique; characterId must be
180
+ * evaluated with the parent PlayFabId to guarantee uniqueness.
181
+ * https://docs.microsoft.com/rest/api/playfab/client/characters/getalluserscharacters
182
+ */
183
+ GetAllUsersCharacters(request, extraHeaders) {
184
+ return this.ExecuteRequestWrapper("/Client/GetAllUsersCharacters", request, "X-Authorization", extraHeaders);
185
+ }
186
+ /**
187
+ * _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for
188
+ * version 2._ Retrieves the specified version of the title's catalog of virtual goods, including all defined properties
189
+ * https://docs.microsoft.com/rest/api/playfab/client/title-wide-data-management/getcatalogitems
190
+ */
191
+ GetCatalogItems(request, extraHeaders) {
192
+ return this.ExecuteRequestWrapper("/Client/GetCatalogItems", request, "X-Authorization", extraHeaders);
193
+ }
194
+ /**
195
+ * Retrieves the title-specific custom data for the character which is readable and writable by the client
196
+ * https://docs.microsoft.com/rest/api/playfab/client/character-data/getcharacterdata
197
+ */
198
+ GetCharacterData(request, extraHeaders) {
199
+ return this.ExecuteRequestWrapper("/Client/GetCharacterData", request, "X-Authorization", extraHeaders);
200
+ }
201
+ /**
202
+ * _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for
203
+ * version 2._ Retrieves the specified character's current inventory of virtual goods
204
+ * https://docs.microsoft.com/rest/api/playfab/client/player-item-management/getcharacterinventory
205
+ */
206
+ GetCharacterInventory(request, extraHeaders) {
207
+ return this.ExecuteRequestWrapper("/Client/GetCharacterInventory", request, "X-Authorization", extraHeaders);
208
+ }
209
+ /**
210
+ * Retrieves a list of ranked characters for the given statistic, starting from the indicated point in the leaderboard
211
+ * https://docs.microsoft.com/rest/api/playfab/client/characters/getcharacterleaderboard
212
+ */
213
+ GetCharacterLeaderboard(request, extraHeaders) {
214
+ return this.ExecuteRequestWrapper("/Client/GetCharacterLeaderboard", request, "X-Authorization", extraHeaders);
215
+ }
216
+ /**
217
+ * Retrieves the title-specific custom data for the character which can only be read by the client
218
+ * https://docs.microsoft.com/rest/api/playfab/client/character-data/getcharacterreadonlydata
219
+ */
220
+ GetCharacterReadOnlyData(request, extraHeaders) {
221
+ return this.ExecuteRequestWrapper("/Client/GetCharacterReadOnlyData", request, "X-Authorization", extraHeaders);
222
+ }
223
+ /**
224
+ * Retrieves the details of all title-specific statistics for the user
225
+ * https://docs.microsoft.com/rest/api/playfab/client/characters/getcharacterstatistics
226
+ */
227
+ GetCharacterStatistics(request, extraHeaders) {
228
+ return this.ExecuteRequestWrapper("/Client/GetCharacterStatistics", request, "X-Authorization", extraHeaders);
229
+ }
230
+ /**
231
+ * This API retrieves a pre-signed URL for accessing a content file for the title. A subsequent HTTP GET to the returned
232
+ * URL will attempt to download the content. A HEAD query to the returned URL will attempt to retrieve the metadata of the
233
+ * content. Note that a successful result does not guarantee the existence of this content - if it has not been uploaded,
234
+ * the query to retrieve the data will fail. See this post for more information:
235
+ * https://community.playfab.com/hc/community/posts/205469488-How-to-upload-files-to-PlayFab-s-Content-Service. Also,
236
+ * please be aware that the Content service is specifically PlayFab's CDN offering, for which standard CDN rates apply.
237
+ * https://docs.microsoft.com/rest/api/playfab/client/content/getcontentdownloadurl
238
+ */
239
+ GetContentDownloadUrl(request, extraHeaders) {
240
+ return this.ExecuteRequestWrapper("/Client/GetContentDownloadUrl", request, "X-Authorization", extraHeaders);
241
+ }
242
+ /**
243
+ * Retrieves a list of ranked friends of the current player for the given statistic, starting from the indicated point in
244
+ * the leaderboard
245
+ * https://docs.microsoft.com/rest/api/playfab/client/player-data-management/getfriendleaderboard
246
+ */
247
+ GetFriendLeaderboard(request, extraHeaders) {
248
+ return this.ExecuteRequestWrapper("/Client/GetFriendLeaderboard", request, "X-Authorization", extraHeaders);
249
+ }
250
+ /**
251
+ * Retrieves a list of ranked friends of the current player for the given statistic, centered on the requested PlayFab
252
+ * user. If PlayFabId is empty or null will return currently logged in user.
253
+ * https://docs.microsoft.com/rest/api/playfab/client/player-data-management/getfriendleaderboardaroundplayer
254
+ */
255
+ GetFriendLeaderboardAroundPlayer(request, extraHeaders) {
256
+ return this.ExecuteRequestWrapper("/Client/GetFriendLeaderboardAroundPlayer", request, "X-Authorization", extraHeaders);
257
+ }
258
+ /**
259
+ * Retrieves the current friend list for the local user, constrained to users who have PlayFab accounts. Friends from
260
+ * linked accounts (Facebook, Steam) are also included. You may optionally exclude some linked services' friends.
261
+ * https://docs.microsoft.com/rest/api/playfab/client/friend-list-management/getfriendslist
262
+ */
263
+ GetFriendsList(request, extraHeaders) {
264
+ return this.ExecuteRequestWrapper("/Client/GetFriendsList", request, "X-Authorization", extraHeaders);
265
+ }
266
+ /**
267
+ * Retrieves a list of ranked users for the given statistic, starting from the indicated point in the leaderboard
268
+ * https://docs.microsoft.com/rest/api/playfab/client/player-data-management/getleaderboard
269
+ */
270
+ GetLeaderboard(request, extraHeaders) {
271
+ return this.ExecuteRequestWrapper("/Client/GetLeaderboard", request, "X-Authorization", extraHeaders);
272
+ }
273
+ /**
274
+ * Retrieves a list of ranked characters for the given statistic, centered on the requested Character ID
275
+ * https://docs.microsoft.com/rest/api/playfab/client/characters/getleaderboardaroundcharacter
276
+ */
277
+ GetLeaderboardAroundCharacter(request, extraHeaders) {
278
+ return this.ExecuteRequestWrapper("/Client/GetLeaderboardAroundCharacter", request, "X-Authorization", extraHeaders);
279
+ }
280
+ /**
281
+ * Retrieves a list of ranked users for the given statistic, centered on the requested player. If PlayFabId is empty or
282
+ * null will return currently logged in user.
283
+ * https://docs.microsoft.com/rest/api/playfab/client/player-data-management/getleaderboardaroundplayer
284
+ */
285
+ GetLeaderboardAroundPlayer(request, extraHeaders) {
286
+ return this.ExecuteRequestWrapper("/Client/GetLeaderboardAroundPlayer", request, "X-Authorization", extraHeaders);
287
+ }
288
+ /**
289
+ * Retrieves a list of all of the user's characters for the given statistic.
290
+ * https://docs.microsoft.com/rest/api/playfab/client/characters/getleaderboardforusercharacters
291
+ */
292
+ GetLeaderboardForUserCharacters(request, extraHeaders) {
293
+ return this.ExecuteRequestWrapper("/Client/GetLeaderboardForUserCharacters", request, "X-Authorization", extraHeaders);
294
+ }
295
+ /**
296
+ * _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for
297
+ * version 2._ For payments flows where the provider requires playfab (the fulfiller) to initiate the transaction, but the
298
+ * client completes the rest of the flow. In the Xsolla case, the token returned here will be passed to Xsolla by the
299
+ * client to create a cart. Poll GetPurchase using the returned OrderId once you've completed the payment.
300
+ * https://docs.microsoft.com/rest/api/playfab/client/player-item-management/getpaymenttoken
301
+ */
302
+ GetPaymentToken(request, extraHeaders) {
303
+ return this.ExecuteRequestWrapper("/Client/GetPaymentToken", request, "X-Authorization", extraHeaders);
304
+ }
305
+ /**
306
+ * Gets a Photon custom authentication token that can be used to securely join the player into a Photon room. See
307
+ * https://docs.microsoft.com/gaming/playfab/features/multiplayer/photon/quickstart for more details.
308
+ * https://docs.microsoft.com/rest/api/playfab/client/authentication/getphotonauthenticationtoken
309
+ */
310
+ GetPhotonAuthenticationToken(request, extraHeaders) {
311
+ return this.ExecuteRequestWrapper("/Client/GetPhotonAuthenticationToken", request, "X-Authorization", extraHeaders);
312
+ }
313
+ /**
314
+ * Retrieves all of the user's different kinds of info.
315
+ * https://docs.microsoft.com/rest/api/playfab/client/account-management/getplayercombinedinfo
316
+ */
317
+ GetPlayerCombinedInfo(request, extraHeaders) {
318
+ return this.ExecuteRequestWrapper("/Client/GetPlayerCombinedInfo", request, "X-Authorization", extraHeaders);
319
+ }
320
+ /**
321
+ * Retrieves a title-specific custom property value for a player.
322
+ * https://docs.microsoft.com/rest/api/playfab/client/player-data-management/getplayercustomproperty
323
+ */
324
+ GetPlayerCustomProperty(request, extraHeaders) {
325
+ return this.ExecuteRequestWrapper("/Client/GetPlayerCustomProperty", request, "X-Authorization", extraHeaders);
326
+ }
327
+ /**
328
+ * Retrieves the player's profile
329
+ * https://docs.microsoft.com/rest/api/playfab/client/account-management/getplayerprofile
330
+ */
331
+ GetPlayerProfile(request, extraHeaders) {
332
+ return this.ExecuteRequestWrapper("/Client/GetPlayerProfile", request, "X-Authorization", extraHeaders);
333
+ }
334
+ /**
335
+ * List all segments that a player currently belongs to at this moment in time.
336
+ * https://docs.microsoft.com/rest/api/playfab/client/playstream/getplayersegments
337
+ */
338
+ GetPlayerSegments(request, extraHeaders) {
339
+ return this.ExecuteRequestWrapper("/Client/GetPlayerSegments", request, "X-Authorization", extraHeaders);
340
+ }
341
+ /**
342
+ * Retrieves the indicated statistics (current version and values for all statistics, if none are specified), for the local
343
+ * player.
344
+ * https://docs.microsoft.com/rest/api/playfab/client/player-data-management/getplayerstatistics
345
+ */
346
+ GetPlayerStatistics(request, extraHeaders) {
347
+ return this.ExecuteRequestWrapper("/Client/GetPlayerStatistics", request, "X-Authorization", extraHeaders);
348
+ }
349
+ /**
350
+ * Retrieves the information on the available versions of the specified statistic.
351
+ * https://docs.microsoft.com/rest/api/playfab/client/player-data-management/getplayerstatisticversions
352
+ */
353
+ GetPlayerStatisticVersions(request, extraHeaders) {
354
+ return this.ExecuteRequestWrapper("/Client/GetPlayerStatisticVersions", request, "X-Authorization", extraHeaders);
355
+ }
356
+ /**
357
+ * Get all tags with a given Namespace (optional) from a player profile.
358
+ * https://docs.microsoft.com/rest/api/playfab/client/playstream/getplayertags
359
+ */
360
+ GetPlayerTags(request, extraHeaders) {
361
+ return this.ExecuteRequestWrapper("/Client/GetPlayerTags", request, "X-Authorization", extraHeaders);
362
+ }
363
+ /**
364
+ * Gets all trades the player has either opened or accepted, optionally filtered by trade status.
365
+ * https://docs.microsoft.com/rest/api/playfab/client/trading/getplayertrades
366
+ */
367
+ GetPlayerTrades(request, extraHeaders) {
368
+ return this.ExecuteRequestWrapper("/Client/GetPlayerTrades", request, "X-Authorization", extraHeaders);
369
+ }
370
+ /**
371
+ * Retrieves the unique PlayFab identifiers for the given set of Battle.net account identifiers.
372
+ * https://docs.microsoft.com/rest/api/playfab/client/account-management/getplayfabidsfrombattlenetaccountids
373
+ */
374
+ GetPlayFabIDsFromBattleNetAccountIds(request, extraHeaders) {
375
+ return this.ExecuteRequestWrapper("/Client/GetPlayFabIDsFromBattleNetAccountIds", request, "X-Authorization", extraHeaders);
376
+ }
377
+ /**
378
+ * Retrieves the unique PlayFab identifiers for the given set of Facebook identifiers.
379
+ * https://docs.microsoft.com/rest/api/playfab/client/account-management/getplayfabidsfromfacebookids
380
+ */
381
+ GetPlayFabIDsFromFacebookIDs(request, extraHeaders) {
382
+ return this.ExecuteRequestWrapper("/Client/GetPlayFabIDsFromFacebookIDs", request, "X-Authorization", extraHeaders);
383
+ }
384
+ /**
385
+ * Retrieves the unique PlayFab identifiers for the given set of Facebook Instant Game identifiers.
386
+ * https://docs.microsoft.com/rest/api/playfab/client/account-management/getplayfabidsfromfacebookinstantgamesids
387
+ */
388
+ GetPlayFabIDsFromFacebookInstantGamesIds(request, extraHeaders) {
389
+ return this.ExecuteRequestWrapper("/Client/GetPlayFabIDsFromFacebookInstantGamesIds", request, "X-Authorization", extraHeaders);
390
+ }
391
+ /**
392
+ * Retrieves the unique PlayFab identifiers for the given set of Game Center identifiers (referenced in the Game Center
393
+ * Programming Guide as the Player Identifier).
394
+ * https://docs.microsoft.com/rest/api/playfab/client/account-management/getplayfabidsfromgamecenterids
395
+ */
396
+ GetPlayFabIDsFromGameCenterIDs(request, extraHeaders) {
397
+ return this.ExecuteRequestWrapper("/Client/GetPlayFabIDsFromGameCenterIDs", request, "X-Authorization", extraHeaders);
398
+ }
399
+ /**
400
+ * Retrieves the unique PlayFab identifiers for the given set of generic service identifiers. A generic identifier is the
401
+ * service name plus the service-specific ID for the player, as specified by the title when the generic identifier was
402
+ * added to the player account.
403
+ * https://docs.microsoft.com/rest/api/playfab/client/account-management/getplayfabidsfromgenericids
404
+ */
405
+ GetPlayFabIDsFromGenericIDs(request, extraHeaders) {
406
+ return this.ExecuteRequestWrapper("/Client/GetPlayFabIDsFromGenericIDs", request, "X-Authorization", extraHeaders);
407
+ }
408
+ /**
409
+ * Retrieves the unique PlayFab identifiers for the given set of Google identifiers. The Google identifiers are the IDs for
410
+ * the user accounts, available as "id" in the Google+ People API calls.
411
+ * https://docs.microsoft.com/rest/api/playfab/client/account-management/getplayfabidsfromgoogleids
412
+ */
413
+ GetPlayFabIDsFromGoogleIDs(request, extraHeaders) {
414
+ return this.ExecuteRequestWrapper("/Client/GetPlayFabIDsFromGoogleIDs", request, "X-Authorization", extraHeaders);
415
+ }
416
+ /**
417
+ * Retrieves the unique PlayFab identifiers for the given set of Google Play Games identifiers. The Google Play Games
418
+ * identifiers are the IDs for the user accounts, available as "playerId" in the Google Play Games Services - Players API
419
+ * calls.
420
+ * https://docs.microsoft.com/rest/api/playfab/client/account-management/getplayfabidsfromgoogleplaygamesplayerids
421
+ */
422
+ GetPlayFabIDsFromGooglePlayGamesPlayerIDs(request, extraHeaders) {
423
+ return this.ExecuteRequestWrapper("/Client/GetPlayFabIDsFromGooglePlayGamesPlayerIDs", request, "X-Authorization", extraHeaders);
424
+ }
425
+ /**
426
+ * Retrieves the unique PlayFab identifiers for the given set of Kongregate identifiers. The Kongregate identifiers are the
427
+ * IDs for the user accounts, available as "user_id" from the Kongregate API methods(ex:
428
+ * http://developers.kongregate.com/docs/client/getUserId).
429
+ * https://docs.microsoft.com/rest/api/playfab/client/account-management/getplayfabidsfromkongregateids
430
+ */
431
+ GetPlayFabIDsFromKongregateIDs(request, extraHeaders) {
432
+ return this.ExecuteRequestWrapper("/Client/GetPlayFabIDsFromKongregateIDs", request, "X-Authorization", extraHeaders);
433
+ }
434
+ /**
435
+ * Retrieves the unique PlayFab identifiers for the given set of Nintendo Service Account identifiers.
436
+ * https://docs.microsoft.com/rest/api/playfab/client/account-management/getplayfabidsfromnintendoserviceaccountids
437
+ */
438
+ GetPlayFabIDsFromNintendoServiceAccountIds(request, extraHeaders) {
439
+ return this.ExecuteRequestWrapper("/Client/GetPlayFabIDsFromNintendoServiceAccountIds", request, "X-Authorization", extraHeaders);
440
+ }
441
+ /**
442
+ * Retrieves the unique PlayFab identifiers for the given set of Nintendo Switch Device identifiers.
443
+ * https://docs.microsoft.com/rest/api/playfab/client/account-management/getplayfabidsfromnintendoswitchdeviceids
444
+ */
445
+ GetPlayFabIDsFromNintendoSwitchDeviceIds(request, extraHeaders) {
446
+ return this.ExecuteRequestWrapper("/Client/GetPlayFabIDsFromNintendoSwitchDeviceIds", request, "X-Authorization", extraHeaders);
447
+ }
448
+ /**
449
+ * Retrieves the unique PlayFab identifiers for the given set of PlayStation :tm: Network identifiers.
450
+ * https://docs.microsoft.com/rest/api/playfab/client/account-management/getplayfabidsfrompsnaccountids
451
+ */
452
+ GetPlayFabIDsFromPSNAccountIDs(request, extraHeaders) {
453
+ return this.ExecuteRequestWrapper("/Client/GetPlayFabIDsFromPSNAccountIDs", request, "X-Authorization", extraHeaders);
454
+ }
455
+ /**
456
+ * Retrieves the unique PlayFab identifiers for the given set of PlayStation :tm: Network identifiers.
457
+ * https://docs.microsoft.com/rest/api/playfab/client/account-management/getplayfabidsfrompsnonlineids
458
+ */
459
+ GetPlayFabIDsFromPSNOnlineIDs(request, extraHeaders) {
460
+ return this.ExecuteRequestWrapper("/Client/GetPlayFabIDsFromPSNOnlineIDs", request, "X-Authorization", extraHeaders);
461
+ }
462
+ /**
463
+ * Retrieves the unique PlayFab identifiers for the given set of Steam identifiers. The Steam identifiers are the profile
464
+ * IDs for the user accounts, available as SteamId in the Steamworks Community API calls.
465
+ * https://docs.microsoft.com/rest/api/playfab/client/account-management/getplayfabidsfromsteamids
466
+ */
467
+ GetPlayFabIDsFromSteamIDs(request, extraHeaders) {
468
+ return this.ExecuteRequestWrapper("/Client/GetPlayFabIDsFromSteamIDs", request, "X-Authorization", extraHeaders);
469
+ }
470
+ /**
471
+ * Retrieves the unique PlayFab identifiers for the given set of Steam identifiers. The Steam identifiers are persona
472
+ * names.
473
+ * https://docs.microsoft.com/rest/api/playfab/client/account-management/getplayfabidsfromsteamnames
474
+ */
475
+ GetPlayFabIDsFromSteamNames(request, extraHeaders) {
476
+ return this.ExecuteRequestWrapper("/Client/GetPlayFabIDsFromSteamNames", request, "X-Authorization", extraHeaders);
477
+ }
478
+ /**
479
+ * Retrieves the unique PlayFab identifiers for the given set of Twitch identifiers. The Twitch identifiers are the IDs for
480
+ * the user accounts, available as "_id" from the Twitch API methods (ex:
481
+ * https://github.com/justintv/Twitch-API/blob/master/v3_resources/users.md#get-usersuser).
482
+ * https://docs.microsoft.com/rest/api/playfab/client/account-management/getplayfabidsfromtwitchids
483
+ */
484
+ GetPlayFabIDsFromTwitchIDs(request, extraHeaders) {
485
+ return this.ExecuteRequestWrapper("/Client/GetPlayFabIDsFromTwitchIDs", request, "X-Authorization", extraHeaders);
486
+ }
487
+ /**
488
+ * Retrieves the unique PlayFab identifiers for the given set of XboxLive identifiers.
489
+ * https://docs.microsoft.com/rest/api/playfab/client/account-management/getplayfabidsfromxboxliveids
490
+ */
491
+ GetPlayFabIDsFromXboxLiveIDs(request, extraHeaders) {
492
+ return this.ExecuteRequestWrapper("/Client/GetPlayFabIDsFromXboxLiveIDs", request, "X-Authorization", extraHeaders);
493
+ }
494
+ /**
495
+ * Retrieves the key-value store of custom publisher settings
496
+ * https://docs.microsoft.com/rest/api/playfab/client/title-wide-data-management/getpublisherdata
497
+ */
498
+ GetPublisherData(request, extraHeaders) {
499
+ return this.ExecuteRequestWrapper("/Client/GetPublisherData", request, "X-Authorization", extraHeaders);
500
+ }
501
+ /**
502
+ * _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for
503
+ * version 2._ Retrieves a purchase along with its current PlayFab status. Returns inventory items from the purchase that
504
+ * are still active.
505
+ * https://docs.microsoft.com/rest/api/playfab/client/player-item-management/getpurchase
506
+ */
507
+ GetPurchase(request, extraHeaders) {
508
+ return this.ExecuteRequestWrapper("/Client/GetPurchase", request, "X-Authorization", extraHeaders);
509
+ }
510
+ /**
511
+ * Retrieves data stored in a shared group object, as well as the list of members in the group. Non-members of the group
512
+ * may use this to retrieve group data, including membership, but they will not receive data for keys marked as private.
513
+ * Shared Groups are designed for sharing data between a very small number of players, please see our guide:
514
+ * https://docs.microsoft.com/gaming/playfab/features/social/groups/using-shared-group-data
515
+ * https://docs.microsoft.com/rest/api/playfab/client/shared-group-data/getsharedgroupdata
516
+ */
517
+ GetSharedGroupData(request, extraHeaders) {
518
+ return this.ExecuteRequestWrapper("/Client/GetSharedGroupData", request, "X-Authorization", extraHeaders);
519
+ }
520
+ /**
521
+ * _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for
522
+ * version 2._ Retrieves the set of items defined for the specified store, including all prices defined
523
+ * https://docs.microsoft.com/rest/api/playfab/client/title-wide-data-management/getstoreitems
524
+ */
525
+ GetStoreItems(request, extraHeaders) {
526
+ return this.ExecuteRequestWrapper("/Client/GetStoreItems", request, "X-Authorization", extraHeaders);
527
+ }
528
+ /**
529
+ * Retrieves the current server time
530
+ * https://docs.microsoft.com/rest/api/playfab/client/title-wide-data-management/gettime
531
+ */
532
+ GetTime(request, extraHeaders) {
533
+ return this.ExecuteRequestWrapper("/Client/GetTime", request, "X-Authorization", extraHeaders);
534
+ }
535
+ /**
536
+ * Retrieves the key-value store of custom title settings
537
+ * https://docs.microsoft.com/rest/api/playfab/client/title-wide-data-management/gettitledata
538
+ */
539
+ GetTitleData(request, extraHeaders) {
540
+ return this.ExecuteRequestWrapper("/Client/GetTitleData", request, "X-Authorization", extraHeaders);
541
+ }
542
+ /**
543
+ * Retrieves the title news feed, as configured in the developer portal
544
+ * https://docs.microsoft.com/rest/api/playfab/client/title-wide-data-management/gettitlenews
545
+ */
546
+ GetTitleNews(request, extraHeaders) {
547
+ return this.ExecuteRequestWrapper("/Client/GetTitleNews", request, "X-Authorization", extraHeaders);
548
+ }
549
+ /**
550
+ * Returns the title's base 64 encoded RSA CSP blob.
551
+ * https://docs.microsoft.com/rest/api/playfab/client/authentication/gettitlepublickey
552
+ */
553
+ GetTitlePublicKey(request, extraHeaders) {
554
+ return this.ExecuteRequestWrapper("/Client/GetTitlePublicKey", request, null, extraHeaders);
555
+ }
556
+ /**
557
+ * Gets the current status of an existing trade.
558
+ * https://docs.microsoft.com/rest/api/playfab/client/trading/gettradestatus
559
+ */
560
+ GetTradeStatus(request, extraHeaders) {
561
+ return this.ExecuteRequestWrapper("/Client/GetTradeStatus", request, "X-Authorization", extraHeaders);
562
+ }
563
+ /**
564
+ * Retrieves the title-specific custom data for the user which is readable and writable by the client
565
+ * https://docs.microsoft.com/rest/api/playfab/client/player-data-management/getuserdata
566
+ */
567
+ GetUserData(request, extraHeaders) {
568
+ return this.ExecuteRequestWrapper("/Client/GetUserData", request, "X-Authorization", extraHeaders);
569
+ }
570
+ /**
571
+ * _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for
572
+ * version 2._ Retrieves the user's current inventory of virtual goods
573
+ * https://docs.microsoft.com/rest/api/playfab/client/player-item-management/getuserinventory
574
+ */
575
+ GetUserInventory(request, extraHeaders) {
576
+ return this.ExecuteRequestWrapper("/Client/GetUserInventory", request, "X-Authorization", extraHeaders);
577
+ }
578
+ /**
579
+ * Retrieves the publisher-specific custom data for the user which is readable and writable by the client
580
+ * https://docs.microsoft.com/rest/api/playfab/client/player-data-management/getuserpublisherdata
581
+ */
582
+ GetUserPublisherData(request, extraHeaders) {
583
+ return this.ExecuteRequestWrapper("/Client/GetUserPublisherData", request, "X-Authorization", extraHeaders);
584
+ }
585
+ /**
586
+ * Retrieves the publisher-specific custom data for the user which can only be read by the client
587
+ * https://docs.microsoft.com/rest/api/playfab/client/player-data-management/getuserpublisherreadonlydata
588
+ */
589
+ GetUserPublisherReadOnlyData(request, extraHeaders) {
590
+ return this.ExecuteRequestWrapper("/Client/GetUserPublisherReadOnlyData", request, "X-Authorization", extraHeaders);
591
+ }
592
+ /**
593
+ * Retrieves the title-specific custom data for the user which can only be read by the client
594
+ * https://docs.microsoft.com/rest/api/playfab/client/player-data-management/getuserreadonlydata
595
+ */
596
+ GetUserReadOnlyData(request, extraHeaders) {
597
+ return this.ExecuteRequestWrapper("/Client/GetUserReadOnlyData", request, "X-Authorization", extraHeaders);
598
+ }
599
+ /**
600
+ * Grants the specified character type to the user. CharacterIds are not globally unique; characterId must be evaluated
601
+ * with the parent PlayFabId to guarantee uniqueness.
602
+ * https://docs.microsoft.com/rest/api/playfab/client/characters/grantcharactertouser
603
+ */
604
+ GrantCharacterToUser(request, extraHeaders) {
605
+ return this.ExecuteRequestWrapper("/Client/GrantCharacterToUser", request, "X-Authorization", extraHeaders);
606
+ }
607
+ /**
608
+ * Links the Android device identifier to the user's PlayFab account
609
+ * https://docs.microsoft.com/rest/api/playfab/client/account-management/linkandroiddeviceid
610
+ */
611
+ LinkAndroidDeviceID(request, extraHeaders) {
612
+ return this.ExecuteRequestWrapper("/Client/LinkAndroidDeviceID", request, "X-Authorization", extraHeaders);
613
+ }
614
+ /**
615
+ * Links the Apple account associated with the token to the user's PlayFab account.
616
+ * https://docs.microsoft.com/rest/api/playfab/client/account-management/linkapple
617
+ */
618
+ LinkApple(request, extraHeaders) {
619
+ return this.ExecuteRequestWrapper("/Client/LinkApple", request, "X-Authorization", extraHeaders);
620
+ }
621
+ /**
622
+ * Links the Battle.net account associated with the token to the user's PlayFab account.
623
+ * https://docs.microsoft.com/rest/api/playfab/client/account-management/linkbattlenetaccount
624
+ */
625
+ LinkBattleNetAccount(request, extraHeaders) {
626
+ return this.ExecuteRequestWrapper("/Client/LinkBattleNetAccount", request, "X-Authorization", extraHeaders);
627
+ }
628
+ /**
629
+ * Links the custom identifier, generated by the title, to the user's PlayFab account
630
+ * https://docs.microsoft.com/rest/api/playfab/client/account-management/linkcustomid
631
+ */
632
+ LinkCustomID(request, extraHeaders) {
633
+ return this.ExecuteRequestWrapper("/Client/LinkCustomID", request, "X-Authorization", extraHeaders);
634
+ }
635
+ /**
636
+ * Links the Facebook account associated with the provided Facebook access token to the user's PlayFab account
637
+ * https://docs.microsoft.com/rest/api/playfab/client/account-management/linkfacebookaccount
638
+ */
639
+ LinkFacebookAccount(request, extraHeaders) {
640
+ return this.ExecuteRequestWrapper("/Client/LinkFacebookAccount", request, "X-Authorization", extraHeaders);
641
+ }
642
+ /**
643
+ * Links the Facebook Instant Games Id to the user's PlayFab account
644
+ * https://docs.microsoft.com/rest/api/playfab/client/account-management/linkfacebookinstantgamesid
645
+ */
646
+ LinkFacebookInstantGamesId(request, extraHeaders) {
647
+ return this.ExecuteRequestWrapper("/Client/LinkFacebookInstantGamesId", request, "X-Authorization", extraHeaders);
648
+ }
649
+ /**
650
+ * Links the Game Center account associated with the provided Game Center ID to the user's PlayFab account. Logging in with
651
+ * a Game Center ID is insecure if you do not include the optional PublicKeyUrl, Salt, Signature, and Timestamp parameters
652
+ * in this request. It is recommended you require these parameters on all Game Center calls by going to the Apple Add-ons
653
+ * page in the PlayFab Game Manager and enabling the 'Require secure authentication only for this app' option.
654
+ * https://docs.microsoft.com/rest/api/playfab/client/account-management/linkgamecenteraccount
655
+ */
656
+ LinkGameCenterAccount(request, extraHeaders) {
657
+ return this.ExecuteRequestWrapper("/Client/LinkGameCenterAccount", request, "X-Authorization", extraHeaders);
658
+ }
659
+ /**
660
+ * Links the currently signed-in user account to their Google account, using their Google account credentials
661
+ * https://docs.microsoft.com/rest/api/playfab/client/account-management/linkgoogleaccount
662
+ */
663
+ LinkGoogleAccount(request, extraHeaders) {
664
+ return this.ExecuteRequestWrapper("/Client/LinkGoogleAccount", request, "X-Authorization", extraHeaders);
665
+ }
666
+ /**
667
+ * Links the currently signed-in user account to their Google Play Games account, using their Google Play Games account
668
+ * credentials
669
+ * https://docs.microsoft.com/rest/api/playfab/client/account-management/linkgoogleplaygamesservicesaccount
670
+ */
671
+ LinkGooglePlayGamesServicesAccount(request, extraHeaders) {
672
+ return this.ExecuteRequestWrapper("/Client/LinkGooglePlayGamesServicesAccount", request, "X-Authorization", extraHeaders);
673
+ }
674
+ /**
675
+ * Links the vendor-specific iOS device identifier to the user's PlayFab account
676
+ * https://docs.microsoft.com/rest/api/playfab/client/account-management/linkiosdeviceid
677
+ */
678
+ LinkIOSDeviceID(request, extraHeaders) {
679
+ return this.ExecuteRequestWrapper("/Client/LinkIOSDeviceID", request, "X-Authorization", extraHeaders);
680
+ }
681
+ /**
682
+ * Links the Kongregate identifier to the user's PlayFab account
683
+ * https://docs.microsoft.com/rest/api/playfab/client/account-management/linkkongregate
684
+ */
685
+ LinkKongregate(request, extraHeaders) {
686
+ return this.ExecuteRequestWrapper("/Client/LinkKongregate", request, "X-Authorization", extraHeaders);
687
+ }
688
+ /**
689
+ * Links the Nintendo account associated with the token to the user's PlayFab account.
690
+ * https://docs.microsoft.com/rest/api/playfab/client/account-management/linknintendoserviceaccount
691
+ */
692
+ LinkNintendoServiceAccount(request, extraHeaders) {
693
+ return this.ExecuteRequestWrapper("/Client/LinkNintendoServiceAccount", request, "X-Authorization", extraHeaders);
694
+ }
695
+ /**
696
+ * Links the NintendoSwitchDeviceId to the user's PlayFab account
697
+ * https://docs.microsoft.com/rest/api/playfab/client/account-management/linknintendoswitchdeviceid
698
+ */
699
+ LinkNintendoSwitchDeviceId(request, extraHeaders) {
700
+ return this.ExecuteRequestWrapper("/Client/LinkNintendoSwitchDeviceId", request, "X-Authorization", extraHeaders);
701
+ }
702
+ /**
703
+ * Links an OpenID Connect account to a user's PlayFab account, based on an existing relationship between a title and an
704
+ * Open ID Connect provider and the OpenId Connect JWT from that provider.
705
+ * https://docs.microsoft.com/rest/api/playfab/client/account-management/linkopenidconnect
706
+ */
707
+ LinkOpenIdConnect(request, extraHeaders) {
708
+ return this.ExecuteRequestWrapper("/Client/LinkOpenIdConnect", request, "X-Authorization", extraHeaders);
709
+ }
710
+ /**
711
+ * Links the PlayStation :tm: Network account associated with the provided access code to the user's PlayFab account
712
+ * https://docs.microsoft.com/rest/api/playfab/client/account-management/linkpsnaccount
713
+ */
714
+ LinkPSNAccount(request, extraHeaders) {
715
+ return this.ExecuteRequestWrapper("/Client/LinkPSNAccount", request, "X-Authorization", extraHeaders);
716
+ }
717
+ /**
718
+ * Links the Steam account associated with the provided Steam authentication ticket to the user's PlayFab account
719
+ * https://docs.microsoft.com/rest/api/playfab/client/account-management/linksteamaccount
720
+ */
721
+ LinkSteamAccount(request, extraHeaders) {
722
+ return this.ExecuteRequestWrapper("/Client/LinkSteamAccount", request, "X-Authorization", extraHeaders);
723
+ }
724
+ /**
725
+ * Links the Twitch account associated with the token to the user's PlayFab account.
726
+ * https://docs.microsoft.com/rest/api/playfab/client/account-management/linktwitch
727
+ */
728
+ LinkTwitch(request, extraHeaders) {
729
+ return this.ExecuteRequestWrapper("/Client/LinkTwitch", request, "X-Authorization", extraHeaders);
730
+ }
731
+ /**
732
+ * Links the Xbox Live account associated with the provided access code to the user's PlayFab account
733
+ * https://docs.microsoft.com/rest/api/playfab/client/account-management/linkxboxaccount
734
+ */
735
+ LinkXboxAccount(request, extraHeaders) {
736
+ return this.ExecuteRequestWrapper("/Client/LinkXboxAccount", request, "X-Authorization", extraHeaders);
737
+ }
738
+ /**
739
+ * Retrieves title-specific custom property values for a player.
740
+ * https://docs.microsoft.com/rest/api/playfab/client/player-data-management/listplayercustomproperties
741
+ */
742
+ ListPlayerCustomProperties(request, extraHeaders) {
743
+ return this.ExecuteRequestWrapper("/Client/ListPlayerCustomProperties", request, "X-Authorization", extraHeaders);
744
+ }
745
+ /**
746
+ * Signs the user in using the Android device identifier, returning a session identifier that can subsequently be used for
747
+ * API calls which require an authenticated user
748
+ * https://docs.microsoft.com/rest/api/playfab/client/authentication/loginwithandroiddeviceid
749
+ */
750
+ LoginWithAndroidDeviceID(request, extraHeaders) {
751
+ request.TitleId = this.settings.titleId ? this.settings.titleId : request.TitleId;
752
+ if (!request.TitleId) throw this.errorTitleId;
753
+ var authenticationContext = JSON.parse(JSON.stringify(this.authenticationContext));
754
+ return this.ExecuteRequestWrapper("/Client/LoginWithAndroidDeviceID", request, null, extraHeaders).then((result) => {
755
+ var _a;
756
+ if (result) {
757
+ if (result == null ? void 0 : result.SessionTicket) {
758
+ this.sessionTicket = result.SessionTicket;
759
+ }
760
+ if ((_a = result == null ? void 0 : result.EntityToken) == null ? void 0 : _a.EntityToken) {
761
+ this.entityToken = result.EntityToken.EntityToken;
762
+ }
763
+ authenticationContext = this.UpdateAuthenticationContext(authenticationContext, result);
764
+ }
765
+ return result;
766
+ });
767
+ }
768
+ /**
769
+ * Signs in the user with a Sign in with Apple identity token.
770
+ * https://docs.microsoft.com/rest/api/playfab/client/authentication/loginwithapple
771
+ */
772
+ LoginWithApple(request, extraHeaders) {
773
+ request.TitleId = this.settings.titleId ? this.settings.titleId : request.TitleId;
774
+ if (!request.TitleId) throw this.errorTitleId;
775
+ var authenticationContext = JSON.parse(JSON.stringify(this.authenticationContext));
776
+ return this.ExecuteRequestWrapper("/Client/LoginWithApple", request, null, extraHeaders).then((result) => {
777
+ var _a;
778
+ if (result) {
779
+ if (result == null ? void 0 : result.SessionTicket) {
780
+ this.sessionTicket = result.SessionTicket;
781
+ }
782
+ if ((_a = result == null ? void 0 : result.EntityToken) == null ? void 0 : _a.EntityToken) {
783
+ this.entityToken = result.EntityToken.EntityToken;
784
+ }
785
+ authenticationContext = this.UpdateAuthenticationContext(authenticationContext, result);
786
+ }
787
+ return result;
788
+ });
789
+ }
790
+ /**
791
+ * Sign in the user with a Battle.net identity token
792
+ * https://docs.microsoft.com/rest/api/playfab/client/authentication/loginwithbattlenet
793
+ */
794
+ LoginWithBattleNet(request, extraHeaders) {
795
+ request.TitleId = this.settings.titleId ? this.settings.titleId : request.TitleId;
796
+ if (!request.TitleId) throw this.errorTitleId;
797
+ var authenticationContext = JSON.parse(JSON.stringify(this.authenticationContext));
798
+ return this.ExecuteRequestWrapper("/Client/LoginWithBattleNet", request, null, extraHeaders).then((result) => {
799
+ var _a;
800
+ if (result) {
801
+ if (result == null ? void 0 : result.SessionTicket) {
802
+ this.sessionTicket = result.SessionTicket;
803
+ }
804
+ if ((_a = result == null ? void 0 : result.EntityToken) == null ? void 0 : _a.EntityToken) {
805
+ this.entityToken = result.EntityToken.EntityToken;
806
+ }
807
+ authenticationContext = this.UpdateAuthenticationContext(authenticationContext, result);
808
+ }
809
+ return result;
810
+ });
811
+ }
812
+ /**
813
+ * Signs the user in using a custom unique identifier generated by the title, returning a session identifier that can
814
+ * subsequently be used for API calls which require an authenticated user
815
+ * https://docs.microsoft.com/rest/api/playfab/client/authentication/loginwithcustomid
816
+ */
817
+ LoginWithCustomID(request, extraHeaders) {
818
+ request.TitleId = this.settings.titleId ? this.settings.titleId : request.TitleId;
819
+ if (!request.TitleId) throw this.errorTitleId;
820
+ var authenticationContext = JSON.parse(JSON.stringify(this.authenticationContext));
821
+ return this.ExecuteRequestWrapper("/Client/LoginWithCustomID", request, null, extraHeaders).then((result) => {
822
+ var _a;
823
+ if (result) {
824
+ if (result == null ? void 0 : result.SessionTicket) {
825
+ this.sessionTicket = result.SessionTicket;
826
+ }
827
+ if ((_a = result == null ? void 0 : result.EntityToken) == null ? void 0 : _a.EntityToken) {
828
+ this.entityToken = result.EntityToken.EntityToken;
829
+ }
830
+ authenticationContext = this.UpdateAuthenticationContext(authenticationContext, result);
831
+ }
832
+ return result;
833
+ });
834
+ }
835
+ /**
836
+ * Signs the user into the PlayFab account, returning a session identifier that can subsequently be used for API calls
837
+ * which require an authenticated user. Unlike most other login API calls, LoginWithEmailAddress does not permit the
838
+ * creation of new accounts via the CreateAccountFlag. Email addresses may be used to create accounts via
839
+ * RegisterPlayFabUser.
840
+ * https://docs.microsoft.com/rest/api/playfab/client/authentication/loginwithemailaddress
841
+ */
842
+ LoginWithEmailAddress(request, extraHeaders) {
843
+ request.TitleId = this.settings.titleId ? this.settings.titleId : request.TitleId;
844
+ if (!request.TitleId) throw this.errorTitleId;
845
+ var authenticationContext = JSON.parse(JSON.stringify(this.authenticationContext));
846
+ return this.ExecuteRequestWrapper("/Client/LoginWithEmailAddress", request, null, extraHeaders).then((result) => {
847
+ var _a;
848
+ if (result) {
849
+ if (result == null ? void 0 : result.SessionTicket) {
850
+ this.sessionTicket = result.SessionTicket;
851
+ }
852
+ if ((_a = result == null ? void 0 : result.EntityToken) == null ? void 0 : _a.EntityToken) {
853
+ this.entityToken = result.EntityToken.EntityToken;
854
+ }
855
+ authenticationContext = this.UpdateAuthenticationContext(authenticationContext, result);
856
+ }
857
+ return result;
858
+ });
859
+ }
860
+ /**
861
+ * Signs the user in using a Facebook access token, returning a session identifier that can subsequently be used for API
862
+ * calls which require an authenticated user
863
+ * https://docs.microsoft.com/rest/api/playfab/client/authentication/loginwithfacebook
864
+ */
865
+ LoginWithFacebook(request, extraHeaders) {
866
+ request.TitleId = this.settings.titleId ? this.settings.titleId : request.TitleId;
867
+ if (!request.TitleId) throw this.errorTitleId;
868
+ var authenticationContext = JSON.parse(JSON.stringify(this.authenticationContext));
869
+ return this.ExecuteRequestWrapper("/Client/LoginWithFacebook", request, null, extraHeaders).then((result) => {
870
+ var _a;
871
+ if (result) {
872
+ if (result == null ? void 0 : result.SessionTicket) {
873
+ this.sessionTicket = result.SessionTicket;
874
+ }
875
+ if ((_a = result == null ? void 0 : result.EntityToken) == null ? void 0 : _a.EntityToken) {
876
+ this.entityToken = result.EntityToken.EntityToken;
877
+ }
878
+ authenticationContext = this.UpdateAuthenticationContext(authenticationContext, result);
879
+ }
880
+ return result;
881
+ });
882
+ }
883
+ /**
884
+ * Signs the user in using a Facebook Instant Games ID, returning a session identifier that can subsequently be used for
885
+ * API calls which require an authenticated user. Requires Facebook Instant Games to be configured.
886
+ * https://docs.microsoft.com/rest/api/playfab/client/authentication/loginwithfacebookinstantgamesid
887
+ */
888
+ LoginWithFacebookInstantGamesId(request, extraHeaders) {
889
+ request.TitleId = this.settings.titleId ? this.settings.titleId : request.TitleId;
890
+ if (!request.TitleId) throw this.errorTitleId;
891
+ var authenticationContext = JSON.parse(JSON.stringify(this.authenticationContext));
892
+ return this.ExecuteRequestWrapper("/Client/LoginWithFacebookInstantGamesId", request, null, extraHeaders).then((result) => {
893
+ var _a;
894
+ if (result) {
895
+ if (result == null ? void 0 : result.SessionTicket) {
896
+ this.sessionTicket = result.SessionTicket;
897
+ }
898
+ if ((_a = result == null ? void 0 : result.EntityToken) == null ? void 0 : _a.EntityToken) {
899
+ this.entityToken = result.EntityToken.EntityToken;
900
+ }
901
+ authenticationContext = this.UpdateAuthenticationContext(authenticationContext, result);
902
+ }
903
+ return result;
904
+ });
905
+ }
906
+ /**
907
+ * Signs the user in using an iOS Game Center player identifier, returning a session identifier that can subsequently be
908
+ * used for API calls which require an authenticated user. Logging in with a Game Center ID is insecure if you do not
909
+ * include the optional PublicKeyUrl, Salt, Signature, and Timestamp parameters in this request. It is recommended you
910
+ * require these parameters on all Game Center calls by going to the Apple Add-ons page in the PlayFab Game Manager and
911
+ * enabling the 'Require secure authentication only for this app' option.
912
+ * https://docs.microsoft.com/rest/api/playfab/client/authentication/loginwithgamecenter
913
+ */
914
+ LoginWithGameCenter(request, extraHeaders) {
915
+ request.TitleId = this.settings.titleId ? this.settings.titleId : request.TitleId;
916
+ if (!request.TitleId) throw this.errorTitleId;
917
+ var authenticationContext = JSON.parse(JSON.stringify(this.authenticationContext));
918
+ return this.ExecuteRequestWrapper("/Client/LoginWithGameCenter", request, null, extraHeaders).then((result) => {
919
+ var _a;
920
+ if (result) {
921
+ if (result == null ? void 0 : result.SessionTicket) {
922
+ this.sessionTicket = result.SessionTicket;
923
+ }
924
+ if ((_a = result == null ? void 0 : result.EntityToken) == null ? void 0 : _a.EntityToken) {
925
+ this.entityToken = result.EntityToken.EntityToken;
926
+ }
927
+ authenticationContext = this.UpdateAuthenticationContext(authenticationContext, result);
928
+ }
929
+ return result;
930
+ });
931
+ }
932
+ /**
933
+ * Signs the user in using their Google account credentials
934
+ * https://docs.microsoft.com/rest/api/playfab/client/authentication/loginwithgoogleaccount
935
+ */
936
+ LoginWithGoogleAccount(request, extraHeaders) {
937
+ request.TitleId = this.settings.titleId ? this.settings.titleId : request.TitleId;
938
+ if (!request.TitleId) throw this.errorTitleId;
939
+ var authenticationContext = JSON.parse(JSON.stringify(this.authenticationContext));
940
+ return this.ExecuteRequestWrapper("/Client/LoginWithGoogleAccount", request, null, extraHeaders).then((result) => {
941
+ var _a;
942
+ if (result) {
943
+ if (result == null ? void 0 : result.SessionTicket) {
944
+ this.sessionTicket = result.SessionTicket;
945
+ }
946
+ if ((_a = result == null ? void 0 : result.EntityToken) == null ? void 0 : _a.EntityToken) {
947
+ this.entityToken = result.EntityToken.EntityToken;
948
+ }
949
+ authenticationContext = this.UpdateAuthenticationContext(authenticationContext, result);
950
+ }
951
+ return result;
952
+ });
953
+ }
954
+ /**
955
+ * Signs the user in using their Google Play Games account credentials
956
+ * https://docs.microsoft.com/rest/api/playfab/client/authentication/loginwithgoogleplaygamesservices
957
+ */
958
+ LoginWithGooglePlayGamesServices(request, extraHeaders) {
959
+ request.TitleId = this.settings.titleId ? this.settings.titleId : request.TitleId;
960
+ if (!request.TitleId) throw this.errorTitleId;
961
+ var authenticationContext = JSON.parse(JSON.stringify(this.authenticationContext));
962
+ return this.ExecuteRequestWrapper("/Client/LoginWithGooglePlayGamesServices", request, null, extraHeaders).then((result) => {
963
+ var _a;
964
+ if (result) {
965
+ if (result == null ? void 0 : result.SessionTicket) {
966
+ this.sessionTicket = result.SessionTicket;
967
+ }
968
+ if ((_a = result == null ? void 0 : result.EntityToken) == null ? void 0 : _a.EntityToken) {
969
+ this.entityToken = result.EntityToken.EntityToken;
970
+ }
971
+ authenticationContext = this.UpdateAuthenticationContext(authenticationContext, result);
972
+ }
973
+ return result;
974
+ });
975
+ }
976
+ /**
977
+ * Signs the user in using the vendor-specific iOS device identifier, returning a session identifier that can subsequently
978
+ * be used for API calls which require an authenticated user
979
+ * https://docs.microsoft.com/rest/api/playfab/client/authentication/loginwithiosdeviceid
980
+ */
981
+ LoginWithIOSDeviceID(request, extraHeaders) {
982
+ request.TitleId = this.settings.titleId ? this.settings.titleId : request.TitleId;
983
+ if (!request.TitleId) throw this.errorTitleId;
984
+ var authenticationContext = JSON.parse(JSON.stringify(this.authenticationContext));
985
+ return this.ExecuteRequestWrapper("/Client/LoginWithIOSDeviceID", request, null, extraHeaders).then((result) => {
986
+ var _a;
987
+ if (result) {
988
+ if (result == null ? void 0 : result.SessionTicket) {
989
+ this.sessionTicket = result.SessionTicket;
990
+ }
991
+ if ((_a = result == null ? void 0 : result.EntityToken) == null ? void 0 : _a.EntityToken) {
992
+ this.entityToken = result.EntityToken.EntityToken;
993
+ }
994
+ authenticationContext = this.UpdateAuthenticationContext(authenticationContext, result);
995
+ }
996
+ return result;
997
+ });
998
+ }
999
+ /**
1000
+ * Signs the user in using a Kongregate player account.
1001
+ * https://docs.microsoft.com/rest/api/playfab/client/authentication/loginwithkongregate
1002
+ */
1003
+ LoginWithKongregate(request, extraHeaders) {
1004
+ request.TitleId = this.settings.titleId ? this.settings.titleId : request.TitleId;
1005
+ if (!request.TitleId) throw this.errorTitleId;
1006
+ var authenticationContext = JSON.parse(JSON.stringify(this.authenticationContext));
1007
+ return this.ExecuteRequestWrapper("/Client/LoginWithKongregate", request, null, extraHeaders).then((result) => {
1008
+ var _a;
1009
+ if (result) {
1010
+ if (result == null ? void 0 : result.SessionTicket) {
1011
+ this.sessionTicket = result.SessionTicket;
1012
+ }
1013
+ if ((_a = result == null ? void 0 : result.EntityToken) == null ? void 0 : _a.EntityToken) {
1014
+ this.entityToken = result.EntityToken.EntityToken;
1015
+ }
1016
+ authenticationContext = this.UpdateAuthenticationContext(authenticationContext, result);
1017
+ }
1018
+ return result;
1019
+ });
1020
+ }
1021
+ /**
1022
+ * Signs in the user with a Nintendo service account token.
1023
+ * https://docs.microsoft.com/rest/api/playfab/client/authentication/loginwithnintendoserviceaccount
1024
+ */
1025
+ LoginWithNintendoServiceAccount(request, extraHeaders) {
1026
+ request.TitleId = this.settings.titleId ? this.settings.titleId : request.TitleId;
1027
+ if (!request.TitleId) throw this.errorTitleId;
1028
+ var authenticationContext = JSON.parse(JSON.stringify(this.authenticationContext));
1029
+ return this.ExecuteRequestWrapper("/Client/LoginWithNintendoServiceAccount", request, null, extraHeaders).then((result) => {
1030
+ var _a;
1031
+ if (result) {
1032
+ if (result == null ? void 0 : result.SessionTicket) {
1033
+ this.sessionTicket = result.SessionTicket;
1034
+ }
1035
+ if ((_a = result == null ? void 0 : result.EntityToken) == null ? void 0 : _a.EntityToken) {
1036
+ this.entityToken = result.EntityToken.EntityToken;
1037
+ }
1038
+ authenticationContext = this.UpdateAuthenticationContext(authenticationContext, result);
1039
+ }
1040
+ return result;
1041
+ });
1042
+ }
1043
+ /**
1044
+ * Signs the user in using a Nintendo Switch Device ID, returning a session identifier that can subsequently be used for
1045
+ * API calls which require an authenticated user
1046
+ * https://docs.microsoft.com/rest/api/playfab/client/authentication/loginwithnintendoswitchdeviceid
1047
+ */
1048
+ LoginWithNintendoSwitchDeviceId(request, extraHeaders) {
1049
+ request.TitleId = this.settings.titleId ? this.settings.titleId : request.TitleId;
1050
+ if (!request.TitleId) throw this.errorTitleId;
1051
+ var authenticationContext = JSON.parse(JSON.stringify(this.authenticationContext));
1052
+ return this.ExecuteRequestWrapper("/Client/LoginWithNintendoSwitchDeviceId", request, null, extraHeaders).then((result) => {
1053
+ var _a;
1054
+ if (result) {
1055
+ if (result == null ? void 0 : result.SessionTicket) {
1056
+ this.sessionTicket = result.SessionTicket;
1057
+ }
1058
+ if ((_a = result == null ? void 0 : result.EntityToken) == null ? void 0 : _a.EntityToken) {
1059
+ this.entityToken = result.EntityToken.EntityToken;
1060
+ }
1061
+ authenticationContext = this.UpdateAuthenticationContext(authenticationContext, result);
1062
+ }
1063
+ return result;
1064
+ });
1065
+ }
1066
+ /**
1067
+ * Logs in a user with an Open ID Connect JWT created by an existing relationship between a title and an Open ID Connect
1068
+ * provider.
1069
+ * https://docs.microsoft.com/rest/api/playfab/client/authentication/loginwithopenidconnect
1070
+ */
1071
+ LoginWithOpenIdConnect(request, extraHeaders) {
1072
+ request.TitleId = this.settings.titleId ? this.settings.titleId : request.TitleId;
1073
+ if (!request.TitleId) throw this.errorTitleId;
1074
+ var authenticationContext = JSON.parse(JSON.stringify(this.authenticationContext));
1075
+ return this.ExecuteRequestWrapper("/Client/LoginWithOpenIdConnect", request, null, extraHeaders).then((result) => {
1076
+ var _a;
1077
+ if (result) {
1078
+ if (result == null ? void 0 : result.SessionTicket) {
1079
+ this.sessionTicket = result.SessionTicket;
1080
+ }
1081
+ if ((_a = result == null ? void 0 : result.EntityToken) == null ? void 0 : _a.EntityToken) {
1082
+ this.entityToken = result.EntityToken.EntityToken;
1083
+ }
1084
+ authenticationContext = this.UpdateAuthenticationContext(authenticationContext, result);
1085
+ }
1086
+ return result;
1087
+ });
1088
+ }
1089
+ /**
1090
+ * Signs the user into the PlayFab account, returning a session identifier that can subsequently be used for API calls
1091
+ * which require an authenticated user. Unlike most other login API calls, LoginWithPlayFab does not permit the creation of
1092
+ * new accounts via the CreateAccountFlag. Username/Password credentials may be used to create accounts via
1093
+ * RegisterPlayFabUser, or added to existing accounts using AddUsernamePassword.
1094
+ * https://docs.microsoft.com/rest/api/playfab/client/authentication/loginwithplayfab
1095
+ */
1096
+ LoginWithPlayFab(request, extraHeaders) {
1097
+ request.TitleId = this.settings.titleId ? this.settings.titleId : request.TitleId;
1098
+ if (!request.TitleId) throw this.errorTitleId;
1099
+ var authenticationContext = JSON.parse(JSON.stringify(this.authenticationContext));
1100
+ return this.ExecuteRequestWrapper("/Client/LoginWithPlayFab", request, null, extraHeaders).then((result) => {
1101
+ var _a;
1102
+ if (result) {
1103
+ if (result == null ? void 0 : result.SessionTicket) {
1104
+ this.sessionTicket = result.SessionTicket;
1105
+ }
1106
+ if ((_a = result == null ? void 0 : result.EntityToken) == null ? void 0 : _a.EntityToken) {
1107
+ this.entityToken = result.EntityToken.EntityToken;
1108
+ }
1109
+ authenticationContext = this.UpdateAuthenticationContext(authenticationContext, result);
1110
+ }
1111
+ return result;
1112
+ });
1113
+ }
1114
+ /**
1115
+ * Signs the user in using a PlayStation :tm: Network authentication code, returning a session identifier that can
1116
+ * subsequently be used for API calls which require an authenticated user
1117
+ * https://docs.microsoft.com/rest/api/playfab/client/authentication/loginwithpsn
1118
+ */
1119
+ LoginWithPSN(request, extraHeaders) {
1120
+ request.TitleId = this.settings.titleId ? this.settings.titleId : request.TitleId;
1121
+ if (!request.TitleId) throw this.errorTitleId;
1122
+ var authenticationContext = JSON.parse(JSON.stringify(this.authenticationContext));
1123
+ return this.ExecuteRequestWrapper("/Client/LoginWithPSN", request, null, extraHeaders).then((result) => {
1124
+ var _a;
1125
+ if (result) {
1126
+ if (result == null ? void 0 : result.SessionTicket) {
1127
+ this.sessionTicket = result.SessionTicket;
1128
+ }
1129
+ if ((_a = result == null ? void 0 : result.EntityToken) == null ? void 0 : _a.EntityToken) {
1130
+ this.entityToken = result.EntityToken.EntityToken;
1131
+ }
1132
+ authenticationContext = this.UpdateAuthenticationContext(authenticationContext, result);
1133
+ }
1134
+ return result;
1135
+ });
1136
+ }
1137
+ /**
1138
+ * Signs the user in using a Steam authentication ticket, returning a session identifier that can subsequently be used for
1139
+ * API calls which require an authenticated user
1140
+ * https://docs.microsoft.com/rest/api/playfab/client/authentication/loginwithsteam
1141
+ */
1142
+ LoginWithSteam(request, extraHeaders) {
1143
+ request.TitleId = this.settings.titleId ? this.settings.titleId : request.TitleId;
1144
+ if (!request.TitleId) throw this.errorTitleId;
1145
+ var authenticationContext = JSON.parse(JSON.stringify(this.authenticationContext));
1146
+ return this.ExecuteRequestWrapper("/Client/LoginWithSteam", request, null, extraHeaders).then((result) => {
1147
+ var _a;
1148
+ if (result) {
1149
+ if (result == null ? void 0 : result.SessionTicket) {
1150
+ this.sessionTicket = result.SessionTicket;
1151
+ }
1152
+ if ((_a = result == null ? void 0 : result.EntityToken) == null ? void 0 : _a.EntityToken) {
1153
+ this.entityToken = result.EntityToken.EntityToken;
1154
+ }
1155
+ authenticationContext = this.UpdateAuthenticationContext(authenticationContext, result);
1156
+ }
1157
+ return result;
1158
+ });
1159
+ }
1160
+ /**
1161
+ * Signs the user in using a Twitch access token.
1162
+ * https://docs.microsoft.com/rest/api/playfab/client/authentication/loginwithtwitch
1163
+ */
1164
+ LoginWithTwitch(request, extraHeaders) {
1165
+ request.TitleId = this.settings.titleId ? this.settings.titleId : request.TitleId;
1166
+ if (!request.TitleId) throw this.errorTitleId;
1167
+ var authenticationContext = JSON.parse(JSON.stringify(this.authenticationContext));
1168
+ return this.ExecuteRequestWrapper("/Client/LoginWithTwitch", request, null, extraHeaders).then((result) => {
1169
+ var _a;
1170
+ if (result) {
1171
+ if (result == null ? void 0 : result.SessionTicket) {
1172
+ this.sessionTicket = result.SessionTicket;
1173
+ }
1174
+ if ((_a = result == null ? void 0 : result.EntityToken) == null ? void 0 : _a.EntityToken) {
1175
+ this.entityToken = result.EntityToken.EntityToken;
1176
+ }
1177
+ authenticationContext = this.UpdateAuthenticationContext(authenticationContext, result);
1178
+ }
1179
+ return result;
1180
+ });
1181
+ }
1182
+ /**
1183
+ * Signs the user in using a Xbox Live Token, returning a session identifier that can subsequently be used for API calls
1184
+ * which require an authenticated user
1185
+ * https://docs.microsoft.com/rest/api/playfab/client/authentication/loginwithxbox
1186
+ */
1187
+ LoginWithXbox(request, extraHeaders) {
1188
+ request.TitleId = this.settings.titleId ? this.settings.titleId : request.TitleId;
1189
+ if (!request.TitleId) throw this.errorTitleId;
1190
+ var authenticationContext = JSON.parse(JSON.stringify(this.authenticationContext));
1191
+ return this.ExecuteRequestWrapper("/Client/LoginWithXbox", request, null, extraHeaders).then((result) => {
1192
+ var _a;
1193
+ if (result) {
1194
+ if (result == null ? void 0 : result.SessionTicket) {
1195
+ this.sessionTicket = result.SessionTicket;
1196
+ }
1197
+ if ((_a = result == null ? void 0 : result.EntityToken) == null ? void 0 : _a.EntityToken) {
1198
+ this.entityToken = result.EntityToken.EntityToken;
1199
+ }
1200
+ authenticationContext = this.UpdateAuthenticationContext(authenticationContext, result);
1201
+ }
1202
+ return result;
1203
+ });
1204
+ }
1205
+ /**
1206
+ * Opens a new outstanding trade. Note that a given item instance may only be in one open trade at a time.
1207
+ * https://docs.microsoft.com/rest/api/playfab/client/trading/opentrade
1208
+ */
1209
+ OpenTrade(request, extraHeaders) {
1210
+ return this.ExecuteRequestWrapper("/Client/OpenTrade", request, "X-Authorization", extraHeaders);
1211
+ }
1212
+ /**
1213
+ * _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for
1214
+ * version 2._ Selects a payment option for purchase order created via StartPurchase
1215
+ * https://docs.microsoft.com/rest/api/playfab/client/player-item-management/payforpurchase
1216
+ */
1217
+ PayForPurchase(request, extraHeaders) {
1218
+ return this.ExecuteRequestWrapper("/Client/PayForPurchase", request, "X-Authorization", extraHeaders);
1219
+ }
1220
+ /**
1221
+ * _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for
1222
+ * version 2._ Buys a single item with virtual currency. You must specify both the virtual currency to use to purchase, as
1223
+ * well as what the client believes the price to be. This lets the server fail the purchase if the price has changed.
1224
+ * https://docs.microsoft.com/rest/api/playfab/client/player-item-management/purchaseitem
1225
+ */
1226
+ PurchaseItem(request, extraHeaders) {
1227
+ return this.ExecuteRequestWrapper("/Client/PurchaseItem", request, "X-Authorization", extraHeaders);
1228
+ }
1229
+ /**
1230
+ * _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for
1231
+ * version 2._ Adds the virtual goods associated with the coupon to the user's inventory. Coupons can be generated via the
1232
+ * Economy->Catalogs tab in the PlayFab Game Manager.
1233
+ * https://docs.microsoft.com/rest/api/playfab/client/player-item-management/redeemcoupon
1234
+ */
1235
+ RedeemCoupon(request, extraHeaders) {
1236
+ return this.ExecuteRequestWrapper("/Client/RedeemCoupon", request, "X-Authorization", extraHeaders);
1237
+ }
1238
+ /**
1239
+ * Uses the supplied OAuth code to refresh the internally cached player PlayStation :tm: Network auth token
1240
+ * https://docs.microsoft.com/rest/api/playfab/client/platform-specific-methods/refreshpsnauthtoken
1241
+ */
1242
+ RefreshPSNAuthToken(request, extraHeaders) {
1243
+ return this.ExecuteRequestWrapper("/Client/RefreshPSNAuthToken", request, "X-Authorization", extraHeaders);
1244
+ }
1245
+ /**
1246
+ * Registers the iOS device to receive push notifications
1247
+ * https://docs.microsoft.com/rest/api/playfab/client/platform-specific-methods/registerforiospushnotification
1248
+ */
1249
+ RegisterForIOSPushNotification(request, extraHeaders) {
1250
+ return this.ExecuteRequestWrapper("/Client/RegisterForIOSPushNotification", request, "X-Authorization", extraHeaders);
1251
+ }
1252
+ /**
1253
+ * Registers a new Playfab user account, returning a session identifier that can subsequently be used for API calls which
1254
+ * require an authenticated user. You must supply a username and an email address.
1255
+ * https://docs.microsoft.com/rest/api/playfab/client/authentication/registerplayfabuser
1256
+ */
1257
+ RegisterPlayFabUser(request, extraHeaders) {
1258
+ request.TitleId = this.settings.titleId ? this.settings.titleId : request.TitleId;
1259
+ if (!request.TitleId) throw this.errorTitleId;
1260
+ var authenticationContext = JSON.parse(JSON.stringify(this.authenticationContext));
1261
+ return this.ExecuteRequestWrapper("/Client/RegisterPlayFabUser", request, null, extraHeaders).then((result) => {
1262
+ var _a;
1263
+ if (result) {
1264
+ if (result == null ? void 0 : result.SessionTicket) {
1265
+ this.sessionTicket = result.SessionTicket;
1266
+ }
1267
+ if ((_a = result == null ? void 0 : result.EntityToken) == null ? void 0 : _a.EntityToken) {
1268
+ this.entityToken = result.EntityToken.EntityToken;
1269
+ }
1270
+ authenticationContext = this.UpdateAuthenticationContext(authenticationContext, result);
1271
+ }
1272
+ return result;
1273
+ });
1274
+ }
1275
+ /**
1276
+ * Removes a contact email from the player's profile.
1277
+ * https://docs.microsoft.com/rest/api/playfab/client/account-management/removecontactemail
1278
+ */
1279
+ RemoveContactEmail(request, extraHeaders) {
1280
+ return this.ExecuteRequestWrapper("/Client/RemoveContactEmail", request, "X-Authorization", extraHeaders);
1281
+ }
1282
+ /**
1283
+ * Removes a specified user from the friend list of the local user
1284
+ * https://docs.microsoft.com/rest/api/playfab/client/friend-list-management/removefriend
1285
+ */
1286
+ RemoveFriend(request, extraHeaders) {
1287
+ return this.ExecuteRequestWrapper("/Client/RemoveFriend", request, "X-Authorization", extraHeaders);
1288
+ }
1289
+ /**
1290
+ * Removes the specified generic service identifier from the player's PlayFab account.
1291
+ * https://docs.microsoft.com/rest/api/playfab/client/account-management/removegenericid
1292
+ */
1293
+ RemoveGenericID(request, extraHeaders) {
1294
+ return this.ExecuteRequestWrapper("/Client/RemoveGenericID", request, "X-Authorization", extraHeaders);
1295
+ }
1296
+ /**
1297
+ * Removes users from the set of those able to update the shared data and the set of users in the group. Only users in the
1298
+ * group can remove members. If as a result of the call, zero users remain with access, the group and its associated data
1299
+ * will be deleted. Shared Groups are designed for sharing data between a very small number of players, please see our
1300
+ * guide: https://docs.microsoft.com/gaming/playfab/features/social/groups/using-shared-group-data
1301
+ * https://docs.microsoft.com/rest/api/playfab/client/shared-group-data/removesharedgroupmembers
1302
+ */
1303
+ RemoveSharedGroupMembers(request, extraHeaders) {
1304
+ return this.ExecuteRequestWrapper("/Client/RemoveSharedGroupMembers", request, "X-Authorization", extraHeaders);
1305
+ }
1306
+ /**
1307
+ * Report player's ad activity
1308
+ * https://docs.microsoft.com/rest/api/playfab/client/advertising/reportadactivity
1309
+ */
1310
+ ReportAdActivity(request, extraHeaders) {
1311
+ return this.ExecuteRequestWrapper("/Client/ReportAdActivity", request, "X-Authorization", extraHeaders);
1312
+ }
1313
+ /**
1314
+ * Write a PlayStream event to describe the provided player device information. This API method is not designed to be
1315
+ * called directly by developers. Each PlayFab client SDK will eventually report this information automatically.
1316
+ * https://docs.microsoft.com/rest/api/playfab/client/analytics/reportdeviceinfo
1317
+ */
1318
+ ReportDeviceInfo(request, extraHeaders) {
1319
+ return this.ExecuteRequestWrapper("/Client/ReportDeviceInfo", request, "X-Authorization", extraHeaders);
1320
+ }
1321
+ /**
1322
+ * Submit a report for another player (due to bad bahavior, etc.), so that customer service representatives for the title
1323
+ * can take action concerning potentially toxic players.
1324
+ * https://docs.microsoft.com/rest/api/playfab/client/account-management/reportplayer
1325
+ */
1326
+ ReportPlayer(request, extraHeaders) {
1327
+ return this.ExecuteRequestWrapper("/Client/ReportPlayer", request, "X-Authorization", extraHeaders);
1328
+ }
1329
+ /**
1330
+ * _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for
1331
+ * version 2._ Restores all in-app purchases based on the given restore receipt
1332
+ * https://docs.microsoft.com/rest/api/playfab/client/platform-specific-methods/restoreiospurchases
1333
+ */
1334
+ RestoreIOSPurchases(request, extraHeaders) {
1335
+ return this.ExecuteRequestWrapper("/Client/RestoreIOSPurchases", request, "X-Authorization", extraHeaders);
1336
+ }
1337
+ /**
1338
+ * Reward player's ad activity
1339
+ * https://docs.microsoft.com/rest/api/playfab/client/advertising/rewardadactivity
1340
+ */
1341
+ RewardAdActivity(request, extraHeaders) {
1342
+ return this.ExecuteRequestWrapper("/Client/RewardAdActivity", request, "X-Authorization", extraHeaders);
1343
+ }
1344
+ /**
1345
+ * Forces an email to be sent to the registered email address for the user's account, with a link allowing the user to
1346
+ * change the password.If an account recovery email template ID is provided, an email using the custom email template will
1347
+ * be used.
1348
+ * https://docs.microsoft.com/rest/api/playfab/client/account-management/sendaccountrecoveryemail
1349
+ */
1350
+ SendAccountRecoveryEmail(request, extraHeaders) {
1351
+ return this.ExecuteRequestWrapper("/Client/SendAccountRecoveryEmail", request, null, extraHeaders);
1352
+ }
1353
+ /**
1354
+ * Updates the tag list for a specified user in the friend list of the local user
1355
+ * https://docs.microsoft.com/rest/api/playfab/client/friend-list-management/setfriendtags
1356
+ */
1357
+ SetFriendTags(request, extraHeaders) {
1358
+ return this.ExecuteRequestWrapper("/Client/SetFriendTags", request, "X-Authorization", extraHeaders);
1359
+ }
1360
+ /**
1361
+ * Sets the player's secret if it is not already set. Player secrets are used to sign API requests. To reset a player's
1362
+ * secret use the Admin or Server API method SetPlayerSecret.
1363
+ * https://docs.microsoft.com/rest/api/playfab/client/authentication/setplayersecret
1364
+ */
1365
+ SetPlayerSecret(request, extraHeaders) {
1366
+ return this.ExecuteRequestWrapper("/Client/SetPlayerSecret", request, "X-Authorization", extraHeaders);
1367
+ }
1368
+ /**
1369
+ * _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for
1370
+ * version 2._ Creates an order for a list of items from the title catalog
1371
+ * https://docs.microsoft.com/rest/api/playfab/client/player-item-management/startpurchase
1372
+ */
1373
+ StartPurchase(request, extraHeaders) {
1374
+ return this.ExecuteRequestWrapper("/Client/StartPurchase", request, "X-Authorization", extraHeaders);
1375
+ }
1376
+ /**
1377
+ * _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for
1378
+ * version 2._ Decrements the user's balance of the specified virtual currency by the stated amount. It is possible to make
1379
+ * a VC balance negative with this API.
1380
+ * https://docs.microsoft.com/rest/api/playfab/client/player-item-management/subtractuservirtualcurrency
1381
+ */
1382
+ SubtractUserVirtualCurrency(request, extraHeaders) {
1383
+ return this.ExecuteRequestWrapper("/Client/SubtractUserVirtualCurrency", request, "X-Authorization", extraHeaders);
1384
+ }
1385
+ /**
1386
+ * Unlinks the related Android device identifier from the user's PlayFab account
1387
+ * https://docs.microsoft.com/rest/api/playfab/client/account-management/unlinkandroiddeviceid
1388
+ */
1389
+ UnlinkAndroidDeviceID(request, extraHeaders) {
1390
+ return this.ExecuteRequestWrapper("/Client/UnlinkAndroidDeviceID", request, "X-Authorization", extraHeaders);
1391
+ }
1392
+ /**
1393
+ * Unlinks the related Apple account from the user's PlayFab account.
1394
+ * https://docs.microsoft.com/rest/api/playfab/client/account-management/unlinkapple
1395
+ */
1396
+ UnlinkApple(request, extraHeaders) {
1397
+ return this.ExecuteRequestWrapper("/Client/UnlinkApple", request, "X-Authorization", extraHeaders);
1398
+ }
1399
+ /**
1400
+ * Unlinks the related Battle.net account from the user's PlayFab account.
1401
+ * https://docs.microsoft.com/rest/api/playfab/client/account-management/unlinkbattlenetaccount
1402
+ */
1403
+ UnlinkBattleNetAccount(request, extraHeaders) {
1404
+ return this.ExecuteRequestWrapper("/Client/UnlinkBattleNetAccount", request, "X-Authorization", extraHeaders);
1405
+ }
1406
+ /**
1407
+ * Unlinks the related custom identifier from the user's PlayFab account
1408
+ * https://docs.microsoft.com/rest/api/playfab/client/account-management/unlinkcustomid
1409
+ */
1410
+ UnlinkCustomID(request, extraHeaders) {
1411
+ return this.ExecuteRequestWrapper("/Client/UnlinkCustomID", request, "X-Authorization", extraHeaders);
1412
+ }
1413
+ /**
1414
+ * Unlinks the related Facebook account from the user's PlayFab account
1415
+ * https://docs.microsoft.com/rest/api/playfab/client/account-management/unlinkfacebookaccount
1416
+ */
1417
+ UnlinkFacebookAccount(request, extraHeaders) {
1418
+ return this.ExecuteRequestWrapper("/Client/UnlinkFacebookAccount", request, "X-Authorization", extraHeaders);
1419
+ }
1420
+ /**
1421
+ * Unlinks the related Facebook Instant Game Ids from the user's PlayFab account
1422
+ * https://docs.microsoft.com/rest/api/playfab/client/account-management/unlinkfacebookinstantgamesid
1423
+ */
1424
+ UnlinkFacebookInstantGamesId(request, extraHeaders) {
1425
+ return this.ExecuteRequestWrapper("/Client/UnlinkFacebookInstantGamesId", request, "X-Authorization", extraHeaders);
1426
+ }
1427
+ /**
1428
+ * Unlinks the related Game Center account from the user's PlayFab account
1429
+ * https://docs.microsoft.com/rest/api/playfab/client/account-management/unlinkgamecenteraccount
1430
+ */
1431
+ UnlinkGameCenterAccount(request, extraHeaders) {
1432
+ return this.ExecuteRequestWrapper("/Client/UnlinkGameCenterAccount", request, "X-Authorization", extraHeaders);
1433
+ }
1434
+ /**
1435
+ * Unlinks the related Google account from the user's PlayFab account
1436
+ * (https://developers.google.com/android/reference/com/google/android/gms/auth/GoogleAuthUtil#public-methods).
1437
+ * https://docs.microsoft.com/rest/api/playfab/client/account-management/unlinkgoogleaccount
1438
+ */
1439
+ UnlinkGoogleAccount(request, extraHeaders) {
1440
+ return this.ExecuteRequestWrapper("/Client/UnlinkGoogleAccount", request, "X-Authorization", extraHeaders);
1441
+ }
1442
+ /**
1443
+ * Unlinks the related Google Play Games account from the user's PlayFab account.
1444
+ * https://docs.microsoft.com/rest/api/playfab/client/account-management/unlinkgoogleplaygamesservicesaccount
1445
+ */
1446
+ UnlinkGooglePlayGamesServicesAccount(request, extraHeaders) {
1447
+ return this.ExecuteRequestWrapper("/Client/UnlinkGooglePlayGamesServicesAccount", request, "X-Authorization", extraHeaders);
1448
+ }
1449
+ /**
1450
+ * Unlinks the related iOS device identifier from the user's PlayFab account
1451
+ * https://docs.microsoft.com/rest/api/playfab/client/account-management/unlinkiosdeviceid
1452
+ */
1453
+ UnlinkIOSDeviceID(request, extraHeaders) {
1454
+ return this.ExecuteRequestWrapper("/Client/UnlinkIOSDeviceID", request, "X-Authorization", extraHeaders);
1455
+ }
1456
+ /**
1457
+ * Unlinks the related Kongregate identifier from the user's PlayFab account
1458
+ * https://docs.microsoft.com/rest/api/playfab/client/account-management/unlinkkongregate
1459
+ */
1460
+ UnlinkKongregate(request, extraHeaders) {
1461
+ return this.ExecuteRequestWrapper("/Client/UnlinkKongregate", request, "X-Authorization", extraHeaders);
1462
+ }
1463
+ /**
1464
+ * Unlinks the related Nintendo account from the user's PlayFab account.
1465
+ * https://docs.microsoft.com/rest/api/playfab/client/account-management/unlinknintendoserviceaccount
1466
+ */
1467
+ UnlinkNintendoServiceAccount(request, extraHeaders) {
1468
+ return this.ExecuteRequestWrapper("/Client/UnlinkNintendoServiceAccount", request, "X-Authorization", extraHeaders);
1469
+ }
1470
+ /**
1471
+ * Unlinks the related NintendoSwitchDeviceId from the user's PlayFab account
1472
+ * https://docs.microsoft.com/rest/api/playfab/client/account-management/unlinknintendoswitchdeviceid
1473
+ */
1474
+ UnlinkNintendoSwitchDeviceId(request, extraHeaders) {
1475
+ return this.ExecuteRequestWrapper("/Client/UnlinkNintendoSwitchDeviceId", request, "X-Authorization", extraHeaders);
1476
+ }
1477
+ /**
1478
+ * Unlinks an OpenID Connect account from a user's PlayFab account, based on the connection ID of an existing relationship
1479
+ * between a title and an Open ID Connect provider.
1480
+ * https://docs.microsoft.com/rest/api/playfab/client/account-management/unlinkopenidconnect
1481
+ */
1482
+ UnlinkOpenIdConnect(request, extraHeaders) {
1483
+ return this.ExecuteRequestWrapper("/Client/UnlinkOpenIdConnect", request, "X-Authorization", extraHeaders);
1484
+ }
1485
+ /**
1486
+ * Unlinks the related PlayStation :tm: Network account from the user's PlayFab account
1487
+ * https://docs.microsoft.com/rest/api/playfab/client/account-management/unlinkpsnaccount
1488
+ */
1489
+ UnlinkPSNAccount(request, extraHeaders) {
1490
+ return this.ExecuteRequestWrapper("/Client/UnlinkPSNAccount", request, "X-Authorization", extraHeaders);
1491
+ }
1492
+ /**
1493
+ * Unlinks the related Steam account from the user's PlayFab account
1494
+ * https://docs.microsoft.com/rest/api/playfab/client/account-management/unlinksteamaccount
1495
+ */
1496
+ UnlinkSteamAccount(request, extraHeaders) {
1497
+ return this.ExecuteRequestWrapper("/Client/UnlinkSteamAccount", request, "X-Authorization", extraHeaders);
1498
+ }
1499
+ /**
1500
+ * Unlinks the related Twitch account from the user's PlayFab account.
1501
+ * https://docs.microsoft.com/rest/api/playfab/client/account-management/unlinktwitch
1502
+ */
1503
+ UnlinkTwitch(request, extraHeaders) {
1504
+ return this.ExecuteRequestWrapper("/Client/UnlinkTwitch", request, "X-Authorization", extraHeaders);
1505
+ }
1506
+ /**
1507
+ * Unlinks the related Xbox Live account from the user's PlayFab account
1508
+ * https://docs.microsoft.com/rest/api/playfab/client/account-management/unlinkxboxaccount
1509
+ */
1510
+ UnlinkXboxAccount(request, extraHeaders) {
1511
+ return this.ExecuteRequestWrapper("/Client/UnlinkXboxAccount", request, "X-Authorization", extraHeaders);
1512
+ }
1513
+ /**
1514
+ * _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for
1515
+ * version 2._ Opens the specified container, with the specified key (when required), and returns the contents of the
1516
+ * opened container. If the container (and key when relevant) are consumable (RemainingUses > 0), their RemainingUses will
1517
+ * be decremented, consistent with the operation of ConsumeItem.
1518
+ * https://docs.microsoft.com/rest/api/playfab/client/player-item-management/unlockcontainerinstance
1519
+ */
1520
+ UnlockContainerInstance(request, extraHeaders) {
1521
+ return this.ExecuteRequestWrapper("/Client/UnlockContainerInstance", request, "X-Authorization", extraHeaders);
1522
+ }
1523
+ /**
1524
+ * _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for
1525
+ * version 2._ Searches target inventory for an ItemInstance matching the given CatalogItemId, if necessary unlocks it
1526
+ * using an appropriate key, and returns the contents of the opened container. If the container (and key when relevant) are
1527
+ * consumable (RemainingUses > 0), their RemainingUses will be decremented, consistent with the operation of ConsumeItem.
1528
+ * https://docs.microsoft.com/rest/api/playfab/client/player-item-management/unlockcontaineritem
1529
+ */
1530
+ UnlockContainerItem(request, extraHeaders) {
1531
+ return this.ExecuteRequestWrapper("/Client/UnlockContainerItem", request, "X-Authorization", extraHeaders);
1532
+ }
1533
+ /**
1534
+ * Update the avatar URL of the player
1535
+ * https://docs.microsoft.com/rest/api/playfab/client/account-management/updateavatarurl
1536
+ */
1537
+ UpdateAvatarUrl(request, extraHeaders) {
1538
+ return this.ExecuteRequestWrapper("/Client/UpdateAvatarUrl", request, "X-Authorization", extraHeaders);
1539
+ }
1540
+ /**
1541
+ * Creates and updates the title-specific custom data for the user's character which is readable and writable by the client
1542
+ * https://docs.microsoft.com/rest/api/playfab/client/character-data/updatecharacterdata
1543
+ */
1544
+ UpdateCharacterData(request, extraHeaders) {
1545
+ return this.ExecuteRequestWrapper("/Client/UpdateCharacterData", request, "X-Authorization", extraHeaders);
1546
+ }
1547
+ /**
1548
+ * Updates the values of the specified title-specific statistics for the specific character. By default, clients are not
1549
+ * permitted to update statistics. Developers may override this setting in the Game Manager > Settings > API Features.
1550
+ * https://docs.microsoft.com/rest/api/playfab/client/characters/updatecharacterstatistics
1551
+ */
1552
+ UpdateCharacterStatistics(request, extraHeaders) {
1553
+ return this.ExecuteRequestWrapper("/Client/UpdateCharacterStatistics", request, "X-Authorization", extraHeaders);
1554
+ }
1555
+ /**
1556
+ * Updates the title-specific custom property values for a player
1557
+ * https://docs.microsoft.com/rest/api/playfab/client/player-data-management/updateplayercustomproperties
1558
+ */
1559
+ UpdatePlayerCustomProperties(request, extraHeaders) {
1560
+ return this.ExecuteRequestWrapper("/Client/UpdatePlayerCustomProperties", request, "X-Authorization", extraHeaders);
1561
+ }
1562
+ /**
1563
+ * Updates the values of the specified title-specific statistics for the user. By default, clients are not permitted to
1564
+ * update statistics. Developers may override this setting in the Game Manager > Settings > API Features.
1565
+ * https://docs.microsoft.com/rest/api/playfab/client/player-data-management/updateplayerstatistics
1566
+ */
1567
+ UpdatePlayerStatistics(request, extraHeaders) {
1568
+ return this.ExecuteRequestWrapper("/Client/UpdatePlayerStatistics", request, "X-Authorization", extraHeaders);
1569
+ }
1570
+ /**
1571
+ * Adds, updates, and removes data keys for a shared group object. If the permission is set to Public, all fields updated
1572
+ * or added in this call will be readable by users not in the group. By default, data permissions are set to Private.
1573
+ * Regardless of the permission setting, only members of the group can update the data. Shared Groups are designed for
1574
+ * sharing data between a very small number of players, please see our guide:
1575
+ * https://docs.microsoft.com/gaming/playfab/features/social/groups/using-shared-group-data
1576
+ * https://docs.microsoft.com/rest/api/playfab/client/shared-group-data/updatesharedgroupdata
1577
+ */
1578
+ UpdateSharedGroupData(request, extraHeaders) {
1579
+ return this.ExecuteRequestWrapper("/Client/UpdateSharedGroupData", request, "X-Authorization", extraHeaders);
1580
+ }
1581
+ /**
1582
+ * Creates and updates the title-specific custom data for the user which is readable and writable by the client
1583
+ * https://docs.microsoft.com/rest/api/playfab/client/player-data-management/updateuserdata
1584
+ */
1585
+ UpdateUserData(request, extraHeaders) {
1586
+ return this.ExecuteRequestWrapper("/Client/UpdateUserData", request, "X-Authorization", extraHeaders);
1587
+ }
1588
+ /**
1589
+ * Creates and updates the publisher-specific custom data for the user which is readable and writable by the client
1590
+ * https://docs.microsoft.com/rest/api/playfab/client/player-data-management/updateuserpublisherdata
1591
+ */
1592
+ UpdateUserPublisherData(request, extraHeaders) {
1593
+ return this.ExecuteRequestWrapper("/Client/UpdateUserPublisherData", request, "X-Authorization", extraHeaders);
1594
+ }
1595
+ /**
1596
+ * Updates the title specific display name for the user
1597
+ * https://docs.microsoft.com/rest/api/playfab/client/account-management/updateusertitledisplayname
1598
+ */
1599
+ UpdateUserTitleDisplayName(request, extraHeaders) {
1600
+ return this.ExecuteRequestWrapper("/Client/UpdateUserTitleDisplayName", request, "X-Authorization", extraHeaders);
1601
+ }
1602
+ /**
1603
+ * _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for
1604
+ * version 2._ Validates with Amazon that the receipt for an Amazon App Store in-app purchase is valid and that it matches
1605
+ * the purchased catalog item
1606
+ * https://docs.microsoft.com/rest/api/playfab/client/platform-specific-methods/validateamazoniapreceipt
1607
+ */
1608
+ ValidateAmazonIAPReceipt(request, extraHeaders) {
1609
+ return this.ExecuteRequestWrapper("/Client/ValidateAmazonIAPReceipt", request, "X-Authorization", extraHeaders);
1610
+ }
1611
+ /**
1612
+ * _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for
1613
+ * version 2._ Validates a Google Play purchase and gives the corresponding item to the player.
1614
+ * https://docs.microsoft.com/rest/api/playfab/client/platform-specific-methods/validategoogleplaypurchase
1615
+ */
1616
+ ValidateGooglePlayPurchase(request, extraHeaders) {
1617
+ return this.ExecuteRequestWrapper("/Client/ValidateGooglePlayPurchase", request, "X-Authorization", extraHeaders);
1618
+ }
1619
+ /**
1620
+ * _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for
1621
+ * version 2._ Validates with the Apple store that the receipt for an iOS in-app purchase is valid and that it matches the
1622
+ * purchased catalog item
1623
+ * https://docs.microsoft.com/rest/api/playfab/client/platform-specific-methods/validateiosreceipt
1624
+ */
1625
+ ValidateIOSReceipt(request, extraHeaders) {
1626
+ return this.ExecuteRequestWrapper("/Client/ValidateIOSReceipt", request, "X-Authorization", extraHeaders);
1627
+ }
1628
+ /**
1629
+ * _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for
1630
+ * version 2._ Validates with Windows that the receipt for an Windows App Store in-app purchase is valid and that it
1631
+ * matches the purchased catalog item
1632
+ * https://docs.microsoft.com/rest/api/playfab/client/platform-specific-methods/validatewindowsstorereceipt
1633
+ */
1634
+ ValidateWindowsStoreReceipt(request, extraHeaders) {
1635
+ return this.ExecuteRequestWrapper("/Client/ValidateWindowsStoreReceipt", request, "X-Authorization", extraHeaders);
1636
+ }
1637
+ /**
1638
+ * Writes a character-based event into PlayStream.
1639
+ * https://docs.microsoft.com/rest/api/playfab/client/analytics/writecharacterevent
1640
+ */
1641
+ WriteCharacterEvent(request, extraHeaders) {
1642
+ return this.ExecuteRequestWrapper("/Client/WriteCharacterEvent", request, "X-Authorization", extraHeaders);
1643
+ }
1644
+ /**
1645
+ * Writes a player-based event into PlayStream.
1646
+ * https://docs.microsoft.com/rest/api/playfab/client/analytics/writeplayerevent
1647
+ */
1648
+ WritePlayerEvent(request, extraHeaders) {
1649
+ return this.ExecuteRequestWrapper("/Client/WritePlayerEvent", request, "X-Authorization", extraHeaders);
1650
+ }
1651
+ /**
1652
+ * Writes a title-based event into PlayStream.
1653
+ * https://docs.microsoft.com/rest/api/playfab/client/analytics/writetitleevent
1654
+ */
1655
+ WriteTitleEvent(request, extraHeaders) {
1656
+ return this.ExecuteRequestWrapper("/Client/WriteTitleEvent", request, "X-Authorization", extraHeaders);
1657
+ }
1658
+ };
1659
+
1660
+ export {
1661
+ PlayFabClientApi
1662
+ };
1663
+ //# sourceMappingURL=chunk-JGDO2ZE3.js.map