async-playfab-web-sdk 1.192.250526-1

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 (54) hide show
  1. package/dist/Addon.d.ts +591 -0
  2. package/dist/Addon.js +452 -0
  3. package/dist/Addon.js.map +1 -0
  4. package/dist/Admin.d.ts +3484 -0
  5. package/dist/Admin.js +1112 -0
  6. package/dist/Admin.js.map +1 -0
  7. package/dist/Authentication.d.ts +109 -0
  8. package/dist/Authentication.js +290 -0
  9. package/dist/Authentication.js.map +1 -0
  10. package/dist/Client.d.ts +4482 -0
  11. package/dist/Client.js +1893 -0
  12. package/dist/Client.js.map +1 -0
  13. package/dist/CloudScript.d.ts +511 -0
  14. package/dist/CloudScript.js +349 -0
  15. package/dist/CloudScript.js.map +1 -0
  16. package/dist/Data.d.ts +228 -0
  17. package/dist/Data.js +291 -0
  18. package/dist/Data.js.map +1 -0
  19. package/dist/Economy.d.ts +1865 -0
  20. package/dist/Economy.js +614 -0
  21. package/dist/Economy.js.map +1 -0
  22. package/dist/Events.d.ts +307 -0
  23. package/dist/Events.js +327 -0
  24. package/dist/Events.js.map +1 -0
  25. package/dist/Experimentation.d.ts +357 -0
  26. package/dist/Experimentation.js +333 -0
  27. package/dist/Experimentation.js.map +1 -0
  28. package/dist/Groups.d.ts +546 -0
  29. package/dist/Groups.js +417 -0
  30. package/dist/Groups.js.map +1 -0
  31. package/dist/Insights.d.ts +141 -0
  32. package/dist/Insights.js +286 -0
  33. package/dist/Insights.js.map +1 -0
  34. package/dist/Localization.d.ts +20 -0
  35. package/dist/Localization.js +249 -0
  36. package/dist/Localization.js.map +1 -0
  37. package/dist/Multiplayer.d.ts +3059 -0
  38. package/dist/Multiplayer.js +862 -0
  39. package/dist/Multiplayer.js.map +1 -0
  40. package/dist/PlayFabCommon-BUv4zqXf.d.ts +72 -0
  41. package/dist/Profiles.d.ts +278 -0
  42. package/dist/Profiles.js +306 -0
  43. package/dist/Profiles.js.map +1 -0
  44. package/dist/Progression.d.ts +598 -0
  45. package/dist/Progression.js +404 -0
  46. package/dist/Progression.js.map +1 -0
  47. package/dist/Server.d.ts +3889 -0
  48. package/dist/Server.js +1377 -0
  49. package/dist/Server.js.map +1 -0
  50. package/dist/index.d.ts +17 -0
  51. package/dist/index.js +6007 -0
  52. package/dist/index.js.map +1 -0
  53. package/package.json +23 -0
  54. package/readme.md +25 -0
package/dist/Admin.js ADDED
@@ -0,0 +1,1112 @@
1
+ // src/constants.ts
2
+ var AuthInfoMap = {
3
+ "X-EntityToken": {
4
+ authAttr: "entityToken",
5
+ authError: "errorEntityToken"
6
+ },
7
+ "X-Authorization": {
8
+ authAttr: "sessionTicket",
9
+ authError: "errorLoggedIn"
10
+ },
11
+ "X-SecretKey": {
12
+ authAttr: "developerSecretKey",
13
+ authError: "errorSecretKey"
14
+ }
15
+ };
16
+ var constants_default = {
17
+ sdkVersion: "1.192.250526",
18
+ sdkFingerprint: "JavaScriptSDK-1.192.250526",
19
+ buildIdentifier: "custom_async-javascriptsdk",
20
+ defaultSettings: {
21
+ titleId: "",
22
+ developerSecretKey: "",
23
+ GlobalHeaderInjection: {},
24
+ productionServerUrl: ".playfabapi.com",
25
+ verticalName: null
26
+ }
27
+ };
28
+
29
+ // src/PlayFabContext.ts
30
+ var PlayFabContext = class _PlayFabContext {
31
+ constructor() {
32
+ this.settings = constants_default.defaultSettings;
33
+ this.authenticationContext = {
34
+ PlayFabId: null,
35
+ EntityId: null,
36
+ EntityType: null,
37
+ SessionTicket: null,
38
+ EntityToken: null
39
+ };
40
+ this.sessionTicket = null;
41
+ this.entityToken = null;
42
+ }
43
+ static get instance() {
44
+ if (!_PlayFabContext._instance) {
45
+ _PlayFabContext._instance = new _PlayFabContext();
46
+ }
47
+ return _PlayFabContext._instance;
48
+ }
49
+ };
50
+
51
+ // src/PlayFabCommon.ts
52
+ var PlayFabCommon = class {
53
+ constructor(settings = void 0) {
54
+ this.buildIdentifier = constants_default.buildIdentifier;
55
+ this.requestGetParams = {
56
+ sdk: constants_default.sdkFingerprint
57
+ };
58
+ this.errorTitleId = "Must be have settings.titleId set to call this method";
59
+ this.errorLoggedIn = "Must be logged in to call this method";
60
+ this.errorEntityToken = "You must successfully call GetEntityToken before calling this";
61
+ this.errorSecretKey = "Must have settings.developerSecretKey set to call this method";
62
+ this._context = PlayFabContext.instance;
63
+ if (settings) {
64
+ Object.assign(this._context.settings, settings);
65
+ }
66
+ }
67
+ get settings() {
68
+ return this._context.settings;
69
+ }
70
+ get authenticationContext() {
71
+ return this._context.authenticationContext;
72
+ }
73
+ get sessionTicket() {
74
+ return this._context.sessionTicket;
75
+ }
76
+ set sessionTicket(value) {
77
+ this._context.sessionTicket = value;
78
+ }
79
+ get entityToken() {
80
+ return this._context.entityToken;
81
+ }
82
+ set entityToken(value) {
83
+ this._context.entityToken = value;
84
+ }
85
+ GetServerUrl() {
86
+ if (!(this.settings.productionServerUrl.substring(0, 4) === "http")) {
87
+ return `https://${this.settings.verticalName || this.settings.titleId}${this.settings.productionServerUrl}`;
88
+ } else {
89
+ return this.settings.productionServerUrl;
90
+ }
91
+ }
92
+ InjectHeaders(xhr, headersObj) {
93
+ if (!headersObj) return;
94
+ for (const headerKey in headersObj) {
95
+ try {
96
+ xhr.setRequestHeader(headerKey, headersObj[headerKey]);
97
+ } catch (e) {
98
+ console.log(
99
+ `Failed to append header: ${headerKey} = ${headersObj[headerKey]} Error: ${e}`
100
+ );
101
+ }
102
+ }
103
+ }
104
+ ExecuteRequest(url, body, authkey, authValue, customData, extraHeaders) {
105
+ return new Promise((resolve, reject) => {
106
+ if (body == null) body = {};
107
+ var startTime = (/* @__PURE__ */ new Date()).getTime();
108
+ var requestBody = JSON.stringify(body);
109
+ var urlArr = [url];
110
+ var getParams = this.requestGetParams;
111
+ if (getParams != null) {
112
+ var firstParam = true;
113
+ for (var key in getParams) {
114
+ if (firstParam) {
115
+ urlArr.push("?");
116
+ firstParam = false;
117
+ } else {
118
+ urlArr.push("&");
119
+ }
120
+ urlArr.push(key);
121
+ urlArr.push("=");
122
+ urlArr.push(getParams[key]);
123
+ }
124
+ }
125
+ var completeUrl = urlArr.join("");
126
+ var xhr = new XMLHttpRequest();
127
+ xhr.open("POST", completeUrl, true);
128
+ xhr.setRequestHeader("Content-Type", "application/json");
129
+ xhr.setRequestHeader(
130
+ "X-PlayFabSDK",
131
+ "JavaScriptSDK-" + constants_default.sdkVersion
132
+ );
133
+ if (authkey != null) {
134
+ xhr.setRequestHeader(authkey, authValue);
135
+ }
136
+ this.InjectHeaders(xhr, this.settings.GlobalHeaderInjection);
137
+ this.InjectHeaders(xhr, extraHeaders);
138
+ xhr.onloadend = () => {
139
+ var result = this.GetPlayFabResponse(body, xhr, startTime, customData);
140
+ if (result.code === 200) {
141
+ resolve(result.data || result);
142
+ } else {
143
+ reject(result);
144
+ }
145
+ };
146
+ xhr.onerror = () => {
147
+ var result = this.GetPlayFabResponse(body, xhr, startTime, customData);
148
+ reject(result);
149
+ };
150
+ xhr.send(requestBody);
151
+ });
152
+ }
153
+ GetPlayFabResponse(request, xhr, startTime, customData) {
154
+ var result = null;
155
+ try {
156
+ result = JSON.parse(xhr.responseText);
157
+ } catch (e) {
158
+ result = {
159
+ code: 503,
160
+ // Service Unavailable
161
+ status: "Service Unavailable",
162
+ error: "Connection error",
163
+ errorCode: 2,
164
+ // PlayFabErrorCode.ConnectionError
165
+ errorMessage: xhr.responseText
166
+ };
167
+ }
168
+ result.CallBackTimeMS = (/* @__PURE__ */ new Date()).getTime() - startTime;
169
+ result.Request = request;
170
+ result.CustomData = customData;
171
+ return result;
172
+ }
173
+ UpdateAuthenticationContext(currentAuthContext, result) {
174
+ var authenticationContextUpdates = {};
175
+ if (result == null ? void 0 : result.PlayFabId) {
176
+ authenticationContextUpdates.PlayFabId = result.PlayFabId;
177
+ }
178
+ if (result == null ? void 0 : result.SessionTicket) {
179
+ authenticationContextUpdates.SessionTicket = result.SessionTicket;
180
+ }
181
+ if (result == null ? void 0 : result.EntityToken) {
182
+ authenticationContextUpdates.EntityId = result.EntityToken.Entity.Id;
183
+ authenticationContextUpdates.EntityType = result.EntityToken.Entity.Type;
184
+ authenticationContextUpdates.EntityToken = result.EntityToken.EntityToken;
185
+ }
186
+ currentAuthContext = Object.assign(
187
+ currentAuthContext,
188
+ authenticationContextUpdates
189
+ );
190
+ this._context.authenticationContext = currentAuthContext;
191
+ return currentAuthContext;
192
+ }
193
+ GetAuthInfo(request, authKey) {
194
+ var authError = AuthInfoMap[authKey].authError;
195
+ var authAttr = AuthInfoMap[authKey].authAttr;
196
+ var defaultAuthValue = null;
197
+ if (authAttr === "entityToken") defaultAuthValue = this.entityToken;
198
+ else if (authAttr === "sessionTicket")
199
+ defaultAuthValue = this.sessionTicket;
200
+ else if (authAttr === "developerSecretKey")
201
+ defaultAuthValue = this.settings.developerSecretKey;
202
+ var authValue = request.AuthenticationContext ? request.AuthenticationContext[authAttr] : defaultAuthValue;
203
+ return { authKey, authValue, authError };
204
+ }
205
+ ExecuteRequestWrapper(apiURL, request, authKey, customData, extraHeaders) {
206
+ var authValue = null;
207
+ if (authKey !== null) {
208
+ const { authError, ...authInfo } = this.GetAuthInfo(request, authKey);
209
+ authKey = authInfo.authKey;
210
+ authValue = authInfo.authValue;
211
+ if (!authValue) throw authError;
212
+ }
213
+ return this.ExecuteRequest(
214
+ this.GetServerUrl() + apiURL,
215
+ request,
216
+ authKey,
217
+ authValue,
218
+ customData,
219
+ extraHeaders
220
+ );
221
+ }
222
+ GenerateErrorReport(error) {
223
+ if (error == null) return "";
224
+ var fullErrors = error.errorMessage;
225
+ for (var paramName in error.errorDetails)
226
+ for (var msgIdx in error.errorDetails[paramName])
227
+ fullErrors += "\n" + paramName + ": " + error.errorDetails[paramName][msgIdx];
228
+ return fullErrors;
229
+ }
230
+ ForgetAllCredentials() {
231
+ this._context.sessionTicket = null;
232
+ this._context.entityToken = null;
233
+ }
234
+ };
235
+
236
+ // src/apis/PlayFabAdminApi.ts
237
+ var PlayFabAdminApi = class extends PlayFabCommon {
238
+ /**
239
+ * Abort an ongoing task instance.
240
+ * https://docs.microsoft.com/rest/api/playfab/admin/scheduledtask/aborttaskinstance
241
+ */
242
+ AbortTaskInstance(request, customData, extraHeaders) {
243
+ return this.ExecuteRequestWrapper("/Admin/AbortTaskInstance", request, "X-SecretKey", customData, extraHeaders);
244
+ }
245
+ /**
246
+ * Update news item to include localized version
247
+ * https://docs.microsoft.com/rest/api/playfab/admin/title-wide-data-management/addlocalizednews
248
+ */
249
+ AddLocalizedNews(request, customData, extraHeaders) {
250
+ return this.ExecuteRequestWrapper("/Admin/AddLocalizedNews", request, "X-SecretKey", customData, extraHeaders);
251
+ }
252
+ /**
253
+ * Adds a new news item to the title's news feed
254
+ * https://docs.microsoft.com/rest/api/playfab/admin/title-wide-data-management/addnews
255
+ */
256
+ AddNews(request, customData, extraHeaders) {
257
+ return this.ExecuteRequestWrapper("/Admin/AddNews", request, "X-SecretKey", customData, extraHeaders);
258
+ }
259
+ /**
260
+ * Adds a given tag to a player profile. The tag's namespace is automatically generated based on the source of the tag.
261
+ * https://docs.microsoft.com/rest/api/playfab/admin/playstream/addplayertag
262
+ */
263
+ AddPlayerTag(request, customData, extraHeaders) {
264
+ return this.ExecuteRequestWrapper("/Admin/AddPlayerTag", request, "X-SecretKey", customData, extraHeaders);
265
+ }
266
+ /**
267
+ * _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for
268
+ * version 2._ Increments the specified virtual currency by the stated amount
269
+ * https://docs.microsoft.com/rest/api/playfab/admin/player-item-management/adduservirtualcurrency
270
+ */
271
+ AddUserVirtualCurrency(request, customData, extraHeaders) {
272
+ return this.ExecuteRequestWrapper("/Admin/AddUserVirtualCurrency", request, "X-SecretKey", customData, extraHeaders);
273
+ }
274
+ /**
275
+ * _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for
276
+ * version 2._ Adds one or more virtual currencies to the set defined for the title. Virtual Currencies have a maximum
277
+ * value of 2,147,483,647 when granted to a player. Any value over that will be discarded.
278
+ * https://docs.microsoft.com/rest/api/playfab/admin/title-wide-data-management/addvirtualcurrencytypes
279
+ */
280
+ AddVirtualCurrencyTypes(request, customData, extraHeaders) {
281
+ return this.ExecuteRequestWrapper("/Admin/AddVirtualCurrencyTypes", request, "X-SecretKey", customData, extraHeaders);
282
+ }
283
+ /**
284
+ * Bans users by PlayFab ID with optional IP address, or MAC address for the provided game.
285
+ * https://docs.microsoft.com/rest/api/playfab/admin/account-management/banusers
286
+ */
287
+ BanUsers(request, customData, extraHeaders) {
288
+ return this.ExecuteRequestWrapper("/Admin/BanUsers", request, "X-SecretKey", customData, extraHeaders);
289
+ }
290
+ /**
291
+ * _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for
292
+ * version 2._ Checks the global count for the limited edition item.
293
+ * https://docs.microsoft.com/rest/api/playfab/admin/player-item-management/checklimitededitionitemavailability
294
+ */
295
+ CheckLimitedEditionItemAvailability(request, customData, extraHeaders) {
296
+ return this.ExecuteRequestWrapper("/Admin/CheckLimitedEditionItemAvailability", request, "X-SecretKey", customData, extraHeaders);
297
+ }
298
+ /**
299
+ * Create an ActionsOnPlayersInSegment task, which iterates through all players in a segment to execute action.
300
+ * https://docs.microsoft.com/rest/api/playfab/admin/scheduledtask/createactionsonplayersinsegmenttask
301
+ */
302
+ CreateActionsOnPlayersInSegmentTask(request, customData, extraHeaders) {
303
+ return this.ExecuteRequestWrapper("/Admin/CreateActionsOnPlayersInSegmentTask", request, "X-SecretKey", customData, extraHeaders);
304
+ }
305
+ /**
306
+ * Create a CloudScript task, which can run a CloudScript on a schedule.
307
+ * https://docs.microsoft.com/rest/api/playfab/admin/scheduledtask/createcloudscripttask
308
+ */
309
+ CreateCloudScriptTask(request, customData, extraHeaders) {
310
+ return this.ExecuteRequestWrapper("/Admin/CreateCloudScriptTask", request, "X-SecretKey", customData, extraHeaders);
311
+ }
312
+ /**
313
+ * Create a Insights Scheduled Scaling task, which can scale Insights Performance Units on a schedule
314
+ * https://docs.microsoft.com/rest/api/playfab/admin/scheduledtask/createinsightsscheduledscalingtask
315
+ */
316
+ CreateInsightsScheduledScalingTask(request, customData, extraHeaders) {
317
+ return this.ExecuteRequestWrapper("/Admin/CreateInsightsScheduledScalingTask", request, "X-SecretKey", customData, extraHeaders);
318
+ }
319
+ /**
320
+ * Registers a relationship between a title and an Open ID Connect provider.
321
+ * https://docs.microsoft.com/rest/api/playfab/admin/authentication/createopenidconnection
322
+ */
323
+ CreateOpenIdConnection(request, customData, extraHeaders) {
324
+ return this.ExecuteRequestWrapper("/Admin/CreateOpenIdConnection", request, "X-SecretKey", customData, extraHeaders);
325
+ }
326
+ /**
327
+ * Creates a new Player Shared Secret Key. It may take up to 5 minutes for this key to become generally available after
328
+ * this API returns.
329
+ * https://docs.microsoft.com/rest/api/playfab/admin/authentication/createplayersharedsecret
330
+ */
331
+ CreatePlayerSharedSecret(request, customData, extraHeaders) {
332
+ return this.ExecuteRequestWrapper("/Admin/CreatePlayerSharedSecret", request, "X-SecretKey", customData, extraHeaders);
333
+ }
334
+ /**
335
+ * Adds a new player statistic configuration to the title, optionally allowing the developer to specify a reset interval
336
+ * and an aggregation method.
337
+ * https://docs.microsoft.com/rest/api/playfab/admin/player-data-management/createplayerstatisticdefinition
338
+ */
339
+ CreatePlayerStatisticDefinition(request, customData, extraHeaders) {
340
+ return this.ExecuteRequestWrapper("/Admin/CreatePlayerStatisticDefinition", request, "X-SecretKey", customData, extraHeaders);
341
+ }
342
+ /**
343
+ * Creates a new player segment by defining the conditions on player properties. Also, create actions to target the player
344
+ * segments for a title.
345
+ * https://docs.microsoft.com/rest/api/playfab/admin/segments/createsegment
346
+ */
347
+ CreateSegment(request, customData, extraHeaders) {
348
+ return this.ExecuteRequestWrapper("/Admin/CreateSegment", request, "X-SecretKey", customData, extraHeaders);
349
+ }
350
+ /**
351
+ * Delete a content file from the title. When deleting a file that does not exist, it returns success.
352
+ * https://docs.microsoft.com/rest/api/playfab/admin/content/deletecontent
353
+ */
354
+ DeleteContent(request, customData, extraHeaders) {
355
+ return this.ExecuteRequestWrapper("/Admin/DeleteContent", request, "X-SecretKey", customData, extraHeaders);
356
+ }
357
+ /**
358
+ * Removes a master player account entirely from all titles and deletes all associated data
359
+ * https://docs.microsoft.com/rest/api/playfab/admin/account-management/deletemasterplayeraccount
360
+ */
361
+ DeleteMasterPlayerAccount(request, customData, extraHeaders) {
362
+ return this.ExecuteRequestWrapper("/Admin/DeleteMasterPlayerAccount", request, "X-SecretKey", customData, extraHeaders);
363
+ }
364
+ /**
365
+ * Deletes PlayStream and telemetry event data associated with the master player account from PlayFab storage
366
+ * https://docs.microsoft.com/rest/api/playfab/admin/account-management/deletemasterplayereventdata
367
+ */
368
+ DeleteMasterPlayerEventData(request, customData, extraHeaders) {
369
+ return this.ExecuteRequestWrapper("/Admin/DeleteMasterPlayerEventData", request, "X-SecretKey", customData, extraHeaders);
370
+ }
371
+ /**
372
+ * Deletes a player's subscription
373
+ * https://docs.microsoft.com/rest/api/playfab/admin/account-management/deletemembershipsubscription
374
+ */
375
+ DeleteMembershipSubscription(request, customData, extraHeaders) {
376
+ return this.ExecuteRequestWrapper("/Admin/DeleteMembershipSubscription", request, "X-SecretKey", customData, extraHeaders);
377
+ }
378
+ /**
379
+ * Removes a relationship between a title and an OpenID Connect provider.
380
+ * https://docs.microsoft.com/rest/api/playfab/admin/authentication/deleteopenidconnection
381
+ */
382
+ DeleteOpenIdConnection(request, customData, extraHeaders) {
383
+ return this.ExecuteRequestWrapper("/Admin/DeleteOpenIdConnection", request, "X-SecretKey", customData, extraHeaders);
384
+ }
385
+ /**
386
+ * Removes a user's player account from a title and deletes all associated data
387
+ * https://docs.microsoft.com/rest/api/playfab/admin/account-management/deleteplayer
388
+ */
389
+ DeletePlayer(request, customData, extraHeaders) {
390
+ return this.ExecuteRequestWrapper("/Admin/DeletePlayer", request, "X-SecretKey", customData, extraHeaders);
391
+ }
392
+ /**
393
+ * Deletes title-specific custom properties for a player
394
+ * https://docs.microsoft.com/rest/api/playfab/admin/player-data-management/deleteplayercustomproperties
395
+ */
396
+ DeletePlayerCustomProperties(request, customData, extraHeaders) {
397
+ return this.ExecuteRequestWrapper("/Admin/DeletePlayerCustomProperties", request, "X-SecretKey", customData, extraHeaders);
398
+ }
399
+ /**
400
+ * Deletes an existing Player Shared Secret Key. It may take up to 5 minutes for this delete to be reflected after this API
401
+ * returns.
402
+ * https://docs.microsoft.com/rest/api/playfab/admin/authentication/deleteplayersharedsecret
403
+ */
404
+ DeletePlayerSharedSecret(request, customData, extraHeaders) {
405
+ return this.ExecuteRequestWrapper("/Admin/DeletePlayerSharedSecret", request, "X-SecretKey", customData, extraHeaders);
406
+ }
407
+ /**
408
+ * Deletes an existing player segment and its associated action(s) for a title.
409
+ * https://docs.microsoft.com/rest/api/playfab/admin/segments/deletesegment
410
+ */
411
+ DeleteSegment(request, customData, extraHeaders) {
412
+ return this.ExecuteRequestWrapper("/Admin/DeleteSegment", request, "X-SecretKey", customData, extraHeaders);
413
+ }
414
+ /**
415
+ * _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for
416
+ * version 2._ Deletes an existing virtual item store
417
+ * https://docs.microsoft.com/rest/api/playfab/admin/title-wide-data-management/deletestore
418
+ */
419
+ DeleteStore(request, customData, extraHeaders) {
420
+ return this.ExecuteRequestWrapper("/Admin/DeleteStore", request, "X-SecretKey", customData, extraHeaders);
421
+ }
422
+ /**
423
+ * Delete a task.
424
+ * https://docs.microsoft.com/rest/api/playfab/admin/scheduledtask/deletetask
425
+ */
426
+ DeleteTask(request, customData, extraHeaders) {
427
+ return this.ExecuteRequestWrapper("/Admin/DeleteTask", request, "X-SecretKey", customData, extraHeaders);
428
+ }
429
+ /**
430
+ * Permanently deletes a title and all associated configuration
431
+ * https://docs.microsoft.com/rest/api/playfab/admin/account-management/deletetitle
432
+ */
433
+ DeleteTitle(request, customData, extraHeaders) {
434
+ return this.ExecuteRequestWrapper("/Admin/DeleteTitle", request, "X-SecretKey", customData, extraHeaders);
435
+ }
436
+ /**
437
+ * Deletes a specified set of title data overrides.
438
+ * https://docs.microsoft.com/rest/api/playfab/admin/title-wide-data-management/deletetitledataoverride
439
+ */
440
+ DeleteTitleDataOverride(request, customData, extraHeaders) {
441
+ return this.ExecuteRequestWrapper("/Admin/DeleteTitleDataOverride", request, "X-SecretKey", customData, extraHeaders);
442
+ }
443
+ /**
444
+ * Exports all associated data of a master player account
445
+ * https://docs.microsoft.com/rest/api/playfab/admin/account-management/exportmasterplayerdata
446
+ */
447
+ ExportMasterPlayerData(request, customData, extraHeaders) {
448
+ return this.ExecuteRequestWrapper("/Admin/ExportMasterPlayerData", request, "X-SecretKey", customData, extraHeaders);
449
+ }
450
+ /**
451
+ * Starts an export for the player profiles in a segment. This API creates a snapshot of all the player profiles which
452
+ * match the segment definition at the time of the API call. Profiles which change while an export is in progress will not
453
+ * be reflected in the results.
454
+ * https://docs.microsoft.com/rest/api/playfab/admin/playstream/exportplayersinsegment
455
+ */
456
+ ExportPlayersInSegment(request, customData, extraHeaders) {
457
+ return this.ExecuteRequestWrapper("/Admin/ExportPlayersInSegment", request, "X-SecretKey", customData, extraHeaders);
458
+ }
459
+ /**
460
+ * Get information about a ActionsOnPlayersInSegment task instance.
461
+ * https://docs.microsoft.com/rest/api/playfab/admin/scheduledtask/getactionsonplayersinsegmenttaskinstance
462
+ */
463
+ GetActionsOnPlayersInSegmentTaskInstance(request, customData, extraHeaders) {
464
+ return this.ExecuteRequestWrapper("/Admin/GetActionsOnPlayersInSegmentTaskInstance", request, "X-SecretKey", customData, extraHeaders);
465
+ }
466
+ /**
467
+ * Retrieves an array of player segment definitions. Results from this can be used in subsequent API calls such as
468
+ * GetPlayersInSegment which requires a Segment ID. While segment names can change the ID for that segment will not change.
469
+ * https://docs.microsoft.com/rest/api/playfab/admin/playstream/getallsegments
470
+ */
471
+ GetAllSegments(request, customData, extraHeaders) {
472
+ return this.ExecuteRequestWrapper("/Admin/GetAllSegments", request, "X-SecretKey", customData, extraHeaders);
473
+ }
474
+ /**
475
+ * _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for
476
+ * version 2._ Retrieves the specified version of the title's catalog of virtual goods, including all defined properties
477
+ * https://docs.microsoft.com/rest/api/playfab/admin/title-wide-data-management/getcatalogitems
478
+ */
479
+ GetCatalogItems(request, customData, extraHeaders) {
480
+ return this.ExecuteRequestWrapper("/Admin/GetCatalogItems", request, "X-SecretKey", customData, extraHeaders);
481
+ }
482
+ /**
483
+ * Gets the contents and information of a specific Cloud Script revision.
484
+ * https://docs.microsoft.com/rest/api/playfab/admin/server-side-cloud-script/getcloudscriptrevision
485
+ */
486
+ GetCloudScriptRevision(request, customData, extraHeaders) {
487
+ return this.ExecuteRequestWrapper("/Admin/GetCloudScriptRevision", request, "X-SecretKey", customData, extraHeaders);
488
+ }
489
+ /**
490
+ * Get detail information about a CloudScript task instance.
491
+ * https://docs.microsoft.com/rest/api/playfab/admin/scheduledtask/getcloudscripttaskinstance
492
+ */
493
+ GetCloudScriptTaskInstance(request, customData, extraHeaders) {
494
+ return this.ExecuteRequestWrapper("/Admin/GetCloudScriptTaskInstance", request, "X-SecretKey", customData, extraHeaders);
495
+ }
496
+ /**
497
+ * Lists all the current cloud script versions. For each version, information about the current published and latest
498
+ * revisions is also listed.
499
+ * https://docs.microsoft.com/rest/api/playfab/admin/server-side-cloud-script/getcloudscriptversions
500
+ */
501
+ GetCloudScriptVersions(request, customData, extraHeaders) {
502
+ return this.ExecuteRequestWrapper("/Admin/GetCloudScriptVersions", request, "X-SecretKey", customData, extraHeaders);
503
+ }
504
+ /**
505
+ * List all contents of the title and get statistics such as size
506
+ * https://docs.microsoft.com/rest/api/playfab/admin/content/getcontentlist
507
+ */
508
+ GetContentList(request, customData, extraHeaders) {
509
+ return this.ExecuteRequestWrapper("/Admin/GetContentList", request, "X-SecretKey", customData, extraHeaders);
510
+ }
511
+ /**
512
+ * Retrieves the pre-signed URL for uploading a content file. A subsequent HTTP PUT to the returned URL uploads the
513
+ * content. Also, please be aware that the Content service is specifically PlayFab's CDN offering, for which standard CDN
514
+ * rates apply.
515
+ * https://docs.microsoft.com/rest/api/playfab/admin/content/getcontentuploadurl
516
+ */
517
+ GetContentUploadUrl(request, customData, extraHeaders) {
518
+ return this.ExecuteRequestWrapper("/Admin/GetContentUploadUrl", request, "X-SecretKey", customData, extraHeaders);
519
+ }
520
+ /**
521
+ * Retrieves a download URL for the requested report
522
+ * https://docs.microsoft.com/rest/api/playfab/admin/player-data-management/getdatareport
523
+ */
524
+ GetDataReport(request, customData, extraHeaders) {
525
+ return this.ExecuteRequestWrapper("/Admin/GetDataReport", request, "X-SecretKey", customData, extraHeaders);
526
+ }
527
+ /**
528
+ * Get the list of titles that the player has played
529
+ * https://docs.microsoft.com/rest/api/playfab/admin/account-management/getplayedtitlelist
530
+ */
531
+ GetPlayedTitleList(request, customData, extraHeaders) {
532
+ return this.ExecuteRequestWrapper("/Admin/GetPlayedTitleList", request, "X-SecretKey", customData, extraHeaders);
533
+ }
534
+ /**
535
+ * Retrieves a title-specific custom property value for a player.
536
+ * https://docs.microsoft.com/rest/api/playfab/admin/player-data-management/getplayercustomproperty
537
+ */
538
+ GetPlayerCustomProperty(request, customData, extraHeaders) {
539
+ return this.ExecuteRequestWrapper("/Admin/GetPlayerCustomProperty", request, "X-SecretKey", customData, extraHeaders);
540
+ }
541
+ /**
542
+ * Gets a player's ID from an auth token.
543
+ * https://docs.microsoft.com/rest/api/playfab/admin/account-management/getplayeridfromauthtoken
544
+ */
545
+ GetPlayerIdFromAuthToken(request, customData, extraHeaders) {
546
+ return this.ExecuteRequestWrapper("/Admin/GetPlayerIdFromAuthToken", request, "X-SecretKey", customData, extraHeaders);
547
+ }
548
+ /**
549
+ * Retrieves the player's profile
550
+ * https://docs.microsoft.com/rest/api/playfab/admin/account-management/getplayerprofile
551
+ */
552
+ GetPlayerProfile(request, customData, extraHeaders) {
553
+ return this.ExecuteRequestWrapper("/Admin/GetPlayerProfile", request, "X-SecretKey", customData, extraHeaders);
554
+ }
555
+ /**
556
+ * List all segments that a player currently belongs to at this moment in time.
557
+ * https://docs.microsoft.com/rest/api/playfab/admin/playstream/getplayersegments
558
+ */
559
+ GetPlayerSegments(request, customData, extraHeaders) {
560
+ return this.ExecuteRequestWrapper("/Admin/GetPlayerSegments", request, "X-SecretKey", customData, extraHeaders);
561
+ }
562
+ /**
563
+ * Returns all Player Shared Secret Keys including disabled and expired.
564
+ * https://docs.microsoft.com/rest/api/playfab/admin/authentication/getplayersharedsecrets
565
+ */
566
+ GetPlayerSharedSecrets(request, customData, extraHeaders) {
567
+ return this.ExecuteRequestWrapper("/Admin/GetPlayerSharedSecrets", request, "X-SecretKey", customData, extraHeaders);
568
+ }
569
+ /**
570
+ * Allows for paging through all players in a given segment. This API creates a snapshot of all player profiles that match
571
+ * the segment definition at the time of its creation and lives through the Total Seconds to Live, refreshing its life span
572
+ * on each subsequent use of the Continuation Token. Profiles that change during the course of paging will not be reflected
573
+ * in the results. AB Test segments are currently not supported by this operation. NOTE: This API is limited to being
574
+ * called 30 times in one minute. You will be returned an error if you exceed this threshold.
575
+ * https://docs.microsoft.com/rest/api/playfab/admin/playstream/getplayersinsegment
576
+ */
577
+ GetPlayersInSegment(request, customData, extraHeaders) {
578
+ return this.ExecuteRequestWrapper("/Admin/GetPlayersInSegment", request, "X-SecretKey", customData, extraHeaders);
579
+ }
580
+ /**
581
+ * Retrieves the configuration information for all player statistics defined in the title, regardless of whether they have
582
+ * a reset interval.
583
+ * https://docs.microsoft.com/rest/api/playfab/admin/player-data-management/getplayerstatisticdefinitions
584
+ */
585
+ GetPlayerStatisticDefinitions(request, customData, extraHeaders) {
586
+ return this.ExecuteRequestWrapper("/Admin/GetPlayerStatisticDefinitions", request, "X-SecretKey", customData, extraHeaders);
587
+ }
588
+ /**
589
+ * Retrieves the information on the available versions of the specified statistic.
590
+ * https://docs.microsoft.com/rest/api/playfab/admin/player-data-management/getplayerstatisticversions
591
+ */
592
+ GetPlayerStatisticVersions(request, customData, extraHeaders) {
593
+ return this.ExecuteRequestWrapper("/Admin/GetPlayerStatisticVersions", request, "X-SecretKey", customData, extraHeaders);
594
+ }
595
+ /**
596
+ * Get all tags with a given Namespace (optional) from a player profile.
597
+ * https://docs.microsoft.com/rest/api/playfab/admin/playstream/getplayertags
598
+ */
599
+ GetPlayerTags(request, customData, extraHeaders) {
600
+ return this.ExecuteRequestWrapper("/Admin/GetPlayerTags", request, "X-SecretKey", customData, extraHeaders);
601
+ }
602
+ /**
603
+ * Gets the requested policy.
604
+ * https://docs.microsoft.com/rest/api/playfab/admin/authentication/getpolicy
605
+ */
606
+ GetPolicy(request, customData, extraHeaders) {
607
+ return this.ExecuteRequestWrapper("/Admin/GetPolicy", request, "X-SecretKey", customData, extraHeaders);
608
+ }
609
+ /**
610
+ * Retrieves the key-value store of custom publisher settings
611
+ * https://docs.microsoft.com/rest/api/playfab/admin/title-wide-data-management/getpublisherdata
612
+ */
613
+ GetPublisherData(request, customData, extraHeaders) {
614
+ return this.ExecuteRequestWrapper("/Admin/GetPublisherData", request, "X-SecretKey", customData, extraHeaders);
615
+ }
616
+ /**
617
+ * _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for
618
+ * version 2._ Retrieves the random drop table configuration for the title
619
+ * https://docs.microsoft.com/rest/api/playfab/admin/title-wide-data-management/getrandomresulttables
620
+ */
621
+ GetRandomResultTables(request, customData, extraHeaders) {
622
+ return this.ExecuteRequestWrapper("/Admin/GetRandomResultTables", request, "X-SecretKey", customData, extraHeaders);
623
+ }
624
+ /**
625
+ * Retrieves the result of an export started by ExportPlayersInSegment API. If the ExportPlayersInSegment is successful and
626
+ * complete, this API returns the IndexUrl from which the index file can be downloaded. The index file has a list of urls
627
+ * from which the files containing the player profile data can be downloaded. Otherwise, it returns the current 'State' of
628
+ * the export
629
+ * https://docs.microsoft.com/rest/api/playfab/admin/playstream/getsegmentexport
630
+ */
631
+ GetSegmentExport(request, customData, extraHeaders) {
632
+ return this.ExecuteRequestWrapper("/Admin/GetSegmentExport", request, "X-SecretKey", customData, extraHeaders);
633
+ }
634
+ /**
635
+ * Get detail information of a segment and its associated definition(s) and action(s) for a title.
636
+ * https://docs.microsoft.com/rest/api/playfab/admin/segments/getsegments
637
+ */
638
+ GetSegments(request, customData, extraHeaders) {
639
+ return this.ExecuteRequestWrapper("/Admin/GetSegments", request, "X-SecretKey", customData, extraHeaders);
640
+ }
641
+ /**
642
+ * _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for
643
+ * version 2._ Retrieves the set of items defined for the specified store, including all prices defined
644
+ * https://docs.microsoft.com/rest/api/playfab/admin/title-wide-data-management/getstoreitems
645
+ */
646
+ GetStoreItems(request, customData, extraHeaders) {
647
+ return this.ExecuteRequestWrapper("/Admin/GetStoreItems", request, "X-SecretKey", customData, extraHeaders);
648
+ }
649
+ /**
650
+ * Query for task instances by task, status, or time range.
651
+ * https://docs.microsoft.com/rest/api/playfab/admin/scheduledtask/gettaskinstances
652
+ */
653
+ GetTaskInstances(request, customData, extraHeaders) {
654
+ return this.ExecuteRequestWrapper("/Admin/GetTaskInstances", request, "X-SecretKey", customData, extraHeaders);
655
+ }
656
+ /**
657
+ * Get definition information on a specified task or all tasks within a title.
658
+ * https://docs.microsoft.com/rest/api/playfab/admin/scheduledtask/gettasks
659
+ */
660
+ GetTasks(request, customData, extraHeaders) {
661
+ return this.ExecuteRequestWrapper("/Admin/GetTasks", request, "X-SecretKey", customData, extraHeaders);
662
+ }
663
+ /**
664
+ * Retrieves the key-value store of custom title settings which can be read by the client
665
+ * https://docs.microsoft.com/rest/api/playfab/admin/title-wide-data-management/gettitledata
666
+ */
667
+ GetTitleData(request, customData, extraHeaders) {
668
+ return this.ExecuteRequestWrapper("/Admin/GetTitleData", request, "X-SecretKey", customData, extraHeaders);
669
+ }
670
+ /**
671
+ * Retrieves the key-value store of custom title settings which cannot be read by the client
672
+ * https://docs.microsoft.com/rest/api/playfab/admin/title-wide-data-management/gettitleinternaldata
673
+ */
674
+ GetTitleInternalData(request, customData, extraHeaders) {
675
+ return this.ExecuteRequestWrapper("/Admin/GetTitleInternalData", request, "X-SecretKey", customData, extraHeaders);
676
+ }
677
+ /**
678
+ * Retrieves the relevant details for a specified user, based upon a match against a supplied unique identifier
679
+ * https://docs.microsoft.com/rest/api/playfab/admin/account-management/getuseraccountinfo
680
+ */
681
+ GetUserAccountInfo(request, customData, extraHeaders) {
682
+ return this.ExecuteRequestWrapper("/Admin/GetUserAccountInfo", request, "X-SecretKey", customData, extraHeaders);
683
+ }
684
+ /**
685
+ * Gets all bans for a user.
686
+ * https://docs.microsoft.com/rest/api/playfab/admin/account-management/getuserbans
687
+ */
688
+ GetUserBans(request, customData, extraHeaders) {
689
+ return this.ExecuteRequestWrapper("/Admin/GetUserBans", request, "X-SecretKey", customData, extraHeaders);
690
+ }
691
+ /**
692
+ * Retrieves the title-specific custom data for the user which is readable and writable by the client
693
+ * https://docs.microsoft.com/rest/api/playfab/admin/player-data-management/getuserdata
694
+ */
695
+ GetUserData(request, customData, extraHeaders) {
696
+ return this.ExecuteRequestWrapper("/Admin/GetUserData", request, "X-SecretKey", customData, extraHeaders);
697
+ }
698
+ /**
699
+ * Retrieves the title-specific custom data for the user which cannot be accessed by the client
700
+ * https://docs.microsoft.com/rest/api/playfab/admin/player-data-management/getuserinternaldata
701
+ */
702
+ GetUserInternalData(request, customData, extraHeaders) {
703
+ return this.ExecuteRequestWrapper("/Admin/GetUserInternalData", request, "X-SecretKey", customData, extraHeaders);
704
+ }
705
+ /**
706
+ * _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for
707
+ * version 2._ Retrieves the specified user's current inventory of virtual goods
708
+ * https://docs.microsoft.com/rest/api/playfab/admin/player-item-management/getuserinventory
709
+ */
710
+ GetUserInventory(request, customData, extraHeaders) {
711
+ return this.ExecuteRequestWrapper("/Admin/GetUserInventory", request, "X-SecretKey", customData, extraHeaders);
712
+ }
713
+ /**
714
+ * Retrieves the publisher-specific custom data for the user which is readable and writable by the client
715
+ * https://docs.microsoft.com/rest/api/playfab/admin/player-data-management/getuserpublisherdata
716
+ */
717
+ GetUserPublisherData(request, customData, extraHeaders) {
718
+ return this.ExecuteRequestWrapper("/Admin/GetUserPublisherData", request, "X-SecretKey", customData, extraHeaders);
719
+ }
720
+ /**
721
+ * Retrieves the publisher-specific custom data for the user which cannot be accessed by the client
722
+ * https://docs.microsoft.com/rest/api/playfab/admin/player-data-management/getuserpublisherinternaldata
723
+ */
724
+ GetUserPublisherInternalData(request, customData, extraHeaders) {
725
+ return this.ExecuteRequestWrapper("/Admin/GetUserPublisherInternalData", request, "X-SecretKey", customData, extraHeaders);
726
+ }
727
+ /**
728
+ * Retrieves the publisher-specific custom data for the user which can only be read by the client
729
+ * https://docs.microsoft.com/rest/api/playfab/admin/player-data-management/getuserpublisherreadonlydata
730
+ */
731
+ GetUserPublisherReadOnlyData(request, customData, extraHeaders) {
732
+ return this.ExecuteRequestWrapper("/Admin/GetUserPublisherReadOnlyData", request, "X-SecretKey", customData, extraHeaders);
733
+ }
734
+ /**
735
+ * Retrieves the title-specific custom data for the user which can only be read by the client
736
+ * https://docs.microsoft.com/rest/api/playfab/admin/player-data-management/getuserreadonlydata
737
+ */
738
+ GetUserReadOnlyData(request, customData, extraHeaders) {
739
+ return this.ExecuteRequestWrapper("/Admin/GetUserReadOnlyData", request, "X-SecretKey", customData, extraHeaders);
740
+ }
741
+ /**
742
+ * _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for
743
+ * version 2._ Adds the specified items to the specified user inventories
744
+ * https://docs.microsoft.com/rest/api/playfab/admin/player-item-management/grantitemstousers
745
+ */
746
+ GrantItemsToUsers(request, customData, extraHeaders) {
747
+ return this.ExecuteRequestWrapper("/Admin/GrantItemsToUsers", request, "X-SecretKey", customData, extraHeaders);
748
+ }
749
+ /**
750
+ * _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for
751
+ * version 2._ Increases the global count for the given scarce resource.
752
+ * https://docs.microsoft.com/rest/api/playfab/admin/player-item-management/incrementlimitededitionitemavailability
753
+ */
754
+ IncrementLimitedEditionItemAvailability(request, customData, extraHeaders) {
755
+ return this.ExecuteRequestWrapper("/Admin/IncrementLimitedEditionItemAvailability", request, "X-SecretKey", customData, extraHeaders);
756
+ }
757
+ /**
758
+ * Resets the indicated statistic, removing all player entries for it and backing up the old values.
759
+ * https://docs.microsoft.com/rest/api/playfab/admin/player-data-management/incrementplayerstatisticversion
760
+ */
761
+ IncrementPlayerStatisticVersion(request, customData, extraHeaders) {
762
+ return this.ExecuteRequestWrapper("/Admin/IncrementPlayerStatisticVersion", request, "X-SecretKey", customData, extraHeaders);
763
+ }
764
+ /**
765
+ * Retrieves a list of all Open ID Connect providers registered to a title.
766
+ * https://docs.microsoft.com/rest/api/playfab/admin/authentication/listopenidconnection
767
+ */
768
+ ListOpenIdConnection(request, customData, extraHeaders) {
769
+ return this.ExecuteRequestWrapper("/Admin/ListOpenIdConnection", request, "X-SecretKey", customData, extraHeaders);
770
+ }
771
+ /**
772
+ * Retrieves title-specific custom property values for a player.
773
+ * https://docs.microsoft.com/rest/api/playfab/admin/player-data-management/listplayercustomproperties
774
+ */
775
+ ListPlayerCustomProperties(request, customData, extraHeaders) {
776
+ return this.ExecuteRequestWrapper("/Admin/ListPlayerCustomProperties", request, "X-SecretKey", customData, extraHeaders);
777
+ }
778
+ /**
779
+ * _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for
780
+ * version 2._ Retuns the list of all defined virtual currencies for the title
781
+ * https://docs.microsoft.com/rest/api/playfab/admin/title-wide-data-management/listvirtualcurrencytypes
782
+ */
783
+ ListVirtualCurrencyTypes(request, customData, extraHeaders) {
784
+ return this.ExecuteRequestWrapper("/Admin/ListVirtualCurrencyTypes", request, "X-SecretKey", customData, extraHeaders);
785
+ }
786
+ /**
787
+ * _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for
788
+ * version 2._ Attempts to process an order refund through the original real money payment provider.
789
+ * https://docs.microsoft.com/rest/api/playfab/admin/player-data-management/refundpurchase
790
+ */
791
+ RefundPurchase(request, customData, extraHeaders) {
792
+ return this.ExecuteRequestWrapper("/Admin/RefundPurchase", request, "X-SecretKey", customData, extraHeaders);
793
+ }
794
+ /**
795
+ * Remove a given tag from a player profile. The tag's namespace is automatically generated based on the source of the tag.
796
+ * https://docs.microsoft.com/rest/api/playfab/admin/playstream/removeplayertag
797
+ */
798
+ RemovePlayerTag(request, customData, extraHeaders) {
799
+ return this.ExecuteRequestWrapper("/Admin/RemovePlayerTag", request, "X-SecretKey", customData, extraHeaders);
800
+ }
801
+ /**
802
+ * _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for
803
+ * version 2._ Removes one or more virtual currencies from the set defined for the title.
804
+ * https://docs.microsoft.com/rest/api/playfab/admin/title-wide-data-management/removevirtualcurrencytypes
805
+ */
806
+ RemoveVirtualCurrencyTypes(request, customData, extraHeaders) {
807
+ return this.ExecuteRequestWrapper("/Admin/RemoveVirtualCurrencyTypes", request, "X-SecretKey", customData, extraHeaders);
808
+ }
809
+ /**
810
+ * Completely removes all statistics for the specified character, for the current game
811
+ * https://docs.microsoft.com/rest/api/playfab/admin/characters/resetcharacterstatistics
812
+ */
813
+ ResetCharacterStatistics(request, customData, extraHeaders) {
814
+ return this.ExecuteRequestWrapper("/Admin/ResetCharacterStatistics", request, "X-SecretKey", customData, extraHeaders);
815
+ }
816
+ /**
817
+ * Reset a player's password for a given title.
818
+ * https://docs.microsoft.com/rest/api/playfab/admin/account-management/resetpassword
819
+ */
820
+ ResetPassword(request, customData, extraHeaders) {
821
+ return this.ExecuteRequestWrapper("/Admin/ResetPassword", request, "X-SecretKey", customData, extraHeaders);
822
+ }
823
+ /**
824
+ * Completely removes all statistics for the specified user, for the current game
825
+ * https://docs.microsoft.com/rest/api/playfab/admin/player-data-management/resetuserstatistics
826
+ */
827
+ ResetUserStatistics(request, customData, extraHeaders) {
828
+ return this.ExecuteRequestWrapper("/Admin/ResetUserStatistics", request, "X-SecretKey", customData, extraHeaders);
829
+ }
830
+ /**
831
+ * _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for
832
+ * version 2._ Attempts to resolve a dispute with the original order's payment provider.
833
+ * https://docs.microsoft.com/rest/api/playfab/admin/player-data-management/resolvepurchasedispute
834
+ */
835
+ ResolvePurchaseDispute(request, customData, extraHeaders) {
836
+ return this.ExecuteRequestWrapper("/Admin/ResolvePurchaseDispute", request, "X-SecretKey", customData, extraHeaders);
837
+ }
838
+ /**
839
+ * Revoke all active bans for a user.
840
+ * https://docs.microsoft.com/rest/api/playfab/admin/account-management/revokeallbansforuser
841
+ */
842
+ RevokeAllBansForUser(request, customData, extraHeaders) {
843
+ return this.ExecuteRequestWrapper("/Admin/RevokeAllBansForUser", request, "X-SecretKey", customData, extraHeaders);
844
+ }
845
+ /**
846
+ * Revoke all active bans specified with BanId.
847
+ * https://docs.microsoft.com/rest/api/playfab/admin/account-management/revokebans
848
+ */
849
+ RevokeBans(request, customData, extraHeaders) {
850
+ return this.ExecuteRequestWrapper("/Admin/RevokeBans", request, "X-SecretKey", customData, extraHeaders);
851
+ }
852
+ /**
853
+ * _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for
854
+ * version 2._ Revokes access to an item in a user's inventory
855
+ * https://docs.microsoft.com/rest/api/playfab/admin/player-item-management/revokeinventoryitem
856
+ */
857
+ RevokeInventoryItem(request, customData, extraHeaders) {
858
+ return this.ExecuteRequestWrapper("/Admin/RevokeInventoryItem", request, "X-SecretKey", customData, extraHeaders);
859
+ }
860
+ /**
861
+ * _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for
862
+ * version 2._ Revokes access for up to 25 items across multiple users and characters.
863
+ * https://docs.microsoft.com/rest/api/playfab/admin/player-item-management/revokeinventoryitems
864
+ */
865
+ RevokeInventoryItems(request, customData, extraHeaders) {
866
+ return this.ExecuteRequestWrapper("/Admin/RevokeInventoryItems", request, "X-SecretKey", customData, extraHeaders);
867
+ }
868
+ /**
869
+ * Run a task immediately regardless of its schedule.
870
+ * https://docs.microsoft.com/rest/api/playfab/admin/scheduledtask/runtask
871
+ */
872
+ RunTask(request, customData, extraHeaders) {
873
+ return this.ExecuteRequestWrapper("/Admin/RunTask", request, "X-SecretKey", customData, extraHeaders);
874
+ }
875
+ /**
876
+ * Forces an email to be sent to the registered email address for the user's account, with a link allowing the user to
877
+ * change the password.If an account recovery email template ID is provided, an email using the custom email template will
878
+ * be used.
879
+ * https://docs.microsoft.com/rest/api/playfab/admin/account-management/sendaccountrecoveryemail
880
+ */
881
+ SendAccountRecoveryEmail(request, customData, extraHeaders) {
882
+ return this.ExecuteRequestWrapper("/Admin/SendAccountRecoveryEmail", request, "X-SecretKey", customData, extraHeaders);
883
+ }
884
+ /**
885
+ * _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for
886
+ * version 2._ Creates the catalog configuration of all virtual goods for the specified catalog version
887
+ * https://docs.microsoft.com/rest/api/playfab/admin/title-wide-data-management/setcatalogitems
888
+ */
889
+ SetCatalogItems(request, customData, extraHeaders) {
890
+ return this.ExecuteRequestWrapper("/Admin/SetCatalogItems", request, "X-SecretKey", customData, extraHeaders);
891
+ }
892
+ /**
893
+ * Sets the override expiration for a membership subscription
894
+ * https://docs.microsoft.com/rest/api/playfab/admin/account-management/setmembershipoverride
895
+ */
896
+ SetMembershipOverride(request, customData, extraHeaders) {
897
+ return this.ExecuteRequestWrapper("/Admin/SetMembershipOverride", request, "X-SecretKey", customData, extraHeaders);
898
+ }
899
+ /**
900
+ * Sets or resets the player's secret. Player secrets are used to sign API requests.
901
+ * https://docs.microsoft.com/rest/api/playfab/admin/authentication/setplayersecret
902
+ */
903
+ SetPlayerSecret(request, customData, extraHeaders) {
904
+ return this.ExecuteRequestWrapper("/Admin/SetPlayerSecret", request, "X-SecretKey", customData, extraHeaders);
905
+ }
906
+ /**
907
+ * Sets the currently published revision of a title Cloud Script
908
+ * https://docs.microsoft.com/rest/api/playfab/admin/server-side-cloud-script/setpublishedrevision
909
+ */
910
+ SetPublishedRevision(request, customData, extraHeaders) {
911
+ return this.ExecuteRequestWrapper("/Admin/SetPublishedRevision", request, "X-SecretKey", customData, extraHeaders);
912
+ }
913
+ /**
914
+ * Updates the key-value store of custom publisher settings
915
+ * https://docs.microsoft.com/rest/api/playfab/admin/shared-group-data/setpublisherdata
916
+ */
917
+ SetPublisherData(request, customData, extraHeaders) {
918
+ return this.ExecuteRequestWrapper("/Admin/SetPublisherData", request, "X-SecretKey", customData, extraHeaders);
919
+ }
920
+ /**
921
+ * _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for
922
+ * version 2._ Sets all the items in one virtual store
923
+ * https://docs.microsoft.com/rest/api/playfab/admin/title-wide-data-management/setstoreitems
924
+ */
925
+ SetStoreItems(request, customData, extraHeaders) {
926
+ return this.ExecuteRequestWrapper("/Admin/SetStoreItems", request, "X-SecretKey", customData, extraHeaders);
927
+ }
928
+ /**
929
+ * Creates and updates the key-value store of custom title settings which can be read by the client. For example, a
930
+ * developer could choose to store values which modify the user experience, such as enemy spawn rates, weapon strengths,
931
+ * movement speeds, etc. This allows a developer to update the title without the need to create, test, and ship a new
932
+ * build.
933
+ * https://docs.microsoft.com/rest/api/playfab/admin/title-wide-data-management/settitledata
934
+ */
935
+ SetTitleData(request, customData, extraHeaders) {
936
+ return this.ExecuteRequestWrapper("/Admin/SetTitleData", request, "X-SecretKey", customData, extraHeaders);
937
+ }
938
+ /**
939
+ * Set and delete key-value pairs in a title data override instance.
940
+ * https://docs.microsoft.com/rest/api/playfab/admin/title-wide-data-management/settitledataandoverrides
941
+ */
942
+ SetTitleDataAndOverrides(request, customData, extraHeaders) {
943
+ return this.ExecuteRequestWrapper("/Admin/SetTitleDataAndOverrides", request, "X-SecretKey", customData, extraHeaders);
944
+ }
945
+ /**
946
+ * Updates the key-value store of custom title settings which cannot be read by the client. These values can be used to
947
+ * tweak settings used by game servers and Cloud Scripts without the need to update and re-deploy.
948
+ * https://docs.microsoft.com/rest/api/playfab/admin/title-wide-data-management/settitleinternaldata
949
+ */
950
+ SetTitleInternalData(request, customData, extraHeaders) {
951
+ return this.ExecuteRequestWrapper("/Admin/SetTitleInternalData", request, "X-SecretKey", customData, extraHeaders);
952
+ }
953
+ /**
954
+ * Sets the Amazon Resource Name (ARN) for iOS and Android push notifications. Documentation on the exact restrictions can
955
+ * be found at: http://docs.aws.amazon.com/sns/latest/api/API_CreatePlatformApplication.html. Currently, Amazon device
956
+ * Messaging is not supported.
957
+ * https://docs.microsoft.com/rest/api/playfab/admin/title-wide-data-management/setuppushnotification
958
+ */
959
+ SetupPushNotification(request, customData, extraHeaders) {
960
+ return this.ExecuteRequestWrapper("/Admin/SetupPushNotification", request, "X-SecretKey", customData, extraHeaders);
961
+ }
962
+ /**
963
+ * _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for
964
+ * version 2._ Decrements the specified virtual currency by the stated amount
965
+ * https://docs.microsoft.com/rest/api/playfab/admin/player-item-management/subtractuservirtualcurrency
966
+ */
967
+ SubtractUserVirtualCurrency(request, customData, extraHeaders) {
968
+ return this.ExecuteRequestWrapper("/Admin/SubtractUserVirtualCurrency", request, "X-SecretKey", customData, extraHeaders);
969
+ }
970
+ /**
971
+ * Updates information of a list of existing bans specified with Ban Ids.
972
+ * https://docs.microsoft.com/rest/api/playfab/admin/account-management/updatebans
973
+ */
974
+ UpdateBans(request, customData, extraHeaders) {
975
+ return this.ExecuteRequestWrapper("/Admin/UpdateBans", request, "X-SecretKey", customData, extraHeaders);
976
+ }
977
+ /**
978
+ * _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for
979
+ * version 2._ Updates the catalog configuration for virtual goods in the specified catalog version
980
+ * https://docs.microsoft.com/rest/api/playfab/admin/title-wide-data-management/updatecatalogitems
981
+ */
982
+ UpdateCatalogItems(request, customData, extraHeaders) {
983
+ return this.ExecuteRequestWrapper("/Admin/UpdateCatalogItems", request, "X-SecretKey", customData, extraHeaders);
984
+ }
985
+ /**
986
+ * Creates a new Cloud Script revision and uploads source code to it. Note that at this time, only one file should be
987
+ * submitted in the revision.
988
+ * https://docs.microsoft.com/rest/api/playfab/admin/server-side-cloud-script/updatecloudscript
989
+ */
990
+ UpdateCloudScript(request, customData, extraHeaders) {
991
+ return this.ExecuteRequestWrapper("/Admin/UpdateCloudScript", request, "X-SecretKey", customData, extraHeaders);
992
+ }
993
+ /**
994
+ * Modifies data and credentials for an existing relationship between a title and an Open ID Connect provider
995
+ * https://docs.microsoft.com/rest/api/playfab/admin/authentication/updateopenidconnection
996
+ */
997
+ UpdateOpenIdConnection(request, customData, extraHeaders) {
998
+ return this.ExecuteRequestWrapper("/Admin/UpdateOpenIdConnection", request, "X-SecretKey", customData, extraHeaders);
999
+ }
1000
+ /**
1001
+ * Updates the title-specific custom property values for a player
1002
+ * https://docs.microsoft.com/rest/api/playfab/admin/player-data-management/updateplayercustomproperties
1003
+ */
1004
+ UpdatePlayerCustomProperties(request, customData, extraHeaders) {
1005
+ return this.ExecuteRequestWrapper("/Admin/UpdatePlayerCustomProperties", request, "X-SecretKey", customData, extraHeaders);
1006
+ }
1007
+ /**
1008
+ * Updates a existing Player Shared Secret Key. It may take up to 5 minutes for this update to become generally available
1009
+ * after this API returns.
1010
+ * https://docs.microsoft.com/rest/api/playfab/admin/authentication/updateplayersharedsecret
1011
+ */
1012
+ UpdatePlayerSharedSecret(request, customData, extraHeaders) {
1013
+ return this.ExecuteRequestWrapper("/Admin/UpdatePlayerSharedSecret", request, "X-SecretKey", customData, extraHeaders);
1014
+ }
1015
+ /**
1016
+ * Updates a player statistic configuration for the title, optionally allowing the developer to specify a reset interval.
1017
+ * https://docs.microsoft.com/rest/api/playfab/admin/player-data-management/updateplayerstatisticdefinition
1018
+ */
1019
+ UpdatePlayerStatisticDefinition(request, customData, extraHeaders) {
1020
+ return this.ExecuteRequestWrapper("/Admin/UpdatePlayerStatisticDefinition", request, "X-SecretKey", customData, extraHeaders);
1021
+ }
1022
+ /**
1023
+ * Changes a policy for a title
1024
+ * https://docs.microsoft.com/rest/api/playfab/admin/authentication/updatepolicy
1025
+ */
1026
+ UpdatePolicy(request, customData, extraHeaders) {
1027
+ return this.ExecuteRequestWrapper("/Admin/UpdatePolicy", request, "X-SecretKey", customData, extraHeaders);
1028
+ }
1029
+ /**
1030
+ * _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for
1031
+ * version 2._ Updates the random drop table configuration for the title
1032
+ * https://docs.microsoft.com/rest/api/playfab/admin/title-wide-data-management/updaterandomresulttables
1033
+ */
1034
+ UpdateRandomResultTables(request, customData, extraHeaders) {
1035
+ return this.ExecuteRequestWrapper("/Admin/UpdateRandomResultTables", request, "X-SecretKey", customData, extraHeaders);
1036
+ }
1037
+ /**
1038
+ * Updates an existing player segment and its associated definition(s) and action(s) for a title.
1039
+ * https://docs.microsoft.com/rest/api/playfab/admin/segments/updatesegment
1040
+ */
1041
+ UpdateSegment(request, customData, extraHeaders) {
1042
+ return this.ExecuteRequestWrapper("/Admin/UpdateSegment", request, "X-SecretKey", customData, extraHeaders);
1043
+ }
1044
+ /**
1045
+ * _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for
1046
+ * version 2._ Updates an existing virtual item store with new or modified items
1047
+ * https://docs.microsoft.com/rest/api/playfab/admin/title-wide-data-management/updatestoreitems
1048
+ */
1049
+ UpdateStoreItems(request, customData, extraHeaders) {
1050
+ return this.ExecuteRequestWrapper("/Admin/UpdateStoreItems", request, "X-SecretKey", customData, extraHeaders);
1051
+ }
1052
+ /**
1053
+ * Update an existing task.
1054
+ * https://docs.microsoft.com/rest/api/playfab/admin/scheduledtask/updatetask
1055
+ */
1056
+ UpdateTask(request, customData, extraHeaders) {
1057
+ return this.ExecuteRequestWrapper("/Admin/UpdateTask", request, "X-SecretKey", customData, extraHeaders);
1058
+ }
1059
+ /**
1060
+ * Updates the title-specific custom data for the user which is readable and writable by the client
1061
+ * https://docs.microsoft.com/rest/api/playfab/admin/player-data-management/updateuserdata
1062
+ */
1063
+ UpdateUserData(request, customData, extraHeaders) {
1064
+ return this.ExecuteRequestWrapper("/Admin/UpdateUserData", request, "X-SecretKey", customData, extraHeaders);
1065
+ }
1066
+ /**
1067
+ * Updates the title-specific custom data for the user which cannot be accessed by the client
1068
+ * https://docs.microsoft.com/rest/api/playfab/admin/player-data-management/updateuserinternaldata
1069
+ */
1070
+ UpdateUserInternalData(request, customData, extraHeaders) {
1071
+ return this.ExecuteRequestWrapper("/Admin/UpdateUserInternalData", request, "X-SecretKey", customData, extraHeaders);
1072
+ }
1073
+ /**
1074
+ * Updates the publisher-specific custom data for the user which is readable and writable by the client
1075
+ * https://docs.microsoft.com/rest/api/playfab/admin/player-data-management/updateuserpublisherdata
1076
+ */
1077
+ UpdateUserPublisherData(request, customData, extraHeaders) {
1078
+ return this.ExecuteRequestWrapper("/Admin/UpdateUserPublisherData", request, "X-SecretKey", customData, extraHeaders);
1079
+ }
1080
+ /**
1081
+ * Updates the publisher-specific custom data for the user which cannot be accessed by the client
1082
+ * https://docs.microsoft.com/rest/api/playfab/admin/player-data-management/updateuserpublisherinternaldata
1083
+ */
1084
+ UpdateUserPublisherInternalData(request, customData, extraHeaders) {
1085
+ return this.ExecuteRequestWrapper("/Admin/UpdateUserPublisherInternalData", request, "X-SecretKey", customData, extraHeaders);
1086
+ }
1087
+ /**
1088
+ * Updates the publisher-specific custom data for the user which can only be read by the client
1089
+ * https://docs.microsoft.com/rest/api/playfab/admin/player-data-management/updateuserpublisherreadonlydata
1090
+ */
1091
+ UpdateUserPublisherReadOnlyData(request, customData, extraHeaders) {
1092
+ return this.ExecuteRequestWrapper("/Admin/UpdateUserPublisherReadOnlyData", request, "X-SecretKey", customData, extraHeaders);
1093
+ }
1094
+ /**
1095
+ * Updates the title-specific custom data for the user which can only be read by the client
1096
+ * https://docs.microsoft.com/rest/api/playfab/admin/player-data-management/updateuserreadonlydata
1097
+ */
1098
+ UpdateUserReadOnlyData(request, customData, extraHeaders) {
1099
+ return this.ExecuteRequestWrapper("/Admin/UpdateUserReadOnlyData", request, "X-SecretKey", customData, extraHeaders);
1100
+ }
1101
+ /**
1102
+ * Updates the title specific display name for a user
1103
+ * https://docs.microsoft.com/rest/api/playfab/admin/account-management/updateusertitledisplayname
1104
+ */
1105
+ UpdateUserTitleDisplayName(request, customData, extraHeaders) {
1106
+ return this.ExecuteRequestWrapper("/Admin/UpdateUserTitleDisplayName", request, "X-SecretKey", customData, extraHeaders);
1107
+ }
1108
+ };
1109
+ export {
1110
+ PlayFabAdminApi as default
1111
+ };
1112
+ //# sourceMappingURL=Admin.js.map